Remove objfile parameter from abbrev_table::read
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2020-11-05 Tom Tromey <tom@tromey.com>
2
3 * dwarf2/read.c (read_cutu_die_from_dwo)
4 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
5 (build_type_psymtabs_1): Update.
6 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
7 parameter.
8 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
9 Don't read section. Add assert.
10
11 2020-11-04 Tom Tromey <tromey@adacore.com>
12
13 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
14
15 2020-11-04 Tom Tromey <tromey@adacore.com>
16
17 * ada-typeprint.c (ada_print_type): Handle __T types.
18
19 2020-11-04 Tom Tromey <tromey@adacore.com>
20
21 * dwarf2/read.c (add_partial_symbol, process_die):
22 Handle DW_TAG_array_type.
23 (is_type_tag_for_partial): Add "lang" parameter.
24 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
25
26 2020-11-04 Tom Tromey <tromey@adacore.com>
27
28 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
29
30 2020-11-04 Tom Tromey <tromey@adacore.com>
31
32 * dwarf2/read.c (read_array_type): Only apply stride to innermost
33 array.
34
35 2020-11-04 Tom Tromey <tromey@adacore.com>
36
37 * gdbtypes.c (update_static_array_size): Handle bit stride.
38
39 2020-11-04 Tom Tromey <tromey@adacore.com>
40
41 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
42
43 2020-11-04 Tom Tromey <tromey@adacore.com>
44
45 * ada-lang.c (ada_is_any_packed_array_type): New function.
46 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
47
48 2020-11-04 Tom Tromey <tromey@adacore.com>
49
50 * dwarf2/read.c (recognize_bound_expression)
51 (quirk_ada_thick_pointer): New functions.
52 (read_array_type): Call quirk_ada_thick_pointer.
53 (set_die_type): Add "skip_data_location" parameter.
54 (quirk_ada_thick_pointer): New function.
55 (process_structure_scope): Call quirk_ada_thick_pointer.
56 * ada-lang.c (ada_is_unconstrained_packed_array_type)
57 (decode_packed_array_bitsize): Handle thick pointers without
58 parallel types.
59 (ada_is_gnat_encoded_packed_array_type): Rename from
60 ada_is_packed_array_type.
61 (ada_is_constrained_packed_array_type): Update.
62 * ada-valprint.c (ada_val_print_gnat_array): Remove.
63 (ada_value_print_1): Use ada_get_decoded_value.
64
65 2020-11-04 Tom Tromey <tromey@adacore.com>
66
67 * ada-lang.c (recursively_update_array_bitsize): New function.
68 (decode_constrained_packed_array_type): Call it.
69
70 2020-11-04 Tom Tromey <tromey@adacore.com>
71
72 * ada-lang.c (to_fixed_array_type): Error if
73 decode_constrained_packed_array_type returns NULL.
74
75 2020-11-04 Tom Tromey <tromey@adacore.com>
76
77 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
78
79 2020-11-02 Tom Tromey <tromey@adacore.com>
80
81 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
82 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
83 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
84 * amd64-ravenscar-thread.c: New file.
85 * amd64-ravenscar-thread.h: New file.
86 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
87 * configure.tgt (amd64_tobjs): Add ravenscar objects.
88
89 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
90
91 * main.c (execute_cmdargs): New function.
92 (captured_main_1): Make use of execute_cmdargs.
93
94 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
95
96 * NEWS: Mention changes to config file search path.
97 * main.c
98
99 2020-11-02 Tom Tromey <tromey@adacore.com>
100
101 * python/python.c: Consolidate two HAVE_PYTHON blocks.
102 (python_GdbModuleDef): Move earlier. Now static.
103 (do_start_initialization): Consolidate some IS_PY3K blocks.
104
105 2020-11-02 Simon Marchi <simon.marchi@efficios.com>
106
107 * aarch64-linux-tdep.c: Fix indentation.
108 * aarch64-ravenscar-thread.c: Fix indentation.
109 * aarch64-tdep.c: Fix indentation.
110 * aarch64-tdep.h: Fix indentation.
111 * ada-lang.c: Fix indentation.
112 * ada-lang.h: Fix indentation.
113 * ada-tasks.c: Fix indentation.
114 * ada-typeprint.c: Fix indentation.
115 * ada-valprint.c: Fix indentation.
116 * ada-varobj.c: Fix indentation.
117 * addrmap.c: Fix indentation.
118 * addrmap.h: Fix indentation.
119 * agent.c: Fix indentation.
120 * aix-thread.c: Fix indentation.
121 * alpha-bsd-nat.c: Fix indentation.
122 * alpha-linux-tdep.c: Fix indentation.
123 * alpha-mdebug-tdep.c: Fix indentation.
124 * alpha-nbsd-tdep.c: Fix indentation.
125 * alpha-obsd-tdep.c: Fix indentation.
126 * alpha-tdep.c: Fix indentation.
127 * amd64-bsd-nat.c: Fix indentation.
128 * amd64-darwin-tdep.c: Fix indentation.
129 * amd64-linux-nat.c: Fix indentation.
130 * amd64-linux-tdep.c: Fix indentation.
131 * amd64-nat.c: Fix indentation.
132 * amd64-obsd-tdep.c: Fix indentation.
133 * amd64-tdep.c: Fix indentation.
134 * amd64-windows-tdep.c: Fix indentation.
135 * annotate.c: Fix indentation.
136 * arc-tdep.c: Fix indentation.
137 * arch-utils.c: Fix indentation.
138 * arch/arm-get-next-pcs.c: Fix indentation.
139 * arch/arm.c: Fix indentation.
140 * arm-linux-nat.c: Fix indentation.
141 * arm-linux-tdep.c: Fix indentation.
142 * arm-nbsd-tdep.c: Fix indentation.
143 * arm-pikeos-tdep.c: Fix indentation.
144 * arm-tdep.c: Fix indentation.
145 * arm-tdep.h: Fix indentation.
146 * arm-wince-tdep.c: Fix indentation.
147 * auto-load.c: Fix indentation.
148 * auxv.c: Fix indentation.
149 * avr-tdep.c: Fix indentation.
150 * ax-gdb.c: Fix indentation.
151 * ax-general.c: Fix indentation.
152 * bfin-linux-tdep.c: Fix indentation.
153 * block.c: Fix indentation.
154 * block.h: Fix indentation.
155 * blockframe.c: Fix indentation.
156 * bpf-tdep.c: Fix indentation.
157 * break-catch-sig.c: Fix indentation.
158 * break-catch-syscall.c: Fix indentation.
159 * break-catch-throw.c: Fix indentation.
160 * breakpoint.c: Fix indentation.
161 * breakpoint.h: Fix indentation.
162 * bsd-uthread.c: Fix indentation.
163 * btrace.c: Fix indentation.
164 * build-id.c: Fix indentation.
165 * buildsym-legacy.h: Fix indentation.
166 * buildsym.c: Fix indentation.
167 * c-typeprint.c: Fix indentation.
168 * c-valprint.c: Fix indentation.
169 * c-varobj.c: Fix indentation.
170 * charset.c: Fix indentation.
171 * cli/cli-cmds.c: Fix indentation.
172 * cli/cli-decode.c: Fix indentation.
173 * cli/cli-decode.h: Fix indentation.
174 * cli/cli-script.c: Fix indentation.
175 * cli/cli-setshow.c: Fix indentation.
176 * coff-pe-read.c: Fix indentation.
177 * coffread.c: Fix indentation.
178 * compile/compile-cplus-types.c: Fix indentation.
179 * compile/compile-object-load.c: Fix indentation.
180 * compile/compile-object-run.c: Fix indentation.
181 * completer.c: Fix indentation.
182 * corefile.c: Fix indentation.
183 * corelow.c: Fix indentation.
184 * cp-abi.h: Fix indentation.
185 * cp-namespace.c: Fix indentation.
186 * cp-support.c: Fix indentation.
187 * cp-valprint.c: Fix indentation.
188 * cris-linux-tdep.c: Fix indentation.
189 * cris-tdep.c: Fix indentation.
190 * darwin-nat-info.c: Fix indentation.
191 * darwin-nat.c: Fix indentation.
192 * darwin-nat.h: Fix indentation.
193 * dbxread.c: Fix indentation.
194 * dcache.c: Fix indentation.
195 * disasm.c: Fix indentation.
196 * dtrace-probe.c: Fix indentation.
197 * dwarf2/abbrev.c: Fix indentation.
198 * dwarf2/attribute.c: Fix indentation.
199 * dwarf2/expr.c: Fix indentation.
200 * dwarf2/frame.c: Fix indentation.
201 * dwarf2/index-cache.c: Fix indentation.
202 * dwarf2/index-write.c: Fix indentation.
203 * dwarf2/line-header.c: Fix indentation.
204 * dwarf2/loc.c: Fix indentation.
205 * dwarf2/macro.c: Fix indentation.
206 * dwarf2/read.c: Fix indentation.
207 * dwarf2/read.h: Fix indentation.
208 * elfread.c: Fix indentation.
209 * eval.c: Fix indentation.
210 * event-top.c: Fix indentation.
211 * exec.c: Fix indentation.
212 * exec.h: Fix indentation.
213 * expprint.c: Fix indentation.
214 * f-lang.c: Fix indentation.
215 * f-typeprint.c: Fix indentation.
216 * f-valprint.c: Fix indentation.
217 * fbsd-nat.c: Fix indentation.
218 * fbsd-tdep.c: Fix indentation.
219 * findvar.c: Fix indentation.
220 * fork-child.c: Fix indentation.
221 * frame-unwind.c: Fix indentation.
222 * frame-unwind.h: Fix indentation.
223 * frame.c: Fix indentation.
224 * frv-linux-tdep.c: Fix indentation.
225 * frv-tdep.c: Fix indentation.
226 * frv-tdep.h: Fix indentation.
227 * ft32-tdep.c: Fix indentation.
228 * gcore.c: Fix indentation.
229 * gdb_bfd.c: Fix indentation.
230 * gdbarch.sh: Fix indentation.
231 * gdbarch.c: Re-generate
232 * gdbarch.h: Re-generate.
233 * gdbcore.h: Fix indentation.
234 * gdbthread.h: Fix indentation.
235 * gdbtypes.c: Fix indentation.
236 * gdbtypes.h: Fix indentation.
237 * glibc-tdep.c: Fix indentation.
238 * gnu-nat.c: Fix indentation.
239 * gnu-nat.h: Fix indentation.
240 * gnu-v2-abi.c: Fix indentation.
241 * gnu-v3-abi.c: Fix indentation.
242 * go32-nat.c: Fix indentation.
243 * guile/guile-internal.h: Fix indentation.
244 * guile/scm-cmd.c: Fix indentation.
245 * guile/scm-frame.c: Fix indentation.
246 * guile/scm-iterator.c: Fix indentation.
247 * guile/scm-math.c: Fix indentation.
248 * guile/scm-ports.c: Fix indentation.
249 * guile/scm-pretty-print.c: Fix indentation.
250 * guile/scm-value.c: Fix indentation.
251 * h8300-tdep.c: Fix indentation.
252 * hppa-linux-nat.c: Fix indentation.
253 * hppa-linux-tdep.c: Fix indentation.
254 * hppa-nbsd-nat.c: Fix indentation.
255 * hppa-nbsd-tdep.c: Fix indentation.
256 * hppa-obsd-nat.c: Fix indentation.
257 * hppa-tdep.c: Fix indentation.
258 * hppa-tdep.h: Fix indentation.
259 * i386-bsd-nat.c: Fix indentation.
260 * i386-darwin-nat.c: Fix indentation.
261 * i386-darwin-tdep.c: Fix indentation.
262 * i386-dicos-tdep.c: Fix indentation.
263 * i386-gnu-nat.c: Fix indentation.
264 * i386-linux-nat.c: Fix indentation.
265 * i386-linux-tdep.c: Fix indentation.
266 * i386-nto-tdep.c: Fix indentation.
267 * i386-obsd-tdep.c: Fix indentation.
268 * i386-sol2-nat.c: Fix indentation.
269 * i386-tdep.c: Fix indentation.
270 * i386-tdep.h: Fix indentation.
271 * i386-windows-tdep.c: Fix indentation.
272 * i387-tdep.c: Fix indentation.
273 * i387-tdep.h: Fix indentation.
274 * ia64-libunwind-tdep.c: Fix indentation.
275 * ia64-libunwind-tdep.h: Fix indentation.
276 * ia64-linux-nat.c: Fix indentation.
277 * ia64-linux-tdep.c: Fix indentation.
278 * ia64-tdep.c: Fix indentation.
279 * ia64-tdep.h: Fix indentation.
280 * ia64-vms-tdep.c: Fix indentation.
281 * infcall.c: Fix indentation.
282 * infcmd.c: Fix indentation.
283 * inferior.c: Fix indentation.
284 * infrun.c: Fix indentation.
285 * iq2000-tdep.c: Fix indentation.
286 * language.c: Fix indentation.
287 * linespec.c: Fix indentation.
288 * linux-fork.c: Fix indentation.
289 * linux-nat.c: Fix indentation.
290 * linux-tdep.c: Fix indentation.
291 * linux-thread-db.c: Fix indentation.
292 * lm32-tdep.c: Fix indentation.
293 * m2-lang.c: Fix indentation.
294 * m2-typeprint.c: Fix indentation.
295 * m2-valprint.c: Fix indentation.
296 * m32c-tdep.c: Fix indentation.
297 * m32r-linux-tdep.c: Fix indentation.
298 * m32r-tdep.c: Fix indentation.
299 * m68hc11-tdep.c: Fix indentation.
300 * m68k-bsd-nat.c: Fix indentation.
301 * m68k-linux-nat.c: Fix indentation.
302 * m68k-linux-tdep.c: Fix indentation.
303 * m68k-tdep.c: Fix indentation.
304 * machoread.c: Fix indentation.
305 * macrocmd.c: Fix indentation.
306 * macroexp.c: Fix indentation.
307 * macroscope.c: Fix indentation.
308 * macrotab.c: Fix indentation.
309 * macrotab.h: Fix indentation.
310 * main.c: Fix indentation.
311 * mdebugread.c: Fix indentation.
312 * mep-tdep.c: Fix indentation.
313 * mi/mi-cmd-catch.c: Fix indentation.
314 * mi/mi-cmd-disas.c: Fix indentation.
315 * mi/mi-cmd-env.c: Fix indentation.
316 * mi/mi-cmd-stack.c: Fix indentation.
317 * mi/mi-cmd-var.c: Fix indentation.
318 * mi/mi-cmds.c: Fix indentation.
319 * mi/mi-main.c: Fix indentation.
320 * mi/mi-parse.c: Fix indentation.
321 * microblaze-tdep.c: Fix indentation.
322 * minidebug.c: Fix indentation.
323 * minsyms.c: Fix indentation.
324 * mips-linux-nat.c: Fix indentation.
325 * mips-linux-tdep.c: Fix indentation.
326 * mips-nbsd-tdep.c: Fix indentation.
327 * mips-tdep.c: Fix indentation.
328 * mn10300-linux-tdep.c: Fix indentation.
329 * mn10300-tdep.c: Fix indentation.
330 * moxie-tdep.c: Fix indentation.
331 * msp430-tdep.c: Fix indentation.
332 * namespace.h: Fix indentation.
333 * nat/fork-inferior.c: Fix indentation.
334 * nat/gdb_ptrace.h: Fix indentation.
335 * nat/linux-namespaces.c: Fix indentation.
336 * nat/linux-osdata.c: Fix indentation.
337 * nat/netbsd-nat.c: Fix indentation.
338 * nat/x86-dregs.c: Fix indentation.
339 * nbsd-nat.c: Fix indentation.
340 * nbsd-tdep.c: Fix indentation.
341 * nios2-linux-tdep.c: Fix indentation.
342 * nios2-tdep.c: Fix indentation.
343 * nto-procfs.c: Fix indentation.
344 * nto-tdep.c: Fix indentation.
345 * objfiles.c: Fix indentation.
346 * objfiles.h: Fix indentation.
347 * opencl-lang.c: Fix indentation.
348 * or1k-tdep.c: Fix indentation.
349 * osabi.c: Fix indentation.
350 * osabi.h: Fix indentation.
351 * osdata.c: Fix indentation.
352 * p-lang.c: Fix indentation.
353 * p-typeprint.c: Fix indentation.
354 * p-valprint.c: Fix indentation.
355 * parse.c: Fix indentation.
356 * ppc-linux-nat.c: Fix indentation.
357 * ppc-linux-tdep.c: Fix indentation.
358 * ppc-nbsd-nat.c: Fix indentation.
359 * ppc-nbsd-tdep.c: Fix indentation.
360 * ppc-obsd-nat.c: Fix indentation.
361 * ppc-ravenscar-thread.c: Fix indentation.
362 * ppc-sysv-tdep.c: Fix indentation.
363 * ppc64-tdep.c: Fix indentation.
364 * printcmd.c: Fix indentation.
365 * proc-api.c: Fix indentation.
366 * producer.c: Fix indentation.
367 * producer.h: Fix indentation.
368 * prologue-value.c: Fix indentation.
369 * prologue-value.h: Fix indentation.
370 * psymtab.c: Fix indentation.
371 * python/py-arch.c: Fix indentation.
372 * python/py-bpevent.c: Fix indentation.
373 * python/py-event.c: Fix indentation.
374 * python/py-event.h: Fix indentation.
375 * python/py-finishbreakpoint.c: Fix indentation.
376 * python/py-frame.c: Fix indentation.
377 * python/py-framefilter.c: Fix indentation.
378 * python/py-inferior.c: Fix indentation.
379 * python/py-infthread.c: Fix indentation.
380 * python/py-objfile.c: Fix indentation.
381 * python/py-prettyprint.c: Fix indentation.
382 * python/py-registers.c: Fix indentation.
383 * python/py-signalevent.c: Fix indentation.
384 * python/py-stopevent.c: Fix indentation.
385 * python/py-stopevent.h: Fix indentation.
386 * python/py-threadevent.c: Fix indentation.
387 * python/py-tui.c: Fix indentation.
388 * python/py-unwind.c: Fix indentation.
389 * python/py-value.c: Fix indentation.
390 * python/py-xmethods.c: Fix indentation.
391 * python/python-internal.h: Fix indentation.
392 * python/python.c: Fix indentation.
393 * ravenscar-thread.c: Fix indentation.
394 * record-btrace.c: Fix indentation.
395 * record-full.c: Fix indentation.
396 * record.c: Fix indentation.
397 * reggroups.c: Fix indentation.
398 * regset.h: Fix indentation.
399 * remote-fileio.c: Fix indentation.
400 * remote.c: Fix indentation.
401 * reverse.c: Fix indentation.
402 * riscv-linux-tdep.c: Fix indentation.
403 * riscv-ravenscar-thread.c: Fix indentation.
404 * riscv-tdep.c: Fix indentation.
405 * rl78-tdep.c: Fix indentation.
406 * rs6000-aix-tdep.c: Fix indentation.
407 * rs6000-lynx178-tdep.c: Fix indentation.
408 * rs6000-nat.c: Fix indentation.
409 * rs6000-tdep.c: Fix indentation.
410 * rust-lang.c: Fix indentation.
411 * rx-tdep.c: Fix indentation.
412 * s12z-tdep.c: Fix indentation.
413 * s390-linux-tdep.c: Fix indentation.
414 * score-tdep.c: Fix indentation.
415 * ser-base.c: Fix indentation.
416 * ser-mingw.c: Fix indentation.
417 * ser-uds.c: Fix indentation.
418 * ser-unix.c: Fix indentation.
419 * serial.c: Fix indentation.
420 * sh-linux-tdep.c: Fix indentation.
421 * sh-nbsd-tdep.c: Fix indentation.
422 * sh-tdep.c: Fix indentation.
423 * skip.c: Fix indentation.
424 * sol-thread.c: Fix indentation.
425 * solib-aix.c: Fix indentation.
426 * solib-darwin.c: Fix indentation.
427 * solib-frv.c: Fix indentation.
428 * solib-svr4.c: Fix indentation.
429 * solib.c: Fix indentation.
430 * source.c: Fix indentation.
431 * sparc-linux-tdep.c: Fix indentation.
432 * sparc-nbsd-tdep.c: Fix indentation.
433 * sparc-obsd-tdep.c: Fix indentation.
434 * sparc-ravenscar-thread.c: Fix indentation.
435 * sparc-tdep.c: Fix indentation.
436 * sparc64-linux-tdep.c: Fix indentation.
437 * sparc64-nbsd-tdep.c: Fix indentation.
438 * sparc64-obsd-tdep.c: Fix indentation.
439 * sparc64-tdep.c: Fix indentation.
440 * stabsread.c: Fix indentation.
441 * stack.c: Fix indentation.
442 * stap-probe.c: Fix indentation.
443 * stubs/ia64vms-stub.c: Fix indentation.
444 * stubs/m32r-stub.c: Fix indentation.
445 * stubs/m68k-stub.c: Fix indentation.
446 * stubs/sh-stub.c: Fix indentation.
447 * stubs/sparc-stub.c: Fix indentation.
448 * symfile-mem.c: Fix indentation.
449 * symfile.c: Fix indentation.
450 * symfile.h: Fix indentation.
451 * symmisc.c: Fix indentation.
452 * symtab.c: Fix indentation.
453 * symtab.h: Fix indentation.
454 * target-float.c: Fix indentation.
455 * target.c: Fix indentation.
456 * target.h: Fix indentation.
457 * tic6x-tdep.c: Fix indentation.
458 * tilegx-linux-tdep.c: Fix indentation.
459 * tilegx-tdep.c: Fix indentation.
460 * top.c: Fix indentation.
461 * tracefile-tfile.c: Fix indentation.
462 * tracepoint.c: Fix indentation.
463 * tui/tui-disasm.c: Fix indentation.
464 * tui/tui-io.c: Fix indentation.
465 * tui/tui-regs.c: Fix indentation.
466 * tui/tui-stack.c: Fix indentation.
467 * tui/tui-win.c: Fix indentation.
468 * tui/tui-winsource.c: Fix indentation.
469 * tui/tui.c: Fix indentation.
470 * typeprint.c: Fix indentation.
471 * ui-out.h: Fix indentation.
472 * unittests/copy_bitwise-selftests.c: Fix indentation.
473 * unittests/memory-map-selftests.c: Fix indentation.
474 * utils.c: Fix indentation.
475 * v850-tdep.c: Fix indentation.
476 * valarith.c: Fix indentation.
477 * valops.c: Fix indentation.
478 * valprint.c: Fix indentation.
479 * valprint.h: Fix indentation.
480 * value.c: Fix indentation.
481 * value.h: Fix indentation.
482 * varobj.c: Fix indentation.
483 * vax-tdep.c: Fix indentation.
484 * windows-nat.c: Fix indentation.
485 * windows-tdep.c: Fix indentation.
486 * xcoffread.c: Fix indentation.
487 * xml-syscall.c: Fix indentation.
488 * xml-tdesc.c: Fix indentation.
489 * xstormy16-tdep.c: Fix indentation.
490 * xtensa-config.c: Fix indentation.
491 * xtensa-linux-nat.c: Fix indentation.
492 * xtensa-linux-tdep.c: Fix indentation.
493 * xtensa-tdep.c: Fix indentation.
494
495 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
496 Craig Blackmore <craig.blackmore@embecosm.com>
497
498 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
499 as an unsigned value.
500
501 2020-11-01 Tom Tromey <tom@tromey.com>
502
503 * dbxread.c (dbx_end_psymtab): Update.
504 * dwarf2/read.c (process_psymtab_comp_unit_reader)
505 (build_type_psymtabs_reader): Update.
506 * xcoffread.c (xcoff_end_psymtab): Update.
507 * ctfread.c (scan_partial_symbols): Update.
508 * psymtab.c (sort_pst_symbols): Remove.
509 (partial_symtab::end): Rename from end_psymtab_common. Inline
510 sort_pst_symbols.
511 * psympriv.h (struct partial_symtab) <end>: New method.
512 (end_psymtab_common): Don't declare.
513
514 2020-11-01 Tom Tromey <tom@tromey.com>
515
516 * symmisc.c (count_psyms): New function.
517 (print_objfile_statistics): Use it.
518 * psymtab.c (append_psymbol_to_list): Remove.
519 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
520 * objfiles.h (struct objstats) <n_psyms>: Remove.
521
522 2020-11-01 Tom Tromey <tom@tromey.com>
523
524 * dbxread.c (dbx_end_psymtab): Update.
525 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
526 (build_type_psymtabs_reader): Update.
527 * xcoffread.c (xcoff_end_psymtab): Update.
528 * ctfread.c (scan_partial_symbols): Update.
529 * psympriv.h (end_psymtab_common): Update.
530 * psymtab.c (end_psymtab_common): Remove objfile parameter.
531 (sort_pst_symbols): Likewise.
532
533 2020-11-01 Tom Tromey <tom@tromey.com>
534
535 * dbxread.c (dbx_symfile_read): Update.
536 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
537 * xcoffread.c (xcoff_initial_scan): Update.
538 * psympriv.h (init_psymbol_list): Don't declare.
539 * psymtab.c (init_psymbol_list): Remove.
540
541 2020-11-01 Joel Brobecker <brobecker@adacore.com>
542
543 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
544 gnat_encoded_fixed_type_info. Update all callers.
545
546 2020-11-01 Joel Brobecker <brobecker@adacore.com>
547
548 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
549 line too long.
550
551 2020-11-01 Joel Brobecker <brobecker@adacore.com>
552
553 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
554 cast_from_fixed. Update all callers.
555 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
556 Update all callers.
557 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
558 Update all callers.
559 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
560 ada_scaling_factor.
561 * ada-typeprint.c: Replace call to ada_scaling_factor by call
562 to print_gnat_encoded_fixed_point_type.
563 * ada-valprint.c: Likewise.
564
565 2020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
566
567 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
568 (debug_prefixed_printf): Add check of debug_displaced flag.
569 * linux-nat.c (linux_nat_debug_printf): Add check of
570 debug_linux_nat flag.
571
572 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
573
574 * infrun.c (infrun_debug_printf_1): Remove.
575 (displaced_debug_printf_1): Remove.
576 (stop_all_threads): Use debug_prefixed_printf.
577 * infrun.h (infrun_debug_printf_1): Remove.
578 (infrun_debug_printf): Use debug_prefixed_printf.
579 (displaced_debug_printf_1): Remove.
580 (displaced_debug_printf): Use debug_prefixed_printf.
581 * linux-nat.c (linux_nat_debug_printf_1): Remove.
582 (linux_nat_debug_printf): Use debug_prefixed_printf.
583
584 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
585
586 * configure: Re-generate.
587 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
588 AC_LANG_PROGRAM.
589
590 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
591
592 * configure: Re-generate.
593
594 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
595
596 * configure: Re-generate.
597
598 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
599
600 * configure: Re-generate.
601
602 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
603
604 * configure: Re-generate.
605
606 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
607
608 * acinclude.m4: Modernize.
609 * configure: Re-generate.
610
611 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
612
613 * configure.ac: Modernize.
614 * configure: Re-generate.
615
616 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
617
618 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
619 * configure: Re-generate.
620 * configure.ac: Remove AM_PROG_CC_STDC.
621
622 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
623
624 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
625 AC_CANONICAL_SYSTEM.
626 * configure: Re-generate.
627
628 2020-10-30 Simon Marchi <simon.marchi@efficios.com>
629
630 * infrun.h (displaced_debug_printf): New macro. Replace
631 displaced debug prints throughout to use it.
632 (displaced_debug_printf_1): New declaration.
633 (displaced_step_dump_bytes): Return string, remove ui_file
634 parameter, update all callers.
635 * infrun.c (displaced_debug_printf_1): New function.
636 (displaced_step_dump_bytes): Return string, remove ui_file
637 parameter
638
639 2020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
640
641 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
642
643 2020-10-30 Tom Tromey <tromey@adacore.com>
644
645 * Makefile.in (stamp-init): Depend on config.status.
646
647 2020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
648
649 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
650
651 2020-10-30 Pedro Alves <pedro@palves.net>
652
653 * thread.c (lookup_selected_frame): Move ...
654 * frame.c (lookup_selected_frame): ... here.
655
656 2020-10-30 Pedro Alves <pedro@palves.net>
657
658 * blockframe.c (block_innermost_frame): Use get_selected_frame.
659 * frame.c
660 (scoped_restore_selected_frame::scoped_restore_selected_frame):
661 Use save_selected_frame. Save language as well.
662 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
663 Use restore_selected_frame, and restore language as well.
664 (selected_frame_id, selected_frame_level): New.
665 (selected_frame): Update comments.
666 (save_selected_frame, restore_selected_frame): New.
667 (get_selected_frame): Use lookup_selected_frame.
668 (get_selected_frame_if_set): Delete.
669 (select_frame): Record selected_frame_level and selected_frame_id.
670 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
671 fields.
672 (get_selected_frame): Make 'message' parameter optional.
673 (get_selected_frame_if_set): Delete declaration.
674 (select_frame): Update comments.
675 (save_selected_frame, restore_selected_frame)
676 (lookup_selected_frame): Declare.
677 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
678 * infrun.c (struct infcall_control_state) <selected_frame_level>:
679 New field.
680 (save_infcall_control_state): Use save_selected_frame.
681 (restore_selected_frame): Delete.
682 (restore_infcall_control_state): Use restore_selected_frame.
683 * stack.c (select_frame_command_core, frame_command_core): Use
684 get_selected_frame.
685 * thread.c (restore_selected_frame): Rename to ...
686 (lookup_selected_frame): ... this and make extern. Select the
687 current frame if the frame level is -1.
688 (scoped_restore_current_thread::restore): Also restore the
689 language.
690 (scoped_restore_current_thread::~scoped_restore_current_thread):
691 Don't try/catch.
692 (scoped_restore_current_thread::scoped_restore_current_thread):
693 Save the language as well. Use save_selected_frame.
694
695 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
696
697 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
698 documentation.
699 * gdbarch.h: Re-generate.
700
701 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
702
703 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
704 parameter.
705 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
706 Likewise.
707 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
708 Likewise.
709 * arch-utils.c (default_displaced_step_hw_singlestep):
710 Likewise.
711 * arch-utils.h (default_displaced_step_hw_singlestep):
712 Likewise.
713 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
714 Likewise.
715 * s390-tdep.c (s390_displaced_step_hw_singlestep):
716 Likewise.
717 * gdbarch.c: Re-generate.
718 * gdbarch.h: Re-generate.
719 * infrun.c (resume_1): Adjust.
720
721 2020-10-29 Tom Tromey <tom@tromey.com>
722
723 * progspace.c (program_space::~program_space): Don't call
724 exec_close.
725
726 2020-10-29 Tom Tromey <tom@tromey.com>
727
728 * exec.c (exec_target::close): Don't change current program
729 space.
730
731 2020-10-29 Tom Tromey <tom@tromey.com>
732
733 * symfile.c (add_symbol_file_command): Update.
734 * exec.c (program_space::add_target_sections): Rename.
735 * symfile-mem.c (symbol_file_add_from_memory): Update.
736 * progspace.h (struct program_space) <add_target_sections>:
737 Declare new overload.
738 * exec.h (add_target_sections_of_objfile): Don't declare.
739
740 2020-10-29 Tom Tromey <tom@tromey.com>
741
742 * solib.c (solib_map_sections): Update.
743 * exec.c (program_space::add_target_sections): Now a method.
744 (exec_file_attach): Update.
745 * exec.h (add_target_sections): Don't declare.
746 * progspace.h (struct program_space) <add_target_sections>:
747 Declare.
748
749 2020-10-29 Tom Tromey <tom@tromey.com>
750
751 * progspace.h (struct program_space) <remove_target_sections>:
752 Declare.
753 * exec.c (program_space::remove_target_sections): Now a method.
754 * exec.h (remove_target_sections): Don't declare.
755
756 2020-10-29 Tom Tromey <tom@tromey.com>
757
758 * inferior.c (delete_inferior): Update.
759 * progspace.c (program_space::empty): Rename from
760 program_space_empty_p. Return bool.
761 * progspace.h (struct program_space) <empty>: New method.
762 (program_space_empty_p): Don't declare.
763
764 2020-10-29 Tom Tromey <tom@tromey.com>
765
766 * progspace.c (program_space::~program_space): Don't call
767 clear_program_space_solib_cache.
768 (program_space::clear_solib_cache): Rename from
769 clear_solib_cache.
770 * solib.c (handle_solib_event): Update.
771 * progspace.h (struct program_space) <clear_solib_cache>: New
772 method.
773 (clear_program_space_solib_cache): Don't declare.
774
775 2020-10-29 Tom Tromey <tom@tromey.com>
776
777 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
778 * target.c (info_target_command): Update.
779 * symfile.c (syms_from_objfile_1, finish_new_objfile)
780 (symbol_file_clear, reread_symbols): Update.
781 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
782 * stabsread.c (scan_file_globals): Update.
783 * solib.c (update_solib_list): Update.
784 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
785 (svr4_fetch_objfile_link_map, enable_break)
786 (svr4_relocate_main_executable)
787 (svr4_iterate_over_objfiles_in_search_order): Update.
788 * solib-frv.c (lm_base, enable_break)
789 (frv_relocate_main_executable): Update.
790 (main_got, frv_fdpic_find_canonical_descriptor): Update.
791 (frv_fetch_objfile_link_map): Update.
792 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
793 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
794 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
795 * remote.c (remote_target::get_offsets): Update.
796 (remote_target::start_remote)
797 (extended_remote_target::post_attach): Update.
798 * objfiles.c (entry_point_address_query): Update.
799 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
800 * minsyms.c (get_symbol_leading_char): Update.
801 * frame.c (inside_main_func): Update.
802 * progspace.h (symfile_objfile): Remove macro.
803
804 2020-10-29 Tom Tromey <tom@tromey.com>
805
806 * exec.c (exec_file_attach): Update.
807 * progspace.c (program_space::exec_close): Update.
808 * progspace.h (struct program_space) <ebfd>: Now a
809 gdb_bfd_ref_ptr.
810 <set_exec_bfd>: Change argument type.
811 <exec_bfd>: Update.
812
813 2020-10-29 Tom Tromey <tom@tromey.com>
814
815 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
816 * symfile.c (reread_symbols): Update.
817 * symfile-mem.c (add_symbol_file_from_memory_command)
818 (add_vsyscall_page): Update.
819 * source-cache.c (source_cache::get_plain_source_lines): Update.
820 * solib-svr4.c (find_program_interpreter, elf_locate_base)
821 (svr4_current_sos_direct, svr4_exec_displacement)
822 (svr4_relocate_main_executable): Update.
823 (svr4_iterate_over_objfiles_in_search_order): Update.
824 * solib-frv.c (enable_break2, enable_break): Update.
825 * solib-dsbt.c (lm_base, enable_break): Update.
826 * solib-darwin.c (find_program_interpreter)
827 (darwin_solib_create_inferior_hook): Update.
828 * sol-thread.c (rw_common, ps_pdmodel): Update.
829 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
830 * remote.c (compare_sections_command)
831 (remote_target::trace_set_readonly_regions): Update.
832 * remote-sim.c (get_sim_inferior_data)
833 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
834 (gdbsim_target_open, gdbsim_target::files_info): Update.
835 * exec.h (exec_bfd): Remove macro.
836 * progspace.c (initialize_progspace): Update.
837 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
838 Update.
839 * nto-procfs.c (nto_procfs_target::post_attach)
840 (nto_procfs_target::create_inferior): Update.
841 * maint.c (maintenance_info_sections): Update.
842 * linux-thread-db.c (thread_db_target::get_thread_local_address):
843 Update.
844 * infcmd.c (post_create_inferior): Update.
845 * gcore.c (default_gcore_arch, default_gcore_target): Update.
846 (objfile_find_memory_regions): Update.
847 * exec.c (validate_exec_file, exec_file_attach)
848 (exec_read_partial_read_only, print_section_info): Update.
849 * corelow.c (core_target_open): Update.
850 * corefile.c (reopen_exec_file, validate_files): Update.
851 * arm-tdep.c (gdb_print_insn_arm): Update.
852 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
853 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
854 methods.
855
856 2020-10-29 Tom Tromey <tom@tromey.com>
857
858 * progspace.h (current_target_sections): Remove macro.
859 * solib-svr4.c (scan_dyntag): Update.
860 * solib-dsbt.c (scan_dyntag): Update.
861 * exec.c (exec_target::close): Update.
862 (add_target_sections, add_target_sections_of_objfile)
863 (remove_target_sections, exec_target::get_section_table)
864 (exec_target::files_info, set_section_command)
865 (exec_set_section_address, exec_target::has_memory)
866 (exec_target::has_memory): Update.
867
868 2020-10-29 Tom Tromey <tom@tromey.com>
869
870 * source-cache.c (source_cache::get_plain_source_lines): Use
871 current_program_space.
872 * corefile.c (reopen_exec_file): Use current_program_space.
873 * exec.c (exec_file_attach): Use current_program_space.
874 * exec.h (exec_bfd_mtime): Remove.
875
876 2020-10-29 Tom Tromey <tom@tromey.com>
877
878 * gcore.c (default_gcore_mach): Remove.
879 (create_gcore_bfd): Update.
880
881 2020-10-29 Tom Tromey <tom@tromey.com>
882
883 * progspace.c (program_space::exec_close): New method, from
884 exec_close in exec.c.
885 * exec.c (exec_close): Move to progspace.c.
886 (exec_target::close, exec_file_attach): Update.
887 * progspace.h (struct program_space) <exec_close>: Declare
888 method.
889
890 2020-10-29 Tom Tromey <tom@tromey.com>
891
892 * progspace.h (struct program_space) <exec_filename>: Rename from
893 pspace_exec_filename. Now a unique_xmalloc_ptr.
894 * inferior.c (print_selected_inferior): Update.
895 (print_inferior): Update.
896 * mi/mi-main.c (print_one_inferior): Update.
897 * exec.h (exec_filename): Remove macro.
898 * corefile.c (get_exec_file): Update.
899 * exec.c (exec_close): Update.
900 (exec_file_attach): Update.
901 * progspace.c (clone_program_space): Update.
902 (print_program_space): Update.
903
904 2020-10-29 Tom Tromey <tom@tromey.com>
905
906 * target-section.h (struct target_section): Add constructor.
907 * exec.c (build_section_table, add_target_sections_of_objfile):
908 Update.
909 * corelow.c (core_target::build_file_mappings): Update.
910
911 2020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
912
913 PR gdb/19318
914 * inferior.c (detach_inferior_command): Restore the current thread.
915 (kill_inferior_command): Ditto.
916
917 2020-10-28 Tom de Vries <tdevries@suse.de>
918
919 PR symtab/26772
920 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
921 map, check it in the "best match" loop.
922
923 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
924
925 * m32c-tdep.c: Remove unused includes.
926
927 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
928
929 * xtensa-tdep.c: Remove includes.
930
931 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
932
933 * breakpoint.c (struct condition_command_opts): New struct.
934 (condition_command_option_defs): New static global.
935 (make_condition_command_options_def_group): New function.
936 (condition_completer): Update to consider the '-force' flag.
937 (condition_command): Use gdb::option for the '-force' flag.
938
939 2020-10-27 Tom de Vries <tdevries@suse.de>
940
941 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
942 symbols in section check.
943
944 2020-10-27 Tom de Vries <tdevries@suse.de>
945
946 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
947
948 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
949
950 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
951 * breakpoint.c: Update the help text of the 'condition' and 'break'
952 commands.
953 (set_breakpoint_condition): Take a new bool parameter
954 to control whether condition definition should be forced even when
955 the condition expression is invalid in all of the current locations.
956 (condition_command): Update the call to 'set_breakpoint_condition'.
957 (find_condition_and_thread): Take the "-force-condition" flag into
958 account.
959 * linespec.c (linespec_keywords): Add "-force-condition" as an
960 element.
961 (FORCE_KEYWORD_INDEX): New #define.
962 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
963 as a keyword.
964 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
965 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
966 * python/py-breakpoint.c (bppy_set_condition): Ditto.
967 * NEWS: Mention the changes to the 'break' and 'condition' commands.
968
969 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
970
971 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
972 * breakpoint.c (set_breakpoint_location_condition): New function.
973 (set_breakpoint_condition): Disable a breakpoint location if parsing
974 the condition string gives an error.
975 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
976 (build_target_condition_list): Ditto.
977 (build_target_command_list): Ditto.
978 (build_bpstat_chain): Ditto.
979 (print_one_breakpoint_location): Ditto.
980 (print_one_breakpoint): Ditto.
981 (breakpoint_1): Ditto.
982 (bp_location::bp_location): Ditto.
983 (locations_are_equal): Ditto.
984 (update_breakpoint_locations): Ditto.
985 (enable_disable_bp_num_loc): Ditto.
986 (init_breakpoint_sal): Use set_breakpoint_location_condition.
987 (find_condition_and_thread_for_sals): New static function.
988 (create_breakpoint): Call find_condition_and_thread_for_sals.
989 (location_to_sals): Call find_condition_and_thread_for_sals instead
990 of find_condition_and_thread.
991
992 2020-10-26 Tom de Vries <tdevries@suse.de>
993
994 * dwarf2/read.c (process_full_comp_unit): Call
995 dwarf2_find_base_address.
996
997 2020-10-26 Tom Tromey <tromey@adacore.com>
998
999 * gdbtypes.c (create_range_type): Revert previous patch. Add
1000 comment.
1001
1002 2020-10-26 Pedro Alves <pedro@palves.net>
1003
1004 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
1005 (my_waitpid): Use gdb::handle_eintr.
1006
1007 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
1008
1009 * acinclude.m4: Update ptrace.m4 path.
1010 * ptrace.m4: Moved to gdbsupport.
1011
1012 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1013
1014 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
1015 instead of target_gdbarch.
1016
1017 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1018
1019 * jit.c (jit_reader_load_command): Pass current inferior.
1020 (jit_inferior_init): Change parameter type to inferior, use it.
1021 (jit_inferior_created): Remove.
1022 (jit_inferior_created_hook): Pass inferior parameter down.
1023 (_initialize_jit): Use jit_inferior_created_hook instead of
1024 jit_inferior_created.
1025 * jit.h (jit_inferior_created_hook): Add inferior parameter.
1026 * infrun.c (follow_exec): Pass inferior to
1027 jit_inferior_created_hook.
1028
1029 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
1030
1031 * linux-thread-db.c (check_pid_namespace_match): Add inferior
1032 parameter and use it.
1033 (thread_db_inferior_created): Pass inferior argument.
1034
1035 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
1036
1037 * aix-thread.c (aix_thread_inferior_created): Add inferior
1038 parameter.
1039 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
1040 * dummy-frame.c (cleanup_dummy_frames): Likewise.
1041 * jit.c (jit_inferior_created): Likewise.
1042 * linux-thread-db.c (thread_db_inferior_created): Likewise.
1043 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
1044 * observable.h (inferior_created): Likewise.
1045 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
1046 * symfile-mem.c (add_vsyscall_page): Likewise.
1047 * infcmd.c (post_create_inferior): Pass inferior argument.
1048
1049 2020-10-24 Joel Brobecker <brobecker@adacore.com>
1050
1051 GDB 10.1 released.
1052
1053 2020-10-23 Joel Brobecker <brobecker@adacore.com>
1054
1055 * ada-typeprint.c (ada_print_type): Remove superfluous second call
1056 to ada_check_typedef.
1057
1058 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1059
1060 * f-exp.y (f_parse): Rename to...
1061 (f_language::parser): ...this.
1062 * f-lang.c (f_get_encoding): Rename to...
1063 (f_language::get_encoding): ...this.
1064 (f_op_print_tab): Rename to...
1065 (f_language::op_print_tab): ...this.
1066 (exp_descriptor_f): Rename to...
1067 (f_language::exp_descriptor_tab): ...this.
1068 (class f_language): Moved to f-lang.h.
1069 (f_language::language_arch_info): New function, moved out of class
1070 declaration.
1071 (f_language::search_name_hash): Likewise.
1072 (f_language::lookup_symbol_nonlocal): Likewise.
1073 (f_language::get_symbol_name_matcher_inner): Likewise.
1074 * f-lang.h: Add 'valprint.h' include.
1075 (class f_language): Moved here from f-lang.c.
1076 * f-typeprint.c (f_type_print_args): Delete commented out
1077 declaration.
1078 (f_print_typedef): Rename to...
1079 (f_language::print_typedef): ...this.
1080 (f_print_type): Rename to...
1081 (f_language::print_type): ...this.
1082 (f_type_print_varspec_prefix): Delete declaration and rename to...
1083 (f_language::f_type_print_varspec_prefix): ...this.
1084 (f_type_print_varspec_suffix): Delete declaration and rename to...
1085 (f_language::f_type_print_varspec_suffix): ...this.
1086 (f_type_print_base): Delete declaration and rename to...
1087 (f_language::f_type_print_base): ...this.
1088 * f-valprint.c (f_value_print_inner): Rename to...
1089 (f_language::value_print_inner): ...this.
1090 * parse.c: Delete 'f-lang.h' include.
1091
1092 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1093
1094 * language.h (language_defn::print_type): Add variable names in
1095 declaration, and update header comment.
1096
1097 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1098
1099 * ada-lang.c (ada_language::demangle): Rename to...
1100 (ada_language::demangle_symbol): ...this.
1101 * c-lang.c (cplus_language::demangle): Rename to...
1102 (cplus_language::demangle_symbol): ...this.
1103 * d-lang.c (d_language::demangle): Rename to...
1104 (d_language::demangle_symbol): ...this.
1105 * f-lang.c (f_language::demangle): Rename to...
1106 (f_language::demangle_symbol): ...this.
1107 * go-lang.c (go_language::demangle): Rename to...
1108 (go_language::demangle_symbol): ...this.
1109 * language.c (language_demangle): Update call to demangle_symbol.
1110 (auto_or_unknown_language::demangle): Rename to...
1111 (auto_or_unknown_language::demangle_symbol): ...this.
1112 * language.h (language_defn::demangle): Rename to...
1113 (language_defn::demangle_symbol): ...this.
1114 * objc-lang.c (objc_language::demangle): Rename to...
1115 (objc_language::demangle_symbol): ...this.
1116 * rust-lang.c (rust_language::demangle): Rename to...
1117 (rust_language::demangle_symbol): ...this.
1118
1119 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1120
1121 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
1122 (iterate_over_file_blocks): Replace use of macro with the macros
1123 definition.
1124
1125 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1126
1127 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
1128 * valprint.c (maybe_print_array_index): Replace use of macro with
1129 the macros definition.
1130
1131 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1132
1133 * ada-lang.c (ada_language::print_array_index): Call value_print
1134 directly.
1135 * language.c (language_defn::print_array_index): Likewise.
1136 * language.h (LA_VALUE_PRINT): Delete.
1137 * valprint.c (value_print): Call value_print on the
1138 current_language directly.
1139
1140 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1141
1142 * language.h (LA_PRINT_TYPEDEF): Delete.
1143 * typeprint.c (typedef_print): Call print_typedef directly on the
1144 current_language object.
1145
1146 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1147
1148 * m2-exp.y (m2_parse): Rename to...
1149 (m2_language::parser): ...this. Update function signature.
1150 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
1151 (m2_op_print): Rename to...
1152 (m2_language::op_print_tab): ...this, and make const.
1153 (exp_descriptor_modula2): Rename to...
1154 (m2_language::exp_descriptor_modula2): ...this.
1155 (class m2_language): Move to m2-lang.h.
1156 (m2_language::language_arch_info): New function, moved out of
1157 class declaration.
1158 (m2_language::printchar): New function, body from m2_printchar.
1159 (m2_language::printstr): New function, moved out of class
1160 declaration.
1161 (m2_language::emitchar): Likewise.
1162 * m2-lang.h (m2_parse): Delete declaration.
1163 (m2_print_typedef): Delete declaration.
1164 (m2_value_print_inner): Delete declaration.
1165 (class m2_language): Class declaration moved from m2-lang.c,
1166 larger functions are left in m2-lang.c.
1167 * m2-typeprint.c (m2_print_typedef): Rename to...
1168 (m2_language::print_typedef): ...this, and update function
1169 signature.
1170 * m2-valprint.c (m2_value_print_inner): Rename to...
1171 (m2_language::value_print_inner): ...this, replace use of
1172 LA_PRINT_STRING with a direct call to printstr member function,
1173 and update recursive call.
1174
1175 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1176
1177 * language.c (default_is_string_type_p): Delete, implementation
1178 moved into auto_or_unknown_language::is_string_type_p.
1179 (unk_op_print_tab): Moved into
1180 auto_or_unknown_language::opcode_print_table.
1181 (unknown_language_arch_info): Delete, implementation moved into
1182 auto_or_unknown_language::language_arch_info.
1183 (class auto_or_unknown_language): New class, member functions
1184 copied from unknown_language class, with some updates.
1185 (class unknown_language): Most member functions moved into
1186 auto_or_unknown_language class. Inherit from
1187 auto_or_unknown_language class.
1188 (class auto_language): Inherit from auto_or_unknown_language.
1189 Delete most member functions.
1190
1191 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
1192
1193 * stabsread.c (read_member_functions): Remove gdb_assert.
1194
1195 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
1196
1197 * gdbtypes.c (init_complex_type): Check target type name.
1198
1199 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1200
1201 * target-debug.h (target_debug_print_struct_target_ops_p):
1202 Remove.
1203 (target_debug_print_async_callback_ftype_p): Remove.
1204 (target_debug_print_struct_trace_state_variable_p): Remove.
1205 (target_debug_print_struct_traceframe_info_p): Remove.
1206 (target_debug_print_VEC__btrace_block_s__pp): Remove.
1207 (target_debug_print_enum_btrace_format): Remove.
1208 (target_debug_print_enum_info_proc_what): Remove.
1209 (target_debug_print_thread_info_pp): Remove.
1210
1211 2020-10-22 Simon Marchi <simon.marchi@efficios.com>
1212
1213 * target.h (struct target_ops) <make_corefile_notes>:
1214 Change return type to unique pointer.
1215 * target.c (dummy_make_corefile_notes): Likewise.
1216 * exec.c (struct exec_target) <make_corefile_notes>:
1217 Likewise.
1218 (exec_target::make_corefile_notes): Likewise.
1219 * procfs.c (class procfs_target) <make_corefile_notes>:
1220 Likewise.
1221 (procfs_do_thread_registers): Adjust to unique pointer.
1222 (struct procfs_corefile_thread_data): Add constructor.
1223 <note_data>: Change type to unique pointer.
1224 (procfs_corefile_thread_callback): Adjust to unique pointer.
1225 (procfs_target::make_corefile_notes): Change return type to
1226 unique pointer.
1227 * target-delegates.c: Re-generate.
1228 * gcore.c (write_gcore_file_1): Adjust.
1229 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
1230 New.
1231
1232 2020-10-22 Tom de Vries <tdevries@suse.de>
1233
1234 * block.c (find_block_in_blockvector): Make sure the returned block
1235 contains pc.
1236
1237 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1238
1239 PR gdb/26693
1240 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
1241 parameter.
1242 (load_cu): Pass existing CU.
1243 (process_imported_unit_die): Likewise.
1244 (follow_die_offset): Likewise.
1245
1246 2020-10-22 Luis Machado <luis.machado@linaro.org>
1247
1248 * corelow.c (core_target::xfer_partial): Also check for an empty
1249 m_core_unavailable_mappings vector.
1250
1251 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1252
1253 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
1254 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
1255 * f-exp.y (arglist): Allow for a series of subranges.
1256 (subrange): Add cases for subranges with strides.
1257 * f-lang.c (value_f90_subarray): Catch use of array strides and
1258 throw an error.
1259 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
1260
1261 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1262
1263 * expprint.c (print_subexp_standard): Change enum range_type to
1264 range_flag and rename variables to match.
1265 (dump_subexp_body_standard): Likewise.
1266 * expression.h (enum range_type): Rename to...
1267 (enum range_flag): ...this.
1268 (range_types): Rename to...
1269 (range_flags): ...this.
1270 * f-lang.c (value_f90_subarray): Change enum range_type to
1271 range_flag and rename variables to match.
1272 * parse.c (operator_length_standard): Likewise.
1273 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
1274 range_type to range_flag.
1275 * rust-lang.c (rust_evaluate_funcall): Likewise.
1276 (rust_range): Likewise.
1277 (rust_compute_range): Likewise.
1278 (rust_subscript): Likewise.
1279
1280 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1281
1282 * expprint.c (print_subexp_standard): Update to reflect changes to
1283 enum range_type.
1284 (dump_subexp_body_standard): Likewise.
1285 * expression.h (enum range_type): Convert to a bit field enum, and
1286 make the enum unsigned.
1287 * f-exp.y (subrange): Update to reflect changes to enum
1288 range_type.
1289 * f-lang.c (value_f90_subarray): Likewise.
1290 * parse.c (operator_length_standard): Likewise.
1291 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
1292 * rust-lang.c (rust_range): Likewise.
1293 (rust_compute_range): Likewise.
1294 (rust_subscript): Likewise.
1295
1296 2020-10-21 Simon Marchi <simon.marchi@efficios.com>
1297
1298 * infrun.c (displaced_step_in_progress_thread): Fix comment.
1299 (displaced_step_in_progress): Fix comment.
1300
1301 2020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
1302
1303 * gdbarch.sh (make_corefile_notes): Return unique pointer.
1304 * gdbarch.c: Re-generate.
1305 * gdbarch.h: Re-generate.
1306 * gcore.c (write_gcore_file_1): Adjust.
1307 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
1308 constructor.
1309 <note_data>: Change type to unique pointer.
1310 <abort_iteration>: Change type to bool.
1311 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
1312 (fbsd_collect_thread_registers): Return void, adjust.
1313 (struct fbsd_corefile_thread_data): Add construtor.
1314 <note_data>: Change type to unique pointer.
1315 (fbsd_corefile_thread): Adjust.
1316 (fbsd_make_corefile_notes): Return unique pointer, adjust.
1317 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
1318 to unique pointer, adjust.
1319 (struct linux_collect_regset_section_cb_data): Add constructor.
1320 <note_data>: Change type to unique pointer.
1321 <abort_iteration>: Change type to bool.
1322 (linux_collect_thread_registers): Return void, adjust.
1323 (struct linux_corefile_thread_data): Add constructor.
1324 <note_data>: Change type to unique pointer.
1325 (linux_corefile_thread): Adjust.
1326 (linux_make_corefile_notes): Return unique pointer, adjust.
1327
1328 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1329
1330 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
1331 * gdbarch.c: Re-generate.
1332 * gdbarch.h: Re-generate.
1333 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
1334 bool.
1335 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1336 Likewise.
1337 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
1338 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
1339 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
1340 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
1341
1342 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1343
1344 * gdbarch.sh: Make generated predicates return bool.
1345 * gdbarch.c: Re-generate.
1346 * gdbarch.h: Re-generate.
1347
1348 2020-10-20 Tom Tromey <tom@tromey.com>
1349
1350 * varobj-iter.h (struct varobj_item): Remove typedef.
1351
1352 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1353
1354 * infrun.c (currently_stepping): Change int to bool
1355 (maybe_software_singlestep): Likewise.
1356 (show_stop_on_solib_events): Likewise.
1357 (stepping_past_nonsteppable_watchpoint): Likewise.
1358 (displaced_step_in_progress_any_inferior): Likewise.
1359 (displaced_step_in_progress_thread): Likewise.
1360 (keep_going_stepped_thread): Likewise.
1361 (thread_still_needs_step_over): Likewise.
1362 (start_step_over): Likewise.
1363 (do_target_resume): Likewise.
1364 (resume_1): Likewise.
1365 (clear_proceed_status): Likewise.
1366 (thread_still_needs_step_over_bp): Likewise.
1367 (proceed): Likewise.
1368 (switch_back_to_stepped_thread): Likewise.
1369 (adjust_pc_after_break): Likewise.
1370 (stepped_in_from): Likewise.
1371 (handle_stop_requested): Likewise.
1372 (handle_syscall_event): Likewise.
1373 (handle_no_resumed): Likewise.
1374 (handle_inferior_event): Likewise.
1375 (finish_step_over): Likewise.
1376 (handle_signal_stop): Likewise.
1377 (process_event_stop_test): Likewise.
1378
1379 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1380
1381 * infrun.c (get_displaced_stepping_state): Fix comment.
1382
1383 2020-10-20 Andreas Schwab <schwab@linux-m68k.org>
1384
1385 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
1386
1387 2020-10-19 Tom Tromey <tromey@adacore.com>
1388
1389 PR tui/26719
1390 * tui/tui-winsource.h (struct tui_source_window_base)
1391 <refresh_window>: Rename from refresh_pad.
1392 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
1393 Rename from refresh_pad.
1394 (tui_source_window_base::show_source_content)
1395 (tui_source_window_base::do_scroll_horizontal): Update.
1396
1397 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1398
1399 * thread.c (_initialize_thread): Fine-tune the help text of
1400 'info threads'.
1401
1402 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1403
1404 * frame.c: Remove the unused 'uinteger_option_def' type alias.
1405
1406 2020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
1407
1408 * breakpoint.c (handle_jit_event): Add an argument, change how
1409 `jit_event_handler` is called.
1410
1411 2020-10-17 Tom Tromey <tom@tromey.com>
1412
1413 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
1414 (scan_xcoff_symtab): Update.
1415 * psymtab.h (class psymtab_storage) <global_psymbols,
1416 static_psymbols, current_global_psymbols,
1417 current_static_psymbols>: Remove.
1418 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
1419 (match_partial_symbol, lookup_partial_symbol): Update.
1420 (print_partial_symbols): Change parameters.
1421 (dump_psymtab, recursively_search_psymtabs)
1422 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
1423 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
1424 (concat): Remove.
1425 (end_psymtab_common): Simplify.
1426 (append_psymbol_to_list): Change parameters.
1427 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
1428 (init_psymbol_list): Simplify.
1429 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
1430 * psympriv.h (struct partial_symtab) <empty>: New method.
1431 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
1432 Remove.
1433 <global_psymbols, static_psymbols>: New members.
1434 <add_psymbol>: New methods.
1435 (add_psymbol_to_list): Don't declare.
1436 (psymbol_placement): Move earlier.
1437 * mdebugread.c (parse_partial_symbols): Update.
1438 (handle_psymbol_enumerators): Change parameters.
1439 (mdebug_expand_psymtab): Update.
1440 * dwarf2/read.c (process_psymtab_comp_unit_reader)
1441 (add_partial_symbol): Update.
1442 * dwarf2/index-write.c (write_psymbols): Change parameters.
1443 (write_one_signatured_type): Update.
1444 (recursively_count_psymbols): Update.
1445 (recursively_write_psymbols): Update.
1446 (class debug_names) <recursively_write_psymbols>: Update.
1447 <write_psymbols>: Change parameters.
1448 <write_one_signatured_type>: Update.
1449 * dbxread.c (read_dbx_symtab): Update.
1450 (dbx_end_psymtab): Use partial_symtab::empty.
1451 * ctfread.c (struct ctf_context) <pst>: New member.
1452 (create_partial_symtab): Set it.
1453 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
1454 (scan_partial_symbols): Use the psymtab's context. Update.
1455
1456 2020-10-17 Tom Tromey <tom@tromey.com>
1457
1458 * valprint.c (generic_value_print): Remove comment.
1459 * m2-valprint.c (m2_value_print_inner): Remove comment.
1460 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
1461 type.
1462
1463 2020-10-17 Tom de Vries <tdevries@suse.de>
1464
1465 PR symtab/26317
1466 * source.c (select_source_symtab): Handling sal.symtab == NULL for
1467 symbol main.
1468
1469 2020-10-14 Tom de Vries <tdevries@suse.de>
1470
1471 PR gdb/26733
1472 * solib.c (solib_contains_address_p): Handle
1473 'solib->sections == nullptr'.
1474
1475 2020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
1476
1477 PR gdb/26642
1478 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
1479 target can't do async.
1480 * target.c (target_wait): Assert that we don't pass
1481 TARGET_WNOHANG to a target that can't async.
1482
1483 2020-10-13 Kamil Rytarowski <n54@gmx.com>
1484
1485 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
1486 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
1487 * alpha-bsd-nat.c: Adjust include.
1488 * alpha-bsd-tdep.h: Adjust comment.
1489 * alpha-nbsd-tdep.c: Rename to ...
1490 * alpha-netbsd-tdep.c: ... this, adjust include.
1491 * amd64-nbsd-nat.c: Rename to ...
1492 * amd64-netbsd-nat.c: ... this, adjust include.
1493 * amd64-nbsd-tdep.c: Rename to ...
1494 * amd64-netbsd-tdep.c: ... this, adjust include.
1495 * amd64-tdep.h: Adjust include.
1496 * arm-nbsd-nat.c: Rename to ...
1497 * arm-netbsd-nat.c: ... this, adjust include.
1498 * arm-nbsd-tdep.c: Rename to ...
1499 * arm-netbsd-tdep.c: ... this, adjust include.
1500 * arm-nbsd-tdep.h: Rename to ...
1501 * arm-netbsd-tdep.h: ... this, adjust include.
1502 * configure.nat: Adjust file lists.
1503 * configure.tgt: Likewise.
1504 * hppa-nbsd-nat.c: Rename to ...
1505 * hppa-netbsd-nat.c: ... this, adjust include.
1506 * hppa-nbsd-tdep.c: Rename to ...
1507 * hppa-netbsd-tdep.c: ... this, adjust include.
1508 * i386-nbsd-nat.c: Rename to ...
1509 * i386-netbsd-nat.c: ... this, adjust include.
1510 * i386-nbsd-tdep.c: Rename to ...
1511 * i386-netbsd-tdep.c: ... this, adjust include.
1512 * m68k-bsd-nat.c: Adjust include.
1513 * mips-nbsd-nat.c: Rename to ...
1514 * mips-netbsd-nat.c: ... this, adjust include.
1515 * mips-nbsd-tdep.c: Rename to ...
1516 * mips-netbsd-tdep.c: ... this, adjust include.
1517 * mips-nbsd-tdep.h: Rename to ...
1518 * mips-netbsd-tdep.h: ... this.
1519 * nbsd-nat.c: Rename to ...
1520 * netbsd-nat.c: ... this, adjust include.
1521 * nbsd-nat.h: Rename to ...
1522 * netbsd-nat.h: ... this, adjust include.
1523 * nbsd-tdep.c: Rename to ...
1524 * netbsd-tdep.c: ... this, adjust include.
1525 * nbsd-tdep.h: Rename to ...
1526 * netbsd-tdep.h: ... this.
1527 * ppc-nbsd-nat.c: Rename to ...
1528 * ppc-netbsd-nat.c: ... this, adjust include.
1529 * ppc-nbsd-tdep.c: Rename to ...
1530 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
1531 * ppc-nbsd-tdep.h: Rename to ...
1532 * ppc-netbsd-tdep.h: ... this.
1533 * sh-nbsd-nat.c: Rename to ...
1534 * sh-netbsd-nat.c: ... this, adjust include.
1535 * sh-nbsd-tdep.c: Rename to ...
1536 * sh-netbsd-tdep.c: ... this, adjust include.
1537 * sparc-nbsd-nat.c: Rename to ...
1538 * sparc-netbsd-nat.c: ... this.
1539 * sparc-nbsd-tdep.c: Rename to ...
1540 * sparc-netbsd-tdep.c: ... this, adjust include.
1541 * sparc64-nbsd-nat.c: Rename to ...
1542 * sparc64-netbsd-nat.c: ... this.
1543 * sparc64-nbsd-tdep.c: Rename to ...
1544 * sparc64-netbsd-tdep.c: ... this, adjust include.
1545 * sparc64-tdep.h: Adjust comment.
1546 * vax-bsd-nat.c: Adjust include.
1547 * vax-nbsd-tdep.c: Rename to ...
1548 * vax-netbsd-tdep.c: ... this, adjust include.
1549
1550 2020-10-12 Tom Tromey <tom@tromey.com>
1551
1552 * target.h (struct target_ops) <get_section_table>: Update.
1553 (target_get_section_table): Update.
1554 * target.c (target_get_section_table, target_section_by_addr)
1555 (memory_xfer_partial_1): Update.
1556 * target-section.h (target_section_table): Now an alias.
1557 * target-delegates.c: Rebuild.
1558 * target-debug.h (target_debug_print_target_section_table_p):
1559 Rename from target_debug_print_struct_target_section_table_p.
1560 * symfile.c (build_section_addr_info_from_section_table): Update.
1561 * solib.c (solib_map_sections, solib_contains_address_p): Update.
1562 * solib-svr4.c (scan_dyntag): Update.
1563 * solib-dsbt.c (scan_dyntag): Update.
1564 * remote.c (remote_target::remote_xfer_live_readonly_partial):
1565 Update.
1566 * record-full.c (record_full_core_target::xfer_partial): Update.
1567 * progspace.h (struct program_space) <target_sections>: Update.
1568 * exec.h (print_section_info): Update.
1569 * exec.c (exec_target::close, build_section_table)
1570 (add_target_sections, add_target_sections_of_objfile)
1571 (remove_target_sections, exec_on_vfork)
1572 (section_table_available_memory)
1573 (section_table_xfer_memory_partial)
1574 (exec_target::get_section_table, exec_target::xfer_partial)
1575 (print_section_info, set_section_command)
1576 (exec_set_section_address, exec_target::has_memory): Update.
1577 * corelow.c (core_target::build_file_mappings)
1578 (core_target::xfer_partial, core_target::info_proc_mappings)
1579 (core_target::info_proc_mappings): Update.
1580 * bfd-target.c (class target_bfd): Update
1581
1582 2020-10-12 Tom Tromey <tom@tromey.com>
1583
1584 * progspace.c (program_space::~program_space): Don't call
1585 clear_section_table.
1586 * exec.h (clear_section_table): Don't declare.
1587 * exec.c (exec_target::close): Update.
1588 (clear_section_table): Remove.
1589
1590 2020-10-12 Tom Tromey <tom@tromey.com>
1591
1592 * exec.c (add_target_sections_of_objfile): Simplify.
1593
1594 2020-10-12 Tom Tromey <tom@tromey.com>
1595
1596 * solib.c (solib_map_sections): Update.
1597 * record-full.c (record_full_core_open_1): Update.
1598 * exec.h (build_section_table): Return a target_section_table.
1599 * exec.c (exec_file_attach): Update.
1600 (build_section_table): Return a target_section_table.
1601 * corelow.c (core_target::core_target): Update.
1602 * bfd-target.c (target_bfd::target_bfd): Update.
1603
1604 2020-10-12 Tom Tromey <tom@tromey.com>
1605
1606 * target.c (target_section_by_addr, memory_xfer_partial_1):
1607 Update.
1608 * target-section.h (struct target_section_table): Use
1609 std::vector.
1610 * symfile.h (build_section_addr_info_from_section_table): Take a
1611 target_section_table.
1612 * symfile.c (build_section_addr_info_from_section_table): Take a
1613 target_section_table.
1614 * solist.h (struct so_list) <sections>: Change type.
1615 <sections_end>: Remove.
1616 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
1617 (solib_contains_address_p): Update.
1618 * solib-svr4.c (scan_dyntag): Update.
1619 * solib-dsbt.c (scan_dyntag): Update.
1620 * remote.c (remote_target::remote_xfer_live_readonly_partial):
1621 Update.
1622 * record-full.c (record_full_core_start, record_full_core_end):
1623 Remove.
1624 (record_full_core_sections): New global.
1625 (record_full_core_open_1, record_full_core_target::xfer_partial):
1626 Update.
1627 * exec.h (build_section_table, section_table_xfer_memory_partial)
1628 (add_target_sections): Take a target_section_table.
1629 * exec.c (exec_file_attach, clear_section_table): Update.
1630 (resize_section_table): Remove.
1631 (build_section_table, add_target_sections): Take a
1632 target_section_table.
1633 (add_target_sections_of_objfile, remove_target_sections)
1634 (exec_on_vfork): Update.
1635 (section_table_available_memory): Take a target_section_table.
1636 (section_table_read_available_memory): Update.
1637 (section_table_xfer_memory_partial): Take a target_section_table.
1638 (print_section_info, set_section_command)
1639 (exec_set_section_address, exec_target::has_memory): Update.
1640 * corelow.c (class core_target) <m_core_section_table,
1641 m_core_file_mappings>: Remove braces.
1642 <~core_target>: Remove.
1643 (core_target::core_target): Update.
1644 (core_target::~core_target): Remove.
1645 (core_target::build_file_mappings)
1646 (core_target::xfer_memory_via_mappings)
1647 (core_target::xfer_partial, core_target::info_proc_mappings):
1648 Update.
1649 * bfd-target.c (target_bfd::xfer_partial): Update.
1650 (target_bfd::target_bfd): Update.
1651 (target_bfd::~target_bfd): Remove.
1652
1653 2020-10-12 Tom Tromey <tom@tromey.com>
1654
1655 * target.h (struct target_section, struct target_section_table):
1656 Move to target-section.h.
1657 * target-section.h: New file.
1658
1659 2020-10-12 Pedro Alves <pedro@palves.net>
1660
1661 PR exp/26602
1662 * valops.c (struct struct_field_searcher): New.
1663 (update_search_result): Rename to ...
1664 (struct_field_searcher::update_result): ... this. Simplify
1665 prototype. Record all found fields.
1666 (do_search_struct_field): Rename to ...
1667 (struct_field_searcher::search): ... this. Simplify prototype.
1668 Maintain stack of visited baseclass path. Call update_result for
1669 fields too. Keep searching fields in baseclasses instead of
1670 stopping at the first found field.
1671 (search_struct_field): Use struct_field_searcher. When looking
1672 for fields, report ambiguous access attempts.
1673
1674 2020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
1675
1676 * frame.c (inside_main_func): Check full symbols as well as
1677 minimal symbols.
1678
1679 2020-10-09 Joel Brobecker <brobecker@adacore.com>
1680
1681 * ada-lang.c (advance_wild_match): Rewrite the function's
1682 description. Change the type of target0, t0 and t1 to char.
1683
1684 2020-10-09 Tom Tromey <tromey@adacore.com>
1685
1686 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
1687
1688 2020-10-09 Tom Tromey <tromey@adacore.com>
1689
1690 * ada-lang.h (ada_encode): Return std::string.
1691 * ada-lang.c (ada_encode_1): Return std::string.
1692 (ada_encode): Likewise.
1693 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
1694 Update.
1695 * ada-exp.y (block_lookup, write_var_or_type): Update.
1696
1697 2020-10-09 Hannes Domani <ssbssa@yahoo.de>
1698
1699 PR exp/26714
1700 * printcmd.c (print_formatted): Handle void results as
1701 unformatted prints.
1702
1703 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
1704
1705 * arch/aarch32.c (aarch32_create_target_description): Release the
1706 target_desc_up as late as possible.
1707 * arch/aarch64.c (aarch64_create_target_description): Likewise.
1708 * arch/amd64.c (amd64_create_target_description): Likewise.
1709 * arch/arc.c (arc_create_target_description): Return a
1710 target_desc_up, don't release it.
1711 * arch/arc.h (arc_create_target_description): Update declaration.
1712 (arc_lookup_target_description): Move target_desc_up into the
1713 cache, and return a borrowed pointer.
1714 * arch/arm.c (arm_create_target_description): Release the
1715 target_desc_up as late as possible.
1716 * arch/i386.c (i386_create_target_description): Likewise.
1717 * arch/riscv.h (riscv_create_target_description): Update
1718 declaration to match definition.
1719 * arch/tic6x.c (tic6x_create_target_description): Release the
1720 target_desc_up as late as possible.
1721
1722 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
1723
1724 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
1725 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
1726
1727 2020-10-09 Jan Vrany <jan.vrany@labware.com>
1728
1729 * source.c (directory_command): Notify observers that "directories"
1730 parameter has changed.
1731
1732 2020-10-08 Tom Tromey <tom@tromey.com>
1733
1734 * cli/cli-cmds.c (print_disassembly): Style function name and
1735 addresses. Add _() wrappers.
1736
1737 2020-10-08 Shahab Vahedi <shahab@synopsys.com>
1738
1739 * NEWS: Mention ARC support in GDBserver.
1740
1741 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
1742
1743 * arch/aarch32.c (aarch32_create_target_description): Release
1744 unique_ptr returned from allocate_target_description.
1745 * arch/aarch64.c (aarch64_create_target_description): Likewise.
1746 * arch/amd64.c (amd64_create_target_description): Likewise.
1747 * arch/arc.c (arc_create_target_description): Likewise.
1748 * arch/arm.c (arm_create_target_description): Likewise.
1749 * arch/i386.c (i386_create_target_description): Likewise.
1750 * arch/riscv.c (riscv_create_target_description): Update return
1751 type. Handle allocate_target_description returning a unique_ptr.
1752 (riscv_lookup_target_description): Update to handle unique_ptr.
1753 * arch/tic6x.c (tic6x_create_target_description): Release
1754 unique_ptr returned from allocate_target_description.
1755 * features/microblaze-with-stack-protect.c: Regenerate.
1756 * features/microblaze.c: Regenerate.
1757 * features/mips-dsp-linux.c: Regenerate.
1758 * features/mips-linux.c: Regenerate.
1759 * features/mips64-dsp-linux.c: Regenerate.
1760 * features/mips64-linux.c: Regenerate.
1761 * features/nds32.c: Regenerate.
1762 * features/nios2.c: Regenerate.
1763 * features/or1k.c: Regenerate.
1764 * features/rs6000/powerpc-32.c: Regenerate.
1765 * features/rs6000/powerpc-32l.c: Regenerate.
1766 * features/rs6000/powerpc-403.c: Regenerate.
1767 * features/rs6000/powerpc-403gc.c: Regenerate.
1768 * features/rs6000/powerpc-405.c: Regenerate.
1769 * features/rs6000/powerpc-505.c: Regenerate.
1770 * features/rs6000/powerpc-601.c: Regenerate.
1771 * features/rs6000/powerpc-602.c: Regenerate.
1772 * features/rs6000/powerpc-603.c: Regenerate.
1773 * features/rs6000/powerpc-604.c: Regenerate.
1774 * features/rs6000/powerpc-64.c: Regenerate.
1775 * features/rs6000/powerpc-64l.c: Regenerate.
1776 * features/rs6000/powerpc-7400.c: Regenerate.
1777 * features/rs6000/powerpc-750.c: Regenerate.
1778 * features/rs6000/powerpc-860.c: Regenerate.
1779 * features/rs6000/powerpc-altivec32.c: Regenerate.
1780 * features/rs6000/powerpc-altivec32l.c: Regenerate.
1781 * features/rs6000/powerpc-altivec64.c: Regenerate.
1782 * features/rs6000/powerpc-altivec64l.c: Regenerate.
1783 * features/rs6000/powerpc-e500.c: Regenerate.
1784 * features/rs6000/powerpc-e500l.c: Regenerate.
1785 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
1786 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
1787 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
1788 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
1789 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
1790 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
1791 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
1792 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
1793 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
1794 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
1795 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
1796 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
1797 * features/rs6000/powerpc-vsx32.c: Regenerate.
1798 * features/rs6000/powerpc-vsx32l.c: Regenerate.
1799 * features/rs6000/powerpc-vsx64.c: Regenerate.
1800 * features/rs6000/powerpc-vsx64l.c: Regenerate.
1801 * features/rs6000/rs6000.c: Regenerate.
1802 * features/rx.c: Regenerate.
1803 * features/s390-gs-linux64.c: Regenerate.
1804 * features/s390-linux32.c: Regenerate.
1805 * features/s390-linux32v1.c: Regenerate.
1806 * features/s390-linux32v2.c: Regenerate.
1807 * features/s390-linux64.c: Regenerate.
1808 * features/s390-linux64v1.c: Regenerate.
1809 * features/s390-linux64v2.c: Regenerate.
1810 * features/s390-te-linux64.c: Regenerate.
1811 * features/s390-tevx-linux64.c: Regenerate.
1812 * features/s390-vx-linux64.c: Regenerate.
1813 * features/s390x-gs-linux64.c: Regenerate.
1814 * features/s390x-linux64.c: Regenerate.
1815 * features/s390x-linux64v1.c: Regenerate.
1816 * features/s390x-linux64v2.c: Regenerate.
1817 * features/s390x-te-linux64.c: Regenerate.
1818 * features/s390x-tevx-linux64.c: Regenerate.
1819 * features/s390x-vx-linux64.c: Regenerate.
1820 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
1821 from allocate_target_description.
1822 * target-descriptions.c (allocate_target_description): Update
1823 return type.
1824 (print_c_tdesc::visit_pre): Release unique_ptr returned from
1825 allocate_target_description.
1826
1827 2020-10-07 Tom Tromey <tromey@adacore.com>
1828
1829 * unittests/search-memory-selftests.c: New file.
1830 * Makefile.in (SELFTESTS_SRCS): Add
1831 unittests/search-memory-selftests.c.
1832
1833 2020-10-07 Tom Tromey <tromey@adacore.com>
1834
1835 PR gdb/16930:
1836 * findcmd.c (_initialize_mem_search): Mention that the range is
1837 inclusive.
1838
1839 2020-10-07 Tom Tromey <tromey@adacore.com>
1840
1841 * target.h (simple_search_memory): Don't declare.
1842 * target.c (simple_search_memory): Move to gdbsupport.
1843 (default_search_memory): Update.
1844 * remote.c (remote_target::search_memory): Update.
1845
1846 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
1847
1848 * Makefile.in (COMPILE): Add CXXFLAGS.
1849 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
1850 (check-headers): Add CXXFLAGS.
1851
1852 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
1853
1854 * arc-linux-tdep.h: New file.
1855 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
1856 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
1857 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
1858 arc_linux_gregset, arc_linux_v2_regset,
1859 arc_linux_iterate_over_regset_sections,
1860 arc_linux_core_read_description): Implement.
1861 (arc_linux_init_osabi): Set iterate_over_regset_sections.
1862 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
1863 (arc_gdbarch_features_create): Add.
1864 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
1865
1866 2020-10-07 Shahab Vahedi <shahab@synopsys.com>
1867
1868 * arch/arc.h: Rename "arc_gdbarch_features" to
1869 "arc_arch_features".
1870 * arc-tdep.h: Likewise.
1871 * arc-tdep.c: Likewise.
1872
1873 2020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1874
1875 * infcmd.c (attach_command): Remove the redundant call to
1876 `clear_proceed_status`.
1877
1878 2020-10-07 Kamil Rytarowski <n54@gmx.com>
1879
1880 * nat/netbsd-nat.c (write_memory, read_memory): Update.
1881
1882 2020-10-07 Kamil Rytarowski <n54@gmx.com>
1883
1884 * nat/netbsd-nat.c (write_memory, read_memory): Add.
1885 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
1886 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
1887
1888 2020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
1889
1890 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
1891 (_initialize_break_catch_sig): Don't allocate array.
1892
1893 2020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
1894
1895 * symtab.c (find_pc_line): Return unmapped addresses when the
1896 requested address is also unmapped.
1897
1898 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
1899
1900 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
1901 tui/tui-out.h.
1902
1903 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
1904
1905 * amd64-windows-tdep.c (amd64_windows_return_value): Use
1906 type::is_vector instead of TYPE_VECTOR.
1907
1908 2020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
1909
1910 * auto-load.c (auto_load_objfile_script_1): Don't use
1911 debugfile_holder as temporary variable when stripping drive
1912 letter.
1913
1914 2020-10-05 Hannes Domani <ssbssa@yahoo.de>
1915
1916 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
1917 Add TYPE_CODE_COMPLEX.
1918 (amd64_windows_return_value): Fix types returned via XMM0.
1919
1920 2020-10-05 Alan Hayward <alan.hayward@arm.com>
1921
1922 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
1923 AArch64/ARM maintainers.
1924
1925 2020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
1926
1927 * NEWS: Mention set/show debug event-loop.
1928
1929 2020-10-02 Tom Tromey <tromey@adacore.com>
1930
1931 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
1932 REG_EXTENDED.
1933
1934 2020-10-02 Simon Marchi <simon.marchi@efficios.com>
1935
1936 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
1937 * procfs.c (procfs_inferior_created): Remove.
1938 (_initialize_procfs): Don't register procfs_inferior_created.
1939
1940 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1941
1942 * async-event.c (invoke_async_signal_handlers): Add debug
1943 print.
1944 (check_async_event_handlers): Likewise.
1945 * event-top.c (show_debug_event_loop): New function.
1946 (_initialize_event_top): Register "set debug event-loop"
1947 setting.
1948
1949 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1950
1951 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
1952 * debug.h: Remove.
1953 * infrun.c: Include gdbsupport/common-debug.h.
1954 * linux-nat.c: Likewise.
1955
1956 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1957
1958 * async-event.h (create_async_signal_handler): Add name
1959 parameter.
1960 (create_async_event_handler): Likewise.
1961 * async-event.c (struct async_signal_handler) <name>: New field.
1962 (struct async_event_handler) <name>: New field.
1963 (create_async_signal_handler): Assign name.
1964 (create_async_event_handler): Assign name.
1965 * event-top.c (async_init_signals): Pass name when creating
1966 handler.
1967 * infrun.c (_initialize_infrun): Likewise.
1968 * record-btrace.c (record_btrace_push_target): Likewise.
1969 * record-full.c (record_full_open): Likewise.
1970 * remote-notif.c (remote_notif_state_allocate): Likewise.
1971 * remote.c (remote_target::open_1): Likewise.
1972 * tui/tui-win.c (tui_initialize_win): Likewise.
1973
1974 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1975
1976 * async-event.c (initialize_async_signal_handlers): Pass name to
1977 add_file_handler
1978 * event-top.c (ui_register_input_event_handler): Likewise.
1979 * linux-nat.c (linux_nat_target::async): Likewise.
1980 * run-on-main-thread.c (_initialize_run_on_main_thread):
1981 Likewise
1982 * ser-base.c (reschedule): Likewise.
1983 (ser_base_async): Likewise.
1984 * tui/tui-io.c: Likewise.
1985 * top.h (struct ui) <num>: New field.
1986 * top.c (highest_ui_num): New variable.
1987 (ui::ui): Initialize num.
1988
1989 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1990
1991 * observable.h <inferior_created>: Remove parameters. Update all
1992 listeners.
1993 * inferior.h (post_create_inferior): Remove target parameter.
1994 Update all callers.
1995
1996 2020-10-02 Nitika Achra <Nitika.Achra@amd.com>
1997
1998 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
1999 and DW_MACRO_undef_strx.
2000 (dwarf_decode_macros): Likewise
2001 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
2002 which is the value of DW_AT_str_offsets_base.
2003 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
2004 str_offsets_base.
2005
2006 2020-10-01 Kamil Rytarowski <n54@gmx.com>
2007
2008 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
2009
2010 2020-10-01 Kamil Rytarowski <n54@gmx.com>
2011
2012 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
2013 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
2014
2015 2020-10-01 Kamil Rytarowski <n54@gmx.com>
2016
2017 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
2018
2019 2020-09-30 Tom de Vries <tdevries@suse.de>
2020
2021 PR symtab/26683
2022 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
2023
2024 2020-09-30 Tom Tromey <tromey@adacore.com>
2025
2026 * dwarf2/read.c (handle_variant): Use constant_value.
2027
2028 2020-09-29 Tom Tromey <tom@tromey.com>
2029
2030 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
2031 (read_file_scope, dwarf2_get_pc_bounds)
2032 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
2033 (read_structure_type, handle_struct_member_die)
2034 (read_enumeration_type, read_array_type, read_set_type)
2035 (read_tag_pointer_type, read_tag_reference_type)
2036 (read_subroutine_type, read_base_type, read_subrange_type)
2037 (read_full_die_1, partial_die_info::read)
2038 (partial_die_info::read, by, new_symbol)
2039 (dwarf2_const_value_data, dwarf2_const_value_attr)
2040 (dump_die_shallow, dwarf2_fetch_constant_bytes)
2041 (prepare_one_comp_unit): Update.
2042 * dwarf2/attribute.h (DW_UNSND): Remove.
2043
2044 2020-09-29 Tom Tromey <tom@tromey.com>
2045
2046 * dwarf2/read.c (read_func_scope, prototyped_function_p)
2047 (read_subroutine_type, partial_die_info::read)
2048 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
2049 (dwarf2_add_member_fn): Update.
2050 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
2051 * dwarf2/attribute.c (attribute::as_boolean): New method.
2052
2053 2020-09-29 Tom Tromey <tom@tromey.com>
2054
2055 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
2056 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
2057 method.
2058 * dwarf2/attribute.c (attribute::as_virtuality): New method.
2059
2060 2020-09-29 Tom Tromey <tom@tromey.com>
2061
2062 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
2063 the attribute's form.
2064
2065 2020-09-29 Tom Tromey <tom@tromey.com>
2066
2067 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
2068 (dwarf2_add_member_fn): Update.
2069 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
2070 * dwarf2/attribute.c (attribute::defaulted): New method, from
2071 is_valid_DW_AT_defaulted.
2072
2073 2020-09-29 Tom Tromey <tom@tromey.com>
2074
2075 * dwarf2/read.c (dw2_get_file_names_reader)
2076 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
2077 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
2078 (dwarf2_symbol_mark_computed): Use as_unsigned.
2079 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
2080 method.
2081 <form_is_section_offset>: Update comment.
2082
2083 2020-09-29 Tom Tromey <tom@tromey.com>
2084
2085 * dwarf2/read.c (dwarf2_access_attribute): Rename from
2086 dwarf2_default_access_attribute. Look up attribute.
2087 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
2088 Update.
2089
2090 2020-09-29 Tom Tromey <tom@tromey.com>
2091
2092 * dwarf2/read.c (skip_one_die): Update.
2093 (read_full_die_1): Change how reprocessing is done.
2094 (partial_die_info::read): Update.
2095 (read_attribute_value): Remove need_reprocess parameter.
2096 (read_attribute): Likewise.
2097 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
2098 New method.
2099
2100 2020-09-29 Tom Tromey <tom@tromey.com>
2101
2102 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
2103 (dwarf2_const_value_attr, dump_die_shallow)
2104 (dwarf2_fetch_constant_bytes): Update.
2105 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
2106 comment.
2107 <set_address>: New method.
2108 (DW_ADDR): Remove.
2109 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
2110 (attribute::as_string, attribute::as_address): Add assert.
2111
2112 2020-09-29 Tom Tromey <tom@tromey.com>
2113
2114 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
2115 (read_attribute_reprocess, read_attribute_value): Update.
2116 (read_attribute): Clear requires_reprocessing.
2117 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
2118 form_requires_reprocessing>: New methods.
2119 <string_init>: Clear requires_reprocessing.
2120 <set_unsigned_reprocess>: New method.
2121 <name>: Shrink by one bit.
2122 <requires_reprocessing>: New member.
2123 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
2124 method.
2125
2126 2020-09-29 Tom Tromey <tom@tromey.com>
2127
2128 * dwarf2/read.c (read_attribute_value): Update.
2129 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
2130 set_unsigned>: New methods.
2131 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
2132
2133 2020-09-29 Tom Tromey <tom@tromey.com>
2134
2135 * dwarf2/read.c (get_alignment, read_array_order)
2136 (read_attribute_value, dwarf2_const_value_attr)
2137 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
2138 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
2139 New methods.
2140 (DW_SND): Remove.
2141
2142 2020-09-29 Tom Tromey <tom@tromey.com>
2143
2144 * dwarf2/read.c (read_attribute_value, lookup_die_type)
2145 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
2146 Update.
2147 * dwarf2/attribute.h (struct attribute) <as_signature,
2148 set_signature>: New methods.
2149 (DW_SIGNATURE): Remove.
2150
2151 2020-09-29 Tom Tromey <tom@tromey.com>
2152
2153 * dwarf2/read.c (read_call_site_scope)
2154 (handle_data_member_location, dwarf2_add_member_fn)
2155 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
2156 (partial_die_info::read, read_attribute_value)
2157 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
2158 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
2159 (dwarf2_symbol_mark_computed): Update.
2160 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
2161 methods.
2162 (DW_BLOCK): Remove.
2163 * dwarf2/attribute.c (attribute::form_is_block): Add
2164 DW_FORM_data16.
2165
2166 2020-09-29 Tom Tromey <tom@tromey.com>
2167
2168 * dwarf2/read.c (read_cutu_die_from_dwo)
2169 (read_attribute_reprocess, read_attribute_value, read_attribute)
2170 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
2171 (dwarf2_fetch_constant_bytes): Update.
2172 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
2173 <set_string_noncanonical, set_string_canonical>: New methods.
2174 <string_is_canonical>: Update comment.
2175 <canonical_string_p>: Add assert.
2176 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
2177 * dwarf2/attribute.c (attribute::form_is_string): New method.
2178 (attribute::string): Use it.
2179
2180 2020-09-29 Tom Tromey <tom@tromey.com>
2181
2182 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
2183 (dump_die_shallow): Use canonical_string_p.
2184 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
2185 method.
2186
2187 2020-09-29 Tom Tromey <tom@tromey.com>
2188
2189 * dwarf2/read.c (partial_die_info::read)
2190 (dwarf2_const_value_attr, anonymous_struct_prefix, )
2191 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
2192 attribute::as_string.
2193
2194 2020-09-29 Tom Tromey <tom@tromey.com>
2195
2196 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
2197 DW_ADDR.
2198 (attribute::string): Don't use DW_STRING.
2199 (attribute::get_ref_die_offset): Don't use DW_UNSND.
2200 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
2201
2202 2020-09-29 Tom Tromey <tom@tromey.com>
2203
2204 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
2205 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
2206 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
2207 * dwarf2/attribute.h (struct attribute): Rename methods.
2208 * dwarf2/attribute.c (attribute::as_address): Rename from
2209 value_as_address.
2210 (attribute::as_string): Rename from value_as_string.
2211
2212 2020-09-29 Tom Tromey <tom@tromey.com>
2213
2214 * dwarf2/read.c (partial_die_info::read) <case
2215 DW_AT_linkage_name>: Use value_as_string.
2216 (dwarf2_string_attr): Use value_as_string.
2217 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
2218 method.
2219 * dwarf2/attribute.c (attribute::value_as_string): New method.
2220
2221 2020-09-29 Pedro Alves <pedro@palves.net>
2222
2223 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
2224 defined before using '#pragma GCC diagnostic' instead of checking
2225 __clang__.
2226
2227 2020-09-28 Tom Tromey <tom@tromey.com>
2228
2229 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
2230 (handle_signal_stop): Update.
2231 * procfs.c (procfs_target::insert_watchpoint): Update.
2232 * target.h (target_have_steppable_watchpoint): Now a function.
2233
2234 2020-09-28 Tom Tromey <tom@tromey.com>
2235
2236 * infrun.c (set_schedlock_func): Update.
2237 * target.h (target_can_lock_scheduler): Now a function.
2238
2239 2020-09-28 Tom Tromey <tom@tromey.com>
2240
2241 * inferior.h (class inferior) <has_execution>: Update.
2242 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2243 * valops.c (find_function_in_inferior)
2244 (value_allocate_space_in_inferior): Update.
2245 * top.c (kill_or_detach): Update.
2246 * target.c (target_preopen, set_target_permissions): Update.
2247 (target_has_execution_current): Remove.
2248 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
2249 Update.
2250 * solib.c (update_solib_list, reload_shared_libraries): Update.
2251 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
2252 * solib-dsbt.c (enable_break): Update.
2253 * score-tdep.c (score7_fetch_inst): Update.
2254 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
2255 Update.
2256 * remote.c (remote_target::start_remote)
2257 (remote_target::remote_check_symbols, remote_target::open_1)
2258 (remote_target::remote_detach_1, remote_target::verify_memory)
2259 (remote_target::xfer_partial, remote_target::read_description)
2260 (remote_target::get_min_fast_tracepoint_insn_len): Update.
2261 * record-full.c (record_full_open_1): Update.
2262 * record-btrace.c (record_btrace_target_open): Update.
2263 * objc-lang.c (lookup_objc_class, lookup_child_selector)
2264 (value_nsstring): Update.
2265 * linux-thread-db.c (add_thread_db_info)
2266 (thread_db_find_new_threads_silently, check_thread_db_callback)
2267 (try_thread_db_load_1, record_thread): Update.
2268 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
2269 Update.
2270 * linux-fork.c (checkpoint_command): Update.
2271 * infrun.c (set_non_stop, set_observer_mode)
2272 (check_multi_target_resumption, for_each_just_stopped_thread)
2273 (maybe_remove_breakpoints, normal_stop)
2274 (class infcall_suspend_state): Update.
2275 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
2276 (info_program_command, attach_command): Update.
2277 * infcall.c (call_function_by_hand_dummy): Update.
2278 * inf-loop.c (inferior_event_handler): Update.
2279 * gcore.c (gcore_command, derive_heap_segment): Update.
2280 * exec.c (exec_file_command): Update.
2281 * eval.c (evaluate_subexp): Update.
2282 * compile/compile.c (compile_to_object): Update.
2283 * cli/cli-dump.c (restore_command): Update.
2284 * breakpoint.c (update_watchpoint)
2285 (update_inserted_breakpoint_locations)
2286 (insert_breakpoint_locations, get_bpstat_thread): Update.
2287 * target.h (target_has_execution): Remove macro.
2288 (target_has_execution_current): Don't declare.
2289 (target_has_execution): Rename from target_has_execution_1. Add
2290 argument default.
2291
2292 2020-09-28 Tom Tromey <tom@tromey.com>
2293
2294 * mi/mi-main.c (exec_reverse_continue)
2295 (mi_cmd_list_target_features): Update.
2296 * infrun.c (set_exec_direction_func): Update.
2297 * target.c (default_execution_direction): Update.
2298 * reverse.c (exec_reverse_once): Update.
2299 * target.h (target_can_execute_reverse): Now a function.
2300
2301 2020-09-28 Tom Tromey <tom@tromey.com>
2302
2303 * tui/tui-regs.c (tui_get_register)
2304 (tui_data_window::show_registers): Update.
2305 * thread.c (scoped_restore_current_thread::restore)
2306 (scoped_restore_current_thread::scoped_restore_current_thread):
2307 Update.
2308 * regcache-dump.c (regcache_print): Update.
2309 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2310 Update.
2311 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
2312 * mep-tdep.c (current_me_module, current_options): Update.
2313 * linux-thread-db.c (thread_db_load): Update.
2314 * infcmd.c (registers_info, info_vector_command)
2315 (info_float_command): Update.
2316 * ia64-tdep.c (ia64_frame_prev_register)
2317 (ia64_sigtramp_frame_prev_register): Update.
2318 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
2319 * gcore.c (derive_stack_segment): Update.
2320 * frame.c (get_current_frame, has_stack_frames): Update.
2321 * findvar.c (language_defn::read_var_value): Update.
2322 * arm-tdep.c (arm_pc_is_thumb): Update.
2323 * target.c (target_has_registers): Rename from
2324 target_has_registers_1.
2325 * target.h (target_has_registers): Remove macro.
2326 (target_has_registers): Rename from target_has_registers_1.
2327
2328 2020-09-28 Tom Tromey <tom@tromey.com>
2329
2330 * windows-tdep.c (tlb_make_value): Update.
2331 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2332 * thread.c (scoped_restore_current_thread::restore)
2333 (scoped_restore_current_thread::scoped_restore_current_thread)
2334 (thread_command): Update.
2335 * stack.c (backtrace_command_1, frame_apply_level_command)
2336 (frame_apply_all_command, frame_apply_command): Update.
2337 * infrun.c (siginfo_make_value, restore_infcall_control_state):
2338 Update.
2339 * gcore.c (derive_stack_segment): Update.
2340 * frame.c (get_current_frame, has_stack_frames): Update.
2341 * auxv.c (info_auxv_command): Update.
2342 * ada-tasks.c (ada_build_task_list): Update.
2343 * target.c (target_has_stack): Rename from target_has_stack_1.
2344 * target.h (target_has_stack): Remove macro.
2345 (target_has_stack): Rename from target_has_stack_1.
2346
2347 2020-09-28 Tom Tromey <tom@tromey.com>
2348
2349 * target.c (target_has_memory): Rename from target_has_memory_1.
2350 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2351 * thread.c (scoped_restore_current_thread::restore)
2352 (scoped_restore_current_thread::scoped_restore_current_thread):
2353 Update.
2354 * frame.c (get_current_frame, has_stack_frames): Update.
2355 * target.h (target_has_memory): Remove macro.
2356 (target_has_memory): Rename from target_has_memory_1.
2357
2358 2020-09-28 Tom Tromey <tom@tromey.com>
2359
2360 * target.c (target_has_all_memory_1): Remove.
2361 * target.h (target_has_all_memory): Remove define.
2362 (target_has_all_memory_1): Don't declare.
2363
2364 2020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
2365
2366 * ser-base.c: Adjust comments formatting.
2367
2368 2020-09-27 Tom Tromey <tom@tromey.com>
2369
2370 PR tui/25342:
2371 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
2372
2373 2020-09-27 Tom Tromey <tom@tromey.com>
2374
2375 PR tui/25342:
2376 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
2377
2378 2020-09-27 Tom Tromey <tom@tromey.com>
2379
2380 * unittests/tui-selftests.c: Update.
2381 * tui/tui-winsource.h (struct tui_source_window_base)
2382 <extra_margin, show_line_number, refresh_pad>: New methods.
2383 <m_max_length, m_pad>: New members.
2384 (tui_copy_source_line): Update.
2385 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
2386 first_col, line_width, ndigits parameters. Add length.
2387 (tui_source_window_base::show_source_line): Write to pad. Line
2388 number now 0-based.
2389 (tui_source_window_base::refresh_pad): New method.
2390 (tui_source_window_base::show_source_content): Write to pad. Call
2391 refresh_pad.
2392 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
2393 not refill.
2394 (tui_source_window_base::update_exec_info): Call
2395 show_line_number.
2396 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
2397 method.
2398 <m_digits>: New member.
2399 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
2400 and m_max_length.
2401 (tui_source_window::show_line_number): New method.
2402 * tui/tui-io.h (tui_puts): Fix comment.
2403 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
2404 m_max_length.
2405
2406 2020-09-27 Tom Tromey <tom@tromey.com>
2407
2408 * tui/tui-winsource.c
2409 (tui_source_window_base::set_is_exec_point_at): Don't call
2410 show_source_line.
2411
2412 2020-09-27 Tom Tromey <tom@tromey.com>
2413
2414 * python/py-tui.c (class tui_py_window) <refresh_window>: New
2415 method.
2416 <erase>: Update.
2417 <cursor_x, cursor_y>: Remove.
2418 <m_inner_window>: New member.
2419 (tui_py_window::rerender): Create inner window.
2420 (tui_py_window::output): Write to inner window.
2421
2422 2020-09-26 Gareth Rees <grees@undo.io> (tiny change)
2423
2424 PR python/26586
2425 * cli/cli-script.c (execute_control_commands): don't set
2426 instream to nullptr here as this breaks the from_tty argument
2427 to gdb.execute in Python.
2428 (execute_user_command): set instream to nullptr here instead.
2429
2430 2020-09-25 Simon Marchi <simon.marchi@efficios.com>
2431
2432 * infrun.h (infrun_debug_printf): Fix formatting.
2433 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
2434
2435 2020-09-25 Saagar Jha <saagar@saagarjha.com>
2436
2437 * compile/compile-object-load.h (struct munmap_list): Add
2438 explicitly-defined move constructor.
2439
2440 2020-09-24 Tom Tromey <tromey@adacore.com>
2441
2442 PR tui/26638:
2443 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
2444 method.
2445 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
2446 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
2447 (tui_prev_win): Rewrite.
2448
2449 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
2450
2451 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
2452 in WOW64 processes as SIGINT.
2453 * nat/windows-nat.h: Make wow64_process a shared variable.
2454 * windows-nat.c: Remove static wow64_process variable.
2455
2456 2020-09-23 Tom Tromey <tom@tromey.com>
2457
2458 PR symtab/25470:
2459 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
2460 offset and bit size.
2461 * printcmd.c (print_scalar_formatted): Handle zero-length
2462 integer.
2463 (print_scalar_formatted): Use bit_size_differs_p.
2464 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
2465 constant.
2466 (union type_specific): <int_stuff>: New member.
2467 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
2468 methods.
2469 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
2470 TYPE_SPECIFIC_FIELD.
2471 (recursive_dump_type, copy_type_recursive): Update.
2472 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
2473 DW_AT_data_bit_offset.
2474
2475 2020-09-23 Tom Tromey <tom@tromey.com>
2476
2477 * utils.h (class gdb_argv): Add move operators.
2478 <append>: New methods.
2479 * compile/compile.c (build_argc_argv): Remove.
2480 (compile_args_argc): Remove.
2481 (compile_args_argv): Change type.
2482 (set_compile_args): Simplify.
2483 (append_args): Remove.
2484 (filter_args): Remove argcp parameter.
2485 (get_args): Return gdb_argv. Simplify.
2486 (compile_to_object): Update.
2487
2488 2020-09-23 Tom Tromey <tom@tromey.com>
2489
2490 * compile/compile-object-run.c (do_module_cleanup)
2491 <~do_module_cleanup> :Remove.
2492 (do_module_cleanup): Update.
2493 * compile/compile-object-load.h (struct munmap_list): Add move
2494 assignment operator.
2495 <source_file>: Now a std::string.
2496 <munmap_list>: Rename. No longer a pointer.
2497 * compile/compile-object-load.c (struct setup_sections_data): Add
2498 constructor.
2499 <setup_one_section>: Declare.
2500 <munmap_list>: Move earlier.
2501 <m_bfd>: New member.
2502 <m_last_size, m_last_section_first, m_last_prot,
2503 m_last_max_alignment>: Rename, add initializers where needed.
2504 (setup_sections_data::setup_one_section): Rename from
2505 setup_sections. Update.
2506 (compile_object_load): Update. Don't use bfd_map_over_sections.
2507
2508 2020-09-23 Tom Tromey <tom@tromey.com>
2509
2510 * compile/compile-object-run.c (struct do_module_cleanup): Add
2511 parameters to constructor. Update destructor.
2512 <source_file, scope, scope_data, out_value_type, out_value_addr,
2513 munmap_list_head, objfile_name_string>: Remove.
2514 <module>: New member.
2515 (do_module_cleanup): Update.
2516 (compile_object_run): Update.
2517
2518 2020-09-23 Tom Tromey <tom@tromey.com>
2519
2520 * compile/compile.c (eval_compile_command): Update.
2521 * compile/compile-object-run.h (compile_object_run): Take a
2522 compile_module_up.
2523 * compile/compile-object-run.c (compile_object_run): Take a
2524 compile_module_up.
2525 * compile/compile-object-load.h (struct compile_module): Add
2526 constructor, destructor.
2527 (compile_module_up): New typedef.
2528 (compile_object_load): Return compile_object_up.
2529 * compile/compile-object-load.c (compile_object_load): Return
2530 compile_module_up.
2531
2532 2020-09-23 Tom Tromey <tom@tromey.com>
2533
2534 * compile/compile-object-run.c (struct do_module_cleanup): Add
2535 constructor, destructor.
2536 <objfile_name_string>: Don't use struct hack.
2537 (do_module_cleanup): Use delete.
2538 (compile_object_run): Use new.
2539
2540 2020-09-23 Tom Tromey <tom@tromey.com>
2541
2542 * compile/compile-cplus-types.c
2543 (compile_cplus_convert_struct_or_union): Use std::vector.
2544 (compile_cplus_convert_func): Likewise.
2545 * compile/compile-c-types.c (convert_func): Use std::vector.
2546
2547 2020-09-21 Tom Tromey <tromey@adacore.com>
2548
2549 * sparc-tdep.c (sparc32_skip_prologue): Use
2550 skip_prologue_using_sal.
2551
2552 2020-09-19 Tom Tromey <tom@tromey.com>
2553
2554 * symfile.c (add_section_size_callback): Remove.
2555 (load_one_section): Rename from load_section_callback. Change
2556 parameters.
2557 (generic_load): Use foreach.
2558
2559 2020-09-19 Tom Tromey <tom@tromey.com>
2560
2561 * exec.c (add_to_section_table): Remove.
2562 (build_section_table): Use foreach.
2563
2564 2020-09-19 Tom Tromey <tom@tromey.com>
2565
2566 * elfread.c (elf_locate_sections): Change parameters.
2567 (elf_symfile_read): Use foreach.
2568
2569 2020-09-19 Tom Tromey <tom@tromey.com>
2570
2571 * cli/cli-dump.c (struct callback_data): Remove.
2572 (restore_one_section): Rename from restore_section_callback.
2573 Change parameters.
2574 (restore_binary_file): Change parameters.
2575 (restore_command): Use foreach.
2576
2577 2020-09-19 Tom Tromey <tom@tromey.com>
2578
2579 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
2580 (gcore_copy_callback): Likewise.
2581 (gcore_memory_sections): Use foreach.
2582
2583 2020-09-19 Tom Tromey <tom@tromey.com>
2584
2585 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
2586 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
2587 parameters.
2588 (generic_elf_osabi_sniffer): Use foreach.
2589 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
2590 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
2591
2592 2020-09-19 Tom Tromey <tom@tromey.com>
2593
2594 * dwarf2/read.c (locate_dwz_sections): Change parameters.
2595 (dwarf2_get_dwz_file): Use foreach.
2596 (dwarf2_locate_dwo_sections): Change parameters.
2597 (open_and_init_dwo_file): Use foreach.
2598 (dwarf2_locate_common_dwp_sections): Change parameters.
2599 (open_and_init_dwp_file): Use foreach.
2600
2601 2020-09-19 Tom Tromey <tom@tromey.com>
2602
2603 * symfile.h: (find_lowest_section): Don't declare.
2604 * symfile.c (find_lowest_section): Now static. Change
2605 parameters.
2606 (struct place_section_arg): Remove.
2607 (place_section): Change parameters.
2608 (addr_info_make_relative): Use foreach.
2609 (symfile_dummy_outputs): Remove.
2610 (default_symfile_relocate): Use foreach.
2611
2612 2020-09-19 Tom Tromey <tom@tromey.com>
2613
2614 * objfiles.c (add_to_objfile_sections): Rename from
2615 add_to_objfile_sections_full.
2616 (add_to_objfile_sections): Remove.
2617 (build_objfile_section_table): Use foreach.
2618
2619 2020-09-19 Tom Tromey <tom@tromey.com>
2620
2621 * stap-probe.c (get_stap_base_address_1): Remove.
2622 (get_stap_base_address): Use foreach.
2623
2624 2020-09-19 Tom Tromey <tom@tromey.com>
2625
2626 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
2627 parameters.
2628 (gdb_bfd_close_or_warn): Use foreach.
2629
2630 2020-09-19 Tom Tromey <tom@tromey.com>
2631
2632 * corelow.c (add_to_thread_list): Change parameters.
2633 (core_target_open): Use foreach.
2634
2635 2020-09-19 Tom Tromey <tom@tromey.com>
2636
2637 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
2638 existing function.
2639
2640 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2641
2642 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
2643 for arrays.
2644
2645 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2646
2647 * eval.c: Remove 'f-lang.h' include.
2648 (value_f90_subarray): Moved to f-lang.c.
2649 (eval_call): Renamed to...
2650 (evaluate_subexp_do_call): ...this, is no longer static, header
2651 comment moved into header file.
2652 (evaluate_funcall): Update call to eval_call.
2653 (skip_undetermined_arglist): Moved to f-lang.c.
2654 (fortran_value_subarray): Likewise.
2655 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
2656 moved to evaluate_subexp_f.
2657 (calc_f77_array_dims): Moved to f-lang.c
2658 * expprint.c (print_subexp_funcall): New function.
2659 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
2660 moved to print_subexp_f, OP_FUNCALL uses new function.
2661 (dump_subexp_body_funcall): New function.
2662 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
2663 moved to dump_subexp_f, OP_FUNCALL uses new function.
2664 * expression.h (evaluate_subexp_do_call): Declare.
2665 * f-lang.c (value_f90_subarray): Moved from eval.c.
2666 (skip_undetermined_arglist): Likewise.
2667 (calc_f77_array_dims): Likewise.
2668 (fortran_value_subarray): Likewise.
2669 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
2670 (operator_length_f): Likewise.
2671 (print_subexp_f): Likewise.
2672 (dump_subexp_body_f): Likewise.
2673 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
2674 declaration of this operation to here.
2675 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
2676 support moved to operator_length_f.
2677 * parser-defs.h (dump_subexp_body_funcall): Declare.
2678 (print_subexp_funcall): Declare.
2679 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
2680 fortran-operator.def.
2681
2682 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2683
2684 * eval.c (fortran_value_subarray): New function, content is taken
2685 from...
2686 (evaluate_subexp_standard): ...here, in two places. Now arrays
2687 and strings both call the new function.
2688 (calc_f77_array_dims): Add header comment, handle strings.
2689
2690 2020-09-18 Victor Collod <vcollod@nvidia.com>
2691
2692 PR gdb/26635
2693 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
2694 (i386_analyze_prologue): Call i386_skip_endbr.
2695
2696 2020-09-18 Tom Tromey <tromey@adacore.com>
2697
2698 * windows-nat.c (struct windows_nat_target) <wait>: Update.
2699 (windows_nat_target::wait): Update.
2700 * target/wait.h (enum target_wait_flag): New. Use
2701 DEF_ENUM_FLAGS_TYPE.
2702 * target/target.h (target_wait): Change type of options.
2703 * target.h (target_options_to_string, default_target_wait):
2704 Update.
2705 (struct target_ops) <wait>: Change type of options.
2706 * target.c (target_wait, default_target_wait, do_option): Change
2707 type of "options".
2708 (target_options_to_string): Likewise.
2709 * target-delegates.c: Rebuild.
2710 * target-debug.h (target_debug_print_target_wait_flags): Rename
2711 from target_debug_print_options.
2712 * sol-thread.c (class sol_thread_target) <wait>: Update.
2713 (sol_thread_target::wait): Update.
2714 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
2715 (rs6000_nat_target::wait): Update.
2716 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
2717 Update.
2718 (remote_target::wait_ns, remote_target::wait_as): Change type of
2719 "options".
2720 (remote_target::wait): Update.
2721 * remote-sim.c (struct gdbsim_target) <wait>: Update.
2722 (gdbsim_target::wait): Update.
2723 * record-full.c (class record_full_base_target) <wait>: Update.
2724 (record_full_wait_1): Change type of "options".
2725 (record_full_base_target::wait): Update.
2726 * record-btrace.c (class record_btrace_target) <wait>: Update.
2727 (record_btrace_target::wait): Update.
2728 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
2729 Update.
2730 (ravenscar_thread_target::wait): Update.
2731 * procfs.c (class procfs_target) <wait>: Update.
2732 (procfs_target::wait): Update.
2733 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
2734 * obsd-nat.c (obsd_nat_target::wait): Update.
2735 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
2736 (nto_procfs_target::wait): Update.
2737 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
2738 * nbsd-nat.c (nbsd_wait): Change type of "options".
2739 (nbsd_nat_target::wait): Update.
2740 * linux-thread-db.c (class thread_db_target) <wait>: Update.
2741 (thread_db_target::wait): Update.
2742 * linux-nat.h (class linux_nat_target) <wait>: Update.
2743 * linux-nat.c (linux_nat_target::wait): Update.
2744 (linux_nat_wait_1): Update.
2745 * infrun.c (do_target_wait_1, do_target_wait): Change type of
2746 "options".
2747 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
2748 * inf-ptrace.c (inf_ptrace_target::wait): Update.
2749 * go32-nat.c (struct go32_nat_target) <wait>: Update.
2750 (go32_nat_target::wait): Update.
2751 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
2752 * gnu-nat.c (gnu_nat_target::wait): Update.
2753 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
2754 * fbsd-nat.c (fbsd_nat_target::wait): Update.
2755 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
2756 * darwin-nat.c (darwin_nat_target::wait): Update.
2757 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
2758 (bsd_uthread_target::wait): Update.
2759 * aix-thread.c (class aix_thread_target) <wait>: Update.
2760 (aix_thread_target::wait): Update.
2761
2762 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
2763
2764 * compile/compile-object-run.c (create_copied_type_recursive): New
2765 function.
2766 (compile_object_run): Use new function.
2767
2768 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
2769
2770 * NEWS: Mention x86_64 Cygwin core file support.
2771
2772 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2773
2774 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
2775 (core_process_module_section): Handle NOTE_INFO_MODULE64.
2776
2777 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2778
2779 * windows-tdep.h: Add prototypes.
2780 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
2781 (i386_windows_core_pid_to_str): Move and rename ...
2782 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
2783 (windows_core_pid_to_str): ... and here.
2784 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
2785
2786 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2787 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
2788 (amd64_windows_init_abi_common): ... and register.
2789
2790 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2791
2792 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
2793 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
2794
2795 2020-09-18 Pedro Alves <pedro@palves.net>
2796
2797 PR gdb/26631
2798 * thread.c (thread_find_command): Switch inferior before calling
2799 target methods.
2800
2801 2020-09-17 Tom Tromey <tromey@adacore.com>
2802
2803 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
2804 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
2805 (tdesc_arch_data_up): New typedef.
2806 (tdesc_use_registers, tdesc_data_alloc): Update.
2807 (tdesc_data_cleanup): Don't declare.
2808 * target-descriptions.c (tdesc_data_alloc): Return a
2809 tdesc_arch_data_up.
2810 (tdesc_arch_data_deleter::operator()): Rename from
2811 tdesc_data_cleanup. Change argument type.
2812 (tdesc_use_registers): Change early_data to an rvalue reference.
2813 (tdesc_use_registers): Don't use delete.
2814 * sparc-tdep.c (sparc32_gdbarch_init): Update.
2815 * s390-tdep.c (s390_gdbarch_init): Update.
2816 * rx-tdep.c (rx_gdbarch_init): Update.
2817 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2818 * riscv-tdep.c (riscv_gdbarch_init): Update.
2819 * or1k-tdep.c (or1k_gdbarch_init): Update.
2820 * nios2-tdep.c (nios2_gdbarch_init): Update.
2821 * nds32-tdep.c (nds32_gdbarch_init): Update.
2822 * mips-tdep.c (mips_gdbarch_init): Update.
2823 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
2824 * m68k-tdep.c (m68k_gdbarch_init): Update.
2825 * i386-tdep.c (i386_gdbarch_init): Update.
2826 * arm-tdep.c (arm_gdbarch_init): Update.
2827 * arc-tdep.c (arc_tdesc_init): Update.
2828 (arc_gdbarch_init): Update.
2829 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
2830
2831 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
2832
2833 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
2834 for WOW64 processes.
2835
2836 2020-09-17 Tom Tromey <tom@tromey.com>
2837
2838 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
2839
2840 2020-09-17 Tom Tromey <tom@tromey.com>
2841
2842 * value.c (preserve_values): Update.
2843 * python/py-type.c (save_objfile_types): Update.
2844 * guile/scm-type.c (save_objfile_types): Update.
2845 * gdbtypes.h (create_copied_types_hash): Return htab_up.
2846 * gdbtypes.c (create_copied_types_hash): Return htab_up.
2847 * compile/compile-object-run.c (compile_object_run): Update.
2848
2849 2020-09-17 Tom Tromey <tom@tromey.com>
2850
2851 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
2852 Remove.
2853 <m_table>: Now htab_up.
2854 * typeprint.c (typedef_hash_table::recursively_update)
2855 (typedef_hash_table::add_template_parameters)
2856 (typedef_hash_table::typedef_hash_table): Update.
2857 (typedef_hash_table::~typedef_hash_table): Remove.
2858 (typedef_hash_table::typedef_hash_table)
2859 (typedef_hash_table::find_global_typedef)
2860 (typedef_hash_table::find_typedef): Update.
2861
2862 2020-09-17 Tom Tromey <tom@tromey.com>
2863
2864 * target-descriptions.c (tdesc_use_registers): Use htab_up.
2865
2866 2020-09-17 Tom Tromey <tom@tromey.com>
2867
2868 * linespec.c (class decode_compound_collector)
2869 <~decode_compound_collector>: Remove.
2870 <m_unique_syms>: Now htab_up.
2871 (decode_compound_collector::operator ()): Update.
2872 (class symtab_collector) <~symtab_collector>: Remove.
2873 <m_symtab_table>: Now htab_up.
2874 (symtab_collector::operator ()): Update.
2875
2876 2020-09-17 Tom Tromey <tom@tromey.com>
2877
2878 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
2879 (filename_seen_cache::clear): Update.
2880 (~filename_seen_cache): Remove.
2881 (filename_seen_cache::seen): Update.
2882 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
2883 htab_up.
2884 <~filename_seen_cache>: Remove.
2885 <traverse>: Update.
2886
2887 2020-09-17 Tom Tromey <tom@tromey.com>
2888
2889 * completer.c (completion_tracker::discard_completions)
2890 (completion_tracker::~completion_tracker)
2891 (completion_tracker::maybe_add_completion)
2892 (completion_tracker::remove_completion)
2893 (completion_tracker::recompute_lowest_common_denominator)
2894 (completion_tracker::build_completion_result): Update.
2895 * completer.h (class completion_tracker) <have_completions>:
2896 Update.
2897 <m_entries_hash>: Now htab_up.
2898
2899 2020-09-17 Tom Tromey <tom@tromey.com>
2900
2901 * breakpoint.c (ambiguous_names_p): Use htab_up.
2902
2903 2020-09-17 Tom Tromey <tom@tromey.com>
2904
2905 * auto-load.c (struct auto_load_pspace_info)
2906 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
2907 <loaded_script_files, loaded_script_texts>: Change type to
2908 htab_up.
2909 (~auto_load_pspace_info) Remove.
2910 (init_loaded_scripts_info, maybe_add_script_file)
2911 (maybe_add_script_text, auto_load_info_scripts): Update.
2912
2913 2020-09-17 Tom Tromey <tromey@adacore.com>
2914
2915 * c-exp.y (name_obstack): Now static.
2916
2917 2020-09-17 Chungyi Chi <demonic@csie.io>
2918
2919 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
2920
2921 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
2922
2923 * breakpoint.h (init_catchpoint): Change int parameter to bool.
2924 (add_solib_catchpoint): Likewise.
2925 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
2926 to bool.
2927 (add_solib_catchpoint): Change int parameter/variable to bool.
2928 (catch_load_or_unload): Likewise.
2929 (init_catchpoint): Likewise.
2930 (create_fork_vfork_event_catchpoint): Likewise.
2931 (catch_fork_command_1): Likewise.
2932 (catch_exec_command_1): Likewise.
2933
2934 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
2935
2936 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
2937 Change instance_flags to m_instance_flags.
2938
2939 2020-09-16 Tom Tromey <tromey@adacore.com>
2940
2941 PR gdb/26598:
2942 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
2943
2944 2020-09-16 John Baldwin <jhb@FreeBSD.org>
2945
2946 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
2947 PL_FLAG_EXEC.
2948 (fbsd_nat_target::insert_exec_catchpoint)
2949 (fbsd_nat_target::remove_exec_catchpoint): Always define.
2950 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
2951 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
2952
2953 2020-09-16 John Baldwin <jhb@FreeBSD.org>
2954
2955 * configure.ac: Remove check for kinfo_getvmmap().
2956 * configure, config.in: Regenerate.
2957 * fbsd-nat.c (fbsd_read_mapping): Remove
2958 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
2959 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
2960 kinfo_get_vmmap() are always present.
2961
2962 2020-09-16 John Baldwin <jhb@FreeBSD.org>
2963
2964 * fbsd-nat.c: Always include support for
2965 TARGET_OBJECT_SIGNAL_INFO.
2966
2967 2020-09-16 John Baldwin <jhb@FreeBSD.org>
2968
2969 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
2970 sysctl and remove procfs fallback.
2971
2972 2020-09-16 John Baldwin <jhb@FreeBSD.org>
2973
2974 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
2975 * fbsd-nat.h: Likewise.
2976
2977 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2978
2979 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
2980 argument.
2981
2982 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2983
2984 * ada-lang.c (ada_language_data): Delete.
2985 (ada_language): Remove references to ada_language_data.
2986 * c-lang.c (c_language_data): Delete.
2987 (c_language): Remove references to c_language_data.
2988 (cplus_language_data): Delete.
2989 (cplus_language): Remove references to cplus_language_data.
2990 (asm_language_data): Delete.
2991 (asm_language): Remove references to asm_language_data.
2992 (minimal_language_data): Delete.
2993 (minimal_language): Remove references to minimal_language_data.
2994 * d-lang.c (d_language_data): Delete.
2995 (d_language): Remove references to d_language_data.
2996 * f-lang.c (f_language_data): Delete.
2997 (f_language): Remove references to f_language_data.
2998 * go-lang.c (go_language_data): Delete.
2999 (go_language): Remove references to go_language_data.
3000 * language.c (unknown_language_data): Delete.
3001 (unknown_language): Remove references to unknown_language_data.
3002 (auto_language_data): Delete.
3003 (auto_language): Remove references to auto_language_data.
3004 * language.h (language_data): Delete struct.
3005 (language_defn): No longer inherit from language_data.
3006 * m2-lang.c (m2_language_data): Delete.
3007 (m2_language): Remove references to m2_language_data.
3008 * objc-lang.c (objc_language_data): Delete.
3009 (objc_language): Remove references to objc_language_data.
3010 * opencl-lang.c (opencl_language_data): Delete.
3011 (opencl_language): Remove references to opencl_language_data.
3012 * p-lang.c (pascal_language_data): Delete.
3013 (pascal_language): Remove references to pascal_language_data.
3014 * rust-lang.c (rust_language_data): Delete.
3015 (rust_language): Remove references to rust_language_data.
3016
3017 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3018
3019 * ada-lang.c (ada_language_data): Remove la_op_print_tab
3020 initializer.
3021 (ada_language::opcode_print_table): New member function.
3022 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
3023 (c_language::opcode_print_table): New member function.
3024 (cplus_language_data): Remove la_op_print_tab initializer.
3025 (cplus_language::opcode_print_table): New member function.
3026 (asm_language_data): Remove la_op_print_tab initializer.
3027 (asm_language::opcode_print_table): New member function.
3028 (minimal_language_data): Remove la_op_print_tab initializer.
3029 (minimal_language::opcode_print_table): New member function.
3030 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
3031 (d_language::opcode_print_table): New member function.
3032 * expprint.c (print_subexp_standard): Update call to
3033 opcode_print_table.
3034 (op_string): Likewise.
3035 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
3036 (f_language::opcode_print_table): New member function.
3037 * go-lang.c (go_language_data): Remove la_op_print_tab
3038 initializer.
3039 (go_language::opcode_print_table): New member function.
3040 * language.c (unknown_language_data): Remove la_op_print_tab
3041 initializer.
3042 (unknown_language::opcode_print_table): New member function.
3043 (auto_language_data): Remove la_op_print_tab initializer.
3044 (auto_language::opcode_print_table): New member function.
3045 * language.h (language_data): Remove la_op_print_tab field.
3046 (language_defn::opcode_print_table): Declare new member function.
3047 * m2-lang.c (m2_language_data): Remove la_op_print_tab
3048 initializer.
3049 (m2_language::opcode_print_table): New member function.
3050 * objc-lang.c (objc_language_data): Remove la_op_print_tab
3051 initializer.
3052 (objc_language::opcode_print_table): New member function.
3053 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
3054 initializer.
3055 (opencl_language::opcode_print_table): New member function.
3056 * p-lang.c (pascal_language_data): Remove la_op_print_tab
3057 initializer.
3058 (pascal_language::opcode_print_table): New member function.
3059 * rust-lang.c (rust_language_data): Remove la_op_print_tab
3060 initializer.
3061 (rust_language::opcode_print_table): New member function.
3062
3063 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3064
3065 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
3066 (ada_language::expression_ops): New member function.
3067 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
3068 (c_language::expression_ops): New member function.
3069 (cplus_language_data): Remove la_exp_desc initializer.
3070 (cplus_language::expression_ops): New member function.
3071 (asm_language_data): Remove la_exp_desc initializer.
3072 (asm_language::expression_ops): New member function.
3073 (minimal_language_data): Remove la_exp_desc initializer.
3074 (minimal_language::expression_ops): New member function.
3075 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
3076 (d_language::expression_ops): New member function.
3077 * eval.c (evaluate_subexp): Update call to expression_ops.
3078 * expprint.c (print_subexp): Likewise.
3079 (op_name): Likewise.
3080 (dump_subexp_body): Likewise.
3081 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
3082 (f_language::expression_ops): New member function.
3083 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
3084 (go_language::expression_ops): New member function.
3085 * language.c (language_defn::expression_ops): New function.
3086 (unknown_language_data): Remove la_exp_desc initializer.
3087 (auto_language_data): Likewise.
3088 * language.h (language_data): Remove la_exp_desc field.
3089 (language_defn::expression_ops): Declare new member function.
3090 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
3091 (m2_language::expression_ops): New member function.
3092 * objc-lang.c (objc_language_data): Remove la_exp_desc
3093 initializer.
3094 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
3095 initializer.
3096 (opencl_language::expression_ops): New member function.
3097 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
3098 * parse.c (operator_length): Update call to expression_ops.
3099 (exp_iterate): Likewise.
3100 * rust-lang.c (rust_language_data): Remove la_exp_desc
3101 initializer.
3102 (ruse_language::expression_ops): New member function.
3103
3104 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3105
3106 * ada-lang.c (ada_language_data): Remove la_varobj_ops
3107 initializer.
3108 (ada_language::varobj_ops): New member function.
3109 * c-lang.c (c_language_data): Remove la_varobj_ops
3110 initializer.
3111 (cplus_language_data): Likewise.
3112 (cplus_language::varobj_ops): New member function.
3113 (asm_language_data): Remove la_varobj_ops initializer.
3114 (minimal_language_data): Likewise.
3115 * d-lang.c (d_language_data): Likewise.
3116 * f-lang.c (f_language_data): Likewise.
3117 * go-lang.c (go_language_data): Likewise.
3118 * language.c (language_defn::varobj_ops): New function.
3119 (unknown_language_data): Remove la_varobj_ops
3120 initializer.
3121 (auto_language_data): Likewise.
3122 * language.h (language_data): Remove la_varobj_ops field.
3123 (language_defn::varobj_ops): Declare new member function.
3124 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
3125 * objc-lang.c (objc_language_data): Likewise.
3126 * opencl-lang.c (opencl_language_data): Likewise.
3127 * p-lang.c (pascal_language_data): Likewise.
3128 * rust-lang.c (rust_language_data): Likewise.
3129 * varobj.c (varobj_create): Update call to varobj_ops.
3130 * varobj.h (default_varobj_ops): Delete define.
3131
3132 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3133
3134 * ada-lang.c (ada_language_data): Remove la_macro_expansion
3135 initializer.
3136 * c-lang.c (c_language_data): Likewise.
3137 (c_language::macro_expansion): New member function.
3138 (cplus_language_data): Likewise.
3139 (cplus_language::macro_expansion): New member function.
3140 (asm_language_data): Likewise.
3141 (asm_language::macro_expansion): New member function.
3142 (minimal_language_data): Likewise.
3143 (minimal_language::macro_expansion): New member function.
3144 * d-lang.c (d_language_data): Remove la_macro_expansion
3145 initializer.
3146 * f-lang.c (f_language_data): Likewise.
3147 * go-lang.c (go_language_data): Likewise.
3148 * language.c (unknown_language_data): Likewise.
3149 (auto_language_data): Likewise.
3150 * language.h (language_data): Remove la_macro_expansion field.
3151 (language_defn::macro_expansion): New member function.
3152 * m2-lang.c (m2_language_data): Remove la_macro_expansion
3153 initializer.
3154 * objc-lang.c (objc_language_data): Likewise.
3155 (objc_language::macro_expansion): New member function.
3156 * opencl-lang.c (opencl_language_data): Likewise.
3157 (opencl_language::macro_expansion): New member function.
3158 * p-lang.c (pascal_language_data): Remove la_macro_expansion
3159 initializer.
3160 * rust-lang.c (rust_language_data): Likewise.
3161 * symtab.c (default_collect_symbol_completion_matches_break_on):
3162 Update call to macro_expansion.
3163
3164 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3165
3166 * ada-lang.c (ada_language_data): Remove la_array_ordering
3167 initializer.
3168 * c-lang.c (c_language_data): Likewise.
3169 (cplus_language_data): Likewise.
3170 (asm_language_data): Likewise.
3171 (minimal_language_data): Likewise.
3172 * d-lang.c (d_language_data): Likewise.
3173 * dwarf2/read.c (read_array_order): Update for call to
3174 array_ordering.
3175 * f-lang.c (f_language_data): Remove la_array_ordering
3176 initializer.
3177 (f_language::array_ordering): New member function.
3178 * go-lang.c (go_language_data): Remove la_array_ordering
3179 initializer.
3180 * language.c (unknown_language_data): Likewise.
3181 (auto_language_data): Likewise.
3182 * language.h (language_data): Delete la_array_ordering field.
3183 (language_defn::array_ordering): New member function.
3184 * m2-lang.c (m2_language_data): Remove la_array_ordering
3185 initializer.
3186 * objc-lang.c (objc_language_data): Likewise.
3187 * opencl-lang.c (opencl_language_data): Likewise.
3188 * p-lang.c (pascal_language_data): Likewise.
3189 * rust-lang.c (rust_language_data): Likewise.
3190
3191 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3192
3193 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
3194 initializer.
3195 * c-lang.c (c_language_data): Likewise.
3196 (cplus_language_data): Likewise.
3197 (asm_language_data): Likewise.
3198 (minimal_language_data): Likewise.
3199 * d-lang.c (d_language_data): Likewise.
3200 * f-lang.c (f_language_data): Likewise.
3201 (f_language::case_sensitivity): New member function.
3202 * go-lang.c (go_language_data): Remove la_case_sensitivity
3203 initializer.
3204 * language.c (enum case_mode): Moved here from language.h.
3205 (case_mode): Make static.
3206 (show_case_command): Update for case_sensitivity being a method.
3207 (set_case_command): Likewise.
3208 (set_range_case): Likewise.
3209 (unknown_language_data): Remove la_case_sensitivity initializer.
3210 (auto_language_data): Likewise.
3211 * language.h (case_mode): Delete, move enum declaration to
3212 language.c.
3213 (language_data): Delete la_case_sensitivity field.
3214 (language_defn::case_sensitivity): New member function.
3215 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
3216 initializer.
3217 * objc-lang.c (objc_language_data): Likewise.
3218 * opencl-lang.c (opencl_language_data): Likewise.
3219 * p-lang.c (pascal_language_data): Likewise.
3220 * rust-lang.c (rust_language_data): Likewise.
3221
3222 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3223
3224 * ada-lang.c (ada_language_data): Remove la_range_check
3225 initializer.
3226 * c-lang.c (c_language_data): Likewise.
3227 (cplus_language_data): Likewise.
3228 (asm_language_data): Likewise.
3229 (minimal_language_data): Likewise.
3230 * d-lang.c (d_language_data): Likewise.
3231 * f-lang.c (f_language_data): Likewise.
3232 (f_language::range_checking_on_by_default): New member function.
3233 * go-lang.c (go_language_data): Remove la_range_check initializer.
3234 * language.c (enum range_mode): Moved here from language.h.
3235 (range_mode): Made static.
3236 (show_range_command): Update to use
3237 range_checking_on_by_default.
3238 (set_range_command): Likewise.
3239 (set_range_case): Likewise.
3240 (unknown_language_data): Remove la_range_check initializer.
3241 (auto_language_data): Likewise.
3242 * language.h (range_mode): Delete. Enum definition moved to
3243 language.c.
3244 (language_data): Remove la_range_check field.
3245 (language_defn::range_checking_on_by_default): New member
3246 function.
3247 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
3248 (m2_language::range_checking_on_by_default): New member function.
3249 * objc-lang.c (objc_language_data): Remove la_range_check
3250 initializer.
3251 * opencl-lang.c (opencl_language_data): Likewise.
3252 * p-lang.c (pascal_language_data): Likewise.
3253 (pascal_language::range_checking_on_by_default): New member
3254 function.
3255 * rust-lang.c (rust_language_data): Remove la_range_check
3256 initializer.
3257 (rust_language::range_checking_on_by_default): New member
3258 function.
3259
3260 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3261
3262 * dwarf2/read.c (dwarf2_physname): Remove special case for
3263 language_go.
3264 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
3265 member function.
3266
3267 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3268
3269 * ada-lang.c (ada_language_data): Remove
3270 la_store_sym_names_in_linkage_form_p initializer.
3271 (ada_language::store_sym_names_in_linkage_form_p): New member
3272 function.
3273 * c-lang.c (c_language_data): Remove
3274 la_store_sym_names_in_linkage_form_p initializer.
3275 (c_language::store_sym_names_in_linkage_form_p): New member
3276 function.
3277 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
3278 initializer.
3279 (asm_language_data): Likewise.
3280 (asm_language::store_sym_names_in_linkage_form_p): New member
3281 function.
3282 (minimal_language_data): Remove
3283 la_store_sym_names_in_linkage_form_p initializer.
3284 (minimal_language::store_sym_names_in_linkage_form_p): New member
3285 function.
3286 * d-lang.c (d_language_data): Remove
3287 la_store_sym_names_in_linkage_form_p initializer.
3288 * dwarf2/read.c (dwarf2_physname): Update call to
3289 store_sym_names_in_linkage_form_p.
3290 * f-lang.c (f_language_data): Remove
3291 la_store_sym_names_in_linkage_form_p initializer.
3292 * go-lang.c (go_language_data): Remove
3293 la_store_sym_names_in_linkage_form_p initializer.
3294 * language.c (unknown_language_data): Remove
3295 la_store_sym_names_in_linkage_form_p initializer.
3296 (unknown_language::store_sym_names_in_linkage_form_p): New member
3297 function.
3298 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
3299 initializer.
3300 (auto_language::store_sym_names_in_linkage_form_p): New member
3301 function.
3302 * language.h (language_data): Remove
3303 la_store_sym_names_in_linkage_form_p member variable.
3304 (language_defn::store_sym_names_in_linkage_form_p): New member
3305 function.
3306 * m2-lang.c (m2_language_data): Remove
3307 la_store_sym_names_in_linkage_form_p initializer.
3308 * objc-lang.c (objc_language_data): Likewise.
3309 * opencl-lang.c (opencl_language_data): Likewise.
3310 * p-lang.c (pascal_language_data): Likewise.
3311 * rust-lang.c (rust_language_data): Likewise.
3312
3313 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3314
3315 * ada-lang.c (ada_language_data): Remove string_lower_bound
3316 initializer.
3317 * c-lang.c (c_language_data): Likewise.
3318 (cplus_language_data): Likewise.
3319 (asm_language_data): Likewise.
3320 (minimal_language_data): Likewise.
3321 * d-lang.c (d_language_data): Likewise.
3322 * f-lang.c (f_language_data): Likewise.
3323 * go-lang.c (go_language_data): Likewise.
3324 * language.c (unknown_language_data): Likewise.
3325 (auto_language_data): Likewise.
3326 * language.h (language_data): Remove string_lower_bound field.
3327 (language_defn::string_lower_bound): New member function.
3328 * m2-lang.c (m2_language_data): Remove string_lower_bound
3329 initializer.
3330 (m2_language::string_lower_bound): New member function.
3331 * objc-lang.c (objc_language_data): Remove string_lower_bound
3332 initializer.
3333 * opencl-lang.c (opencl_language_data): Likewise.
3334 * p-lang.c (pascal_language_data): Likewise.
3335 * rust-lang.c (rust_language_data): Likewise.
3336 * valops.c (value_cstring): Update call to string_lower_bound.
3337 (value_string): Likewise.
3338 * value.c (allocate_repeated_value): Likewise.
3339
3340 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3341
3342 * valops.c (value_repeat): Fix incorrect argument name in comment.
3343
3344 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3345
3346 * ada-lang.c (ada_language_data): Remove c_style_arrays
3347 initializer.
3348 (ada_language::c_style_arrays_p): New member fuction.
3349 * c-lang.c (c_language_data): Remove c_style_arrays
3350 initializer.
3351 (cplus_language_data): Likewise.
3352 (asm_language_data): Likewise.
3353 (minimal_language_data): Likewise.
3354 * d-lang.c (d_language_data): Likewise.
3355 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
3356 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
3357 (f_language::c_style_arrays_p): New member function.
3358 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
3359 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
3360 * language.c (unknown_language_data): Remove c_style_arrays
3361 initializer.
3362 (auto_language_data): Likewise.
3363 * language.h (language_data): Remove c_style_arrays field.
3364 (language_defn::c_style_arrays_p): New member function.
3365 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
3366 (m2_language::c_style_arrays_p): New member function.
3367 * objc-lang.c (objc_language_data): Remove c_style_arrays
3368 initializer.
3369 * opencl-lang.c (opencl_language_data): Likewise.
3370 * p-lang.c (pascal_language_data): Likewise.
3371 * rust-lang.c (rust_language_data): Likewise.
3372 * valarith.c (value_subscript): Update call to c_style_arrays_p,
3373 and update local variable to a bool.
3374 * valops.c (value_cast): Update call to c_style_arrays_p.
3375 (value_array): Likewise.
3376 * value.c (coerce_array): Likewise.
3377
3378 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3379
3380 * ada-lang.c (ada_language_data): Remove la_language initializer.
3381 * c-lang.c (c_language_data): Likewise.
3382 (cplus_language_data): Likewise.
3383 (asm_language_data): Likewise.
3384 (minimal_language_data): Likewise.
3385 * d-lang.c (d_language_data): Likewise.
3386 * f-lang.c (f_language_data): Likewise.
3387 * go-lang.c (go_language_data): Likewise.
3388 * language.c (unknown_language_data): Likewise.
3389 (auto_language_data): Likewise.
3390 * language.h (language_data): Remove la_language field.
3391 (language_defn::language_defn): Initialise la_language field.
3392 (language_defn::la_language): New member variable.
3393 * m2-lang.c (m2_language_data): Remove la_language field.
3394 * objc-lang.c (objc_language_data): Likewise.
3395 * opencl-lang.c (opencl_language_data): Likewise.
3396 * p-lang.c (pascal_language_data): Likewise.
3397 * rust-lang.c (rust_language_data): Likewise.
3398
3399 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3400
3401 * ada-lang.c (ada_extensions): Delete, moved into
3402 ada_language::filename_extensions.
3403 (ada_language_data): Remove la_filename_extensions initializer.
3404 (ada_language::filename_extensions): New member function.
3405 * c-lang.c (c_extensions): Delete, moved into
3406 c_language::filename_extensions.
3407 (c_language_data): Remove la_filename_extensions initializer.
3408 (c_language::filename_extensions): New member function.
3409 (cplus_extensions): Delete, moved into
3410 cplus_language::filename_extensions.
3411 (cplus_language_data): Remove la_filename_extensions initializer.
3412 (cplus_language::filename_extensions): New member function.
3413 (asm_extensions): Delete, moved into
3414 asm_language::filename_extensions.
3415 (asm_language_data): Remove la_filename_extensions initializer.
3416 (asm_language::filename_extensions): New member function.
3417 (minimal_language_data): Remove la_filename_extensions
3418 initializer.
3419 * d-lang.c (d_extensions): Delete, moved into
3420 d_language::filename_extensions.
3421 (d_language_data): Remove la_filename_extensions initializer.
3422 (d_language::filename_extensions): New member function.
3423 * f-lang.c (f_extensions): Delete, moved into
3424 f_language::filename_extensions.
3425 (f_language_data): Remove la_filename_extensions initializer.
3426 (f_language::filename_extensions): New member function.
3427 * go-lang.c (go_language_data): Remove la_filename_extensions
3428 initializer.
3429 * language.c (add_set_language_command): Update now that
3430 filename_extensions returns a vector.
3431 (unknown_language_data): Remove la_filename_extensions
3432 initializer.
3433 (auto_language_data): Likewise.
3434 * language.h (language_data): Remove la_filename_extensions field.
3435 (language_defn::filename_extensions): New member function.
3436 * m2-lang.c (m2_language_data): Remove la_filename_extensions
3437 initializer.
3438 * objc-lang.c (objc_extensions): Delete, moved into
3439 objc_language::filename_extensions.
3440 (objc_language_data): Remove la_filename_extensions initializer.
3441 (objc_language::filename_extensions): New member function.
3442 * opencl-lang.c (opencl_language_data): Remove
3443 la_filename_extensions initializer.
3444 * p-lang.c (pascal_extensions): Delete, moved into
3445 pascal_language::filename_extensions.
3446 (pascal_language_data): Remove la_filename_extensions initializer.
3447 (pascal_language::filename_extensions): New member function.
3448 * rust-lang.c (rust_extensions): Delete, moved into
3449 rust_language::filename_extensions.
3450 (rust_language_data): Remove la_filename_extensions initializer.
3451 (rust_language::filename_extensions): New member function.
3452 * symfile.c (add_filename_language): Add new assert.
3453
3454 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3455
3456 * ada-lang.c (ada_language_data): Remove la_name and
3457 la_natural_name initializers.
3458 (ada_language::name): New member function.
3459 (ada_language::natural_name): New member function.
3460 * c-lang.c (c_language_data): Remove la_name and
3461 la_natural_name initializers.
3462 (c_language::name): New member function.
3463 (c_language::natural_name): New member function.
3464 (cplus_language_data): Remove la_name and
3465 la_natural_name initializers.
3466 (cplus_language::name): New member function.
3467 (cplus_language::natural_name): New member function.
3468 (asm_language_data): Remove la_name and
3469 la_natural_name initializers.
3470 (asm_language::name): New member function.
3471 (asm_language::natural_name): New member function.
3472 (minimal_language_data): Remove la_name and
3473 la_natural_name initializers.
3474 (minimal_language::name): New member function.
3475 (minimal_language::natural_name): New member function.
3476 * compile/compile.c (compile_to_object): Update call to
3477 lanugage_defn::name.
3478 * d-lang.c (d_language_data): Remove la_name and
3479 la_natural_name initializers.
3480 (d_language::name): New member function.
3481 (d_language::natural_name): New member function.
3482 * expprint.c (print_subexp_standard): Update call to
3483 language_defn::name.
3484 (dump_raw_expression): Likewise
3485 (dump_prefix_expression): Likewise.
3486 * f-lang.c (f_language_data): Remove la_name and
3487 la_natural_name initializers.
3488 (f_language::name): New member function.
3489 (f_language::natural_name): New member function.
3490 * go-lang.c (go_language_data): Remove la_name and
3491 la_natural_name initializers.
3492 (go_language::name): New member function.
3493 (go_language::natural_name): New member function.
3494 * language.c (show_language_command): Update call to
3495 language_defn::name.
3496 (set_language_command): Likewise.
3497 (language_enum): Likewise.
3498 (language_str): Likewise.
3499 (add_set_language_command): Likewise, use
3500 language_defn::natural_name in the doc string.
3501 (unknown_language_data): Remove la_name and
3502 la_natural_name initializers.
3503 (unknown_language::name): New member function.
3504 (unknown_language::natural_name): New member function.
3505 (auto_language_data): Remove la_name and
3506 la_natural_name initializers.
3507 (auto_language::name): New member function.
3508 (auto_language::natural_name): New member function.
3509 (language_lookup_primitive_type_as_symbol): Update call to
3510 language_defn::name.
3511 * language.h (language_data): Remove la_name and la_natural_name
3512 member variables.
3513 (language_defn::name): New member function.
3514 (language_defn::natural_name): New member function.
3515 * m2-lang.c (m2_language_data): Remove la_name and
3516 la_natural_name initializers.
3517 (m2_language::name): New member function.
3518 (m2_language::natural_name): New member function.
3519 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
3520 language_defn::natural_name.
3521 * objc-lang.c (objc_language_data): Remove la_name and
3522 la_natural_name initializers.
3523 (objc_language::name): New member function.
3524 (objc_language::natural_name): New member function.
3525 * opencl-lang.c (opencl_language_data): Remove la_name and
3526 la_natural_name initializers.
3527 (opencl_language::name): New member function.
3528 (opencl_language::natural_name): New member function.
3529 * p-lang.c (pascal_language_data): Remove la_name and
3530 la_natural_name initializers.
3531 (pascal_language::name): New member function.
3532 (pascal_language::natural_name): New member function.
3533 * rust-lang.c (rust_language_data): Remove la_name and
3534 la_natural_name initializers.
3535 (rust_language::name): New member function.
3536 (rust_language::natural_name): New member function.
3537 * symtab.c (lookup_language_this): Update call to
3538 language_defn::name.
3539
3540 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3541
3542 * ada-lang.c (ada_language_data): Remove la_name_of_this
3543 initializer.
3544 * ax-gdb.c (gen_expr): Update call to name_of_this.
3545 * c-exp.y (classify_name): Likewise.
3546 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
3547 (cplus_language_data): Likewise.
3548 (cplus_language::name_of_this): New member function.
3549 (asm_language_data): Remove la_name_of_this initializer.
3550 (minimal_language_data): Likewise.
3551 * d-lang.c (d_language_data): Likewise.
3552 (d_language::name_of_this): New member function.
3553 * expprint.c (print_subexp_standard): Update call to name_of_this.
3554 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
3555 * go-lang.c (go_language_data): Likewise.
3556 * language.c (unknown_language_data): Likewise.
3557 (unknown_language::name_of_this): New member function.
3558 (auto_language_data): Remove la_name_of_this initializer.
3559 (auto_language::name_of_this): New member function.
3560 * language.h (language_data): Delete la_name_of_this member
3561 variable.
3562 (language_defn::name_of_this): New member function.
3563 * m2-lang.c (m2_language_data): Remove la_name_of_this
3564 initializer.
3565 * objc-lang.c (objc_language_data): Likewise.
3566 (objc_language::name_of_this): New member function.
3567 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
3568 initializer.
3569 * p-lang.c (pascal_language_data): Likewise.
3570 (pascal_language::name_of_this): New member function.
3571 * rust-lang.c (rust_language_data): Remove la_name_of_this
3572 initializer.
3573 * symtab.c (lookup_language_this): Update call to name_of_this.
3574 (lookup_symbol_aux): Likewise.
3575 * valops.c (value_of_this): Likewise.
3576
3577 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3578
3579 * ada-lang.c (ada_language_data): Remove
3580 la_struct_too_deep_ellipsis initializer.
3581 (ada_language::struct_too_deep_ellipsis): New member function.
3582 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
3583 initializer.
3584 (cplus_language_data): Likewise.
3585 (asm_language_data): Likewise.
3586 (minimal_language_data): Likewise.
3587 * cp-valprint.c (cp_print_value): Update call to
3588 struct_too_deep_ellipsis.
3589 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
3590 initializer.
3591 * f-lang.c (f_language_data): Likewise.
3592 (f_language::struct_too_deep_ellipsis): New member function.
3593 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
3594 initializer.
3595 * language.c (unknown_language_data): Likewise.
3596 (auto_language_data): Likewise.
3597 * language.h (language_data): Delete la_struct_too_deep_ellipsis
3598 member variable.
3599 (language_defn::struct_too_deep_ellipsis): New member function.
3600 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
3601 initializer.Q
3602 * objc-lang.c (objc_language_data): Likewise.
3603 * opencl-lang.c (opencl_language_data): Likewise.
3604 * p-lang.c (pascal_language_data): Likewise.
3605 * rust-lang.c (rust_language_data): Likewise.
3606 * valprint.c (val_print_check_max_depth): Update call to
3607 struct_too_deep_ellipsis.
3608
3609 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
3610
3611 * MAINTAINERS (Write After Approval): Add myself.
3612
3613 2020-09-15 Tom Tromey <tom@tromey.com>
3614
3615 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
3616 Remove.
3617
3618 2020-09-15 Tom Tromey <tom@tromey.com>
3619
3620 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
3621 and TYPE_CODE_METHODPTR cases.
3622 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
3623 (c_value_print_inner): Update.
3624 * valprint.c (generic_value_print_memberptr): New function, from
3625 c_value_print_memberptr.
3626 (generic_value_print): Use it. Call cplus_print_method_ptr.
3627
3628 2020-09-15 Tom Tromey <tromey@adacore.com>
3629
3630 * python/python-internal.h (PyInt_FromLong): Remove define.
3631 * python/py-value.c (convert_value_from_python): Use
3632 gdb_py_object_from_longest.
3633 * python/py-type.c (typy_get_code): Use
3634 gdb_py_object_from_longest.
3635 * python/py-symtab.c (salpy_get_line): Use
3636 gdb_py_object_from_longest.
3637 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
3638 gdb_py_object_from_longest.
3639 * python/py-record.c (recpy_gap_reason_code): Use
3640 gdb_py_object_from_longest.
3641 * python/py-record-btrace.c (recpy_bt_insn_size)
3642 (recpy_bt_func_level, btpy_list_count): Use
3643 gdb_py_object_from_longest.
3644 * python/py-infthread.c (gdbpy_create_ptid_object): Use
3645 gdb_py_object_from_longest. Fix error handling.
3646 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
3647 gdb_py_object_from_longest.
3648 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
3649 gdb_py_object_from_longest.
3650 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
3651 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
3652 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
3653
3654 2020-09-15 Tom Tromey <tromey@adacore.com>
3655
3656 * python/python.c (gdbpy_parameter_value): Use
3657 gdb_py_object_from_ulongest.
3658
3659 2020-09-15 Tom Tromey <tromey@adacore.com>
3660
3661 * python/py-infevents.c (create_register_changed_event_object):
3662 Use gdb_py_object_from_longest.
3663 * python/py-exitedevent.c (create_exited_event_object): Use
3664 gdb_py_object_from_longest.
3665
3666 2020-09-15 Tom Tromey <tromey@adacore.com>
3667
3668 * python/python.c (gdbpy_parameter_value): Use
3669 gdb_py_object_from_longest.
3670 * python/py-type.c (convert_field, typy_range): Use
3671 gdb_py_object_from_longest.
3672 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
3673 gdb_py_object_from_longest.
3674 * python/py-lazy-string.c (stpy_get_length): Use
3675 gdb_py_object_from_longest.
3676 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
3677 gdb_py_object_from_longest.
3678 * python/py-infevents.c (create_memory_changed_event_object): Use
3679 gdb_py_object_from_longest.
3680 * python/py-inferior.c (infpy_get_num): Use
3681 gdb_py_object_from_longest.
3682 (infpy_get_pid): Likewise.
3683
3684 2020-09-15 Tom Tromey <tromey@adacore.com>
3685
3686 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
3687 defines.
3688 * python/py-value.c (valpy_long): Use
3689 gdb_py_object_from_ulongest.
3690 * python/py-symtab.c (salpy_get_pc): Use
3691 gdb_py_object_from_ulongest.
3692 (salpy_get_last): Likewise.
3693 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
3694 gdb_py_object_from_ulongest.
3695 * python/py-lazy-string.c (stpy_get_address): Use
3696 gdb_py_object_from_ulongest.
3697 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
3698 * python/py-arch.c (archpy_disassemble): Use
3699 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
3700 error handling.
3701
3702 2020-09-15 Tom Tromey <tromey@adacore.com>
3703
3704 * python/python-internal.h (gdb_py_long_from_longest): Remove
3705 defines.
3706 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
3707 * python/py-type.c (convert_field, typy_get_sizeof): Use
3708 gdb_py_object_from_longest.
3709 * python/py-record-btrace.c (btpy_list_index): Use
3710 gdb_py_object_from_longest.
3711
3712 2020-09-15 Tom Tromey <tromey@adacore.com>
3713
3714 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
3715 * python/py-record.c (recpy_element_number): Use
3716 gdb_py_object_from_longest.
3717 (recpy_gap_number): Likewise.
3718
3719 2020-09-15 Tom Tromey <tromey@adacore.com>
3720
3721 * top.c (ui::ui): Update.
3722 (highest_ui_num): Remove.
3723 * top.h (struct ui) <num>: Remove.
3724
3725 2020-09-15 Tom Tromey <tromey@adacore.com>
3726
3727 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
3728 * ui-style.c (ansi_regex_text): Now array.
3729 * rust-exp.y (number_regex_text): Now array.
3730 * linespec.c (linespec_quote_characters): Now array.
3731 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
3732 Now arrays.
3733
3734 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3735
3736 * debuginfod-support.c (debuginfod_client_deleter): New.
3737 (debuginfod_client_up): New.
3738 (debuginfod_init): Return debuginfod_client_up.
3739 (debuginfod_source_query): Adjust.
3740 (debuginfod_debuginfo_query): Adjust.
3741
3742 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3743
3744 * debuginfod-support.c (debuginfod_source_query): Use
3745 make_unique_xstrdup.
3746
3747 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3748
3749 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
3750 with `type::instance_flags`.
3751
3752 2020-09-14 Michael Mullin <masmullin@gmail.com>
3753
3754 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
3755 Remove baton parameter.
3756
3757 2020-09-14 Pedro Alves <pedro@palves.net>
3758
3759 * Makefile.in (SELFTESTS_SRCS): Add
3760 unittests/enum-flags-selftests.c.
3761 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
3762 btrace_function_flags instead of enum btrace_function_flag.
3763 * compile/compile-c-types.c (convert_qualified): Use
3764 enum_flags::raw.
3765 * compile/compile-cplus-symbols.c (convert_one_symbol)
3766 (convert_symbol_bmsym):
3767 * compile/compile-cplus-types.c (compile_cplus_convert_method)
3768 (compile_cplus_convert_struct_or_union_methods)
3769 (compile_cplus_instance::convert_qualified_base):
3770 * go-exp.y (parse_string_or_char): Add cast to int.
3771 * unittests/enum-flags-selftests.c: New file.
3772 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
3773 type to btrace_thread_flags from btrace_thread_flag.
3774 (record_btrace_cancel_resume, record_btrace_step_thread): Change
3775 local's type to btrace_thread_flags from btrace_thread_flag. Add
3776 cast in DEBUG call.
3777
3778 2020-09-14 Pedro Alves <pedro@palves.net>
3779
3780 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
3781 * gdbtypes.c (address_space_name_to_int): Rename to ...
3782 (address_space_name_to_type_instance_flags): ... this.
3783 (address_space_int_to_name): Rename to ...
3784 (address_space_type_instance_flags_to_name): ... this.
3785 * gdbtypes.h (address_space_name_to_int): Rename to ...
3786 (address_space_name_to_type_instance_flags): ... this.
3787 (address_space_int_to_name): Rename to ...
3788 (address_space_type_instance_flags_to_name): ... this.
3789 * type-stack.c (type_stack::insert): Adjust to rename.
3790 * type-stack.h (type_stack::insert): Likewise.
3791
3792 2020-09-14 Pedro Alves <pedro@palves.net>
3793 Andrew Burgess <andrew.burgess@embecosm.com>
3794
3795 * avr-tdep.c (avr_address_class_type_flags): Return
3796 type_instance_flags.
3797 (avr_address_class_type_flags_to_name): Take a
3798 type_instance_flags.
3799 (avr_address_class_name_to_type_flags): Return bool and take a
3800 type_instance_flags.
3801 * d-lang.c (build_d_types): Use type::set_instance_flags.
3802 * ft32-tdep.c (ft32_address_class_type_flags): Return
3803 type_instance_flags.
3804 (ft32_address_class_type_flags_to_name): Take a
3805 type_instance_flags.
3806 (ft32_address_class_name_to_type_flags): Return bool and take a
3807 type_instance_flags.
3808 (ft32_gdbarch_init): Use type::set_instance_flags.
3809 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
3810 * gdbarch.h, gdbarch.c: Regenerate.
3811 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
3812 (address_class_name_to_type_flags): Use type_instance_flags and
3813 bool.
3814 * gdbtypes.c (address_space_name_to_int)
3815 (address_space_int_to_name, make_qualified_type): Use
3816 type_instance_flags.
3817 (make_qualified_type): Use type_instance_flags and
3818 type::set_instance_flags.
3819 (make_type_with_address_space, make_cv_type, make_vector_type)
3820 (check_typedef): Use type_instance_flags.
3821 (recursive_dump_type): Cast type_instance_flags to unsigned for
3822 printing.
3823 (copy_type_recursive): Use type::set_instance_flags.
3824 (gdbtypes_post_init): Use type::set_instance_flags.
3825 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
3826 <m_instance_flags>: ... this.
3827 <instance_flags, set_instance_flags>: New methods.
3828 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
3829 (SET_TYPE_INSTANCE_FLAGS): New.
3830 (address_space_name_to_int, address_space_int_to_name)
3831 (make_type_with_address_space): Pass flags using
3832 type_instance_flags instead of int.
3833 * stabsread.c (cleanup_undefined_types_noname): Use
3834 type::set_instance_flags.
3835 * s390-tdep.c (s390_address_class_type_flags): Return
3836 type_instance_flags.
3837 (s390_address_class_type_flags_to_name): Take a
3838 type_instance_flags.
3839 (s390_address_class_name_to_type_flags): Return bool and take a
3840 type_instance_flags.
3841 * type-stack.c (type_stack::follow_types): Use
3842 type_instance_flags.
3843 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
3844
3845 2020-09-14 Tom Tromey <tromey@adacore.com>
3846
3847 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
3848 * x86-tdep.c (x86_is_thunk_register_name)
3849 (x86_in_indirect_branch_thunk): Update.
3850 * sparc64-tdep.c (sparc64_fpu_register_names)
3851 (sparc64_cp0_register_names, sparc64_register_names)
3852 (sparc64_pseudo_register_names): Now const.
3853 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
3854 cp0_registers_num>: Now const.
3855 * sparc-tdep.c (sparc_core_register_names)
3856 (sparc32_fpu_register_names, sparc32_cp0_register_names)
3857 (sparc32_pseudo_register_names): Now const.
3858 (validate_tdesc_registers): Update.
3859 * rust-lang.c (rust_extensions): Now const.
3860 * p-lang.c (p_extensions): Now const.
3861 * objc-lang.c (objc_extensions): Now const.
3862 * nto-tdep.c (nto_thread_state_str): Now const.
3863 * moxie-tdep.c (moxie_register_names): Now const.
3864 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
3865 Now const.
3866 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
3867 (mips_linux_reg_names): Now const.
3868 (mips_gdbarch_init): Update.
3869 * microblaze-tdep.c (microblaze_register_names): Now const.
3870 * m68k-tdep.c (m68k_register_names): Now const.
3871 * m32r-tdep.c (m32r_register_names): Now const.
3872 * ia64-tdep.c (ia64_register_names): Now const.
3873 * i386-tdep.h (struct gdbarch_tdep) <register_names,
3874 ymmh_register_names, ymm16h_regnum, mpx_register_names,
3875 k_register_names, zmmh_register_names, xmm_avx512_register_names,
3876 ymm_avx512_register_names, pkeys_register_names>: Now const.
3877 * i386-tdep.c (i386_register_names, i386_zmm_names)
3878 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
3879 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
3880 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
3881 * f-lang.c (f_extensions): Now const.
3882 * d-lang.c (d_extensions): Now const.
3883 * csky-tdep.c (csky_register_names): Now const.
3884 * charset.c (default_charset_names, charset_enum): Now const.
3885 (_initialize_charset): Update.
3886 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
3887 const.
3888 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
3889 (bsd_uthread_solib_loaded): Update.
3890 (bsd_uthread_state): Now const.
3891 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
3892 (amd64_ymm_avx512_names, amd64_ymmh_names)
3893 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
3894 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
3895 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
3896 (amd64_dword_names): Now const.
3897 * agent.c (can_use_agent_enum): Now const.
3898 * ada-tasks.c (task_states, long_task_states): Now const.
3899 * ada-lang.c (known_runtime_file_name_patterns)
3900 (known_auxiliary_function_name_patterns, attribute_names)
3901 (standard_exc, ada_extensions): Now const.
3902
3903 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3904
3905 * bcache.h (struct bcache) <bcache>: Remove constructor.
3906 <m_hash_function, m_compare_function>: Remove.
3907 <~bcache>: Make virtual.
3908 <compare>: Remove static method, introduce virtual method.
3909 <default_hash>: Remove.
3910 <hash>: New virtual method.
3911 * bcache.c (bcache::expand_hash_table): Update.
3912 (bcache::insert): Update.
3913 (bcache::hash): New.
3914 (bcache::compare): Update comment and parameter names.
3915 * gdbtypes.c (types_deeply_equal): Update.
3916 * psymtab.h (struct psymbol_bcache): New struct.
3917 (class psymtab_storage) <psymtab_storage>: Make default.
3918 <psymbol_cache>: Change type to psymbol_bcache.
3919 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
3920 (psymbol_hash): Change to...
3921 (psymbol_bcache::hash): ... this.
3922 (psymbol_compare): Change to...
3923 (psymbol_bcache::compare): ... this.
3924
3925 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3926
3927 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
3928 checking for initial lwp.
3929
3930 2020-09-14 Tom Tromey <tromey@adacore.com>
3931
3932 * m68k-tdep.c (m68k_extract_return_value): Use
3933 pointer_result_regnum.
3934 (m68k_store_return_value): Likewise.
3935 (m68k_reg_struct_return_p): Handle vectors and arrays.
3936 (m68k_return_value): Handle arrays.
3937 (m68k_svr4_return_value): Fix single-element aggregate handling.
3938 Handle long double. Adjust for embedded ABI.
3939 (m68k_svr4_init_abi): Set pointer_result_regnum.
3940 (m68k_embedded_init_abi): New function.
3941 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
3942 (m68k_osabi_sniffer): New function.
3943 (_initialize_m68k_tdep): Register osabi sniffer.
3944 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
3945 member.
3946
3947 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3948
3949 * xml-support.c (xml_fetch_content_from_file): Replace xfree
3950 with gdb::unique_xmalloc_ptr<char>.
3951
3952 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3953
3954 * xml-support.h (xml_fetch_another): Change type to be a
3955 function_view.
3956 (xml_process_xincludes): Remove baton parameter.
3957 (xml_fetch_content_from_file): Change baton parameter to
3958 dirname.
3959 * xml-support.c (struct xinclude_parsing_data)
3960 <xinclude_parsing_data>: Remove baton parameter.
3961 <fetcher_baton>: Remove.
3962 (xinclude_start_include): Adjust.
3963 (xml_process_xincludes): Adjust.
3964 (xml_fetch_content_from_file): Replace baton parameter with
3965 dirname.
3966 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
3967 (xml_init_syscalls_info): Use a lambda.
3968 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
3969 (file_read_description_xml): Use a lambda.
3970 (fetch_available_features_from_target): Change baton parameter
3971 to target_ops.
3972 (target_read_description_xml): Use a lambda.
3973 (target_fetch_description_xml): Use a lambda.
3974 (string_read_description_xml): Update.
3975
3976 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3977
3978 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
3979 uses with type::endianity_is_not_default.
3980
3981 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3982
3983 * gdbtypes.h (struct type) <endianity_is_not_default,
3984 set_endianity_is_not_default>: New methods.
3985 (TYPE_ENDIANITY_NOT_DEFAULT): Use
3986 type::endianity_is_not_default, change all write call sites to
3987 use type::set_endianity_is_not_default.
3988
3989 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3990
3991 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
3992 uses with type::is_fixed_instance.
3993
3994 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3995
3996 * gdbtypes.h (struct type) <is_fixed_instance,
3997 set_is_fixed_instance>: New methods.
3998 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
3999 write call sites to use type::set_is_fixed_instance.
4000
4001 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4002
4003 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
4004 uses with type::is_gnu_ifunc.
4005
4006 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4007
4008 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
4009 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
4010 use type::set_is_gnu_ifunc.
4011
4012 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4013
4014 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
4015 uses with type::stub_is_supported.
4016
4017 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4018
4019 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
4020 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
4021 use type::set_stub_is_supported.
4022
4023 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4024
4025 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
4026 uses with type::is_vector.
4027
4028 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4029
4030 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
4031 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
4032 use type::set_is_vector.
4033
4034 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4035
4036 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
4037 uses with type::has_varargs.
4038
4039 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4040
4041 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
4042 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
4043 use type::set_has_varargs.
4044
4045 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4046
4047 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
4048 uses with type::is_prototyped.
4049
4050 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4051
4052 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
4053 New methods.
4054 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
4055 call sites to use type::set_is_prototyped.
4056
4057 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4058
4059 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
4060 uses with type::target_is_stub.
4061
4062 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4063
4064 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
4065 New methods.
4066 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
4067 sites to use type::set_target_is_stub.
4068
4069 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4070
4071 * gdbtypes.h (TYPE_STUB): Remove, replace all
4072 uses with type::is_stub.
4073
4074 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4075
4076 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
4077 (TYPE_STUB): Use type::is_stub, change all write call sites to
4078 use type::set_is_stub.
4079
4080 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4081
4082 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
4083 type::has_no_signedness.
4084
4085 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4086
4087 * gdbtypes.h (struct type) <has_no_signedness,
4088 set_has_no_signedness>: New methods.
4089 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
4090 call sites to use type::set_has_no_signedness.
4091
4092 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4093
4094 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
4095 type::is_unsigned.
4096
4097 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4098
4099 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
4100 methods.
4101 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
4102 sites to use type::set_is_unsigned.
4103
4104 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
4105 Adam Renquinha <arenquinha@cimeq.qc.ca>
4106
4107 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
4108 pointer and stack frame offset when unwinding.
4109
4110 2020-09-13 Pedro Alves <pedro@palves.net>
4111
4112 * NEWS: Document "-break-insert --qualified".
4113 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
4114
4115 2020-09-13 Pedro Alves <pedro@palves.net>
4116
4117 * linespec.c (classify_mtype, compare_msyms): Delete.
4118 (search_minsyms_for_name): Remove classification logic. Instead
4119 filter out trampoline symbols if we also found an external
4120 function of the same name.
4121
4122 2020-09-13 Joel Brobecker <brobecker@adacore.com>
4123
4124 * NEWS: Create a new section for the next release branch.
4125 Rename the section of the current branch, now that it has
4126 been cut.
4127
4128 2020-09-13 Joel Brobecker <brobecker@adacore.com>
4129
4130 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
4131 * version.in: Bump version to 11.0.50.DATE-git.
4132
4133 2020-09-12 Joel Brobecker <brobecker@adacore.com>
4134
4135 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
4136
4137 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
4138 Felix Willgerodt <Felix.Willgerodt@intel.com>
4139
4140 * gdbarch.sh: Added bfloat16 type.
4141 * gdbarch.c: Regenerated.
4142 * gdbarch.h: Regenerated.
4143 * gdbtypes.c (floatformats_bfloat16): New struct.
4144 (gdbtypes_post_init): Add builtin_bfloat16.
4145 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
4146 (floatformats_bfloat16): New struct.
4147 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
4148 (i386_ymm_type): Add field "v16_bfloat16"
4149 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
4150 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
4151 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
4152 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
4153 * features/i386/64bit-avx512.xml: Add bfloat16 type.
4154 * features/i386/64bit-avx512.c: Regenerated.
4155 * features/i386/64bit-sse.xml: Add bfloat16 type.
4156 * features/i386/64bit-sse.c: Regenerated.
4157
4158 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
4159
4160 * i386-tdep.c (i386_zmm_type): Fix field names.
4161 (i386_ymm_type): Fix field names.
4162
4163 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4164
4165 * breakpoint.c: Fix typo in the help message of the
4166 "set breakpoint condition-evaluation" command.
4167
4168 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4169
4170 * nbsd-nat.c: Include "nat/netbsd-nat.h".
4171 * (nbsd_nat_target::pid_to_exec_file)
4172 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
4173 (nbsd_nat_target::post_startup_inferior)
4174 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
4175 (nbsd_add_threads): Switch local code to common gdb/nat functions.
4176 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
4177 * (nbsd_thread_lister): Remove.
4178
4179 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4180
4181 * fork-inferior.c (startup_inferior): Avoid double free.
4182
4183 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4184
4185 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
4186 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
4187
4188 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4189
4190 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
4191 * netbsd-nat.c: Include <sys/ptrace.h>.
4192 * (netbsd_nat::enable_proc_events): Add.
4193
4194 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4195
4196 * netbsd-nat.h: Include "gdbsupport/function-view.h".
4197 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4198 (netbsd_nat::for_each_thread): Add.
4199 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
4200 "gdbsupport/common-debug.h".
4201 * (netbsd_nat::netbsd_thread_lister)
4202 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4203 (netbsd_nat::for_each_thread): Add.
4204
4205 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4206
4207 * netbsd-nat.h: Include <unistd.h>.
4208 * (netbsd_nat::pid_to_exec_file): Add.
4209 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
4210 * (netbsd_nat::pid_to_exec_file) Add.
4211
4212 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4213
4214 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
4215
4216 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4217
4218 * netbsd-nat.h: New file.
4219 * netbsd-nat.c: Likewise.
4220
4221 2020-09-09 Tom Tromey <tromey@adacore.com>
4222
4223 * ada-lang.c (remove_extra_symbols): Do not increment when
4224 removing an element
4225
4226 2020-09-08 Tom Tromey <tromey@adacore.com>
4227
4228 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
4229
4230 2020-09-08 Tom Tromey <tromey@adacore.com>
4231
4232 PR win32/25302:
4233 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
4234 (gdb_bfd_init_data): New function.
4235 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
4236
4237 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4238
4239 * infrun.c (fetch_inferior_event): Use
4240 `switch_to_target_no_thread` to switch the target.
4241
4242 2020-09-06 Tom Tromey <tom@tromey.com>
4243
4244 * symfile.h (dwarf2_free_objfile): Don't declare.
4245
4246 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4247
4248 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
4249 to match 16 byte real/complex type generated by Flang compiler.
4250
4251 2020-09-03 Tom de Vries <tdevries@suse.de>
4252
4253 PR breakpoint/26546
4254 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
4255 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
4256
4257 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
4258
4259 * maint.c (index_digits): New function.
4260 (struct maint_print_section_data): Remove.
4261 (print_bfd_section_info): Remove print_data parameter, add arg
4262 and index_digits.
4263 (print_objfile_section_info): Likewise.
4264 (print_bfd_section_info_maybe_relocated): Likewise (plus
4265 objfile).
4266 (maintenance_info_sections): Adjust calls.
4267
4268 2020-09-02 Tom Tromey <tromey@adacore.com>
4269
4270 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
4271 for null pointers.
4272 (ada_varobj_adjust_for_child_access): Special-case null pointers.
4273
4274 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
4275
4276 * bcache.h (struct bcache) <insert>: Change type of `added` to
4277 pointer to bool.
4278 * bcache.c (bcache::insert): Likewise.
4279 * gdbtypes.c (check_types_worklist): Adjust.
4280 * psymtab.c (add_psymbol_to_bcache): Adjust.
4281
4282 2020-08-31 Kevin Buettner <kevinb@redhat.com>
4283
4284 * corelow.c (unordered_set): Include.
4285 (class core_target): Add field 'm_core_unavailable_mappings'.
4286 (core_target::build_file_mappings): Print only one warning
4287 per inaccessible file. Add unavailable/broken mappings
4288 to m_core_unavailable_mappings.
4289 (core_target::xfer_partial): Call...
4290 (core_target::xfer_memory_via_mappings): New method.
4291
4292 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4293
4294 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
4295 type to bool.
4296
4297 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4298
4299 * dwarf2/read.c (struct field_info): Fix indentation.
4300
4301 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
4302
4303 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
4304 ordering in comment.
4305 * frame.c (frame_id_eq): Fix indentation.
4306
4307 2020-08-31 Scott Linder <scott@scottlinder.com>
4308 Simon Marchi <simon.marchi@efficios.com>
4309
4310 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
4311 inline frame ids in outer frame.
4312
4313 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
4314
4315 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
4316 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
4317 (outer_frame_id): Use FID_STACK_OUTER instead of
4318 FID_STACK_INVALID.
4319 (frame_id_p): Don't check for outer_frame_id.
4320
4321 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
4322
4323 * frame-unwind.c (frame_unwind_got_optimized): Don't set
4324 regnum/frame in value. Call allocate_value_lazy.
4325 * frame.c (frame_unwind_register_value): Use
4326 val_print_not_saved.
4327
4328 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
4329
4330 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
4331
4332 2020-08-29 Pedro Alves <pedro@palves.net>
4333
4334 * progspace.c (print_program_space): Use all_inferiors. Switch to
4335 the inferior before calling target_pid_to_str.
4336
4337 2020-08-28 Tom Tromey <tom@tromey.com>
4338
4339 * xcoffread.c (xcoff_end_psymtab): Update comment.
4340 * dbxread.c (dbx_end_psymtab): Update comment.
4341
4342 2020-08-28 Tom de Vries <tdevries@suse.de>
4343
4344 PR breakpoint/26544
4345 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
4346 event_location.
4347 (create_breakpoint): Same.
4348 (base_breakpoint_decode_location): Same.
4349 (bkpt_create_sals_from_location): Same.
4350 (bkpt_decode_location): Same.
4351 (bkpt_probe_create_sals_from_location): Same.
4352 (bkpt_probe_decode_location): Same.
4353 (tracepoint_create_sals_from_location): Same.
4354 (tracepoint_decode_location): Same.
4355 (tracepoint_probe_decode_location): Same.
4356 (strace_marker_create_sals_from_location): Same.
4357 (strace_marker_decode_location): Same.
4358 (create_sals_from_location_default): Same.
4359 (decode_location_default): Same.
4360 * breakpoint.h (struct breakpoint_ops): Same.
4361 (create_breakpoint): Same.
4362 * linespec.h (decode_line_full): Same.
4363 * linespec.c (decode_line_full): Same. Throw error if
4364 result.size () == 0.
4365
4366 2020-08-27 Pedro Alves <pedro@palves.net>
4367
4368 PR gdb/26524
4369 * breakpoint.c (until_break_fsm) <location_breakpoint,
4370 caller_breakpoint>: Delete fields.
4371 <breakpoints>: New field.
4372 <until_break_fsm>: Adjust to save a breakpoint vector instead of
4373 two individual breakpoints.
4374 (until_break_fsm::should_stop): Loop over breakpoints in the
4375 breakpoint vector.
4376 (until_break_fsm::clean_up): Adjust to clear the breakpoints
4377 vector.
4378 (until_break_command): Handle location expanding into multiple
4379 sals.
4380
4381 2020-08-27 Pedro Alves <pedro@palves.net>
4382
4383 PR gdb/26523
4384 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
4385 bp_until breakpoints user-specified locations. Update intro
4386 comment.
4387
4388 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
4389
4390 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
4391 gdb_bfd_sections): New.
4392 * maint.c (print_bfd_section_info): Change param type to
4393 maint_print_section_data.
4394 (print_objfile_section_info): Likewise.
4395 (print_bfd_section_info_maybe_relocated): Likewise.
4396 (maintenance_info_sections): Use gdb_bfd_sections.
4397
4398 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
4399
4400 * MAINTAINERS: Add ARC target and maintainer.
4401
4402 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
4403
4404 * configure.tgt: ARC support for GNU/Linux.
4405 * Makefile.in (ALL_TARGET_OBJS): Likewise.
4406 * arc-linux-tdep.c: New file.
4407 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
4408 * arc-tdep.c (arc_write_pc): Use it.
4409
4410 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
4411
4412 * arc-tdep.c (arc_check_for_hardware_loop): New.
4413 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
4414
4415 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
4416
4417 * arc-tdep.h: Include "gdbarch.h".
4418
4419 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
4420
4421 * arch/arc.h
4422 (arc_gdbarch_features): New class to stir the selection of target XML.
4423 (arc_create_target_description): Use FEATURES to choose XML target.
4424 (arc_lookup_target_description): Use arc_create_target_description
4425 to create _new_ target descriptions or return the already created
4426 ones if the FEATURES is the same.
4427 * arch/arc.c: Implementation of prototypes described above.
4428 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
4429 (arc_gdbarch_features_init): Initialize the FEATURES struct.
4430 * arc-tdep.c (*_feature_name): Make feature names consistent.
4431 (arc_register_feature): A new struct to hold information about
4432 registers of a particular target/feature.
4433 (arc_check_tdesc_feature): Check if XML provides registers in
4434 compliance with ARC_REGISTER_FEATURE structs.
4435 (arc_update_acc_reg_names): Add aliases for r58 and r59.
4436 (determine_*_reg_feature_set): Which feature name to look for.
4437 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
4438 (mach_type_to_arc_isa): Convert from a set of binutils machine types
4439 to expected ISA enums to be used in arc_gdbarch_features structs.
4440 * features/Makefile (FEATURE_XMLFILES): Add new files.
4441 * gdb/features/arc/v1-aux.c: New file.
4442 * gdb/features/arc/v1-aux.xml: Likewise.
4443 * gdb/features/arc/v1-core.c: Likewise.
4444 * gdb/features/arc/v1-core.xml: Likewise.
4445 * gdb/features/arc/v2-aux.c: Likewise.
4446 * gdb/features/arc/v2-aux.xml: Likewise.
4447 * gdb/features/arc/v2-core.c: Likewise.
4448 * gdb/features/arc/v2-core.xml: Likewise.
4449 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
4450
4451 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
4452 Andrew Burgess <andrew.burgess@embecosm.com>
4453
4454 PR m2/26372
4455 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
4456 an assert. Remove single element array indexing pattern as the
4457 MULTI_SUBSCRIPT support will handle this case too.
4458
4459 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
4460
4461 * value.h (valprint_check_validity): Move declaration from
4462 here...
4463 * valprint.h (valprint_check_validity): ... to here.
4464
4465 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
4466
4467 * debug.h: New file.
4468 * debug.c (debug_prefixed_vprintf): New function.
4469 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
4470 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
4471
4472 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
4473
4474 * infrun.h (infrun_debug_printf_1): New function declaration.
4475 (infrun_debug_printf): New macro.
4476 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
4477 throughout.
4478 (infrun_debug_printf): New function.
4479 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
4480 (handle_jit_event): Likewise.
4481
4482 2020-08-21 Mark Wielaard <mark@klomp.org>
4483
4484 * ada-lex.l: Extend register warnings diagnostics comment for g++.
4485
4486 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
4487
4488 * frame.c (enum class frame_id_status): New.
4489 (struct frame_info) <this_id::p>: Change type to frame_id_status.
4490 (fprintf_frame): Update.
4491 (compute_frame_id): Set frame id status to "computing" on entry.
4492 Set it back to "not_computed" on failure and to "computed" on
4493 success.
4494 (get_frame_id): Assert the frame id is not being computed.
4495 (create_sentinel_frame): Use frame_id_status::COMPUTED.
4496 (create_new_frame): Likewise.
4497 (frame_cleanup_after_sniffer): Update assert.
4498
4499 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4500
4501 * regcache.c (pid_ptid_regcache_map): New type.
4502 (target_ptid_regcache_map): Remove.
4503 (target_pid_ptid_regcache_map): New type.
4504 (regcaches): Change type to target_pid_ptid_regcache_map.
4505 (get_thread_arch_aspace_regcache): Update.
4506 (regcache_thread_ptid_changed): Update, handle pid-like ptid
4507 case.
4508 (regcaches_size): Update.
4509 (regcache_count): Update.
4510 (registers_changed_ptid_target_pid_test): New.
4511 (_initialize_regcache): Register new test.
4512
4513 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4514
4515 * regcache.c (regcache_count): New.
4516 (struct regcache_test_data): New.
4517 (regcache_test_data_up): New.
4518 (populate_regcaches_for_test): New.
4519 (regcaches_test): Remove.
4520 (get_thread_arch_aspace_regcache_test): New.
4521 (registers_changed_ptid_all_test): New.
4522 (registers_changed_ptid_target_test): New.
4523 (registers_changed_ptid_target_ptid_test): New.
4524 (regcache_thread_ptid_changed): Remove regcache_count lambda.
4525 (_initialize_regcache): Register new tests.
4526
4527 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4528
4529 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
4530 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
4531 gdbarch and aspace parameter. Use current inferior's aspace.
4532 Validate regcache's arch value.
4533 (regcaches_test): Update.
4534
4535 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4536
4537 * regcache.c (regcaches_test): Call registers_changed.
4538
4539 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4540
4541 * infrun.c (process_event_stop_test): Fix typo "breapoint".
4542
4543 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4544
4545 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
4546 to find the end of prologue for flang compiled binaries.
4547 * arm-tdep.c (arm_skip_prologue): Likewise.
4548 * i386-tdep.c (i386_skip_prologue): Likewise.
4549 * producer.c (producer_is_llvm): New function.
4550 (producer_parsing_tests): Added new tests for clang/flang.
4551 * producer.h (producer_is_llvm): New declaration.
4552
4553 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
4554
4555 * linux-nat.c (linux_nat_debug_printf): New function.
4556 (linux_nat_debug_printf_1): New macro. Use throughout the file.
4557
4558 2020-08-18 Aaron Merey <amerey@redhat.com>
4559
4560 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
4561 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
4562 (CLIBS): Add DEBUGINFOD_LIBS.
4563
4564 2020-08-17 Sergei Trofimovich <siarheit@google.com>
4565
4566 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
4567 'gdbarch_num_regs'.
4568
4569 2020-08-17 Tom Tromey <tromey@adacore.com>
4570
4571 * ada-varobj.c (ada_varobj_decode_var): Handle case where
4572 ada_get_decoded_value returns NULL.
4573
4574 2020-08-17 Tom Tromey <tromey@adacore.com>
4575
4576 * python/py-inferior.c (infpy_search_memory): Use
4577 gdb_py_object_from_ulongest.
4578 * python/py-infevents.c (create_inferior_call_event_object)
4579 (create_memory_changed_event_object): Use
4580 gdb_py_object_from_ulongest.
4581 * python/py-linetable.c (ltpy_entry_get_pc): Use
4582 gdb_py_object_from_ulongest.
4583
4584 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
4585
4586 * loc.c (class symbol_needs_eval_context): Fix indentation.
4587
4588 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
4589
4590 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
4591 bool.
4592
4593 2020-08-17 Tom de Vries <tdevries@suse.de>
4594
4595 PR gdb/26393
4596 * gdbtypes.c (dump_dynamic_prop): New function.
4597 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
4598
4599 2020-08-15 Tom de Vries <tdevries@suse.de>
4600
4601 PR backtrace/26390
4602 * stack.c (print_frame_args): Temporarily set the selected
4603 frame to FRAME while printing the frame's arguments.
4604
4605 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4606
4607 PR breakpoints/26385
4608 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
4609 Always clear watchpoint with PTRACE_SET_DEBUGREG.
4610
4611 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4612
4613 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
4614 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
4615 and >= to check return value instead of == -1 and != -1.
4616
4617 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
4618
4619 * utils.h (class gdb_argv) <as_array_view>: New method.
4620 * utils.c (gdb_argv_as_array_view_test): New.
4621 (_initialize_utils): Register selftest.
4622 * maint.c (maintenance_selftest): Use the new method.
4623
4624 2020-08-13 Kamil Rytarowski <n54@gmx.com>
4625
4626 * target.h (supports_dumpcore, dumpcore): New
4627 function declarations.
4628 * target.c (supports_dumpcore, dumpcore): New
4629 functions.
4630 * target-delegates.c: Rebuild.
4631 * gcore.c (gcore_command): Use target_supports_dumpcore ()
4632 and target_dumpcore ().
4633
4634 2020-08-13 Aaron Merey <amerey@redhat.com>
4635
4636 * debuginfod-support.c: Replace global variables with user_data.
4637
4638 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
4639
4640 * maint.c (maintenance_selftest): Split args and pass array_view
4641 to run_tests.
4642
4643 2020-08-12 Luis Machado <luis.machado@linaro.org>
4644
4645 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
4646 type's length.
4647 Use %s and pulongest to print the length.
4648
4649 2020-08-12 Pedro Alves <palves@redhat.com>
4650
4651 * NEWS: Move "Multi-target debugging support" item to the
4652 "Changes since GDB 9" section.
4653
4654 2020-08-12 Pedro Alves <palves@redhat.com>
4655
4656 PR gdb/26336
4657 * progspace.c (program_space::remove_objfile): Invalidate the
4658 frame cache.
4659
4660 2020-08-11 Tom de Vries <tdevries@suse.de>
4661
4662 * MAINTAINERS: Mark ms1 as deleted.
4663
4664 2020-08-10 Luis Machado <luis.machado@linaro.org>
4665
4666 PR gdb/26310
4667
4668 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
4669 act accordingly.
4670 (aarch64_analyze_prologue_test): Add more unit tests to exercise
4671 movz/str/stur/stp skipping behavior.
4672
4673 2020-08-10 Luis Machado <luis.machado@linaro.org>
4674
4675 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
4676 struct user_sve_header instead of struct sve_context.
4677
4678 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
4679
4680 * read.h (dwarf2_fetch_die_loc_sect_off,
4681 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
4682 `void *` parameter with function_view.
4683 * read.c (dwarf2_fetch_die_loc_sect_off,
4684 dwarf2_fetch_die_loc_cu_off): Likewise.
4685 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
4686 (per_cu_dwarf_call): Adjust.
4687 (get_frame_address_in_block_wrapper): Remove.
4688 (indirect_synthetic_pointer): Adjust.
4689 (get_ax_pc): Remove.
4690 (dwarf2_compile_expr_to_ax): Adjust.
4691
4692 2020-08-08 Tom de Vries <tdevries@suse.de>
4693
4694 PR build/26344
4695 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
4696 constructor.
4697 * regcache.c (get_thread_arch_aspace_regcache): Same.
4698
4699 2020-08-07 Tom Tromey <tromey@adacore.com>
4700
4701 * ravenscar-thread.c
4702 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
4703 New method.
4704 (ravenscar_thread_target::wait): Check
4705 runtime_initialized.
4706 (ravenscar_thread_target::prepare_to_store)
4707 (ravenscar_thread_target::stopped_by_sw_breakpoint)
4708 (ravenscar_thread_target::stopped_by_hw_breakpoint)
4709 (ravenscar_thread_target::stopped_by_watchpoint)
4710 (ravenscar_thread_target::stopped_data_address)
4711 (ravenscar_thread_target::core_of_thread): Use
4712 scoped_restore_current_thread and
4713 set_base_thread_from_ravenscar_task.
4714
4715 2020-08-07 Tom Tromey <tromey@adacore.com>
4716
4717 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
4718
4719 2020-08-07 Tom Tromey <tromey@adacore.com>
4720
4721 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
4722 update_inferior_ptid before update_thread_list.
4723 (temporarily_change_regcache_ptid): New class.
4724 (ravenscar_thread_target::fetch_registers)
4725 (ravenscar_thread_target::store_registers)
4726 (ravenscar_thread_target::prepare_to_store): Use base thread when
4727 forwarding operation.
4728
4729 2020-08-07 Tom Tromey <tromey@adacore.com>
4730
4731 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
4732 "is_pid" case.
4733
4734 2020-08-07 Tom Tromey <tromey@adacore.com>
4735
4736 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
4737 New methods.
4738 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
4739 first.
4740 (ravenscar_thread_target::add_thread): Rename from
4741 ravenscar_add_thread.
4742 (ravenscar_thread_target::update_thread_list): Use a lambda.
4743 (ravenscar_thread_target::xfer_partial): New method.
4744
4745 2020-08-07 Tom Tromey <tromey@adacore.com>
4746
4747 * ada-lang.h (ada_task_list_iterator_ftype): Now a
4748 gdb::function_view.
4749 (iterate_over_live_ada_tasks): Change type of argument.
4750 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
4751 of argument.
4752
4753 2020-08-07 Tom Tromey <tromey@adacore.com>
4754
4755 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
4756 Remove.
4757 (ravenscar_thread_target::extra_thread_info): Remove.
4758 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
4759 defer to target beneath for non-Ravenscar threads.
4760
4761 2020-08-07 Tom Tromey <tromey@adacore.com>
4762
4763 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
4764 get_base_thread_from_ravenscar_task>: Now methods.
4765 <m_cpu_map>: New member.
4766 (ravenscar_thread_target::get_thread_base_cpu): Rename from
4767 ravenscar_get_thread_base_cpu. Check m_cpu_map.
4768 (ravenscar_thread_target::task_is_currently_active): Update.
4769 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
4770 Now a method.
4771 (ravenscar_thread_target::add_active_thread): Put initial thread
4772 into the m_cpu_map.
4773
4774 2020-08-07 Tom Tromey <tromey@adacore.com>
4775
4776 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
4777 event_ptid.
4778
4779 2020-08-07 Tom Tromey <tromey@adacore.com>
4780
4781 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
4782 runtime_initialized.
4783
4784 2020-08-07 Tom Tromey <tromey@adacore.com>
4785
4786 * ravenscar-thread.c (ravenscar_thread_target): Don't call
4787 add_active_thread.
4788 (ravenscar_thread_target::add_active_thread): Now public.
4789 (ravenscar_inferior_created): Call add_active_thread after pushing
4790 the target.
4791
4792 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
4793
4794 * regcache.c (ptid_regcache_map): New type.
4795 (target_ptid_regcache_map): New type.
4796 (regcaches): Change type to target_ptid_regcache_map.
4797 (get_thread_arch_aspace_regcache): Update to regcaches' new
4798 type.
4799 (regcache_thread_ptid_changed): Likewise.
4800 (registers_changed_ptid): Likewise.
4801 (regcaches_size): Likewise.
4802 (regcaches_test): Update.
4803 (regcache_thread_ptid_changed): Update.
4804 * regcache.h (regcache_up): New type.
4805 * gdbsupport/ptid.h (hash_ptid): New struct.
4806
4807 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
4808
4809 * observable.h (thread_ptid_changed): Add parameter
4810 `process_stratum_target *`.
4811 * infrun.c (infrun_thread_ptid_changed): Add parameter
4812 `process_stratum_target *` and use it.
4813 (selftests): New namespace.
4814 (infrun_thread_ptid_changed): New function.
4815 (_initialize_infrun): Register selftest.
4816 * regcache.c (regcache_thread_ptid_changed): Add parameter
4817 `process_stratum_target *` and use it.
4818 (regcache_thread_ptid_changed): New function.
4819 (_initialize_regcache): Register selftest.
4820 * thread.c (thread_change_ptid): Pass target to
4821 thread_ptid_changed observable.
4822
4823 2020-08-06 Caroline Tice <cmtice@google.com>
4824
4825 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
4826 (struct dwp_sections): Update field comments. Add loclists and
4827 rnglists fields.
4828 (struct virtual_v2_dwo_sections): Rename struct to
4829 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
4830 size & offset fields for loclists and rnglists.
4831 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
4832 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
4833 skipping dummy type units.
4834 (create_dwp_hash_table): Update the large comment above the function to
4835 discuss Version 5 DWP files as well, with references. Update all the
4836 version checks in the function to check for version 5 as well. Add new
4837 section at the end to create dwp hash table for version 5.
4838 (create_dwp_v2_section): Rename function to
4839 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
4840 Add V5 to error message text.
4841 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
4842 into calls to create_dwp_v2_or_v5_section.
4843 (create_dwo_unit_in_dwp_v5): New function.
4844 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
4845 check for version2; add else clause to handle version 5.
4846 (open_and_init_dwo_file): Add code to check dwarf version & only call
4847 create_debug_types_hash_table (with sections.types) if version is not 5;
4848 else call create_debug_type_hash_table, with sections.info.
4849 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
4850 version 5.
4851 (dwarf2_locate_v5_dwp_sections): New function.
4852 (open_and_init_dwp_file): Add else-if clause for version 5 to call
4853 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
4854
4855 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
4856
4857 * regcache.h (class regcache): Remove friend
4858 registers_changed_ptid.
4859 <regcache_thread_ptid_changed>: Remove.
4860 <regcaches>: Remove.
4861 * regcache.c (regcache::regcaches): Rename to...
4862 (regcaches): ... this. Make static.
4863 (get_thread_arch_aspace_regcache): Update.
4864 (regcache::regcache_thread_ptid_changed): Rename to...
4865 (regcache_thread_ptid_changed): ... this. Update.
4866 (class regcache_access): Remove.
4867 (regcaches_test): Update.
4868 (_initialize_regcache): Update.
4869 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
4870 <forward_list>.
4871
4872 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
4873
4874 * regcache.h (class regcache) <current_regcache>: Rename to...
4875 <regcaches>: ... this. Move doc here.
4876 * regcache.c (regcache::current_regcache) Rename to...
4877 (regcache::regcaches): ... this. Move doc to header.
4878 (get_thread_arch_aspace_regcache): Update.
4879 (regcache::regcache_thread_ptid_changed): Update.
4880 (registers_changed_ptid): Update.
4881 (class regcache_access) <current_regcache_size>: Rename to...
4882 <regcaches_size>: ... this.
4883 (current_regcache_test): Rename to...
4884 (regcaches_test): ... this.
4885 (_initialize_regcache): Update.
4886
4887 2020-08-06 Victor Collod <vcollod@nvidia.com>
4888
4889 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
4890
4891 2020-08-05 Kevin Buettner <kevinb@redhat.com>
4892
4893 * corelow.c (core_target::build_file_mappings): Don't output
4894 null pathname in warning.
4895
4896 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
4897
4898 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
4899 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
4900 gdb.dwarf2/dw2-single-line-discriminators.exp,
4901 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
4902
4903 2020-08-05 Tom Tromey <tromey@adacore.com>
4904
4905 PR rust/26197:
4906 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
4907 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
4908 Fix off-by-one and type size errors in ordinary case.
4909
4910 2020-08-05 Tom de Vries <tdevries@suse.de>
4911
4912 * gdbtypes.c (type_not_allocated, type_not_associated): Use
4913 "prop->const_val () == 0" instead of "prop->const_val () != 0".
4914
4915 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
4916
4917 * frame.h (frame_id_p): Return bool.
4918 (frame_id_artificial_p): Return bool.
4919 (frame_id_eq): Return bool.
4920 (has_stack_frames): Return bool.
4921 (get_selected_frame): Fix typo in comment.
4922 (get_frame_pc_if_available): Return bool.
4923 (get_frame_address_in_block_if_available): Return bool.
4924 (get_frame_func_if_available): Return bool.
4925 (read_frame_register_unsigned): Return bool.
4926 (get_frame_register_bytes): Return bool.
4927 (safe_frame_unwind_memory): Return bool.
4928 (deprecated_frame_register_read): Return bool.
4929 (frame_unwinder_is): Return bool.
4930 * frame.c (struct frame_info) <prev_arch::p>: Change type to
4931 bool.
4932 <this_id::p>: Likewise.
4933 <prev_p>: Likewise.
4934 (frame_stash_add): Return bool.
4935 (get_frame_id): Use bool.
4936 (frame_id_build_special) Use bool.
4937 (frame_id_build_unavailable_stack): Use bool.
4938 (frame_id_build): Use bool.
4939 (frame_id_p): Return bool, use true/false instead of 1/0.
4940 (frame_id_artificial_p): Likewise.
4941 (frame_id_eq): Likewise.
4942 (frame_id_inner): Likewise.
4943 (get_frame_func_if_available): Likewise.
4944 (read_frame_register_unsigned): Likewise.
4945 (deprecated_frame_register_read): Likewise.
4946 (get_frame_register_bytes): Likewise.
4947 (has_stack_frames): Likewise.
4948 (inside_main_func): Likewise.
4949 (inside_entry_func): Likewise.
4950 (get_frame_pc_if_available): Likewise.
4951 (get_frame_address_in_block_if_available): Likewise.
4952 (frame_unwinder_is): Likewise.
4953 (safe_frame_unwind_memory): Likewise.
4954 (frame_unwind_arch): Likewise.
4955
4956 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
4957
4958 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
4959 type to cached_copy_status.
4960 (fprintf_frame): Adjust.
4961 (get_frame_func_if_available): Adjust.
4962 (frame_cleanup_after_sniffer): Adjust.
4963
4964 2020-08-04 Mark Wielaard <mark@klomp.org>
4965
4966 * MAINTAINERS (Write After Approval): Update email address.
4967
4968 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4969
4970 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
4971 dynamic_prop::const_val.
4972
4973 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4974
4975 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
4976 dynamic_prop::kind.
4977
4978 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4979
4980 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
4981
4982 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
4983
4984 * configure.tgt: Set gdb_sim for bpf-*-* targets.
4985
4986 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
4987 Jose E. Marchesi <jose.marchesi@oracle.com>
4988
4989 * configure.tgt: Add entry for bpf-*-*.
4990 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
4991 (ALLDEPFILES): Add bpf-tdep.c.
4992 * bpf-tdep.c: New file.
4993 * MAINTAINERS: Add bpf target and maintainer.
4994 * NEWS: Mention the support for the new target.
4995
4996 2020-08-04 Tom de Vries <tdevries@suse.de>
4997
4998 PR symtab/23270
4999 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
5000 Error.
5001
5002 2020-08-03 John Baldwin <jhb@FreeBSD.org>
5003
5004 * syscalls/freebsd.xml: Regenerate.
5005
5006 2020-08-03 John Baldwin <jhb@FreeBSD.org>
5007
5008 * syscalls/update-freebsd.sh: Fix usage and year range.
5009
5010 2020-08-03 Tom de Vries <tdevries@suse.de>
5011
5012 PR symtab/26333
5013 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
5014 DW_LNE_lo_user/DW_LNE_hi_user range.
5015
5016 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
5017
5018 PR ada/26318
5019 * ada-lang.c (ada_modulus): Return 0 if property is not of const
5020 kind.
5021
5022 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5023
5024 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
5025
5026 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5027
5028 * breakpoint.c (set_breakpoint_condition): Update the condition
5029 expressions after checking that the input condition string parses
5030 successfully and does not contain junk at the end.
5031
5032 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5033
5034 * breakpoint.c (set_breakpoint_condition): Update the
5035 condition string after parsing the new condition successfully.
5036
5037 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5038
5039 * proc-api.c (_STRUCTURED_PROC): Don't define.
5040 * proc-events.c: Likewise.
5041 * proc-flags.c: Likewise.
5042 * proc-why.c: Likewise.
5043 * procfs.c: Likewise.
5044
5045 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
5046 * configure, config.in: Regenerate.
5047
5048 2020-07-30 Tom de Vries <tdevries@suse.de>
5049
5050 PR build/26320
5051 * ui-style.h (struct ui_file_style::color): Wrap m_value and
5052 m_red/m_green/m_blue in a union.
5053
5054 2020-07-29 Tom de Vries <tdevries@suse.de>
5055
5056 PR tdep/26280
5057 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
5058
5059 2020-07-28 Tom Tromey <tromey@adacore.com>
5060
5061 PR symtab/26270:
5062 * symtab.h (find_pc_partial_function_sym): Declare.
5063 * cli/cli-cmds.c (disassemble_command): Use
5064 find_pc_partial_function_sym. Check asm_demangle.
5065 * blockframe.c (cache_pc_function_sym): New global.
5066 (cache_pc_function_name): Remove.
5067 (clear_pc_function_cache): Update.
5068 (find_pc_partial_function_sym): New function, from
5069 find_pc_partial_function.
5070 (find_pc_partial_function): Rewrite using
5071 find_pc_partial_function_sym.
5072
5073 2020-07-28 Tom Tromey <tromey@adacore.com>
5074
5075 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
5076 help. Add usage.
5077
5078 2020-07-28 Tom Tromey <tromey@adacore.com>
5079
5080 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
5081 <DW_OP_GNU_variable_value>: Cast to address type.
5082
5083 2020-07-28 Kamil Rytarowski <n54@gmx.com>
5084
5085 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
5086 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
5087 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
5088 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
5089 (nbsd_get_siginfo_type): New.
5090 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
5091 (_initialize_nbsd_tdep): New.
5092
5093 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5094
5095 PR binutils/26301
5096 * configure: Regenerated.
5097
5098 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5099
5100 PR binutils/26301
5101 * configure: Regenerated.
5102
5103 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5104
5105 * python/py-frame.c: Remove 'user-regs.h' include.
5106 (frapy_read_register): Rewrite to make use of
5107 gdbpy_parse_register_id.
5108 * python/py-registers.c (gdbpy_parse_register_id): New function,
5109 moved here from python/py-unwind.c. Updated the return type, and
5110 also accepts register descriptor objects.
5111 * python/py-unwind.c: Remove 'user-regs.h' include.
5112 (pyuw_parse_register_id): Moved to python/py-registers.c.
5113 (unwind_infopy_add_saved_register): Update to use
5114 gdbpy_parse_register_id.
5115 (pending_framepy_read_register): Likewise.
5116 * python/python-internal.h (gdbpy_parse_register_id): Declare.
5117
5118 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5119
5120 * python/py-registers.c: Add 'user-regs.h' include.
5121 (register_descriptor_iter_find): New function.
5122 (register_descriptor_iterator_object_methods): New static global
5123 methods array.
5124 (register_descriptor_iterator_object_type): Add pointer to methods
5125 array.
5126
5127 2020-07-27 John Baldwin <jhb@FreeBSD.org>
5128
5129 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
5130 for all architectures on FreeBSD 11.3 and later.
5131
5132 2020-07-27 Tom Tromey <tromey@adacore.com>
5133
5134 * gcore.h (load_corefile): Don't declare.
5135
5136 2020-07-27 Tom de Vries <tdevries@suse.de>
5137
5138 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
5139 * config.in: Regenerate.
5140 * configure: Regenerate.
5141
5142 2020-07-26 Eli Zaretskii <eliz@gnu.org>
5143
5144 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
5145 ws2tcpip.h. When checking whether socklen_t type is defined, use
5146 ws2tcpip.h if it is available and sys/socket.h isn't.
5147 * configure: Regenerate.
5148 * config.in: Regenerate.
5149
5150 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
5151
5152 PR fortran/23051
5153 PR fortran/26139
5154 * valops.c (value_ind): Pass address to
5155 readjust_indirect_value_type.
5156 * value.c (readjust_indirect_value_type): Make parameter
5157 non-const, and add extra address parameter. Resolve original type
5158 before using it.
5159 * value.h (readjust_indirect_value_type): Update function
5160 signature and comment.
5161
5162 2020-07-25 Tom de Vries <tdevries@suse.de>
5163
5164 PR symtab/26243
5165 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
5166 entries.
5167
5168 2020-07-24 Aaron Merey <amerey@redhat.com>
5169
5170 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
5171 * configure: Rebuild.
5172
5173 2020-07-23 Kevin Buettner <kevinb@redhat.com>
5174
5175 PR corefiles/26294
5176 * corelow.c (_initialize_corelow): Add period to help text
5177 for "maintenance print core-file-backed-mappings".
5178
5179 2020-07-23 Pedro Alves <pedro@palves.net>
5180
5181 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
5182 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
5183 meanwhile.
5184 * frame.c (frame_cache_generation, get_frame_cache_generation):
5185 New.
5186 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
5187 (get_prev_frame_if_no_cycle): On exception, don't touch
5188 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
5189 * frame.h (get_frame_cache_generation): Declare.
5190
5191 2020-07-23 Tom de Vries <tdevries@suse.de>
5192
5193 PR tui/26282
5194 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
5195 New default constructor.
5196
5197 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
5198
5199 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
5200 exclude non-statement entries.
5201
5202 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5203
5204 * NEWS (New commands): Mention new command
5205 "maintenance print core-file-backed-mappings".
5206
5207 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5208
5209 * corelow.c (gdbcmd.h): Include.
5210 (core_target::info_proc_mappings): New method.
5211 (get_current_core_target): New function.
5212 (maintenance_print_core_file_backed_mappings): New function.
5213 (_initialize_corelow): Add core-file-backed-mappings to
5214 "maint print" commands.
5215
5216 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5217
5218 * linux-tdep.c (dump_note_entry_p): New function.
5219 (linux_dump_mapping_p_ftype): New typedef.
5220 (linux_find_memory_regions_full): Add new parameter,
5221 should_dump_mapping_p.
5222 (linux_find_memory_regions): Adjust call to
5223 linux_find_memory_regions_full.
5224 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
5225 call to linux_find_memory_regions_full.
5226
5227 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5228
5229 * corelow.c (solist.h, unordered_map): Include.
5230 (class core_target): Add field m_core_file_mappings and
5231 method build_file_mappings.
5232 (core_target::core_target): Call build_file_mappings.
5233 (core_target::~core_target): Free memory associated with
5234 m_core_file_mappings.
5235 (core_target::build_file_mappings): New method.
5236 (core_target::xfer_partial): Use m_core_file_mappings
5237 for memory transfers.
5238 * linux-tdep.c (linux_read_core_file_mappings): New
5239 function.
5240 (linux_core_info_proc_mappings): Rewrite to use
5241 linux_read_core_file_mappings.
5242 (linux_init_abi): Register linux_read_core_file_mappings.
5243
5244 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5245
5246 * arch-utils.c (default_read_core_file_mappings): New function.
5247 * arch-utils.c (default_read_core_file_mappings): Declare.
5248 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
5249 * gdbarch.h, gdbarch.c: Regenerate.
5250
5251 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5252
5253 PR corefiles/25631
5254 * corelow.c (core_target:xfer_partial): Revise
5255 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
5256 case after first checking the stratum beneath the core
5257 target.
5258 (has_all_memory): Return true.
5259 * target.c (raw_memory_xfer_partial): Revise comment
5260 regarding use of has_all_memory.
5261
5262 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5263
5264 * exec.h (section_table_xfer_memory): Revise declaration,
5265 replacing section name parameter with an optional callback
5266 predicate.
5267 * exec.c (section_table_xfer_memory): Likewise.
5268 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
5269 of section_table_xfer_memory.
5270
5271 2020-07-22 Tom Tromey <tromey@adacore.com>
5272
5273 * mi/mi-cmd-stack.c (list_args_or_locals): Use
5274 lookup_symbol_search_name.
5275
5276 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5277
5278 * python/py-registers.c (gdbpy_register_object_data_init): Remove
5279 redundant local variable.
5280 (gdbpy_get_register_descriptor): Extract descriptor vector as a
5281 reference, not pointer, update code accordingly.
5282
5283 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5284 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5285
5286 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
5287 * jit.c (jit_breakpoint_re_set_internal): Use the
5288 `skip_jit_symbol_lookup` field.
5289
5290 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5291 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5292
5293 * jit.c (jit_read_descriptor): Define the descriptor address once,
5294 use twice.
5295 (jit_breakpoint_deleted): Move the declaration of the loop variable
5296 `iter` into the loop header.
5297 (jit_breakpoint_re_set_internal): Move the declaration of the local
5298 variable `objf_data` to the first point of definition.
5299 (jit_event_handler): Move the declaration of local variables
5300 `code_entry`, `entry_addr`, and `objf` to their first point of use.
5301 Rename `objf` to `jited`.
5302
5303 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5304
5305 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
5306 Remove.
5307 * jit.c (get_jiter_objfile_data): Update.
5308
5309 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5310 Simon Marchi <simon.marchi@polymtl.ca>
5311
5312 * jit.c (struct jit_program_space_data): Remove.
5313 (jit_program_space_key): Remove.
5314 (jiter_objfile_data::~jiter_objfile_data): Remove program space
5315 stuff.
5316 (get_jit_program_space_data): Remove.
5317 (jit_breakpoint_deleted): Iterate on all of the program space's
5318 objfiles.
5319 (jit_inferior_init): Likewise.
5320 (jit_breakpoint_re_set_internal): Likewise. Also change return
5321 type to void.
5322 (jit_breakpoint_re_set): Pass current_program_space to
5323 jit_breakpoint_re_set_internal.
5324
5325 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5326
5327 * jit.h (struct jiter_objfile_data) <cached_code_address,
5328 jit_breakpoint>: Move to here from ...
5329 * jit.c (jit_program_space_data): ... here.
5330 (jiter_objfile_data::~jiter_objfile_data): Update.
5331 (jit_breakpoint_deleted): Update.
5332 (jit_breakpoint_re_set_internal): Update.
5333
5334 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5335
5336 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
5337 checks.
5338 (jit_read_descriptor): Remove NULL check.
5339 (jit_event_handler): Add an assertion.
5340
5341 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5342
5343 * jit.h (struct jit_objfile_data): Split into...
5344 (struct jiter_objfile_data): ... this ...
5345 (struct jited_objfile_data): ... and this.
5346 * objfiles.h (struct objfile) <jit_data>: Remove.
5347 <jiter_data, jited_data>: New fields.
5348 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
5349 (jiter_objfile_data::~jiter_objfile_data): ... this.
5350 (get_jit_objfile_data): Rename to ...
5351 (get_jiter_objfile_data): ... this.
5352 (add_objfile_entry): Update.
5353 (jit_read_descriptor): Use get_jiter_objfile_data.
5354 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
5355 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
5356 (jit_inferior_exit_hook): Use objfile's jited_data field.
5357
5358 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5359
5360 * jit.h: Forward-declare `struct minimal_symbol`.
5361 (struct jit_objfile_data): Migrate to here from jit.c; also add a
5362 constructor, destructor, and an objfile* field.
5363 * jit.c (jit_objfile_data): Remove.
5364 (struct jit_objfile_data): Migrate from here to jit.h.
5365 (jit_objfile_data::~jit_objfile_data): New destructor
5366 implementation with code moved from free_objfile_data.
5367 (free_objfile_data): Delete.
5368 (get_jit_objfile_data): Update to use the jit_data field of objfile.
5369 (jit_find_objf_with_entry_addr): Ditto.
5370 (jit_inferior_exit_hook): Ditto.
5371 (_initialize_jit): Remove the call to
5372 register_objfile_data_with_cleanup.
5373 * objfiles.h (struct objfile) <jit_data>: New field.
5374
5375 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5376
5377 * jit.h: Forward-declare `struct objfile`.
5378 (jit_event_handler): Add a second parameter, the JITer objfile.
5379 * jit.c (jit_read_descriptor): Change the signature to take the
5380 JITer objfile as an argument instead of the jit_program_space_data.
5381 (jit_inferior_init): Update the call to jit_read_descriptor.
5382 (jit_event_handler): Use the new JITer objfile argument when calling
5383 jit_read_descriptor.
5384 * breakpoint.c (handle_jit_event): Update the call to
5385 jit_event_handler to pass the JITer objfile.
5386
5387 2020-07-21 John Baldwin <jhb@FreeBSD.org>
5388
5389 * gdbarch.c: Regenerate.
5390 * gdbarch.h: Regenerate.
5391 * gdbarch.sh (handle_segmentation_fault): Remove method.
5392 * infrun.c (handle_segmentation_fault): Remove.
5393 (print_signal_received_reason): Remove call to
5394 handle_segmentation_fault.
5395
5396 2020-07-21 John Baldwin <jhb@FreeBSD.org>
5397
5398 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
5399 Rename to sparc64_linux_report_signal_info and add siggnal
5400 argument.
5401 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
5402 instead of sparc64_linux_handle_segmentation_fault.
5403
5404 2020-07-21 John Baldwin <jhb@FreeBSD.org>
5405
5406 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
5407 i386_linux_report_signal_info instead of
5408 i386_linux_handle_segmentation_fault.
5409 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
5410 to i386_linux_report_signal_info and add siggnal argument.
5411 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
5412 of i386_linux_handle_segmentation_fault.
5413 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
5414 to i386_linux_report_signal_info and add siggnal argument.
5415
5416 2020-07-21 John Baldwin <jhb@FreeBSD.org>
5417
5418 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
5419 hook if present.
5420
5421 2020-07-21 John Baldwin <jhb@FreeBSD.org>
5422
5423 * gdbarch.c: Regenerate.
5424 * gdbarch.h: Regenerate.
5425 * gdbarch.sh (report_signal_info): New method.
5426 * infrun.c (print_signal_received_reason): Invoke gdbarch
5427 report_signal_info hook if present.
5428
5429 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
5430
5431 * python/py-registers.c : Add 'unordered_map' include.
5432 (gdbpy_new_reggroup): Renamed to...
5433 (gdbpy_get_reggroup): ...this. Update to only create register
5434 group descriptors when needed.
5435 (gdbpy_reggroup_iter_next): Update.
5436
5437 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
5438
5439 * python/py-registers.c (gdbpy_register_object_data): New static
5440 global.
5441 (gdbpy_register_object_data_init): New function.
5442 (gdbpy_new_register_descriptor): Renamed to...
5443 (gdbpy_get_register_descriptor): ...this, and update to reuse
5444 existing register descriptors where possible.
5445 (gdbpy_register_descriptor_iter_next): Update.
5446 (gdbpy_initialize_registers): Register new gdbarch data.
5447
5448 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
5449
5450 * linux-nat.c (stopped_pids): Make static.
5451
5452 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
5453
5454 PR ada/26235
5455 * gdbtypes.c (ada_discrete_type_low_bound,
5456 ada_discrete_type_high_bound): Handle undefined bounds.
5457
5458 2020-07-21 Kamil Rytarowski <n54@gmx.com>
5459
5460 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
5461 declaration.
5462 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
5463 function.
5464
5465 2020-07-20 John Baldwin <jhb@FreeBSD.org>
5466
5467 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
5468 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
5469 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
5470 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
5471 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
5472 method.
5473
5474 2020-07-20 Ludovic Courtès <ludo@gnu.org>
5475
5476 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
5477 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
5478 which are deprecated in Guile 3.0.
5479 * configure.ac (try_guile_versions): Add "guile-3.0".
5480 * configure (try_guile_versions): Regenerate.
5481 * NEWS: Update entry.
5482
5483 2020-07-20 Ludovic Courtès <ludo@gnu.org>
5484 Doug Evans <dje@google.com>
5485
5486 PR gdb/21104
5487 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
5488 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
5489 USING_GUILE_BEFORE_2_2.
5490 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
5491 Change type to 'scm_t_port_type *'.
5492 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
5493 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
5494 parameter and honor it. Update callers.
5495 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
5496 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
5497 functions.
5498 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
5499 USING_GUILE_BEFORE_2_2.
5500 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
5501 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
5502 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
5503 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
5504 and 'SCM_PORT_TYPE'.
5505 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
5506 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
5507 (gdbscm_memory_port_read, gdbscm_memory_port_write)
5508 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
5509 [!USING_GUILE_BEFORE_2_2]: New functions.
5510 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
5511 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
5512 'gdbscm_memory_port_read'.
5513 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
5514 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
5515 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
5516 function.
5517 (ioscm_init_memory_port): Remove.
5518 (ioscm_init_memory_port_stream): New function
5519 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
5520 function.
5521 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
5522 Return scm_from_uint (0).
5523 (gdbscm_set_memory_port_read_buffer_size_x)
5524 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
5525 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
5526 Return scm_from_uint (0).
5527 (gdbscm_set_memory_port_write_buffer_size_x)
5528 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
5529 * configure.ac (try_guile_versions): Add "guile-2.2".
5530 * configure: Regenerate.
5531 * NEWS: Add entry.
5532
5533 2020-07-18 Tom Tromey <tom@tromey.com>
5534
5535 * linux-nat.c (linux_multi_process): Remove.
5536 (linux_nat_target::supports_multi_process): Return true.
5537
5538 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
5539
5540 * arch/riscv.c (riscv_tdesc_cache): Change map type.
5541 (riscv_lookup_target_description): Return pointer out of
5542 unique_ptr.
5543 * target-descriptions.c (allocate_target_description): Add
5544 comment.
5545 (target_desc_deleter::operator()): Likewise.
5546 * target-descriptions.h (struct target_desc_deleter): Moved to
5547 gdbsupport/tdesc.h.
5548 (target_desc_up): Likewise.
5549
5550 2020-07-17 Tom Tromey <tromey@adacore.com>
5551
5552 * linux-nat.c (linux_nat_target::supports_non_stop)
5553 (linux_nat_target::always_non_stop_p): Use "true".
5554 (linux_nat_target::supports_disable_randomization): Use "true" and
5555 "false".
5556
5557 2020-07-16 Caroline Tice <cmtice@google.com>
5558
5559 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
5560 (RNGLIST_HEADER_SIZE64): New constant definition.
5561 (struct dwop_section_names): Add rnglists_dwo.
5562 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
5563 (struct loclist_header): Rename to 'loclists_rnglists_header'.
5564 (struct dwo_sections): Add rnglists field.
5565 (read_attribut_reprocess): Add tag parameter.
5566 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
5567 (cu_debug_rnglists_section): New function (decl & definition).
5568 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
5569 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
5570 die whose range is being checked; get rnglist section from
5571 cu_debug_rnglists_section, to get from either objfile or dwo file as
5572 appropriate. Add cases for DW_RLE_base_addressx,
5573 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
5574 the base address to DW_RLE_offset_pairs (not to all ranges), moving
5575 test inside if-condition and updating complaint message.
5576 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
5577 dwarf2_rnglists_process.
5578 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
5579 dwarf2_ranges_process.
5580 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
5581 need_ranges_base and update comment appropriately. Also pass die tag
5582 to dwarf2_ranges_read.
5583 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
5584 need_ranges_base and update comment appropriately. Also pass die tag
5585 to dwarf2_ranges_process.
5586 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
5587 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
5588 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
5589 need_ranges_base and update comment appropriately. Also pass die tag
5590 to read_attribute_reprocess and dwarf2_ranges_read.
5591 (read_loclist_header): Rename function to read_loclists_rnglists_header,
5592 and update function comment appropriately.
5593 (read_loclist_index): Call read_loclists_rnglists_header instead of
5594 read_loclist_header.
5595 (read_rnglist_index): New function.
5596 (read_attribute_reprocess): Add tag parameter. Add code for
5597 DW_FORM_rnglistx, passing tag to read_rnglist_index.
5598 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
5599
5600 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
5601
5602 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
5603 being resolved.
5604
5605 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
5606
5607 * arch-utils.c (show_architecture): Update formatting of messages.
5608
5609 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5610
5611 * gdbtypes.h (struct type) <bounds>: Handle array and string
5612 types.
5613 * ada-lang.c (assign_aggregate): Use type::bounds on
5614 array/string type.
5615 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
5616 * c-varobj.c (c_number_of_children): Likewise.
5617 (c_describe_child): Likewise.
5618 * eval.c (evaluate_subexp_for_sizeof): Likewise.
5619 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
5620 (f_type_print_base): Likewise.
5621 * f-valprint.c (f77_array_offset_tbl): Likewise.
5622 (f77_get_upperbound): Likewise.
5623 (f77_print_array_1): Likewise.
5624 * guile/scm-type.c (gdbscm_type_range): Likewise.
5625 * m2-typeprint.c (m2_array): Likewise.
5626 (m2_is_long_set_of_type): Likewise.
5627 * m2-valprint.c (get_long_set_bounds): Likewise.
5628 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
5629 * python/py-type.c (typy_range): Likewise.
5630 * rust-lang.c (rust_internal_print_type): Likewise.
5631 * type-stack.c (type_stack::follow_types): Likewise.
5632 * valarith.c (value_subscripted_rvalue): Likewise.
5633 * valops.c (value_cast): Likewise.
5634
5635 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5636
5637 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
5638 callers to use the equivalent accessor methods.
5639
5640 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5641
5642 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
5643 (struct type) <bit_stride>: New method.
5644 (TYPE_BIT_STRIDE): Remove.
5645 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
5646
5647 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5648
5649 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
5650 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
5651 callers to use the equivalent accessor methods instead.
5652
5653 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5654
5655 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
5656 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
5657 callers to use the equivalent accessor methods instead.
5658
5659 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5660
5661 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
5662 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
5663 to use dynamic_prop::kind.
5664
5665 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5666
5667 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
5668 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
5669 to get the bound property's kind and check against
5670 PROP_UNDEFINED.
5671
5672 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5673
5674 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
5675 all callers to use type::range_bounds followed by
5676 dynamic_prop::{low,high}.
5677
5678 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
5679
5680 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
5681 const_val, set_const_val, baton, set_locexpr, set_loclist,
5682 set_addr_offset, variant_parts, set_variant_parts,
5683 original_type, set_original_type>: New methods.
5684 <kind>: Rename to...
5685 <m_kind>: ... this. Update all users to use the new methods
5686 instead.
5687 <data>: Rename to...
5688 <m_data>: ... this. Update all users to use the new methods
5689 instead.
5690
5691 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5692
5693 * gdbtypes.c (get_discrete_bounds): Return failure if
5694 the range type's bounds are not both defined and constant
5695 values.
5696 (get_array_bounds): Update comment. Remove undefined bound check.
5697
5698 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
5699
5700 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
5701 the type::bounds method directly.
5702
5703 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5704
5705 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
5706 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
5707 are used to set the range type's bounds to use set_bounds.
5708
5709 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5710
5711 * exec.c (_initialize_exec): Update exec-file-mismatch help.
5712
5713 2020-07-10 Pedro Alves <pedro@palves.net>
5714
5715 * gdbthread.h (inferior_ref): Define.
5716 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
5717 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
5718 * thread.c
5719 (scoped_restore_current_thread::restore):
5720 Adjust to gdb::ref_ptr.
5721 (scoped_restore_current_thread::~scoped_restore_current_thread):
5722 Remove manual decref handling.
5723 (scoped_restore_current_thread::scoped_restore_current_thread):
5724 Adjust to use
5725 inferior_ref::new_reference/thread_info_ref::new_reference.
5726 Incref the thread before calling get_frame_id instead of after.
5727 Let TARGET_CLOSE_ERROR propagate.
5728
5729 2020-07-10 Pedro Alves <pedro@palves.net>
5730
5731 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
5732 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
5733 NOT_AVAILABLE_ERROR.
5734 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
5735 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
5736
5737 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5738 Pedro Alves <pedro@palves.net>
5739
5740 PR gdb/26199
5741 * infrun.c (threads_are_resumed_pending_p): Delete.
5742 (do_target_wait): Remove threads_are_executing and
5743 threads_are_resumed_pending_p checks from the inferior_matches
5744 lambda. Update comments.
5745
5746 2020-07-10 Pedro Alves <pedro@palves.net>
5747
5748 PR gdb/26199
5749 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
5750 executing threads.
5751
5752 2020-07-10 Pedro Alves <pedro@palves.net>
5753
5754 PR gdb/26199
5755 * infrun.c (handle_no_resumed): Handle multiple targets.
5756
5757 2020-07-10 Pedro Alves <pedro@palves.net>
5758
5759 PR gdb/26199
5760 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
5761 target_is_async_p.
5762
5763 2020-07-10 Pedro Alves <pedro@palves.net>
5764
5765 PR gdb/26199
5766 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
5767 threads, not all threads.
5768
5769 2020-07-10 Pedro Alves <pedro@palves.net>
5770
5771 PR gdb/26199
5772 * remote.c (remote_target::open_1): Pass remote target pointer as
5773 data to create_async_event_handler.
5774 (remote_async_inferior_event_handler): Mark async event handler
5775 before returning if the remote target still has either pending
5776 events or unacknowledged notifications.
5777
5778 2020-07-10 John Baldwin <jhb@FreeBSD.org>
5779
5780 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
5781 declaration.
5782 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
5783 function.
5784
5785 2020-07-09 John Baldwin <jhb@FreeBSD.org>
5786
5787 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
5788 inferior_ptid.
5789
5790 2020-07-09 John Baldwin <jhb@FreeBSD.org>
5791
5792 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
5793 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
5794 AT_FREEBSD_PS_STRINGS.
5795
5796 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
5797
5798 * auto-load.c (auto_load_objfile_script_1): Convert drive part
5799 of debugfile path on Windows.
5800
5801 2020-07-08 John Baldwin <jhb@FreeBSD.org>
5802
5803 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
5804 argument to 'data'.
5805
5806 2020-07-08 Tom Tromey <tromey@adacore.com>
5807
5808 * ada-lang.c (ada_exception_message_1): Use read_memory.
5809
5810 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5811
5812 PR python/22748
5813 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
5814 special handling for inline frames.
5815 * findvar.c (value_of_register_lazy): Skip inline frames when
5816 creating lazy register values.
5817 * frame.c (frame_id_computed_p): Delete definition.
5818 * frame.h (frame_id_computed_p): Delete declaration.
5819
5820 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5821
5822 * NEWS: Mention additions to Python API.
5823 * python/py-arch.c (archpy_register_groups): New function.
5824 (arch_object_methods): Add 'register_groups' method.
5825 * python/py-registers.c (reggroup_iterator_object): New struct.
5826 (reggroup_object): New struct.
5827 (gdbpy_new_reggroup): New function.
5828 (gdbpy_reggroup_to_string): New function.
5829 (gdbpy_reggroup_name): New function.
5830 (gdbpy_reggroup_iter): New function.
5831 (gdbpy_reggroup_iter_next): New function.
5832 (gdbpy_new_reggroup_iterator): New function
5833 (gdbpy_initialize_registers): Register new types.
5834 (reggroup_iterator_object_type): Define new Python type.
5835 (gdbpy_reggroup_getset): New static global.
5836 (reggroup_object_type): Define new Python type.
5837 * python/python-internal.h
5838
5839 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5840
5841 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
5842 * python/py-arch.c (archpy_registers): New function.
5843 (arch_object_methods): Add 'registers' method.
5844 * python/py-registers.c: New file.
5845 * python/python-internal.h
5846 (gdbpy_new_register_descriptor_iterator): Declare.
5847 (gdbpy_initialize_registers): Declare.
5848 * python/python.c (do_start_initialization): Call
5849 gdbpy_initialize_registers.
5850 * NEWS: Mention additions to the Python API.
5851
5852 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5853
5854 * NEWS: Mention new Python API method.
5855 * python/py-unwind.c (pending_framepy_architecture): New function.
5856 (pending_frame_object_methods): Add architecture method.
5857
5858 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5859
5860 * gdbarch.c: Regenerate.
5861 * gdbarch.h: Regenerate.
5862 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
5863 (gdbarch_data): Use internal_error for the case where
5864 deprecated_set_gdbarch_data was originally needed.
5865 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
5866 and use passed in obstack.
5867 (libunwind_frame_set_descr): Should no longer get back NULL from
5868 gdbarch_data.
5869 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
5870 type.
5871 * user-regs.c (user_regs_init): Update parameters, and use passed
5872 in obstack.
5873 (user_reg_add): Should no longer get back NULL from gdbarch_data.
5874 (_initialize_user_regs): Register as a pre-init gdbarch data type.
5875
5876 2020-07-06 Tom de Vries <tdevries@suse.de>
5877
5878 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
5879 End-Of-Sequence in lte_is_less_than.
5880 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
5881 "gdb: Don't reorder line table entries too much when sorting".
5882
5883 2020-07-06 Tom de Vries <tdevries@suse.de>
5884
5885 PR tui/26205
5886 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
5887
5888 2020-07-05 Tom de Vries <tdevries@suse.de>
5889
5890 PR build/26187
5891 * inferior.h (struct infcall_suspend_state_deleter): If available, use
5892 std::uncaught_exceptions instead of deprecated
5893 std::uncaught_exception.
5894
5895 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5896
5897 * macroexp.h (macro_stringify): Return
5898 gdb::unique_xmalloc_ptr<char>.
5899 * macroexp.c (macro_stringify): Likewise.
5900 * macrotab.c (fixup_definition): Update.
5901
5902 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5903
5904 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
5905 (lex_one_token): Update.
5906 * macroexp.c (struct macro_buffer) <release>: Return
5907 gdb::unique_xmalloc_ptr<char>.
5908 (macro_stringify): Update.
5909 (macro_expand): Update.
5910 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
5911 * macroexp.h (macro_expand_next): Likewise.
5912
5913 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
5914
5915 * macroexp.h (macro_lookup_ftype): Remove.
5916 (macro_expand, macro_expand_once, macro_expand_next): Remove
5917 lookup function parameters, add scope parameter.
5918 * macroexp.c (scan, substitute_args, expand, maybe_expand,
5919 macro_expand, macro_expand_once, macro_expand_next): Likewise.
5920 * macroscope.h (standard_macro_lookup): Change parameter type
5921 to macro_scope.
5922 * macroscope.c (standard_macro_lookup): Likewise.
5923 * c-exp.y (lex_one_token): Update.
5924 * macrocmd.c (macro_expand_command): Likewise.
5925 (macro_expand_once_command): Likewise.
5926
5927 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5928
5929 * inf-loop.c (inferior_event_handler): Remove client_data param.
5930 * inf-loop.h (inferior_event_handler): Likewise.
5931 * infcmd.c (step_1): Adjust.
5932 * infrun.c (proceed): Adjust.
5933 (fetch_inferior_event): Remove client_data param.
5934 (infrun_async_inferior_event_handler): Adjust.
5935 * infrun.h (fetch_inferior_event): Remove `void *` param.
5936 * linux-nat.c (handle_target_event): Adjust.
5937 * record-btrace.c (record_btrace_handle_async_inferior_event):
5938 Adjust.
5939 * record-full.c (record_full_async_inferior_event_handler):
5940 Adjust.
5941 * remote.c (remote_async_inferior_event_handler): Adjust.
5942
5943 2020-07-01 Tom Tromey <tom@tromey.com>
5944
5945 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
5946 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
5947
5948 2020-07-01 Tom Tromey <tom@tromey.com>
5949
5950 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
5951 tui_gen_win_info.
5952 (tui_win_info::make_window): Merge with
5953 tui_gen_win_info::make_window.
5954 (tui_win_info::make_visible): Move from tui_gen_win_info.
5955 * tui/tui-win.c (tui_win_info::max_width): Move from
5956 tui_gen_win_info.
5957 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
5958 type.
5959 <window_factory>: Likewise.
5960 * tui/tui-layout.c (tui_win_info::resize): Move from
5961 tui_gen_win_info.
5962 (make_standard_window): Change return type.
5963 (get_locator_window, tui_get_window_by_name): Likewise.
5964 (tui_layout_window::apply): Remove a cast.
5965 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
5966 (struct tui_win_info): Merge with tui_gen_win_info.
5967 (struct tui_gen_win_info): Remove.
5968
5969 2020-07-01 Tom Tromey <tom@tromey.com>
5970
5971 * tui/tui-stack.h (struct tui_locator_window): Derive from
5972 tui_win_info.
5973 <do_scroll_horizontal, do_scroll_vertical>: New methods.
5974 <can_box>: New method.
5975
5976 2020-07-01 Tom Tromey <tom@tromey.com>
5977
5978 * tui/tui-stack.h (struct tui_locator_window): Remove body.
5979
5980 2020-07-01 Tom Tromey <tom@tromey.com>
5981
5982 * tui/tui-regs.c (tui_data_window::display_registers_from)
5983 (tui_data_window::display_registers_from)
5984 (tui_data_window::first_data_item_displayed)
5985 (tui_data_window::delete_data_content_windows): Update.
5986 (tui_data_window::refresh_window, tui_data_window::no_refresh):
5987 Remove.
5988 (tui_data_window::check_register_values): Update.
5989 (tui_data_item_window::rerender): Add parameters. Update.
5990 (tui_data_item_window::refresh_window): Remove.
5991 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
5992 virtual.
5993 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
5994 tui_gen_win_info.
5995 <refresh_window, max_height, min_height>: Remove.
5996 <rerender>: Add parameters.
5997 <x, y, visible>: New members.
5998 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
5999 <m_item_width>: New member.
6000
6001 2020-07-01 Tom Tromey <tom@tromey.com>
6002
6003 * tui/tui-regs.c (tui_data_window::show_register_group)
6004 (tui_data_window::check_register_values): Update.
6005 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
6006 from item_no.
6007
6008 2020-07-01 Tom Tromey <tom@tromey.com>
6009
6010 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
6011 useless "if".
6012
6013 2020-07-01 Tom Tromey <tom@tromey.com>
6014
6015 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
6016 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
6017
6018 2020-07-01 Tom Tromey <tom@tromey.com>
6019
6020 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
6021 * tui/tui-winsource.h (enum tui_line_or_address_kind)
6022 (struct tui_line_or_address): Move from tui-data.h.
6023 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
6024 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
6025 (tui_cmd_window, tui_source_window_base, tui_source_window)
6026 (tui_disasm_window): Don't declare.
6027 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
6028 to tui-winsource.h.
6029 (SINGLE_KEY): Move to tui-stack.c.
6030
6031 2020-07-01 Tom Tromey <tom@tromey.com>
6032
6033 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
6034 std::string.
6035 * tui/tui-regs.c (class tab_expansion_file): New.
6036 (tab_expansion_file::write): New method.
6037 (tui_register_format): Change return type. Use
6038 tab_expansion_file.
6039 (tui_get_register, tui_data_window::display_registers_from)
6040 (tui_data_item_window::rerender): Update.
6041 * tui/tui-io.h (tui_expand_tabs): Don't declare.
6042 * tui/tui-io.c (tui_expand_tabs): Remove.
6043
6044 2020-07-01 Tom Tromey <tom@tromey.com>
6045
6046 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
6047
6048 2020-07-01 Fangrui Song <maskray@google.com>
6049
6050 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
6051
6052 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6053
6054 * dwarf2/read.c (set_die_type): Removed conditions to restrict
6055 forms for DW_AT_associated and DW_AT_allocated attributes,
6056 which is already checked in function attr_to_dynamic_prop.
6057
6058 2020-06-30 Tom Tromey <tromey@adacore.com>
6059
6060 * dwarf2/read.c (quirk_rust_enum): Correctly call
6061 alloc_rust_variant for default-less enum.
6062
6063 2020-06-30 Tom Tromey <tromey@adacore.com>
6064
6065 PR build/26183:
6066 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
6067 gdb::to_string.
6068
6069 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
6070
6071 * gdbarch.sh (displaced_step_copy_insn): Update doc.
6072 * gdbarch.h: Re-generate.
6073
6074 2020-06-28 Tom Tromey <tom@tromey.com>
6075
6076 * command.h (cmd_types): Remove.
6077 (cmd_type): Don't declare.
6078 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
6079 typedef.
6080 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
6081 * cli/cli-decode.c (cmd_type): Remove.
6082
6083 2020-06-27 Pedro Alves <palves@redhat.com>
6084
6085 * fork-child.c (prefork_hook): Adjust.
6086 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
6087 Delete.
6088 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
6089 * inferior.c (inferior::set_tty, inferior::tty): New methods.
6090 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
6091 Remove declarations.
6092 (struct inferior) <set_tty, tty>: New methods.
6093 (struct inferior) <terminal>: Rename to ...
6094 (struct inferior) <m_terminal>: ... this and make private.
6095 * main.c (captured_main_1): Adjust.
6096 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
6097 (mi_cmd_inferior_tty_show): Adjust.
6098 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
6099 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
6100
6101 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
6102
6103 * configure.ac: Add --enable-libctf: handle --disable-static
6104 properly.
6105 * acinclude.m4: sinclude ../config/enable.m4.
6106 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
6107 (LIBCTF): Substitute in.
6108 (CTF_DEPS): New, likewise.
6109 (CLIBS): libctf needs symbols from libbfd: move earlier.
6110 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
6111 flags.
6112 * ctfread.c: Surround in ENABLE_LIBCTF.
6113 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
6114 * configure: Regenerate.
6115 * config.in: Likewise.
6116
6117 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
6118
6119 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
6120
6121 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
6122
6123 * inferior.h (struct inferior) <terminal>: Change type to
6124 gdb::unique_xmalloc_ptr<char>.
6125 * inferior.c (inferior::~inferior): Don't free inf->terminal.
6126 * infcmd.c (set_inferior_io_terminal): Don't free terminal
6127 field, adjust to unique pointer.
6128 (get_inferior_io_terminal): Adjust to unique pointer.
6129
6130 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6131
6132 * riscv-tdep.c (riscv_print_registers_info): Loop over all
6133 registers, not just the known core set of registers.
6134
6135 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6136
6137 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
6138 fflags, frm, and fcsr registers.
6139 (riscv_register_reggroup_p): Remove unknown CSRs from save and
6140 restore groups.
6141 (riscv_tdesc_unknown_reg): New function.
6142 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
6143 tdesc_use_registers.
6144 * riscv-tdep.h (struct gdbarch_tdep): Add
6145 unknown_csrs_first_regnum, unknown_csrs_count,
6146 duplicate_fflags_regnum, duplicate_frm_regnum, and
6147 duplicate_fcsr_regnum fields.
6148
6149 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6150
6151 * target-descriptions.c (tdesc_use_registers): Add new parameter a
6152 callback, use the callback (when not null) to help number unknown
6153 registers.
6154 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
6155 (tdesc_use_registers): Add extra parameter to declaration.
6156
6157 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6158
6159 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
6160 in the file.
6161 (class riscv_pending_register_alias): Likewise.
6162 (riscv_register_feature::register_info): Change 'required_p' field
6163 to 'required', and change its type. Add 'check' member function.
6164 (riscv_register_feature::register_info::check): Define new member
6165 function.
6166 (riscv_xreg_feature): Change initialisation of 'required' field.
6167 (riscv_freg_feature): Likewise.
6168 (riscv_virtual_feature): Likewise.
6169 (riscv_csr_feature): Likewise.
6170 (riscv_check_tdesc_feature): Take extra parameter, the csr
6171 tdesc_feature, rewrite the function to use the new
6172 riscv_register_feature::register_info::check function.
6173 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
6174
6175 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6176
6177 * features/Makefile: Remove all references to the deleted files
6178 below.
6179 * features/riscv/32bit-csr.c: Deleted.
6180 * features/riscv/32bit-csr.xml: Deleted.
6181 * features/riscv/64bit-csr.c: Deleted.
6182 * features/riscv/64bit-csr.xml: Deleted.
6183 * features/riscv/rebuild-csr-xml.sh: Deleted.
6184
6185 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6186
6187 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
6188 whitespace error for declaration of names member variable.
6189 (struct riscv_register_feature): Add new prefer_first_name member
6190 variable, and fix whitespace error in declaration of registers.
6191 (riscv_xreg_feature): Initialize prefer_first_name field.
6192 (riscv_freg_feature): Likewise.
6193 (riscv_virtual_feature): Likewise.
6194 (riscv_csr_feature): Likewise.
6195 (riscv_register_name): Expand on comments. Remove register name
6196 modifications for CSR and virtual registers.
6197
6198 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6199
6200 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
6201 errors.
6202
6203 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6204
6205 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
6206 riscv-opc.h.
6207 (class riscv_pending_register_alias): New class.
6208 (riscv_check_tdesc_feature): Take vector of pending aliases and
6209 populate it as appropriate.
6210 (riscv_setup_register_aliases): Delete.
6211 (riscv_gdbarch_init): Create vector of pending aliases and pass it
6212 to riscv_check_tdesc_feature in all cases. Use the vector to
6213 create the register aliases.
6214
6215 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6216
6217 * sol2-tdep.c (sol2_static_transform_name): Remove.
6218 (sol2_init_abi): Don't register it.
6219 * gdbarch.sh (static_transform_name): Remove.
6220 * gdbarch.c, gdbarch.h: Regenerate.
6221
6222 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
6223 gdbarch_static_transform_name.
6224 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
6225 * stabsread.c (define_symbol) <'X'>: Remove.
6226 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
6227 handling.
6228 <'V'>: Likewise.
6229 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
6230 <'S'>: Remove call to gdbarch_static_transform_name.
6231
6232 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6233
6234 * procfs.c (procfs_pre_trace): New function.
6235 (procfs_target::create_inferior): Pass it to fork_inferior.
6236
6237 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6238
6239 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
6240 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
6241 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
6242 sol2-tdep.o, sparc-sol2-tdep.o.
6243 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
6244 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
6245 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
6246 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
6247
6248 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6249
6250 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
6251 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
6252 Call sol2_init_abi.
6253 Remove calls to set_gdbarch_skip_solib_resolver,
6254 set_gdbarch_core_pid_to_str.
6255 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
6256 (i386_sol2_static_transform_name): Remove.
6257 (i386_sol2_init_abi): Call sol2_init_abi.
6258 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6259 set_gdbarch_static_transform_name,
6260 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6261 Use sol2_sigtramp_p.
6262 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
6263 (sol2_sigtramp_p): New function.
6264 (sol2_static_transform_name): New function.
6265 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
6266 (sol2_init_abi): New function.
6267 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
6268 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
6269 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
6270 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
6271 (sparc_sol2_static_transform_name): Remove.
6272 (sparc32_sol2_init_abi): Call sol2_init_abi.
6273 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6274 set_gdbarch_static_transform_name,
6275 set_gdbarch_skip_solib_resolver,
6276 set_gdbarch_core_pid_to_str.
6277 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
6278 (sparc_sol2_static_transform_name): Remove
6279 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
6280 call sol2_sigtramp_p.
6281 (sparc64_sol2_init_abi): Call sol2_init_abi.
6282 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6283 set_gdbarch_static_transform_name,
6284 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6285
6286 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6287
6288 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
6289 * exec.c (validate_exec_file): If from_tty, set both
6290 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
6291 * symfile.c (symbol_file_add_with_addrs): if always_confirm
6292 and from_tty, unconditionally ask a confirmation.
6293
6294 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6295
6296 * target-descriptions.c (tdesc_architecture_name): Protect against
6297 NULL pointer dereference.
6298 (maint_print_xml_tdesc_cmd): New function.
6299 (_initialize_target_descriptions): Register new 'maint print
6300 xml-tdesc' command and give it the filename completer.
6301 * NEWS: Mention new 'maint print xml-tdesc' command.
6302
6303 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6304
6305 * target-descriptions.c (class tdesc_compatible_info): New class.
6306 (struct target_desc): Change type of compatible vector.
6307 (tdesc_compatible_p): Update for change in type of
6308 target_desc::compatible.
6309 (tdesc_compatible_info_list): New function.
6310 (tdesc_compatible_info_arch_name): New function.
6311 (tdesc_add_compatible): Update for change in type of
6312 target_desc::compatible.
6313 (print_c_tdesc::visit_pre): Likewise.
6314
6315 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6316
6317 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
6318 whitespace to underscore.
6319 (maint_print_c_tdesc_cmd): Use fake filename for target
6320 descriptions that came from the target.
6321 (_initialize_target_descriptions): Add filename command completion
6322 for 'maint print c-tdesc'.
6323
6324 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
6325
6326 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
6327 lines.
6328
6329 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
6330
6331 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
6332 lines.
6333 (dwarf2_find_location_expression): Likewise.
6334 (call_site_parameter_matches): Likewise.
6335 (dwarf2_compile_expr_to_ax): Likewise.
6336 (disassemble_dwarf_expression): Likewise.
6337 (loclist_describe_location): Likewise.
6338
6339 2020-06-23 Pedro Alves <palves@redhat.com>
6340
6341 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
6342 progspace-and-thread.h. Include scoped-mock-context.h instead.
6343 (register_to_value_test): Use scoped_mock_context.
6344 * regcache.c: Include "scoped-mock-context.h".
6345 (cooked_read_test): Don't error out if a target is already pushed.
6346 Use scoped_mock_context. Adjust.
6347 * scoped-mock-context.h: New file.
6348
6349 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6350
6351 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
6352 initializer.
6353 (ada_language::is_string_type_p): New member function.
6354 * c-lang.c (c_language_data): Delete la_is_string_type_p
6355 initializer.
6356 (cplus_language_data): Likewise.
6357 (asm_language_data): Likewise.
6358 (minimal_language_data): Likewise.
6359 * d-lang.c (d_language_data): Likewise.
6360 * f-lang.c (f_is_string_type_p): Delete function, implementation
6361 moved to f_language::is_string_type_p.
6362 (f_language_data): Delete la_is_string_type_p initializer.
6363 (f_language::is_string_type_p): New member function,
6364 implementation from f_is_string_type_p.
6365 * go-lang.c (go_is_string_type_p): Delete function, implementation
6366 moved to go_language::is_string_type_p.
6367 (go_language_data): Delete la_is_string_type_p initializer.
6368 (go_language::is_string_type_p): New member function,
6369 implementation from go_is_string_type_p.
6370 * language.c (language_defn::is_string_type_p): Define new member
6371 function.
6372 (default_is_string_type_p): Make static, add comment copied from
6373 header file.
6374 (unknown_language_data): Delete la_is_string_type_p initializer.
6375 (unknown_language::is_string_type_p): New member function.
6376 (auto_language_data): Delete la_is_string_type_p initializer.
6377 (auto_language::is_string_type_p): New member function.
6378 * language.h (language_data): Delete la_is_string_type_p field.
6379 (language_defn::is_string_type_p): Declare new function.
6380 (default_is_string_type_p): Delete desclaration, move comment to
6381 definition.
6382 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
6383 moved to m2_language::is_string_type_p.
6384 (m2_language_data): Delete la_is_string_type_p initializer.
6385 (m2_language::is_string_type_p): New member function,
6386 implementation from m2_is_string_type_p.
6387 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
6388 initializer.
6389 * opencl-lang.c (opencl_language_data): Likewise.
6390 * p-lang.c (pascal_is_string_type_p): Delete function,
6391 implementation moved to pascal_language::is_string_type_p.
6392 (pascal_language_data): Delete la_is_string_type_p initializer.
6393 (pascal_language::is_string_type_p): New member function,
6394 implementation from pascal_is_string_type_p.
6395 * rust-lang.c (rust_is_string_type_p): Delete function,
6396 implementation moved to rust_language::is_string_type_p.
6397 (rust_language_data): Delete la_is_string_type_p initializer.
6398 (rust_language::is_string_type_p): New member function,
6399 implementation from rust_is_string_type_p.
6400 * valprint.c (val_print_scalar_or_string_type_p): Update call to
6401 is_string_type_p.
6402
6403 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6404
6405 * ada-lang.c (ada_language_data): Delete la_print_typedef
6406 initializer.
6407 (ada_language::print_typedef): New member function.
6408 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
6409 (cplus_language_data): Likewise.
6410 (asm_language_data): Likewise.
6411 (minimal_language_data): Likewise.
6412 * d-lang.c (d_language_data): Likewise.
6413 * f-lang.c (f_language_data): Likewise.
6414 (f_language::print_typedef): New member function.
6415 * go-lang.c (go_language_data): Delete la_print_typedef
6416 initializer.
6417 * language.c (language_defn::print_typedef): Define member
6418 function.
6419 (unknown_language_data): Delete la_print_typedef initializer.
6420 (unknown_language::print_typedef): New member function.
6421 (auto_language_data): Delete la_print_typedef initializer.
6422 (auto_language::print_typedef): New member function.
6423 * language.h (language_data): Delete la_print_typedef field.
6424 (language_defn::print_typedef): Declare new member function.
6425 (LA_PRINT_TYPEDEF): Update call to print_typedef.
6426 (default_print_typedef): Delete declaration.
6427 * m2-lang.c (m2_language_data): Delete la_print_typedef
6428 initializer.
6429 (m2_language::print_typedef): New member function.
6430 * objc-lang.c (objc_language_data): Delete la_print_typedef
6431 initializer.
6432 * opencl-lang.c (opencl_language_data): Likewise.
6433 * p-lang.c (pascal_language_data): Likewise.
6434 (pascal_language::print_typedef): New member function.
6435 * rust-lang.c (rust_print_typedef): Delete function,
6436 implementation moved to rust_language::print_typedef.
6437 (rust_language): Delete la_print_typedef initializer.
6438 (rust_language::print_typedef): New member function,
6439 implementation from rust_print_typedef.
6440 * typeprint.c (default_print_typedef): Delete.
6441
6442 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6443
6444 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
6445 (ada_language::printstr): New member function.
6446 * c-lang.c (c_language_data): Delete la_printstr initializer.
6447 (cplus_language_data): Likewise.
6448 (asm_language_data): Likewise.
6449 (minimal_language_data): Likewise.
6450 * d-lang.c (d_language_data): Likewise.
6451 * f-lang.c (f_printstr): Rename to f_language::printstr.
6452 (f_language_data): Delete la_printstr initializer.
6453 (f_language::printstr): New member function, implementation from
6454 f_printstr.
6455 * go-lang.c (go_language_data): Delete la_printstr initializer.
6456 * language.c (language_defn::printstr): Define new member
6457 function.
6458 (unk_lang_printstr): Delete.
6459 (unknown_language_data): Delete la_printstr initializer.
6460 (unknown_language::printstr): New member function.
6461 (auto_language_data): Delete la_printstr initializer.
6462 (auto_language::printstr): New member function.
6463 * language.h (language_data): Delete la_printstr field.
6464 (language_defn::printstr): Declare new member function.
6465 (LA_PRINT_STRING): Update call to printstr.
6466 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
6467 (m2_language_data): Delete la_printstr initializer.
6468 (m2_language::printstr): New member function, implementation from
6469 m2_printstr.
6470 * objc-lang.c (objc_language_data): Delete la_printstr
6471 initializer.
6472 * opencl-lang.c (opencl_language_data): Likewise.
6473 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
6474 (pascal_language_data): Delete la_printstr initializer.
6475 (pascal_language::printstr): New member function, implementation
6476 from pascal_printstr.
6477 * p-lang.h (pascal_printstr): Delete declaration.
6478 * rust-lang.c (rust_printstr): Update header comment.
6479 (rust_language_data): Delete la_printstr initializer.
6480 (rust_language::printstr): New member function.
6481
6482 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6483
6484 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
6485 (ada_language::printchar): New member function.
6486 * c-lang.c (c_language_data): Delete la_printchar initializer.
6487 (cplus_language_data): Likewise.
6488 (asm_language_data): Likewise.
6489 (minimal_language_data): Likewise.
6490 * d-lang.c (d_language_data): Likewise.
6491 * f-lang.c (f_printchar): Rename to f_language::printchar.
6492 (f_language_data): Delete la_printchar initializer.
6493 (f_language::printchar): New member function, implementation from
6494 f_printchar.
6495 * go-lang.c (go_language_data): Delete la_printchar initializer.
6496 * language.c (unk_lang_printchar): Delete.
6497 (language_defn::printchar): Define new member function.
6498 (unknown_language_data): Delete la_printchar initializer.
6499 (unknown_language::printchar): New member function.
6500 (auto_language_data): Delete la_printchar initializer.
6501 (auto_language::printchar): New member function.
6502 * language.h (language_data): Delete la_printchar field.
6503 (language_defn::printchar): Declare new member function.
6504 (LA_PRINT_CHAR): Update call to printchar.
6505 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
6506 (m2_language::printchar): New member function.
6507 * objc-lang.c (objc_language_data): Delete la_printchar
6508 initializer.
6509 * opencl-lang.c (opencl_language_data): Likewise.
6510 * p-lang.c (pascal_language_data): Delete la_printchar
6511 initializer.
6512 (pascal_language::printchar): New member function.
6513 * rust-lang.c (rust_printchar): Rename to
6514 rust_language::printchar.
6515 (rust_language_data): Delete la_printchar initializer.
6516 (rust_language::printchar): New member function, implementation
6517 from rust_printchar.
6518
6519 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6520
6521 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
6522 (ada_language_data): Delete la_emitchar initializer.
6523 (ada_language::emitchar): New member function, implementation from
6524 emit_char.
6525 * c-lang.c (c_language_data): Delete la_emitchar initializer.
6526 (cplus_language_data): Likewise.
6527 (asm_language_data): Likewise.
6528 (minimal_language_data): Likewise.
6529 * d-lang.c (d_language_data): Likewise.
6530 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
6531 (f_language_data): Delete la_emitchar initializer.
6532 (f_language::emitchar): New member function, implementation from
6533 f_emit_char.
6534 * go-lang.c (go_language_data): Delete la_emitchar initializer.
6535 * language.c (unk_lang_emit_char): Delete.
6536 (language_defn::emitchar): New member function definition.
6537 (unknown_language_data): Delete la_emitchar initializer.
6538 (unknown_language::emitchar): New member function.
6539 (auto_language_data): Delete la_emitchar initializer.
6540 (auto_language::emitchar): New member function.
6541 * language.h (language_data): Delete la_emitchar field.
6542 (language_defn::emitchar): New member field declaration.
6543 (LA_EMIT_CHAR): Update call to emitchar.
6544 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
6545 (m2_language_data): Delete la_emitchar initializer.
6546 (m2_language::emitchar): New member function, implementation from
6547 m2_emit_char.
6548 * objc-lang.c (objc_language_data): Delete la_emitchar
6549 initializer.
6550 * opencl-lang.c (opencl_language_data): Likewise.
6551 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
6552 (pascal_language_data): Delete la_emitchar initializer.
6553 (pascal_language::emitchar): New member function, implementation
6554 from pascal_emit_char.
6555 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
6556 (rust_language_data): Delete la_emitchar initializer.
6557 (rust_language::emitchar): New member function, implementation
6558 from rust_emitchar.
6559
6560 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6561
6562 * ada-lang.c (resolve): Rename to ada_language::post_parser.
6563 (ada_language_data): Delete la_post_parser initializer.
6564 (ada_language::post_parser): New member function.
6565 * c-lang.c (c_language_data): Delete la_post_parser initializer.
6566 (cplus_language_data): Likewise.
6567 (asm_language_data): Likewise.
6568 (minimal_language_data): Likewise.
6569 * d-lang.c (d_language_data): Likewise.
6570 * f-lang.c (f_language_data): Likewise.
6571 * go-lang.c (go_language_data): Likewise.
6572 * language.c (unknown_language_data): Likewise.
6573 (auto_language_data): Likewise.
6574 * language.h (language_data): Delete la_post_parser field.
6575 (language_defn::post_parser): New member function.
6576 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
6577 * objc-lang.c (objc_language_data): Likewise.
6578 * opencl-lang.c (opencl_language_data): Likewise.
6579 * p-lang.c (pascal_language_data): Likewise.
6580 * parse.c (parse_exp_in_context): Update call to post_parser.
6581 (null_post_parser): Delete definition.
6582 * parser-defs.h (null_post_parser): Delete declaration.
6583 * rust-lang.c (rust_language_data): Delete la_post_parser
6584 initializer.
6585
6586 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6587
6588 * ada-lang.c (parse): Rename to ada_language::parser.
6589 (ada_language_data): Delete la_parser initializer.
6590 (ada_language::parser): New member function, implementation from
6591 parse.
6592 * c-lang.c (c_language_data): Delete la_parser initializer.
6593 (cplus_language_data): Likewise.
6594 (asm_language_data): Likewise.
6595 (minimal_language_data): Likewise.
6596 * d-lang.c (d_language_data): Likewise.
6597 (d_language::parser): New member function.
6598 * f-lang.c (f_language_data): Delete la_parser initializer.
6599 (f_language::parser): New member function.
6600 * go-lang.c (go_language_data): Delete la_parser initializer.
6601 (go_language::parser): New member function.
6602 * language.c (unk_lang_parser): Delete.
6603 (language_defn::parser): Define new member function.
6604 (unknown_language_data): Delete la_parser initializer.
6605 (unknown_language::parser): New member function.
6606 (auto_language_data): Delete la_parser initializer.
6607 (auto_language::parser): New member function.
6608 * language.h (language_data): Delete la_parser field.
6609 (language_defn::parser): Declare new member function.
6610 * m2-lang.c (m2_language_data): Delete la_parser initializer.
6611 (m2_language::parser): New member function.
6612 * objc-lang.c (objc_language_data): Delete la_parser initializer.
6613 * opencl-lang.c (opencl_language_data): Likewise.
6614 * p-lang.c (pascal_language_data): Likewise.
6615 (pascal_language::parser): New member function.
6616 * parse.c (parse_exp_in_context): Update call to parser.
6617 * rust-lang.c (rust_language_data): Delete la_parser initializer.
6618 (rust_language::parser): New member function.
6619
6620 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6621
6622 * top.c (print_gdb_configuration): Print --with-python-libdir
6623 configuration value.
6624
6625 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6626
6627 * NEWS: Mention change to the alias command.
6628
6629 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6630
6631 * cli/cli-cmds.c (lookup_cmd_for_default_args)
6632 (alias_command_completer)
6633 (make_alias_options_def_group): New functions.
6634 (alias_opts, alias_option_defs): New struct and array.
6635 (alias_usage_error): Update usage.
6636 (alias_command): Handles optional DEFAULT-ARGS... arguments.
6637 Use option framework.
6638 (_initialize_cli_cmds): Update alias command help.
6639 Update aliases command help.
6640 (show_user):
6641 Add NULL for new default_args lookup_cmd argument.
6642 (valid_command_p): Rename to validate_aliased_command.
6643 Add NULL for new default_args lookup_cmd argument. Verify that the
6644 aliased_command has no default args.
6645 * cli/cli-decode.c (help_cmd): Show aliases definitions.
6646 (lookup_cmd_1, lookup_cmd): New argument default_args.
6647 (add_alias_cmd):
6648 Add NULL for new default_args lookup_cmd argument.
6649 (print_help_for_command): Show default args under the layout
6650 alias some_alias = some_aliased_cmd some_alias_default_arg.
6651 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
6652 xfree default_args in destructor.
6653 * cli/cli-script.c (process_next_line, do_define_command):
6654 Add NULL for new default_args lookup_cmd argument.
6655 * command.h: Declare new default_args argument in lookup_cmd
6656 and lookup_cmd_1.
6657 * completer.c (complete_line_internal_1):
6658 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6659 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
6660 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
6661 Likewise.
6662 * infcmd.c (_initialize_infcmd): Likewise.
6663 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
6664 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
6665 * python/py-param.c (add_setshow_generic): Likewise.
6666 * remote.c (_initialize_remote): Likewise.
6667 * top.c (execute_command): Prepend default_args if command has some.
6668 (set_verbose):
6669 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6670 * tracepoint.c (validate_actionline, encode_actions_1):
6671 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6672
6673 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6674
6675 * jit.c (jit_read_descriptor): Use bool as the return type.
6676 (jit_breakpoint_re_set_internal): Use bool as the return type.
6677 Invert the return value logic; return true if the jit breakpoint
6678 has been successfully initialized.
6679 (jit_inferior_init): Update the call to
6680 jit_breakpoint_re_set_internal.
6681
6682 2020-06-22 Pedro Alves <palves@redhat.com>
6683
6684 PR gdb/25939
6685 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
6686 Use the current inferior instead. Don't return
6687 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
6688 wait again.
6689 * sol-thread.c (sol_thread_target::wait): Don't reference
6690 inferior_ptid.
6691 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
6692 (sol_update_thread_list_callback): Use the current inferior's pid
6693 instead of inferior_ptid.
6694
6695 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6696
6697 * procfs.c: Cleanup many comments.
6698
6699 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
6700 (AFTER_WATCHFLAG): Replace by value.
6701
6702 (MAIN_PROC_NAME_FORMAT): Inline ...
6703 (create_procinfo): ... here.
6704
6705 (procfs_debug_inferior): Remove SYS_exec handling.
6706 (syscall_is_exec): Likewise.
6707 (procfs_set_exec_trap): Likewise.
6708
6709 (syscall_is_lwp_exit): Inline in callers.
6710 (syscall_is_exit): Likewise.
6711 (syscall_is_exec): Likewise.
6712 (syscall_is_lwp_create): Likewise.
6713
6714 (invalidate_cache): Remove #if 0 code.
6715
6716 (make_signal_thread_runnable): Remove.
6717 (procfs_target::resume): Remove #if 0 code.
6718
6719 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6720
6721 PR gdb/25939
6722 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
6723 call ...
6724 (procfs_target::create_inferior): ... here.
6725
6726 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6727
6728 * exec.c (validate_exec_file): Ensure the build-id is up to
6729 date by calling reopen_exec_file (that checks file timestamp
6730 to decide to re-read the file).
6731
6732 2020-06-18 Pedro Alves <palves@redhat.com>
6733
6734 PR gdb/25412
6735 * gdbthread.h (delete_thread, delete_thread_silent)
6736 (find_thread_ptid): Update comments.
6737 * thread.c (current_thread_): New global.
6738 (is_current_thread): Move higher, and reimplement.
6739 (inferior_thread): Reimplement.
6740 (set_thread_exited): Use bool. Add assertions.
6741 (add_thread_silent): Simplify thread-reuse handling by always
6742 calling delete_thread.
6743 (delete_thread): Remove intro comment.
6744 (find_thread_ptid): Skip exited threads.
6745 (switch_to_thread_no_regs): Write to current_thread_.
6746 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
6747 INFERIOR_PTID. Clear current_thread_.
6748
6749 2020-06-18 Pedro Alves <palves@redhat.com>
6750
6751 * aix-thread.c (pd_update): Use switch_to_thread.
6752
6753 2020-06-18 Pedro Alves <palves@redhat.com>
6754
6755 * ravenscar-thread.c (ravenscar_thread_target): Update.
6756 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
6757 (ravenscar_thread_target::add_active_thread): ... this. Don't
6758 set m_base_ptid here. Update to avoid referencing inferior_ptid.
6759 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
6760
6761 2020-06-18 Pedro Alves <palves@redhat.com>
6762
6763 * nat/windows-nat.c (current_windows_thread): Remove.
6764 * nat/windows-nat.h (current_windows_thread): Remove.
6765 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
6766 Adjust.
6767 (display_selectors): Adjust to fetch the current
6768 windows_thread_info based on inferior_ptid.
6769 (fake_create_process): No longer write to current_windows_thread.
6770 (windows_nat_target::get_windows_debug_event):
6771 Don't set inferior_ptid or current_windows_thread.
6772 (windows_nat_target::wait): Adjust to not rely on
6773 current_windows_thread.
6774 (do_initial_windows_stuff): Now a method of windows_nat_target.
6775 Switch to the last_ptid thread.
6776 (windows_nat_target::attach): Adjust.
6777 (windows_nat_target::detach): Use switch_to_no_thread instead of
6778 writing to inferior_ptid directly.
6779 (windows_nat_target::create_inferior): Adjust.
6780
6781 2020-06-18 Pedro Alves <palves@redhat.com>
6782
6783 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
6784
6785 2020-06-18 Pedro Alves <palves@redhat.com>
6786
6787 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
6788 after creating it, instead of writing to inferior_ptid. Don't
6789 write to inferior_ptid.
6790
6791 2020-06-18 Pedro Alves <palves@redhat.com>
6792
6793 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
6794
6795 2020-06-18 Pedro Alves <palves@redhat.com>
6796
6797 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
6798 it, instead of writing to inferior_ptid.
6799
6800 2020-06-18 Pedro Alves <palves@redhat.com>
6801
6802 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
6803 to inferior_ptid.
6804
6805 2020-06-18 Pedro Alves <palves@redhat.com>
6806
6807 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
6808 instead of writing to inferior_ptid directly.
6809
6810 2020-06-18 Pedro Alves <palves@redhat.com>
6811
6812 * corelow.c (core_target::close): Use switch_to_no_thread instead
6813 of writing to inferior_ptid directly.
6814 (add_to_thread_list, core_target_open): Use switch_to_thread
6815 instead of writing to inferior_ptid directly.
6816
6817 2020-06-18 Pedro Alves <palves@redhat.com>
6818
6819 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
6820 inferior_ptid.
6821 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
6822 inferior_ptid.
6823 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
6824 inferior_ptid directly.
6825 (darwin_nat_target::init_thread_list): Switch to thread, instead
6826 of writing to inferior_ptid.
6827 (darwin_nat_target::attach): Don't write to inferior_ptid.
6828 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
6829
6830 2020-06-18 Pedro Alves <palves@redhat.com>
6831
6832 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
6833 thread.
6834 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
6835 Instead use switch_to_thread.
6836 (gnu_nat_target::detach): Use switch_to_no_thread
6837 instead of writing to inferior_ptid directly. Used passed-in
6838 inferior instead of looking up the inferior by pid.
6839
6840 2020-06-18 Pedro Alves <palves@redhat.com>
6841
6842 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
6843 inferior_ptid.
6844
6845 2020-06-18 Pedro Alves <palves@redhat.com>
6846
6847 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
6848 inferior_ptid.
6849 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
6850 thread.
6851 (nto_procfs_target::detach): Avoid referencing
6852 inferior_ptid. Use switch_to_no_thread instead of writing to
6853 inferior_ptid directly.
6854 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
6855 instead of writing to inferior_ptid directly.
6856 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
6857 to thread.
6858
6859 2020-06-18 Pedro Alves <palves@redhat.com>
6860
6861 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
6862 after creating it, instead of writing to inferior_ptid.
6863 (gdbsim_target_open): Use switch_to_no_thread instead of writing
6864 to inferior_ptid directly.
6865 (gdbsim_target::wait): Don't write to inferior_ptid.
6866
6867 2020-06-18 Pedro Alves <palves@redhat.com>
6868
6869 * remote.c (remote_target::remote_notice_new_inferior): Use
6870 switch_to_thread instead of writing to inferior_ptid directly.
6871 (remote_target::add_current_inferior_and_thread): Use
6872 switch_to_no_thread instead of writing to inferior_ptid directly.
6873 (extended_remote_target::attach): Use switch_to_inferior_no_thread
6874 and switch_to_thread instead of using set_current_inferior or
6875 writing to inferior_ptid directly.
6876
6877 2020-06-18 Pedro Alves <palves@redhat.com>
6878
6879 * tracectf.c (ctf_target_open): Switch to added thread instead of
6880 writing to inferior_ptid directly.
6881 (ctf_target::close): Use switch_to_no_thread instead of writing to
6882 inferior_ptid directly.
6883
6884 2020-06-18 Pedro Alves <palves@redhat.com>
6885
6886 * tracefile-tfile.c (tfile_target_open): Don't write to
6887 inferior_ptid directly, instead switch to added thread.
6888 (tfile_target::close): Use switch_to_no_thread instead of writing
6889 to inferior_ptid directly.
6890
6891 2020-06-18 Pedro Alves <palves@redhat.com>
6892
6893 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
6894 (procfs_target::detach): Use switch_to_no_thread
6895 instead of writing to inferior_ptid directly.
6896 (do_attach): Change return type to void. Switch to the added
6897 thread.
6898 (procfs_target::create_inferior): Switch to the added thread.
6899 (procfs_do_thread_registers): Don't write to inferior_ptid.
6900
6901 2020-06-18 Pedro Alves <palves@redhat.com>
6902
6903 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
6904 of writing to inferior_ptid.
6905 (scoped_restore_exited_inferior): Delete.
6906 (handle_vfork_child_exec_or_exit): Simplify using
6907 scoped_restore_current_pspace_and_thread. Use switch_to_thread
6908 instead of writing to inferior_ptid.
6909 (THREAD_STOPPED_BY): Delete.
6910 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
6911 (thread_stopped_by_hw_breakpoint): Delete.
6912 (save_waitstatus): Use
6913 scoped_restore_current_thread+switch_to_thread, and call
6914 target_stopped_by_watchpoint instead of
6915 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
6916 instead of thread_stopped_by_sw_breakpoint, and
6917 target_stopped_by_hw_breakpoint instead of
6918 thread_stopped_by_hw_breakpoint.
6919 (handle_inferior_event)
6920 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
6921 inferior_ptid directly, nor
6922 set_current_inferior/set_current_program_space. Use
6923 switch_to_thread / switch_to_inferior_no_thread instead.
6924
6925 2020-06-18 Pedro Alves <palves@redhat.com>
6926
6927 * target.c (generic_mourn_inferior): Use switch_to_no_thread
6928 instead of writing to inferior_ptid.
6929
6930 2020-06-18 Pedro Alves <palves@redhat.com>
6931
6932 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
6933 added thread.
6934 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
6935 to the added thread.
6936 (inf_ptrace_target::detach_success): Use switch_to_no_thread
6937 instead of writing to inferior_ptid.
6938
6939 2020-06-18 Pedro Alves <palves@redhat.com>
6940
6941 * gdbarch-selftests.c: Include "progspace-and-thread.h".
6942 (register_to_value_test): Mock a program_space too. Heap-allocate
6943 the address space. Don't write to inferior_ptid. Use
6944 switch_to_thread instead.
6945
6946 2020-06-18 Pedro Alves <palves@redhat.com>
6947
6948 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
6949 Delete.
6950 (find_signalled_thread()): New, factored out from
6951 linux_make_corefile_notes and adjusted to handle exited threads.
6952 (linux_make_corefile_notes): Adjust to use the new
6953 find_signalled_thread.
6954
6955 2020-06-18 Pedro Alves <palves@redhat.com>
6956
6957 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
6958 of saving/restoring inferior_ptid.
6959
6960 2020-06-17 Tom Tromey <tom@tromey.com>
6961
6962 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
6963 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
6964 declare.
6965 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
6966
6967 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
6968
6969 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
6970 of partial symtabs.
6971
6972 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
6973
6974 * regformats/reg-arm.dat: Remove.
6975 * regformats/reg-bfin.dat: Remove.
6976 * regformats/reg-cris.dat: Remove.
6977 * regformats/reg-crisv32.dat: Remove.
6978 * regformats/reg-m32r.dat: Remove.
6979 * regformats/reg-tilegx.dat: Remove.
6980 * regformats/reg-tilegx32.dat: Remove.
6981
6982 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
6983
6984 * features/Makefile (WHICH): Remove arm files.
6985 * regformats/arm/arm-with-iwmmxt.dat: Remove.
6986 * regformats/arm/arm-with-neon.dat: Remove.
6987 * regformats/arm/arm-with-vfpv2.dat: Remove.
6988 * regformats/arm/arm-with-vfpv3.dat: Remove.
6989
6990 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
6991
6992 * features/Makefile (XMLTOC): Remove rx.xml.
6993
6994 2020-06-17 Pedro Alves <palves@redhat.com>
6995
6996 * gdbthread.h (thread_control_state) <trap_expected> Update
6997 comments.
6998
6999 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7000
7001 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
7002 ada_language::lookup_symbol_nonlocal.
7003 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
7004 (ada_language::lookup_symbol_nonlocal): New member function,
7005 implementation from ada_lookup_symbol_nonlocal.
7006 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
7007 initializer.
7008 (cplus_language_data): Delete la_lookup_symbol_nonlocal
7009 initializer.
7010 (cplus_language::lookup_symbol_nonlocal): New member function.
7011 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
7012 (minimal_language_data) Likewise.
7013 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
7014 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
7015 initializer.
7016 (d_language::lookup_symbol_nonlocal): New member function.
7017 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
7018 initializer.
7019 (f_language::lookup_symbol_nonlocal): New member function.
7020 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
7021 initializer.
7022 * language.c (unknown_language_data): Likewise.
7023 (auto_language_data): Likewise.
7024 * language.h (language_data): Delete la_lookup_symbol_nonlocal
7025 field.
7026 (language_defn::lookup_symbol_nonlocal): New member function.
7027 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
7028 initializer.
7029 * objc-lang.c (objc_language_data): Likewise.
7030 * opencl-lang.c (opencl_language_data): Likewise.
7031 * p-lang.c (pascal_language_data): Likewise.
7032 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
7033 rust_language::lookup_symbol_nonlocal.
7034 (rust_language_data): Delete la_lookup_symbol_nonlocal
7035 initializer.
7036 (rust_language::lookup_symbol_nonlocal): New member function,
7037 implementation from rust_lookup_symbol_nonlocal.
7038 * symtab.c (lookup_symbol_aux): Update call to
7039 lookup_symbol_nonlocal.
7040 (basic_lookup_symbol_nonlocal): Rename to...
7041 (language_defn::lookup_symbol_nonlocal): ...this, and update
7042 header comment. Remove language_defn parameter, and replace with
7043 uses of `this'.
7044 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
7045
7046 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7047
7048 * ada-lang.c (ada_language_data): Delete la_value_print_inner
7049 initializer.
7050 (ada_language::value_print_inner): New member function.
7051 * c-lang.c (c_language_data): Delete la_value_print_inner
7052 initializer.
7053 (cplus_language_data): Likewise.
7054 (asm_language_data): Likewise.
7055 (minimal_language_data): Likewise.
7056 * d-lang.c (d_language_data): Likewise.
7057 (d_language::value_print_inner): New member function.
7058 * f-lang.c (f_language_data): Delete la_value_print_inner
7059 initializer.
7060 (f_language::value_print_inner): New member function.
7061 * f-lang.h (f_value_print_innner): Rename to...
7062 (f_value_print_inner): ...this (note spelling of 'inner').
7063 * f-valprint.c (f_value_print_innner): Rename to...
7064 (f_value_print_inner): ...this (note spelling of 'inner').
7065 * go-lang.c (go_language_data): Delete la_value_print_inner
7066 initializer.
7067 (go_language::value_print_inner): New member function.
7068 * language.c (language_defn::value_print_inner): Define new member
7069 function.
7070 (unk_lang_value_print_inner): Delete.
7071 (unknown_language_data): Delete la_value_print_inner initializer.
7072 (unknown_language::value_print_inner): New member function.
7073 (auto_language_data): Delete la_value_print_inner initializer.
7074 (auto_language::value_print_inner): New member function.
7075 * language.h (language_data): Delete la_value_print_inner field.
7076 (language_defn::value_print_inner): Delcare new member function.
7077 * m2-lang.c (m2_language_data): Delete la_value_print_inner
7078 initializer.
7079 (m2_language::value_print_inner): New member function.
7080 * objc-lang.c (objc_language_data): Delete la_value_print_inner
7081 initializer.
7082 * opencl-lang.c (opencl_language_data): Likewise.
7083 * p-lang.c (pascal_language_data): Likewise.
7084 (pascal_language::value_print_inner): New member function.
7085 * rust-lang.c (rust_language_data): Delete la_value_print_inner
7086 initializer.
7087 (rust_language::value_print_inner): New member function.
7088 * valprint.c (do_val_print): Update call to value_print_inner.
7089
7090 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7091
7092 * ada-lang.c (ada_language_data): Delete la_value_print
7093 initializer.
7094 (ada_language::value_print): New member function.
7095 * c-lang.c (c_language_data): Delete la_value_print initializer.
7096 (cplus_language_data): Likewise.
7097 (asm_language_data): Likewise.
7098 (minimal_language_data): Likewise.
7099 * d-lang.c (d_language_data): Likewise.
7100 * f-lang.c (f_language_data): Likewise.
7101 * go-lang.c (go_language_data): Likewise.
7102 * language.c (unk_lang_value_print): Delete.
7103 (language_defn::value_print): Define new member function.
7104 (unknown_language_data): Delete la_value_print initializer.
7105 (unknown_language::value_print): New member function.
7106 (auto_language_data): Delete la_value_print initializer.
7107 (auto_language::value_print): New member function.
7108 * language.h (language_data): Delete la_value_print field.
7109 (language_defn::value_print): Declare new member function.
7110 (LA_VALUE_PRINT): Update call to value_print.
7111 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
7112 * objc-lang.c (objc_language_data): Likewise.
7113 * opencl-lang.c (opencl_language_data): Likewise.
7114 * p-lang.c (pascal_language_data): Likewise.
7115 (pascal_language::value_print): New member function.
7116 * rust-lang.c (rust_language_data): Delete la_value_print
7117 initializer.
7118
7119 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7120
7121 * ada-lang.c (ada_watch_location_expression): Rename to
7122 ada_language::watch_location_expression.
7123 (ada_language_data): Delete la_watch_location_expression
7124 initializer.
7125 (ada_language::watch_location_expression): New member function,
7126 implementation from ada_watch_location_expression.
7127 * breakpoint.c (watch_command_1): Update call to
7128 watch_location_expression.
7129 * c-lang.c (c_watch_location_expression): Rename to
7130 language_defn::watch_location_expression.
7131 (c_language_data): Delete la_watch_location_expression
7132 initializer.
7133 (cplus_language_data): Likewise.
7134 (asm_language_data): Likewise.
7135 (minimal_language_data): Likewise.
7136 * c-lang.h (c_watch_location_expression): Delete declaration.
7137 * d-lang.c (d_language_data): Delete la_watch_location_expression
7138 initializer.
7139 * f-lang.c (f_language_data): Likewise.
7140 * go-lang.c (go_language_data): Likewise.
7141 * language.c (language_defn::watch_location_expression): Member
7142 function implementation from c_watch_location_expression.
7143 (unknown_language_data): Delete la_watch_location_expression
7144 initializer.
7145 (auto_language_data): Likewise.
7146 * language.h (language_data): Delete la_watch_location_expression
7147 field.
7148 (language_defn::watch_location_expression): Declare new member
7149 function.
7150 * m2-lang.c (m2_language_data): Delete
7151 la_watch_location_expression initializer.
7152 * objc-lang.c (objc_language_data): Likewise.
7153 * opencl-lang.c (opencl_language_data): Likewise.
7154 * p-lang.c (pascal_language_data): Likewise.
7155 * rust-lang.c (rust_watch_location_expression): Rename to
7156 rust_language::watch_location_expression.
7157 (rust_language_data): Delete la_watch_location_expression
7158 initializer.
7159 (rust_language::watch_location_expression): New member function,
7160 implementation from rust_watch_location_expression.
7161
7162 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7163
7164 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
7165 ada_language::collect_symbol_completion_matches.
7166 (ada_language_data): Delete la_collect_symbol_completion_matches
7167 initializer.
7168 (ada_language::collect_symbol_completion_matches): New member
7169 function, implementation from
7170 ada_collect_symbol_completion_matches.
7171 * c-lang.c (c_language_data): Delete
7172 la_collect_symbol_completion_matches initializer.
7173 (cplus_language_data): Likewise.
7174 (asm_language_data): Likewise.
7175 (minimal_language_data): Likewise.
7176 * d-lang.c (d_language_data): Likewise.
7177 * f-lang.c (f_collect_symbol_completion_matches): Rename to
7178 f_language::collect_symbol_completion_matches.
7179 (f_language_data): Delete la_collect_symbol_completion_matches
7180 initializer.
7181 (f_language::collect_symbol_completion_matches) New member
7182 function, implementation from f_collect_symbol_completion_matches.
7183 * go-lang.c (go_language_data): Delete
7184 la_collect_symbol_completion_matches initializer.
7185 * language.c (unknown_language_data): Likewise.
7186 (auto_language_data): Likewise.
7187 * language.h (language_data): Delete
7188 la_collect_symbol_completion_matches field.
7189 (language_defn::collect_symbol_completion_matches): New member
7190 function.
7191 * m2-lang.c (m2_language_data): Delete
7192 la_collect_symbol_completion_matches initializer.
7193 * objc-lang.c (objc_language_data): Likewise.
7194 * opencl-lang.c (opencl_language_data): Likewise.
7195 * p-lang.c (pascal_language_data): Likewise.
7196 * rust-lang.c (rust_language_data): Likewise.
7197 * symtab.c (default_collect_symbol_completion_matches): Delete.
7198 (collect_symbol_completion_matches): Update call to
7199 collect_symbol_completion_matches.
7200 (collect_symbol_completion_matches_type): Likewise.
7201 * symtab.h (default_collect_symbol_completion_matches): Delete
7202 declaration.
7203
7204 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7205
7206 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
7207 (ada_language_data): Delete la_word_break_characters initializer.
7208 (ada_language::word_break_characters): New member function.
7209 * c-lang.c (c_language_data): Delete la_word_break_characters
7210 initializer.
7211 (cplus_language_data): Likewise.
7212 (asm_language_data): Likewise.
7213 (minimal_language_data): Likewise.
7214 * completer.c: Update global comment.
7215 (advance_to_expression_complete_word_point): Update call to
7216 word_break_characters.
7217 (complete_files_symbols): Likewise.
7218 (complete_line_internal_1): Likewise.
7219 (default_completer_handle_brkchars): Likewise.
7220 (skip_quoted_chars): Likewise.
7221 * d-lang.c (d_language_data): Delete la_word_break_characters
7222 initializer.
7223 * f-lang.c (f_word_break_characters): Delete.
7224 (f_language_data): Delete la_word_break_characters initializer.
7225 (f_language::word_break_characters): New member function.
7226 * go-lang.c (go_language_data): Delete la_word_break_characters
7227 initializer.
7228 * language.c (unknown_language_data): Likewise.
7229 (auto_language_data): Likewise.
7230 * language.h (default_word_break_characters): Move declaration to
7231 earlier in the file.
7232 (language_data): Delete la_word_break_characters field.
7233 (language_defn::word_break_characters): New member function.
7234 * m2-lang.c (m2_language_data): Delete la_word_break_characters
7235 initializer.
7236 * objc-lang.c (objc_language_data): Likewise.
7237 * opencl-lang.c (opencl_language_data): Likewise.
7238 * p-lang.c (pascal_language_data): Likewise.
7239 * rust-lang.c (rust_language_data): Likewise.
7240
7241 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7242
7243 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
7244 (ada_language_data): Delete la_get_symbol_name_matcher
7245 initializer.
7246 (language_defn::get_symbol_name_matcher_inner): New member
7247 function.
7248 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
7249 initializer.
7250 (cplus_language_data): Likewise.
7251 (cplus_language::get_symbol_name_matcher_inner): New member
7252 function.
7253 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
7254 (minimal_language_data): Likewise.
7255 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
7256 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
7257 initializer.
7258 * dictionary.c (iter_match_first_hashed): Update call to
7259 get_symbol_name_matcher.
7260 (iter_match_next_hashed): Likewise.
7261 (iter_match_next_linear): Likewise.
7262 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
7263 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
7264 initializer.
7265 (f_language::get_symbol_name_matcher_inner): New member function.
7266 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
7267 initializer.
7268 * language.c (default_symbol_name_matcher): Update header comment,
7269 make static.
7270 (language_defn::get_symbol_name_matcher): New definition.
7271 (language_defn::get_symbol_name_matcher_inner): Likewise.
7272 (get_symbol_name_matcher): Delete.
7273 (unknown_language_data): Delete la_get_symbol_name_matcher
7274 initializer.
7275 (auto_language_data): Likewise.
7276 * language.h (language_data): Delete la_get_symbol_name_matcher
7277 field.
7278 (language_defn::get_symbol_name_matcher): New member function.
7279 (language_defn::get_symbol_name_matcher_inner): Likewise.
7280 (default_symbol_name_matcher): Delete declaration.
7281 * linespec.c (find_methods): Update call to
7282 get_symbol_name_matcher.
7283 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
7284 initializer.
7285 * minsyms.c (lookup_minimal_symbol): Update call to
7286 get_symbol_name_matcher.
7287 (iterate_over_minimal_symbols): Likewise.
7288 * objc-lang.c (objc_language_data): Delete
7289 la_get_symbol_name_matcher initializer.
7290 * opencl-lang.c (opencl_language_data): Likewise.
7291 * p-lang.c (pascal_language_data): Likewise.
7292 * psymtab.c (psymbol_name_matches): Update call to
7293 get_symbol_name_matcher.
7294 * rust-lang.c (rust_language_data): Delete
7295 la_get_symbol_name_matcher initializer.
7296 * symtab.c (symbol_matches_search_name): Update call to
7297 get_symbol_name_matcher.
7298 (compare_symbol_name): Likewise.
7299
7300 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7301
7302 * ada-lang.c (ada_language_data): Delete la_compute_program
7303 initializer.
7304 * c-lang.c (c_language_data): Likewise.
7305 (c_language::compute_program): New member function.
7306 (cplus_language_data): Delete la_compute_program initializer.
7307 (cplus_language::compute_program): New member function.
7308 (asm_language_data): Delete la_compute_program initializer.
7309 (minimal_language_data): Likewise.
7310 * c-lang.h (c_compute_program): Update comment.
7311 (cplus_compute_program): Likewise.
7312 * compile/compile-c-support.c (c_compute_program): Likewise.
7313 (cplus_compute_program): Likewise.
7314 * compile/compile.c (compile_to_object): Update call to
7315 la_compute_program.
7316 * d-lang.c (d_language_data): Delete la_compute_program
7317 initializer.
7318 * f-lang.c (f_language_data): Likewise.
7319 * go-lang.c (go_language_data): Likewise.
7320 * language.c (unknown_language_data): Likewise.
7321 (auto_language_data): Likewise.
7322 * language.h (language_data): Delete la_compute_program field.
7323 (language_defn::compute_program): New member function.
7324 * m2-lang.c (m2_language_data): Delete la_compute_program
7325 initializer.
7326 * objc-lang.c (objc_language_data): Likewise.
7327 * opencl-lang.c (opencl_language_data): Likewise.
7328 * p-lang.c (pascal_language_data): Likewise.
7329 * rust-lang.c (rust_language_data): Likewise.
7330
7331 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7332
7333 * ada-lang.c (ada_language_data) Delete
7334 la_class_name_from_physname initializer.
7335 * c-lang.c (c_language_data): Likewise.
7336 (cplus_language_data): Likewise.
7337 (cplus_language::class_name_from_physname): New member function.
7338 (asm_language_data): Delete la_class_name_from_physname
7339 initializer.
7340 (minimal_language_data): Likewise.
7341 * d-lang.c (d_language_data): Likewise.
7342 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
7343 method on language_defn class.
7344 (guess_full_die_structure_name): Likewise.
7345 * f-lang.c (f_language_data): Delete la_class_name_from_physname
7346 initializer.
7347 * go-lang.c (go_language_data): Likewise.
7348 * language.c (language_class_name_from_physname): Delete.
7349 (unk_lang_class_name): Delete.
7350 (unknown_language_data): Delete la_class_name_from_physname
7351 initializer.
7352 (auto_language_data): Likewise.
7353 * language.h (language_data): Delete la_class_name_from_physname
7354 field.
7355 (language_defn::class_name_from_physname): New function.
7356 (language_class_name_from_physname): Delete declaration.
7357 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
7358 initializer.
7359 * objc-lang.c (objc_language_data): Likewise.
7360 * opencl-lang.c (opencl_language_data): Likewise.
7361 * p-lang.c (pascal_language_data): Likewise.
7362 * rust-lang.c (rust_language_data): Likewise.
7363
7364 2020-06-16 Tom Tromey <tom@tromey.com>
7365
7366 * tui/tui-data.h (STATUS_NAME): New macro.
7367 * tui/tui-layout.c (tui_remove_some_windows)
7368 (initialize_known_windows, tui_register_window)
7369 (tui_layout_split::remove_windows, initialize_layouts)
7370 (tui_new_layout_command): Don't use hard-coded window names.
7371
7372 2020-06-16 Tom Tromey <tom@tromey.com>
7373
7374 PR tui/25348:
7375 * tui/tui.c (tui_ensure_readline_initialized): Rename from
7376 tui_initialize_readline. Only run once. Call rl_initialize.
7377 * tui/tui.h (tui_ensure_readline_initialized): Rename from
7378 tui_initialize_readline.
7379 * tui/tui-io.c (tui_setup_io): Call
7380 tui_ensure_readline_initialized.
7381 * tui/tui-interp.c (tui_interp::init): Update.
7382
7383 2020-06-16 Tom Tromey <tom@tromey.com>
7384
7385 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
7386 Also preserve the status window.
7387
7388 2020-06-16 Tom Tromey <tom@tromey.com>
7389
7390 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
7391 where m_window==nullptr.
7392
7393 2020-06-15 Tom Tromey <tromey@adacore.com>
7394
7395 * windows-nat.c (windows_nat::handle_output_debug_string):
7396 Update.
7397 (windows_nat::handle_ms_vc_exception): Update.
7398 * target.h (target_read_string): Change API.
7399 * target.c (target_read_string): Change API.
7400 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
7401 Update.
7402 * solib-frv.c (frv_current_sos): Update.
7403 * solib-dsbt.c (dsbt_current_sos): Update.
7404 * solib-darwin.c (darwin_current_sos): Update.
7405 * linux-thread-db.c (inferior_has_bug): Update.
7406 * expprint.c (print_subexp_standard): Update.
7407 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
7408 (ada_exception_message_1): Update.
7409
7410 2020-06-15 Tom Tromey <tromey@adacore.com>
7411
7412 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
7413
7414 2020-06-15 Tom Tromey <tromey@adacore.com>
7415
7416 * valprint.c (read_string): Update comment.
7417 * target.c (MIN): Remove.
7418 (target_read_string): Rewrite.
7419
7420 2020-06-15 Tom Tromey <tromey@adacore.com>
7421
7422 * corefile.c (read_memory_string): Remove.
7423 * ada-valprint.c (ada_value_print_ptr): Update.
7424 * ada-lang.h (ada_tag_name): Change return type.
7425 * ada-lang.c (type_from_tag): Update.
7426 (ada_tag_name_from_tsd): Change return type. Use
7427 target_read_string.
7428 (ada_tag_name): Likewise.
7429 * gdbcore.h (read_memory_string): Don't declare.
7430
7431 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
7432
7433 * symtab.c (rbreak_command): Ignore Windows drive colon.
7434
7435 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
7436
7437 * NEWS: Mention removed GDBserver host support.
7438
7439 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
7440
7441 * features/riscv/rebuild-csr-xml.sh: Updated.
7442
7443 2020-06-11 Tom Tromey <tom@tromey.com>
7444
7445 PR gdb/18318:
7446 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
7447
7448 2020-06-09 Jonny Grant <jg@jguk.org>
7449 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
7450
7451 * main.c (captured_main_1): Don't print new line after help.
7452 (print_gdb_help): add mailing list and IRC channel information
7453 to --help. Add new lines between items in the footer. Remove
7454 quotes around bug url.
7455
7456 2020-06-11 Keith Seitz <keiths@redhat.com>
7457
7458 PR gdb/21356
7459 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
7460 Resolve typedefs for type length calculations.
7461
7462 2020-06-10 Tom de Vries <tdevries@suse.de>
7463
7464 PR ada/24713
7465 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
7466 (write_psymbols): Enable .gdb_index for ada.
7467 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
7468 ada.
7469
7470 2020-06-10 Tom de Vries <tdevries@suse.de>
7471
7472 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
7473 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
7474 namei" instead of "const char *name" argument.
7475 (dw2_map_matching_symbols): Use "offset_type namei" variant of
7476 dw2_symtab_iter_init.
7477
7478 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
7479
7480 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
7481 to use type::field and field::type instead.
7482
7483 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
7484
7485 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
7486 to use field::type instead.
7487
7488 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
7489
7490 * gdbtypes.h (struct field) <type, set_type>: New methods.
7491 Rename `type` field to...
7492 <m_type>: ... this. Change references throughout to use type or
7493 set_type methods.
7494 (FIELD_TYPE): Use field::type. Change call sites that modify
7495 the field's type to use field::set_type instead.
7496
7497 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
7498
7499 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
7500 to use type::index_type instead.
7501
7502 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
7503
7504 * gdbtypes.h (struct type) <index_type, set_index_type>: New
7505 methods.
7506 (TYPE_INDEX_TYPE): Use type::index_type.
7507 * gdbtypes.c (create_array_type_with_stride): Likewise.
7508
7509 2020-06-07 Tom Tromey <tom@tromey.com>
7510
7511 * valprint.c (generic_val_print_float): Remove "embedded_offset"
7512 parameter.
7513 (generic_value_print): Update.
7514
7515 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
7516
7517 Revert commit 982a38f60b0.
7518 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
7519
7520 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
7521
7522 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
7523 avoid use after free.
7524
7525 2020-06-05 Tom de Vries <tdevries@suse.de>
7526
7527 * NEWS: Fix typos.
7528
7529 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
7530
7531 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
7532 the per_bfd object.
7533 (dwarf2_read_debug_names): Likewise.
7534 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
7535 object when re-using a per_bfd object with an index.
7536
7537 2020-06-03 Tom de Vries <tdevries@suse.de>
7538
7539 PR symtab/26046
7540 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
7541 children for C++.
7542 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
7543 DW_TAG_subprogram.
7544
7545 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7546
7547 * ada-lang.c (ada_language_data): Delete skip_trampoline
7548 initializer.
7549 * c-lang.c (c_language_data): Likewise.
7550 (cplus_language_data): Likewise.
7551 (cplus_language::skip_trampoline): New member function.
7552 (asm_language_data): Delete skip_trampoline initializer.
7553 (minimal_language_data): Likewise.
7554 * d-lang.c (d_language_data): Likewise.
7555 * f-lang.c (f_language_data): Likewise.
7556 * go-lang.c (go_language_data): Likewise.
7557 * language.c (unk_lang_trampoline): Delete function.
7558 (skip_language_trampoline): Update.
7559 (unknown_language_data): Delete skip_trampoline initializer.
7560 (auto_language_data): Likewise.
7561 * language.h (language_data): Delete skip_trampoline field.
7562 (language_defn::skip_trampoline): New function.
7563 * m2-lang.c (m2_language_data): Delete skip_trampoline
7564 initializer.
7565 * objc-lang.c (objc_skip_trampoline): Delete function, move
7566 implementation to objc_language::skip_trampoline.
7567 (objc_language_data): Delete skip_trampoline initializer.
7568 (objc_language::skip_trampoline): New member function with
7569 implementation from objc_skip_trampoline.
7570 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
7571 initializer.
7572 * p-lang.c (pascal_language_data): Likewise.
7573 * rust-lang.c (rust_language_data): Likewise.
7574
7575 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7576
7577 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
7578 (ada_language::demangle): New member function.
7579 * c-lang.c (c_language_data): Delete la_demangle initializer.
7580 (cplus_language_data): Delete la_demangle initializer.
7581 (cplus_language::demangle): New member function.
7582 (asm_language_data): Delete la_demangle initializer.
7583 (minimal_language_data): Delete la_demangle initializer.
7584 * d-lang.c (d_language_data): Delete la_demangle initializer.
7585 (d_language::demangle): New member function.
7586 * f-lang.c (f_language_data): Delete la_demangle initializer.
7587 (f_language::demangle): New member function.
7588 * go-lang.c (go_language_data): Delete la_demangle initializer.
7589 (go_language::demangle): New member function.
7590 * language.c (language_demangle): Update.
7591 (unk_lang_demangle): Delete.
7592 (unknown_language_data): Delete la_demangle initializer.
7593 (unknown_language::demangle): New member function.
7594 (auto_language_data): Delete la_demangle initializer.
7595 (auto_language::demangle): New member function.
7596 * language.h (language_data): Delete la_demangle field.
7597 (language_defn::demangle): New function.
7598 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
7599 * objc-lang.c (objc_language_data): Delete la_demangle
7600 initializer.
7601 (objc_language::demangle): New member function.
7602 * opencl-lang.c (opencl_language_data): Delete la_demangle
7603 initializer.
7604 * p-lang.c (pascal_language_data): Likewise.
7605 * rust-lang.c (rust_language_data): Likewise.
7606 (rust_language::demangle): New member function.
7607
7608 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7609
7610 * ada-lang.c (ada_language_data): Delete la_print_type
7611 initializer.
7612 (ada_language::print_type): New member function.
7613 * c-lang.c (c_language_data): Delete la_print_type initializer.
7614 (c_language::print_type): New member function.
7615 (cplus_language_data): Delete la_print_type initializer.
7616 (cplus_language::print_type): New member function.
7617 (asm_language_data): Delete la_print_type initializer.
7618 (asm_language::print_type): New member function.
7619 (minimal_language_data): Delete la_print_type initializer.
7620 (minimal_language::print_type): New member function.
7621 * d-lang.c (d_language_data): Delete la_print_type initializer.
7622 (d_language::print_type): New member function.
7623 * f-lang.c (f_language_data): Delete la_print_type initializer.
7624 (f_language::print_type): New member function.
7625 * go-lang.c (go_language_data): Delete la_print_type initializer.
7626 (go_language::print_type): New member function.
7627 * language.c (unk_lang_print_type): Delete.
7628 (unknown_language_data): Delete la_print_type initializer.
7629 (unknown_language::print_type): New member function.
7630 (auto_language_data): Delete la_print_type initializer.
7631 (auto_language::print_type): New member function.
7632 * language.h (language_data): Delete la_print_type field.
7633 (language_defn::print_type): New function.
7634 (LA_PRINT_TYPE): Update.
7635 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
7636 (m2_language::print_type): New member function.
7637 * objc-lang.c (objc_language_data): Delete la_print_type
7638 initializer.
7639 (objc_language::print_type): New member function.
7640 * opencl-lang.c (opencl_print_type): Delete, implementation moved
7641 to opencl_language::print_type.
7642 (opencl_language_data): Delete la_print_type initializer.
7643 (opencl_language::print_type): New member function, implementation
7644 from opencl_print_type.
7645 * p-lang.c (pascal_language_data): Delete la_print_type
7646 initializer.
7647 (pascal_language::print_type): New member function.
7648 * rust-lang.c (rust_print_type): Delete, implementation moved to
7649 rust_language::print_type.
7650 (rust_language_data): Delete la_print_type initializer.
7651 (rust_language::print_type): New member function, implementation
7652 from rust_print_type.
7653
7654 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7655
7656 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
7657 implementation moves to...
7658 (ada_language::sniff_from_mangled_name): ...here. Update return
7659 type.
7660 (ada_language_data): Delete la_sniff_from_mangled_name
7661 initializer.
7662 * c-lang.c (c_language_data): Likewise.
7663 (cplus_language_data): Likewise.
7664 (cplus_language::sniff_from_mangled_name): New member function,
7665 implementation taken from gdb_sniff_from_mangled_name.
7666 (asm_language_data): Delete la_sniff_from_mangled_name
7667 initializer.
7668 (minimal_language_data): Likewise.
7669 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
7670 implementation moves to cplus_language::sniff_from_mangled_name.
7671 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
7672 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
7673 moves to...
7674 (d_language::sniff_from_mangled_name): ...here.
7675 (d_language_data): Delete la_sniff_from_mangled_name initializer.
7676 * f-lang.c (f_language_data): Likewise.
7677 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
7678 moves to...
7679 (go_language::sniff_from_mangled_name): ...here.
7680 (go_language_data): Delete la_sniff_from_mangled_name initializer.
7681 * language.c (language_sniff_from_mangled_name): Delete.
7682 (unknown_language_data): Delete la_sniff_from_mangled_name
7683 initializer.
7684 (auto_language_data): Likewise.
7685 * language.h (language_data): Delete la_sniff_from_mangled_name
7686 field.
7687 (language_defn::sniff_from_mangled_name): New function.
7688 (language_sniff_from_mangled_name): Delete declaration.
7689 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
7690 field.
7691 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
7692 implementation moves to...
7693 (objc_language::sniff_from_mangled_name): ...here.
7694 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
7695 * opencl-lang.c (opencl_language_data): Likewise.
7696 * p-lang.c (pascal_language_data): Likewise.
7697 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
7698 implementation moves to...
7699 (rust_language::sniff_from_mangled_name): ...here.
7700 (rust_language_data): Delete la_sniff_from_mangled_name
7701 initializer.
7702 * symtab.c (symbol_find_demangled_name): Call
7703 sniff_from_mangled_name member function.
7704
7705 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7706
7707 * ada-lang.c (ada_language_data): Delete la_search_name_hash
7708 initializer.
7709 * c-lang.c (c_language_data): Likewise.
7710 (cplus_language_data): Likewise.
7711 (cplus_language::search_name_hash): New member function.
7712 (asm_language_data): Delete la_search_name_hash initializer.
7713 (minimal_language_data): Likewise.
7714 * d-lang.c (d_language_data): Likewise.
7715 * dictionary.c (default_search_name_hash): Rename to...
7716 (language_defn::search_name_hash): ...this.
7717 * f-lang.c (f_language_data): Likewise.
7718 (f_language::search_name_hash): New member function.
7719 * go-lang.c (go_language_data): Delete la_search_name_hash
7720 initializer.
7721 * language.c (unknown_language_data): Likewise.
7722 (auto_language_data): Likewise.
7723 * language.h (struct language_data): Delete la_search_name_hash
7724 field.
7725 (language_defn::search_name_hash): Declare new member function.
7726 (default_search_name_hash): Delete declaration.
7727 * m2-lang.c (m2_language_data): Delete la_search_name_hash
7728 initializer.
7729 * objc-lang.c (objc_language_data): Likewise.
7730 * opencl-lang.c (opencl_language_data): Likewise.
7731 * p-lang.c (pascal_language_data): Likewise.
7732 * rust-lang.c (rust_language_data): Likewise.
7733 * symtab.c (search_name_hash): Update call.
7734
7735 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7736
7737 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
7738 initializer.
7739 * c-lang.c (class compile_instance): Declare.
7740 (c_language_data): Delete la_get_compile_instance initializer.
7741 (c_language::get_compile_instance): New member function.
7742 (cplus_language_data): Delete la_get_compile_instance initializer.
7743 (cplus_language::get_compile_instance): New member function.
7744 (asm_language_data): Delete la_get_compile_instance initializer.
7745 (minimal_language_data): Likewise.
7746 * c-lang.h (c_get_compile_context): Update comment.
7747 (cplus_get_compile_context): Update comment.
7748 * compile/compile.c (compile_to_object): Update calls, don't rely
7749 on function pointer being NULL.
7750 * d-lang.c (d_language_data): Delete la_get_compile_instance
7751 initializer.
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_get_compile_instance field.
7757 (language_defn::get_compile_instance): New member function.
7758 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
7759 initializer.
7760 * objc-lang.c (objc_language_data): Likewise.
7761 * opencl-lang.c (opencl_language_data): Likewise.
7762 * p-lang.c (pascal_language_data): Likewise.
7763 * rust-lang.c (rust_language_data): Likewise.
7764
7765 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7766
7767 * ada-lang.c (ada_add_all_symbols): Update comment.
7768 (ada_iterate_over_symbols): Delete, move implementation to...
7769 (ada_language::iterate_over_symbols): ...here, a new member
7770 function, rewrite to use range based for loop.
7771 (ada_language_data): Delete la_iterate_over_symbols initializer.
7772 * c-lang.c (c_language_data): Likewise.
7773 (cplus_language_data): Likewise.
7774 (asm_language_data): Likewise.
7775 (minimal_language_data): Likewise.
7776 * d-lang.c (d_language_data): Likewise.
7777 * f-lang.c (f_language_data): Likewise.
7778 * go-lang.c (go_language_data): Likewise.
7779 * language.c (unknown_language_data): Likewise.
7780 (auto_language_data): Likewise.
7781 * language.h (language_data): Delete la_iterate_over_symbols field.
7782 (language_defn::iterate_over_symbols): New member function.
7783 (LA_ITERATE_OVER_SYMBOLS): Update.
7784 * linespec.c (iterate_over_all_matching_symtabs): Update.
7785 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
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
7792 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7793
7794 * ada-lang.c (ada_language_data): Delete
7795 la_lookup_transparent_type initializer.
7796 * c-lang.c (c_language_data): Likewise.
7797 (cplus_language_data): Likewise.
7798 (cplus_language::lookup_transparent_type): New member function.
7799 (asm_language_data): Delete la_lookup_transparent_type
7800 initializer.
7801 (minimal_language_data): Likewise.
7802 * d-lang.c (d_language_data): Likewise.
7803 * f-lang.c (f_language_data): Likewise.
7804 * go-lang.c (go_language_data): Likewise.
7805 * language.c (unknown_language_data): Likewise.
7806 (auto_language_data): Likewise.
7807 * language.h (struct language_data): Delete
7808 la_lookup_transparent_type field.
7809 (language_defn::lookup_transparent_type): New member function.
7810 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
7811 initializer.
7812 * objc-lang.c (objc_language_data): Likewise.
7813 * opencl-lang.c (opencl_language_data): Likewise.
7814 * p-lang.c (pascal_language_data): Likewise.
7815 * rust-lang.c (rust_language_data): Likewise.
7816 * symtab.c (symbol_matches_domain): Update call.
7817
7818 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7819
7820 * ada-lang.c (ada_language_arch_info): Delete function, move
7821 implementation to...
7822 (ada_language::language_arch_info): ...here, a new member
7823 function.
7824 (ada_language_data): Delete la_language_arch_info.
7825 * c-lang.c (c_language_data): Likewise.
7826 (c_language::language_arch_info): New member function.
7827 (cplus_language_arch_info): Delete function, move
7828 implementation to...
7829 (cplus_language::language_arch_info): ...here, a new member
7830 function.
7831 (cplus_language_data): Delete la_language_arch_info.
7832 (asm_language_data): Likewise.
7833 (asm_language::language_arch_info): New member function.
7834 (minimal_language_data): Delete la_language_arch_info.
7835 (minimal_language::language_arch_info): New member function.
7836 * d-lang.c (d_language_arch_info): Delete function, move
7837 implementation to...
7838 (d_language::language_arch_info): ...here, a new member
7839 function.
7840 (d_language_data): Delete la_language_arch_info.
7841 * f-lang.c (f_language_arch_info): Delete function, move
7842 implementation to...
7843 (f_language::language_arch_info): ...here, a new member
7844 function.
7845 (f_language_data): Delete la_language_arch_info.
7846 * go-lang.c (go_language_arch_info): Delete function, move
7847 implementation to...
7848 (go_language::language_arch_info): ...here, a new member
7849 function.
7850 (go_language_data): Delete la_language_arch_info.
7851 * language.c (unknown_language_data): Likewise.
7852 (unknown_language::language_arch_info): New member function.
7853 (auto_language_data): Delete la_language_arch_info.
7854 (auto_language::language_arch_info): New member function.
7855 (language_gdbarch_post_init): Update call to
7856 la_language_arch_info.
7857 * language.h (language_data): Delete la_language_arch_info
7858 function pointer.
7859 (language_defn::language_arch_info): New function.
7860 * m2-lang.c (m2_language_arch_info): Delete function, move
7861 implementation to...
7862 (m2_language::language_arch_info): ...here, a new member
7863 function.
7864 (m2_language_data): Delete la_language_arch_info.
7865 * objc-lang.c (objc_language_arch_info): Delete function, move
7866 implementation to...
7867 (objc_language::language_arch_info): ...here, a new member
7868 function.
7869 (objc_language_data): Delete la_language_arch_info.
7870 * opencl-lang.c (opencl_language_arch_info): Delete function, move
7871 implementation to...
7872 (opencl_language::language_arch_info): ...here, a new member
7873 function.
7874 (opencl_language_data): Delete la_language_arch_info.
7875 * p-lang.c (pascal_language_arch_info): Delete function, move
7876 implementation to...
7877 (pascal_language::language_arch_info): ...here, a new member
7878 function.
7879 (pascal_language_data): Delete la_language_arch_info.
7880 * rust-lang.c (rust_language_arch_info): Delete function, move
7881 implementation to...
7882 (rust_language::language_arch_info): ...here, a new member
7883 function.
7884 (rust_language_data): Delete la_language_arch_info.
7885
7886 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7887
7888 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
7889 initializer.
7890 * c-lang.c (c_language_data): Likewise.
7891 (cplus_language_data): Likewise.
7892 (cplus_language::pass_by_reference_info): New method.
7893 (asm_language_data): Delete la_pass_by_reference initializer.
7894 (minimal_language_data): Likewise.
7895 * cp-abi.c (cp_pass_by_reference): Remove use of
7896 default_pass_by_reference.
7897 * d-lang.c (d_language_data): Likewise.
7898 * f-lang.c (f_language_data): Likewise.
7899 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
7900 default_pass_by_reference.
7901 * go-lang.c (go_language_data): Likewise.
7902 * language.c (language_pass_by_reference): Update.
7903 (default_pass_by_reference): Delete.
7904 (unknown_language_data): Delete la_pass_by_reference
7905 initializer.
7906 (auto_language_data): Likewise.
7907 * language.h (struct language_data): Delete la_pass_by_reference
7908 field.
7909 (language_defn::pass_by_reference_info): New member function.
7910 (default_pass_by_reference): Delete declaration.
7911 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
7912 initializer.
7913 * objc-lang.c (objc_language_data): Likewise.
7914 * opencl-lang.c (opencl_language_data): Likewise.
7915 * p-lang.c (pascal_language_data): Likewise.
7916 * rust-lang.c (rust_language_data): Likewise.
7917
7918 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7919
7920 * ada-lang.c (ada_read_var_value): Delete function, move
7921 implementation to...
7922 (ada_language::read_var_value): ...here.
7923 (ada_language_data): Delete la_read_var_value initializer.
7924 * c-lang.c (c_language_data): Likewise.
7925 (cplus_language_data): Likewise.
7926 (minimal_language_data): Likewise.
7927 * d-lang.c (d_language_data): Likewise.
7928 * f-lang.c (f_language_data): Likewise.
7929 * findvar.c (default_read_var_value): Rename to...
7930 (language_defn::read_var_value): ...this.
7931 * findvar.c (read_var_value): Update header comment, and change to
7932 call member function instead of function pointer.
7933 * go-lang.c (go_language_data): Likewise.
7934 * language.c (unknown_language_data): Delete la_read_var_value
7935 initializer.
7936 (auto_language_data): Likewise.
7937 * language.h (struct language_data): Delete la_read_var_value
7938 field.
7939 (language_defn::read_var_value): New member function.
7940 (default_read_var_value): Delete declaration.
7941 * m2-lang.c (m2_language_data): Delete la_read_var_value
7942 initializer.
7943 * objc-lang.c (objc_language_data): Likewise.
7944 * opencl-lang.c (opencl_language_data): Likewise.
7945 * p-lang.c (pascal_language_data): Likewise.
7946 * rust-lang.c (rust_language_data): Likewise.
7947 * value.h (default_read_var_value): Delete declaration.
7948
7949 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7950
7951 * ada-lang.c (ada_print_array_index): Delete function, move
7952 implementation to...
7953 (ada_language::print_array_index): ...here.
7954 (ada_language_data): Delete la_print_array_index initializer.
7955 * c-lang.c (c_language_data): Likewise.
7956 (cplus_language_data): Likewise.
7957 (minimal_language_data): Likewise.
7958 * d-lang.c (d_language_data): Likewise.
7959 * f-lang.c (f_language_data): Likewise.
7960 * go-lang.c (go_language_data): Likewise.
7961 * language.c (default_print_array_index): Delete function, move
7962 implementation to...
7963 (language_defn::print_array_index): ...here.
7964 (unknown_language_data): Delete la_print_array_index initializer.
7965 (auto_language_data): Likewise.
7966 * language.h (struct language_data): Delete la_print_array_index
7967 field.
7968 (language_defn::print_array_index): New member function.
7969 (LA_PRINT_ARRAY_INDEX): Update.
7970 (default_print_array_index): Delete declaration.
7971 * m2-lang.c (m2_language_data): Delete la_print_array_index
7972 initializer.
7973 * objc-lang.c (objc_language_data): Likewise.
7974 * opencl-lang.c (opencl_language_data): Likewise.
7975 * p-lang.c (pascal_language_data): Likewise.
7976 * rust-lang.c (rust_language_data): Likewise.
7977
7978 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7979
7980 * gdb/ada-lang.c (ada_language_defn): Convert to...
7981 (ada_language_data): ...this.
7982 (class ada_language): New class.
7983 (ada_language_defn): New static global.
7984 * gdb/c-lang.c (c_language_defn): Convert to...
7985 (c_language_data): ...this.
7986 (class c_language): New class.
7987 (c_language_defn): New static global.
7988 (cplus_language_defn): Convert to...
7989 (cplus_language_data): ...this.
7990 (class cplus_language): New class.
7991 (cplus_language_defn): New static global.
7992 (asm_language_defn): Convert to...
7993 (asm_language_data): ...this.
7994 (class asm_language): New class.
7995 (asm_language_defn): New static global.
7996 (minimal_language_defn): Convert to...
7997 (minimal_language_data): ...this.
7998 (class minimal_language): New class.
7999 (minimal_language_defn): New static global.
8000 * gdb/d-lang.c (d_language_defn): Convert to...
8001 (d_language_data): ...this.
8002 (class d_language): New class.
8003 (d_language_defn): New static global.
8004 * gdb/f-lang.c (f_language_defn): Convert to...
8005 (f_language_data): ...this.
8006 (class f_language): New class.
8007 (f_language_defn): New static global.
8008 * gdb/go-lang.c (go_language_defn): Convert to...
8009 (go_language_data): ...this.
8010 (class go_language): New class.
8011 (go_language_defn): New static global.
8012 * gdb/language.c (unknown_language_defn): Remove declaration.
8013 (current_language): Initialize to nullptr, real initialization is
8014 moved to _initialize_language.
8015 (languages): Delete global.
8016 (language_defn::languages): Define.
8017 (set_language_command): Use language_defn::languages.
8018 (set_language): Likewise.
8019 (range_error): Likewise.
8020 (language_enum): Likewise.
8021 (language_def): Likewise.
8022 (add_set_language_command): Use language_def::languages for the
8023 language list, and language_def to lookup language pointers.
8024 (skip_language_trampoline): Use language_defn::languages.
8025 (unknown_language_defn): Convert to...
8026 (unknown_language_data): ...this.
8027 (class unknown_language): New class.
8028 (unknown_language_defn): New static global.
8029 (auto_language_defn): Convert to...
8030 (auto_language_data): ...this.
8031 (class auto_language): New class.
8032 (auto_language_defn): New static global.
8033 (language_gdbarch_post_init): Use language_defn::languages.
8034 (_initialize_language): Initialize current_language.
8035 * gdb/language.h (struct language_defn): Rename to...
8036 (struct language_data): ...this.
8037 (struct language_defn): New.
8038 (auto_language_defn): Delete.
8039 (unknown_language_defn): Delete.
8040 (minimal_language_defn): Delete.
8041 (ada_language_defn): Delete.
8042 (asm_language_defn): Delete.
8043 (c_language_defn): Delete.
8044 (cplus_language_defn): Delete.
8045 (d_language_defn): Delete.
8046 (f_language_defn): Delete.
8047 (go_language_defn): Delete.
8048 (m2_language_defn): Delete.
8049 (objc_language_defn): Delete.
8050 (opencl_language_defn): Delete.
8051 (pascal_language_defn): Delete.
8052 (rust_language_defn): Delete.
8053 * gdb/m2-lang.c (m2_language_defn): Convert to...
8054 (m2_language_data): ...this.
8055 (class m2_language): New class.
8056 (m2_language_defn): New static global.
8057 * gdb/objc-lang.c (objc_language_defn): Convert to...
8058 (objc_language_data): ...this.
8059 (class objc_language): New class.
8060 (objc_language_defn): New static global.
8061 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
8062 (opencl_language_data): ...this.
8063 (class opencl_language): New class.
8064 (opencl_language_defn): New static global.
8065 * gdb/p-lang.c (pascal_language_defn): Convert to...
8066 (pascal_language_data): ...this.
8067 (class pascal_language): New class.
8068 (pascal_language_defn): New static global.
8069 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
8070 language pointer, update comment format.
8071 * gdb/rust-lang.c (rust_language_defn): Convert to...
8072 (rust_language_data): ...this.
8073 (class rust_language): New class.
8074 (rust_language_defn): New static global.
8075
8076 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
8077
8078 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
8079 member variable.
8080 <m_stmt_at_address>: New member variable.
8081 (lnp_state_machine::record_line): Don't record some lines, update
8082 tracking of is_stmt at the same address.
8083 (lnp_state_machine::lnp_state_machine): Initialise new member
8084 variables.
8085
8086 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
8087
8088 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
8089 "-include gnu-nat-mig.h".
8090 * gnu-nat-mig.h: New file.
8091 * gnu-nat.c: Include "gnu-nat-mig.h".
8092 (exc_server, msg_reply_server, notify_server,
8093 process_reply_server): Remove declarations.
8094
8095 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8096
8097 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
8098 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
8099 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
8100 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
8101 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
8102 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
8103 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
8104 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
8105 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
8106 to gnu_nat_target class.
8107 * gnu-nat.c: Likewise.
8108 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
8109 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
8110 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
8111 object.
8112 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
8113 instead of `gnu_target'.
8114
8115 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8116
8117 * i386-gnu-tdep.c: Include "gdbcore.h"
8118 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
8119 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
8120 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
8121 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
8122 i386_gnu_sigcontext_addr): New functions
8123 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
8124 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
8125 tdep.
8126
8127 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8128
8129 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
8130 before fork_inferior call. Avoid calling it if target_is_pushed returns
8131 true.
8132
8133 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8134
8135 * gnu-nat.h (gnu_target): New variable declaration.
8136 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
8137 gnu_target.
8138 * gnu-nat.c (gnu_target): New variable.
8139 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
8140 add_thread_silent, and add_thread calls.
8141 (gnu_nat_target::create_inferior): Pass gnu_target to
8142 add_thread_silent, thread_change_ptid call.
8143 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
8144 call.
8145
8146 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8147
8148 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
8149 (gnu_nat_target::find_memory_regions): Remove unused
8150 `old_address' variable.
8151
8152 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8153
8154 * gnu-nat.c: Include "gdbarch.h".
8155
8156 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8157
8158 * reply_mig_hack.awk (Error return): Cast function through
8159 void *, to bypass compiler function call check.
8160
8161 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8162
8163 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
8164 $(srcdir)/reply_mig_hack.awk.
8165
8166 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8167
8168 * gnu-nat.h (gnu_debug_flag): Set type to bool.
8169
8170 2020-05-30 Jonny Grant <jg@jguk.org>
8171
8172 * configure.ac (ACX_BUGURL): change bug URL to https.
8173
8174 2020-05-30 Pedro Alves <palves@redhat.com>
8175
8176 * cp-support.c (replace_typedefs_template): New.
8177 (replace_typedefs_qualified_name): Handle
8178 DEMANGLE_COMPONENT_TEMPLATE.
8179
8180 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
8181
8182 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
8183 dwarf2/index-cache.h, dwarf2/index-write.c,
8184 dwarf2/index-write.h, dwarf2/line-header.c,
8185 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
8186 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
8187 variables and fields from `dwarf2_per_objfile` to just
8188 `per_objfile` throughout.
8189
8190 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
8191
8192 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8193 <push_dwarf_reg_entry_value>: Add comment.
8194
8195 2020-05-28 Kevin Buettner <kevinb@redhat.com>
8196 Keith Seitz <keiths@redhat.com>
8197
8198 * python/python.c (do_start_initialization): Call PyEval_SaveThread
8199 instead of PyEval_ReleaseLock.
8200 (class gdbpy_gil): Move to earlier in file.
8201 (finalize_python): Set gdb_python_initialized.
8202 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
8203 when not initialized.
8204
8205 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
8206
8207 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8208 <push_dwarf_reg_entry_value>: Remove assert. Override
8209 per_objfile with caller_per_objfile.
8210
8211 2020-05-28 Tom de Vries <tdevries@suse.de>
8212
8213 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
8214 PR gold/15646 workaround to symbol kind "type".
8215
8216 2020-05-27 Tom Tromey <tromey@adacore.com>
8217
8218 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
8219
8220 2020-05-27 Tom Tromey <tromey@adacore.com>
8221
8222 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
8223 Use htab_find_with_hash.
8224 <add_abbrev>: Remove "abbrev_number" parameter.
8225 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
8226 "abbrev_number" parameter. Use htab_find_slot_with_hash.
8227 (hash_abbrev): Add comment.
8228 (abbrev_table::lookup_abbrev): Move to header file.
8229 (abbrev_table::read): Update.
8230
8231 2020-05-27 Tom Tromey <tromey@adacore.com>
8232
8233 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
8234 method.
8235 <canonical_name>: New member.
8236 <raw_name>: Rename from "name".
8237 (partial_die_info): Initialize canonical_name.
8238 (scan_partial_symbols): Check raw_name.
8239 (partial_die_parent_scope, partial_die_full_name)
8240 (add_partial_symbol, add_partial_subprogram)
8241 (add_partial_enumeration, load_partial_dies): Use "name" method.
8242 (partial_die_info::name): New method.
8243 (partial_die_info::read, guess_partial_die_structure_name)
8244 (partial_die_info::fixup): Update.
8245
8246 2020-05-27 Tom Tromey <tromey@adacore.com>
8247
8248 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
8249 <get_ref_die_offset>: Inline.
8250 <get_ref_die_offset_complaint>: New method.
8251 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
8252 (attribute::get_ref_die_offset_complaint): Rename from
8253 get_ref_die_offset. Just issue complaint.
8254
8255 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
8256
8257 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
8258
8259 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
8260
8261 * exec.c (exec_file_attach): Use errno value of first openp failure.
8262
8263 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
8264
8265 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
8266 Don't close thread handle.
8267
8268 2020-05-27 Tom Tromey <tom@tromey.com>
8269 Simon Marchi <simon.marchi@efficios.com>
8270
8271 * objfiles.h (struct objfile) <partial_symtabs>: Now a
8272 shared_ptr.
8273 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
8274 member.
8275 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
8276 dwarf2_per_bfd_objfile_data_key>: New globals.
8277 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
8278 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
8279 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
8280 shared.
8281 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
8282 short-circuit when sharing.
8283 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
8284 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
8285
8286 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8287
8288 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
8289 to...
8290 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
8291 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
8292
8293 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8294
8295 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
8296 build_name_components, find_name_components_bounds>:
8297 Add per_objfile parameter.
8298 (struct mapped_index) <symbol_name_at>: Likewise.
8299 (struct mapped_debug_names): Remove constructor.
8300 <dwarf2_per_objfile>: Remove field.
8301 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
8302 (mapped_index_base::find_name_components_bounds,
8303 mapped_index_base::build_name_components,
8304 dw2_expand_symtabs_matching_symbol): Likewise.
8305 (class mock_mapped_index) <symbol_name_at>: Likewise.
8306 (check_match): Likewise.
8307 (check_find_bounds_finds): Likewise.
8308 (test_mapped_index_find_name_component_bounds): Update.
8309 (CHECK_MATCH): Update.
8310 (dw2_expand_symtabs_matching): Update.
8311 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
8312 per_objfile parameter.
8313 <find_vec_in_debug_names>: Likewise.
8314 <m_per_objfile>: New field.
8315 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
8316 parameter.
8317 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
8318 (dw2_debug_names_iterator::next): Update.
8319 (dw2_debug_names_lookup_symbol): Update.
8320 (dw2_debug_names_expand_symtabs_for_function): Update.
8321 (dw2_debug_names_map_matching_symbols): Update.
8322 (dw2_debug_names_expand_symtabs_matching): Update.
8323 (dwarf2_read_debug_names): Update.
8324
8325 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8326
8327 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
8328 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
8329 move to dwarf2_per_objfile.
8330 <read_in_chain>: Remove.
8331 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
8332 remove_all_cus, age_comp_units>: New methods.
8333 <m_dwarf2_cus>: New member.
8334 (struct dwarf2_per_cu_data) <cu>: Remove.
8335 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
8336 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
8337 moved to methods of dwarf2_per_objfile.
8338 (dwarf2_clear_marks): Remove.
8339 (dwarf2_queue_item::~dwarf2_queue_item): Update.
8340 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
8341 (dwarf2_per_bfd::free_cached_comp_units): Remove.
8342 (dwarf2_per_objfile::remove_all_cus): New.
8343 (class free_cached_comp_units) <~free_cached_comp_units>:
8344 Update.
8345 (load_cu): Update.
8346 (dw2_do_instantiate_symtab): Adjust.
8347 (fill_in_sig_entry_from_dwo_entry): Adjust.
8348 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8349 (cutu_reader::cutu_reader): Likewise.
8350 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
8351 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
8352 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
8353 and dwarf2_per_objfile::age_comp_units.
8354 (load_partial_comp_unit): Update.
8355 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
8356 (process_queue): Likewise.
8357 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
8358 backlink.
8359 (dwarf2_read_addr_index): Likewise.
8360 (follow_die_offset): Likewise.
8361 (dwarf2_fetch_die_loc_sect_off): Likewise.
8362 (dwarf2_fetch_constant_bytes): Likewise.
8363 (dwarf2_fetch_die_type_sect_off): Likewise.
8364 (follow_die_sig_1): Likewise.
8365 (load_full_type_unit): Likewise.
8366 (read_signatured_type): Likewise.
8367 (dwarf2_cu::dwarf2_cu): Don't set cu field.
8368 (dwarf2_cu::~dwarf2_cu): Remove.
8369 (dwarf2_per_objfile::get_cu): New.
8370 (dwarf2_per_objfile::set_cu): New.
8371 (age_cached_comp_units): Rename to...
8372 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
8373 to std::unordered_map.
8374 (free_one_cached_comp_unit): Rename to...
8375 (dwarf2_per_objfile::remove_cu): ... this. Adjust
8376 to std::unordered_map.
8377 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
8378 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
8379 a dwarf2_per_objfile in data.
8380 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
8381 (dwarf2_clear_marks): Remove.
8382
8383 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8384
8385 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
8386 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
8387 (init_tu_and_read_dwo_dies): Likewise.
8388 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
8389 (cutu_reader::cutu_reader): Likewise.
8390 (load_partial_comp_unit): Likewise.
8391 (process_psymtab_comp_unit): Update.
8392 (build_type_psymtabs_1): Update.
8393 (process_skeletonless_type_unit): Update.
8394 (load_full_comp_unit): Update.
8395 (find_partial_die): Update.
8396 (dwarf2_read_addr_index): Update.
8397 (read_signatured_type): Update.
8398
8399 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8400
8401 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
8402 m_header_read_in>: New fields.
8403 <get_header>: New method.
8404 * dwarf2/read.c (per_cu_header_read_in): Remove.
8405 (dwarf2_per_cu_data::get_header): New.
8406 (dwarf2_per_cu_data::addr_size): Update.
8407 (dwarf2_per_cu_data::offset_size): Update.
8408 (dwarf2_per_cu_data::ref_addr_size): Update.
8409
8410 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8411
8412 * dwarf2/read.c (load_cu): Return dwarf2_cu.
8413 (dw2_do_instantiate_symtab): Update.
8414 (queue_and_load_all_dwo_tus): Change parameter from
8415 dwarf2_per_cu_data to dwarf2_cu.
8416 (dwarf2_fetch_die_loc_sect_off): Update.
8417 (dwarf2_fetch_constant_bytes): Update.
8418 (dwarf2_fetch_die_type_sect_off): Update.
8419
8420 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8421
8422 * dwarf2/read.c (process_full_comp_unit,
8423 process_full_type_unit): Remove per_cu, per_objfile paramters.
8424 Add dwarf2_cu parameter.
8425 (process_queue): Update.
8426
8427 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8428
8429 * dwarf2/read.c (create_cu_from_index_list): Replace
8430 dwarf2_per_objfile parameter with dwarf2_per_bfd.
8431 (create_cus_from_index_list): Likewise.
8432 (create_cus_from_index): Likewise.
8433 (create_signatured_type_table_from_index): Likewise.
8434 (create_cus_from_debug_names_list): Likewise.
8435 (create_cus_from_debug_names): Likewise.
8436 (dwarf2_read_gdb_index): Update.
8437 (dwarf2_read_debug_names): Update.
8438
8439 2020-05-27 Tom Tromey <tom@tromey.com>
8440 Simon Marchi <simon.marchi@efficios.com>
8441
8442 * dwarf2/read.h (struct dwarf2_per_objfile)
8443 <get_type_for_signatured_type, set_type_for_signatured_type>:
8444 New methods.
8445 <m_type_map>: New member.
8446 (struct signatured_type) <type>: Remove.
8447 * dwarf2/read.c
8448 (dwarf2_per_objfile::get_type_for_signatured_type,
8449 dwarf2_per_objfile::set_type_for_signatured_type): New.
8450 (get_signatured_type): Use new methods.
8451
8452 2020-05-27 Tom Tromey <tom@tromey.com>
8453 Simon Marchi <simon.marchi@efficios.com>
8454
8455 * dwarf2/read.h (struct type_unit_group_unshareable): New.
8456 (struct dwarf2_per_objfile) <type_units>: New member.
8457 <get_type_unit_group_unshareable>: New method.
8458 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
8459 num_symtabs, symtabs>: Remove; move to
8460 type_unit_group_unshareable.
8461 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
8462 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
8463 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
8464
8465 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8466
8467 * dwarf2/read.h (struct dwarf2_per_cu_data):
8468 <dwarf2_per_objfile>: Remove.
8469 * dwarf2/read.c (create_cu_from_index_list): Don't assign
8470 dwarf2_per_objfile.
8471 (create_signatured_type_table_from_index): Likewise.
8472 (create_signatured_type_table_from_debug_names): Likewise.
8473 (create_debug_type_hash_table): Likewise.
8474 (fill_in_sig_entry_from_dwo_entry): Likewise.
8475 (create_type_unit_group): Likewise.
8476 (read_comp_units_from_section): Likewise.
8477 (create_cus_hash_table): Likewise.
8478
8479 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8480
8481 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
8482 dwarf2_per_cu_data::dwarf2_per_objfile.
8483 (compute_compunit_symtab_includes): Likewise.
8484 (dwarf2_cu::start_symtab): Likewise.
8485
8486 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8487
8488 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
8489 parameter.
8490 * dwarf2/read.c (get_die_type_at_offset): Likewise.
8491 (read_namespace_alias): Update.
8492 (lookup_die_type): Update.
8493 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
8494 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
8495 Update.
8496 (disassemble_dwarf_expression): Update.
8497
8498 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8499
8500 * dwarf2/read.h (struct dwarf2_queue_item): Add
8501 dwarf2_per_objfile parameter, assign new parameter.
8502 <per_objfile>: New field.
8503 * dwarf2/read.c (free_one_cached_comp_unit): Add
8504 dwarf2_per_objfile parameter.
8505 (queue_comp_unit): Likewise.
8506 (dw2_do_instantiate_symtab): Update.
8507 (process_psymtab_comp_unit): Update.
8508 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
8509 (process_imported_unit_die): Update.
8510 (queue_and_load_dwo_tu): Update.
8511 (follow_die_offset): Update.
8512 (follow_die_sig_1): Update.
8513
8514 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8515
8516 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
8517 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
8518 (read_call_site_scope): Assign per_objfile.
8519 (dwarf2_per_cu_data::objfile): Remove.
8520 * gdbtypes.h (struct call_site) <per_objfile>: New member.
8521 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
8522 dwarf2_per_objfile parameter.
8523 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
8524 dwarf2_per_objfile parameter.
8525 (dwarf_expr_reg_to_entry_parameter): Add output
8526 dwarf2_per_objfile parameter.
8527 (locexpr_get_frame_base): Update.
8528 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
8529 <push_dwarf_reg_entry_value>: Update.
8530 <call_site_to_target_addr>: Update.
8531 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
8532 parameter.
8533 (value_of_dwarf_reg_entry): Update.
8534 (rw_pieced_value): Update.
8535 (indirect_synthetic_pointer): Update.
8536 (dwarf2_evaluate_property): Update.
8537 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
8538 parameter.
8539 (locexpr_read_variable): Update.
8540 (locexpr_get_symbol_read_needs): Update.
8541 (loclist_read_variable): Update.
8542
8543 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8544
8545 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8546 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8547 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
8548 parameter.
8549 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8550 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8551 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
8552 parameter.
8553 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
8554 sect_variable_value): Add dwarf2_per_objfile parameter.
8555 (class dwarf_evaluate_loc_desc) <dwarf_call,
8556 dwarf_variable_value>: Update.
8557 (fetch_const_value_from_synthetic_pointer): Add
8558 dwarf2_per_objfile parameter.
8559 (fetch_const_value_from_synthetic_pointer): Update.
8560 (coerced_pieced_ref): Update.
8561 (class symbol_needs_eval_context) <dwarf_call,
8562 dwarf_variable_value>: Update.
8563 (dwarf2_compile_expr_to_ax): Update.
8564
8565 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8566
8567 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
8568 parameter.
8569 (dwarf2_evaluate_loc_desc_full): Update.
8570
8571 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8572
8573 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
8574 parameter.
8575 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
8576 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
8577 dwarf2_per_objfile parameter.
8578 (decode_debug_loc_dwo_addresses): Likewise.
8579 (dwarf2_find_location_expression): Update.
8580 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
8581 (locexpr_describe_location_piece): Add dwarf2_per_objfile
8582 parameter.
8583 (disassemble_dwarf_expression): Add dwarf2_per_objfile
8584 parameter.
8585 (locexpr_describe_location_1): Likewise.
8586 (locexpr_describe_location): Update.
8587
8588 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8589
8590 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
8591 Remove.
8592 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
8593 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
8594 (dwarf2_compile_property_to_c): Update.
8595 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
8596 use text offset from objfile.
8597 (locexpr_tracepoint_var_ref): Update.
8598 (locexpr_generate_c_location): Update.
8599 (loclist_describe_location): Update.
8600 (loclist_tracepoint_var_ref): Update.
8601 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
8602 dwarf2_per_objfile parameter.
8603 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
8604 use text offset from objfile.
8605 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
8606
8607 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8608
8609 * dwarf2/expr.h (struct dwarf_expr_context)
8610 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
8611 <offset>: Remove.
8612 <per_objfile>: New member.
8613 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
8614 dwarf2_per_objfile parameter. Don't set offset, set
8615 per_objfile.
8616 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
8617 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
8618 a dwarf2_per_objfile object instead of an offset.
8619 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
8620 constructor.
8621 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
8622 to dwarf2_expr_executor constructor. Don't set offset.
8623 (dwarf2_fetch_cfa_info): Update.
8624 (struct dwarf2_frame_cache) <text_offset>: Remove.
8625 <per_objfile>: New field.
8626 (dwarf2_frame_cache): Update.
8627 (dwarf2_frame_prev_register): Update.
8628 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8629 <dwarf_evaluate_loc_desc>: Add constructor.
8630 (dwarf2_evaluate_loc_desc_full): Update.
8631 (dwarf2_locexpr_baton_eval): Update.
8632 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
8633 Add constructor.
8634 (dwarf2_loc_desc_get_symbol_read_needs): Update.
8635
8636 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8637
8638 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
8639 addr_sized_int_type>: Move to dwarf2_cu.
8640 <int_type>: Move to dwarf2_per_objfile.
8641 (struct dwarf2_per_objfile) <int_type>: Move here.
8642 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
8643 addr_sized_int_type>: Move here.
8644 (read_func_scope): Update.
8645 (read_array_type): Update.
8646 (read_tag_string_type): Update.
8647 (attr_to_dynamic_prop): Update.
8648 (dwarf2_per_cu_data::int_type): Rename to...
8649 (dwarf2_per_objfile::int_type): ... this.
8650 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
8651 (dwarf2_cu::addr_sized_int_type): ... this.
8652 (read_subrange_type): Update.
8653 (dwarf2_per_cu_data::addr_type): Rename to...
8654 (dwarf2_cu::addr_type): ... this.
8655 (set_die_type): Update.
8656
8657 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8658
8659 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
8660 data through per_cu->cu.
8661
8662 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8663
8664 * dwarf2/read.c (lookup_dwo_comp_unit): Change
8665 dwarf2_per_cu_data parameter fo dwarf2_cu.
8666 (lookup_dwo_type_unit): Likewise.
8667 (read_cutu_die_from_dwo): Likewise.
8668 (lookup_dwo_unit): Likewise.
8669 (open_and_init_dwo_file): Likewise.
8670 (lookup_dwo_cutu): Likewise.
8671 (lookup_dwo_comp_unit): Likewise.
8672 (lookup_dwo_type_unit): Likewise.
8673 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8674 (cutu_reader::cutu_reader): Update.
8675
8676 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8677
8678 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
8679 parameter.
8680 (process_full_type_unit): Likewise.
8681 (process_queue): Update.
8682
8683 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8684
8685 * dwarf2/read.c (recursively_compute_inclusions): Add
8686 dwarf2_per_objfile parameter.
8687 (compute_compunit_symtab_includes): Likewise.
8688 (process_cu_includes): Update.
8689
8690 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8691
8692 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
8693 parameter.
8694 (create_type_unit_group): Update.
8695 (process_psymtab_comp_unit_reader): Update.
8696 (build_type_psymtabs_reader): Update.
8697
8698 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8699
8700 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
8701 object through m_this_cu->cu.
8702
8703 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8704
8705 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
8706 the info parameter.
8707 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
8708
8709 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8710
8711 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
8712 per_objfile parameter.
8713 (load_full_type_unit): Add per_objfile parameter.
8714 (read_signatured_type): Likewise.
8715 (load_full_comp_unit): Likewise.
8716 (load_cu): Likewise.
8717 (dw2_do_instantiate_symtab): Likewise.
8718 (dw2_get_file_names): Likewise.
8719 (dw2_map_symtabs_matching_filename): Update.
8720 (dw_expand_symtabs_matching_file_matcher): Update.
8721 (dw2_map_symbol_filenames): Update.
8722 (process_psymtab_comp_unit): Add per_objfile parameter.
8723 (build_type_psymtabs_1): Update.
8724 (process_skeletonless_type_unit): Update.
8725 (dwarf2_build_psymtabs_hard): Update.
8726 (load_partial_comp_unit): Add per_objfile parameter.
8727 (scan_partial_symbols): Update.
8728 (load_full_comp_unit): Add per_objfile parameter.
8729 (process_imported_unit_die): Update.
8730 (create_cus_hash_table): Update.
8731 (find_partial_die): Update.
8732 (dwarf2_read_addr_index): Update.
8733 (follow_die_offset): Update.
8734 (dwarf2_fetch_die_loc_sect_off): Update.
8735 (dwarf2_fetch_constant_bytes): Update.
8736 (dwarf2_fetch_die_type_sect_off): Update.
8737 (follow_die_sig_1): Update.
8738 (load_full_type_unit): Add per_objfile parameter.
8739 (read_signatured_type): Likewise.
8740
8741 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8742
8743 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
8744 of objfile_name.
8745
8746 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8747
8748 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
8749 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
8750 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
8751 field.
8752 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
8753 (create_cus_from_index): Update.
8754 (dwarf2_read_gdb_index): Update.
8755 (create_cus_from_debug_names): Update.
8756 (dwarf2_read_debug_names): Update.
8757 (get_abbrev_section_for_cu): Update.
8758 (create_all_comp_units): Update.
8759 (read_attribute_value): Update.
8760 (get_debug_line_section): Update.
8761 * dwarf2/index-cache.c (index_cache::store): Update.
8762 * dwarf2/index-write.c (save_gdb_index_command): Update.
8763 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
8764
8765 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8766
8767 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
8768 member.
8769 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
8770 dwarf2_per_cu_data::per_bfd.
8771 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
8772 (create_type_unit_group): Likewise.
8773 (queue_comp_unit): Remove reference to
8774 per_cu->dwarf2_per_objfile.
8775 (maybe_queue_comp_unit): Likewise.
8776 (fill_in_sig_entry_from_dwo_entry): Assign new field.
8777 (create_cus_hash_table): Assign new field.
8778
8779 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8780
8781 * dwarf2/read.c: Replace
8782 dwarf2_cu->per_cu->dwarf2_per_objfile references with
8783 dwarf2_cu->per_objfile throughout.
8784
8785 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8786
8787 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
8788 parameter, don't use per_cu->dwarf2_per_objfile.
8789 (dw2_instantiate_symtab): Likewise.
8790 (dw2_find_last_source_symtab): Update.
8791 (dw2_map_expand_apply): Update.
8792 (dw2_lookup_symbol): Update.
8793 (dw2_expand_symtabs_for_function): Update.
8794 (dw2_expand_all_symtabs): Update.
8795 (dw2_expand_symtabs_with_fullname): Update.
8796 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
8797 don't use per_cu->dwarf2_per_objfile.
8798 (dw2_expand_marked_cus): Update.
8799 (dw2_find_pc_sect_compunit_symtab): Update.
8800 (dw2_debug_names_lookup_symbol): Update.
8801 (dw2_debug_names_expand_symtabs_for_function): Update.
8802 (dw2_debug_names_map_matching_symbols): Update.
8803 (dwarf2_psymtab::expand_psymtab): Update.
8804
8805 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8806
8807 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
8808 <per_objfile>: New member.
8809 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
8810 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
8811 call to dwarf2_cu.
8812 (cutu_reader::cutu_reader): Update.
8813 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
8814
8815 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8816
8817 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
8818 struct dwarf2_per_objfile.
8819 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
8820 dwarf2_per_bfd.
8821 * dwarf2/read.c (set_die_type): Update.
8822 (get_die_type_at_offset): Update.
8823
8824 2020-05-27 Tom Tromey <tom@tromey.com>
8825 Simon Marchi <simon.marchi@efficios.com>
8826
8827 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
8828 method.
8829 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
8830 get_symtab, set_symtab>: New methods.
8831 <m_symtabs>: New field.
8832 (struct dwarf2_psymtab): Derive from partial_symtab.
8833 <readin_p, get_compunit_symtab>: Declare methods.
8834 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
8835 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
8836 New methods.
8837 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
8838 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
8839 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
8840 (dw2_symtab_iter_next, dw2_print_stats)
8841 (dw2_expand_symtabs_with_fullname)
8842 (dw2_expand_symtabs_matching_one)
8843 (dw_expand_symtabs_matching_file_matcher)
8844 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
8845 (dw2_debug_names_iterator::next)
8846 (dw2_debug_names_map_matching_symbols)
8847 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
8848 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
8849 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
8850 New methods.
8851 (get_compunit_symtab, process_full_comp_unit)
8852 (process_full_type_unit): Update.
8853 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
8854
8855 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8856
8857 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
8858 then introduce a new dwarf2_per_objfile type.
8859 <read_line_string>: Move to the new dwarf2_per_objfile type.
8860 <objfile>: Likewise.
8861 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
8862 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
8863 dwarf2_per_objfile->per_bfd.
8864 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
8865 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
8866 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
8867 (dwarf2_per_bfd::free_cached_comp_units): ... this.
8868 (dwarf2_has_info): Allocate dwarf2_per_bfd.
8869 (dwarf2_per_objfile::locate_sections): Rename to...
8870 (dwarf2_per_bfd::locate_sections): ... this.
8871 (dwarf2_per_objfile::get_cutu): Rename to...
8872 (dwarf2_per_bfd::get_cutu): ... this.
8873 (dwarf2_per_objfile::get_cu): Rename to...
8874 (dwarf2_per_bfd::get_cu): ... this.
8875 (dwarf2_per_objfile::get_tu): Rename to...
8876 (dwarf2_per_bfd::get_tu): ... this.
8877 (dwarf2_per_objfile::allocate_per_cu): Rename to...
8878 (dwarf2_per_bfd::allocate_per_cu): ... this.
8879 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
8880 (dwarf2_per_bfd::allocate_signatured_type): ... this.
8881 (get_gdb_index_contents_ftype): Change parameter from
8882 dwarf2_per_objfile to dwarf2_per_bfd.
8883 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
8884 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
8885
8886 2020-05-27 Tom Tromey <tom@tromey.com>
8887 Simon Marchi <simon.marchi@efficios.com>
8888
8889 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
8890 (allocate_piece_closure): Set "per_objfile" member.
8891 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
8892 (locexpr_describe_location, loclist_describe_location): Use new
8893 member.
8894 * dwarf2/read.c (read_call_site_scope)
8895 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
8896 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
8897 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
8898 handle_data_member_location): Set per_objfile member.
8899 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
8900 member.
8901 (struct dwarf2_loclist_baton) <per_objfile>: New member.
8902
8903 2020-05-27 Tom Tromey <tom@tromey.com>
8904
8905 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
8906 allocate_signatured_type>: Declare new methods.
8907 <m_num_psymtabs>: New member.
8908 (struct dwarf2_per_cu_data) <index>: New member.
8909 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
8910 (dwarf2_per_objfile::allocate_signatured_type): New methods.
8911 (create_cu_from_index_list): Use allocate_per_cu.
8912 (create_signatured_type_table_from_index)
8913 (create_signatured_type_table_from_debug_names)
8914 (create_debug_type_hash_table, add_type_unit)
8915 (read_comp_units_from_section): Use allocate_signatured_type.
8916
8917 2020-05-27 Tom Tromey <tom@tromey.com>
8918
8919 * psymtab.c (partial_map_expand_apply)
8920 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
8921 (psym_lookup_global_symbol_language)
8922 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
8923 (psym_print_stats, psym_expand_symtabs_for_function)
8924 (psym_map_symbol_filenames, psym_map_matching_symbols)
8925 (psym_expand_symtabs_matching)
8926 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
8927 (maintenance_check_psymtabs): Update.
8928 * psympriv.h (struct partial_symtab) <readin_p,
8929 get_compunit_symtab>: Add objfile parameter.
8930 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
8931 Likewise.
8932 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
8933 get_compunit_symtab>: Likewise.
8934 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
8935
8936 2020-05-27 Tom Tromey <tom@tromey.com>
8937
8938 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
8939 member.
8940 * dwarf2/read.c (delete_file_name_entry): Fix comment.
8941 (create_cu_from_index_list)
8942 (create_signatured_type_table_from_index)
8943 (create_signatured_type_table_from_debug_names)
8944 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
8945 (dwarf2_create_include_psymtab)
8946 (create_debug_type_hash_table, add_type_unit)
8947 (create_type_unit_group, read_comp_units_from_section)
8948 (dwarf2_compute_name, create_cus_hash_table)
8949 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
8950 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
8951 obstack.
8952 (dw2_get_real_path): Likewise. Change argument to
8953 dwarf2_per_objfile.
8954
8955 2020-05-27 Luis Machado <luis.machado@linaro.org>
8956
8957 PR tdep/26000
8958 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
8959 for ldrd (immediate).
8960
8961 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8962
8963 * command.h: Add comment giving the name of class_tui.
8964 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
8965 create the fake command for the help for class_tui.
8966
8967 2020-05-26 Tom Tromey <tromey@adacore.com>
8968
8969 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
8970 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
8971 (val_atr): New function.
8972 (value_val_atr): Use it.
8973 * ada-valprint.c (print_optional_low_bound): Change low bound
8974 handling for enums.
8975 (val_print_packed_array_elements): Don't call discrete_position.
8976 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
8977 discrete_position for enum types.
8978 * language.c (default_print_array_index): Change type.
8979 * language.h (struct language_defn) <la_print_array_index>: Add
8980 index_type parameter, change type of index_value.
8981 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
8982 (default_print_array_index): Update.
8983 * valprint.c (maybe_print_array_index): Don't call
8984 value_from_longest. Update.
8985 (value_print_array_elements): Don't call discrete_position.
8986
8987 2020-05-26 Tom Tromey <tromey@adacore.com>
8988
8989 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
8990 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
8991
8992 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
8993
8994 PR gdb/13519
8995 * avr-tdep.c (avr_integer_to_address): Return data or code
8996 address accordingly to the second 'type' argument of the
8997 function.
8998
8999 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
9000
9001 * infcmd.c, inferior.h: (construct_inferior_arguments):
9002 Moved function from here to gdbsupport/common-inferior.{h,cc}
9003
9004 2020-05-23 Tom Tromey <tom@tromey.com>
9005
9006 Revert commit eca1f90c:
9007 * NEWS: Remove entry for completion styling.
9008 * completer.c (_rl_completion_prefix_display_length): Move
9009 declaration later.
9010 (gdb_fnprint): Revert.
9011 (gdb_display_match_list_1): Likewise.
9012 * cli/cli-style.c (completion_prefix_style)
9013 (completion_difference_style, completion_suffix_style): Remove.
9014 (_initialize_cli_style): Revert.
9015 * cli/cli-style.h (completion_prefix_style)
9016 (completion_difference_style, completion_suffix_style): Don't
9017 declare.
9018
9019 2020-05-24 Pedro Alves <palves@redhat.com>
9020
9021 * symtab.c (completion_list_add_name): Return boolean indication
9022 of whether the symbol matched.
9023 (completion_list_add_symbol): Don't try to remove C++ aliases if
9024 the symbol didn't match in the first place.
9025 * symtab.h (completion_list_add_name): Return bool.
9026
9027 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
9028
9029 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
9030 type::field.
9031
9032 2020-05-23 Joel Brobecker <brobecker@adacore.com>
9033
9034 GDB 9.2 released.
9035
9036 2020-05-23 Tom Tromey <tom@tromey.com>
9037
9038 * NEWS: Add entry for completion styling.
9039 * completer.c (_rl_completion_prefix_display_length): Move
9040 declaration earlier.
9041 (gdb_fnprint): Use completion_style.
9042 (gdb_display_match_list_1): Likewise.
9043 * cli/cli-style.c (completion_prefix_style)
9044 (completion_difference_style, completion_suffix_style): New
9045 globals.
9046 (_initialize_cli_style): Register new globals.
9047 * cli/cli-style.h (completion_prefix_style)
9048 (completion_difference_style, completion_suffix_style): Declare.
9049
9050 2020-05-23 Pedro Alves <palves@redhat.com>
9051
9052 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
9053 (parse_escape): Use ISDIGIT instead of isdigit.
9054 (puts_debug): Use gdb_isprint instead of isprint.
9055 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
9056 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
9057 ISSPACE instead of isspace.
9058 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
9059 instead of isspace.
9060 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
9061 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
9062 instead of isxdigit and ISDIGIT instead of isdigit.
9063
9064 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9065
9066 * gdbtypes.h (struct type) <field>: New method.
9067 (TYPE_FIELDS): Remove, replace all uses with either type::fields
9068 or type::field.
9069
9070 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9071
9072 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
9073 (TYPE_FIELDS): Use type::fields. Change all call sites that
9074 modify the propery to use type::set_fields instead.
9075
9076 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9077
9078 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
9079 type::num_fields instead.
9080
9081 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9082
9083 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
9084 methods.
9085 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
9086 that modify the number of fields to use type::set_num_fields
9087 instead.
9088
9089 2020-05-22 Tom Tromey <tromey@adacore.com>
9090
9091 * compile/compile-object-load.h (munmap_list_free): Don't
9092 declare.
9093
9094 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
9095
9096 * annotate.c (annotate_source_line): Update return type, add call
9097 to update current symtab and line.
9098 * annotate.h (annotate_source_line): Update return type, and
9099 extend header comment.
9100 * source.c (info_line_command): Check annotation_level before
9101 calling annotate_source_line.
9102 * stack.c (print_frame_info): If calling annotate_source_line
9103 returns true, then don't print any other source line information.
9104
9105 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
9106
9107 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
9108
9109 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
9110
9111 * coffread.c (patch_type): Remove NULL check before xfree.
9112 * corefile.c (set_gnutarget): Likewise.
9113 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
9114 * exec.c (build_section_table): Likewise.
9115 * remote.c (remote_target::pass_signals): Likewise.
9116 * utils.c (n_spaces): Likewise.
9117 * cli/cli-script.c (document_command): Likewise.
9118 * i386-windows-tdep.c (core_process_module_section): Likewise.
9119 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
9120
9121 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
9122
9123 * symfile.c (reread_symbols): Clear objfile's section_offsets
9124 vector and section indices, re-compute them by calling
9125 sym_offsets.
9126
9127 2020-05-20 Tom Tromey <tromey@adacore.com>
9128
9129 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
9130 (desc_one_bound, desc_index_type): Compute field name.
9131
9132 2020-05-20 Tom de Vries <tdevries@suse.de>
9133
9134 PR symtab/25833
9135 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
9136
9137 2020-05-20 Alan Modra <amodra@gmail.com>
9138
9139 PR 25993
9140 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
9141 bfd_set_filename.
9142 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
9143 passed to bfd_set_filename.
9144 * symfile-mem.c (add_vsyscall_page): Likewise for string
9145 passed to symbol_file_add_from_memory.
9146 (symbol_file_add_from_memory): Make name param a const char* and
9147 don't strdup.
9148
9149 2020-05-20 Alan Modra <amodra@gmail.com>
9150
9151 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
9152 rather than accessing bfd->filename directly.
9153 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
9154 and use bfd_section_name.
9155 * dwarf2/frame.c (decode_frame_entry): Likewise.
9156 * exec.c (exec_set_section_address): Likewise.
9157 * solib-aix.c (solib_aix_bfd_open): Likewise.
9158 * stap-probe.c (get_stap_base_address): Likewise.
9159 * symfile.c (reread_symbols): Likewise.
9160
9161 2020-05-19 Tom Tromey <tromey@adacore.com>
9162
9163 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
9164
9165 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
9166
9167 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
9168
9169 2020-05-19 Pedro Alves <palves@redhat.com>
9170
9171 * NEWS (set exec-file-mismatch): Adjust entry.
9172 * exec.c: Include "build-id.h".
9173 (validate_exec_file): Try to match build IDs instead of filenames.
9174 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
9175 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
9176 and pass down 'warn_if_slow'.
9177 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
9178 gdb_bfd_open_closure to pass it down.
9179 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
9180
9181 2020-05-19 Pedro Alves <palves@redhat.com>
9182
9183 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
9184 * target.c (target_fileio_open_1): Rename to target_fileio_open
9185 and make extern. Use bool.
9186 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
9187 (target_fileio_read_alloc_1): Adjust.
9188 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
9189 (target_fileio_open_warn_if_slow): Delete declaration.
9190
9191 2020-05-19 Pedro Alves <palves@redhat.com>
9192
9193 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
9194 Adjust all callers.
9195
9196 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
9197
9198 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
9199 whether disp is negative.
9200
9201 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
9202
9203 * symfile.h (struct symfile_segment_data)
9204 <~symfile_segment_data>: Remove.
9205 <segment_info>: Change to std::vector.
9206 * symfile.c (default_symfile_segments): Update.
9207 * elfread.c (elf_symfile_segments): Update.
9208
9209 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
9210
9211 * symfile.h (struct symfile_segment_data) <struct segment>: New.
9212 <segments>: New.
9213 <segment_bases, segment_sizes>: Remove.
9214 * symfile.c (default_symfile_segments): Update.
9215 * elfread.c (elf_symfile_segments): Update.
9216 * remote.c (remote_target::get_offsets): Update.
9217 * solib-target.c (solib_target_relocate_section_addresses):
9218 Update.
9219
9220 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
9221
9222 * symfile.h (struct symfile_segment_data): Initialize fields.
9223 <~symfile_segment_data>: Add.
9224 (symfile_segment_data_up): New.
9225 (struct sym_fns) <sym_segments>: Return a
9226 symfile_segment_data_up.
9227 (default_symfile_segments): Return a symfile_segment_data_up.
9228 (free_symfile_segment_data): Remove.
9229 (get_symfile_segment_data): Return a symfile_segment_data_up.
9230 * symfile.c (default_symfile_segments): Likewise.
9231 (get_symfile_segment_data): Likewise.
9232 (free_symfile_segment_data): Remove.
9233 (symfile_find_segment_sections): Update.
9234 * elfread.c (elf_symfile_segments): Return a
9235 symfile_segment_data_up.
9236 * remote.c (remote_target::get_offsets): Update.
9237 * solib-target.c (solib_target_relocate_section_addresses):
9238 Update.
9239 * symfile-debug.c (debug_sym_segments): Return a
9240 symfile_segment_data_up.
9241
9242 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9243
9244 PR build/25981
9245 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
9246 Hardcode register numbers.
9247
9248 PR build/25981
9249 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
9250 procfs_find_LDT_entry): Remove.
9251 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
9252 procfs_find_LDT_entry): Remove.
9253 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
9254 Remove.
9255
9256 2020-05-17 Pedro Alves <palves@redhat.com>
9257 Andrew Burgess <andrew.burgess@embecosm.com>
9258 Keno Fischer <keno@juliacomputing.com>
9259
9260 PR gdb/25741
9261 * breakpoint.c (build_target_condition_list): Update comments.
9262 (build_target_command_list): Update comments and skip matching
9263 locations.
9264 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
9265 a separate function. Simplify "set breakpoint auto-hw off"
9266 handling.
9267 (insert_breakpoints): Update comment.
9268 (tracepoint_locations_match): New parameter. For breakpoints,
9269 compare location types too, if the caller wants to.
9270 (handle_automatic_hardware_breakpoints): New functions.
9271 (bp_location_is_less_than): Also sort by location type and
9272 hardware breakpoint length.
9273 (update_global_location_list): Handle "set breakpoint auto-hw on"
9274 here.
9275 (update_breakpoint_locations): Ask breakpoint_locations_match to
9276 ignore location types.
9277
9278 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
9279
9280 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
9281 type::name instead.
9282
9283 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
9284
9285 * gdbtypes.h (struct type) <name, set_name>: New methods.
9286 (TYPE_CODE): Use type::name. Change all call sites used to set
9287 the name to use type::set_name instead.
9288
9289 2020-05-16 Tom Tromey <tom@tromey.com>
9290
9291 * top.c (quit_force): Update.
9292 * infrun.c (handle_no_resumed): Update.
9293 * top.h (all_uis): New function.
9294 (ALL_UIS): Remove.
9295
9296 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
9297
9298 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
9299
9300 2020-05-16 Pedro Alves <palves@redhat.com>
9301
9302 * ia64-linux-nat.c
9303 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
9304 Declare method.
9305 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
9306
9307 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
9308
9309 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
9310 (sparc64_adi_info): Likewise.
9311
9312 2020-05-15 Tom Tromey <tom@tromey.com>
9313
9314 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
9315 block_objfile.
9316 (lookup_objfile_from_block): Remove.
9317 (lookup_symbol_in_block, lookup_symbol_in_static_block)
9318 (lookup_global_symbol): Use block_objfile.
9319 * symtab.h (lookup_objfile_from_block): Don't declare.
9320 * printcmd.c (clear_dangling_display_expressions): Use
9321 block_objfile.
9322 * parse.c (operator_check_standard): Use block_objfile.
9323
9324 2020-05-15 Tom Tromey <tom@tromey.com>
9325
9326 * language.c (language_alloc_type_symbol): Set
9327 SYMBOL_SECTION.
9328 * symtab.c (initialize_objfile_symbol): Remove.
9329 (allocate_symbol): Remove.
9330 (allocate_template_symbol): Remove.
9331 * dwarf2/read.c (fixup_go_packaging): Use "new".
9332 (new_symbol): Use "new".
9333 (read_variable): Don't call initialize_objfile_symbol. Use
9334 "new".
9335 (read_func_scope): Use "new".
9336 * xcoffread.c (process_xcoff_symbol): Don't call
9337 initialize_objfile_symbol.
9338 (SYMBOL_DUP): Remove.
9339 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
9340 "new".
9341 * symtab.h (allocate_symbol, initialize_objfile_symbol)
9342 (allocate_template_symbol): Don't declare.
9343 (struct symbol): Add copy constructor. Change defaults.
9344 * jit.c (finalize_symtab): Use "new".
9345 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
9346 Use "new".
9347 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
9348 (common_block_end): Use "new".
9349 * mdebugread.c (parse_symbol): Use "new".
9350 (new_symbol): Likewise.
9351
9352 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9353
9354 * NEWS: Mention changes to help and apropos.
9355
9356 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9357
9358 * command.h (enum command_class): Improve comments, document
9359 that class_alias is for user-defined aliases, give the class
9360 name for each class, remove unused class_xdb.
9361 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
9362 * breakpoint.c (_initialize_breakpoint): Replace class_alias
9363 by a precise class.
9364 * infcmd.c (_initialize_infcmd): Likewise.
9365 * reverse.c (_initialize_reverse): Likewise.
9366 * stack.c (_initialize_stack): Likewise.
9367 * symfile.c (_initialize_symfile): Likewise.
9368 * tracepoint.c (_initialize_tracepoint): Likewise.
9369
9370 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9371
9372 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
9373 when their aliased command is traversed.
9374 (help_cmd): Add fput_command_names_styled call to
9375 output command name and aliases when command has an alias.
9376
9377 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9378
9379 * cli/cli-decode.h (help_cmd_list): Remove declaration.
9380 * cli/cli-decode.c (help_cmd_list): Declare as static,
9381 remove prefix argument, use bool for recurse arg, rework to show the aliases of
9382 a command together with the command.
9383 (fput_command_name_styled, fput_command_names_styled): New functions.
9384 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
9385 fput_command_name_styled.
9386 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
9387 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
9388
9389 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9390
9391 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
9392 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
9393 * command.h (cmd_show_list): Likewise.
9394 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
9395 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
9396
9397 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9398
9399 * unittests/command-def-selftests.c (traverse_command_structure):
9400 Verify all commands of a list have the same prefix command and
9401 that only the top cmdlist commands have a null prefix.
9402
9403 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9404
9405 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
9406 as prefix, not one of its aliases.
9407 (set_cmd_prefix): Remove.
9408 (do_add_cmd): Centralize the setting of the prefix of a command, when
9409 command is defined after its full chain of prefix commands.
9410 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
9411 (add_setshow_cmd_full): Likewise.
9412 (update_prefix_field_of_prefixed_commands): New function.
9413 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
9414 update_prefix_field_of_prefixed_commands.
9415 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
9416 addresses of remote_set_cmdlist and remote_show_cmdlist given
9417 as argument, not the address of an argument.
9418 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
9419 * gdb/remote.c (_initialize_remote): Likewise.
9420
9421 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9422
9423 * cli/cli-cmds.c (alias_command): Check for an existing alias
9424 using lookup_cmd_composition, as valid_command_p is too strict
9425 and forbids aliases that are the prefix of an existing alias
9426 or command.
9427 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
9428 command is properly recognised as a valid command.
9429
9430 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9431
9432 * unittests/help-doc-selftests.c: Rename to
9433 unittests/command-def-selftests.c
9434 * unittests/command-def-selftests.c (help_doc_tests): Update some
9435 comments.
9436 (command_structure_tests, traverse_command_structure): New namespace
9437 and function.
9438 (command_structure_invariants_tests): New function.
9439 (_initialize_command_def_selftests) Renamed from
9440 _initialize_help_doc_selftests, register command_structure_invariants
9441 selftest.
9442
9443 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9444
9445 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
9446 an alias of 'show'.
9447
9448 2020-05-15 Joel Brobecker <brobecker@adacore.com>
9449
9450 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
9451 ada_is_fixed_point_type. Update all callers.
9452 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
9453 all callers.
9454 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
9455 Update all callers.
9456 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
9457 print_fixed_point_type. Update all callers.
9458 * ada-valprint.c (ada_value_print_num): Replace call to
9459 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
9460
9461 2020-05-14 Kevin Buettner <kevinb@redhat.com>
9462
9463 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
9464 processors.
9465 (cpu_supports_bts): Add CV_AMD case.
9466
9467 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
9468 Simon Marchi <simon.marchi@efficios.com>
9469
9470 * infrun.c (stop_all_threads): Collect multiple wait events at
9471 each pass.
9472
9473 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
9474
9475 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
9476 type::code instead.
9477
9478 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
9479
9480 * gdbtypes.h (struct type) <code, set_code>: New methods.
9481 (TYPE_CODE): Use type::code. Change all call sites used to set
9482 the code to use type::set_code instead.
9483
9484 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9485 Tom de Vries <tdevries@suse.de>
9486 Pedro Alves <palves@redhat.com>
9487
9488 PR threads/25478
9489 * infrun.c (stop_all_threads): Do NOT ignore
9490 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
9491 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
9492 received.
9493 (handle_no_resumed): Remove code handling a live inferior with no
9494 threads.
9495 * remote.c (has_single_non_exited_thread): New.
9496 (remote_target::update_thread_list): Do not delete a thread if is
9497 the last thread of the process.
9498 * thread.c (thread_select): Call delete_exited_threads instead of
9499 prune_threads.
9500
9501 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9502
9503 * infrun.c (stop_all_threads): Enable/disable thread events of all
9504 targets. Move a debug message denoting the end of the function
9505 into the SCOPED_EXIT block.
9506
9507 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9508
9509 * process-stratum-target.h: Include <set>.
9510 (all_non_exited_process_targets, switch_to_target_no_thread): New
9511 function declarations.
9512 * process-stratum-target.c (all_non_exited_process_targets)
9513 (switch_to_target_no_thread): New function implementations.
9514
9515 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9516
9517 * infrun.c (handle_inferior_event): Extract out a piece of code
9518 into...
9519 (mark_non_executing_threads): ...this new function.
9520
9521 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9522
9523 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
9524 use.
9525
9526 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9527
9528 * regcache.c (regcache_read_pc_protected): New function
9529 implementation that returns 0 if the PC cannot read via
9530 'regcache_read_pc'.
9531 * infrun.c (proceed): Call 'regcache_read_pc_protected'
9532 instead of 'regcache_read_pc'.
9533 (keep_going_pass_signal): Ditto.
9534
9535 2020-05-13 Tom Tromey <tromey@adacore.com>
9536
9537 * ada-lang.c (align_value): Remove.
9538 (ada_template_to_fixed_record_type_1): Use align_up.
9539
9540 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9541
9542 * async-event.c: Update the copyright year.
9543 * async-event.h: Update the copyright year.
9544
9545 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
9546
9547 * objfiles.h (is_addr_in_objfile,
9548 shared_objfile_contains_address_p): Return bool.
9549 * objfile.c (is_addr_in_objfile,
9550 shared_objfile_contains_address_p): Return bool.
9551
9552 2020-05-11 Tom Tromey <tromey@adacore.com>
9553
9554 * cli/cli-cmds.c (info_command): Restore.
9555 (_initialize_cli_cmds): Use add_prefix_command for "info".
9556 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
9557
9558 2020-05-11 Tom Tromey <tromey@adacore.com>
9559
9560 * ada-lang.c (ada_value_primitive_field): Now public.
9561 * ada-lang.h (ada_value_primitive_field): Declare.
9562 * ada-valprint.c (print_field_values): Use
9563 ada_value_primitive_field for wrapper fields.
9564
9565 2020-05-11 Tom de Vries <tdevries@suse.de>
9566
9567 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
9568 MODULE_DOMAIN.
9569
9570 2020-05-11 Tom de Vries <tdevries@suse.de>
9571
9572 PR symtab/25941
9573 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
9574 with length 0, if not gdb-produced.
9575 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
9576
9577 2020-05-09 Tom de Vries <tdevries@suse.de>
9578
9579 PR gdb/25955
9580 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
9581 calculation.
9582
9583 2020-05-09 Tom Tromey <tom@tromey.com>
9584
9585 * top.c (server_command): Now bool.
9586 * top.h (server_command): Now bool.
9587
9588 2020-05-08 Tom Tromey <tromey@adacore.com>
9589
9590 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
9591 already being processed.
9592
9593 2020-05-08 Tom Tromey <tom@tromey.com>
9594
9595 * printcmd.c (struct display) <next>: Remove.
9596 <display>: New constructor.
9597 <exp_string>: Now a std::string.
9598 <enabled_p>: Now a bool.
9599 (display_number): Move definition earlier.
9600 (displays): Rename from display_chain. Now a std::vector.
9601 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
9602 (display_command): Update.
9603 (do_one_display, disable_display)
9604 (enable_disable_display_command, do_enable_disable_display):
9605 Update.
9606 (free_display): Remove.
9607 (clear_displays): Rewrite.
9608 (delete_display): Update.
9609 (map_display_numbers): Use function_view. Remove "data"
9610 parameter. Update.
9611 (do_delete_display): Remove.
9612 (undisplay_command): Update.
9613 (do_one_display, do_displays, disable_display)
9614 (info_display_command): Update.
9615 (do_enable_disable_display): Remove.
9616 (enable_disable_display_command)
9617 (clear_dangling_display_expressions): Update.
9618
9619 2020-05-08 Tom Tromey <tom@tromey.com>
9620
9621 * symtab.c (set_symbol_cache_size)
9622 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
9623 (maintenance_print_symbol_cache_statistics): Update.
9624 * symmisc.c (print_symbol_bcache_statistics)
9625 (print_objfile_statistics, maintenance_print_objfiles)
9626 (maintenance_info_symtabs, maintenance_check_symtabs)
9627 (maintenance_expand_symtabs, maintenance_info_line_tables):
9628 Update.
9629 * symfile-debug.c (set_debug_symfile): Update.
9630 * source.c (forget_cached_source_info): Update.
9631 * python/python.c (gdbpy_progspaces): Update.
9632 * psymtab.c (maintenance_info_psymtabs): Update.
9633 * probe.c (parse_probes): Update.
9634 * linespec.c (iterate_over_all_matching_symtabs)
9635 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
9636 * guile/scm-progspace.c (gdbscm_progspaces): Update.
9637 * exec.c (exec_target::close): Update.
9638 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
9639 * breakpoint.c (print_one_breakpoint_location)
9640 (create_longjmp_master_breakpoint)
9641 (create_std_terminate_master_breakpoint): Update.
9642 * progspace.c (program_spaces): Now a std::vector.
9643 (maybe_new_address_space): Update.
9644 (add_program_space): Remove.
9645 (program_space::program_space): Update.
9646 (remove_program_space): Update.
9647 (number_of_program_spaces): Remove.
9648 (print_program_space, update_address_spaces): Update.
9649 * progspace.h (program_spaces): Change type.
9650 (ALL_PSPACES): Remove.
9651 (number_of_program_spaces): Don't declare.
9652 (struct program_space) <next>: Remove.
9653
9654 2020-05-08 Tom Tromey <tom@tromey.com>
9655
9656 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
9657 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
9658 (enable_break): Update.
9659 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
9660 (frv_fdpic_find_canonical_descriptor): Update.
9661 (frv_fetch_objfile_link_map): Update.
9662 * progspace.c (program_space::free_all_objfiles): Update.
9663 (program_space::solibs): New method.
9664 * progspace.h (struct program_space) <solibs>: New method.
9665 * solist.h (master_so_list): Don't declare.
9666 (ALL_SO_LIBS): Remove.
9667 * solib.h (so_list_head): Remove.
9668 (update_solib_list): Update comment.
9669 * solib.c (master_so_list): Remove.
9670 (solib_used, update_solib_list, solib_add)
9671 (info_sharedlibrary_command, clear_solib)
9672 (reload_shared_libraries_1, remove_user_added_objfile): Update.
9673
9674 2020-05-08 Tom Tromey <tom@tromey.com>
9675
9676 * extension.c (extension_languages): Now a std::array.
9677 (ALL_EXTENSION_LANGUAGES): Remove.
9678 (get_ext_lang_defn, get_ext_lang_of_file)
9679 (eval_ext_lang_from_control_command): Update.
9680 (finish_ext_lang_initialization)
9681 (auto_load_ext_lang_scripts_for_objfile)
9682 (ext_lang_type_printers::ext_lang_type_printers)
9683 (apply_ext_lang_type_printers)
9684 (ext_lang_type_printers::~ext_lang_type_printers)
9685 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
9686 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
9687 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
9688 (get_matching_xmethod_workers, ext_lang_colorize)
9689 (ext_lang_before_prompt): Update.
9690 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
9691
9692 2020-05-08 Tom Tromey <tom@tromey.com>
9693
9694 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
9695 overload.
9696 <swap_string, m_string>: Remove.
9697 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
9698 Update.
9699 * stabsread.c (define_symbol, read_type): Update.
9700 * linespec.c (find_linespec_symbols): Update.
9701 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
9702 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
9703 * dbxread.c (read_dbx_symtab): Update.
9704 * cp-support.h (cp_canonicalize_string_full)
9705 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
9706 Return unique_xmalloc_ptr.
9707 * cp-support.c (inspect_type): Update.
9708 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
9709 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
9710 Likewise.
9711 * c-typeprint.c (print_name_maybe_canonical): Update.
9712 * break-catch-throw.c (check_status_exception_catchpoint):
9713 Update.
9714
9715 2020-05-08 Tom de Vries <tdevries@suse.de>
9716
9717 * infrun.c (follow_fork): Copy current_line and current_symtab to
9718 child thread.
9719
9720 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
9721
9722 * async-event.c (struct async_signal_handler, struct
9723 async_event_handler): Reformat, remove typedef.
9724
9725 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
9726
9727 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
9728 access thistype->main_type->dyn_prop_list directly.
9729
9730 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
9731
9732 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
9733 (remove_dyn_prop): Remove. Update all users to use
9734 type::remove_dyn_prop.
9735 * gdbtypes.c (remove_dyn_prop): Rename to...
9736 (type::remove_dyn_prop): ... this.
9737
9738 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
9739
9740 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
9741 (add_dyn_prop): Remove. Update all users to use
9742 type::add_dyn_prop.
9743 * gdbtypes.c (add_dyn_prop): Rename to...
9744 (type::add_dyn_prop): ... this.
9745
9746 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
9747
9748 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
9749 (get_dyn_prop): Remove. Update all users to use
9750 type::dyn_prop.
9751 * gdbtypes.c (get_dyn_prop): Rename to...
9752 (type::dyn_prop): ... this.
9753
9754 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
9755
9756 * gdbtypes.h (struct main_type) <flag_static>: Remove.
9757
9758 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
9759
9760 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
9761 instruction, skip it if it's there.
9762
9763 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
9764
9765 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
9766
9767 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
9768
9769 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
9770 * gdbtypes.c (recursive_dump_type): Remove use of
9771 TYPE_INCOMPLETE.
9772
9773 2020-05-03 Tom Tromey <tom@tromey.com>
9774
9775 * breakpoint.c (catch_command, tcatch_command): Remove.
9776 (_initialize_breakpoint): Use add_basic_prefix_cmd,
9777 add_show_prefix_cmd.
9778 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
9779 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
9780 Remove.
9781 (add_internal_problem_command): Use add_basic_prefix_cmd,
9782 add_show_prefix_cmd.
9783 * mips-tdep.c (set_mipsfpu_command): Remove.
9784 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
9785 * dwarf2/index-cache.c (set_index_cache_command): Remove.
9786 (_initialize_index_cache): Use add_basic_prefix_cmd.
9787 * memattr.c (dummy_cmd): Remove.
9788 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
9789 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
9790 (_initialize_tui_win): Use add_basic_prefix_cmd,
9791 add_show_prefix_cmd.
9792 * cli/cli-logging.c (set_logging_command): Remove.
9793 (_initialize_cli_logging): Use add_basic_prefix_cmd,
9794 add_show_prefix_cmd.
9795 (show_logging_command): Remove.
9796 * target.c (target_command): Remove.
9797 (add_target): Use add_basic_prefix_cmd.
9798
9799 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
9800
9801 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
9802
9803 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9804
9805 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
9806 info_command.
9807
9808 2020-04-30 Kamil Rytarowski <n54@gmx.com>
9809
9810 * nbsd-nat.c (nbsd_enable_proc_events)
9811 (nbsd_nat_target::post_startup_inferior): Add.
9812 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
9813 (nbsd_nat_target::update_thread_list): Rewrite.
9814 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
9815 "PTRACE_LWP_CREATE".
9816 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
9817
9818 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9819
9820 * stack.c (_initialize_stack): Remove duplicated creation
9821 of "frame" command and "f" alias.
9822
9823 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
9824
9825 PR gdb/18706
9826 * gdbtypes.c (check_typedef): Calculate size of array of
9827 stubbed type.
9828
9829 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
9830
9831 PR gdb/15559
9832 * i386-tdep.c (i386_push_dummy_call): Call
9833 i386_thiscall_push_dummy_call.
9834 (i386_thiscall_push_dummy_call): New function.
9835 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
9836 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
9837 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
9838
9839 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9840
9841 * gdbarch.sh (do_read): Add shellcheck disable directive for
9842 warning SC2162.
9843
9844 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9845
9846 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
9847 "referenced but not assigned" warning.
9848
9849 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9850
9851 * gdbarch.sh: Remove code that sets fallbackdefault.
9852
9853 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9854
9855 * gdbarch.sh: Use shell operators && and || instead of
9856 -a and -o.
9857
9858 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9859
9860 * gdbarch.sh: Use $(...) instead of `...`.
9861
9862 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9863
9864 * gdbarch.sh: Use double quotes around variables.
9865
9866 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9867
9868 * gdbarch.sh: Use %s with printf, instead of variables in the
9869 format string.
9870
9871 2020-04-29 Tom Tromey <tromey@adacore.com>
9872
9873 PR ada/25875:
9874 * dwarf2/read.c (update_enumeration_type_from_children): Compute
9875 type fields here.
9876 (read_enumeration_type): Call
9877 update_enumeration_type_from_children later. Update comments.
9878 (process_enumeration_scope): Don't create type fields.
9879
9880 2020-04-29 Kamil Rytarowski <n54@gmx.com>
9881
9882 * nbsd-tdep.c: Include "xml-syscall.h".
9883 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
9884
9885 2020-04-29 Kamil Rytarowski <n54@gmx.com>
9886
9887 * nbsd-nat.c: Include "sys/wait.h".
9888 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
9889 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
9890 (nbsd_nat_target::remove_exec_catchpoint)
9891 (nbsd_nat_target::set_syscall_catchpoint): Add.
9892 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
9893 (nbsd_nat_target::insert_exec_catchpoint)
9894 (nbsd_nat_target::remove_exec_catchpoint)
9895 (nbsd_nat_target::set_syscall_catchpoint): Add.
9896 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
9897 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
9898 `nbsd_get_syscall_number'.
9899
9900 2020-04-29 Tom Tromey <tom@tromey.com>
9901
9902 * stack.c (print_block_frame_labels): Remove.
9903
9904 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
9905
9906 PR gdb/17320
9907 * ada-valprint.c (val_print_packed_array_elements): Move array
9908 end bracket to new line.
9909 (ada_val_print_string): Remove extra spaces before first array
9910 element.
9911 * c-valprint.c (c_value_print_array): Likewise.
9912 * m2-valprint.c (m2_print_array_contents): Likewise.
9913 (m2_value_print_inner): Likewise.
9914 * p-valprint.c (pascal_value_print_inner): Likewise.
9915 * valprint.c (generic_val_print_array): Likewise.
9916 (value_print_array_elements): Move first array element and array
9917 end bracket to new line.
9918
9919 2020-04-29 Tom de Vries <tdevries@suse.de>
9920
9921 PR symtab/25889
9922 * linespec.c (find_method): Fix ix calculation.
9923
9924 2020-04-28 Kamil Rytarowski <n54@gmx.com>
9925
9926 * syscalls/update-netbsd.sh: New file.
9927 * syscalls/netbsd.xml: Regenerate.
9928 * data-directory/Makefile.in: Register `netbsd.xml' in
9929 `SYSCALLS_FILES'.
9930
9931 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
9932
9933 * syscalls/update-freebsd.sh: Add double quotes.
9934
9935 2020-04-28 Tom Tromey <tom@tromey.com>
9936
9937 * NEWS: Update.
9938 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
9939 (cmdpy_init): Allow class_tui.
9940
9941 2020-04-28 Mark Williams <mark@myosotissp.com>
9942
9943 PR gdb/24480
9944 * dwarf2read.c: Add missing assingments to list_in_scope when
9945 start_symtab was already called.
9946
9947 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
9948
9949 PR gdb/25881
9950 * dwarf2/read.c (offset_map_type): Use
9951 gdb:hash_enum<sect_offset> as hash function.
9952
9953 2020-04-28 Tom de Vries <tdevries@suse.de>
9954
9955 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
9956 with DW_AT_signature.
9957
9958 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
9959
9960 * configure.ac: Remove check for fs_base/gs_base in
9961 user_regs_struct.
9962 * configure: Re-generate.
9963 * config.in: Re-generate.
9964 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
9965 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
9966 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
9967
9968 2020-04-27 Luis Machado <luis.machado@linaro.org>
9969
9970 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
9971 problematic inline frame unwinding situation.
9972 * frame.c (frame_id_computed_p): New function.
9973 * frame.h (frame_id_computed_p): New prototype.
9974
9975 2020-04-26 Tom Tromey <tom@tromey.com>
9976
9977 * command.h (enum command_class) <class_pseudo>: Remove.
9978
9979 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9980
9981 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
9982 and whitespace.
9983
9984 2020-04-25 Kamil Rytarowski <n54@gmx.com>
9985
9986 * inf-ptrace.c (inf_ptrace_target::wait): Remove
9987 `PT_GET_PROCESS_STATE' block.
9988
9989 2020-04-24 Tom Tromey <tom@tromey.com>
9990
9991 * symtab.h (symbol_get_demangled_name): Don't declare.
9992 * symtab.c (symbol_get_demangled_name): Remove.
9993 (general_symbol_info::natural_name)
9994 (general_symbol_info::demangled_name): Update.
9995
9996 2020-04-24 Tom Tromey <tom@tromey.com>
9997
9998 PR rust/25025:
9999 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
10000
10001 2020-04-24 Tom Tromey <tom@tromey.com>
10002
10003 PR symtab/12707:
10004 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
10005 exists.
10006 (new_symbol): Likewise.
10007 * compile/compile-object-load.c (get_out_value_type): Use
10008 symbol_matches_search_name.
10009
10010 2020-04-24 Tom Tromey <tom@tromey.com>
10011
10012 * dwarf2/read.c (add_partial_symbol): Do not call
10013 compute_and_set_names.
10014
10015 2020-04-24 Tom Tromey <tom@tromey.com>
10016
10017 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
10018 overload.
10019
10020 2020-04-24 Tom Tromey <tom@tromey.com>
10021
10022 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
10023 (add_psymbol_to_list): New overload. Make old overload call new
10024 one.
10025 * psympriv.h (add_psymbol_to_list): New overload.
10026
10027 2020-04-24 Tom Tromey <tom@tromey.com>
10028
10029 * dwarf2/read.c (partial_die_info::read) <case
10030 DW_AT_linkage_name>: Use value_as_string.
10031 (dwarf2_string_attr): Use value_as_string.
10032 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
10033 method.
10034 * dwarf2/attribute.c (attribute::value_as_string): New method.
10035
10036 2020-04-24 Tom Tromey <tom@tromey.com>
10037
10038 * symtab.c (general_symbol_info::natural_name)
10039 (general_symbol_info::demangled_name): Check for language_rust.
10040
10041 2020-04-24 Tom Tromey <tom@tromey.com>
10042
10043 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
10044 (dwarf2_physname): ... from here.
10045 (partial_die_info::read): Add Rust "{" hack.
10046
10047 2020-04-24 Tom Tromey <tom@tromey.com>
10048
10049 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
10050 method.
10051 (symbol_set_demangled_name): Don't declare.
10052 * symtab.c (general_symbol_info::set_demangled_name): Rename from
10053 symbol_set_demangled_name.
10054 (general_symbol_info::set_language)
10055 (general_symbol_info::compute_and_set_names): Update.
10056 * minsyms.c (minimal_symbol_reader::install): Update.
10057 * dwarf2/read.c (new_symbol): Update.
10058
10059 2020-04-24 Tom Tromey <tromey@adacore.com>
10060
10061 PR python/23662:
10062 * python/py-type.c (convert_field): Handle
10063 FIELD_LOC_KIND_DWARF_BLOCK.
10064 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
10065 (typy_get_dynamic): Nw function.
10066 (type_object_getset): Add "dynamic".
10067 * NEWS: Add entry.
10068
10069 2020-04-24 Tom Tromey <tromey@adacore.com>
10070
10071 * ada-typeprint.c (print_choices, print_variant_part)
10072 (print_record_field_types_dynamic): New functions.
10073 (print_record_field_types): Use print_record_field_types_dynamic.
10074
10075 2020-04-24 Tom Tromey <tromey@adacore.com>
10076
10077 * dwarf2/read.c (handle_data_member_location): New overload.
10078 (dwarf2_add_field): Use it.
10079 (decode_locdesc): Add "computed" parameter. Update comment.
10080 * gdbtypes.c (is_dynamic_type_internal): Also look for
10081 FIELD_LOC_KIND_DWARF_BLOCK.
10082 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
10083 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
10084 virtual base classes.
10085 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
10086 FIELD_LOC_KIND_DWARF_BLOCK.
10087
10088 2020-04-24 Tom Tromey <tromey@adacore.com>
10089
10090 * dwarf2/read.c (read_structure_type): Handle dynamic length.
10091 * gdbtypes.c (is_dynamic_type_internal): Check
10092 TYPE_HAS_DYNAMIC_LENGTH.
10093 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
10094 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
10095 New macros.
10096 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
10097 constant.
10098
10099 2020-04-24 Tom Tromey <tromey@adacore.com>
10100
10101 * dwarf2/read.c (struct variant_field): Rewrite.
10102 (struct variant_part_builder): New.
10103 (struct nextfield): Remove "variant" field. Add "offset".
10104 (struct field_info): Add "current_variant_part" and
10105 "variant_parts".
10106 (alloc_discriminant_info): Remove.
10107 (alloc_rust_variant): New function.
10108 (quirk_rust_enum): Update.
10109 (dwarf2_add_field): Set "offset" member. Don't handle
10110 DW_TAG_variant_part.
10111 (offset_map_type): New typedef.
10112 (convert_variant_range, create_one_variant)
10113 (create_one_variant_part, create_variant_parts)
10114 (add_variant_property): New functions.
10115 (dwarf2_attach_fields_to_type): Call add_variant_property.
10116 (read_structure_type): Don't handle DW_TAG_variant_part.
10117 (handle_variant_part, handle_variant): New functions.
10118 (handle_struct_member_die): Use them.
10119 (process_structure_scope): Don't handle variant parts.
10120 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
10121 (struct discriminant_info): Remove.
10122 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
10123 (struct main_type) <flag_discriminated_union>: Remove.
10124 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
10125 (rust_enum_variant): Return int. Remove "contents". Rewrite.
10126 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
10127 Update.
10128 * valops.c (value_union_variant): Remove.
10129 * value.h (value_union_variant): Don't declare.
10130
10131 2020-04-24 Tom Tromey <tromey@adacore.com>
10132
10133 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
10134 (ada_value_primitive_packed_val): Update.
10135 * ada-valprint.c (ada_value_print_1): Update.
10136 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
10137 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
10138 just an address. Use evaluate_for_locexpr_baton.
10139 (dwarf2_evaluate_property): Update.
10140 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
10141 array_view.
10142 * findvar.c (default_read_var_value): Update.
10143 * gdbtypes.c (compute_variant_fields_inner)
10144 (resolve_dynamic_type_internal): Update.
10145 (resolve_dynamic_type): Change type of valaddr parameter.
10146 * gdbtypes.h (resolve_dynamic_type): Update.
10147 * valarith.c (value_subscripted_rvalue): Update.
10148 * value.c (value_from_contents_and_address): Update.
10149
10150 2020-04-24 Tom Tromey <tromey@adacore.com>
10151
10152 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
10153 "push_initial_value" parameter.
10154 (dwarf2_evaluate_property): Likewise.
10155 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
10156
10157 2020-04-24 Tom Tromey <tromey@adacore.com>
10158
10159 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
10160 (variant::matches, compute_variant_fields_recurse)
10161 (compute_variant_fields_inner, compute_variant_fields): New
10162 functions.
10163 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
10164 Use resolved_type after type is made.
10165 (operator==): Add new cases.
10166 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
10167 (struct discriminant_range, struct variant, struct variant_part):
10168 New.
10169 (union dynamic_prop_data) <variant_parts, original_type>: New
10170 members.
10171 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
10172 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
10173 constants.
10174 * value.c (unpack_bits_as_long): Now public.
10175 * value.h (unpack_bits_as_long): Declare.
10176
10177 2020-04-24 Tom Tromey <tromey@adacore.com>
10178
10179 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
10180 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
10181
10182 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
10183
10184 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
10185
10186 2020-04-24 Kamil Rytarowski <n54@gmx.com>
10187
10188 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
10189 (remove_fork_catchpoint, post_startup_inferior)
10190 (post_attach): Move...
10191 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
10192 (remove_fork_catchpoint, post_startup_inferior)
10193 (post_attach): ...here.
10194 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
10195 (remove_fork_catchpoint, post_startup_inferior)
10196 (post_attach): Move...
10197 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
10198 (remove_fork_catchpoint, post_startup_inferior)
10199 (post_attach): ...here.
10200
10201 2020-04-24 Tom Tromey <tromey@adacore.com>
10202
10203 * nat/windows-nat.h (struct windows_thread_info)
10204 <pc_adjusted>: New member.
10205 * windows-nat.c (windows_fetch_one_register): Check
10206 pc_adjusted.
10207 (windows_nat_target::get_windows_debug_event)
10208 (windows_nat_target::wait): Set pc_adjusted.
10209
10210 2020-04-24 Tom de Vries <tdevries@suse.de>
10211
10212 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
10213 Run gdb-add-index inside temp dir.
10214
10215 2020-04-23 Tom Tromey <tromey@adacore.com>
10216
10217 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
10218 in loop.
10219
10220 2020-04-23 Luis Machado <luis.machado@linaro.org>
10221
10222 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10223 get_frame_register instead of gdbarch_unwind_pc.
10224
10225 2020-04-23 Tom de Vries <tdevries@suse.de>
10226
10227 * symtab.c (lookup_global_symbol): Prefer def over decl.
10228
10229 2020-04-23 Tom de Vries <tdevries@suse.de>
10230
10231 PR symtab/25807
10232 * block.c (best_symbol, better_symbol): Promote to external.
10233 * block.h (best_symbol, better_symbol): Declare.
10234 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
10235 decl.
10236
10237 2020-04-23 Tom Tromey <tromey@adacore.com>
10238
10239 PR ada/25837:
10240 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
10241 "const char *", not a "const std::string &".
10242 <name_and_matcher::operator==>: Update.
10243 * unittests/lookup_name_info-selftests.c: Change type of
10244 "result".
10245
10246 2020-04-23 Tom Tromey <tom@tromey.com>
10247
10248 * inferior.h (iterate_over_inferiors): Don't declare.
10249 * inferior.c (iterate_over_inferiors): Remove.
10250 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
10251 Remove.
10252 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
10253 use iterate_over_inferiors.
10254 (darwin_resume_inferior_it)
10255 (struct resume_inferior_threads_param)
10256 (darwin_resume_inferior_threads_it): Remove.
10257 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
10258
10259 2020-04-23 Tom de Vries <tdevries@suse.de>
10260
10261 * blockframe.c (find_pc_partial_function): Use
10262 find_pc_sect_compunit_symtab rather than
10263 objfile->sf->qf->find_pc_sect_compunit_symtab.
10264
10265 2020-04-22 Tom de Vries <tdevries@suse.de>
10266
10267 PR symtab/25764
10268 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
10269 in psymtabs.
10270
10271 2020-04-22 Tom de Vries <tdevries@suse.de>
10272
10273 PR symtab/25801
10274 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
10275 symtabs.
10276
10277 2020-04-22 Tom de Vries <tdevries@suse.de>
10278
10279 PR symtab/25700
10280 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
10281 CU if already created.
10282
10283 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10284
10285 * infrun.c (displaced_step_fixup): Switch to the event_thread
10286 before calling displaced_step_restore, not after.
10287
10288 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10289
10290 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
10291 its inferior is not recorded by us.
10292 (record_btrace_target_open): Replace call to
10293 all_non_exited_threads () with call to current_inferior
10294 ()->non_exited_threads ().
10295 (record_btrace_target::stop_recording): Likewise.
10296 (record_btrace_target::close): Likewise.
10297 (record_btrace_target::wait): Likewise.
10298 (record_btrace_target::record_stop_replaying): Likewise.
10299
10300 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10301
10302 * btrace.c (btrace_enable): Throw an error on double enables and
10303 when enabling recording fails.
10304 (btrace_disable): Throw an error if the thread is not recorded.
10305
10306 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10307
10308 * record-btrace.c (record_btrace_target::fetch_registers): Forward
10309 request if we do not have a thread_info.
10310
10311 2020-04-21 Tom de Vries <tdevries@suse.de>
10312
10313 PR gdb/25471
10314 * thread.c
10315 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
10316 exception in get_frame_id.
10317
10318 2020-04-20 Tom Tromey <tromey@adacore.com>
10319
10320 * python/python.c (struct gdbpy_event): Mark move constructor as
10321 noexcept.
10322 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
10323 constructor as noexcept.
10324 * completer.h (struct completion_result): Mark move constructor as
10325 noexcept.
10326 * completer.c (completion_result::completion_result): Use
10327 initialization style. Don't call reset_match_list.
10328
10329 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
10330
10331 * MAINTAINERS (Write After Approval): Add myself.
10332
10333 2020-04-18 Tom Tromey <tom@tromey.com>
10334
10335 * windows-tdep.c (init_w32_command_list)
10336 (w32_prefix_command_valid): Restore.
10337 (_initialize_windows_tdep): Call init_w32_command_list.
10338
10339 2020-04-18 Tom Tromey <tom@tromey.com>
10340
10341 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
10342 * value.c (value_fn_field): Update.
10343 * valops.c (find_function_in_inferior)
10344 (value_allocate_space_in_inferior): Update.
10345 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10346 Update.
10347 * tui/tui-source.c (tui_source_window::set_contents): Update.
10348 * symtab.c (lookup_global_or_static_symbol)
10349 (find_function_start_sal_1, skip_prologue_sal)
10350 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
10351 * symmisc.c (dump_msymbols, dump_symtab_1)
10352 (maintenance_print_one_line_table): Update.
10353 * symfile.c (init_entry_point_info, section_is_mapped)
10354 (list_overlays_command, simple_read_overlay_table)
10355 (simple_overlay_update_1): Update.
10356 * stap-probe.c (handle_stap_probe): Update.
10357 * stabsread.c (dbx_init_float_type, define_symbol)
10358 (read_one_struct_field, read_enum_type, read_range_type): Update.
10359 * source.c (info_line_command): Update.
10360 * python/python.c (gdbpy_source_objfile_script)
10361 (gdbpy_execute_objfile_script): Update.
10362 * python/py-type.c (save_objfile_types): Update.
10363 * python/py-objfile.c (py_free_objfile): Update.
10364 * python/py-inferior.c (python_new_objfile): Update.
10365 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
10366 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
10367 (maintenance_check_psymtabs): Update.
10368 * printcmd.c (info_address_command): Update.
10369 * objfiles.h (struct objfile) <arch>: New method, from
10370 get_objfile_arch.
10371 (get_objfile_arch): Don't declare.
10372 * objfiles.c (get_objfile_arch): Remove.
10373 (filter_overlapping_sections): Update.
10374 * minsyms.c (msymbol_is_function): Update.
10375 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
10376 (output_nondebug_symbol): Update.
10377 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
10378 (mdebug_expand_psymtab): Update.
10379 * machoread.c (macho_add_oso_symfile): Update.
10380 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
10381 Update.
10382 * linux-fork.c (checkpoint_command): Update.
10383 * linespec.c (convert_linespec_to_sals): Update.
10384 * jit.c (finalize_symtab): Update.
10385 * infrun.c (insert_exception_resume_from_probe): Update.
10386 * ia64-tdep.c (ia64_find_unwind_table): Update.
10387 * hppa-tdep.c (internalize_unwinds): Update.
10388 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
10389 Update.
10390 * gcore.c (call_target_sbrk): Update.
10391 * elfread.c (record_minimal_symbol, elf_symtab_read)
10392 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
10393 (elf_gnu_ifunc_resolve_by_got): Update.
10394 * dwarf2/read.c (create_addrmap_from_index)
10395 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10396 (read_debug_names_from_section)
10397 (process_psymtab_comp_unit_reader, add_partial_symbol)
10398 (add_partial_subprogram, process_full_comp_unit)
10399 (read_file_scope, read_func_scope, read_lexical_block_scope)
10400 (read_call_site_scope, dwarf2_ranges_read)
10401 (dwarf2_record_block_ranges, dwarf2_add_field)
10402 (mark_common_block_symbol_computed, read_tag_pointer_type)
10403 (read_tag_string_type, dwarf2_init_float_type)
10404 (dwarf2_init_complex_target_type, read_base_type)
10405 (partial_die_info::read, partial_die_info::read)
10406 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
10407 (dwarf2_fetch_die_loc_sect_off): Update.
10408 * dwarf2/loc.c (dwarf2_find_location_expression)
10409 (class dwarf_evaluate_loc_desc, rw_pieced_value)
10410 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
10411 (dwarf2_loc_desc_get_symbol_read_needs)
10412 (locexpr_describe_location_piece, locexpr_describe_location_1)
10413 (loclist_describe_location): Update.
10414 * dwarf2/index-write.c (write_debug_names): Update.
10415 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
10416 * dtrace-probe.c (dtrace_process_dof): Update.
10417 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
10418 (process_one_symbol): Update.
10419 * ctfread.c (ctf_init_float_type, read_base_type): Update.
10420 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
10421 (coff_read_enum_type): Update.
10422 * cli/cli-cmds.c (edit_command, list_command): Update.
10423 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
10424 * breakpoint.c (create_overlay_event_breakpoint)
10425 (create_longjmp_master_breakpoint)
10426 (create_std_terminate_master_breakpoint)
10427 (create_exception_master_breakpoint, get_sal_arch): Update.
10428 * block.c (block_gdbarch): Update.
10429 * annotate.c (annotate_source_line): Update.
10430
10431 2020-04-17 Tom Tromey <tromey@adacore.com>
10432
10433 * auto-load.c (show_auto_load_cmd): Remove.
10434 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
10435 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
10436 (maintenance_print_arc_command): Remove.
10437 * tui/tui-win.c (tui_command): Remove.
10438 (tui_get_cmd_list): Use add_basic_prefix_cmd.
10439 * tui/tui-layout.c (tui_layout_command): Remove.
10440 (_initialize_tui_layout): Use add_basic_prefix_cmd.
10441 * python/python.c (user_set_python, user_show_python): Remove.
10442 (_initialize_python): Use add_basic_prefix_cmd,
10443 add_show_prefix_cmd.
10444 * guile/guile.c (set_guile_command, show_guile_command): Remove.
10445 (install_gdb_commands): Use add_basic_prefix_cmd,
10446 add_show_prefix_cmd.
10447 (info_guile_command): Remove.
10448 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
10449 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
10450 add_show_prefix_cmd.
10451 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
10452 Remove do_set and do_show parameters.
10453 * cli/cli-style.c (set_style, show_style): Remove.
10454 (_initialize_cli_style): Use add_basic_prefix_cmd,
10455 add_show_prefix_cmd.
10456 (cli_style_option::add_setshow_commands): Remove do_set and
10457 do_show parameters.
10458 (cli_style_option::add_setshow_commands): Use
10459 add_basic_prefix_cmd, add_show_prefix_cmd.
10460 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
10461 (set_style_name): Remove.
10462 * cli/cli-dump.c (dump_command, append_command): Remove.
10463 (srec_dump_command, ihex_dump_command, verilog_dump_command)
10464 (tekhex_dump_command, binary_dump_command)
10465 (binary_append_command): Remove.
10466 (_initialize_cli_dump): Use add_basic_prefix_cmd.
10467 * windows-tdep.c (w32_prefix_command_valid): Remove global.
10468 (init_w32_command_list): Remove; move into ...
10469 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
10470 * valprint.c (set_print, show_print, set_print_raw)
10471 (show_print_raw): Remove.
10472 (_initialize_valprint): Use add_basic_prefix_cmd,
10473 add_show_prefix_cmd.
10474 * typeprint.c (set_print_type, show_print_type): Remove.
10475 (_initialize_typeprint): Use add_basic_prefix_cmd,
10476 add_show_prefix_cmd.
10477 * record.c (set_record_command, show_record_command): Remove.
10478 (_initialize_record): Use add_basic_prefix_cmd,
10479 add_show_prefix_cmd.
10480 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
10481 add_show_prefix_cmd.
10482 (info_command, show_command, set_debug, show_debug): Remove.
10483 * top.h (set_history, show_history): Don't declare.
10484 * top.c (set_history, show_history): Remove.
10485 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
10486 (unset_tdesc_cmd): Remove.
10487 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
10488 add_show_prefix_cmd.
10489 * symtab.c (info_module_command): Remove.
10490 (_initialize_symtab): Use add_basic_prefix_cmd.
10491 * symfile.c (overlay_command): Remove.
10492 (_initialize_symfile): Use add_basic_prefix_cmd.
10493 * sparc64-tdep.c (info_adi_command): Remove.
10494 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
10495 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
10496 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
10497 add_show_prefix_cmd.
10498 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
10499 (_initialize_serial): Use add_basic_prefix_cmd,
10500 add_show_prefix_cmd.
10501 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
10502 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
10503 add_show_prefix_cmd.
10504 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
10505 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
10506 add_show_prefix_cmd.
10507 * riscv-tdep.c (show_riscv_command, set_riscv_command)
10508 (show_debug_riscv_command, set_debug_riscv_command): Remove.
10509 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
10510 add_show_prefix_cmd.
10511 * remote.c (remote_command, set_remote_cmd): Remove.
10512 (_initialize_remote): Use add_basic_prefix_cmd.
10513 * record-full.c (set_record_full_command)
10514 (show_record_full_command): Remove.
10515 (_initialize_record_full): Use add_basic_prefix_cmd,
10516 add_show_prefix_cmd.
10517 * record-btrace.c (cmd_set_record_btrace)
10518 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
10519 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
10520 (cmd_show_record_btrace_pt): Remove.
10521 (_initialize_record_btrace): Use add_basic_prefix_cmd,
10522 add_show_prefix_cmd.
10523 * ravenscar-thread.c (set_ravenscar_command)
10524 (show_ravenscar_command): Remove.
10525 (_initialize_ravenscar): Use add_basic_prefix_cmd,
10526 add_show_prefix_cmd.
10527 * mips-tdep.c (show_mips_command, set_mips_command)
10528 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
10529 add_show_prefix_cmd.
10530 * maint.c (maintenance_command, maintenance_info_command)
10531 (maintenance_check_command, maintenance_print_command)
10532 (maintenance_set_cmd, maintenance_show_cmd): Remove.
10533 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
10534 add_show_prefix_cmd.
10535 (show_per_command_cmd): Remove.
10536 * maint-test-settings.c (maintenance_set_test_settings_cmd):
10537 Remove.
10538 (maintenance_show_test_settings_cmd): Remove.
10539 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
10540 add_show_prefix_cmd.
10541 * maint-test-options.c (maintenance_test_options_command):
10542 Remove.
10543 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
10544 * macrocmd.c (macro_command): Remove
10545 (_initialize_macrocmd): Use add_basic_prefix_cmd.
10546 * language.c (set_check, show_check): Remove.
10547 (_initialize_language): Use add_basic_prefix_cmd,
10548 add_show_prefix_cmd.
10549 * infcmd.c (unset_command): Remove.
10550 (_initialize_infcmd): Use add_basic_prefix_cmd.
10551 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
10552 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
10553 add_show_prefix_cmd.
10554 * go32-nat.c (go32_info_dos_command): Remove.
10555 (_initialize_go32_nat): Use add_basic_prefix_cmd.
10556 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
10557 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
10558 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
10559 (_initialize_frame): Use add_basic_prefix_cmd,
10560 add_show_prefix_cmd.
10561 * dcache.c (set_dcache_command, show_dcache_command): Remove.
10562 (_initialize_dcache): Use add_basic_prefix_cmd,
10563 add_show_prefix_cmd.
10564 * cp-support.c (maint_cplus_command): Remove.
10565 (_initialize_cp_support): Use add_basic_prefix_cmd.
10566 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
10567 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
10568 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
10569 add_basic_prefix_cmd, add_show_prefix_cmd.
10570 * breakpoint.c (save_command): Remove.
10571 (_initialize_breakpoint): Use add_basic_prefix_cmd.
10572 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
10573 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
10574 add_show_prefix_cmd.
10575 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
10576 (set_ada_command, show_ada_command): Remove.
10577 (_initialize_ada_language): Use add_basic_prefix_cmd,
10578 add_show_prefix_cmd.
10579 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
10580
10581 2020-04-16 Kamil Rytarowski <n54@gmx.com>
10582
10583 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
10584 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
10585
10586 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
10587
10588 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
10589 warning messages.
10590
10591 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
10592
10593 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
10594 import table is not at beginning of .idata section.
10595
10596 2020-04-16 Pedro Alves <palves@redhat.com>
10597
10598 * inferior.c (delete_inferior): Use delete operator directly
10599 instead of delete_program_space.
10600 * progspace.c (add_program_space): New, factored out from
10601 program_space::program_space.
10602 (remove_program_space): New, factored out from
10603 delete_program_space.
10604 (program_space::program_space): Remove intro comment. Rewrite.
10605 (program_space::~program_space): Remove intro comment. Call
10606 remove_program_space.
10607 (delete_program_space): Delete.
10608 * progspace.h (program_space::program_space): Make explicit. Move
10609 intro comment here, adjusted.
10610 (program_space::~program_space): Move intro comment here,
10611 adjusted.
10612 (delete_program_space): Remove.
10613
10614 2020-04-16 Tom Tromey <tromey@adacore.com>
10615
10616 * windows-nat.c (windows_nat::handle_access_violation): New
10617 function.
10618 * nat/windows-nat.h (handle_access_violation): Declare.
10619 * nat/windows-nat.c (handle_exception): Move Cygwin code to
10620 windows-nat.c. Call handle_access_violation.
10621
10622 2020-04-16 Tom de Vries <tdevries@suse.de>
10623
10624 PR symtab/25791
10625 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
10626 CUs without psymtab.
10627
10628 2020-04-16 Kevin Buettner <kevinb@redhat.com>
10629
10630 * python/python.c (do_start_initialization): Don't call
10631 PyEval_InitThreads for Python 3.9 and beyond.
10632
10633 2020-04-15 Kamil Rytarowski <n54@gmx.com>
10634
10635 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
10636 thread functions.
10637 (obsd_nat_target::wait): Likewise.
10638
10639 2020-04-15 Tom Tromey <tromey@adacore.com>
10640
10641 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
10642 (DEBUG_EXCEPT): Use debug_printf.
10643
10644 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
10645
10646 * completer.c (class completion_tracker::completion_hash_entry)
10647 <hash_name>: New member function.
10648 (completion_tracker::discard_completions): New callback to hash a
10649 completion_hash_entry, pass this to htab_create_alloc.
10650
10651 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
10652
10653 * windows-nat.c (windows_make_so): Warn rather than stopping with
10654 an error if realpath() fails.
10655
10656 2020-04-14 Kamil Rytarowski <n54@gmx.com>
10657
10658 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
10659 (nbsd_nat_target::info_proc): Add do_status.
10660
10661 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
10662 Tom de Vries <tdevries@suse.de>
10663
10664 PR symtab/25718
10665 * psympriv.h (struct partial_symtab::read_symtab)
10666 (struct partial_symtab::expand_psymtab)
10667 (struct partial_symtab::read_dependencies): Update comments.
10668 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
10669 read_symtab for includer.
10670 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
10671 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
10672 (struct dwarf2_include_psymtab::m_readin): Remove.
10673 (struct dwarf2_include_psymtab::includer): New member function.
10674 (dwarf2_psymtab::expand_psymtab): Assert !readin.
10675
10676 2020-04-14 Tom de Vries <tdevries@suse.de>
10677
10678 PR symtab/25720
10679 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
10680 with NULL symbol_matcher and lookup_name.
10681 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
10682 and lookup_name.
10683 * dwarf2/read.c (dw2_expand_symtabs_matching)
10684 (dw2_debug_names_expand_symtabs_matching): Same.
10685 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
10686 Make lookup_name a pointer. Update comment.
10687 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
10688 lookup_name being a pointer.
10689 * symfile.c (expand_symtabs_matching): Same.
10690 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
10691 * linespec.c (iterate_over_all_matching_symtabs): Same.
10692
10693 2020-04-13 Tom Tromey <tom@tromey.com>
10694
10695 * run-on-main-thread.c: Update include.
10696 * unittests/main-thread-selftests.c: Update include.
10697 * tui/tui-win.c: Update include.
10698 * tui/tui-io.c: Update include.
10699 * tui/tui-interp.c: Update include.
10700 * tui/tui-hooks.c: Update include.
10701 * top.h: Update include.
10702 * top.c: Update include.
10703 * ser-base.c: Update include.
10704 * remote.c: Update include.
10705 * remote-notif.c: Update include.
10706 * remote-fileio.c: Update include.
10707 * record-full.c: Update include.
10708 * record-btrace.c: Update include.
10709 * python/python.c: Update include.
10710 * posix-hdep.c: Update include.
10711 * mingw-hdep.c: Update include.
10712 * mi/mi-main.c: Update include.
10713 * mi/mi-interp.c: Update include.
10714 * main.c: Update include.
10715 * linux-nat.c: Update include.
10716 * interps.c: Update include.
10717 * infrun.c: Update include.
10718 * inf-loop.c: Update include.
10719 * event-top.c: Update include.
10720 * event-loop.c: Move to ../gdbsupport/.
10721 * event-loop.h: Move to ../gdbsupport/.
10722 * async-event.h: Update include.
10723 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
10724
10725 2020-04-13 Tom Tromey <tom@tromey.com>
10726
10727 * tui/tui-win.c: Include async-event.h.
10728 * remote.c: Include async-event.h.
10729 * remote-notif.c: Include async-event.h.
10730 * record-full.c: Include async-event.h.
10731 * record-btrace.c: Include async-event.h.
10732 * infrun.c: Include async-event.h.
10733 * event-top.c: Include async-event.h.
10734 * event-loop.h: Move some declarations to async-event.h.
10735 * event-loop.c: Don't include ser-event.h or top.h. Move some
10736 code to async-event.c.
10737 * async-event.h: New file.
10738 * async-event.c: New file.
10739 * Makefile.in (COMMON_SFILES): Add async-event.c.
10740 (HFILES_NO_SRCDIR): Add async-event.h.
10741
10742 2020-04-13 Tom Tromey <tom@tromey.com>
10743
10744 * utils.c (flush_streams): New function.
10745 * event-loop.c (gdb_wait_for_event): Call flush_streams.
10746
10747 2020-04-13 Tom Tromey <tom@tromey.com>
10748
10749 * event-loop.c (handle_file_event): Use warning, not
10750 printf_unfiltered.
10751
10752 2020-04-13 Tom Tromey <tom@tromey.com>
10753
10754 * event-loop.c: Include <chrono>.
10755
10756 2020-04-13 Tom Tromey <tom@tromey.com>
10757
10758 * gdb_select.h: Move to ../gdbsupport/.
10759 * event-loop.c: Update include path.
10760 * top.c: Update include path.
10761 * ser-base.c: Update include path.
10762 * ui-file.c: Update include path.
10763 * ser-tcp.c: Update include path.
10764 * guile/scm-ports.c: Update include path.
10765 * posix-hdep.c: Update include path.
10766 * ser-unix.c: Update include path.
10767 * gdb_usleep.c: Update include path.
10768 * mingw-hdep.c: Update include path.
10769 * inflow.c: Update include path.
10770 * infrun.c: Update include path.
10771 * event-top.c: Update include path.
10772
10773 2020-04-13 Tom Tromey <tom@tromey.com>
10774
10775 * configure: Rebuild.
10776 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
10777
10778 2020-04-13 Tom Tromey <tom@tromey.com>
10779
10780 * event-loop.h (start_event_loop): Don't declare.
10781 * event-loop.c (start_event_loop): Move...
10782 * main.c (start_event_loop): ...here. Now static.
10783
10784 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
10785
10786 * MAINTAINERS: Update my email address.
10787
10788 2020-04-12 Kamil Rytarowski <n54@gmx.com>
10789
10790 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
10791 IP_ALL.
10792
10793 2020-04-12 Kamil Rytarowski <n54@gmx.com>
10794
10795 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
10796 (nbsd_nat_target::info_proc): Add do_cmdline.
10797
10798 2020-04-12 Kamil Rytarowski <n54@gmx.com>
10799
10800 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
10801 (nbsd_nat_target::info_proc): Add do_cwd.
10802
10803 2020-04-12 Kamil Rytarowski <n54@gmx.com>
10804
10805 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
10806
10807 2020-04-11 Kamil Rytarowski <n54@gmx.com>
10808
10809 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
10810 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
10811 (nbsd_nat_target::info_proc): New functions.
10812 * nbsd-nat.c (kinfo_get_vmmap): New function.
10813 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
10814 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
10815 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
10816 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
10817 functions.
10818 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
10819 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
10820 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
10821 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
10822 (KINFO_VME_FLAG_GROWS_DOWN): New.
10823
10824 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
10825
10826 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
10827 bit shift.
10828
10829 2020-04-10 Tom Tromey <tromey@adacore.com>
10830
10831 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
10832
10833 2020-04-10 Tom Tromey <tromey@adacore.com>
10834
10835 * symtab.c (get_symbol_address, get_msymbol_address): Skip
10836 separate debug files.
10837
10838 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
10839
10840 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
10841 Move to...
10842 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
10843 ... here.
10844 * windows-nat.c (windows_nat_target::get_windows_debug_event):
10845 Check for STATUS_WX86_BREAKPOINT.
10846 (windows_nat_target::wait): Same.
10847
10848 2020-04-10 Tom de Vries <tdevries@suse.de>
10849
10850 PR cli/25808
10851 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
10852
10853 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10854
10855 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
10856 (Write After Approval): Remove Tom de Vries.
10857
10858 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
10859
10860 revert partially:
10861 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10862
10863 * buildsym.c (record_line): Fix undefined behavior and preserve
10864 lines at eof.
10865
10866 2020-04-09 Kamil Rytarowski <n54@gmx.com>
10867
10868 * auxv.h (svr4_auxv_parse): New.
10869 * auxv.c (default_auxv_parse): Split into default_auxv_parse
10870 and generic_auxv_parse.
10871 (svr4_auxv_parse): Add.
10872 * obsd-tdep.c: Include "auxv.h".
10873 (obsd_auxv_parse): Remove.
10874 (obsd_init_abi): Remove comment.
10875 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
10876 from `obsd_auxv_parse' to `svr4_auxv_parse'.
10877 * nbsd-tdep.c: Include "auxv.h".
10878 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
10879
10880 2020-04-08 Tom Tromey <tromey@adacore.com>
10881
10882 * nat/windows-nat.h (last_wait_event): Don't declare.
10883 (wait_for_debug_event): Update comment.
10884 * nat/windows-nat.c (last_wait_event): Now static.
10885
10886 2020-04-08 Tom Tromey <tromey@adacore.com>
10887
10888 * windows-nat.c (wait_for_debug_event): Move to
10889 nat/windows-nat.c.
10890 * nat/windows-nat.h (wait_for_debug_event): Declare.
10891 * nat/windows-nat.c (wait_for_debug_event): Move from
10892 windows-nat.c. No longer static.
10893
10894 2020-04-08 Tom Tromey <tromey@adacore.com>
10895
10896 * windows-nat.c (get_windows_debug_event): Use
10897 fetch_pending_stop.
10898 * nat/windows-nat.h (fetch_pending_stop): Declare.
10899 * nat/windows-nat.c (fetch_pending_stop): New function.
10900
10901 2020-04-08 Tom Tromey <tromey@adacore.com>
10902
10903 * windows-nat.c (windows_continue): Use matching_pending_stop and
10904 continue_last_debug_event.
10905 * nat/windows-nat.h (matching_pending_stop)
10906 (continue_last_debug_event): Declare.
10907 * nat/windows-nat.c (DEBUG_EVENTS): New define.
10908 (matching_pending_stop, continue_last_debug_event): New
10909 functions.
10910
10911 2020-04-08 Tom Tromey <tromey@adacore.com>
10912
10913 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
10914 (handle_exception_result): Move to nat/windows-nat.h.
10915 (DEBUG_EXCEPTION_SIMPLE): Remove.
10916 (windows_nat::handle_ms_vc_exception): New function.
10917 (handle_exception): Move to nat/windows-nat.c.
10918 (get_windows_debug_event): Update.
10919 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
10920 nat/windows-nat.c.
10921 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
10922 (handle_exception_result): Move from windows-nat.c.
10923 (handle_exception): Declare.
10924 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
10925 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
10926 windows-nat.c.
10927
10928 2020-04-08 Tom Tromey <tromey@adacore.com>
10929
10930 * windows-nat.c (exception_count, event_count): Remove.
10931 (handle_exception, get_windows_debug_event)
10932 (do_initial_windows_stuff): Update.
10933
10934 2020-04-08 Tom Tromey <tromey@adacore.com>
10935
10936 * windows-nat.c (windows_nat::handle_load_dll)
10937 (windows_nat::handle_unload_dll): Rename. No longer static.
10938 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
10939 Declare.
10940
10941 2020-04-08 Tom Tromey <tromey@adacore.com>
10942
10943 * complaints.h (stop_whining): Declare at top-level.
10944 (complaint): Don't declare stop_whining.
10945
10946 2020-04-08 Tom Tromey <tromey@adacore.com>
10947
10948 * windows-nat.c (windows_nat::handle_output_debug_string):
10949 Rename. No longer static.
10950 * nat/windows-nat.h (handle_output_debug_string): Declare.
10951
10952 2020-04-08 Tom Tromey <tromey@adacore.com>
10953
10954 * windows-nat.c (current_process_handle, current_process_id)
10955 (main_thread_id, last_sig, current_event, last_wait_event)
10956 (current_windows_thread, desired_stop_thread_id, pending_stops)
10957 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
10958 (display_selectors, fake_create_process)
10959 (get_windows_debug_event): Update.
10960 * nat/windows-nat.h (current_process_handle, current_process_id)
10961 (main_thread_id, last_sig, current_event, last_wait_event)
10962 (current_windows_thread, desired_stop_thread_id, pending_stops)
10963 (struct pending_stop, siginfo_er): Move from windows-nat.c.
10964 * nat/windows-nat.c (current_process_handle, current_process_id)
10965 (main_thread_id, last_sig, current_event, last_wait_event)
10966 (current_windows_thread, desired_stop_thread_id, pending_stops)
10967 (siginfo_er): New globals. Move from windows-nat.c.
10968
10969 2020-04-08 Tom Tromey <tromey@adacore.com>
10970
10971 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
10972 (handle_load_dll): Update.
10973 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
10974
10975 2020-04-08 Tom Tromey <tromey@adacore.com>
10976
10977 * windows-nat.c (enum thread_disposition_type): Move to
10978 nat/windows-nat.h.
10979 (windows_nat::thread_rec): Rename from thread_rec. No longer
10980 static.
10981 (windows_add_thread, windows_nat_target::fetch_registers)
10982 (windows_nat_target::store_registers, handle_exception)
10983 (windows_nat_target::resume, get_windows_debug_event)
10984 (windows_nat_target::get_tib_address)
10985 (windows_nat_target::thread_name)
10986 (windows_nat_target::thread_alive): Update.
10987 * nat/windows-nat.h (enum thread_disposition_type): Move from
10988 windows-nat.c.
10989 (thread_rec): Declare.
10990
10991 2020-04-08 Tom Tromey <tromey@adacore.com>
10992
10993 * windows-nat.c: Add "using namespace".
10994 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
10995 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
10996
10997 2020-04-08 Tom Tromey <tromey@adacore.com>
10998
10999 * nat/windows-nat.h (struct windows_thread_info): Declare
11000 destructor.
11001 * nat/windows-nat.c (~windows_thread_info): New.
11002
11003 2020-04-08 Tom Tromey <tromey@adacore.com>
11004
11005 PR gdb/22992
11006 * windows-nat.c (current_event): Update comment.
11007 (last_wait_event, desired_stop_thread_id): New globals.
11008 (struct pending_stop): New.
11009 (pending_stops): New global.
11010 (windows_nat_target) <stopped_by_sw_breakpoint>
11011 <supports_stopped_by_sw_breakpoint>: New methods.
11012 (windows_fetch_one_register): Add assertions. Adjust PC.
11013 (windows_continue): Handle pending stops. Suspend other threads
11014 when stepping. Use last_wait_event
11015 (wait_for_debug_event): New function.
11016 (get_windows_debug_event): Use wait_for_debug_event. Handle
11017 pending stops. Queue spurious stops.
11018 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
11019 (windows_nat_target::kill): Use wait_for_debug_event.
11020 * nat/windows-nat.h (struct windows_thread_info)
11021 <stopped_at_software_breakpoint>: New field.
11022 * nat/windows-nat.c (windows_thread_info::resume): Clear
11023 stopped_at_software_breakpoint.
11024
11025 2020-04-08 Tom Tromey <tromey@adacore.com>
11026
11027 * windows-nat.c (enum thread_disposition_type): New.
11028 (thread_rec): Replace "get_context" parameter with "disposition";
11029 change type.
11030 (windows_add_thread, windows_nat_target::fetch_registers)
11031 (windows_nat_target::store_registers, handle_exception)
11032 (windows_nat_target::resume, get_windows_debug_event)
11033 (windows_nat_target::get_tib_address)
11034 (windows_nat_target::thread_name)
11035 (windows_nat_target::thread_alive): Update.
11036
11037 2020-04-08 Tom Tromey <tromey@adacore.com>
11038
11039 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
11040 (windows_continue): Use windows_continue::resume.
11041 * nat/windows-nat.h (struct windows_thread_info) <suspend,
11042 resume>: Declare new methods.
11043 * nat/windows-nat.c: New file.
11044 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
11045
11046 2020-04-08 Tom Tromey <tromey@adacore.com>
11047
11048 * windows-nat.c (windows_add_thread, windows_delete_thread)
11049 (windows_nat_target::fetch_registers)
11050 (windows_nat_target::store_registers, fake_create_process)
11051 (windows_nat_target::resume, windows_nat_target::resume)
11052 (get_windows_debug_event, windows_nat_target::wait)
11053 (windows_nat_target::pid_to_str)
11054 (windows_nat_target::get_tib_address)
11055 (windows_nat_target::get_ada_task_ptid)
11056 (windows_nat_target::thread_name)
11057 (windows_nat_target::thread_alive): Use lwp, not tid.
11058
11059 2020-04-08 Tom Tromey <tromey@adacore.com>
11060
11061 * windows-nat.c (handle_exception)
11062 (windows_nat_target::thread_name): Update.
11063 * nat/windows-nat.h (windows_thread_info): Remove destructor.
11064 <name>: Now unique_xmalloc_ptr.
11065
11066 2020-04-08 Tom Tromey <tromey@adacore.com>
11067
11068 * windows-nat.c (thread_rec)
11069 (windows_nat_target::fetch_registers): Update.
11070 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
11071 Update comment.
11072 <debug_registers_changed, reload_context>: Now bool.
11073
11074 2020-04-08 Tom Tromey <tromey@adacore.com>
11075
11076 * windows-nat.c (windows_add_thread): Use new.
11077 (windows_init_thread_list, windows_delete_thread): Use delete.
11078 (get_windows_debug_event): Update.
11079 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
11080 destructor, and initializers.
11081
11082 2020-04-08 Tom Tromey <tromey@adacore.com>
11083
11084 * windows-nat.c (struct windows_thread_info): Remove.
11085 * nat/windows-nat.h: New file.
11086
11087 2020-04-08 Tom Tromey <tromey@adacore.com>
11088
11089 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
11090 (thread_rec, windows_add_thread, windows_delete_thread)
11091 (windows_continue): Update.
11092
11093 2020-04-08 Tom Tromey <tromey@adacore.com>
11094
11095 * windows-nat.c (struct windows_thread_info): Remove typedef.
11096 (thread_head): Remove.
11097 (thread_list): New global.
11098 (thread_rec, windows_add_thread, windows_init_thread_list)
11099 (windows_delete_thread, windows_continue): Update.
11100
11101 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11102
11103 * windows-tdep.h (windows_init_abi): Add comment.
11104 (cygwin_init_abi): New declaration.
11105 * windows-tdep.c: Split signal enumeration in two, one for
11106 Windows and one for Cygwin.
11107 (windows_gdb_signal_to_target): Only deal with signal of the
11108 Windows OS ABI.
11109 (cygwin_gdb_signal_to_target): New function.
11110 (windows_init_abi): Rename to windows_init_abi_common, don't set
11111 gdb_signal_to_target gdbarch method. Add new new function with
11112 this name.
11113 (cygwin_init_abi): New function.
11114 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
11115 comment. Don't call windows_init_abi.
11116 (amd64_windows_init_abi): Add comment, call windows_init_abi.
11117 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
11118 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
11119 i386_windows_init_abi_common, don't call windows_init_abi. Add
11120 a new function of this name.
11121 (i386_cygwin_init_abi): New function.
11122 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
11123 OS ABI Cygwin.
11124
11125 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11126
11127 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
11128 parameter.c.
11129 (dwarf2_read_gdb_index): Update.
11130
11131 2020-04-07 Kamil Rytarowski <n54@gmx.com>
11132
11133 * nbsd-tdep.c: Include "objfiles.h".
11134 (nbsd_skip_solib_resolver): New.
11135 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
11136
11137 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11138
11139 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
11140 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
11141 with DW_LLE_base_addressx are being emitted in DWARFv5.
11142 Add the newly added kind DW_LOC_OFFSET_PAIR also.
11143 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
11144 unsigned integer.
11145
11146 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11147
11148 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
11149 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
11150 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
11151 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
11152 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
11153 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
11154 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
11155
11156
11157 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11158
11159 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
11160 (read_loclist_index): New function definition.
11161 (lookup_loclist_base): New function definition.
11162 (read_loclist_header): New function definition.
11163 (dwarf2_cu): Add loclist_base and loclist_header field.
11164 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
11165 (read_full_die_1): Read the value of DW_AT_loclists_base.
11166 (read_attribute_reprocess): Handle DW_FORM_loclistx.
11167 (read_attribute_value): Handle DW_FORM_loclistx.
11168 (skip_one_die): Handle DW_FORM_loclistx.
11169 (loclist_header): New structure declaration.
11170 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
11171
11172 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11173
11174 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
11175 constructor. Remove `addr` parameter from other constructor and
11176 add `per_cu` parameter.
11177 * dwarf2/read.c (create_partial_symtab): Update.
11178
11179 2020-04-07 Tom de Vries <tdevries@suse.de>
11180
11181 PR symtab/25796
11182 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
11183 (partial_die_info::fixup): Inherit has_const_value.
11184
11185 2020-04-07 Tom de Vries <tdevries@suse.de>
11186
11187 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
11188 symbols without address.
11189
11190 2020-04-06 Kamil Rytarowski <n54@gmx.com>
11191
11192 * nbsd-nat.h (struct thread_info): Add forward declaration.
11193 (nbsd_nat_target::thread_alive): Add.
11194 (nbsd_nat_target::thread_name): Likewise.
11195 (nbsd_nat_target::update_thread_list): Likewise.
11196 (update_thread_list::post_attach): Likewise.
11197 (post_attach::pid_to_str): Likewise.
11198 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
11199 (nbsd_thread_lister): Add.
11200 (nbsd_nat_target::thread_alive): Likewise.
11201 (nbsd_nat_target::thread_name): Likewise.
11202 (nbsd_add_threads): Likewise.
11203 (update_thread_list::post_attach): Likewise.
11204 (nbsd_nat_target::update_thread_list): Likewise.
11205 (post_attach::pid_to_str): Likewise.
11206
11207 2020-04-06 Tom Tromey <tromey@adacore.com>
11208
11209 * ada-valprint.c (print_variant_part): Extract the variant field.
11210 (print_field_values): Use the field as the outer value when
11211 recursing.
11212
11213 2020-04-06 Tom Tromey <tromey@adacore.com>
11214
11215 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
11216 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
11217 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
11218 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
11219 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
11220
11221 2020-04-06 Tom Tromey <tromey@adacore.com>
11222
11223 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
11224 TYPE_CODE_ERROR.
11225
11226 2020-04-06 Kamil Rytarowski <n54@gmx.com>
11227
11228 * nbsd-tdep.c: Include "gdbarch.h".
11229 Define enum with NetBSD signal numbers.
11230 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
11231 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
11232 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
11233 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
11234 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
11235 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
11236 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
11237 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11238 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
11239 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
11240 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
11241 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
11242
11243 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
11244
11245 PR gdb/25325
11246 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
11247
11248 2020-04-03 Tom Tromey <tromey@adacore.com>
11249
11250 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
11251 Read constant block.
11252
11253 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11254
11255 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
11256 (gdb_bfd_get_full_section_contents): New declaration.
11257 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
11258 * windows-tdep.c (is_linked_with_cygwin_dll): Use
11259 gdb_bfd_get_full_section_contents.
11260
11261 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11262
11263 * exec.c (build_section_table): Replace internal_error with
11264 gdb_assert.
11265 (section_table_xfer_memory_partial): Likewise.
11266 * mdebugread.c (parse_partial_symbols): Likewise.
11267 * psymtab.c (lookup_partial_symbol): Likewise.
11268 * utils.c (wrap_here): Likewise.
11269
11270 2020-04-02 Tom Tromey <tromey@adacore.com>
11271
11272 * f-lang.c (build_fortran_types): Use arch_type to initialize
11273 builtin_complex_s32 in the TYPE_CODE_ERROR case.
11274
11275 2020-04-02 Tom Tromey <tromey@adacore.com>
11276
11277 * dwarf2/read.c (partial_die_info::read): Do not create a vector
11278 of attributes.
11279
11280 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
11281 Bernd Edlinger <bernd.edlinger@hotmail.de>
11282 Tom Tromey <tromey@adacore.com>
11283
11284 * buildsym.c (buildsym_compunit::record_line): Remove
11285 deduplication code.
11286
11287 2020-04-02 Tom de Vries <tdevries@suse.de>
11288
11289 PR ada/24671
11290 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
11291
11292 2020-04-02 Tom de Vries <tdevries@suse.de>
11293
11294 * dwarf2/read.c (dwarf2_gdb_index_functions,
11295 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
11296 NULL.
11297 * psymtab.c (psym_lookup_global_symbol_language): New function.
11298 (psym_functions): Init psym_lookup_global_symbol_language with
11299 psym_lookup_global_symbol_language.
11300 * symfile-debug.c (debug_sym_quick_functions): Init
11301 lookup_global_symbol_language with NULL.
11302 * symfile.c (set_initial_language): Remove fixme comment.
11303 * symfile.h (struct quick_symbol_functions): Add
11304 lookup_global_symbol_language.
11305 * symtab.c (find_quick_global_symbol_language): New function.
11306 (find_main_name): Use find_quick_global_symbol_language.
11307
11308 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
11309
11310 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
11311
11312 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11313
11314 * buildsym.c (record_line): Fix undefined behavior and preserve
11315 lines at eof.
11316
11317 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11318
11319 * buildsym.c (record_line): Fix the resizing condition.
11320
11321 2020-04-01 Tom Tromey <tom@tromey.com>
11322
11323 * value.h (value_literal_complex): Add comment.
11324 * valops.c (value_literal_complex): Refer to value.h.
11325
11326 2020-04-01 Tom Tromey <tom@tromey.com>
11327
11328 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
11329 (scalar_type): New rule, from typebase.
11330 (typebase): Use scalar_type. Recognize complex types.
11331 (field_name): Handle FLOAT_KEYWORD.
11332 (ident_tokens): Add _Complex and __complex__.
11333
11334 2020-04-01 Tom Tromey <tom@tromey.com>
11335
11336 PR exp/25299:
11337 * valarith.c (promotion_type, complex_binop): New functions.
11338 (scalar_binop): Handle complex numbers. Use promotion_type.
11339 (value_pos, value_neg, value_complement): Handle complex numbers.
11340
11341 2020-04-01 Tom Tromey <tom@tromey.com>
11342
11343 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
11344 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
11345 (parse_number): Handle complex numbers.
11346
11347 2020-04-01 Tom Tromey <tom@tromey.com>
11348
11349 * c-valprint.c (c_decorations): Change complex suffix to "i".
11350
11351 2020-04-01 Tom Tromey <tom@tromey.com>
11352
11353 * valprint.c (generic_value_print_complex): Use accessors.
11354 * value.h (value_real_part, value_imaginary_part): Declare.
11355 * valops.c (value_real_part, value_imaginary_part): New
11356 functions.
11357 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
11358
11359 2020-04-01 Tom Tromey <tom@tromey.com>
11360
11361 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
11362 (read_range_type): Update.
11363 * mdebugread.c (basic_type): Update.
11364 * go-lang.c (build_go_types): Use init_complex_type.
11365 * gdbtypes.h (struct main_type) <complex_type>: New member.
11366 (init_complex_type): Update.
11367 (arch_complex_type): Don't declare.
11368 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
11369 Make name if none given. Use alloc_type_copy. Look for cached
11370 complex type.
11371 (arch_complex_type): Remove.
11372 (gdbtypes_post_init): Use init_complex_type.
11373 * f-lang.c (build_fortran_types): Use init_complex_type.
11374 * dwarf2/read.c (read_base_type): Update.
11375 * d-lang.c (build_d_types): Use init_complex_type.
11376 * ctfread.c (read_base_type): Update.
11377
11378 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11379
11380 * infrun.c (stop_all_threads): Update assertion, plus when
11381 stopping threads, take into account that we might be trying
11382 to stop an all-stop target.
11383 (stop_waiting): Call 'stop_all_threads' if there exists a
11384 non-stop target.
11385
11386 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11387
11388 * target.h (exists_non_stop_target): New function declaration.
11389 * target.c (exists_non_stop_target): New function.
11390
11391 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
11392
11393 PR gdb/24789
11394 * eval.c (is_integral_or_integral_reference): New function.
11395 (evaluate_subexp_standard): Allow integer references in
11396 pointer arithmetic.
11397
11398 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11399
11400 * remote.c (remote_target::remote_parse_stop_reply): Remove the
11401 check for no ptid in the stop reply when the target is non-stop.
11402
11403 2020-04-01 Tom Tromey <tromey@adacore.com>
11404
11405 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
11406 "name" parameter to rvalue reference. Initialize m_name_holder.
11407 <lookup_name_info>: New overloads.
11408 <name>: Return gdb::string_view.
11409 <c_str>: New method.
11410 <make_ignore_params>: Update.
11411 <search_name_hash>: Update.
11412 <language_lookup_name>: Return const char *.
11413 <m_name>: Change type.
11414 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
11415 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
11416 (lookup_name_info::match_any): Update.
11417 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
11418 Update.
11419 * minsyms.c (linkage_name_str): Update.
11420 * language.c (default_symbol_name_matcher): Update.
11421 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
11422 Update.
11423 * ada-lang.c (ada_fold_name): Change parameter to string_view.
11424 (ada_lookup_name_info::ada_lookup_name_info): Update.
11425 (literal_symbol_name_matcher): Update.
11426
11427 2020-04-01 Tom Tromey <tromey@adacore.com>
11428
11429 * psymtab.c (psymtab_search_name): Remove function.
11430 (psym_lookup_symbol): Create search name and lookup name here.
11431 (lookup_partial_symbol): Remove "name" parameter; add
11432 lookup_name.
11433 (psym_expand_symtabs_for_function): Update.
11434
11435 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
11436
11437 PR tui/25597:
11438 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
11439
11440 2020-03-31 Tom Tromey <tromey@adacore.com>
11441
11442 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
11443 memcpy.
11444
11445 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
11446
11447 * features/riscv/32bit-csr.xml: Regenerated.
11448 * features/riscv/64bit-csr.xml: Regenerated.
11449
11450 2020-03-30 Tom Tromey <tromey@adacore.com>
11451
11452 * ada-valprint.c (print_variant_part): Update.
11453 * ada-lang.h (ada_which_variant_applies): Update.
11454 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
11455 outer_valaddr parameters; replace with "outer" value parameter.
11456 (to_fixed_variant_branch_type): Update.
11457
11458 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11459
11460 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
11461 <list>. Remove inclusion of observable.h.
11462 (PPC_DEBUG_CURRENT_VERSION): Move up define.
11463 (struct arch_lwp_info): New struct.
11464 (class ppc_linux_dreg_interface): New class.
11465 (struct ppc_linux_process_info): New struct.
11466 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
11467 <low_new_clone, low_forget_process, low_prepare_to_resume>
11468 <copy_thread_dreg_state, mark_thread_stale>
11469 <mark_debug_registers_changed, register_hw_breakpoint>
11470 <clear_hw_breakpoint, register_wp, clear_wp>
11471 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
11472 <num_memory_accesses, get_trigger_type>
11473 <create_watchpoint_request, hwdebug_point_cmp>
11474 <init_arch_lwp_info, get_arch_lwp_info>
11475 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
11476 methods.
11477 <struct ptid_hash>: New inner struct.
11478 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
11479 members.
11480 (saved_dabr_value, hwdebug_info, max_slots_number)
11481 (struct hw_break_tuple, struct thread_points, ppc_threads)
11482 (have_ptrace_hwdebug_interface)
11483 (hwdebug_find_thread_points_by_tid)
11484 (hwdebug_insert_point, hwdebug_remove_point): Remove.
11485 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
11486 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
11487 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
11488 use m_dreg_interface.
11489 (hwdebug_point_cmp): Change to...
11490 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
11491 reference arguments instead of pointers.
11492 (ppc_linux_nat_target::ranged_break_num_registers): Use
11493 m_dreg_interface.
11494 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
11495 m_dreg_interface. Call register_hw_breakpoint.
11496 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
11497 m_dreg_interface. Call clear_hw_breakpoint.
11498 (get_trigger_type): Change to...
11499 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
11500 comment.
11501 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
11502 use m_dreg_interface. Call register_hw_breakpoint.
11503 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
11504 use m_dreg_interface. Call clear_hw_breakpoint.
11505 (can_use_watchpoint_cond_accel): Change to...
11506 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
11507 method. Update comment, use m_dreg_interface and
11508 m_process_info.
11509 (calculate_dvc): Change to...
11510 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
11511 m_dreg_interface.
11512 (num_memory_accesses): Change to...
11513 (ppc_linux_nat_target::num_memory_accesses): ...this method.
11514 (check_condition): Change to...
11515 (ppc_linux_nat_target::check_condition): ...this method.
11516 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
11517 comment, use m_dreg_interface.
11518 (create_watchpoint_request): Change to...
11519 (ppc_linux_nat_target::create_watchpoint_request): ...this
11520 method. Use m_dreg_interface.
11521 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
11522 m_dreg_interface. Call register_hw_breakpoint or register_wp.
11523 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
11524 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
11525 (ppc_linux_nat_target::low_forget_process)
11526 (ppc_linux_nat_target::low_new_fork)
11527 (ppc_linux_nat_target::low_new_clone)
11528 (ppc_linux_nat_target::low_delete_thread)
11529 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
11530 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
11531 only call mark_thread_stale.
11532 (ppc_linux_thread_exit): Remove.
11533 (ppc_linux_nat_target::stopped_data_address): Change to...
11534 (ppc_linux_nat_target::low_stopped_data_address): This. Add
11535 comment, use m_dreg_interface and m_thread_hw_breakpoints.
11536 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
11537 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
11538 comment. Call low_stopped_data_address.
11539 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
11540 m_dreg_interface.
11541 (ppc_linux_nat_target::masked_watch_num_registers): Use
11542 m_dreg_interface.
11543 (ppc_linux_nat_target::copy_thread_dreg_state)
11544 (ppc_linux_nat_target::mark_thread_stale)
11545 (ppc_linux_nat_target::mark_debug_registers_changed)
11546 (ppc_linux_nat_target::register_hw_breakpoint)
11547 (ppc_linux_nat_target::clear_hw_breakpoint)
11548 (ppc_linux_nat_target::register_wp)
11549 (ppc_linux_nat_target::clear_wp)
11550 (ppc_linux_nat_target::init_arch_lwp_info)
11551 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
11552 (_initialize_ppc_linux_nat): Remove observer callback.
11553
11554 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11555
11556 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
11557 (ppc_linux_nat_target::auxv_parse)
11558 (ppc_linux_nat_target::read_description)
11559 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
11560 Move up.
11561
11562 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11563
11564 * linux-nat.h (low_new_clone): New method.
11565 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
11566
11567 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
11568
11569 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
11570 (dbx_expand_psymtab): ... this.
11571 (start_psymtab): Update.
11572 * mdebugread.c (psymtab_to_symtab_1): Rename to...
11573 (mdebug_expand_psymtab): ... this.
11574 (parse_partial_symbols): Update.
11575 (new_psymtab): Update.
11576 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
11577 (xcoff_expand_psymtab): ... this.
11578 (xcoff_start_psymtab): Update.
11579
11580 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
11581
11582 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
11583 <expand_dependencies>: ... this.
11584 * psymtab.c (partial_symtab::read_dependencies): Rename to...
11585 (partial_symtab::expand_dependencies): ... this.
11586 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
11587 Update.
11588 (dwarf2_psymtab::expand_psymtab): Update.
11589 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
11590 * mdebugread.c (psymtab_to_symtab_1): Update.
11591 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
11592
11593 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
11594
11595 * psympriv.h (discard_psymtab): Remove.
11596 * dbxread.c (dbx_end_psymtab): Update.
11597 * xcoffread.c (xcoff_end_psymtab): Update.
11598
11599 2020-03-28 Tom Tromey <tom@tromey.com>
11600
11601 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
11602 comment.
11603
11604 2020-03-28 Tom Tromey <tom@tromey.com>
11605
11606 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
11607
11608 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
11609
11610 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
11611
11612 2020-03-26 John Baldwin <jhb@FreeBSD.org>
11613
11614 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
11615
11616 2020-03-26 Tom Tromey <tom@tromey.com>
11617
11618 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
11619 (mark_common_block_symbol_computed, read_tag_string_type)
11620 (attr_to_dynamic_prop, read_subrange_type): Update.
11621 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
11622 to be methods on struct attribute.
11623 (skip_one_die, process_imported_unit_die, read_namespace_alias)
11624 (read_call_site_scope, partial_die_info::read)
11625 (partial_die_info::read, lookup_die_type, follow_die_ref):
11626 Update.
11627 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
11628 from dwarf2_get_ref_die_offset.
11629 (attribute::constant_value): New method, from
11630 dwarf2_get_attr_constant_value.
11631 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
11632 Declare method.
11633 <constant_value>: New method.
11634
11635 2020-03-26 Tom Tromey <tom@tromey.com>
11636
11637 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
11638 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
11639 (dwarf_type_encoding_name): Move to stringify.c.
11640 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
11641 * dwarf2/stringify.c: New file.
11642 * dwarf2/stringify.h: New file.
11643
11644 2020-03-26 Tom Tromey <tom@tromey.com>
11645
11646 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
11647 Rewrite.
11648
11649 2020-03-26 Tom Tromey <tom@tromey.com>
11650
11651 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
11652 methods.
11653 * dwarf2/read.c (lookup_addr_base): Move to die.h.
11654 (lookup_ranges_base): Likewise.
11655 (read_cutu_die_from_dwo, read_full_die_1): Update.
11656
11657 2020-03-26 Tom Tromey <tom@tromey.com>
11658
11659 * dwarf2/read.c (read_import_statement, read_file_scope)
11660 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
11661 (read_lexical_block_scope, read_call_site_scope)
11662 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
11663 (handle_struct_member_die, process_structure_scope)
11664 (update_enumeration_type_from_children)
11665 (process_enumeration_scope, read_array_type, read_common_block)
11666 (read_namespace, read_module, read_subroutine_type): Update.
11667 (sibling_die): Remove.
11668
11669 2020-03-26 Tom Tromey <tom@tromey.com>
11670
11671 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
11672 (build_type_psymtabs_reader, read_structure_type)
11673 (read_enumeration_type, read_full_die_1): Update.
11674 (dwarf2_attr_no_follow): Move to die.h.
11675 * dwarf2/die.h (struct die_info) <attr>: New method.
11676
11677 2020-03-26 Tom Tromey <tom@tromey.com>
11678
11679 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
11680 <base_address>: Now an optional.
11681 (dwarf2_find_base_address, dwarf2_rnglists_process)
11682 (dwarf2_ranges_process, fill_in_loclist_baton)
11683 (dwarf2_symbol_mark_computed): Update.
11684
11685 2020-03-26 Tom Tromey <tom@tromey.com>
11686
11687 * dwarf2/read.c (struct die_info): Move to die.h.
11688 * dwarf2/die.h: New file.
11689
11690 2020-03-26 Tom Tromey <tom@tromey.com>
11691
11692 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
11693 * dwarf2/read.c
11694 (dwarf2_statement_list_fits_in_line_number_section_complaint):
11695 Move to line-header.c.
11696 (read_checked_initial_length_and_offset, read_formatted_entries):
11697 Likewise.
11698 (dwarf_decode_line_header): Split into two.
11699 * dwarf2/line-header.c
11700 (dwarf2_statement_list_fits_in_line_number_section_complaint):
11701 Move from read.c.
11702 (read_checked_initial_length_and_offset, read_formatted_entries):
11703 Likewise.
11704 (dwarf_decode_line_header): New function, split from read.c.
11705
11706 2020-03-26 Tom Tromey <tom@tromey.com>
11707
11708 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
11709 Declare method.
11710 * dwarf2/read.c (read_attribute_value): Update.
11711 (dwarf2_per_objfile::read_line_string): Rename from
11712 read_indirect_line_string.
11713 (read_formatted_entries): Update.
11714
11715 2020-03-26 Tom Tromey <tom@tromey.com>
11716
11717 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
11718 variable.
11719
11720 2020-03-26 Tom Tromey <tom@tromey.com>
11721
11722 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
11723 const.
11724 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
11725 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
11726 parameter const.
11727
11728 2020-03-26 Tom Tromey <tom@tromey.com>
11729
11730 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
11731 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
11732 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
11733 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
11734
11735 2020-03-26 Tom Tromey <tom@tromey.com>
11736
11737 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
11738 file_names_size, file_full_name, file_file_name>: Use const.
11739 <file_name_at, file_names>: Add const overload.
11740 * dwarf2/line-header.c (line_header::file_file_name)
11741 (line_header::file_full_name): Update.
11742
11743 2020-03-26 Tom Tromey <tom@tromey.com>
11744
11745 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
11746 (macro_start_file, consume_improper_spaces)
11747 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
11748 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
11749 (dwarf_decode_macros): Move to macro.c.
11750 * dwarf2/macro.c: New file.
11751 * dwarf2/macro.h: New file.
11752 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
11753
11754 2020-03-26 Tom Tromey <tom@tromey.com>
11755
11756 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
11757 method.
11758 * dwarf2/section.c: New method. From
11759 read_indirect_string_at_offset_from.
11760 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
11761 (read_indirect_string_at_offset_from): Move to section.c.
11762 (read_indirect_string_at_offset): Rewrite.
11763 (read_indirect_line_string_at_offset): Remove.
11764 (read_indirect_string, read_indirect_line_string)
11765 (dwarf_decode_macro_bytes): Update.
11766
11767 2020-03-26 Tom Tromey <tom@tromey.com>
11768
11769 * dwarf2/section.h (struct dwarf2_section_info)
11770 <overload_complaint>: Declare.
11771 (dwarf2_section_buffer_overflow_complaint): Don't declare.
11772 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
11773 Rename from dwarf2_section_buffer_overflow_complaint.
11774 * dwarf2/read.c (skip_one_die, partial_die_info::read)
11775 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
11776
11777 2020-03-26 Tom Tromey <tom@tromey.com>
11778
11779 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
11780 Declare.
11781 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
11782 Move from read.c.
11783 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
11784 to section.c.
11785
11786 2020-03-26 Tom Tromey <tom@tromey.com>
11787
11788 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
11789
11790 2020-03-26 Tom Tromey <tom@tromey.com>
11791
11792 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
11793 "builder".
11794 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
11795 parameter.
11796 (dwarf_decode_macros): Update.
11797
11798 2020-03-26 Tom Tromey <tom@tromey.com>
11799
11800 * dwarf2/read.c (read_attribute_value): Update.
11801 (read_indirect_string_from_dwz): Move to dwz.c; change into
11802 method.
11803 (dwarf_decode_macro_bytes): Update.
11804 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
11805 * dwarf2/dwz.c: New file.
11806 * Makefile.in (COMMON_SFILES): Add dwz.c.
11807
11808 2020-03-26 Tom Tromey <tom@tromey.com>
11809
11810 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
11811 * dwarf2/read.c: Add include.
11812 * dwarf2/index-write.c: Add include.
11813 * dwarf2/index-cache.c: Add include.
11814 * dwarf2/dwz.h: New file.
11815
11816 2020-03-25 Tom Tromey <tom@tromey.com>
11817
11818 * compile/compile-object-load.c (get_out_value_type): Mention
11819 correct symbol name in error message.
11820
11821 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
11822
11823 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
11824
11825 2020-03-25 Tom de Vries <tdevries@suse.de>
11826
11827 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
11828 * symmisc.c (dump_symtab_1): Print user and includes fields.
11829 (maintenance_info_symtabs): Same.
11830
11831 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
11832
11833 PR gdb/25534
11834 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
11835 (riscv_regcache_cooked_write): New function.
11836 (riscv_push_dummy_call): Use new function.
11837 (riscv_return_value): Likewise.
11838
11839 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
11840
11841 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
11842 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
11843 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
11844 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
11845 * infrun.c (follow_fork): Likewise.
11846 (follow_fork_inferior): Likewise.
11847 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
11848 * linux-nat.h (class linux_nat_target): Likewise.
11849 * remote.c (class remote_target) <follow_fork>: Likewise.
11850 (remote_target::follow_fork): Likewise.
11851 * target-delegates.c: Re-generate.
11852 * target.c (default_follow_fork): Likewise.
11853 (target_follow_fork): Likewise.
11854 * target.h (struct target_ops) <follow_fork>: Likewise.
11855 (target_follow_fork): Likewise.
11856
11857 2020-03-24 Tom de Vries <tdevries@suse.de>
11858
11859 * psymtab.c (maintenance_info_psymtabs): Print user field.
11860
11861 2020-03-20 Tom Tromey <tromey@adacore.com>
11862
11863 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
11864 const.
11865 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
11866 const.
11867
11868 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
11869
11870 * ptrace.m4: Don't check for ptrace declaration.
11871 * config.in: Re-generate.
11872 * configure: Re-generate.
11873 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
11874 not defined.
11875
11876 2020-03-20 Kamil Rytarowski <n54@gmx.com>
11877
11878 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
11879 `PTRACE_TYPE_RET'.
11880 * i386-bsd-nat.c (gdb_ptrace): Likewise.
11881 * sparc-nat.c (gdb_ptrace): Likewise.
11882 * x86-bsd-nat.c (gdb_ptrace): Likewise.
11883
11884 2020-03-20 Tom Tromey <tromey@adacore.com>
11885
11886 * c-exp.y (lex_one_token): Fix assert.
11887
11888 2020-03-20 Tom Tromey <tromey@adacore.com>
11889
11890 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
11891 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
11892 strncpy call.
11893
11894 2020-03-20 Tom Tromey <tromey@adacore.com>
11895
11896 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
11897
11898 2020-03-20 Tom Tromey <tromey@adacore.com>
11899
11900 * ada-valprint.c (print_variant_part): Remove parameters; switch
11901 to value-based API.
11902 (print_field_values): Likewise.
11903 (ada_val_print_struct_union): Likewise.
11904 (ada_value_print_1): Update.
11905
11906 2020-03-20 Kamil Rytarowski <n54@gmx.com>
11907
11908 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
11909 nbsd_nat_target instead of inf_ptrace_target.
11910 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11911 nbsd_nat_target.
11912
11913 2020-03-20 Kamil Rytarowski <n54@gmx.com>
11914
11915 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
11916 it to the ptrace call.
11917 * (store_registers): Likewise.
11918
11919 2020-03-20 Kamil Rytarowski <n54@gmx.com>
11920
11921 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
11922 it to the ptrace call.
11923 * (store_registers): Likewise.
11924
11925 2020-03-19 Luis Machado <luis.machado@linaro.org>
11926
11927 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
11928 valid, fetch vg value from ptrace.
11929
11930 2020-03-19 Kamil Rytarowski <n54@gmx.com>
11931 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
11932 * inf-ptrace.c: Likewise.
11933 * (gdb_ptrace): Add.
11934 * (inf_ptrace_target::resume): Update.
11935 * (inf_ptrace_target::xfer_partial): Likewise.
11936 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
11937 * (inf_ptrace_peek_poke): Update.
11938
11939 2020-03-19 Kamil Rytarowski <n54@gmx.com>
11940
11941 * x86-bsd-nat.c (gdb_ptrace): New.
11942 * (x86bsd_dr_set): Add new argument `ptid'.
11943 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
11944 x86bsd_dr_set_addr): Update.
11945
11946 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
11947
11948 * remote.c (remote_target::process_stop_reply): Handle events for
11949 all threads differently.
11950
11951 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
11952
11953 * completer.c (completion_tracker::remove_completion): Define new
11954 function.
11955 * completer.h (completion_tracker::remove_completion): Declare new
11956 function.
11957 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
11958 when adding a C++ function symbol.
11959
11960 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
11961
11962 * completer.c (completion_tracker::completion_hash_entry): Define
11963 new class.
11964 (advance_to_filename_complete_word_point): Call
11965 recompute_lowest_common_denominator.
11966 (completion_tracker::completion_tracker): Call discard_completions
11967 to setup the hash table.
11968 (completion_tracker::discard_completions): Allow for being called
11969 from the constructor, pass new equal function, and element deleter
11970 when constructing the hash table. Initialise new class member
11971 variables.
11972 (completion_tracker::maybe_add_completion): Remove use of
11973 m_entries_vec, and store more information into m_entries_hash.
11974 (completion_tracker::recompute_lcd_visitor): New function, most
11975 content taken from...
11976 (completion_tracker::recompute_lowest_common_denominator):
11977 ...here, this now just visits each item in the hash calling the
11978 above visitor.
11979 (completion_tracker::build_completion_result): Remove use of
11980 m_entries_vec, call recompute_lowest_common_denominator.
11981 * completer.h (completion_tracker::have_completions): Remove use
11982 of m_entries_vec.
11983 (completion_tracker::completion_hash_entry): Declare new class.
11984 (completion_tracker::recompute_lowest_common_denominator): Change
11985 function signature.
11986 (completion_tracker::recompute_lcd_visitor): Declare new function.
11987 (completion_tracker::m_entries_vec): Delete.
11988 (completion_tracker::m_entries_hash): Initialize to NULL.
11989 (completion_tracker::m_lowest_common_denominator_valid): New
11990 member variable.
11991 (completion_tracker::m_lowest_common_denominator_max_length): New
11992 member variable.
11993
11994 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11995
11996 * regformats/regdef.h: Put reg in gdb namespace.
11997
11998 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11999
12000 * i386-bsd-nat.c (gdb_ptrace): New.
12001 * (i386bsd_fetch_inferior_registers,
12002 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12003 * (i386bsd_fetch_inferior_registers,
12004 i386bsd_store_inferior_registers) Use gdb_ptrace.
12005
12006 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12007
12008 * amd64-bsd-nat.c (gdb_ptrace): New.
12009 * (amd64bsd_fetch_inferior_registers,
12010 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12011 * (amd64bsd_fetch_inferior_registers,
12012 amd64bsd_store_inferior_registers) Use gdb_ptrace.
12013
12014 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12015
12016 * user-regs.c (user_reg::read): Rename to...
12017 (user_reg::xread): ...this.
12018 * (append_user_reg): Rename argument `read' to `xread'.
12019 * (user_reg_add_builtin): Likewise.
12020 * (user_reg_add): Likewise.
12021 * (value_of_user_reg): Likewise.
12022
12023 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12024
12025 * sparc-nat.c (gdb_ptrace): New.
12026 * sparc-nat.c (sparc_fetch_inferior_registers)
12027 (sparc_store_inferior_registers) Remove obsolete comment.
12028 * sparc-nat.c (sparc_fetch_inferior_registers)
12029 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
12030 * sparc-nat.c (sparc_fetch_inferior_registers)
12031 (sparc_store_inferior_registers) Use gdb_ptrace.
12032
12033 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12034
12035 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
12036 it to the ptrace call.
12037 * sh-nbsd-nat.c (store_registers): Likewise.
12038
12039 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12040
12041 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
12042 nbsd_nat_target instead of inf_ptrace_target.
12043 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12044 nbsd_nat_target.
12045
12046 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12047
12048 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
12049
12050 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12051
12052 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
12053 <sys/sysctl.h>.
12054 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
12055
12056 2020-03-17 Tom de Vries <tdevries@suse.de>
12057
12058 PR gdb/23710
12059 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
12060 fields.
12061 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
12062 fields.
12063 (process_imported_unit_die): Skip import of c++ CUs.
12064
12065 2020-03-16 Tom Tromey <tom@tromey.com>
12066
12067 * p-valprint.c (pascal_object_print_value): Initialize
12068 base_value.
12069
12070 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
12071 Shahab Vahedi <shahab@synopsys.com>
12072
12073 * Makefile.in: Add arch/arc.o
12074 * configure.tgt: Likewise.
12075 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
12076 (_initialize_arc_tdep): Don't initialize old target descriptions.
12077 (arc_read_description): New function to cache target descriptions.
12078 * arc-tdep.h (arc_read_description): Add proto type.
12079 * arch/arc.c: New file.
12080 * arch/arc.h: Likewise.
12081 * features/Makefile: Replace old target descriptions with new.
12082 * features/arc-arcompact.c: Remove.
12083 * features/arc-arcompact.xml: Likewise.
12084 * features/arc-v2.c: Likewise
12085 * features/arc-v2.xml: Likewise
12086 * features/arc/aux-arcompact.xml: New file.
12087 * features/arc/aux-v2.xml: Likewise.
12088 * features/arc/core-arcompact.xml: Likewise.
12089 * features/arc/core-v2.xml: Likewise.
12090 * features/arc/aux-arcompact.c: Generate.
12091 * features/arc/aux-v2.c: Likewise.
12092 * features/arc/core-arcompact.c: Likewise.
12093 * features/arc/core-v2.c: Likewise.
12094 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
12095
12096 2020-03-16 Tom Tromey <tromey@adacore.com>
12097
12098 PR gdb/25663:
12099 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
12100 putting value into bcache.
12101
12102 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12103
12104 PR gdb/21500
12105 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
12106 to...
12107 (amd64_windows_init_abi_common): ... this. Don't set size of
12108 long type.
12109 (amd64_windows_init_abi): New function.
12110 (amd64_cygwin_init_abi): New function.
12111 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
12112 the Cygwin OS ABI.
12113 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
12114 comment.
12115
12116 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12117
12118 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
12119 * windows-tdep.c (CYGWIN_DLL_NAME): New.
12120 (pe_import_directory_entry): New struct type.
12121 (is_linked_with_cygwin_dll): New function.
12122 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
12123 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
12124 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
12125
12126 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12127
12128 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
12129 i386_cygwin_core_osabi_sniffer.
12130
12131 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12132
12133 * i386-cygwin-tdep.c: Rename to...
12134 * i386-windows-tdep.c: ... this.
12135 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
12136 i386-windows-tdep.c.
12137 * configure.tgt: Likewise.
12138
12139 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12140
12141 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
12142 * osabi.c (gdb_osabi_names): Add "Windows".
12143 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
12144 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
12145 (i386_cygwin_core_osabi_sniffer): New function, extracted from
12146 i386_cygwin_osabi_sniffer.
12147 (_initialize_i386_cygwin_tdep): Register OS ABI
12148 GDB_OSABI_WINDOWS for i386.
12149 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
12150 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
12151 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
12152 for x86-64.
12153 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
12154 when the target matches '*-*-mingw*'.
12155
12156 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12157
12158 * defs.h (enum gdb_osabi): Move to...
12159 * osabi.h (enum gdb_osabi): ... here.
12160 * gdbarch.sh: Include osabi.h in gdbarch.h.
12161 * gdbarch.h: Re-generate.
12162
12163 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12164
12165 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
12166 function.
12167 (_initialize_amd64_windows_tdep): Register osabi sniffer.
12168
12169 2020-03-14 Tom Tromey <tom@tromey.com>
12170
12171 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
12172 for C++.
12173 (c_type_print_modifier): Likewise. Add "language" parameter.
12174 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
12175 (c_type_print_base_1): Update.
12176 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
12177 constants.
12178 * type-stack.c (type_stack::insert): Handle tp_atomic and
12179 tp_restrict.
12180 (type_stack::follow_type_instance_flags): Likewise.
12181 (type_stack::follow_types): Likewise. Merge type-following code.
12182 * c-exp.y (RESTRICT, ATOMIC): New tokens.
12183 (space_identifier, cv_with_space_id)
12184 (const_or_volatile_or_space_identifier_noopt)
12185 (const_or_volatile_or_space_identifier): Remove.
12186 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
12187 rules.
12188 (ptr_operator, typebase): Update.
12189 (enum token_flag) <FLAG_C>: New constant.
12190 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
12191 "_Atomic".
12192 (lex_one_token): Handle FLAG_C.
12193
12194 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12195
12196 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
12197 it to the ptrace call.
12198 * m68k-bsd-nat.c (store_registers): Likewise.
12199
12200 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12201
12202 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
12203 gdb_byte *.
12204 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
12205 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
12206 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
12207
12208 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12209
12210 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
12211 nbsd_nat_target instead of inf_ptrace_target.
12212 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12213 nbsd_nat_target.
12214
12215 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12216
12217 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
12218 register_t.
12219
12220 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12221
12222 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
12223 it to the ptrace call.
12224 * alpha-bsd-nat.c (store_registers): Likewise.
12225
12226 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12227
12228 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
12229 includes.
12230 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
12231 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
12232 fill_fpregset): Likewise.
12233
12234 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12235
12236 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
12237 nbsd_nat_target instead of inf_ptrace_target.
12238 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12239 nbsd_nat_target.
12240
12241 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12242
12243 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
12244 register_t.
12245
12246 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12247
12248 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
12249 it to the ptrace call.
12250 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
12251 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
12252 * arm-nbsd-nat.c (store_register): Likewise.
12253 * arm-nbsd-nat.c (store_regs): Likewise.
12254 * arm-nbsd-nat.c (store_fp_register): Likewise.
12255 * arm-nbsd-nat.c (store_fp_regs): Likewise.
12256
12257 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12258
12259 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
12260 nbsd_nat_target instead of inf_ptrace_target.
12261 * arm-nbsd-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 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
12267 it to the ptrace call.
12268 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
12269
12270 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12271
12272 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
12273 it to the ptrace call.
12274 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
12275
12276 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12277
12278 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
12279 gdb_byte *.
12280 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
12281
12282 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12283
12284 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
12285 instead of inf_ptrace_target.
12286 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12287 nbsd_nat_target.
12288
12289 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12290
12291 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12292 register_t.
12293
12294 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12295
12296 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12297 register_t.
12298
12299 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12300
12301 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
12302 register_t.
12303
12304 2020-03-13 Tom Tromey <tom@tromey.com>
12305
12306 * value.h (val_print): Don't declare.
12307 * valprint.h (val_print_array_elements)
12308 (val_print_scalar_formatted, generic_val_print): Don't declare.
12309 * valprint.c (generic_val_print_array): Take a struct value.
12310 (generic_val_print_ptr, generic_val_print_memberptr)
12311 (generic_val_print_bool, generic_val_print_int)
12312 (generic_val_print_char, generic_val_print_complex)
12313 (generic_val_print): Remove.
12314 (generic_value_print): Update.
12315 (do_val_print): Remove unused parameters. Don't call
12316 la_val_print.
12317 (val_print): Remove.
12318 (common_val_print): Update. Don't call value_check_printable.
12319 (val_print_scalar_formatted, val_print_array_elements): Remove.
12320 * rust-lang.c (rust_val_print): Remove.
12321 (rust_language_defn): Update.
12322 * p-valprint.c (pascal_val_print): Remove.
12323 (pascal_value_print_inner): Update.
12324 (pascal_object_print_val_fields, pascal_object_print_val):
12325 Remove.
12326 (pascal_object_print_static_field): Update.
12327 * p-lang.h (pascal_val_print): Don't declare.
12328 * p-lang.c (pascal_language_defn): Update.
12329 * opencl-lang.c (opencl_language_defn): Update.
12330 * objc-lang.c (objc_language_defn): Update.
12331 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
12332 * m2-lang.h (m2_val_print): Don't declare.
12333 * m2-lang.c (m2_language_defn): Update.
12334 * language.h (struct language_defn) <la_val_print>: Remove.
12335 * language.c (unk_lang_value_print_inner): Rename. Change
12336 argument types.
12337 (unknown_language_defn, auto_language_defn): Update.
12338 * go-valprint.c (go_val_print): Remove.
12339 * go-lang.h (go_val_print): Don't declare.
12340 * go-lang.c (go_language_defn): Update.
12341 * f-valprint.c (f_val_print): Remove.
12342 * f-lang.h (f_value_print): Don't declare.
12343 * f-lang.c (f_language_defn): Update.
12344 * d-valprint.c (d_val_print): Remove.
12345 * d-lang.h (d_value_print): Don't declare.
12346 * d-lang.c (d_language_defn): Update.
12347 * cp-valprint.c (cp_print_value_fields)
12348 (cp_print_value_fields_rtti, cp_print_value): Remove.
12349 (cp_print_static_field): Update.
12350 * c-valprint.c (c_val_print_array, c_val_print_ptr)
12351 (c_val_print_struct, c_val_print_union, c_val_print_int)
12352 (c_val_print_memberptr, c_val_print): Remove.
12353 * c-lang.h (c_val_print_array, cp_print_value_fields)
12354 (cp_print_value_fields_rtti): Don't declare.
12355 * c-lang.c (c_language_defn, cplus_language_defn)
12356 (asm_language_defn, minimal_language_defn): Update.
12357 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
12358 (ada_val_print_enum): Take a struct value.
12359 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
12360 (ada_val_print): Remove.
12361 (ada_value_print_1): Update.
12362 (printable_val_type): Remove.
12363 * ada-lang.h (ada_val_print): Don't declare.
12364 * ada-lang.c (ada_language_defn): Update.
12365
12366 2020-03-13 Tom Tromey <tom@tromey.com>
12367
12368 * valprint.c (do_val_print): Update.
12369 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
12370 a struct value.
12371 (value_to_value_object_no_release): Declare.
12372 * python/py-value.c (value_to_value_object_no_release): New
12373 function.
12374 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
12375 struct value.
12376 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
12377 function.
12378 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
12379 a struct value.
12380 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
12381 Declare.
12382 (gdbscm_apply_val_pretty_printer): Take a struct value.
12383 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
12384 value.
12385 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
12386 value.
12387 * extension-priv.h (struct extension_language_ops)
12388 <apply_val_pretty_printer>: Take a struct value.
12389 * cp-valprint.c (cp_print_value): Create a struct value.
12390 (cp_print_value): Update.
12391
12392 2020-03-13 Tom Tromey <tom@tromey.com>
12393
12394 * ada-valprint.c (print_field_values): Call common_val_print.
12395
12396 2020-03-13 Tom Tromey <tom@tromey.com>
12397
12398 * ada-valprint.c (val_print_packed_array_elements): Remove
12399 bitoffset and val parameters. Call common_val_print.
12400 (ada_val_print_string): Remove offset, address, and original_value
12401 parameters.
12402 (ada_val_print_array): Update.
12403 (ada_value_print_array): New function.
12404 (ada_value_print_1): Call it.
12405
12406 2020-03-13 Tom Tromey <tom@tromey.com>
12407
12408 * ada-valprint.c (ada_value_print): Use common_val_print.
12409
12410 2020-03-13 Tom Tromey <tom@tromey.com>
12411
12412 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
12413
12414 2020-03-13 Tom Tromey <tom@tromey.com>
12415
12416 * ada-valprint.c (ada_value_print_num): New function.
12417 (ada_value_print_1): Use it.
12418
12419 2020-03-13 Tom Tromey <tom@tromey.com>
12420
12421 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
12422
12423 2020-03-13 Tom Tromey <tom@tromey.com>
12424
12425 * ada-valprint.c (ada_value_print_ptr): New function.
12426 (ada_value_print_1): Use it.
12427
12428 2020-03-13 Tom Tromey <tom@tromey.com>
12429
12430 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
12431 call common_val_print.
12432 (ada_val_print_1): Update.
12433 (ada_value_print_1): New function.
12434 (ada_value_print_inner): Rewrite.
12435
12436 2020-03-13 Tom Tromey <tom@tromey.com>
12437
12438 * cp-valprint.c (cp_print_value_fields): Update.
12439 (cp_print_value): New function.
12440
12441 2020-03-13 Tom Tromey <tom@tromey.com>
12442
12443 * m2-valprint.c (m2_value_print_inner): Use
12444 cp_print_value_fields.
12445 * cp-valprint.c (cp_print_value_fields): New function.
12446 * c-valprint.c (c_value_print_struct): New function.
12447 (c_value_print_inner): Use c_value_print_struct.
12448 * c-lang.h (cp_print_value_fields): Declare.
12449
12450 2020-03-13 Tom Tromey <tom@tromey.com>
12451
12452 * c-valprint.c (c_value_print_array): New function.
12453 (c_value_print_inner): Use it.
12454
12455 2020-03-13 Tom Tromey <tom@tromey.com>
12456
12457 * c-valprint.c (c_value_print_memberptr): New function.
12458 (c_value_print_inner): Use it.
12459
12460 2020-03-13 Tom Tromey <tom@tromey.com>
12461
12462 * c-valprint.c (c_value_print_int): New function.
12463 (c_value_print_inner): Use it.
12464
12465 2020-03-13 Tom Tromey <tom@tromey.com>
12466
12467 * c-valprint.c (c_value_print_ptr): New function.
12468 (c_value_print_inner): Use it.
12469
12470 2020-03-13 Tom Tromey <tom@tromey.com>
12471
12472 * c-valprint.c (c_value_print_inner): Rewrite.
12473
12474 2020-03-13 Tom Tromey <tom@tromey.com>
12475
12476 * valprint.c (generic_value_print_complex): New function.
12477 (generic_value_print): Use it.
12478
12479 2020-03-13 Tom Tromey <tom@tromey.com>
12480
12481 * valprint.c (generic_val_print_float): Don't call
12482 val_print_scalar_formatted.
12483 (generic_val_print, generic_value_print): Update.
12484
12485 2020-03-13 Tom Tromey <tom@tromey.com>
12486
12487 * valprint.c (generic_value_print_char): New function
12488 (generic_value_print): Use it.
12489
12490 2020-03-13 Tom Tromey <tom@tromey.com>
12491
12492 * valprint.c (generic_value_print_int): New function.
12493 (generic_value_print): Use it.
12494
12495 2020-03-13 Tom Tromey <tom@tromey.com>
12496
12497 * valprint.c (generic_value_print_bool): New function.
12498 (generic_value_print): Use it.
12499
12500 2020-03-13 Tom Tromey <tom@tromey.com>
12501
12502 * valprint.c (generic_val_print_func): Simplify.
12503 (generic_val_print, generic_value_print): Update.
12504
12505 2020-03-13 Tom Tromey <tom@tromey.com>
12506
12507 * valprint.c (generic_val_print_flags): Remove.
12508 (generic_val_print, generic_value_print): Update.
12509 (val_print_type_code_flags): Add original_value parameter.
12510
12511 2020-03-13 Tom Tromey <tom@tromey.com>
12512
12513 * valprint.c (generic_val_print): Update.
12514 (generic_value_print): Update.
12515 * valprint.c (generic_val_print_enum): Don't call
12516 val_print_scalar_formatted.
12517
12518 2020-03-13 Tom Tromey <tom@tromey.com>
12519
12520 * valprint.c (generic_value_print): Call generic_value_print_ptr.
12521 * valprint.c (generic_value_print_ptr): New function.
12522
12523 2020-03-13 Tom Tromey <tom@tromey.com>
12524
12525 * valprint.c (generic_value_print): Rewrite.
12526
12527 2020-03-13 Tom Tromey <tom@tromey.com>
12528
12529 * p-valprint.c (pascal_object_print_value_fields)
12530 (pascal_object_print_value): New functions.
12531
12532 2020-03-13 Tom Tromey <tom@tromey.com>
12533
12534 * p-valprint.c (pascal_value_print_inner): Rewrite.
12535
12536 2020-03-13 Tom Tromey <tom@tromey.com>
12537
12538 * f-valprint.c (f_value_print_innner): Rewrite.
12539
12540 2020-03-13 Tom Tromey <tom@tromey.com>
12541
12542 * m2-valprint.c (m2_print_unbounded_array): New overload.
12543 (m2_print_unbounded_array): Update.
12544 (m2_print_array_contents): Take a struct value.
12545 (m2_value_print_inner): Rewrite.
12546
12547 2020-03-13 Tom Tromey <tom@tromey.com>
12548
12549 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
12550 (d_value_print_inner): New function.
12551 * d-lang.h (d_value_print_inner): Declare.
12552 * d-lang.c (d_language_defn): Use d_value_print_inner.
12553
12554 2020-03-13 Tom Tromey <tom@tromey.com>
12555
12556 * go-valprint.c (go_value_print_inner): New function.
12557 * go-lang.h (go_value_print_inner): Declare.
12558 * go-lang.c (go_language_defn): Use go_value_print_inner.
12559
12560 2020-03-13 Tom Tromey <tom@tromey.com>
12561
12562 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
12563 API.
12564 (rust_val_print): Rewrite.
12565 (rust_value_print_inner): New function, from rust_val_print.
12566 (rust_language_defn): Use rust_value_print_inner.
12567
12568 2020-03-13 Tom Tromey <tom@tromey.com>
12569
12570 * ada-valprint.c (ada_value_print_inner): New function.
12571 * ada-lang.h (ada_value_print_inner): Declare.
12572 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
12573
12574 2020-03-13 Tom Tromey <tom@tromey.com>
12575
12576 * f-valprint.c (f_value_print_innner): New function.
12577 * f-lang.h (f_value_print_innner): Declare.
12578 * f-lang.c (f_language_defn): Use f_value_print_innner.
12579
12580 2020-03-13 Tom Tromey <tom@tromey.com>
12581
12582 * p-valprint.c (pascal_value_print_inner): New function.
12583 * p-lang.h (pascal_value_print_inner): Declare.
12584 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
12585
12586 2020-03-13 Tom Tromey <tom@tromey.com>
12587
12588 * m2-valprint.c (m2_value_print_inner): New function.
12589 * m2-lang.h (m2_value_print_inner): Declare.
12590 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
12591
12592 2020-03-13 Tom Tromey <tom@tromey.com>
12593
12594 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
12595 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
12596 * c-valprint.c (c_value_print_inner): New function.
12597 * c-lang.h (c_value_print_inner): Declare.
12598 * c-lang.c (c_language_defn, cplus_language_defn)
12599 (asm_language_defn, minimal_language_defn): Use
12600 c_value_print_inner.
12601
12602 2020-03-13 Tom Tromey <tom@tromey.com>
12603
12604 * p-valprint.c (pascal_object_print_value_fields): Now static.
12605 * p-lang.h (pascal_object_print_value_fields): Don't declare.
12606
12607 2020-03-13 Tom Tromey <tom@tromey.com>
12608
12609 * c-valprint.c (c_val_print_array): Simplify.
12610
12611 2020-03-13 Tom Tromey <tom@tromey.com>
12612
12613 * valprint.c (value_print_array_elements): New function.
12614 * valprint.h (value_print_array_elements): Declare.
12615
12616 2020-03-13 Tom Tromey <tom@tromey.com>
12617
12618 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
12619 * mips-tdep.c (mips_print_register): Use
12620 value_print_scalar_formatted.
12621
12622 2020-03-13 Tom Tromey <tom@tromey.com>
12623
12624 * valprint.h (value_print_scalar_formatted): Declare.
12625 * valprint.c (value_print_scalar_formatted): New function.
12626
12627 2020-03-13 Tom Tromey <tom@tromey.com>
12628
12629 * valprint.h (generic_value_print): Declare.
12630 * valprint.c (generic_value_print): New function.
12631
12632 2020-03-13 Tom Tromey <tom@tromey.com>
12633
12634 * valprint.c (do_val_print): Call la_value_print_inner, if
12635 available.
12636 * rust-lang.c (rust_language_defn): Update.
12637 * p-lang.c (pascal_language_defn): Update.
12638 * opencl-lang.c (opencl_language_defn): Update.
12639 * objc-lang.c (objc_language_defn): Update.
12640 * m2-lang.c (m2_language_defn): Update.
12641 * language.h (struct language_defn) <la_value_print_inner>: New
12642 member.
12643 * language.c (unknown_language_defn, auto_language_defn): Update.
12644 * go-lang.c (go_language_defn): Update.
12645 * f-lang.c (f_language_defn): Update.
12646 * d-lang.c (d_language_defn): Update.
12647 * c-lang.c (c_language_defn, cplus_language_defn)
12648 (asm_language_defn, minimal_language_defn): Update.
12649 * ada-lang.c (ada_language_defn): Update.
12650
12651 2020-03-13 Tom Tromey <tom@tromey.com>
12652
12653 * c-valprint.c (c_value_print): Use common_val_print.
12654
12655 2020-03-13 Tom Tromey <tom@tromey.com>
12656
12657 * cp-valprint.c (cp_print_static_field): Use common_val_print.
12658
12659 2020-03-13 Tom Tromey <tom@tromey.com>
12660
12661 * f-valprint.c (f77_print_array_1, f_val_print): Use
12662 common_val_print.
12663
12664 2020-03-13 Tom Tromey <tom@tromey.com>
12665
12666 * riscv-tdep.c (riscv_print_one_register_info): Use
12667 common_val_print.
12668
12669 2020-03-13 Tom Tromey <tom@tromey.com>
12670
12671 * mi/mi-main.c (output_register): Use common_val_print.
12672
12673 2020-03-13 Tom Tromey <tom@tromey.com>
12674
12675 * infcmd.c (default_print_one_register_info): Use
12676 common_val_print.
12677
12678 2020-03-13 Tom Tromey <tom@tromey.com>
12679
12680 * valprint.h (common_val_print_checked): Declare.
12681 * valprint.c (common_val_print_checked): New function.
12682 * stack.c (print_frame_arg): Use common_val_print_checked.
12683
12684 2020-03-13 Tom Tromey <tom@tromey.com>
12685
12686 * valprint.c (do_val_print): New function, from val_print.
12687 (val_print): Use do_val_print.
12688 (common_val_print): Use do_val_print.
12689
12690 2020-03-13 Tom Tromey <tom@tromey.com>
12691
12692 * valprint.c (value_print): Use scoped_value_mark.
12693
12694 2020-03-13 Tom de Vries <tdevries@suse.de>
12695
12696 PR symtab/25646
12697 * psymtab.c (partial_symtab::partial_symtab): Don't set
12698 globals_offset and statics_offset. Push element onto
12699 current_global_psymbols and current_static_psymbols stacks.
12700 (concat): New function.
12701 (end_psymtab_common): Set globals_offset and statics_offset. Pop
12702 element from current_global_psymbols and current_static_psymbols
12703 stacks. Concat popped elements to global_psymbols and
12704 static_symbols.
12705 (add_psymbol_to_list): Use current_global_psymbols and
12706 current_static_psymbols stacks.
12707 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
12708 current_static_psymbols fields.
12709
12710 2020-03-12 Christian Biesinger <cbiesinger@google.com>
12711
12712 * corelow.c (sniff_core_bfd): Remove.
12713 (class core_target) <m_core_vec>: Remove.
12714 (core_target::core_target): Update.
12715 (core_file_fns): Remove.
12716 (deprecated_add_core_fns): Remove.
12717 (default_core_sniffer): Remove.
12718 (sniff_core_bfd): Remove.
12719 (default_check_format): Remove.
12720 (gdb_check_format): Remove.
12721 (core_target_open): Update.
12722 (core_target::get_core_register_section): Update.
12723 (get_core_registers_cb): Update.
12724 (core_target::fetch_registers): Update.
12725 * gdbcore.h (struct core_fns): Remove.
12726 (deprecated_add_core_fns): Remove.
12727 (default_core_sniffer): Remove.
12728 (default_check_format): Remove.
12729
12730 2020-03-12 Tom Tromey <tom@tromey.com>
12731
12732 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
12733 CORE_ADDR.
12734 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
12735
12736 2020-03-12 Tom Tromey <tom@tromey.com>
12737
12738 * remote.c (remote_target::download_tracepoint)
12739 (remote_target::enable_tracepoint)
12740 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
12741 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
12742 sprintf_vma.
12743
12744 2020-03-12 Tom Tromey <tom@tromey.com>
12745
12746 * symfile-mem.c: Update CORE_ADDR size assert.
12747
12748 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
12749
12750 * selftest.m4: Move to gdbsupport/.
12751 * acinclude.m4: Update path to selftest.m4.
12752
12753 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
12754
12755 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
12756 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
12757 gdbarch-selfselftests.c and selftest-arch.c.
12758 (SUBDIR_UNITTESTS_OBS): Rename to...
12759 (SELFTESTS_OBS): ... this.
12760 (COMMON_SFILES): Remove disasm-selftests.c and
12761 gdbarch-selftests.c.
12762 * configure.ac: Don't add selftest-arch.{c,o} to
12763 CONFIG_{SRCS,OBS}.
12764 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
12765 preprocessor conditions.
12766
12767 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
12768
12769 * configure.ac: Don't source bfd/development.sh.
12770 * selftest.m4: Modify comment.
12771 * configure: Re-generate.
12772
12773 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
12774
12775 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
12776 not "true" or "false".
12777 * configure: Re-generate.
12778
12779 2020-03-12 Christian Biesinger <cbiesinger@google.com>
12780
12781 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
12782 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
12783 renamed to arm_nbsd_supply_gregset.
12784 (fetch_register): Update to call arm_nbsd_supply_gregset.
12785 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
12786 (arm_netbsd_nat_target::fetch_registers): Update.
12787 (fetch_elfcore_registers): Removed.
12788 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
12789 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
12790 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
12791 not require NetBSD system headers.
12792 (arm_nbsd_regset): New struct.
12793 (arm_nbsd_iterate_over_regset_sections): New function.
12794 (arm_netbsd_init_abi_common): Updated to call
12795 set_gdbarch_iterate_over_regset_sections.
12796 * arm-nbsd-tdep.h: New file.
12797
12798 2020-03-11 Kevin Buettner <kevinb@redhat.com>
12799
12800 * symtab.c (find_pc_sect_line): Add check which prevents infinite
12801 recursion.
12802
12803 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
12804
12805 * configure: Re-generate.
12806
12807 2020-03-11 Tom Tromey <tromey@adacore.com>
12808
12809 * ada-typeprint.c (print_choices): Fix comment.
12810
12811 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
12812
12813 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
12814 previous item in the list, when the list has no items.
12815
12816 2020-03-11 Tom de Vries <tdevries@suse.de>
12817
12818 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
12819 PROP_LOCLIST handling code.
12820
12821 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
12822
12823 * buildsym-legacy.c (record_line): Pass extra parameter to
12824 record_line.
12825 * buildsym.c (buildsym_compunit::record_line): Take an extra
12826 parameter, reduce duplication in the line table, and record the
12827 is_stmt flag in the line table.
12828 * buildsym.h (buildsym_compunit::record_line): Add extra
12829 parameter.
12830 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
12831 non-statement lines.
12832 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
12833 this to the symtab builder.
12834 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
12835 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
12836 through to dwarf_record_line_1.
12837 * infrun.c (process_event_stop_test): When stepping, don't stop at
12838 a non-statement instruction, and only refresh the step info when
12839 we land in the middle of a line's range. Also add an extra
12840 comment.
12841 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
12842 field.
12843 * record-btrace.c (btrace_find_line_range): Only record lines
12844 marked as is-statement.
12845 * stack.c (frame_show_address): Show the frame address if we are
12846 in a non-statement sal.
12847 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
12848 (maintenance_print_one_line_table): Print a header for the is_stmt
12849 column, and include is_stmt information in the output.
12850 * symtab.c (find_pc_sect_line): Find lines marked as statements in
12851 preference to non-statements.
12852 (find_pcs_for_symtab_line): Prefer is-statement entries.
12853 (find_line_common): Likewise.
12854 * symtab.h (struct linetable_entry): Add is_stmt field.
12855 (struct symtab_and_line): Likewise.
12856 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
12857 arranging the line table.
12858
12859 2020-03-07 Tom de Vries <tdevries@suse.de>
12860
12861 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
12862 DIE.
12863
12864 2020-03-07 Tom Tromey <tom@tromey.com>
12865
12866 * valops.c (value_literal_complex): Remove obsolete comment.
12867 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
12868 comment.
12869
12870 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
12871
12872 * infrun.h: Forward-declare thread_info.
12873 (set_step_info): Add thread_info parameter, add doc.
12874 * infrun.c (set_step_info): Add thread_info parameter, move doc
12875 to header.
12876 * infrun.c (process_event_stop_test): Pass thread to
12877 set_step_info call.
12878 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
12879 set_step_info.
12880 (prepare_one_step): Add thread_info parameter, pass it to
12881 set_step_frame and prepare_one_step (recursive) call.
12882 (step_1): Pass thread to prepare_one_step call.
12883 (step_command_fsm::should_stop): Pass thread to
12884 prepare_one_step.
12885 (until_next_fsm): Pass thread to set_step_frame call.
12886 (finish_command): Pass thread to set_step_info call.
12887
12888 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
12889
12890 * windows-tdep.c (windows_solib_create_inferior_hook):
12891 Check if inferior is running.
12892
12893 2020-03-06 Tom de Vries <tdevries@suse.de>
12894
12895 * NEWS: Fix "the the".
12896 * ctfread.c: Same.
12897
12898 2020-03-06 Tom de Vries <tdevries@suse.de>
12899
12900 * psymtab.c (psymtab_to_symtab): Don't print "done.".
12901
12902 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12903
12904 * .dir-locals.el: Add a comment referencing the other copies of
12905 this file.
12906
12907 2020-03-05 John Baldwin <jhb@FreeBSD.org>
12908
12909 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
12910 psargs.
12911
12912 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12913
12914 * .gitattributes: New file.
12915
12916 2020-03-04 Tom Tromey <tom@tromey.com>
12917
12918 * symmisc.c (print_symbol_bcache_statistics)
12919 (print_objfile_statistics): Update.
12920 * symfile.c (allocate_symtab): Use intern.
12921 * psymtab.c (partial_symtab::partial_symtab): Use intern.
12922 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
12923 macro_cache>: Remove.
12924 <string_cache>: New member.
12925 (struct objfile) <intern>: New methods.
12926 * elfread.c (elf_symtab_read): Use intern.
12927 * dwarf2/read.c (fixup_go_packaging): Intern package name.
12928 (dwarf2_compute_name, dwarf2_physname)
12929 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
12930 names.
12931 (guess_partial_die_structure_name): Update.
12932 (partial_die_info::fixup): Intern name.
12933 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
12934 name.
12935 (dwarf2_name): Intern name. Update.
12936 * buildsym.c (buildsym_compunit::get_macro_table): Use
12937 string_cache.
12938
12939 2020-03-04 Tom Tromey <tom@tromey.com>
12940
12941 * jit.c (bfd_open_from_target_memory): Make "target" const.
12942 * corefile.c (gnutarget): Now const.
12943 * gdbcore.h (gnutarget): Now const.
12944
12945 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
12946
12947 * NEWS: Mention support for WOW64 processes.
12948 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
12949 (amd64_windows_segment_register_p): Remove static.
12950 (_initialize_amd64_windows_nat): Update.
12951 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
12952 * i386-windows-nat.c (context_offset): Update.
12953 (i386_mappings): Rename and remove static.
12954 (i386_windows_segment_register_p): Remove static.
12955 (_initialize_i386_windows_nat): Update.
12956 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
12957 (STATUS_WX86_SINGLE_STEP): New macro.
12958 (EnumProcessModulesEx): New macro.
12959 (Wow64SuspendThread): New macro.
12960 (Wow64GetThreadContext): New macro.
12961 (Wow64SetThreadContext): New macro.
12962 (Wow64GetThreadSelectorEntry): New macro.
12963 (windows_set_context_register_offsets): Add static.
12964 (windows_set_segment_register_p): Likewise.
12965 (windows_add_thread): Adapt for WOW64 processes.
12966 (windows_fetch_one_register): Likewise.
12967 (windows_nat_target::fetch_registers): Likewise.
12968 (windows_store_one_register): Likewise.
12969 (display_selector): Likewise.
12970 (display_selectors): Likewise.
12971 (handle_exception): Likewise.
12972 (windows_continue): Likewise.
12973 (windows_nat_target::resume): Likewise.
12974 (windows_add_all_dlls): Likewise.
12975 (do_initial_windows_stuff): Likewise.
12976 (windows_nat_target::attach): Likewise.
12977 (windows_get_exec_module_filename): Likewise.
12978 (windows_nat_target::create_inferior): Likewise.
12979 (windows_xfer_siginfo): Likewise.
12980 (_initialize_loadable): Initialize Wow64SuspendThread,
12981 Wow64GetThreadContext, Wow64SetThreadContext,
12982 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
12983 * windows-nat.h (windows_set_context_register_offsets):
12984 Remove declaration.
12985 (windows_set_segment_register_p): Likewise.
12986 (i386_windows_segment_register_p): Add declaration.
12987 (amd64_windows_segment_register_p): Likewise.
12988
12989 2020-03-04 Luis Machado <luis.machado@linaro.org>
12990
12991 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
12992 in "info registers" for AArch64/ARM.
12993
12994 The change caused "info registers" to not print GPR's.
12995
12996 gdb/ChangeLog:
12997
12998 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
12999
13000 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13001 when reg->group is empty and reggroup is not.
13002
13003 2020-03-03 Tom Tromey <tromey@adacore.com>
13004
13005 * dwarf2/frame.c (struct dwarf2_frame_cache)
13006 <checked_tailcall_bottom, entry_cfa_sp_offset,
13007 entry_cfa_sp_offset_p>: Remove members.
13008 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
13009 (dwarf2_frame_prev_register): Don't call
13010 dwarf2_tailcall_sniffer_first.
13011 (dwarf2_append_unwinders): Don't append tailcall unwinder.
13012 * frame-unwind.c (add_unwinder): New fuction.
13013 (frame_unwind_init): Use it. Add tailcall unwinder.
13014
13015 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
13016 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13017
13018 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
13019 value should be printed as true.
13020
13021 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
13022
13023 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
13024 (windows_init_abi): Set and use windows_so_ops.
13025
13026 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
13027
13028 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
13029 when verifying if dealing with a convenience variable.
13030
13031 2020-03-03 Luis Machado <luis.machado@linaro.org>
13032
13033 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
13034
13035 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
13036
13037 * infrun.c (gdbarch_supports_displaced_stepping): New.
13038 (use_displaced_stepping): Break up conditions in smaller pieces.
13039 Use gdbarch_supports_displaced_stepping.
13040 (displaced_step_prepare_throw): Use
13041 gdbarch_supports_displaced_stepping.
13042
13043 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13044
13045 * NEWS: Mention new behaviour of the history filename.
13046 * top.c (write_history_p): Add comment.
13047 (show_write_history_p): Add header comment, give a different
13048 message when history writing is on, but the history filename is
13049 empty.
13050 (history_filename): Add comment.
13051 (history_filename_empty): New function.
13052 (show_history_filename): Add header comment, give a different
13053 message when the filename is empty.
13054 (init_history): Compare history_filename against nullptr, and only
13055 read history if the filename is not empty.
13056 (set_history_filename): Add header comment, and only make
13057 non-empty filenames absolute.
13058 (init_main): Make the filename argument to 'set history filename'
13059 optional.
13060
13061 2020-03-02 Christian Biesinger <cbiesinger@google.com>
13062
13063 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
13064 (arm_supply_vfpregset): ...this, and update to use VFP registers.
13065 (fetch_fp_register): Update.
13066 (fetch_fp_regs): Update.
13067 (store_fp_register): Update.
13068 (store_fp_regs): Update.
13069 (arm_netbsd_nat_target::read_description): New function.
13070 (fetch_elfcore_registers): Update.
13071
13072 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13073
13074 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
13075 general_thread if the stop reply is missing a thread-id.
13076 (remote_target::process_stop_reply): Use the first non-exited
13077 thread if the target didn't pass a thread-id.
13078 * infrun.c (do_target_wait): Move call to
13079 switch_to_inferior_no_thread to ....
13080 (do_target_wait_1): ... here.
13081
13082 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
13083
13084 * debuginfod-support.c: Include defs.h first.
13085
13086 2020-02-28 Tom de Vries <tdevries@suse.de>
13087
13088 * symfile.c (set_initial_language): Use default language for lookup.
13089
13090 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
13091
13092 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
13093 reader variable, pass `this` to read_cutu_die_from_dwo.
13094
13095 2020-02-27 Aaron Merey <amerey@redhat.com>
13096
13097 * source.c (open_source_file): Check for nullptr when computing
13098 srcpath.
13099
13100 2020-02-27 Tom Tromey <tromey@adacore.com>
13101
13102 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
13103 member.
13104 (dwarf2_add_field): Don't update nfields.
13105 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
13106
13107 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13108
13109 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
13110 abs.
13111
13112 2020-02-26 Tom Tromey <tom@tromey.com>
13113
13114 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
13115 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
13116 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
13117 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
13118 per_cu_data.
13119
13120 2020-02-26 Tom Tromey <tom@tromey.com>
13121
13122 * dwarf2/index-write.c (psym_index_map): Change type.
13123 (add_address_entry_worker, write_one_signatured_type)
13124 (recursively_count_psymbols, recursively_write_psymbols)
13125 (class debug_names, psyms_seen_size, write_gdbindex)
13126 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
13127
13128 2020-02-26 Aaron Merey <amerey@redhat.com>
13129
13130 * Makefile.in: Handle optional debuginfod support.
13131 * NEWS: Update.
13132 * README: Add --with-debuginfod summary.
13133 * config.in: Regenerate.
13134 * configure: Regenerate.
13135 * configure.ac: Handle optional debuginfod support.
13136 * debuginfod-support.c: debuginfod helper functions.
13137 * debuginfod-support.h: Ditto.
13138 * doc/gdb.texinfo: Add --with-debuginfod to configure options
13139 summary.
13140 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
13141 when a dwz file cannot be found.
13142 * elfread.c (elf_symfile_read): Query debuginfod servers when a
13143 debuginfo file cannot be found.
13144 * source.c (open_source_file): Query debuginfod servers when a
13145 source file cannot be found.
13146 * top.c (print_gdb_configuration): Include
13147 --{with,without}-debuginfod in the output.
13148
13149 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
13150
13151 * thread.c (thr_try_catch_cmd): Print thread name.
13152
13153 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
13154
13155 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
13156 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13157 dwarf2_fetch_die_type_sect_off): Move to...
13158 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
13159 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13160 dwarf2_fetch_die_type_sect_off): ... here.
13161 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
13162 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13163 dwarf2_fetch_die_type_sect_off): Move doc to header file.
13164
13165 2020-02-26 Tom de Vries <tdevries@suse.de>
13166
13167 PR gdb/25603
13168 * symfile.c (set_initial_language): Exit-early if
13169 language_mode == language_mode_manual.
13170
13171 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13172
13173 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
13174 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
13175 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
13176
13177 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
13178
13179 * gdbtypes.c (create_array_type_with_stride): Handle negative
13180 array strides.
13181 * valarith.c (value_subscripted_rvalue): Likewise.
13182
13183 2020-02-25 Luis Machado <luis.machado@linaro.org>
13184
13185 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
13186
13187 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13188
13189 * loc.h (dwarf2_get_die_type): Move to...
13190 * read.h (dwarf2_get_die_type): ... here.
13191 * read.c (dwarf2_get_die_type): Move doc to header.
13192
13193 2020-02-25 Joel Brobecker <brobecker@adacore.com>
13194
13195 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
13196 'gnulib/Makefile.in' to the list.
13197
13198 2020-02-24 Tom Tromey <tom@tromey.com>
13199
13200 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
13201 Remove.
13202 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
13203 XOBNEWVEC.
13204
13205 2020-02-24 Tom Tromey <tom@tromey.com>
13206
13207 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
13208 New method.
13209 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
13210 (dw2_do_instantiate_symtab, dw2_get_file_names)
13211 (build_type_psymtab_dependencies, load_full_type_unit): Update.
13212
13213 2020-02-24 Tom Tromey <tom@tromey.com>
13214
13215 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
13216 make_scoped_restore.
13217 (dwarf2_psymtab::read_symtab): Don't clear
13218 reading_partial_symbols.
13219
13220 2020-02-24 Tom de Vries <tdevries@suse.de>
13221
13222 PR gdb/25592
13223 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
13224
13225 2020-02-24 Tom de Vries <tdevries@suse.de>
13226
13227 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
13228 commands layout next/prev/regs.
13229
13230 2020-02-22 Tom Tromey <tom@tromey.com>
13231
13232 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
13233 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
13234
13235 2020-02-22 Tom Tromey <tom@tromey.com>
13236
13237 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
13238
13239 2020-02-22 Tom Tromey <tom@tromey.com>
13240
13241 * tui/tui-win.c (_initialize_tui_win): Add usage text.
13242 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
13243 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
13244 * tui/tui.c (_initialize_tui): Add usage text.
13245
13246 2020-02-22 Tom Tromey <tom@tromey.com>
13247
13248 * tui/tui-win.c (tui_set_focus_command)
13249 (tui_set_win_height_command): Use error_no_arg.
13250 (_initialize_tui_win): Update help text.
13251 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
13252
13253 2020-02-22 Tom Tromey <tom@tromey.com>
13254
13255 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
13256 * tui/tui-disasm.h (struct tui_disasm_window)
13257 <display_start_addr>: Declare.
13258 * tui/tui-source.h (struct tui_source_window)
13259 <display_start_addr>: Declare.
13260 * tui/tui-winsource.h (struct tui_source_window_base)
13261 <show_source_line, display_start_addr>: New methods.
13262 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
13263 Rename and move to protected section.
13264 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
13265 (tui_source_window_base::do_erase_source_content): Update.
13266 (tui_source_window_base::show_source_line): Now a method.
13267 (tui_source_window_base::show_source_content)
13268 (tui_source_window_base::tui_source_window_base)
13269 (tui_source_window_base::rerender)
13270 (tui_source_window_base::refill)
13271 (tui_source_window_base::do_scroll_horizontal)
13272 (tui_source_window_base::set_is_exec_point_at)
13273 (tui_source_window_base::update_breakpoint_info)
13274 (tui_source_window_base::update_exec_info): Update.
13275 * tui/tui-source.c (tui_source_window::set_contents)
13276 (tui_source_window::showing_source_p)
13277 (tui_source_window::do_scroll_vertical)
13278 (tui_source_window::location_matches_p)
13279 (tui_source_window::line_is_displayed): Update.
13280 (tui_source_window::display_start_addr): New method.
13281 * tui/tui-disasm.c (tui_disasm_window::set_contents)
13282 (tui_disasm_window::do_scroll_vertical)
13283 (tui_disasm_window::location_matches_p): Update.
13284 (tui_disasm_window::display_start_addr): New method.
13285
13286 2020-02-22 Tom Tromey <tom@tromey.com>
13287
13288 * NEWS: Add entry for gdb.register_window_type.
13289 * tui/tui-layout.h (window_factory): New typedef.
13290 (tui_register_window): Declare.
13291 * tui/tui-layout.c (saved_tui_windows): New global.
13292 (tui_apply_current_layout): Use it.
13293 (tui_register_window): New function.
13294 * python/python.c (do_start_initialization): Call
13295 gdbpy_initialize_tui.
13296 (python_GdbMethods): Add "register_window_type" function.
13297 * python/python-internal.h (gdbpy_register_tui_window)
13298 (gdbpy_initialize_tui): Declare.
13299 * python/py-tui.c: New file.
13300 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
13301
13302 2020-02-22 Tom Tromey <tom@tromey.com>
13303
13304 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
13305
13306 2020-02-22 Tom Tromey <tom@tromey.com>
13307
13308 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
13309 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
13310 * tui/tui-data.c (tui_set_win_with_focus): Remove.
13311 (tui_set_win_focus_to): Move from tui-win.c.
13312
13313 2020-02-22 Tom Tromey <tom@tromey.com>
13314
13315 * tui/tui-layout.c (make_standard_window, get_locator_window): New
13316 functions.
13317 (known_window_types): New global.
13318 (tui_get_window_by_name): Reimplement.
13319 (initialize_known_windows): New function.
13320 (validate_window_name): Rewrite.
13321 (_initialize_tui_layout): Call initialize_known_windows.
13322
13323 2020-02-22 Tom Tromey <tom@tromey.com>
13324
13325 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
13326 Remove constants.
13327 * tui/tui-winsource.h (struct tui_source_window_base)
13328 <tui_source_window_base>: Remove parameter.
13329 * tui/tui-winsource.c
13330 (tui_source_window_base::tui_source_window_base): Remove
13331 parameter.
13332 (tui_source_window_base::refill): Update.
13333 * tui/tui-stack.h (struct tui_locator_window)
13334 <tui_locator_window>: Update.
13335 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
13336 Default the constructor.
13337 * tui/tui-regs.h (struct tui_data_item_window)
13338 <tui_data_item_window>: Default the constructor.
13339 (struct tui_data_window) <tui_data_window>: Likewise.
13340 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
13341 Default the constructor.
13342 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
13343 Default the constructor.
13344 <type>: Remove.
13345 (struct tui_win_info) <tui_win_info>: Default the constructor.
13346 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
13347 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
13348 Default the constructor.
13349
13350 2020-02-22 Tom Tromey <tom@tromey.com>
13351
13352 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
13353 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
13354 * tui/tui-win.c (tui_resize_all): Don't call
13355 tui_delete_invisible_windows.
13356 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
13357 done.
13358 (tui_set_layout): Update.
13359 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
13360 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
13361 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
13362
13363 2020-02-22 Tom Tromey <tom@tromey.com>
13364
13365 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
13366 correctly.
13367
13368 2020-02-22 Tom Tromey <tom@tromey.com>
13369
13370 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
13371
13372 2020-02-22 Tom Tromey <tom@tromey.com>
13373
13374 * tui/tui-winsource.h (struct tui_source_window_iterator)
13375 <inner_iterator>: New etytypedef.
13376 <tui_source_window_iterator>: Take "end" parameter.
13377 <tui_source_window_iterator>: Take iterator.
13378 <operator*, advance>: Update.
13379 <m_iter>: Change type.
13380 <m_end>: New field.
13381 (struct tui_source_windows) <begin, end>: Update.
13382 * tui/tui-layout.c (tui_windows): New global.
13383 (tui_apply_current_layout): Clear tui_windows.
13384 (tui_layout_window::apply): Update tui_windows.
13385 * tui/tui-data.h (tui_windows): Declare.
13386 (all_tui_windows): Now inline function.
13387 (class tui_window_iterator, struct all_tui_windows): Remove.
13388
13389 2020-02-22 Tom Tromey <tom@tromey.com>
13390
13391 PR tui/17850:
13392 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
13393 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
13394 "height" argument.
13395 (class tui_layout_window) <get_sizes>: Likewise.
13396 (class tui_layout_split) <tui_layout_split>: Add "vertical"
13397 argument.
13398 <get_sizes>: Add "height" argument.
13399 <m_vertical>: New field.
13400 * tui/tui-layout.c (tui_layout_split::clone): Update.
13401 (tui_layout_split::get_sizes): Add "height" argument.
13402 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
13403 (tui_new_layout_command): Parse "-horizontal".
13404 (_initialize_tui_layout): Update help string.
13405 (tui_layout_split::specification): Add "-horizontal" when needed.
13406 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
13407 argument.
13408 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
13409 New methods.
13410
13411 2020-02-22 Tom Tromey <tom@tromey.com>
13412
13413 * tui/tui-layout.h (enum tui_adjust_result): New.
13414 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
13415 (class tui_layout_window) <adjust_size>: Return
13416 tui_adjust_result. Rewrite.
13417 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
13418 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
13419
13420 2020-02-22 Tom Tromey <tom@tromey.com>
13421
13422 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
13423 parameter and return types.
13424 (class tui_layout_base) <specification>: Add "depth".
13425 (class tui_layout_window) <specification>: Add "depth".
13426 (class tui_layout_split) <specification>: Add "depth".
13427 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
13428 and return types.
13429 (tui_new_layout_command): Parse sub-layouts.
13430 (_initialize_tui_layout): Update help string.
13431 (tui_layout_window::specification): Add "depth".
13432 (add_layout_command): Update.
13433
13434 2020-02-22 Tom Tromey <tom@tromey.com>
13435
13436 * NEWS: Add "tui new-layout" item.
13437 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
13438 Add new-layout command to help text.
13439 (validate_window_name): New function.
13440 (tui_new_layout_command): New function.
13441 (_initialize_tui_layout): Register "new-layout".
13442 (tui_layout_window::specification): New method.
13443 (tui_layout_window::specification): New method.
13444 * tui/tui-layout.h (class tui_layout_base) <specification>: New
13445 method.
13446 (class tui_layout_window) <specification>: New method.
13447 (class tui_layout_split) <specification>: New method.
13448
13449 2020-02-22 Tom Tromey <tom@tromey.com>
13450
13451 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
13452 * tui/tui-win.c (window_name_completer): Update comment.
13453 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
13454 Declare method.
13455 (class tui_layout_window) <replace_window>: Likewise.
13456 (class tui_layout_split) <replace_window>: Likewise.
13457 (tui_set_layout): Don't declare.
13458 (tui_set_initial_layout): Declare function.
13459 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
13460 (asm_regs_layout): New globals.
13461 (tui_current_layout, show_layout): Remove.
13462 (tui_set_layout, tui_add_win_to_layout): Rewrite.
13463 (find_layout, tui_apply_layout): New function.
13464 (layout_completer): Remove.
13465 (tui_next_layout): Reimplement.
13466 (tui_next_layout_command): New function.
13467 (tui_set_initial_layout, tui_prev_layout_command): New functions.
13468 (tui_regs_layout): Reimplement.
13469 (tui_regs_layout_command): New function.
13470 (extract_display_start_addr): Rewrite.
13471 (next_layout, prev_layout): Remove.
13472 (tui_layout_window::replace_window): New method.
13473 (tui_layout_split::replace_window): New method.
13474 (destroy_layout): New function.
13475 (layout_list): New global.
13476 (add_layout_command): New function.
13477 (initialize_layouts): Update.
13478 (tui_layout_command): New function.
13479 (_initialize_tui_layout): Install "layout" commands.
13480 * tui/tui-data.h (enum tui_layout_type): Remove.
13481 (tui_current_layout): Don't declare.
13482
13483 2020-02-22 Tom Tromey <tom@tromey.com>
13484
13485 * tui/tui-regs.c (tui_reg_layout): Remove.
13486 (tui_reg_command): Use tui_regs_layout.
13487 * tui/tui-layout.h (tui_reg_command): Declare.
13488 * tui/tui-layout.c (tui_reg_command): New function.
13489
13490 2020-02-22 Tom Tromey <tom@tromey.com>
13491
13492 * tui/tui.c (tui_rl_delete_other_windows): Call
13493 tui_remove_some_windows.
13494 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
13495 Declare method.
13496 (class tui_layout_window) <remove_windows>: New method.
13497 (class tui_layout_split) <remove_windows>: Declare.
13498 (tui_remove_some_windows): Declare.
13499 * tui/tui-layout.c (tui_remove_some_windows): New function.
13500 (tui_layout_split::remove_windows): New method.
13501
13502 2020-02-22 Tom Tromey <tom@tromey.com>
13503
13504 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
13505 * tui/tui-layout.h (tui_next_layout): Declare.
13506 * tui/tui-layout.c (tui_next_layout): New function.
13507
13508 2020-02-22 Tom Tromey <tom@tromey.com>
13509
13510 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
13511 correct coordinates.
13512
13513 2020-02-22 Tom Tromey <tom@tromey.com>
13514
13515 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
13516 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
13517 DATA_WIN case.
13518
13519 2020-02-22 Tom Tromey <tom@tromey.com>
13520
13521 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
13522 TUI_DISASM_WIN, not tui_win_list.
13523
13524 2020-02-22 Tom Tromey <tom@tromey.com>
13525
13526 * valprint.c (generic_val_print_enum_1)
13527 (val_print_type_code_flags): Style member names.
13528 * rust-lang.c (val_print_struct, rust_print_enum)
13529 (rust_print_struct_def, rust_internal_print_type): Style member
13530 names.
13531 * p-valprint.c (pascal_object_print_value_fields): Style member
13532 names. Only call fprintf_symbol_filtered for static members.
13533 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
13534 * f-valprint.c (f_val_print): Style member names.
13535 * f-typeprint.c (f_type_print_base): Style member names.
13536 * cp-valprint.c (cp_print_value_fields): Style member names. Only
13537 call fprintf_symbol_filtered for static members.
13538 (cp_print_class_member): Style member names.
13539 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
13540 member names.
13541 * ada-valprint.c (ada_print_scalar): Style enum names.
13542 (ada_val_print_enum): Likewise.
13543 * ada-typeprint.c (print_enum_type): Style enum names.
13544
13545 2020-02-21 Tom Tromey <tom@tromey.com>
13546
13547 * psympriv.h (struct partial_symtab): Update comment.
13548
13549 2020-02-21 Tom Tromey <tromey@adacore.com>
13550
13551 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
13552 type is CORE_ADDR.
13553
13554 2020-02-21 Tom de Vries <tdevries@suse.de>
13555
13556 PR gdb/25534
13557 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
13558 if dependencies[i]->user != NULL.
13559
13560 2020-02-21 Ali Tamur <tamur@google.com>
13561
13562 * dwarf2/read.c (dwarf2_name): Add null check.
13563
13564 2020-02-20 Tom Tromey <tom@tromey.com>
13565
13566 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
13567 ">=", in binary search.
13568 (dwarf2_find_containing_comp_unit): New overload.
13569 (run_test): New self-test.
13570 (_initialize_dwarf2_read): Register new test.
13571
13572 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
13573
13574 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
13575 * riscv-tdep.h: Likewise.
13576 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
13577 rv32-only CSR.
13578 * features/riscv/64bit-csr.xml: Regenerated.
13579
13580 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
13581 Tom Tromey <tom@tromey.com>
13582
13583 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
13584 of 'fputc_unfiltered'.
13585 (putchar_unfiltered): Call 'fputc_unfiltered'.
13586 (fputc_unfiltered): Call 'fputs_unfiltered'.
13587
13588 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
13589
13590 * config.in: Regenerate.
13591 * configure: Regenerate.
13592 * configure.ac: Add --with-python-libdir option.
13593 * main.c: Use WITH_PYTHON_LIBDIR.
13594
13595 2020-02-19 Tom Tromey <tom@tromey.com>
13596
13597 * symtab.c (general_symbol_info::compute_and_set_names): Use
13598 obstack_strndup. Simplify call to symbol_set_demangled_name.
13599
13600 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
13601
13602 * dwarf2/read.c (allocate_signatured_type_table,
13603 allocate_dwo_unit_table, allocate_type_unit_groups_table,
13604 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
13605 Remove objfile parameter, update all callers.
13606
13607 2020-02-19 Doug Evans <dje@google.com>
13608
13609 PR rust/25535
13610 * rust-lang.c (rust_print_enum): Apply embedded_offset to
13611 rust_enum_variant calculation.
13612
13613 2020-02-19 Tom Tromey <tromey@adacore.com>
13614
13615 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
13616
13617 2020-02-19 Tom Tromey <tromey@adacore.com>
13618
13619 * ada-lang.c (cache_symbol): Use obstack_strdup.
13620
13621 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
13622
13623 * configure: Regenerate.
13624
13625 2020-02-19 Tom Tromey <tromey@adacore.com>
13626
13627 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
13628 NULL check.
13629
13630 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
13631
13632 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
13633
13634 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
13635
13636 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
13637 if GDBSERVER is not defined.
13638 (riscv_tdesc_cache): Likewise, also store const target_desc.
13639 (STATIC_IN_GDB): Define.
13640 (riscv_create_target_description): Update declaration with
13641 STATIC_IN_GDB.
13642 (riscv_lookup_target_description): New function, only define if
13643 GDBSERVER is not defined.
13644 * arch/riscv.h (riscv_create_target_description): Declare only
13645 when GDBSERVER is defined.
13646 (riscv_lookup_target_description): New declaration when GDBSERVER
13647 is not defined.
13648 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
13649 (riscv_linux_read_features): ...this, and return
13650 riscv_gdbarch_features instead of target_desc.
13651 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
13652 (riscv_linux_read_description): Rename to...
13653 (riscv_linux_read_features): ...this.
13654 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
13655 Update to use riscv_gdbarch_features and
13656 riscv_lookup_target_description.
13657 * riscv-tdep.c (riscv_find_default_target_description): Use
13658 riscv_lookup_target_description instead of
13659 riscv_create_target_description.
13660
13661 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
13662
13663 * valprint.c (generic_val_print_enum_1): When printing a flag
13664 enum with value 0 and there is no enumerator with value 0, print
13665 just "0" instead of "(unknown: 0x0)".
13666
13667 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
13668
13669 * valprint.c (generic_val_print_enum_1): Print unknown part of
13670 flag enum in hex.
13671
13672 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
13673
13674 * dwarf2/read.c (update_enumeration_type_from_children): Allow
13675 flag enums to contain duplicate enumerators.
13676 * valprint.c (generic_val_print_enum_1): Update comment.
13677
13678 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
13679
13680 * dwarf2/read.c: Include "count-one-bits.h".
13681 (update_enumeration_type_from_children): If an enumerator has
13682 multiple bits set, don't treat the enumeration as a "flag enum".
13683 * valprint.c (generic_val_print_enum_1): Assert that enumerators
13684 of flag enums have 0 or 1 bit set.
13685
13686 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
13687
13688 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
13689 conversion.
13690 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13691 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
13692 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13693 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
13694 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13695
13696 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
13697
13698 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
13699
13700 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
13701
13702 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
13703 displaced_step_closure_up.
13704 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
13705 (struct displaced_step_closure_up):
13706 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13707 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
13708 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
13709 Likewise.
13710 * gdbarch.sh (displaced_step_copy_insn): Likewise.
13711 * gdbarch.c, gdbarch.h: Re-generate.
13712 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
13713 displaced_step_closure_up.
13714 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13715 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
13716 * infrun.h (displaced_step_closure_up): New type alias.
13717 (struct displaced_step_inferior_state) <step_closure>: Change
13718 type to displaced_step_closure_up.
13719 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
13720 displaced_step_closure_up.
13721 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13722
13723 2020-02-14 Tom Tromey <tom@tromey.com>
13724
13725 * minidebug.c (gnu_debug_key): New global.
13726 (find_separate_debug_file_in_section): Use it.
13727
13728 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
13729
13730 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
13731 std::unique_ptr.
13732 * gdbarch.c: Re-generate.
13733 * gdbarch.h: Re-generate.
13734 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
13735 change.
13736 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
13737 type to std::unique_ptr.
13738 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
13739 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13740 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
13741 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
13742 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
13743 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13744 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
13745 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
13746 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13747
13748 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
13749
13750 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
13751 std::unique_ptr.
13752 (displaced_step_clear): Rename to...
13753 (displaced_step_reset): ... this. Just call displaced->reset ().
13754 (displaced_step_clear_cleanup): Rename to...
13755 (displaced_step_reset_cleanup): ... this.
13756 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
13757 (displaced_step_fixup): Likewise.
13758 (resume_1): Likewise.
13759 (handle_inferior_event): Restore child's memory before calling
13760 displaced_step_fixup on the parent.
13761 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
13762 to std::unique_ptr.
13763 <step_closure>: Change type to std::unique_ptr.
13764
13765 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
13766
13767 * arm-tdep.c: Include count-one-bits.h.
13768 (cleanup_block_store_pc): Use count_one_bits.
13769 (cleanup_block_load_pc): Use count_one_bits.
13770 (arm_copy_block_xfer): Use count_one_bits.
13771 (thumb2_copy_block_xfer): Use count_one_bits.
13772 (thumb_copy_pop_pc_16bit): Use count_one_bits.
13773 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
13774 (thumb_get_next_pcs_raw): Use count_one_bits.
13775 (arm_get_next_pcs_raw): Use count_one_bits_l.
13776 * arch/arm.c (bitcount): Remove.
13777 * arch/arm.h (bitcount): Remove.
13778
13779 2020-02-14 Tom Tromey <tromey@adacore.com>
13780
13781 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
13782 Update.
13783 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
13784 * dwarf2/loc.c (call_site_find_chain_1): Return
13785 unique_xmalloc_ptr.
13786 (call_site_find_chain): Likewise.
13787
13788 2020-02-14 Richard Biener <rguenther@suse.de>
13789
13790 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
13791 on expression with division operators.
13792
13793 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13794
13795 * MAINTAINERS (Write After Approval): Adding myself.
13796
13797 2020-02-12 Tom Tromey <tom@tromey.com>
13798
13799 * event-loop.c (event_data, gdb_event, event_handler_func):
13800 Remove.
13801
13802 2020-02-12 Tom Tromey <tom@tromey.com>
13803
13804 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
13805 (dwarf2_frame_objfile_data): Add comment.
13806 (find_comp_unit, set_comp_unit): New functions.
13807 (dwarf2_frame_find_fde): Use find_comp_unit.
13808 (dwarf2_build_frame_info): Use set_comp_unit.
13809
13810 2020-02-12 Tom Tromey <tom@tromey.com>
13811
13812 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
13813 (comp_unit): Don't initialize objfile.
13814 (execute_cfa_program): Add text_offset parameter.
13815 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
13816 (dwarf2_frame_cache): Update.
13817 (dwarf2_build_frame_info): Don't set "objfile" member.
13818
13819 2020-02-12 Tom Tromey <tom@tromey.com>
13820
13821 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
13822 (decode_frame_entry): Likewise.
13823 (dwarf2_build_frame_info): Update.
13824
13825 2020-02-12 Tom Tromey <tom@tromey.com>
13826
13827 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
13828 (decode_frame_entry_1): Use the comp_unit obstack.
13829
13830 2020-02-12 Tom Tromey <tom@tromey.com>
13831
13832 * dwarf2/frame.c (struct comp_unit): Add initializers and
13833 constructor.
13834 (dwarf2_frame_objfile_data): Store a comp_unit.
13835 (dwarf2_frame_find_fde): Update.
13836 (dwarf2_build_frame_info): Use "new".
13837
13838 2020-02-12 Tom Tromey <tom@tromey.com>
13839
13840 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
13841 (dwarf2_fde_table): Typedef for std::vector.
13842 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
13843 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
13844 (decode_frame_entry): Update.
13845 (dwarf2_build_frame_info): Use "new".
13846
13847 2020-02-12 Christian Biesinger <cbiesinger@google.com>
13848
13849 * arm-tdep.c (arm_gdbarch_init): Update.
13850 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
13851 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
13852 have_neon, is_m>: Change to bool.
13853
13854 2020-02-12 Christian Biesinger <cbiesinger@google.com>
13855
13856 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
13857
13858 2020-02-12 Tom Tromey <tom@tromey.com>
13859
13860 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
13861
13862 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
13863
13864 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
13865 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
13866
13867 2020-02-11 Tom Tromey <tom@tromey.com>
13868
13869 * psymtab.h: Update comment.
13870
13871 2020-02-11 Tom Tromey <tom@tromey.com>
13872
13873 * gdb_obstack.h (struct auto_obstack): Use
13874 DISABLE_COPY_AND_ASSIGN.
13875
13876 2020-02-11 Tom Tromey <tom@tromey.com>
13877
13878 * dwarf2/frame.h (struct objfile): Don't forward declare.
13879
13880 2020-02-11 Christian Biesinger <cbiesinger@google.com>
13881
13882 * cris-tdep.c (cris_supply_gregset): Change signature to match
13883 what struct regset expects.
13884 (cris_regset): New struct.
13885 (fetch_core_registers): Remove.
13886 (cris_iterate_over_regset_sections): New function.
13887 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
13888 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
13889
13890 2020-02-11 Christian Biesinger <cbiesinger@google.com>
13891
13892 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
13893 registers.
13894
13895 2020-02-11 Christian Biesinger <cbiesinger@google.com>
13896
13897 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
13898
13899 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
13900
13901 * configure: Re-generate.
13902
13903 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
13904
13905 * configure: Re-generate.
13906
13907 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
13908
13909 * acinclude: Update warning.m4 path.
13910 * warning.m4: Move to gdbsupport.
13911
13912 2020-02-11 Tom Tromey <tromey@adacore.com>
13913
13914 * remote.c (remote_console_output): Update.
13915 * printcmd.c (printf_command): Update.
13916 * event-loop.c (gdb_wait_for_event): Update.
13917 * linux-nat.c (sigchld_handler): Update.
13918 * remote-sim.c (gdb_os_write_stdout): Update.
13919 (gdb_os_flush_stdout): Update.
13920 (gdb_os_flush_stderr): Update.
13921 (gdb_os_write_stderr): Update.
13922 * exceptions.c (print_exception): Update.
13923 * remote-fileio.c (remote_fileio_func_read): Update.
13924 (remote_fileio_func_write): Update.
13925 * tui/tui.c (tui_enable): Update.
13926 * tui/tui-interp.c (tui_interp::init): Update.
13927 * utils.c (init_page_info): Update.
13928 (putchar_unfiltered, fputc_unfiltered): Update.
13929 (gdb_flush): Update.
13930 (emit_style_escape): Update.
13931 (flush_wrap_buffer, fputs_maybe_filtered): Update.
13932 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
13933 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
13934 (stderr_file::write): Update.
13935 (stderr_file::puts): Update.
13936 * ui-file.h (ui_file_isatty, ui_file_write)
13937 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
13938 (ui_file_puts): Don't declare.
13939
13940 2020-02-10 Tom de Vries <tdevries@suse.de>
13941
13942 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
13943 sentinel to char *.
13944
13945 2020-02-09 Tom de Vries <tdevries@suse.de>
13946
13947 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
13948 filename if it matches "<artificial>".
13949
13950 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
13951
13952 * windows-tdep.c (struct enum_value_name): New struct.
13953 (create_enum): New function.
13954 (windows_get_siginfo_type): Create and use enum types.
13955
13956 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
13957
13958 * NEWS: Mention $_siginfo support for Windows.
13959 * windows-nat.c (handle_exception): Set siginfo_er.
13960 (windows_nat_target::mourn_inferior): Reset siginfo_er.
13961 (windows_xfer_siginfo): New function.
13962 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
13963 * windows-tdep.c (struct windows_gdbarch_data): New struct.
13964 (init_windows_gdbarch_data): New function.
13965 (get_windows_gdbarch_data): New function.
13966 (windows_get_siginfo_type): New function.
13967 (windows_init_abi): Register windows_get_siginfo_type.
13968 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
13969
13970 2020-02-08 Tom Tromey <tom@tromey.com>
13971
13972 * dwarf2/read.c (class cutu_reader) <cutu_reader,
13973 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
13974 <keep>: Declare method.
13975 <m_keep>: Remove member.
13976 <~cutu_reader>: Remove.
13977 (cutu_reader::init_tu_and_read_dwo_dies): Update.
13978 (cutu_reader::cutu_reader): Update.
13979 (cutu_reader::keep): Rename from ~cutu_reader.
13980 (process_psymtab_comp_unit, build_type_psymtabs_1)
13981 (process_skeletonless_type_unit, load_partial_comp_unit)
13982 (load_full_comp_unit, dwarf2_read_addr_index)
13983 (read_signatured_type): Update.
13984
13985 2020-02-08 Tom Tromey <tom@tromey.com>
13986
13987 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
13988 "want_partial_unit" parameter.
13989 (process_psymtab_comp_unit): Change want_partial_unit to bool.
13990 Inline check for DW_TAG_partial_unit.
13991 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
13992
13993 2020-02-08 Tom Tromey <tom@tromey.com>
13994
13995 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
13996 read.c.
13997 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
13998 read.c.
13999
14000 2020-02-08 Tom Tromey <tom@tromey.com>
14001
14002 * dwarf2/read.c (read_address): Move to comp-unit.c.
14003 (dwarf2_rnglists_process, dwarf2_ranges_process)
14004 (read_attribute_value, dwarf_decode_lines_1)
14005 (var_decode_location, decode_locdesc): Update.
14006 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
14007 read.c. Remove "cu" parameter.
14008 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
14009 method.
14010
14011 2020-02-08 Tom Tromey <tom@tromey.com>
14012
14013 * dwarf2/read.c (read_attribute_value, read_indirect_string)
14014 (read_indirect_line_string): Update.
14015 * dwarf2/comp-unit.c (read_offset): Remove.
14016 (read_comp_unit_head): Update.
14017 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
14018 method.
14019 (read_offset): Don't declare.
14020
14021 2020-02-08 Tom Tromey <tom@tromey.com>
14022
14023 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
14024 * dwarf2/read.c (struct comp_unit_head): Move to
14025 dwarf2/comp-unit.h.
14026 (enum class rcuh_kind): Move to comp-unit.h.
14027 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
14028 (read_comp_unit_head, error_check_comp_unit_head)
14029 (read_and_check_comp_unit_head): Move to comp-unit.c.
14030 (read_offset, dwarf_unit_type_name): Likewise.
14031 (create_debug_type_hash_table, read_cutu_die_from_dwo)
14032 (cutu_reader::cutu_reader, read_call_site_scope)
14033 (find_partial_die, follow_die_offset): Update.
14034 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
14035
14036 2020-02-08 Tom Tromey <tom@tromey.com>
14037
14038 * dwarf2/read.c (read_offset_1): Move to leb.c.
14039 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
14040 (dwarf_decode_macro_bytes): Update.
14041 * dwarf2/leb.c (read_offset): Rename; move from read.c.
14042 * dwarf2/leb.h (read_offset): Declare.
14043
14044 2020-02-08 Tom Tromey <tom@tromey.com>
14045
14046 * dwarf2/read.c (dwarf2_section_size): Remove.
14047 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
14048 Update.
14049 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
14050
14051 2020-02-08 Tom Tromey <tom@tromey.com>
14052
14053 * dwarf2/read.c (read_initial_length): Move to leb.c.
14054 * dwarf2/leb.h (read_initial_length): Declare.
14055 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
14056 handle_nonstd parameter.
14057 * dwarf2/frame.c (read_initial_length): Remove.
14058 (decode_frame_entry_1): Update.
14059
14060 2020-02-08 Tom Tromey <tom@tromey.com>
14061
14062 * dwarf2/loc.c (dwarf2_find_location_expression)
14063 (dwarf_evaluate_loc_desc::get_tls_address)
14064 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
14065 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
14066 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
14067 (dwarf2_compile_property_to_c)
14068 (dwarf2_loc_desc_get_symbol_read_needs)
14069 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
14070 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
14071 (loclist_describe_location, loclist_tracepoint_var_ref)
14072 (loclist_generate_c_location): Update.
14073 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
14074 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
14075 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
14076 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
14077 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
14078 (dwarf2_per_cu_data::addr_size)
14079 (dwarf2_per_cu_data::ref_addr_size)
14080 (dwarf2_per_cu_data::text_offset)
14081 (dwarf2_per_cu_data::addr_type): Now methods.
14082 (per_cu_header_read_in): Make per_cu "const".
14083 (dwarf2_version): Remove.
14084 (dwarf2_per_cu_data::int_type): Now a method.
14085 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
14086 (set_die_type, read_array_type, read_subrange_index_type)
14087 (read_tag_string_type, read_subrange_type): Update.
14088 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
14089 offset_size, ref_addr_size, text_offset, addr_type, version,
14090 objfile, int_type, addr_sized_int_type>: Declare methods.
14091
14092 2020-02-08 Tom Tromey <tom@tromey.com>
14093
14094 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
14095 Move earlier.
14096
14097 2020-02-08 Tom Tromey <tom@tromey.com>
14098
14099 * dwarf2/read.h (dwarf_line_debug): Declare.
14100 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
14101 * dwarf2/read.c: Move line_header code to new files.
14102 (dwarf_line_debug): No longer static.
14103 * dwarf2/line-header.c: New file.
14104 * dwarf2/line-header.h: New file.
14105
14106 2020-02-08 Tom Tromey <tom@tromey.com>
14107
14108 * dwarf2/read.c (struct line_header) <file_full_name,
14109 file_file_name>: Return unique_xmalloc_ptr.
14110 (line_header::file_file_name): Update.
14111 (line_header::file_full_name): Update.
14112 (dw2_get_file_names_reader): Update.
14113 (macro_start_file): Update.
14114
14115 2020-02-08 Tom Tromey <tom@tromey.com>
14116
14117 * dwarf2/read.c (struct line_header) <file_full_name,
14118 file_file_name>: Declare methods.
14119 (dw2_get_file_names_reader): Update.
14120 (file_file_name): Now a method.
14121 (file_full_name): Likewise.
14122 (macro_start_file): Update.
14123
14124 2020-02-08 Tom Tromey <tom@tromey.com>
14125
14126 * dwarf2/read.c (dwarf_always_disassemble)
14127 (show_dwarf_always_disassemble): Move to loc.c.
14128 (_initialize_dwarf2_read): Move "always-disassemble" registration
14129 to loc.c.
14130 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
14131 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
14132 static.
14133 (show_dwarf_always_disassemble): Move from read.c.
14134 (_initialize_dwarf2loc): Move always-disassemble from read.c.
14135
14136 2020-02-08 Tom Tromey <tom@tromey.com>
14137
14138 * dwarf2/read.c (~dwarf2_per_objfile): Update.
14139 (create_quick_file_names_table): Return htab_up.
14140 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
14141 Update.
14142 * dwarf2/read.h (struct dwarf2_per_objfile)
14143 <quick_file_names_table>: Now htab_up.
14144
14145 2020-02-08 Tom Tromey <tom@tromey.com>
14146
14147 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
14148
14149 2020-02-08 Tom Tromey <tom@tromey.com>
14150
14151 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
14152 Rewrite.
14153 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
14154 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
14155 (abbrev_table::abbrev_table): No longer inline.
14156 (ABBREV_HASH_SIZE): Remove.
14157 (abbrev_table::m_abbrevs): Now an htab_up.
14158
14159 2020-02-08 Tom Tromey <tom@tromey.com>
14160
14161 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
14162 (cutu_reader): Update.
14163 (build_type_psymtabs_1): Update.
14164 * dwarf2/abbrev.c (abbrev_table::read): Rename.
14165 (abbrev_table::alloc_abbrev): Update.
14166 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
14167 (abbrev_table::read): New static method, renamed from
14168 abbrev_table_read_table.
14169 (abbrev_table::alloc_abbrev)
14170 (abbrev_table::add_abbrev): Now private.
14171 (abbrev_table::abbrev_table): Now private.
14172 (abbrev_table::m_abbrev_obstack): Now private. Rename.
14173
14174 2020-02-08 Tom Tromey <tom@tromey.com>
14175
14176 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
14177 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
14178 htab_up.
14179
14180 2020-02-08 Tom Tromey <tom@tromey.com>
14181
14182 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
14183 htab_up.
14184 (lookup_dwo_unit_in_dwp): Update.
14185 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
14186 on obstack.
14187
14188 2020-02-08 Tom Tromey <tom@tromey.com>
14189
14190 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
14191 obstack.
14192
14193 2020-02-08 Tom Tromey <tom@tromey.com>
14194
14195 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
14196 line_header_hash.
14197 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
14198 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
14199 Change type to htab_up.
14200
14201 2020-02-08 Tom Tromey <tom@tromey.com>
14202
14203 * dwarf2/read.c (allocate_type_unit_groups_table): Return
14204 htab_up. Don't allocate on obstack.
14205 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
14206 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
14207 Change type to htab_up.
14208
14209 2020-02-08 Tom Tromey <tom@tromey.com>
14210
14211 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
14212 Change type to htab_up.
14213 * dwarf2/read.c (create_signatured_type_table_from_index)
14214 (create_signatured_type_table_from_debug_names)
14215 (create_all_type_units, add_type_unit)
14216 (lookup_dwo_signatured_type, lookup_signatured_type)
14217 (process_skeletonless_type_unit): Update.
14218 (create_debug_type_hash_table, create_debug_types_hash_table):
14219 Change type of types_htab.
14220 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
14221 htab_up. Don't allocate on obstack.
14222 (create_cus_hash_table): Change type of cus_htab parameter.
14223 (struct dwo_file) <cus, tus>: Now htab_up.
14224 (lookup_dwo_signatured_type, lookup_dwo_cutu)
14225 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
14226 (queue_and_load_all_dwo_tus): Update.
14227 * dwarf2/index-write.c (write_gdbindex): Update.
14228 (write_debug_names): Update.
14229
14230 2020-02-08 Tom Tromey <tom@tromey.com>
14231
14232 * dwarf2/read.h (struct dwarf2_queue_item): Move from
14233 dwarf2/read.c. Remove "next" member. Add constructor ntad
14234 destructor.
14235 (struct dwarf2_per_objfile) <queue>: New member.
14236 * dwarf2/read.c (struct dwarf2_queue_item): Move to
14237 dwarf2/read.h.
14238 (dwarf2_queue, dwarf2_queue_tail): Remove.
14239 (class dwarf2_queue_guard): Add parameter to constructor. Use
14240 DISABLE_COPY_AND_ASSIGN.
14241 <m_per_objfile>: New member.
14242 <~dwarf2_queue_guard>: Rewrite.
14243 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
14244 Update.
14245 (~dwarf2_queue_item): New.
14246
14247 2020-02-08 Tom Tromey <tom@tromey.com>
14248
14249 * dwarf2/read.c (struct die_info) <has_children>: New member.
14250 (dw2_get_file_names_reader): Remove has_children.
14251 (dw2_get_file_names): Update.
14252 (read_cutu_die_from_dwo): Remove has_children.
14253 (cutu_reader::init_tu_and_read_dwo_dies)
14254 (cutu_reader::cutu_reader): Update.
14255 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
14256 Remove has_children.
14257 (build_type_psymtabs_1, process_skeletonless_type_unit)
14258 (load_partial_comp_unit, load_full_comp_unit): Update.
14259 (create_dwo_cu_reader): Remove has_children.
14260 (create_cus_hash_table, read_die_and_children): Update.
14261 (read_full_die_1,read_full_die): Remove has_children.
14262 (read_signatured_type): Update.
14263 (class cutu_reader) <has_children>: Remove.
14264
14265 2020-02-08 Tom Tromey <tom@tromey.com>
14266
14267 * dwarf2/expr.c: Rename from dwarf2expr.c.
14268 * dwarf2/expr.h: Rename from dwarf2expr.h.
14269 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
14270 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
14271 * dwarf2/frame.c: Rename from dwarf2-frame.c.
14272 * dwarf2/frame.h: Rename from dwarf2-frame.h.
14273 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
14274 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
14275 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
14276 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
14277 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
14278 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
14279 * dwarf2/loc.c: Rename from dwarf2loc.c.
14280 * dwarf2/loc.h: Rename from dwarf2loc.h.
14281 * dwarf2/read.c: Rename from dwarf2read.c.
14282 * dwarf2/read.h: Rename from dwarf2read.h.
14283 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
14284 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
14285 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
14286 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
14287 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
14288 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
14289 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
14290 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
14291 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
14292 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
14293 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
14294 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
14295 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
14296 Update.
14297 * Makefile.in (COMMON_SFILES): Update.
14298 (HFILES_NO_SRCDIR): Update.
14299
14300 2020-02-08 Tom Tromey <tom@tromey.com>
14301
14302 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
14303 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
14304
14305 2020-02-08 Tom Tromey <tom@tromey.com>
14306
14307 * dwarf2read.h (struct die_info): Don't declare.
14308
14309 2020-02-08 Tom Tromey <tom@tromey.com>
14310
14311 * dwarf2read.h (die_info_ptr): Remove typedef.
14312
14313 2020-02-08 Tom Tromey <tom@tromey.com>
14314
14315 * dwarf2read.c (read_call_site_scope)
14316 (handle_data_member_location, dwarf2_add_member_fn)
14317 (mark_common_block_symbol_computed, read_common_block)
14318 (attr_to_dynamic_prop, partial_die_info::read)
14319 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
14320 (dwarf2_symbol_mark_computed, set_die_type): Update.
14321 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
14322 method.
14323 (attr_form_is_block): Don't declare.
14324 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
14325
14326 2020-02-08 Tom Tromey <tom@tromey.com>
14327
14328 * dwarf2read.c (dwarf2_find_base_address, )
14329 (read_call_site_scope, rust_containing_type)
14330 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
14331 (handle_data_member_location, dwarf2_add_member_fn)
14332 (get_alignment, read_structure_type, process_structure_scope)
14333 (mark_common_block_symbol_computed, read_common_block)
14334 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
14335 (partial_die_info::read, read_attribute_value, new_symbol)
14336 (lookup_die_type, dwarf2_get_ref_die_offset)
14337 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
14338 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
14339 (dwarf2_symbol_mark_computed): Update.
14340 * dwarf2/attribute.h (struct attribute) <value_as_address,
14341 form_is_section_offset, form_is_constant, form_is_ref>: Declare
14342 methods.
14343 (value_as_address, attr_form_is_section_offset)
14344 (attr_form_is_constant, attr_form_is_ref): Don't declare.
14345 * dwarf2/attribute.c (attribute::value_as_address)
14346 (attribute::form_is_section_offset, attribute::form_is_constant)
14347 (attribute::form_is_ref): Now methods.
14348
14349 2020-02-08 Tom Tromey <tom@tromey.com>
14350
14351 * dwarf2read.c (struct attribute, DW_STRING)
14352 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
14353 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
14354 (attr_form_is_block, attr_form_is_section_offset)
14355 (attr_form_is_constant, attr_form_is_ref): Move.
14356 * dwarf2/attribute.h: New file.
14357 * dwarf2/attribute.c: New file, from dwarf2read.c.
14358 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
14359
14360 2020-02-08 Tom Tromey <tom@tromey.com>
14361
14362 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
14363 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
14364 Move.
14365 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
14366 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
14367 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
14368 abbrev.c.
14369 * dwarf2/abbrev.h: New file.
14370 * dwarf2/abbrev.c: New file, from dwarf2read.c.
14371 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
14372
14373 2020-02-08 Tom Tromey <tom@tromey.com>
14374
14375 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
14376 (dwarf2_section_size, dwarf2_get_section_info)
14377 (create_signatured_type_table_from_debug_names)
14378 (create_addrmap_from_aranges, read_debug_names_from_section)
14379 (get_gdb_index_contents_from_section, read_comp_unit_head)
14380 (error_check_comp_unit_head, read_abbrev_offset)
14381 (create_debug_type_hash_table, init_cu_die_reader)
14382 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
14383 (read_comp_units_from_section, create_cus_hash_table)
14384 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
14385 (create_dwp_v2_section, dwarf2_rnglists_process)
14386 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
14387 (abbrev_table_read_table, read_indirect_string_at_offset_from)
14388 (read_indirect_string_from_dwz, read_addr_index_1)
14389 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
14390 (dwarf_decode_macro_bytes, dwarf_decode_macros)
14391 (fill_in_loclist_baton): Update.
14392 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
14393 get_containing_section, get_bfd_owner, get_bfd_section,
14394 get_file_name, get_id, get_flags, empty, read>: Declare methods.
14395 (dwarf2_read_section, get_section_name, get_section_file_name)
14396 (get_containing_section, get_section_bfd_owner)
14397 (get_section_bfd_section, get_section_name, get_section_file_name)
14398 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
14399 declare.
14400 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
14401 (dwarf2_section_info::get_bfd_owner)
14402 (dwarf2_section_info::get_bfd_section)
14403 (dwarf2_section_info::get_name)
14404 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
14405 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
14406 (dwarf2_section_info::read): Now methods.
14407 * dwarf-index-write.c (class debug_names): Update.
14408
14409 2020-02-08 Tom Tromey <tom@tromey.com>
14410
14411 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
14412 Move to dwarf2/section.h.
14413 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
14414 (get_section_bfd_section, get_section_name)
14415 (get_section_file_name, get_section_id, get_section_flags)
14416 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
14417 dwarf2/section.c.
14418 * dwarf2/section.h: New file.
14419 * dwarf2/section.c: New file, from dwarf2read.c.
14420 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
14421
14422 2020-02-08 Tom Tromey <tom@tromey.com>
14423
14424 * dwarf2read.h (read_unsigned_leb128): Don't declare.
14425 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
14426 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
14427 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
14428 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
14429 * dwarf2/leb.h: New file, from dwarf2read.c.
14430 * dwarf2/leb.c: New file, from dwarf2read.c.
14431 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
14432 Remove.
14433 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
14434 (COMMON_SFILES): Add dwarf2/leb.c.
14435
14436 2020-02-08 Joel Brobecker <brobecker@adacore.com>
14437
14438 GDB 9.1 released.
14439
14440 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
14441
14442 PR gdb/25190:
14443 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
14444 * gdb/remote.c (remote_console_output): Update.
14445 * gdb/ui-file.c (fputs_unfiltered): Rename to...
14446 (ui_file_puts): ...this.
14447 * gdb/ui-file.h (ui_file_puts): Add declaration.
14448 * gdb/utils.c (emit_style_escape): Update.
14449 (flush_wrap_buffer): Update.
14450 (fputs_maybe_filtered): Update.
14451 (fputs_unfiltered): Add function.
14452
14453 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
14454
14455 * gdb/event-loop.c (gdb_wait_for_event): Update.
14456 * gdb/printcmd.c (printf_command): Update.
14457 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
14458 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
14459 (gdb_os_flush_stderr): Update.
14460 * gdb/remote.c (remote_console_output): Update.
14461 * gdb/ui-file.c (gdb_flush): Rename to...
14462 (ui_file_flush): ...this.
14463 (stderr_file::write): Update.
14464 (stderr_file::puts): Update.
14465 * gdb/ui-file.h (gdb_flush): Rename to...
14466 (ui_file_flush): ...this.
14467 * gdb/utils.c (gdb_flush): Add function.
14468 * gdb/utils.h (gdb_flush): Add declaration.
14469
14470 2020-02-07 Tom Tromey <tromey@adacore.com>
14471
14472 PR breakpoints/24915:
14473 * source.c (find_and_open_source): Do not check basenames_may_differ.
14474
14475 2020-02-07 Tom Tromey <tom@tromey.com>
14476
14477 * README: Update gdbserver documentation.
14478 * gdbserver: Move to top level.
14479 * configure.tgt (build_gdbserver): Remove.
14480 * configure.ac: Remove --enable-gdbserver.
14481 * configure: Rebuild.
14482 * Makefile.in (distclean): Don't mention gdbserver.
14483
14484 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
14485
14486 * source-cache.c (source_cache::ensure): Surround
14487 get_plain_source_lines with a try/catch.
14488 (source_cache::get_line_charpos): Get rid of try/catch
14489 and only check for the return value of "ensure".
14490 * tui/tui-source.c (tui_source_window::set_contents):
14491 Simplify "nlines" calculation.
14492
14493 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
14494
14495 * MAINTAINERS (Write After Approval): Add myself.
14496
14497 2020-02-05 Christian Biesinger <cbiesinger@google.com>
14498
14499 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
14500 function call.
14501
14502 2020-02-05 Christian Biesinger <cbiesinger@google.com>
14503
14504 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
14505
14506 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
14507
14508 * nat/riscv-linux-tdesc.h: New file.
14509 * nat/riscv-linux-tdesc.c: New file, taking code from...
14510 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
14511 ... here.
14512 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
14513 NATDEPFILES.
14514
14515 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
14516
14517 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
14518 we don't set the fake simulator ptid to the null_ptid.
14519
14520 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
14521
14522 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
14523 * gdbthread.h (class thread_info) <resumed>: Likewise.
14524 * infrun.c (resume_1): Likewise.
14525 (proceed): Likewise.
14526 (infrun_thread_stop_requested): Likewise.
14527 (stop_all_threads): Likewise.
14528 (handle_inferior_event): Likewise.
14529 (restart_threads): Likewise.
14530 (finish_step_over): Likewise.
14531 (keep_going_stepped_thread): Likewise.
14532 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
14533 (linux_handle_extended_wait): Likewise.
14534 * record-btrace.c (get_thread_current_frame_id): Likewise.
14535 * record-full.c (record_full_wait_1): Likewise.
14536 * remote.c (remote_target::process_initial_stop_replies): Likewise.
14537 * target.c (target_resume): Likewise.
14538 * thread.c (set_running_thread): Likewise.
14539
14540 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14541
14542 * f-valprint.c (f77_print_array_1): Changed datatype of index
14543 variable to LONGEST from int to enable it to contain bound
14544 values correctly.
14545
14546 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
14547
14548 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
14549 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
14550 offsets according to FLEN determined.
14551 (riscv_linux_nat_target::read_description): Determine FLEN
14552 dynamically.
14553 (riscv_linux_nat_target::fetch_registers): Size regset buffer
14554 according to FLEN determined.
14555 (riscv_linux_nat_target::store_registers): Likewise.
14556
14557 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
14558
14559 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
14560 when reg->group is empty and reggroup is not.
14561
14562 2020-01-31 Tom Tromey <tromey@adacore.com>
14563
14564 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
14565 Call beneath target's mourn_inferior after unpushing.
14566
14567 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
14568
14569 PR tui/9765
14570 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
14571 have enough lines to fill the screen, still return the lowest
14572 address we found.
14573
14574 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
14575
14576 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
14577 '-', '<', and '>' commands.
14578
14579 2020-01-29 Pedro Alves <palves@redhat.com>
14580 Sergio Durigan Junior <sergiodj@redhat.com>
14581
14582 * infcmd.c (construct_inferior_arguments): Assert that
14583 'argc' is greater than 0.
14584
14585 2020-01-29 Luis Machado <luis.machado@linaro.org>
14586
14587 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
14588 (BRK_INSN_MASK): Define to 0xd4200000.
14589 (aarch64_program_breakpoint_here_p): New function.
14590 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
14591 * arch-utils.c (default_program_breakpoint_here_p): Moved from
14592 breakpoint.c.
14593 * arch-utils.h (default_program_breakpoint_here_p): Moved from
14594 breakpoint.h
14595 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
14596 call gdbarch_program_breakpoint_here_p.
14597 (program_breakpoint_here): Moved to arch-utils.c, renamed to
14598 default_program_breakpoint_here_p, changed return type to bool and
14599 simplified.
14600 * breakpoint.h (program_breakpoint_here): Moved prototype to
14601 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
14602 return type to bool.
14603 * gdbarch.c: Regenerate.
14604 * gdbarch.h: Regenerate.
14605 * gdbarch.sh (program_breakpoint_here_p): New method.
14606 * infrun.c (handle_signal_stop): Call
14607 gdbarch_program_breakpoint_here_p.
14608
14609 2020-01-26 Tom Tromey <tom@tromey.com>
14610
14611 * ctfread.c (struct ctf_fp_info): Reindent.
14612 (_initialize_ctfread): Remove.
14613
14614 2020-01-26 Tom Tromey <tom@tromey.com>
14615
14616 * psymtab.c (partial_map_expand_apply)
14617 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
14618 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
14619 (psym_print_stats, psym_expand_symtabs_for_function)
14620 (psym_map_symbol_filenames, psym_map_matching_symbols)
14621 (psym_expand_symtabs_matching)
14622 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
14623 (maintenance_check_psymtabs): Use new methods.
14624 * psympriv.h (struct partial_symtab) <readin_p,
14625 get_compunit_symtab>: New methods.
14626 <readin, compunit_symtab>: Remove members.
14627 (struct standard_psymtab): New.
14628 (struct legacy_psymtab): Derive from standard_psymtab.
14629 * dwarf2read.h (struct dwarf2_psymtab): Derive from
14630 standard_psymtab.
14631 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
14632
14633 2020-01-26 Tom Tromey <tom@tromey.com>
14634
14635 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
14636 read_dependencies. Add assert.
14637 * psymtab.c (partial_symtab::read_dependencies): New method.
14638 * psympriv.h (struct partial_symtab) <read_dependencies>: New
14639 method.
14640 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
14641 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
14642 read_dependencies.
14643 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
14644 Add assert.
14645
14646 2020-01-26 Tom Tromey <tom@tromey.com>
14647
14648 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
14649 Call expand_psymtab.
14650 (xcoff_read_symtab): Call expand_psymtab.
14651 (xcoff_start_psymtab, xcoff_end_psymtab): Set
14652 legacy_expand_psymtab.
14653 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
14654 method.
14655 (struct legacy_psymtab) <expand_psymtab>: Implement.
14656 <legacy_expand_psymtab>: New member.
14657 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
14658 (parse_partial_symbols): Set legacy_expand_psymtab.
14659 (psymtab_to_symtab_1): Change argument order. Call
14660 expand_psymtab.
14661 (new_psymtab): Set legacy_expand_psymtab.
14662 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
14663 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
14664 expand_psymtab.
14665 (dwarf2_psymtab::expand_psymtab): Rename from
14666 psymtab_to_symtab_1. Call expand_psymtab.
14667 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
14668 (dbx_end_psymtab): Likewise.
14669 (dbx_psymtab_to_symtab_1): Change argument order. Call
14670 expand_psymtab.
14671 (dbx_read_symtab): Call expand_psymtab.
14672 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
14673 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
14674 (ctf_psymtab::read_symtab): Call expand_psymtab.
14675
14676 2020-01-26 Tom Tromey <tom@tromey.com>
14677
14678 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
14679 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
14680 messages.
14681 * mdebugread.c (mdebug_read_symtab): Remove prints.
14682 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
14683 assert.
14684 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
14685
14686 2020-01-26 Tom Tromey <tom@tromey.com>
14687
14688 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
14689 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
14690 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
14691 legacy_symtab.
14692 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
14693 * psymtab.c (psymtab_to_symtab): Call method.
14694 (dump_psymtab): Update.
14695 * psympriv.h (struct partial_symtab): Add virtual destructor.
14696 <read_symtab>: New method.
14697 (struct legacy_symtab): New.
14698 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
14699 (struct pst_map) <pst>: Now a legacy_psymtab.
14700 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
14701 (new_psymtab): Use legacy_psymtab.
14702 * dwarf2read.h (struct dwarf2_psymtab): New.
14703 (struct dwarf2_per_cu_data) <psymtab>: Use it.
14704 * dwarf2read.c (dwarf2_create_include_psymtab)
14705 (dwarf2_build_include_psymtabs, create_type_unit_group)
14706 (create_partial_symtab, process_psymtab_comp_unit_reader)
14707 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
14708 (set_partial_user): Use dwarf2_psymtab.
14709 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
14710 (psymtab_to_symtab_1, process_full_comp_unit)
14711 (process_full_type_unit, dwarf2_ranges_read)
14712 (dwarf2_get_pc_bounds, psymtab_include_file_name)
14713 (dwarf_decode_lines): Use dwarf2_psymtab.
14714 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
14715 (add_address_entry_worker, write_one_signatured_type)
14716 (recursively_count_psymbols, recursively_write_psymbols)
14717 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
14718 (write_debug_names): Likewise.
14719 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
14720 <pst>: Now a legacy_psymtab.
14721 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
14722 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
14723 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
14724 * ctfread.c (struct ctf_psymtab): New.
14725 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
14726 ctf_psymtab.
14727 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
14728 (create_partial_symtab): Return a ctf_psymtab.
14729 (scan_partial_symbols): Update.
14730
14731 2020-01-26 Tom Tromey <tom@tromey.com>
14732
14733 * xcoffread.c (xcoff_start_psymtab): Use new.
14734 * psymtab.c (partial_symtab::partial_symtab): New constructor,
14735 renamed from start_psymtab_common.
14736 * psympriv.h (struct partial_symtab): Add new constructor.
14737 (start_psymtab_common): Don't declare.
14738 * mdebugread.c (parse_partial_symbols): Use new.
14739 * dwarf2read.c (create_partial_symtab): Use new.
14740 * dbxread.c (start_psymtab): Use new.
14741 * ctfread.c (create_partial_symtab): Use new.
14742
14743 2020-01-26 Tom Tromey <tom@tromey.com>
14744
14745 * xcoffread.c (xcoff_end_psymtab): Use new.
14746 * psymtab.c (start_psymtab_common): Use new.
14747 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
14748 Update.
14749 * psympriv.h (struct partial_symtab): Add parameters to
14750 constructor. Don't inline.
14751 (allocate_psymtab): Don't declare.
14752 * mdebugread.c (new_psymtab): Use new.
14753 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
14754 * dbxread.c (dbx_end_psymtab): Use new.
14755
14756 2020-01-26 Tom Tromey <tom@tromey.com>
14757
14758 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
14759 allocate_psymtab. Update documentation.
14760 * psymtab.c (psymtab_storage::install_psymtab): Rename from
14761 allocate_psymtab. Do not use new.
14762 (allocate_psymtab): Use new. Update.
14763
14764 2020-01-26 Tom Tromey <tom@tromey.com>
14765
14766 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
14767 * psymtab.c (psym_print_stats): Update.
14768 * psympriv.h (struct partial_symtab) <readin,
14769 psymtabs_addrmap_supported, anonymous>: Now bool.
14770 * mdebugread.c (psymtab_to_symtab_1): Update.
14771 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
14772 (build_type_psymtabs_reader, psymtab_to_symtab_1)
14773 (process_full_comp_unit, process_full_type_unit): Update.
14774 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
14775 * ctfread.c (psymtab_to_symtab): Update.
14776
14777 2020-01-26 Tom Tromey <tom@tromey.com>
14778
14779 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
14780 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
14781 * psymtab.c (psymtab_storage): Delete psymtabs.
14782 (psymtab_storage::allocate_psymtab): Use new.
14783 (psymtab_storage::discard_psymtab): Use delete.
14784 * psympriv.h (struct partial_symtab): Add constructor and
14785 initializers.
14786
14787 2020-01-26 Tom Tromey <tom@tromey.com>
14788
14789 * machoread.c: Do not include psympriv.h.
14790
14791 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14792
14793 * NEWS: Mention the new option and the set/show commands.
14794
14795 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14796
14797 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
14798 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
14799 (validate_exec_file): New variables, enums, functions.
14800 (exec_file_locate_attach, print_section_info): Style the filenames.
14801 (_initialize_exec): Install show_exec_file_mismatch_command and
14802 set_exec_file_mismatch_command.
14803 * gdbcore.h (validate_exec_file): Declare.
14804 * infcmd.c (attach_command): Call validate_exec_file.
14805 * remote.c ( remote_target::remote_add_inferior): Likewise.
14806
14807 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14808
14809 * frame.c (find_frame_sal): Move call to get_next_frame into more
14810 inner scope.
14811 * inline-frame.c (inilne_state) <inline_state>: Update argument
14812 types.
14813 (inilne_state) <skipped_symbol>: Rename to...
14814 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
14815 (skip_inline_frames): Build vector of skipped symbols and use this
14816 to reate the inline_state.
14817 (inline_skipped_symbol): Add a comment and some assertions, fetch
14818 skipped symbol from the list.
14819
14820 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14821
14822 * buildsym.c (lte_is_less_than): Delete.
14823 (buildsym_compunit::end_symtab_with_blockvector): Create local
14824 lambda function to sort line table entries, and use
14825 std::stable_sort instead of std::sort.
14826 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
14827 markers when looking for a previous line.
14828
14829 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14830
14831 * dwarf2read.c (lnp_state_machine::record_line): Include
14832 end_sequence parameter in debug print out. Record the line if we
14833 are at an end_sequence marker even if it's not the start of a
14834 statement.
14835 * symmisc.c (maintenance_print_one_line_table): Print end of
14836 sequence markers with 'END' not '0'.
14837
14838 2020-01-24 Pedro Alves <palves@redhat.com>
14839
14840 PR gdb/25410
14841 * thread.c (scoped_restore_current_thread::restore): Use
14842 switch_to_inferior_no_thread.
14843 * exec.c: Include "progspace-and-thread.h".
14844 (add_target_sections, remove_target_sections):
14845 scoped_restore_current_pspace_and_thread instead of
14846 scoped_restore_current_thread.
14847 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
14848 and aspace to the inferior before calling clone_program_space.
14849 Remove stale comment.
14850
14851 2020-01-24 Christian Biesinger <cbiesinger@google.com>
14852
14853 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
14854 (arm_netbsd_nat_target::fetch_registers): ...this.
14855 (arm_nbsd_nat_target::store_registers): Rename to...
14856 (arm_netbsd_nat_target::store_registers): ...this.
14857
14858 2020-01-24 Christian Biesinger <cbiesinger@google.com>
14859
14860 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
14861 register_t.
14862
14863 2020-01-24 Christian Biesinger <cbiesinger@google.com>
14864
14865 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
14866 Update comment.
14867 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
14868 Likewise.
14869 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
14870 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
14871 the correct replacement (iterate_over_regset_sections).
14872 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
14873 Update comment.
14874
14875 2020-01-24 Graham Markall <graham.markall@embecosm.com>
14876
14877 PR gdb/23718
14878 * gdb/python/python.c (execute_gdb_command): Call
14879 async_enable_stdin in catch block.
14880
14881 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14882
14883 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
14884 SWITCH_THRU_ALL_UIS.
14885
14886 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14887
14888 PR tui/9765
14889 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
14890 comment, add extra parameter, and update to store previous symbol
14891 when appropriate.
14892 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
14893 add extra parameter.
14894 * tui/tui-disasm.c (tui_disassemble): Update header comment,
14895 remove unneeded parameter, add try/catch around gdb_print_insn,
14896 rewrite to add items to asm_lines vector.
14897 (tui_find_backward_disassembly_start_address): New function.
14898 (tui_find_disassembly_address): Updated throughout.
14899 (tui_disasm_window::set_contents): Update for changes to
14900 tui_disassemble.
14901 (tui_disasm_window::do_scroll_vertical): No need to adjust the
14902 number of lines to scroll.
14903
14904 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
14905
14906 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
14907 (SECT_OFF_DATA): Likewise.
14908 (SECT_OFF_RODATA): Likewise.
14909 (SECT_OFF_TEXT): Likewise.
14910 (SECT_OFF_BSS): Likewise.
14911 (struct objfile) <text_section_offset, data_section_offset>: New
14912 methods.
14913 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
14914 objfile::text_section_offset.
14915 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
14916 * coffread.c (coff_symtab_read): Likewise.
14917 (enter_linenos): Likewise.
14918 (process_coff_symbol): Likewise.
14919 * ctfread.c (get_objfile_text_range): Likewise.
14920 * dtrace-probe.c (dtrace_probe::get_relocated_address):
14921 Use objfile::data_section_offset.
14922 * dwarf2-frame.c (execute_cfa_program): Use
14923 objfile::text_section_offset.
14924 (dwarf2_frame_find_fde): Likewise.
14925 * dwarf2read.c (create_addrmap_from_index): Likewise.
14926 (create_addrmap_from_aranges): Likewise.
14927 (dw2_find_pc_sect_compunit_symtab): Likewise.
14928 (process_psymtab_comp_unit_reader): Likewise.
14929 (add_partial_symbol): Likewise.
14930 (add_partial_subprogram): Likewise.
14931 (process_full_comp_unit): Likewise.
14932 (read_file_scope): Likewise.
14933 (read_func_scope): Likewise.
14934 (read_lexical_block_scope): Likewise.
14935 (read_call_site_scope): Likewise.
14936 (dwarf2_rnglists_process): Likewise.
14937 (dwarf2_ranges_process): Likewise.
14938 (dwarf2_ranges_read): Likewise.
14939 (dwarf_decode_lines_1): Likewise.
14940 (new_symbol): Likewise.
14941 (dwarf2_fetch_die_loc_sect_off): Likewise.
14942 (dwarf2_per_cu_text_offset): Likewise.
14943 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
14944 * hppa-tdep.c (read_unwind_info): Likewise.
14945 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
14946 * psympriv.h (struct partial_symtab): Likewise.
14947 * psymtab.c (find_pc_sect_psymtab): Likewise.
14948 * solib-svr4.c (enable_break): Likewise.
14949 * stap-probe.c (relocate_address): Use
14950 objfile::data_section_offset.
14951 * xcoffread.c (enter_line_range): Use
14952 objfile::text_section_offset.
14953 (read_xcoff_symtab): Likewise.
14954
14955 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
14956
14957 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
14958 declaration to narrower scopes.
14959
14960 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
14961
14962 * darwin-nat.h (struct darwin_exception_msg, enum
14963 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
14964 Move up.
14965 (class darwin_nat_target) <wait_1, check_new_threads,
14966 decode_exception_message, decode_message, stop_inferior,
14967 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
14968 * darwin-nat.c (darwin_check_new_threads): Rename to...
14969 (darwin_nat_target::check_new_threads): ... this.
14970 (darwin_suspend_inferior_it): Remove.
14971 (darwin_decode_exception_message): Rename to...
14972 (darwin_nat_target::decode_exception_message): ... this.
14973 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
14974 (darwin_decode_message): Rename to...
14975 (darwin_nat_target::decode_message): ... this.
14976 (cancel_breakpoint): Rename to...
14977 (darwin_nat_target::cancel_breakpoint): ... this.
14978 (darwin_wait): Rename to...
14979 (darwin_nat_target::wait_1): ... this. Use range-based for loop
14980 instead of iterate_over_inferiors.
14981 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
14982 (darwin_stop_inferior): Rename to...
14983 (darwin_nat_target::stop_inferior): ... this.
14984 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
14985 (darwin_init_thread_list): Rename to...
14986 (darwin_nat_target::init_thread_list): ... this.
14987 (darwin_ptrace_him): Rename to...
14988 (darwin_nat_target::ptrace_him): ... this.
14989 (darwin_nat_target::create_inferior): Pass lambda function to
14990 fork_inferior.
14991 (darwin_nat_target::detach): Call stop_inferior instead of
14992 darwin_stop_inferior.
14993 * fork-inferior.h (fork_inferior): Change init_trace_fun
14994 parameter to gdb::function_view.
14995 * fork-inferior.c (fork_inferior): Likewise.
14996
14997 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
14998
14999 * i386-cygwin-tdep.c (core_process_module_section): Update.
15000 * windows-nat.c (struct lm_info_windows): Add text_offset.
15001 (windows_xfer_shared_libraries): Update.
15002 * windows-tdep.c (windows_xfer_shared_library):
15003 Add text_offset_cached argument.
15004 * windows-tdep.h (windows_xfer_shared_library): Update.
15005
15006 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
15007
15008 * gdbarch.sh: Add declaration for _initialize_gdbarch.
15009
15010 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
15011
15012 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
15013 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
15014 replace with range-based for.
15015 (gdbsim_interrupt_inferior): Remove.
15016 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
15017 with a range-based for. Inline code from
15018 gdbsim_interrupt_inferior.
15019
15020 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
15021
15022 * infrun.c (proceed): Fix indentation.
15023
15024 2020-01-21 Tom Tromey <tromey@adacore.com>
15025
15026 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
15027 * python/python.c (python_extension_ops): Update.
15028 (gdbpy_colorize): New function.
15029 * python/lib/gdb/__init__.py (colorize): New function.
15030 * extension.h (ext_lang_colorize): Declare.
15031 * extension.c (ext_lang_colorize): New function.
15032 * extension-priv.h (struct extension_language_ops) <colorize>: New
15033 member.
15034 * cli/cli-style.c (_initialize_cli_style): Update help text.
15035
15036 2020-01-21 Luis Machado <luis.machado@linaro.org>
15037
15038 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
15039 <cond>: Change type to bool.
15040 (aarch64_displaced_step_b_cond): Update cond to use bool type.
15041 (aarch64_displaced_step_cb): Likewise.
15042 (aarch64_displaced_step_tb): Likewise.
15043
15044 2020-01-21 Luis Machado <luis.machado@linaro.org>
15045
15046 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
15047 output.
15048
15049 2020-01-21 Luis Machado <luis.machado@linaro.org>
15050
15051 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
15052 <pc_adjust>: Adjust the documentation.
15053 (aarch64_displaced_step_fixup): Check if PC really moved before
15054 adjusting it.
15055
15056 2020-01-19 Tom Tromey <tom@tromey.com>
15057
15058 * disasm.c (~gdb_disassembler): New destructor.
15059 (gdb_buffered_insn_length): Call disassemble_free_target.
15060 * disasm.h (class gdb_disassembler): Declare destructor. Use
15061 DISABLE_COPY_AND_ASSIGN.
15062
15063 2020-01-19 Tom Tromey <tom@tromey.com>
15064
15065 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
15066 (die_reader_func_ftype): Remove.
15067 (cutu_reader): New class.
15068 (dw2_get_file_names_reader): Remove "data" parameter.
15069 (dw2_get_file_names): Use cutu_reader.
15070 (create_debug_type_hash_table): Update.
15071 (read_cutu_die_from_dwo): Update comment.
15072 (lookup_dwo_unit): Add dwo_name parameter.
15073 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
15074 die_reader_func_ftype and data parameters.
15075 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
15076 Remove die_reader_func_ftype and data parameters.
15077 (~cutu_reader): New; from init_cutu_and_read_dies.
15078 (cutu_reader::cutu_reader): Rename from
15079 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
15080 and data parameters.
15081 (init_cutu_and_read_dies_simple): Remove.
15082 (struct process_psymtab_comp_unit_data): Remove.
15083 (process_psymtab_comp_unit_reader): Remove data parameter; add
15084 want_partial_unit and pretend_language parameters.
15085 (process_psymtab_comp_unit): Use cutu_reader.
15086 (build_type_psymtabs_reader): Remove data parameter.
15087 (build_type_psymtabs_1): Use cutu_reader.
15088 (process_skeletonless_type_unit): Likewise.
15089 (load_partial_comp_unit_reader): Remove.
15090 (load_partial_comp_unit): Use cutu_reader.
15091 (load_full_comp_unit_reader): Remove.
15092 (load_full_comp_unit): Use cutu_reader.
15093 (struct create_dwo_cu_data): Remove.
15094 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
15095 dwo_unit parameters.
15096 (create_cus_hash_table): Use cutu_reader.
15097 (struct dwarf2_read_addr_index_data): Remove.
15098 (dwarf2_read_addr_index_reader): Remove.
15099 (dwarf2_read_addr_index): Use cutu_reader.
15100 (read_signatured_type_reader): Remove.
15101 (read_signatured_type): Use cutu_reader.
15102
15103 2020-01-19 Tom Tromey <tom@tromey.com>
15104
15105 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
15106 * tui/tui-wingeneral.h (class tui_suppress_output): New.
15107 (tui_wrefresh): Declare.
15108 * tui/tui-wingeneral.c (suppress_output): New global.
15109 (tui_suppress_output, ~tui_suppress_output): New constructor and
15110 destructor.
15111 (tui_wrefresh): New function.
15112 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
15113 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
15114 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
15115 method.
15116 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
15117 tui_wrefresh.
15118 (tui_data_window::no_refresh): New method.
15119 (tui_data_item_window::refresh_window): Call tui_wrefresh.
15120 (tui_reg_command): Use tui_suppress_output
15121 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
15122 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
15123 method.
15124 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
15125
15126 2020-01-19 Tom Tromey <tom@tromey.com>
15127
15128 * tui/tui-winsource.c (tui_update_source_windows_with_line):
15129 Handle case where symtab is null.
15130
15131 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
15132
15133 * linux-fork.c (one_fork_p): Simplify.
15134
15135 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15136
15137 * top.c (struct qt_args): Remove.
15138 (kill_or_detach): Change return type to void, replace `void *`
15139 parameter with a proper one.
15140 (print_inferior_quit_action): Likewise.
15141 (quit_confirm): Use range-based for loop to iterate over inferiors.
15142 (quit_force): Likewise.
15143
15144 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15145
15146 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
15147 `void *` parameter with proper parameters.
15148 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
15149 (print_one_inferior): Change return type to void, replace `void *`
15150 parameter with proper parameters.
15151 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
15152 inferiors.
15153 (get_other_inferior): Remove.
15154 (mi_cmd_remove_inferior): Use range-based loop to iterate over
15155 inferiors.
15156
15157 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15158
15159 * mi/mi-interp.c (report_initial_inferior): Remove.
15160 (mi_interp::init): Use range-based for to iterate over inferiors.
15161
15162 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15163
15164 * python/py-inferior.c (build_inferior_list): Remove.
15165 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
15166
15167 2020-01-16 Christian Biesinger <cbiesinger@google.com>
15168
15169 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
15170 (btrace_stitch_trace): Likewise.
15171 * charset.c (intermediate_encoding): Likewise (vaild).
15172 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
15173 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
15174 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
15175
15176 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
15177
15178 * windows-tdep.c (windows_get_tlb_type):
15179 Add rtl_user_process_parameters type.
15180
15181 2020-01-16 Pedro Alves <palves@redhat.com>
15182 Norbert Lange <nolange79@gmail.com>
15183
15184 PR build/24805
15185 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
15186 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
15187 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
15188 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
15189 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
15190 (ps_plog): Redeclare exported functions with default visibility.
15191
15192 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
15193
15194 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
15195 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
15196
15197 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
15198
15199 * infcmd.c (post_create_inferior): Use get_thread_regcache
15200 instead of get_current_regcache.
15201
15202 2020-01-14 Tom Tromey <tom@tromey.com>
15203
15204 PR symtab/12535:
15205 * python/python.c (gdbpy_decode_line): Treat empty string the same
15206 as no argument.
15207
15208 2020-01-14 Tom Tromey <tom@tromey.com>
15209
15210 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
15211
15212 2020-01-14 Tom Tromey <tom@tromey.com>
15213
15214 * nat/linux-btrace.c: Don't include <config.h>.
15215 * nat/linux-ptrace.c: Don't include <config.h>.
15216 * nat/x86-linux-dregs.c: Don't include <config.h>.
15217
15218 2020-01-14 Tom Tromey <tom@tromey.com>
15219
15220 * configure: Rebuild.
15221 * configure.ac: Move many checks to ../gdbsupport/common.m4.
15222
15223 2020-01-14 Tom Tromey <tom@tromey.com>
15224
15225 * nat/x86-linux-dregs.c: Include configh.h.
15226 * nat/linux-ptrace.c: Include configh.h.
15227 * nat/linux-btrace.c: Include configh.h.
15228 * defs.h: Include config.h, bfd.h.
15229 * configure.ac: Don't source common.host.
15230 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
15231 * configure: Rebuild.
15232 * acinclude.m4: Update path.
15233 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
15234 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
15235 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
15236 (CLIBS): Add LIBSUPPORT.
15237 (CDEPS): Likewise.
15238 (COMMON_SFILES): Remove gdbsupport files.
15239 (HFILES_NO_SRCDIR): Likewise.
15240 (stamp-version): Update path to create-version.sh.
15241 (ALLDEPFILES): Remove gdbsupport files.
15242
15243 2020-01-14 Tom Tromey <tom@tromey.com>
15244
15245 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
15246 USE_WIN32API when needed.
15247 * configure.ac (USE_WIN32API): Don't define.
15248 (WIN32LIBS): Use WIN32APILIBS.
15249 * configure: Rebuild.
15250
15251 2020-01-14 Tom Tromey <tom@tromey.com>
15252
15253 * configure: Rebuild.
15254 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
15255
15256 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
15257
15258 * skip.c (skip_function_command): Make skip w/o arguments use the
15259 name of the inlined function if pc is inside any inlined function.
15260
15261 2020-01-14 Luis Machado <luis.machado@linaro.org>
15262
15263 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
15264 * infrun.c (resume_1): Likewise.
15265 (handle_inferior_event): Remove stale comment.
15266 * linux-nat.c (linux_nat_target::resume): Update comments.
15267 (save_stop_reason): Likewise.
15268 (linux_nat_filter_event): Likewise.
15269 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
15270
15271 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15272
15273 * elfread.c (record_minimal_symbol): Set section index to 0 for
15274 non-allocatable sections.
15275
15276
15277 2020-01-13 Ali Tamur <tamur@google.com>
15278
15279 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
15280 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
15281 to gdb::optional. Update comments.
15282 (dwo_file): Update comments.
15283 (read_attribute): Update API to take an additional out parameter,
15284 need_reprocess. This is used to mark attributes that need other
15285 attributes (e.g. str_offsets_base) for correct computation which may not
15286 have been read yet.
15287 (read_attribute_reprocess): New function declaration.
15288 (read_addr_index): Likewise.
15289 (read_dwo_str_index): Likewise.
15290 (read_stub_str_index): Likewise.
15291 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
15292 (lookup_addr_base): New function definition.
15293 (lookup_ranges_base): Likewise.
15294 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
15295 lookup_ranges_base.
15296 (init_cutu_and_read_dies): Update comments.
15297 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
15298 unit. This is used to inherit parent's str_offsets_base and addr_base.
15299 Update comments.
15300 (init_cutu_and_read_dies_simple): Reflect API changes.
15301 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
15302 (create_cus_hash_table): Change API to take parent compile unit.
15303 Reflect API changes.
15304 (open_and_init_dwo_file): Reflect API changes.
15305 (dwarf2_get_pc_bounds): Update comments.
15306 (dwarf2_record_block_ranges): Likewise.
15307 (read_full_die_1): Change implementation to reprocess attributes that
15308 need str_offsets_base and addr_base.
15309 (partial_die_info::read): Likewise.
15310 (read_attribute_reprocess): New function definition.
15311 (read_attribute_value): Change API to take an additional out parameter,
15312 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
15313 when a non-dwo compile unit has index based attributes.
15314 (read_attribute): Reflect API changes.
15315 (read_addr_index_1): Reflect API changes. Update comments.
15316 (dwarf2_read_addr_index_data): Reflect API changes.
15317 (dwarf2_read_addr_index): Likewise.
15318 (read_str_index): Change API and implementation. This becomes a helper
15319 to be used by the new string index related methods. Update error
15320 message and comments.
15321 (read_dwo_str_index): New function definition.
15322 (read_stub_str_index): Likewise.
15323 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
15324 * symfile.h (dwarf2_debug_sections): Likewise.
15325 * xcoffread.c (dwarf2_debug_sections): Likewise.
15326
15327 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
15328
15329 * gdbcore.h (struct core_fns) <core_read_registers>: Change
15330 core_reg_sect type to gdb_byte *.
15331 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
15332 * cris-tdep.c (fetch_core_registers): Likewise.
15333 * corelow.c (core_target::get_core_register_section): Change
15334 type of `contents` to gdb::byte_vector.
15335
15336 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15337
15338 * tui/tui-wingeneral.c (box_win): Position the title in the center
15339 of the border.
15340
15341 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15342
15343 * corelow.c (core_target::get_core_register_section): Use
15344 std::vector instead of alloca.
15345
15346 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
15347
15348 * warning.m4: Add -Wmissing-declarations to build_warnings.
15349 * configure: Re-generate.
15350
15351 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
15352
15353 * python/python.c (init__gdb_module): Add declaration.
15354
15355 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
15356
15357 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
15358 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
15359 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
15360 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
15361 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
15362 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
15363 * ada-exp.y (_initialize_ada_exp): Add declaration.
15364 * ada-lang.c (_initialize_ada_language): Add declaration.
15365 * ada-tasks.c (_initialize_tasks): Add declaration.
15366 * agent.c (_initialize_agent): Add declaration.
15367 * aix-thread.c (_initialize_aix_thread): Add declaration.
15368 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
15369 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
15370 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
15371 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
15372 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
15373 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
15374 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
15375 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
15376 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
15377 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
15378 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
15379 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
15380 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
15381 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
15382 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
15383 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
15384 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
15385 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
15386 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
15387 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
15388 * annotate.c (_initialize_annotate): Add declaration.
15389 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
15390 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
15391 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
15392 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
15393 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
15394 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
15395 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
15396 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
15397 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
15398 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
15399 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
15400 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
15401 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
15402 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
15403 * auto-load.c (_initialize_auto_load): Add declaration.
15404 * auxv.c (_initialize_auxv): Add declaration.
15405 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
15406 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
15407 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
15408 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
15409 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
15410 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
15411 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
15412 * breakpoint.c (_initialize_breakpoint): Add declaration.
15413 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
15414 * btrace.c (_initialize_btrace): Add declaration.
15415 * charset.c (_initialize_charset): Add declaration.
15416 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
15417 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
15418 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
15419 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
15420 * cli/cli-script.c (_initialize_cli_script): Add declaration.
15421 * cli/cli-style.c (_initialize_cli_style): Add declaration.
15422 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
15423 * coffread.c (_initialize_coffread): Add declaration.
15424 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
15425 * compile/compile.c (_initialize_compile): Add declaration.
15426 * complaints.c (_initialize_complaints): Add declaration.
15427 * completer.c (_initialize_completer): Add declaration.
15428 * copying.c (_initialize_copying): Add declaration.
15429 * corefile.c (_initialize_core): Add declaration.
15430 * corelow.c (_initialize_corelow): Add declaration.
15431 * cp-abi.c (_initialize_cp_abi): Add declaration.
15432 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
15433 * cp-support.c (_initialize_cp_support): Add declaration.
15434 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
15435 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
15436 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
15437 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
15438 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
15439 * ctfread.c (_initialize_ctfread): Add declaration.
15440 * d-lang.c (_initialize_d_language): Add declaration.
15441 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
15442 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
15443 * dbxread.c (_initialize_dbxread): Add declaration.
15444 * dcache.c (_initialize_dcache): Add declaration.
15445 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
15446 * disasm.c (_initialize_disasm): Add declaration.
15447 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
15448 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
15449 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
15450 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
15451 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
15452 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
15453 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
15454 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
15455 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
15456 * elfread.c (_initialize_elfread): Add declaration.
15457 * exec.c (_initialize_exec): Add declaration.
15458 * extension.c (_initialize_extension): Add declaration.
15459 * f-lang.c (_initialize_f_language): Add declaration.
15460 * f-valprint.c (_initialize_f_valprint): Add declaration.
15461 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
15462 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
15463 * filesystem.c (_initialize_filesystem): Add declaration.
15464 * findcmd.c (_initialize_mem_search): Add declaration.
15465 * findvar.c (_initialize_findvar): Add declaration.
15466 * fork-child.c (_initialize_fork_child): Add declaration.
15467 * frame-base.c (_initialize_frame_base): Add declaration.
15468 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
15469 * frame.c (_initialize_frame): Add declaration.
15470 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
15471 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
15472 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
15473 * gcore.c (_initialize_gcore): Add declaration.
15474 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
15475 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
15476 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
15477 * gdbarch.c (_initialize_gdbarch): Add declaration.
15478 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
15479 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
15480 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
15481 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
15482 * go-lang.c (_initialize_go_language): Add declaration.
15483 * go32-nat.c (_initialize_go32_nat): Add declaration.
15484 * guile/guile.c (_initialize_guile): Add declaration.
15485 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
15486 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
15487 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
15488 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
15489 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
15490 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
15491 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
15492 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
15493 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
15494 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
15495 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
15496 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
15497 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
15498 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
15499 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
15500 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
15501 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
15502 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
15503 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
15504 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
15505 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
15506 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
15507 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
15508 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
15509 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
15510 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
15511 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
15512 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
15513 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
15514 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
15515 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
15516 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
15517 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
15518 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
15519 * infcall.c (_initialize_infcall): Add declaration.
15520 * infcmd.c (_initialize_infcmd): Add declaration.
15521 * inflow.c (_initialize_inflow): Add declaration.
15522 * infrun.c (_initialize_infrun): Add declaration.
15523 * interps.c (_initialize_interpreter): Add declaration.
15524 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
15525 * jit.c (_initialize_jit): Add declaration.
15526 * language.c (_initialize_language): Add declaration.
15527 * linux-fork.c (_initialize_linux_fork): Add declaration.
15528 * linux-nat.c (_initialize_linux_nat): Add declaration.
15529 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
15530 * linux-thread-db.c (_initialize_thread_db): Add declaration.
15531 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
15532 * m2-lang.c (_initialize_m2_language): Add declaration.
15533 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
15534 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
15535 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
15536 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
15537 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
15538 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
15539 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
15540 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
15541 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
15542 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
15543 * machoread.c (_initialize_machoread): Add declaration.
15544 * macrocmd.c (_initialize_macrocmd): Add declaration.
15545 * macroscope.c (_initialize_macroscope): Add declaration.
15546 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
15547 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
15548 * maint.c (_initialize_maint_cmds): Add declaration.
15549 * mdebugread.c (_initialize_mdebugread): Add declaration.
15550 * memattr.c (_initialize_mem): Add declaration.
15551 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
15552 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
15553 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
15554 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
15555 * mi/mi-main.c (_initialize_mi_main): Add declaration.
15556 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
15557 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
15558 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
15559 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
15560 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
15561 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
15562 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
15563 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
15564 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
15565 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
15566 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
15567 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
15568 * mipsread.c (_initialize_mipsread): Add declaration.
15569 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
15570 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
15571 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
15572 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
15573 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
15574 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
15575 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
15576 * nto-procfs.c (_initialize_procfs): Add declaration.
15577 * objc-lang.c (_initialize_objc_language): Add declaration.
15578 * observable.c (_initialize_observer): Add declaration.
15579 * opencl-lang.c (_initialize_opencl_language): Add declaration.
15580 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
15581 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
15582 * osabi.c (_initialize_gdb_osabi): Add declaration.
15583 * osdata.c (_initialize_osdata): Add declaration.
15584 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
15585 * parse.c (_initialize_parse): Add declaration.
15586 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
15587 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
15588 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
15589 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
15590 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
15591 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
15592 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
15593 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
15594 * printcmd.c (_initialize_printcmd): Add declaration.
15595 * probe.c (_initialize_probe): Add declaration.
15596 * proc-api.c (_initialize_proc_api): Add declaration.
15597 * proc-events.c (_initialize_proc_events): Add declaration.
15598 * proc-service.c (_initialize_proc_service): Add declaration.
15599 * procfs.c (_initialize_procfs): Add declaration.
15600 * producer.c (_initialize_producer): Add declaration.
15601 * psymtab.c (_initialize_psymtab): Add declaration.
15602 * python/python.c (_initialize_python): Add declaration.
15603 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
15604 * record-btrace.c (_initialize_record_btrace): Add declaration.
15605 * record-full.c (_initialize_record_full): Add declaration.
15606 * record.c (_initialize_record): Add declaration.
15607 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
15608 * regcache.c (_initialize_regcache): Add declaration.
15609 * reggroups.c (_initialize_reggroup): Add declaration.
15610 * remote-notif.c (_initialize_notif): Add declaration.
15611 * remote-sim.c (_initialize_remote_sim): Add declaration.
15612 * remote.c (_initialize_remote): Add declaration.
15613 * reverse.c (_initialize_reverse): Add declaration.
15614 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
15615 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
15616 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
15617 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
15618 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
15619 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
15620 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
15621 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
15622 Add declaration.
15623 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
15624 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
15625 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
15626 * rust-exp.y (_initialize_rust_exp): Add declaration.
15627 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
15628 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
15629 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
15630 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
15631 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
15632 * score-tdep.c (_initialize_score_tdep): Add declaration.
15633 * ser-go32.c (_initialize_ser_dos): Add declaration.
15634 * ser-mingw.c (_initialize_ser_windows): Add declaration.
15635 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
15636 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
15637 * ser-uds.c (_initialize_ser_socket): Add declaration.
15638 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
15639 * serial.c (_initialize_serial): Add declaration.
15640 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
15641 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
15642 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
15643 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
15644 * skip.c (_initialize_step_skip): Add declaration.
15645 * sol-thread.c (_initialize_sol_thread): Add declaration.
15646 * solib-aix.c (_initialize_solib_aix): Add declaration.
15647 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
15648 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
15649 * solib-frv.c (_initialize_frv_solib): Add declaration.
15650 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
15651 * solib-target.c (_initialize_solib_target): Add declaration.
15652 * solib.c (_initialize_solib): Add declaration.
15653 * source-cache.c (_initialize_source_cache): Add declaration.
15654 * source.c (_initialize_source): Add declaration.
15655 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
15656 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
15657 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
15658 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
15659 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
15660 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
15661 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
15662 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
15663 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
15664 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
15665 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
15666 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
15667 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
15668 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
15669 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
15670 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
15671 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
15672 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
15673 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
15674 * stabsread.c (_initialize_stabsread): Add declaration.
15675 * stack.c (_initialize_stack): Add declaration.
15676 * stap-probe.c (_initialize_stap_probe): Add declaration.
15677 * std-regs.c (_initialize_frame_reg): Add declaration.
15678 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
15679 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
15680 * symfile.c (_initialize_symfile): Add declaration.
15681 * symmisc.c (_initialize_symmisc): Add declaration.
15682 * symtab.c (_initialize_symtab): Add declaration.
15683 * target.c (_initialize_target): Add declaration.
15684 * target-connection.c (_initialize_target_connection): Add
15685 declaration.
15686 * target-dcache.c (_initialize_target_dcache): Add declaration.
15687 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
15688 * thread.c (_initialize_thread): Add declaration.
15689 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
15690 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
15691 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
15692 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
15693 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
15694 * tracectf.c (_initialize_ctf): Add declaration.
15695 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
15696 * tracefile.c (_initialize_tracefile): Add declaration.
15697 * tracepoint.c (_initialize_tracepoint): Add declaration.
15698 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
15699 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
15700 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
15701 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
15702 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
15703 * tui/tui-win.c (_initialize_tui_win): Add declaration.
15704 * tui/tui.c (_initialize_tui): Add declaration.
15705 * typeprint.c (_initialize_typeprint): Add declaration.
15706 * ui-style.c (_initialize_ui_style): Add declaration.
15707 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
15708 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
15709 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
15710 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
15711 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
15712 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
15713 * unittests/filtered_iterator-selftests.c
15714 (_initialize_filtered_iterator_selftests): Add declaration.
15715 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
15716 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
15717 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
15718 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
15719 * unittests/main-thread-selftests.c
15720 (_initialize_main_thread_selftests): Add declaration.
15721 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
15722 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
15723 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
15724 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
15725 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
15726 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
15727 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
15728 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
15729 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
15730 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
15731 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
15732 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
15733 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
15734 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
15735 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
15736 declaration.
15737 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
15738 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
15739 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
15740 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
15741 * user-regs.c (_initialize_user_regs): Add declaration.
15742 * utils.c (_initialize_utils): Add declaration.
15743 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
15744 * valops.c (_initialize_valops): Add declaration.
15745 * valprint.c (_initialize_valprint): Add declaration.
15746 * value.c (_initialize_values): Add declaration.
15747 * varobj.c (_initialize_varobj): Add declaration.
15748 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
15749 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
15750 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
15751 * windows-nat.c (_initialize_windows_nat): Add declaration.
15752 (_initialize_check_for_gdb_ini): Add declaration.
15753 (_initialize_loadable): Add declaration.
15754 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
15755 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
15756 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
15757 * xcoffread.c (_initialize_xcoffread): Add declaration.
15758 * xml-support.c (_initialize_xml_support): Add declaration.
15759 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
15760 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
15761 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
15762 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
15763
15764 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15765
15766 * regformats/regdat.sh: Generate declaration for init function.
15767
15768 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15769
15770 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
15771 up.
15772 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
15773 close_one_inferior>: New methods.
15774 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
15775 pass down target to find_inferior_pid.
15776 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
15777 Pass down target to find_inferior_ptid.
15778 (gdbsim_target::create_inferior): Pass down target to
15779 add_thread_silent.
15780 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
15781 target down to find_inferior_ptid and switch_to_thread.
15782 (gdbsim_target::close): Update to call close_one_inferior.
15783 (struct resume_data): Remove.
15784 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
15785 directly, rather than through a void pointer.
15786 (gdbsim_target::resume): Update to call resume_one_inferior.
15787
15788 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
15789
15790 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
15791
15792 2020-01-12 Pedro Alves <palves@redhat.com>
15793
15794 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
15795 directly for the current inferior instead of
15796 discard_all_inferiors.
15797 (discard_all_inferiors): Delete.
15798
15799 2020-01-11 Tom Tromey <tom@tromey.com>
15800
15801 * tui/tui-wingeneral.c (box_win): Check cli_styling.
15802 * tui/tui-winsource.c (tui_source_window_base::refill): Use
15803 deprecated_safe_get_selected_frame.
15804
15805 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
15806
15807 * inferior.c (print_inferior): Switch inferior before printing it.
15808
15809 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
15810 Pedro Alves <palves@redhat.com>
15811
15812 * progspace-and-thread.c (switch_to_program_space_and_thread):
15813 Assert there's an inferior for PSPACE. Use
15814 switch_to_inferior_no_thread to switch the inferior too.
15815 * progspace.c (program_space::~program_space): Call
15816 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
15817 (program_space::free_all_objfiles): Don't call clear_symtab_users
15818 here.
15819 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
15820
15821 2020-01-10 Pedro Alves <palves@redhat.com>
15822
15823 * NEWS: Mention multi-target debugging, "info connections", and
15824 "add-inferior -no-connection".
15825
15826 2020-01-10 Pedro Alves <palves@redhat.com>
15827
15828 * infrun.c: Include "target-connection.h".
15829 (check_multi_target_resumption): New.
15830 (proceed): Call it.
15831 * target-connection.c (make_target_connection_string): Make
15832 extern.
15833 * target-connection.h (make_target_connection_string): Declare.
15834
15835 2020-01-10 Pedro Alves <palves@redhat.com>
15836
15837 * Makefile.in (COMMON_SFILES): Add target-connection.c.
15838 * inferior.c (uiout_field_connection): New function.
15839 (print_inferior): Add new "connection-id" column.
15840 (add_inferior_command): Show connection number/string of added
15841 inferior.
15842 * process-stratum-target.h
15843 (process_stratum_target::connection_string): New virtual method.
15844 (process_stratum_target::connection_number): New field.
15845 * remote.c (remote_target::connection_string): New override.
15846 * target-connection.c: New file.
15847 * target-connection.h: New file.
15848 * target.c (decref_target): Remove process_stratum targets from
15849 the connection list.
15850 (target_stack::push): Add process_stratum targets to the
15851 connection list.
15852
15853 2020-01-10 Pedro Alves <palves@redhat.com>
15854
15855 Revert:
15856 2016-04-12 Pedro Alves <palves@redhat.com>
15857 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
15858 Remove references to name.
15859 * serial.h (struct serial) <name>: Delete.
15860
15861 2020-01-10 Pedro Alves <palves@redhat.com>
15862
15863 * gdbarch-selftests.c (register_to_value_test): Remove "target
15864 already pushed" check.
15865
15866 2020-01-10 Pedro Alves <palves@redhat.com>
15867 John Baldwin <jhb@FreeBSD.org>
15868
15869 * aarch64-linux-nat.c
15870 (aarch64_linux_nat_target::thread_architecture): Adjust.
15871 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
15872 (task_command_1): Likewise.
15873 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
15874 (aix_thread_target::wait, aix_thread_target::fetch_registers)
15875 (aix_thread_target::store_registers)
15876 (aix_thread_target::thread_alive): Adjust.
15877 * amd64-fbsd-tdep.c: Include "inferior.h".
15878 (amd64fbsd_get_thread_local_address): Pass down target.
15879 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
15880 thread's gdbarch instead of target_gdbarch.
15881 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
15882 get_last_target_status.
15883 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
15884 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
15885 inferiors.
15886 (update_inserted_breakpoint_locations): Skip if inferiors with no
15887 execution.
15888 (update_global_location_list): When handling moribund locations,
15889 find representative inferior for location's pspace, and use thread
15890 count of its process_stratum target.
15891 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
15892 * bsd-uthread.c (bsd_uthread_target::wait): Use
15893 as_process_stratum_target and adjust thread_change_ptid and
15894 add_thread calls.
15895 (bsd_uthread_target::update_thread_list): Use
15896 as_process_stratum_target and adjust find_thread_ptid,
15897 thread_change_ptid and add_thread calls.
15898 * btrace.c (maint_btrace_packet_history_cmd): Adjust
15899 find_thread_ptid call.
15900 * corelow.c (add_to_thread_list): Adjust add_thread call.
15901 (core_target_open): Adjust add_thread_silent and thread_count
15902 calls.
15903 (core_target::pid_to_str): Adjust find_inferior_ptid call.
15904 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
15905 * event-top.c (async_disconnect): Pop targets from all inferiors.
15906 * exec.c (add_target_sections): Push exec target on all inferiors
15907 sharing the program space.
15908 (remove_target_sections): Remove the exec target from all
15909 inferiors sharing the program space.
15910 (exec_on_vfork): New.
15911 * exec.h (exec_on_vfork): Declare.
15912 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
15913 Pass it down.
15914 (fbsd_nat_target::update_thread_list): Adjust.
15915 (fbsd_nat_target::resume): Adjust.
15916 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
15917 down.
15918 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
15919 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
15920 get_thread_arch_regcache call.
15921 * fork-child.c (gdb_startup_inferior): Pass target down to
15922 startup_inferior and set_executing.
15923 * gdbthread.h (struct process_stratum_target): Forward declare.
15924 (add_thread, add_thread_silent, add_thread_with_info)
15925 (in_thread_list): Add process_stratum_target parameter.
15926 (find_thread_ptid(inferior*, ptid_t)): New overload.
15927 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
15928 parameter.
15929 (all_threads()): Delete overload.
15930 (all_threads, all_non_exited_threads): Add process_stratum_target
15931 parameter.
15932 (all_threads_safe): Use brace initialization.
15933 (thread_count): Add process_stratum_target parameter.
15934 (set_resumed, set_running, set_stop_requested, set_executing)
15935 (threads_are_executing, finish_thread_state): Add
15936 process_stratum_target parameter.
15937 (switch_to_thread): Use is_current_thread.
15938 * i386-fbsd-tdep.c: Include "inferior.h".
15939 (i386fbsd_get_thread_local_address): Pass down target.
15940 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
15941 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
15942 have_inferiors check.
15943 * inf-ptrace.c (inf_ptrace_target::create_inferior)
15944 (inf_ptrace_target::attach): Adjust.
15945 * infcall.c (run_inferior_call): Adjust.
15946 * infcmd.c (run_command_1): Pass target to
15947 scoped_finish_thread_state.
15948 (proceed_thread_callback): Skip inferiors with no execution.
15949 (continue_command): Rename 'all_threads' local to avoid hiding
15950 'all_threads' function. Adjust get_last_target_status call.
15951 (prepare_one_step): Adjust set_running call.
15952 (signal_command): Use user_visible_resume_target. Compare thread
15953 pointers instead of inferior_ptid.
15954 (info_program_command): Adjust to pass down target.
15955 (attach_command): Mark target's 'thread_executing' flag.
15956 (stop_current_target_threads_ns): New, factored out from ...
15957 (interrupt_target_1): ... this. Switch inferior before making
15958 target calls.
15959 * inferior-iter.h
15960 (struct all_inferiors_iterator, struct all_inferiors_range)
15961 (struct all_inferiors_safe_range)
15962 (struct all_non_exited_inferiors_range): Filter on
15963 process_stratum_target too. Remove explicit.
15964 * inferior.c (inferior::inferior): Push dummy target on target
15965 stack.
15966 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
15967 Add process_stratum_target parameter, and pass it down.
15968 (have_live_inferiors): Adjust.
15969 (switch_to_inferior_and_push_target): New.
15970 (add_inferior_command, clone_inferior_command): Handle
15971 "-no-connection" parameter. Use
15972 switch_to_inferior_and_push_target.
15973 (_initialize_inferior): Mention "-no-connection" option in
15974 the help of "add-inferior" and "clone-inferior" commands.
15975 * inferior.h: Include "process-stratum-target.h".
15976 (interrupt_target_1): Use bool.
15977 (struct inferior) <push_target, unpush_target, target_is_pushed,
15978 find_target_beneath, top_target, process_target, target_at,
15979 m_stack>: New.
15980 (discard_all_inferiors): Delete.
15981 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
15982 (all_inferiors, all_non_exited_inferiors): Add
15983 process_stratum_target parameter.
15984 * infrun.c: Include "gdb_select.h" and <unordered_map>.
15985 (target_last_proc_target): New global.
15986 (follow_fork_inferior): Push target on new inferior. Pass target
15987 to add_thread_silent. Call exec_on_vfork. Handle target's
15988 reference count.
15989 (follow_fork): Adjust get_last_target_status call. Also consider
15990 target.
15991 (follow_exec): Push target on new inferior.
15992 (struct execution_control_state) <target>: New field.
15993 (user_visible_resume_target): New.
15994 (do_target_resume): Call target_async.
15995 (resume_1): Set target's threads_executing flag. Consider resume
15996 target.
15997 (commit_resume_all_targets): New.
15998 (proceed): Also consider resume target. Skip threads of inferiors
15999 with no execution. Commit resumtion in all targets.
16000 (start_remote): Pass current inferior to wait_for_inferior.
16001 (infrun_thread_stop_requested): Consider target as well. Pass
16002 thread_info pointer to clear_inline_frame_state instead of ptid.
16003 (infrun_thread_thread_exit): Consider target as well.
16004 (random_pending_event_thread): New inferior parameter. Use it.
16005 (do_target_wait): Rename to ...
16006 (do_target_wait_1): ... this. Add inferior parameter, and pass it
16007 down.
16008 (threads_are_resumed_pending_p, do_target_wait): New.
16009 (prepare_for_detach): Adjust calls.
16010 (wait_for_inferior): New inferior parameter. Handle it. Use
16011 do_target_wait_1 instead of do_target_wait.
16012 (fetch_inferior_event): Adjust. Switch to representative
16013 inferior. Pass target down.
16014 (set_last_target_status): Add process_stratum_target parameter.
16015 Save target in global.
16016 (get_last_target_status): Add process_stratum_target parameter and
16017 handle it.
16018 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
16019 (context_switch): Check inferior_ptid == null_ptid before calling
16020 inferior_thread().
16021 (get_inferior_stop_soon): Pass down target.
16022 (wait_one): Rename to ...
16023 (poll_one_curr_target): ... this.
16024 (struct wait_one_event): New.
16025 (wait_one): New.
16026 (stop_all_threads): Adjust.
16027 (handle_no_resumed, handle_inferior_event): Adjust to consider the
16028 event's target.
16029 (switch_back_to_stepped_thread): Also consider target.
16030 (print_stop_event): Update.
16031 (normal_stop): Update. Also consider the resume target.
16032 * infrun.h (wait_for_inferior): Remove declaration.
16033 (user_visible_resume_target): New declaration.
16034 (get_last_target_status, set_last_target_status): New
16035 process_stratum_target parameter.
16036 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16037 process_stratum_target parameter, and use it.
16038 (clear_inline_frame_state (thread_info*)): New.
16039 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16040 process_stratum_target parameter.
16041 (clear_inline_frame_state (thread_info*)): Declare.
16042 * linux-fork.c (delete_checkpoint_command): Pass target down to
16043 find_thread_ptid.
16044 (checkpoint_command): Adjust.
16045 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
16046 instead of just tweaking inferior_ptid.
16047 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
16048 (exit_lwp): Pass target down to find_thread_ptid.
16049 (attach_proc_task_lwp_callback): Pass target down to
16050 add_thread/set_running/set_executing.
16051 (linux_nat_target::attach): Pass target down to
16052 thread_change_ptid.
16053 (get_detach_signal): Pass target down to find_thread_ptid.
16054 Consider last target status's target.
16055 (linux_resume_one_lwp_throw, resume_lwp)
16056 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
16057 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
16058 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
16059 (linux_nat_target::async_wait_fd): New.
16060 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
16061 target down.
16062 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
16063 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
16064 * linux-thread-db.c (struct thread_db_info::process_target): New
16065 field.
16066 (add_thread_db_info): Save target.
16067 (get_thread_db_info): New process_stratum_target parameter. Also
16068 match target.
16069 (delete_thread_db_info): New process_stratum_target parameter.
16070 Also match target.
16071 (thread_from_lwp): Adjust to pass down target.
16072 (thread_db_notice_clone): Pass down target.
16073 (check_thread_db_callback): Pass down target.
16074 (try_thread_db_load_1): Always push the thread_db target.
16075 (try_thread_db_load, record_thread): Pass target down.
16076 (thread_db_target::detach): Pass target down. Always unpush the
16077 thread_db target.
16078 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
16079 target down. Always unpush the thread_db target.
16080 (find_new_threads_callback, thread_db_find_new_threads_2)
16081 (thread_db_target::update_thread_list): Pass target down.
16082 (thread_db_target::pid_to_str): Pass current inferior down.
16083 (thread_db_target::get_thread_local_address): Pass target down.
16084 (thread_db_target::resume, maintenance_check_libthread_db): Pass
16085 target down.
16086 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
16087 * procfs.c (procfs_target::procfs_init_inferior): Declare.
16088 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
16089 (procfs_init_inferior): Rename to ...
16090 (procfs_target::procfs_init_inferior): ... this and adjust.
16091 (procfs_target::create_inferior, procfs_notice_thread)
16092 (procfs_do_thread_registers): Adjust.
16093 * ppc-fbsd-tdep.c: Include "inferior.h".
16094 (ppcfbsd_get_thread_local_address): Pass down target.
16095 * proc-service.c (ps_xfer_memory): Switch current inferior and
16096 program space as well.
16097 (get_ps_regcache): Pass target down.
16098 * process-stratum-target.c
16099 (process_stratum_target::thread_address_space)
16100 (process_stratum_target::thread_architecture): Pass target down.
16101 * process-stratum-target.h
16102 (process_stratum_target::threads_executing): New field.
16103 (as_process_stratum_target): New.
16104 * ravenscar-thread.c
16105 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
16106 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
16107 down.
16108 * record-btrace.c (record_btrace_target::info_record): Adjust.
16109 (record_btrace_target::record_method)
16110 (record_btrace_target::record_is_replaying)
16111 (record_btrace_target::fetch_registers)
16112 (get_thread_current_frame_id, record_btrace_target::resume)
16113 (record_btrace_target::wait, record_btrace_target::stop): Pass
16114 target down.
16115 * record-full.c (record_full_wait_1): Switch to event thread.
16116 Pass target down.
16117 * regcache.c (regcache::regcache)
16118 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
16119 process_stratum_target parameter and handle it.
16120 (current_thread_target): New global.
16121 (get_thread_regcache): Add process_stratum_target parameter and
16122 handle it. Switch inferior before calling target method.
16123 (get_thread_regcache): Pass target down.
16124 (get_thread_regcache_for_ptid): Pass target down.
16125 (registers_changed_ptid): Add process_stratum_target parameter and
16126 handle it.
16127 (registers_changed_thread, registers_changed): Pass target down.
16128 (test_get_thread_arch_aspace_regcache): New.
16129 (current_regcache_test): Define a couple local test_target_ops
16130 instances and use them for testing.
16131 (readwrite_regcache): Pass process_stratum_target parameter.
16132 (cooked_read_test, cooked_write_test): Pass mock_target down.
16133 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
16134 (get_thread_arch_aspace_regcache): Add process_stratum_target
16135 parameter.
16136 (regcache::target): New method.
16137 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
16138 (regcache::registers_changed_ptid): Add process_stratum_target
16139 parameter.
16140 (regcache::m_target): New field.
16141 (registers_changed_ptid): Add process_stratum_target parameter.
16142 * remote.c (remote_state::supports_vCont_probed): New field.
16143 (remote_target::async_wait_fd): New method.
16144 (remote_unpush_and_throw): Add remote_target parameter.
16145 (get_current_remote_target): Adjust.
16146 (remote_target::remote_add_inferior): Push target.
16147 (remote_target::remote_add_thread)
16148 (remote_target::remote_notice_new_inferior)
16149 (get_remote_thread_info): Pass target down.
16150 (remote_target::update_thread_list): Skip threads of inferiors
16151 bound to other targets. (remote_target::close): Don't discard
16152 inferiors. (remote_target::add_current_inferior_and_thread)
16153 (remote_target::process_initial_stop_replies)
16154 (remote_target::start_remote)
16155 (remote_target::remote_serial_quit_handler): Pass down target.
16156 (remote_target::remote_unpush_target): New remote_target
16157 parameter. Unpush the target from all inferiors.
16158 (remote_target::remote_unpush_and_throw): New remote_target
16159 parameter. Pass it down.
16160 (remote_target::open_1): Check whether the current inferior has
16161 execution instead of checking whether any inferior is live. Pass
16162 target down.
16163 (remote_target::remote_detach_1): Pass down target. Use
16164 remote_unpush_target.
16165 (extended_remote_target::attach): Pass down target.
16166 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
16167 (remote_target::append_resumption): Pass down target.
16168 (remote_target::append_pending_thread_resumptions)
16169 (remote_target::remote_resume_with_hc, remote_target::resume)
16170 (remote_target::commit_resume): Pass down target.
16171 (remote_target::remote_stop_ns): Check supports_vCont_probed.
16172 (remote_target::interrupt_query)
16173 (remote_target::remove_new_fork_children)
16174 (remote_target::check_pending_events_prevent_wildcard_vcont)
16175 (remote_target::remote_parse_stop_reply)
16176 (remote_target::process_stop_reply): Pass down target.
16177 (first_remote_resumed_thread): New remote_target parameter. Pass
16178 it down.
16179 (remote_target::wait_as): Pass down target.
16180 (unpush_and_perror): New remote_target parameter. Pass it down.
16181 (remote_target::readchar, remote_target::remote_serial_write)
16182 (remote_target::getpkt_or_notif_sane_1)
16183 (remote_target::kill_new_fork_children, remote_target::kill): Pass
16184 down target.
16185 (remote_target::mourn_inferior): Pass down target. Use
16186 remote_unpush_target.
16187 (remote_target::core_of_thread)
16188 (remote_target::remote_btrace_maybe_reopen): Pass down target.
16189 (remote_target::pid_to_exec_file)
16190 (remote_target::thread_handle_to_thread_info): Pass down target.
16191 (remote_target::async_wait_fd): New.
16192 * riscv-fbsd-tdep.c: Include "inferior.h".
16193 (riscv_fbsd_get_thread_local_address): Pass down target.
16194 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
16195 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
16196 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
16197 Adjust.
16198 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
16199 * solib-svr4.c (enable_break): Pass down target.
16200 * spu-multiarch.c (parse_spufs_run): Pass down target.
16201 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
16202 * target-delegates.c: Regenerate.
16203 * target.c (g_target_stack): Delete.
16204 (current_top_target): Return the current inferior's top target.
16205 (target_has_execution_1): Refer to the passed-in inferior's top
16206 target.
16207 (target_supports_terminal_ours): Check whether the initial
16208 inferior was already created.
16209 (decref_target): New.
16210 (target_stack::push): Incref/decref the target.
16211 (push_target, push_target, unpush_target): Adjust.
16212 (target_stack::unpush): Defref target.
16213 (target_is_pushed): Return bool. Adjust to refer to the current
16214 inferior's target stack.
16215 (dispose_inferior): Delete, and inline parts ...
16216 (target_preopen): ... here. Only dispose of the current inferior.
16217 (target_detach): Hold strong target reference while detaching.
16218 Pass target down.
16219 (target_thread_name): Add assertion.
16220 (target_resume): Pass down target.
16221 (target_ops::beneath, find_target_at): Adjust to refer to the
16222 current inferior's target stack.
16223 (get_dummy_target): New.
16224 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
16225 has a thread running.
16226 (initialize_targets): Rename to ...
16227 (_initialize_target): ... this.
16228 * target.h: Include "gdbsupport/refcounted-object.h".
16229 (struct target_ops): Inherit refcounted_object.
16230 (target_ops::shortname, target_ops::longname): Make const.
16231 (target_ops::async_wait_fd): New method.
16232 (decref_target): Declare.
16233 (struct target_ops_ref_policy): New.
16234 (target_ops_ref): New typedef.
16235 (get_dummy_target): Declare function.
16236 (target_is_pushed): Return bool.
16237 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
16238 (all_matching_threads_iterator::all_matching_threads_iterator):
16239 Handle filter target.
16240 * thread-iter.h (struct all_matching_threads_iterator, struct
16241 all_matching_threads_range, class all_non_exited_threads_range):
16242 Filter by target too. Remove explicit.
16243 * thread.c (threads_executing): Delete.
16244 (inferior_thread): Pass down current inferior.
16245 (clear_thread_inferior_resources): Pass down thread pointer
16246 instead of ptid_t.
16247 (add_thread_silent, add_thread_with_info, add_thread): Add
16248 process_stratum_target parameter. Use it for thread and inferior
16249 searches.
16250 (is_current_thread): New.
16251 (thread_info::deletable): Use it.
16252 (find_thread_ptid, thread_count, in_thread_list)
16253 (thread_change_ptid, set_resumed, set_running): New
16254 process_stratum_target parameter. Pass it down.
16255 (set_executing): New process_stratum_target parameter. Pass it
16256 down. Adjust reference to 'threads_executing'.
16257 (threads_are_executing): New process_stratum_target parameter.
16258 Adjust reference to 'threads_executing'.
16259 (set_stop_requested, finish_thread_state): New
16260 process_stratum_target parameter. Pass it down.
16261 (switch_to_thread): Also match inferior.
16262 (switch_to_thread): New process_stratum_target parameter. Pass it
16263 down.
16264 (update_threads_executing): Reimplement.
16265 * top.c (quit_force): Pop targets from all inferior.
16266 (gdb_init): Don't call initialize_targets.
16267 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
16268 Declare.
16269 (windows_add_thread, windows_delete_thread): Adjust.
16270 (get_windows_debug_event): Rename to ...
16271 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
16272 * tracefile-tfile.c (tfile_target_open): Pass down target.
16273 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
16274 Forward declare.
16275 (switch_to_thread): Add process_stratum_target parameter.
16276 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
16277 parameter. Use it.
16278 (mi_on_resume): Pass target down.
16279 * nat/fork-inferior.c (startup_inferior): Add
16280 process_stratum_target parameter. Pass it down.
16281 * nat/fork-inferior.h (startup_inferior): Add
16282 process_stratum_target parameter.
16283 * python/py-threadevent.c (py_get_event_thread): Pass target down.
16284
16285 2020-01-10 Pedro Alves <palves@redhat.com>
16286
16287 * remote.c (remote_target::start_remote): Don't set inferior_ptid
16288 directly. Instead find the first thread in the thread list and
16289 use switch_to_thread.
16290
16291 2020-01-10 Pedro Alves <palves@redhat.com>
16292
16293 * remote.c (remote_target::remote_add_inferior): Don't bind a
16294 process to the current inferior if the current inferior is already
16295 bound to a process.
16296
16297 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16298 Pedro Alves <palves@redhat.com>
16299
16300 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
16301 If no process is specified, return null_ptid instead of
16302 inferior_ptid.
16303 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
16304 TARGET_WAITKIND_SIGNALLED with no pid.
16305
16306 2020-01-10 Pedro Alves <palves@redhat.com>
16307
16308 * remote.c (first_remote_resumed_thread): New.
16309 (remote_target::wait_as): Use it as default event_ptid instead of
16310 inferior_ptid.
16311
16312 2020-01-10 Pedro Alves <palves@redhat.com>
16313
16314 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
16315
16316 2020-01-10 Pedro Alves <palves@redhat.com>
16317
16318 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
16319 not -1.
16320
16321 2020-01-10 Pedro Alves <palves@redhat.com>
16322
16323 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
16324 ptid to get_last_target_status.
16325 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
16326 ptid to get_last_target_status.
16327 * infcmd.c (continue_command): Don't pass a target_waitstatus to
16328 get_last_target_status.
16329 (info_program_command): Don't pass a target_waitstatus to
16330 get_last_target_status.
16331 * infrun.c (init_wait_for_inferior): Use
16332 nullify_last_target_wait_ptid.
16333 (get_last_target_status): Handle nullptr arguments.
16334 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
16335 (print_stop_event): Don't pass a ptid to get_last_target_status.
16336 (normal_stop): Don't pass a ptid to get_last_target_status.
16337 * infrun.h (get_last_target_status, set_last_target_status): Move
16338 comments here and update.
16339 (nullify_last_target_wait_ptid): Declare.
16340 * linux-fork.c (fork_load_infrun_state): Remove local extern
16341 declaration of nullify_last_target_wait_ptid.
16342 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
16343 to get_last_target_status.
16344
16345 2020-01-10 Pedro Alves <palves@redhat.com>
16346
16347 * gdbthread.h (scoped_restore_current_thread)
16348 <dont_restore, restore, m_dont_restore>: Declare.
16349 * thread.c (thread_alive): Add assertion. Return bool.
16350 (switch_to_thread_if_alive): New.
16351 (prune_threads): Switch inferior/thread.
16352 (print_thread_info_1): Switch thread before calling target methods.
16353 (scoped_restore_current_thread::restore): New, factored out from
16354 ...
16355 (scoped_restore_current_thread::~scoped_restore_current_thread):
16356 ... this.
16357 (scoped_restore_current_thread::scoped_restore_current_thread):
16358 Add assertion.
16359 (thread_apply_all_command, thread_select): Use
16360 switch_to_thread_if_alive.
16361 * infrun.c (proceed, restart_threads, handle_signal_stop)
16362 (switch_back_to_stepped_thread): Switch current thread before
16363 calling target methods.
16364
16365 2020-01-10 Pedro Alves <palves@redhat.com>
16366
16367 * inferior.c (switch_to_inferior_no_thread): New function,
16368 factored out from ...
16369 (inferior_command): ... here.
16370 * inferior.h (switch_to_inferior_no_thread): Declare.
16371 * mi/mi-main.c (run_one_inferior): Use
16372 switch_to_inferior_no_thread.
16373
16374 2020-01-10 Pedro Alves <palves@redhat.com>
16375
16376 * infcmd.c (kill_command): Remove dead code.
16377
16378 2020-01-10 Pedro Alves <palves@redhat.com>
16379
16380 * remote.c (remote_target::mourn_inferior): No longer check
16381 whether the target is running.
16382
16383 2020-01-10 Pedro Alves <palves@redhat.com>
16384
16385 * corelow.c (core_target::has_execution): Change parameter type to
16386 inferior pointer.
16387 * inferior.c (number_of_live_inferiors): Use
16388 inferior::has_execution instead of target_has_execution_1.
16389 * inferior.h (inferior::has_execution): New.
16390 * linux-thread-db.c (thread_db_target::update_thread_list): Use
16391 inferior::has_execution instead of target_has_execution_1.
16392 * process-stratum-target.c
16393 (process_stratum_target::has_execution): Change parameter type to
16394 inferior pointer. Check the inferior's PID instead of
16395 inferior_ptid.
16396 * process-stratum-target.h
16397 (process_stratum_target::has_execution): Change parameter type to
16398 inferior pointer.
16399 * record-full.c (record_full_core_target::has_execution): Change
16400 parameter type to inferior pointer.
16401 * target.c (target_has_execution_1): Change parameter type to
16402 inferior pointer.
16403 (target_has_execution_current): Adjust.
16404 * target.h (target_ops::has_execution): Change parameter type to
16405 inferior pointer.
16406 (target_has_execution_1): Change parameter type to inferior
16407 pointer. Change return type to bool.
16408 * tracefile.h (tracefile_target::has_execution): Change parameter
16409 type to inferior pointer.
16410
16411 2020-01-10 Pedro Alves <palves@redhat.com>
16412
16413 * exceptions.c (print_flush): Remove current_top_target() check.
16414
16415 2020-01-10 Pedro Alves <palves@redhat.com>
16416
16417 * remote.c (show_remote_exec_file): Show the current inferior's
16418 exec-file instead of the command variable's value.
16419
16420 2020-01-10 Pedro Alves <palves@redhat.com>
16421
16422 * record-full.c (record_full_resume_ptid): New global.
16423 (record_full_target::resume): Set it.
16424 (record_full_wait_1): Use record_full_resume_ptid instead of
16425 inferior_ptid.
16426
16427 2020-01-10 Pedro Alves <palves@redhat.com>
16428
16429 * gdbthread.h (scoped_restore_current_thread)
16430 <dont_restore, restore, m_dont_restore>: Declare.
16431 * thread.c (thread_alive): Add assertion. Return bool.
16432 (switch_to_thread_if_alive): New.
16433 (prune_threads): Switch inferior/thread.
16434 (print_thread_info_1): Switch thread before calling target methods.
16435 (scoped_restore_current_thread::restore): New, factored out from
16436 ...
16437 (scoped_restore_current_thread::~scoped_restore_current_thread):
16438 ... this.
16439 (scoped_restore_current_thread::scoped_restore_current_thread):
16440 Add assertion.
16441 (thread_apply_all_command, thread_select): Use
16442 switch_to_thread_if_alive.
16443
16444 2020-01-10 George Barrett <bob@bob131.so>
16445
16446 * stap-probe.c (stap_modify_semaphore): Don't check for null
16447 semaphores.
16448 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
16449 for null semaphores.
16450
16451 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16452
16453 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
16454 all source windows, and maintain horizontal scroll status while
16455 doing so.
16456
16457 2020-01-09 Tom Tromey <tom@tromey.com>
16458
16459 PR tui/18932:
16460 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
16461 update_source_window, not print_source_lines.
16462
16463 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16464
16465 * tui/tui.c (tui_enable): Register tui hooks after calling
16466 tui_display_main.
16467
16468 2020-01-09 Christian Biesinger <cbiesinger@google.com>
16469
16470 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
16471
16472 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
16473
16474 * thread.c (print_thread_info_1): Fix indentation.
16475
16476 2020-01-09 Christian Biesinger <cbiesinger@google.com>
16477
16478 * symtab.c (general_symbol_info::compute_and_set_names): Move the
16479 unique_xmalloc_ptr outside the if to always free the demangled name.
16480
16481 2020-01-08 Tom Tromey <tromey@adacore.com>
16482
16483 * xcoffread.c (enter_line_range, read_xcoff_symtab)
16484 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
16485 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
16486 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
16487 Remove.
16488 (section_offsets): New typedef.
16489 * symtab.c (fixup_section, get_msymbol_address): Update.
16490 * symmisc.c (dump_msymbols): Update.
16491 * symfile.h (relative_addr_info_to_section_offsets)
16492 (symfile_map_offsets_to_segments): Update.
16493 * symfile.c (build_section_addr_info_from_objfile)
16494 (init_objfile_sect_indices): Update.
16495 (struct place_section_arg): Change type of "offsets".
16496 (place_section): Update.
16497 (relative_addr_info_to_section_offsets): Change type of
16498 "section_offsets". Remove "num_sections" parameter.
16499 (default_symfile_offsets, syms_from_objfile_1)
16500 (set_objfile_default_section_offset): Update.
16501 (reread_symbols): No need to preserve section offsets by hand.
16502 (symfile_map_offsets_to_segments): Change type of "offsets".
16503 * stap-probe.c (relocate_address): Update.
16504 * stabsread.h (process_one_symbol): Update.
16505 * solib-target.c (struct lm_info_target) <offsets>: Change type.
16506 (solib_target_relocate_section_addresses): Update.
16507 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
16508 Update.
16509 * solib-frv.c (frv_relocate_main_executable): Update.
16510 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
16511 * solib-aix.c (solib_aix_get_section_offsets): Change return
16512 type.
16513 (solib_aix_solib_create_inferior_hook): Update.
16514 * remote.c (remote_target::get_offsets): Update.
16515 * psymtab.c (find_pc_sect_psymtab): Update.
16516 * psympriv.h (struct partial_symbol) <address, text_low,
16517 text_high>: Update.
16518 * objfiles.h (obj_section_offset): Update.
16519 (struct objfile) <section_offsets>: Change type.
16520 <num_sections>: Remove.
16521 (objfile_relocate): Update.
16522 * objfiles.c (entry_point_address_query): Update
16523 (relocate_one_symbol): Change type of "section_offsets".
16524 (objfile_relocate1, objfile_relocate1): Change type of
16525 "new_offsets".
16526 (objfile_rebase1): Update.
16527 * mipsread.c (mipscoff_symfile_read): Update.
16528 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
16529 parameter.
16530 * mdebugread.c (parse_symbol): Change type of "section_offsets".
16531 (parse_external, psymtab_to_symtab_1): Update.
16532 * machoread.c (macho_symfile_offsets): Update.
16533 * ia64-tdep.c (ia64_find_unwind_table): Update.
16534 * hppa-tdep.c (read_unwind_info): Update.
16535 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
16536 * dwarf2read.c (create_addrmap_from_index)
16537 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
16538 (process_psymtab_comp_unit_reader, add_partial_symbol)
16539 (add_partial_subprogram, process_full_comp_unit)
16540 (read_file_scope, read_func_scope, read_lexical_block_scope)
16541 (read_call_site_scope, dwarf2_rnglists_process)
16542 (dwarf2_ranges_process, dwarf2_ranges_read)
16543 (dwarf_decode_lines_1, var_decode_location, new_symbol)
16544 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
16545 Update.
16546 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
16547 Update.
16548 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
16549 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
16550 (process_one_symbol): Change type of "section_offsets".
16551 * ctfread.c (get_objfile_text_range): Update.
16552 * coffread.c (coff_symtab_read, enter_linenos)
16553 (process_coff_symbol): Update.
16554 * coff-pe-read.c (add_pe_forwarded_sym): Update.
16555 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
16556
16557 2020-01-08 Tom Tromey <tromey@adacore.com>
16558
16559 * dwarf2read.c (parse_macro_definition): Use std::string.
16560 (parse_macro_definition): Likewise.
16561
16562 2020-01-08 Tom Tromey <tromey@adacore.com>
16563
16564 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
16565 (ATTR_ALLOC_CHUNK): Remove.
16566
16567 2020-01-08 Tom Tromey <tromey@adacore.com>
16568
16569 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
16570
16571 2020-01-08 Tom Tromey <tromey@adacore.com>
16572
16573 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
16574 (dwarf2_compute_name, open_dwo_file): Likewise.
16575 (process_enumeration_scope): Use std::vector.
16576 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
16577 (partial_die_info::fixup, dwarf2_start_subfile)
16578 (guess_full_die_structure_name, dwarf2_name): Likewise.
16579 (determine_prefix): Update.
16580 (guess_full_die_structure_name): Make return type const.
16581 (partial_die_full_name): Return unique_xmalloc_ptr.
16582 (DW_FIELD_ALLOC_CHUNK): Remove.
16583
16584 2020-01-07 Tom Tromey <tromey@adacore.com>
16585
16586 PR build/24937:
16587 * stap-probe.c (class stap_static_probe_ops): Add constructor.
16588
16589 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
16590
16591 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
16592
16593 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
16594
16595 * stack.c (print_frame_info): Move disassemble_next_line code
16596 inside source_print block.
16597
16598 2020-01-06 Eli Zaretskii <eliz@gnu.org>
16599
16600 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
16601 gdb/signals.h, as we are now using native signal symbols.
16602
16603 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
16604
16605 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
16606 overflow by an early check of content vs threshold.
16607 * tui/tui-source.c (tui_source_window::line_is_displayed):
16608 Likewise.
16609
16610 2020-01-06 Eli Zaretskii <eliz@gnu.org>
16611
16612 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
16613
16614 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
16615
16616 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
16617 export table if no section contains it's RVA.
16618
16619 2020-01-06 Eli Zaretskii <eliz@gnu.org>
16620
16621 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
16622
16623 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
16624
16625 * source.c (print_source_lines_base): Set last_line_listed.
16626
16627 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
16628
16629 * tui/tui-disasm.c: Remove trailing spaces.
16630
16631 2020-01-06 Eli Zaretskii <eliz@gnu.org>
16632 Pedro Alves <palves@redhat.com>
16633
16634 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
16635 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
16636 (windows_gdb_signal_to_target): New function, uses the above
16637 enumeration to convert GDB internal signal codes to equivalent
16638 Windows codes.
16639 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
16640 * windows-nat.c: Include "gdb_wait.h".
16641 (get_windows_debug_event): Extract the fatal exception from the
16642 exit status and convert to the equivalent Posix signal number.
16643 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
16644 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
16645 * gdbsupport/gdb_wait.c: New file, implements
16646 windows_status_to_termsig.
16647 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
16648 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
16649
16650 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
16651
16652 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
16653 show_layout.
16654
16655 2020-01-05 Luis Machado <luis.machado@linaro.org>
16656
16657 * aarch64-linux-nat.c
16658 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
16659 and bfd_mach_aarch64.
16660
16661 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16662
16663 * ui-file.c (stdio_file::can_emit_style_escape)
16664 (tee_file::can_emit_style_escape): Ensure style is used also on
16665 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
16666 to gdb_stdout.
16667 * main.c (set_gdb_data_directory): Use file style to output the
16668 warning that the given pathname is not a directory.
16669 * top.c (show_history_filename, gdb_safe_append_history)
16670 (show_gdb_datadir): Use file style.
16671
16672 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
16673
16674 * solib-target.c (struct lm_info_target):
16675 Change offsets to be a unique_xmalloc_ptr.
16676 (solib_target_relocate_section_addresses): Update.
16677
16678 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
16679
16680 * windows-nat.c (windows_clear_solib): Free so_list linked list.
16681
16682 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
16683
16684 * MAINTAINERS (Write After Approval): Add myself.
16685
16686 2020-01-02 Luis Machado <luis.machado@linaro.org>
16687
16688 * proc-service.c (get_ps_regcache): Remove reference to obsolete
16689 Cell BE architecture.
16690 * target.h (struct target_ops) <thread_architecture>: Likewise.
16691
16692 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
16693
16694 * Makefile.in: Use INSTALL_PROGRAM_ENV.
16695
16696 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
16697
16698 * MAINTAINERS (Write After Approval): Add myself.
16699
16700 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16701
16702 * gdbarch.sh: Update copyright year range of generated files.
16703
16704 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16705
16706 Update copyright year range in all GDB files.
16707
16708 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16709
16710 * copyright.py: Convert to Python 3.
16711
16712 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16713
16714 * copyright.py: Adapt after move of gnulib directory from gdb
16715 directory to toplevel directory.
16716
16717 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16718
16719 * copyright.py (main): Exit if run from the wrong directory.
16720
16721 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16722
16723 * top.c (print_gdb_version): Change copyright year to 2020.
16724
16725 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16726
16727 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
16728
16729 For older changes see ChangeLog-2019.
16730 \f
16731 Local Variables:
16732 mode: change-log
16733 left-margin: 8
16734 fill-column: 74
16735 version-control: never
16736 coding: utf-8
16737 End:
This page took 0.363359 seconds and 5 git commands to generate.