Add get_standard_config_dir function
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
5b3d3560
TT
12020-11-02 Tom Tromey <tromey@adacore.com>
2
3 * python/python.c: Consolidate two HAVE_PYTHON blocks.
4 (python_GdbModuleDef): Move earlier. Now static.
5 (do_start_initialization): Consolidate some IS_PY3K blocks.
6
dda83cd7
SM
72020-11-02 Simon Marchi <simon.marchi@efficios.com>
8
9 * aarch64-linux-tdep.c: Fix indentation.
10 * aarch64-ravenscar-thread.c: Fix indentation.
11 * aarch64-tdep.c: Fix indentation.
12 * aarch64-tdep.h: Fix indentation.
13 * ada-lang.c: Fix indentation.
14 * ada-lang.h: Fix indentation.
15 * ada-tasks.c: Fix indentation.
16 * ada-typeprint.c: Fix indentation.
17 * ada-valprint.c: Fix indentation.
18 * ada-varobj.c: Fix indentation.
19 * addrmap.c: Fix indentation.
20 * addrmap.h: Fix indentation.
21 * agent.c: Fix indentation.
22 * aix-thread.c: Fix indentation.
23 * alpha-bsd-nat.c: Fix indentation.
24 * alpha-linux-tdep.c: Fix indentation.
25 * alpha-mdebug-tdep.c: Fix indentation.
26 * alpha-nbsd-tdep.c: Fix indentation.
27 * alpha-obsd-tdep.c: Fix indentation.
28 * alpha-tdep.c: Fix indentation.
29 * amd64-bsd-nat.c: Fix indentation.
30 * amd64-darwin-tdep.c: Fix indentation.
31 * amd64-linux-nat.c: Fix indentation.
32 * amd64-linux-tdep.c: Fix indentation.
33 * amd64-nat.c: Fix indentation.
34 * amd64-obsd-tdep.c: Fix indentation.
35 * amd64-tdep.c: Fix indentation.
36 * amd64-windows-tdep.c: Fix indentation.
37 * annotate.c: Fix indentation.
38 * arc-tdep.c: Fix indentation.
39 * arch-utils.c: Fix indentation.
40 * arch/arm-get-next-pcs.c: Fix indentation.
41 * arch/arm.c: Fix indentation.
42 * arm-linux-nat.c: Fix indentation.
43 * arm-linux-tdep.c: Fix indentation.
44 * arm-nbsd-tdep.c: Fix indentation.
45 * arm-pikeos-tdep.c: Fix indentation.
46 * arm-tdep.c: Fix indentation.
47 * arm-tdep.h: Fix indentation.
48 * arm-wince-tdep.c: Fix indentation.
49 * auto-load.c: Fix indentation.
50 * auxv.c: Fix indentation.
51 * avr-tdep.c: Fix indentation.
52 * ax-gdb.c: Fix indentation.
53 * ax-general.c: Fix indentation.
54 * bfin-linux-tdep.c: Fix indentation.
55 * block.c: Fix indentation.
56 * block.h: Fix indentation.
57 * blockframe.c: Fix indentation.
58 * bpf-tdep.c: Fix indentation.
59 * break-catch-sig.c: Fix indentation.
60 * break-catch-syscall.c: Fix indentation.
61 * break-catch-throw.c: Fix indentation.
62 * breakpoint.c: Fix indentation.
63 * breakpoint.h: Fix indentation.
64 * bsd-uthread.c: Fix indentation.
65 * btrace.c: Fix indentation.
66 * build-id.c: Fix indentation.
67 * buildsym-legacy.h: Fix indentation.
68 * buildsym.c: Fix indentation.
69 * c-typeprint.c: Fix indentation.
70 * c-valprint.c: Fix indentation.
71 * c-varobj.c: Fix indentation.
72 * charset.c: Fix indentation.
73 * cli/cli-cmds.c: Fix indentation.
74 * cli/cli-decode.c: Fix indentation.
75 * cli/cli-decode.h: Fix indentation.
76 * cli/cli-script.c: Fix indentation.
77 * cli/cli-setshow.c: Fix indentation.
78 * coff-pe-read.c: Fix indentation.
79 * coffread.c: Fix indentation.
80 * compile/compile-cplus-types.c: Fix indentation.
81 * compile/compile-object-load.c: Fix indentation.
82 * compile/compile-object-run.c: Fix indentation.
83 * completer.c: Fix indentation.
84 * corefile.c: Fix indentation.
85 * corelow.c: Fix indentation.
86 * cp-abi.h: Fix indentation.
87 * cp-namespace.c: Fix indentation.
88 * cp-support.c: Fix indentation.
89 * cp-valprint.c: Fix indentation.
90 * cris-linux-tdep.c: Fix indentation.
91 * cris-tdep.c: Fix indentation.
92 * darwin-nat-info.c: Fix indentation.
93 * darwin-nat.c: Fix indentation.
94 * darwin-nat.h: Fix indentation.
95 * dbxread.c: Fix indentation.
96 * dcache.c: Fix indentation.
97 * disasm.c: Fix indentation.
98 * dtrace-probe.c: Fix indentation.
99 * dwarf2/abbrev.c: Fix indentation.
100 * dwarf2/attribute.c: Fix indentation.
101 * dwarf2/expr.c: Fix indentation.
102 * dwarf2/frame.c: Fix indentation.
103 * dwarf2/index-cache.c: Fix indentation.
104 * dwarf2/index-write.c: Fix indentation.
105 * dwarf2/line-header.c: Fix indentation.
106 * dwarf2/loc.c: Fix indentation.
107 * dwarf2/macro.c: Fix indentation.
108 * dwarf2/read.c: Fix indentation.
109 * dwarf2/read.h: Fix indentation.
110 * elfread.c: Fix indentation.
111 * eval.c: Fix indentation.
112 * event-top.c: Fix indentation.
113 * exec.c: Fix indentation.
114 * exec.h: Fix indentation.
115 * expprint.c: Fix indentation.
116 * f-lang.c: Fix indentation.
117 * f-typeprint.c: Fix indentation.
118 * f-valprint.c: Fix indentation.
119 * fbsd-nat.c: Fix indentation.
120 * fbsd-tdep.c: Fix indentation.
121 * findvar.c: Fix indentation.
122 * fork-child.c: Fix indentation.
123 * frame-unwind.c: Fix indentation.
124 * frame-unwind.h: Fix indentation.
125 * frame.c: Fix indentation.
126 * frv-linux-tdep.c: Fix indentation.
127 * frv-tdep.c: Fix indentation.
128 * frv-tdep.h: Fix indentation.
129 * ft32-tdep.c: Fix indentation.
130 * gcore.c: Fix indentation.
131 * gdb_bfd.c: Fix indentation.
132 * gdbarch.sh: Fix indentation.
133 * gdbarch.c: Re-generate
134 * gdbarch.h: Re-generate.
135 * gdbcore.h: Fix indentation.
136 * gdbthread.h: Fix indentation.
137 * gdbtypes.c: Fix indentation.
138 * gdbtypes.h: Fix indentation.
139 * glibc-tdep.c: Fix indentation.
140 * gnu-nat.c: Fix indentation.
141 * gnu-nat.h: Fix indentation.
142 * gnu-v2-abi.c: Fix indentation.
143 * gnu-v3-abi.c: Fix indentation.
144 * go32-nat.c: Fix indentation.
145 * guile/guile-internal.h: Fix indentation.
146 * guile/scm-cmd.c: Fix indentation.
147 * guile/scm-frame.c: Fix indentation.
148 * guile/scm-iterator.c: Fix indentation.
149 * guile/scm-math.c: Fix indentation.
150 * guile/scm-ports.c: Fix indentation.
151 * guile/scm-pretty-print.c: Fix indentation.
152 * guile/scm-value.c: Fix indentation.
153 * h8300-tdep.c: Fix indentation.
154 * hppa-linux-nat.c: Fix indentation.
155 * hppa-linux-tdep.c: Fix indentation.
156 * hppa-nbsd-nat.c: Fix indentation.
157 * hppa-nbsd-tdep.c: Fix indentation.
158 * hppa-obsd-nat.c: Fix indentation.
159 * hppa-tdep.c: Fix indentation.
160 * hppa-tdep.h: Fix indentation.
161 * i386-bsd-nat.c: Fix indentation.
162 * i386-darwin-nat.c: Fix indentation.
163 * i386-darwin-tdep.c: Fix indentation.
164 * i386-dicos-tdep.c: Fix indentation.
165 * i386-gnu-nat.c: Fix indentation.
166 * i386-linux-nat.c: Fix indentation.
167 * i386-linux-tdep.c: Fix indentation.
168 * i386-nto-tdep.c: Fix indentation.
169 * i386-obsd-tdep.c: Fix indentation.
170 * i386-sol2-nat.c: Fix indentation.
171 * i386-tdep.c: Fix indentation.
172 * i386-tdep.h: Fix indentation.
173 * i386-windows-tdep.c: Fix indentation.
174 * i387-tdep.c: Fix indentation.
175 * i387-tdep.h: Fix indentation.
176 * ia64-libunwind-tdep.c: Fix indentation.
177 * ia64-libunwind-tdep.h: Fix indentation.
178 * ia64-linux-nat.c: Fix indentation.
179 * ia64-linux-tdep.c: Fix indentation.
180 * ia64-tdep.c: Fix indentation.
181 * ia64-tdep.h: Fix indentation.
182 * ia64-vms-tdep.c: Fix indentation.
183 * infcall.c: Fix indentation.
184 * infcmd.c: Fix indentation.
185 * inferior.c: Fix indentation.
186 * infrun.c: Fix indentation.
187 * iq2000-tdep.c: Fix indentation.
188 * language.c: Fix indentation.
189 * linespec.c: Fix indentation.
190 * linux-fork.c: Fix indentation.
191 * linux-nat.c: Fix indentation.
192 * linux-tdep.c: Fix indentation.
193 * linux-thread-db.c: Fix indentation.
194 * lm32-tdep.c: Fix indentation.
195 * m2-lang.c: Fix indentation.
196 * m2-typeprint.c: Fix indentation.
197 * m2-valprint.c: Fix indentation.
198 * m32c-tdep.c: Fix indentation.
199 * m32r-linux-tdep.c: Fix indentation.
200 * m32r-tdep.c: Fix indentation.
201 * m68hc11-tdep.c: Fix indentation.
202 * m68k-bsd-nat.c: Fix indentation.
203 * m68k-linux-nat.c: Fix indentation.
204 * m68k-linux-tdep.c: Fix indentation.
205 * m68k-tdep.c: Fix indentation.
206 * machoread.c: Fix indentation.
207 * macrocmd.c: Fix indentation.
208 * macroexp.c: Fix indentation.
209 * macroscope.c: Fix indentation.
210 * macrotab.c: Fix indentation.
211 * macrotab.h: Fix indentation.
212 * main.c: Fix indentation.
213 * mdebugread.c: Fix indentation.
214 * mep-tdep.c: Fix indentation.
215 * mi/mi-cmd-catch.c: Fix indentation.
216 * mi/mi-cmd-disas.c: Fix indentation.
217 * mi/mi-cmd-env.c: Fix indentation.
218 * mi/mi-cmd-stack.c: Fix indentation.
219 * mi/mi-cmd-var.c: Fix indentation.
220 * mi/mi-cmds.c: Fix indentation.
221 * mi/mi-main.c: Fix indentation.
222 * mi/mi-parse.c: Fix indentation.
223 * microblaze-tdep.c: Fix indentation.
224 * minidebug.c: Fix indentation.
225 * minsyms.c: Fix indentation.
226 * mips-linux-nat.c: Fix indentation.
227 * mips-linux-tdep.c: Fix indentation.
228 * mips-nbsd-tdep.c: Fix indentation.
229 * mips-tdep.c: Fix indentation.
230 * mn10300-linux-tdep.c: Fix indentation.
231 * mn10300-tdep.c: Fix indentation.
232 * moxie-tdep.c: Fix indentation.
233 * msp430-tdep.c: Fix indentation.
234 * namespace.h: Fix indentation.
235 * nat/fork-inferior.c: Fix indentation.
236 * nat/gdb_ptrace.h: Fix indentation.
237 * nat/linux-namespaces.c: Fix indentation.
238 * nat/linux-osdata.c: Fix indentation.
239 * nat/netbsd-nat.c: Fix indentation.
240 * nat/x86-dregs.c: Fix indentation.
241 * nbsd-nat.c: Fix indentation.
242 * nbsd-tdep.c: Fix indentation.
243 * nios2-linux-tdep.c: Fix indentation.
244 * nios2-tdep.c: Fix indentation.
245 * nto-procfs.c: Fix indentation.
246 * nto-tdep.c: Fix indentation.
247 * objfiles.c: Fix indentation.
248 * objfiles.h: Fix indentation.
249 * opencl-lang.c: Fix indentation.
250 * or1k-tdep.c: Fix indentation.
251 * osabi.c: Fix indentation.
252 * osabi.h: Fix indentation.
253 * osdata.c: Fix indentation.
254 * p-lang.c: Fix indentation.
255 * p-typeprint.c: Fix indentation.
256 * p-valprint.c: Fix indentation.
257 * parse.c: Fix indentation.
258 * ppc-linux-nat.c: Fix indentation.
259 * ppc-linux-tdep.c: Fix indentation.
260 * ppc-nbsd-nat.c: Fix indentation.
261 * ppc-nbsd-tdep.c: Fix indentation.
262 * ppc-obsd-nat.c: Fix indentation.
263 * ppc-ravenscar-thread.c: Fix indentation.
264 * ppc-sysv-tdep.c: Fix indentation.
265 * ppc64-tdep.c: Fix indentation.
266 * printcmd.c: Fix indentation.
267 * proc-api.c: Fix indentation.
268 * producer.c: Fix indentation.
269 * producer.h: Fix indentation.
270 * prologue-value.c: Fix indentation.
271 * prologue-value.h: Fix indentation.
272 * psymtab.c: Fix indentation.
273 * python/py-arch.c: Fix indentation.
274 * python/py-bpevent.c: Fix indentation.
275 * python/py-event.c: Fix indentation.
276 * python/py-event.h: Fix indentation.
277 * python/py-finishbreakpoint.c: Fix indentation.
278 * python/py-frame.c: Fix indentation.
279 * python/py-framefilter.c: Fix indentation.
280 * python/py-inferior.c: Fix indentation.
281 * python/py-infthread.c: Fix indentation.
282 * python/py-objfile.c: Fix indentation.
283 * python/py-prettyprint.c: Fix indentation.
284 * python/py-registers.c: Fix indentation.
285 * python/py-signalevent.c: Fix indentation.
286 * python/py-stopevent.c: Fix indentation.
287 * python/py-stopevent.h: Fix indentation.
288 * python/py-threadevent.c: Fix indentation.
289 * python/py-tui.c: Fix indentation.
290 * python/py-unwind.c: Fix indentation.
291 * python/py-value.c: Fix indentation.
292 * python/py-xmethods.c: Fix indentation.
293 * python/python-internal.h: Fix indentation.
294 * python/python.c: Fix indentation.
295 * ravenscar-thread.c: Fix indentation.
296 * record-btrace.c: Fix indentation.
297 * record-full.c: Fix indentation.
298 * record.c: Fix indentation.
299 * reggroups.c: Fix indentation.
300 * regset.h: Fix indentation.
301 * remote-fileio.c: Fix indentation.
302 * remote.c: Fix indentation.
303 * reverse.c: Fix indentation.
304 * riscv-linux-tdep.c: Fix indentation.
305 * riscv-ravenscar-thread.c: Fix indentation.
306 * riscv-tdep.c: Fix indentation.
307 * rl78-tdep.c: Fix indentation.
308 * rs6000-aix-tdep.c: Fix indentation.
309 * rs6000-lynx178-tdep.c: Fix indentation.
310 * rs6000-nat.c: Fix indentation.
311 * rs6000-tdep.c: Fix indentation.
312 * rust-lang.c: Fix indentation.
313 * rx-tdep.c: Fix indentation.
314 * s12z-tdep.c: Fix indentation.
315 * s390-linux-tdep.c: Fix indentation.
316 * score-tdep.c: Fix indentation.
317 * ser-base.c: Fix indentation.
318 * ser-mingw.c: Fix indentation.
319 * ser-uds.c: Fix indentation.
320 * ser-unix.c: Fix indentation.
321 * serial.c: Fix indentation.
322 * sh-linux-tdep.c: Fix indentation.
323 * sh-nbsd-tdep.c: Fix indentation.
324 * sh-tdep.c: Fix indentation.
325 * skip.c: Fix indentation.
326 * sol-thread.c: Fix indentation.
327 * solib-aix.c: Fix indentation.
328 * solib-darwin.c: Fix indentation.
329 * solib-frv.c: Fix indentation.
330 * solib-svr4.c: Fix indentation.
331 * solib.c: Fix indentation.
332 * source.c: Fix indentation.
333 * sparc-linux-tdep.c: Fix indentation.
334 * sparc-nbsd-tdep.c: Fix indentation.
335 * sparc-obsd-tdep.c: Fix indentation.
336 * sparc-ravenscar-thread.c: Fix indentation.
337 * sparc-tdep.c: Fix indentation.
338 * sparc64-linux-tdep.c: Fix indentation.
339 * sparc64-nbsd-tdep.c: Fix indentation.
340 * sparc64-obsd-tdep.c: Fix indentation.
341 * sparc64-tdep.c: Fix indentation.
342 * stabsread.c: Fix indentation.
343 * stack.c: Fix indentation.
344 * stap-probe.c: Fix indentation.
345 * stubs/ia64vms-stub.c: Fix indentation.
346 * stubs/m32r-stub.c: Fix indentation.
347 * stubs/m68k-stub.c: Fix indentation.
348 * stubs/sh-stub.c: Fix indentation.
349 * stubs/sparc-stub.c: Fix indentation.
350 * symfile-mem.c: Fix indentation.
351 * symfile.c: Fix indentation.
352 * symfile.h: Fix indentation.
353 * symmisc.c: Fix indentation.
354 * symtab.c: Fix indentation.
355 * symtab.h: Fix indentation.
356 * target-float.c: Fix indentation.
357 * target.c: Fix indentation.
358 * target.h: Fix indentation.
359 * tic6x-tdep.c: Fix indentation.
360 * tilegx-linux-tdep.c: Fix indentation.
361 * tilegx-tdep.c: Fix indentation.
362 * top.c: Fix indentation.
363 * tracefile-tfile.c: Fix indentation.
364 * tracepoint.c: Fix indentation.
365 * tui/tui-disasm.c: Fix indentation.
366 * tui/tui-io.c: Fix indentation.
367 * tui/tui-regs.c: Fix indentation.
368 * tui/tui-stack.c: Fix indentation.
369 * tui/tui-win.c: Fix indentation.
370 * tui/tui-winsource.c: Fix indentation.
371 * tui/tui.c: Fix indentation.
372 * typeprint.c: Fix indentation.
373 * ui-out.h: Fix indentation.
374 * unittests/copy_bitwise-selftests.c: Fix indentation.
375 * unittests/memory-map-selftests.c: Fix indentation.
376 * utils.c: Fix indentation.
377 * v850-tdep.c: Fix indentation.
378 * valarith.c: Fix indentation.
379 * valops.c: Fix indentation.
380 * valprint.c: Fix indentation.
381 * valprint.h: Fix indentation.
382 * value.c: Fix indentation.
383 * value.h: Fix indentation.
384 * varobj.c: Fix indentation.
385 * vax-tdep.c: Fix indentation.
386 * windows-nat.c: Fix indentation.
387 * windows-tdep.c: Fix indentation.
388 * xcoffread.c: Fix indentation.
389 * xml-syscall.c: Fix indentation.
390 * xml-tdesc.c: Fix indentation.
391 * xstormy16-tdep.c: Fix indentation.
392 * xtensa-config.c: Fix indentation.
393 * xtensa-linux-nat.c: Fix indentation.
394 * xtensa-linux-tdep.c: Fix indentation.
395 * xtensa-tdep.c: Fix indentation.
396
e1f57067
AB
3972020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
398 Craig Blackmore <craig.blackmore@embecosm.com>
399
400 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
401 as an unsigned value.
402
ae7754b2
TT
4032020-11-01 Tom Tromey <tom@tromey.com>
404
405 * dbxread.c (dbx_end_psymtab): Update.
406 * dwarf2/read.c (process_psymtab_comp_unit_reader)
407 (build_type_psymtabs_reader): Update.
408 * xcoffread.c (xcoff_end_psymtab): Update.
409 * ctfread.c (scan_partial_symbols): Update.
410 * psymtab.c (sort_pst_symbols): Remove.
411 (partial_symtab::end): Rename from end_psymtab_common. Inline
412 sort_pst_symbols.
413 * psympriv.h (struct partial_symtab) <end>: New method.
414 (end_psymtab_common): Don't declare.
415
0684bb51
TT
4162020-11-01 Tom Tromey <tom@tromey.com>
417
418 * symmisc.c (count_psyms): New function.
419 (print_objfile_statistics): Use it.
420 * psymtab.c (append_psymbol_to_list): Remove.
421 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
422 * objfiles.h (struct objstats) <n_psyms>: Remove.
423
089002bb
TT
4242020-11-01 Tom Tromey <tom@tromey.com>
425
426 * dbxread.c (dbx_end_psymtab): Update.
427 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
428 (build_type_psymtabs_reader): Update.
429 * xcoffread.c (xcoff_end_psymtab): Update.
430 * ctfread.c (scan_partial_symbols): Update.
431 * psympriv.h (end_psymtab_common): Update.
432 * psymtab.c (end_psymtab_common): Remove objfile parameter.
433 (sort_pst_symbols): Likewise.
434
525454d6
TT
4352020-11-01 Tom Tromey <tom@tromey.com>
436
437 * dbxread.c (dbx_symfile_read): Update.
438 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
439 * xcoffread.c (xcoff_initial_scan): Update.
440 * psympriv.h (init_psymbol_list): Don't declare.
441 * psymtab.c (init_psymbol_list): Remove.
442
60bd1d53
JB
4432020-11-01 Joel Brobecker <brobecker@adacore.com>
444
445 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
446 gnat_encoded_fixed_type_info. Update all callers.
447
db99d0d0
JB
4482020-11-01 Joel Brobecker <brobecker@adacore.com>
449
450 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
451 line too long.
452
75f24e86
JB
4532020-11-01 Joel Brobecker <brobecker@adacore.com>
454
455 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
456 cast_from_fixed. Update all callers.
457 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
458 Update all callers.
459 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
460 Update all callers.
461 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
462 ada_scaling_factor.
463 * ada-typeprint.c: Replace call to ada_scaling_factor by call
464 to print_gnat_encoded_fixed_point_type.
465 * ada-valprint.c: Likewise.
466
4f0469cd
AB
4672020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
468
469 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
470 (debug_prefixed_printf): Add check of debug_displaced flag.
471 * linux-nat.c (linux_nat_debug_printf): Add check of
472 debug_linux_nat flag.
473
17417fb0
SM
4742020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
475
476 * infrun.c (infrun_debug_printf_1): Remove.
477 (displaced_debug_printf_1): Remove.
478 (stop_all_threads): Use debug_prefixed_printf.
479 * infrun.h (infrun_debug_printf_1): Remove.
480 (infrun_debug_printf): Use debug_prefixed_printf.
481 (displaced_debug_printf_1): Remove.
482 (displaced_debug_printf): Use debug_prefixed_printf.
483 * linux-nat.c (linux_nat_debug_printf_1): Remove.
484 (linux_nat_debug_printf): Use debug_prefixed_printf.
485
ad6dba1c
SM
4862020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
487
488 * configure: Re-generate.
489 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
490 AC_LANG_PROGRAM.
491
b6fb30ed
SM
4922020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
493
494 * configure: Re-generate.
495
5164c117
SM
4962020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
497
498 * configure: Re-generate.
499
864ca435
SM
5002020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
501
502 * configure: Re-generate.
503
b9442ec1
SM
5042020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
505
506 * configure: Re-generate.
507
294f2697
SM
5082020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
509
510 * acinclude.m4: Modernize.
511 * configure: Re-generate.
512
5593a99a
SM
5132020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
514
515 * configure.ac: Modernize.
516 * configure: Re-generate.
517
e41fda1d
SM
5182020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
519
520 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
521 * configure: Re-generate.
522 * configure.ac: Remove AM_PROG_CC_STDC.
523
91e1a0ed
SM
5242020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
525
526 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
527 AC_CANONICAL_SYSTEM.
528 * configure: Re-generate.
529
136821d9
SM
5302020-10-30 Simon Marchi <simon.marchi@efficios.com>
531
532 * infrun.h (displaced_debug_printf): New macro. Replace
533 displaced debug prints throughout to use it.
534 (displaced_debug_printf_1): New declaration.
535 (displaced_step_dump_bytes): Return string, remove ui_file
536 parameter, update all callers.
537 * infrun.c (displaced_debug_printf_1): New function.
538 (displaced_step_dump_bytes): Return string, remove ui_file
539 parameter
540
aa2045e7
SM
5412020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
542
543 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
544
b1ec2735
TT
5452020-10-30 Tom Tromey <tromey@adacore.com>
546
547 * Makefile.in (stamp-init): Depend on config.status.
548
b78b3a29
TBA
5492020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
550
551 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
552
d70bdd3c
PA
5532020-10-30 Pedro Alves <pedro@palves.net>
554
555 * thread.c (lookup_selected_frame): Move ...
556 * frame.c (lookup_selected_frame): ... here.
557
79952e69
PA
5582020-10-30 Pedro Alves <pedro@palves.net>
559
560 * blockframe.c (block_innermost_frame): Use get_selected_frame.
561 * frame.c
562 (scoped_restore_selected_frame::scoped_restore_selected_frame):
563 Use save_selected_frame. Save language as well.
564 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
565 Use restore_selected_frame, and restore language as well.
566 (selected_frame_id, selected_frame_level): New.
567 (selected_frame): Update comments.
568 (save_selected_frame, restore_selected_frame): New.
569 (get_selected_frame): Use lookup_selected_frame.
570 (get_selected_frame_if_set): Delete.
571 (select_frame): Record selected_frame_level and selected_frame_id.
572 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
573 fields.
574 (get_selected_frame): Make 'message' parameter optional.
575 (get_selected_frame_if_set): Delete declaration.
576 (select_frame): Update comments.
577 (save_selected_frame, restore_selected_frame)
578 (lookup_selected_frame): Declare.
579 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
580 * infrun.c (struct infcall_control_state) <selected_frame_level>:
581 New field.
582 (save_infcall_control_state): Use save_selected_frame.
583 (restore_selected_frame): Delete.
584 (restore_infcall_control_state): Use restore_selected_frame.
585 * stack.c (select_frame_command_core, frame_command_core): Use
586 get_selected_frame.
587 * thread.c (restore_selected_frame): Rename to ...
588 (lookup_selected_frame): ... this and make extern. Select the
589 current frame if the frame level is -1.
590 (scoped_restore_current_thread::restore): Also restore the
591 language.
592 (scoped_restore_current_thread::~scoped_restore_current_thread):
593 Don't try/catch.
594 (scoped_restore_current_thread::scoped_restore_current_thread):
595 Save the language as well. Use save_selected_frame.
596
58103c33
SM
5972020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
598
599 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
600 documentation.
601 * gdbarch.h: Re-generate.
602
40a53766
SM
6032020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
604
605 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
606 parameter.
607 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
608 Likewise.
609 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
610 Likewise.
611 * arch-utils.c (default_displaced_step_hw_singlestep):
612 Likewise.
613 * arch-utils.h (default_displaced_step_hw_singlestep):
614 Likewise.
615 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
616 Likewise.
617 * s390-tdep.c (s390_displaced_step_hw_singlestep):
618 Likewise.
619 * gdbarch.c: Re-generate.
620 * gdbarch.h: Re-generate.
621 * infrun.c (resume_1): Adjust.
622
8407f91b
TT
6232020-10-29 Tom Tromey <tom@tromey.com>
624
625 * progspace.c (program_space::~program_space): Don't call
626 exec_close.
627
5008b3b2
TT
6282020-10-29 Tom Tromey <tom@tromey.com>
629
630 * exec.c (exec_target::close): Don't change current program
631 space.
632
d9eebde0
TT
6332020-10-29 Tom Tromey <tom@tromey.com>
634
635 * symfile.c (add_symbol_file_command): Update.
636 * exec.c (program_space::add_target_sections): Rename.
637 * symfile-mem.c (symbol_file_add_from_memory): Update.
638 * progspace.h (struct program_space) <add_target_sections>:
639 Declare new overload.
640 * exec.h (add_target_sections_of_objfile): Don't declare.
641
3769e227
TT
6422020-10-29 Tom Tromey <tom@tromey.com>
643
644 * solib.c (solib_map_sections): Update.
645 * exec.c (program_space::add_target_sections): Now a method.
646 (exec_file_attach): Update.
647 * exec.h (add_target_sections): Don't declare.
648 * progspace.h (struct program_space) <add_target_sections>:
649 Declare.
650
2a3f84af
TT
6512020-10-29 Tom Tromey <tom@tromey.com>
652
653 * progspace.h (struct program_space) <remove_target_sections>:
654 Declare.
655 * exec.c (program_space::remove_target_sections): Now a method.
656 * exec.h (remove_target_sections): Don't declare.
657
004eecfd
TT
6582020-10-29 Tom Tromey <tom@tromey.com>
659
660 * inferior.c (delete_inferior): Update.
661 * progspace.c (program_space::empty): Rename from
662 program_space_empty_p. Return bool.
663 * progspace.h (struct program_space) <empty>: New method.
664 (program_space_empty_p): Don't declare.
665
e39fb971
TT
6662020-10-29 Tom Tromey <tom@tromey.com>
667
668 * progspace.c (program_space::~program_space): Don't call
669 clear_program_space_solib_cache.
670 (program_space::clear_solib_cache): Rename from
671 clear_solib_cache.
672 * solib.c (handle_solib_event): Update.
673 * progspace.h (struct program_space) <clear_solib_cache>: New
674 method.
675 (clear_program_space_solib_cache): Don't declare.
676
a42d7dd8
TT
6772020-10-29 Tom Tromey <tom@tromey.com>
678
679 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
680 * target.c (info_target_command): Update.
681 * symfile.c (syms_from_objfile_1, finish_new_objfile)
682 (symbol_file_clear, reread_symbols): Update.
683 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
684 * stabsread.c (scan_file_globals): Update.
685 * solib.c (update_solib_list): Update.
686 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
687 (svr4_fetch_objfile_link_map, enable_break)
688 (svr4_relocate_main_executable)
689 (svr4_iterate_over_objfiles_in_search_order): Update.
690 * solib-frv.c (lm_base, enable_break)
691 (frv_relocate_main_executable): Update.
692 (main_got, frv_fdpic_find_canonical_descriptor): Update.
693 (frv_fetch_objfile_link_map): Update.
694 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
695 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
696 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
697 * remote.c (remote_target::get_offsets): Update.
698 (remote_target::start_remote)
699 (extended_remote_target::post_attach): Update.
700 * objfiles.c (entry_point_address_query): Update.
701 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
702 * minsyms.c (get_symbol_leading_char): Update.
703 * frame.c (inside_main_func): Update.
704 * progspace.h (symfile_objfile): Remove macro.
705
19f6550e
TT
7062020-10-29 Tom Tromey <tom@tromey.com>
707
708 * exec.c (exec_file_attach): Update.
709 * progspace.c (program_space::exec_close): Update.
710 * progspace.h (struct program_space) <ebfd>: Now a
711 gdb_bfd_ref_ptr.
712 <set_exec_bfd>: Change argument type.
713 <exec_bfd>: Update.
714
7e10abd1
TT
7152020-10-29 Tom Tromey <tom@tromey.com>
716
717 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
718 * symfile.c (reread_symbols): Update.
719 * symfile-mem.c (add_symbol_file_from_memory_command)
720 (add_vsyscall_page): Update.
721 * source-cache.c (source_cache::get_plain_source_lines): Update.
722 * solib-svr4.c (find_program_interpreter, elf_locate_base)
723 (svr4_current_sos_direct, svr4_exec_displacement)
724 (svr4_relocate_main_executable): Update.
725 (svr4_iterate_over_objfiles_in_search_order): Update.
726 * solib-frv.c (enable_break2, enable_break): Update.
727 * solib-dsbt.c (lm_base, enable_break): Update.
728 * solib-darwin.c (find_program_interpreter)
729 (darwin_solib_create_inferior_hook): Update.
730 * sol-thread.c (rw_common, ps_pdmodel): Update.
731 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
732 * remote.c (compare_sections_command)
733 (remote_target::trace_set_readonly_regions): Update.
734 * remote-sim.c (get_sim_inferior_data)
735 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
736 (gdbsim_target_open, gdbsim_target::files_info): Update.
737 * exec.h (exec_bfd): Remove macro.
738 * progspace.c (initialize_progspace): Update.
739 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
740 Update.
741 * nto-procfs.c (nto_procfs_target::post_attach)
742 (nto_procfs_target::create_inferior): Update.
743 * maint.c (maintenance_info_sections): Update.
744 * linux-thread-db.c (thread_db_target::get_thread_local_address):
745 Update.
746 * infcmd.c (post_create_inferior): Update.
747 * gcore.c (default_gcore_arch, default_gcore_target): Update.
748 (objfile_find_memory_regions): Update.
749 * exec.c (validate_exec_file, exec_file_attach)
750 (exec_read_partial_read_only, print_section_info): Update.
751 * corelow.c (core_target_open): Update.
752 * corefile.c (reopen_exec_file, validate_files): Update.
753 * arm-tdep.c (gdb_print_insn_arm): Update.
754 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
755 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
756 methods.
757
b55221ab
TT
7582020-10-29 Tom Tromey <tom@tromey.com>
759
760 * progspace.h (current_target_sections): Remove macro.
761 * solib-svr4.c (scan_dyntag): Update.
762 * solib-dsbt.c (scan_dyntag): Update.
763 * exec.c (exec_target::close): Update.
764 (add_target_sections, add_target_sections_of_objfile)
765 (remove_target_sections, exec_target::get_section_table)
766 (exec_target::files_info, set_section_command)
767 (exec_set_section_address, exec_target::has_memory)
768 (exec_target::has_memory): Update.
769
5a36e715
TT
7702020-10-29 Tom Tromey <tom@tromey.com>
771
772 * source-cache.c (source_cache::get_plain_source_lines): Use
773 current_program_space.
774 * corefile.c (reopen_exec_file): Use current_program_space.
775 * exec.c (exec_file_attach): Use current_program_space.
776 * exec.h (exec_bfd_mtime): Remove.
777
784c8592
TT
7782020-10-29 Tom Tromey <tom@tromey.com>
779
780 * gcore.c (default_gcore_mach): Remove.
781 (create_gcore_bfd): Update.
782
8a4f1402
TT
7832020-10-29 Tom Tromey <tom@tromey.com>
784
785 * progspace.c (program_space::exec_close): New method, from
786 exec_close in exec.c.
787 * exec.c (exec_close): Move to progspace.c.
788 (exec_target::close, exec_file_attach): Update.
789 * progspace.h (struct program_space) <exec_close>: Declare
790 method.
791
c20cb686
TT
7922020-10-29 Tom Tromey <tom@tromey.com>
793
794 * progspace.h (struct program_space) <exec_filename>: Rename from
795 pspace_exec_filename. Now a unique_xmalloc_ptr.
796 * inferior.c (print_selected_inferior): Update.
797 (print_inferior): Update.
798 * mi/mi-main.c (print_one_inferior): Update.
799 * exec.h (exec_filename): Remove macro.
800 * corefile.c (get_exec_file): Update.
801 * exec.c (exec_close): Update.
802 (exec_file_attach): Update.
803 * progspace.c (clone_program_space): Update.
804 (print_program_space): Update.
805
6be2a9ab
TT
8062020-10-29 Tom Tromey <tom@tromey.com>
807
808 * target-section.h (struct target_section): Add constructor.
809 * exec.c (build_section_table, add_target_sections_of_objfile):
810 Update.
811 * corelow.c (core_target::build_file_mappings): Update.
812
cfaa8f76
TBA
8132020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
814
815 PR gdb/19318
816 * inferior.c (detach_inferior_command): Restore the current thread.
817 (kill_inferior_command): Ditto.
818
1b00ef06
TV
8192020-10-28 Tom de Vries <tdevries@suse.de>
820
821 PR symtab/26772
822 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
823 map, check it in the "best match" loop.
824
7f40ce1a
SM
8252020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
826
827 * m32c-tdep.c: Remove unused includes.
828
5eb9e3f5
SM
8292020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
830
831 * xtensa-tdep.c: Remove includes.
832
b1d4d8d1
TBA
8332020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
834
835 * breakpoint.c (struct condition_command_opts): New struct.
836 (condition_command_option_defs): New static global.
837 (make_condition_command_options_def_group): New function.
838 (condition_completer): Update to consider the '-force' flag.
839 (condition_command): Use gdb::option for the '-force' flag.
840
bd24c5d6
TV
8412020-10-27 Tom de Vries <tdevries@suse.de>
842
843 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
844 symbols in section check.
845
61eb46a4
TV
8462020-10-27 Tom de Vries <tdevries@suse.de>
847
848 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
849
733d554a
TBA
8502020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
851
852 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
853 * breakpoint.c: Update the help text of the 'condition' and 'break'
854 commands.
855 (set_breakpoint_condition): Take a new bool parameter
856 to control whether condition definition should be forced even when
857 the condition expression is invalid in all of the current locations.
858 (condition_command): Update the call to 'set_breakpoint_condition'.
859 (find_condition_and_thread): Take the "-force-condition" flag into
860 account.
861 * linespec.c (linespec_keywords): Add "-force-condition" as an
862 element.
863 (FORCE_KEYWORD_INDEX): New #define.
864 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
865 as a keyword.
866 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
867 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
868 * python/py-breakpoint.c (bppy_set_condition): Ditto.
869 * NEWS: Mention the changes to the 'break' and 'condition' commands.
870
b5fa468f
TBA
8712020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
872
873 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
874 * breakpoint.c (set_breakpoint_location_condition): New function.
875 (set_breakpoint_condition): Disable a breakpoint location if parsing
876 the condition string gives an error.
877 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
878 (build_target_condition_list): Ditto.
879 (build_target_command_list): Ditto.
880 (build_bpstat_chain): Ditto.
881 (print_one_breakpoint_location): Ditto.
882 (print_one_breakpoint): Ditto.
883 (breakpoint_1): Ditto.
884 (bp_location::bp_location): Ditto.
885 (locations_are_equal): Ditto.
886 (update_breakpoint_locations): Ditto.
887 (enable_disable_bp_num_loc): Ditto.
888 (init_breakpoint_sal): Use set_breakpoint_location_condition.
889 (find_condition_and_thread_for_sals): New static function.
890 (create_breakpoint): Call find_condition_and_thread_for_sals.
891 (location_to_sals): Call find_condition_and_thread_for_sals instead
892 of find_condition_and_thread.
893
1c47ec3e
TV
8942020-10-26 Tom de Vries <tdevries@suse.de>
895
896 * dwarf2/read.c (process_full_comp_unit): Call
897 dwarf2_find_base_address.
898
6390859c
TT
8992020-10-26 Tom Tromey <tromey@adacore.com>
900
901 * gdbtypes.c (create_range_type): Revert previous patch. Add
902 comment.
903
d744f0f9
PA
9042020-10-26 Pedro Alves <pedro@palves.net>
905
906 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
907 (my_waitpid): Use gdb::handle_eintr.
908
006811bc
SM
9092020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
910
911 * acinclude.m4: Update ptrace.m4 path.
912 * ptrace.m4: Moved to gdbsupport.
913
c75e31a1
SM
9142020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
915
916 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
917 instead of target_gdbarch.
918
32495661
SM
9192020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
920
921 * jit.c (jit_reader_load_command): Pass current inferior.
922 (jit_inferior_init): Change parameter type to inferior, use it.
923 (jit_inferior_created): Remove.
924 (jit_inferior_created_hook): Pass inferior parameter down.
925 (_initialize_jit): Use jit_inferior_created_hook instead of
926 jit_inferior_created.
927 * jit.h (jit_inferior_created_hook): Add inferior parameter.
928 * infrun.c (follow_exec): Pass inferior to
929 jit_inferior_created_hook.
930
3f66685e
SM
9312020-10-24 Simon Marchi <simon.marchi@efficios.com>
932
933 * linux-thread-db.c (check_pid_namespace_match): Add inferior
934 parameter and use it.
935 (thread_db_inferior_created): Pass inferior argument.
936
a0ff652f
SM
9372020-10-24 Simon Marchi <simon.marchi@efficios.com>
938
939 * aix-thread.c (aix_thread_inferior_created): Add inferior
940 parameter.
941 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
942 * dummy-frame.c (cleanup_dummy_frames): Likewise.
943 * jit.c (jit_inferior_created): Likewise.
944 * linux-thread-db.c (thread_db_inferior_created): Likewise.
945 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
946 * observable.h (inferior_created): Likewise.
947 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
948 * symfile-mem.c (add_vsyscall_page): Likewise.
949 * infcmd.c (post_create_inferior): Pass inferior argument.
950
3c67532c
JB
9512020-10-24 Joel Brobecker <brobecker@adacore.com>
952
953 GDB 10.1 released.
954
8747316e
JB
9552020-10-23 Joel Brobecker <brobecker@adacore.com>
956
957 * ada-typeprint.c (ada_print_type): Remove superfluous second call
958 to ada_check_typedef.
959
1a0ea399
AB
9602020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
961
962 * f-exp.y (f_parse): Rename to...
963 (f_language::parser): ...this.
964 * f-lang.c (f_get_encoding): Rename to...
965 (f_language::get_encoding): ...this.
966 (f_op_print_tab): Rename to...
967 (f_language::op_print_tab): ...this.
968 (exp_descriptor_f): Rename to...
969 (f_language::exp_descriptor_tab): ...this.
970 (class f_language): Moved to f-lang.h.
971 (f_language::language_arch_info): New function, moved out of class
972 declaration.
973 (f_language::search_name_hash): Likewise.
974 (f_language::lookup_symbol_nonlocal): Likewise.
975 (f_language::get_symbol_name_matcher_inner): Likewise.
976 * f-lang.h: Add 'valprint.h' include.
977 (class f_language): Moved here from f-lang.c.
978 * f-typeprint.c (f_type_print_args): Delete commented out
979 declaration.
980 (f_print_typedef): Rename to...
981 (f_language::print_typedef): ...this.
982 (f_print_type): Rename to...
983 (f_language::print_type): ...this.
984 (f_type_print_varspec_prefix): Delete declaration and rename to...
985 (f_language::f_type_print_varspec_prefix): ...this.
986 (f_type_print_varspec_suffix): Delete declaration and rename to...
987 (f_language::f_type_print_varspec_suffix): ...this.
988 (f_type_print_base): Delete declaration and rename to...
989 (f_language::f_type_print_base): ...this.
990 * f-valprint.c (f_value_print_inner): Rename to...
991 (f_language::value_print_inner): ...this.
992 * parse.c: Delete 'f-lang.h' include.
993
88cefd9b
AB
9942020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
995
996 * language.h (language_defn::print_type): Add variable names in
997 declaration, and update header comment.
998
5399db93
AB
9992020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1000
1001 * ada-lang.c (ada_language::demangle): Rename to...
1002 (ada_language::demangle_symbol): ...this.
1003 * c-lang.c (cplus_language::demangle): Rename to...
1004 (cplus_language::demangle_symbol): ...this.
1005 * d-lang.c (d_language::demangle): Rename to...
1006 (d_language::demangle_symbol): ...this.
1007 * f-lang.c (f_language::demangle): Rename to...
1008 (f_language::demangle_symbol): ...this.
1009 * go-lang.c (go_language::demangle): Rename to...
1010 (go_language::demangle_symbol): ...this.
1011 * language.c (language_demangle): Update call to demangle_symbol.
1012 (auto_or_unknown_language::demangle): Rename to...
1013 (auto_or_unknown_language::demangle_symbol): ...this.
1014 * language.h (language_defn::demangle): Rename to...
1015 (language_defn::demangle_symbol): ...this.
1016 * objc-lang.c (objc_language::demangle): Rename to...
1017 (objc_language::demangle_symbol): ...this.
1018 * rust-lang.c (rust_language::demangle): Rename to...
1019 (rust_language::demangle_symbol): ...this.
1020
4b2f86ef
AB
10212020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1022
1023 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
1024 (iterate_over_file_blocks): Replace use of macro with the macros
1025 definition.
1026
e74b39de
AB
10272020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1028
1029 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
1030 * valprint.c (maybe_print_array_index): Replace use of macro with
1031 the macros definition.
1032
00c696a6
AB
10332020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1034
1035 * ada-lang.c (ada_language::print_array_index): Call value_print
1036 directly.
1037 * language.c (language_defn::print_array_index): Likewise.
1038 * language.h (LA_VALUE_PRINT): Delete.
1039 * valprint.c (value_print): Call value_print on the
1040 current_language directly.
1041
d3b67c56
AB
10422020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1043
1044 * language.h (LA_PRINT_TYPEDEF): Delete.
1045 * typeprint.c (typedef_print): Call print_typedef directly on the
1046 current_language object.
1047
790e2a12
AB
10482020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1049
1050 * m2-exp.y (m2_parse): Rename to...
1051 (m2_language::parser): ...this. Update function signature.
1052 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
1053 (m2_op_print): Rename to...
1054 (m2_language::op_print_tab): ...this, and make const.
1055 (exp_descriptor_modula2): Rename to...
1056 (m2_language::exp_descriptor_modula2): ...this.
1057 (class m2_language): Move to m2-lang.h.
1058 (m2_language::language_arch_info): New function, moved out of
1059 class declaration.
1060 (m2_language::printchar): New function, body from m2_printchar.
1061 (m2_language::printstr): New function, moved out of class
1062 declaration.
1063 (m2_language::emitchar): Likewise.
1064 * m2-lang.h (m2_parse): Delete declaration.
1065 (m2_print_typedef): Delete declaration.
1066 (m2_value_print_inner): Delete declaration.
1067 (class m2_language): Class declaration moved from m2-lang.c,
1068 larger functions are left in m2-lang.c.
1069 * m2-typeprint.c (m2_print_typedef): Rename to...
1070 (m2_language::print_typedef): ...this, and update function
1071 signature.
1072 * m2-valprint.c (m2_value_print_inner): Rename to...
1073 (m2_language::value_print_inner): ...this, replace use of
1074 LA_PRINT_STRING with a direct call to printstr member function,
1075 and update recursive call.
1076
b01175fc
AB
10772020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1078
1079 * language.c (default_is_string_type_p): Delete, implementation
1080 moved into auto_or_unknown_language::is_string_type_p.
1081 (unk_op_print_tab): Moved into
1082 auto_or_unknown_language::opcode_print_table.
1083 (unknown_language_arch_info): Delete, implementation moved into
1084 auto_or_unknown_language::language_arch_info.
1085 (class auto_or_unknown_language): New class, member functions
1086 copied from unknown_language class, with some updates.
1087 (class unknown_language): Most member functions moved into
1088 auto_or_unknown_language class. Inherit from
1089 auto_or_unknown_language class.
1090 (class auto_language): Inherit from auto_or_unknown_language.
1091 Delete most member functions.
1092
1a97fe8c
HD
10932020-10-22 Hannes Domani <ssbssa@yahoo.de>
1094
1095 * stabsread.c (read_member_functions): Remove gdb_assert.
1096
6b9d0dfd
HD
10972020-10-22 Hannes Domani <ssbssa@yahoo.de>
1098
1099 * gdbtypes.c (init_complex_type): Check target type name.
1100
4b4bb603
SM
11012020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1102
1103 * target-debug.h (target_debug_print_struct_target_ops_p):
1104 Remove.
1105 (target_debug_print_async_callback_ftype_p): Remove.
1106 (target_debug_print_struct_trace_state_variable_p): Remove.
1107 (target_debug_print_struct_traceframe_info_p): Remove.
1108 (target_debug_print_VEC__btrace_block_s__pp): Remove.
1109 (target_debug_print_enum_btrace_format): Remove.
1110 (target_debug_print_enum_info_proc_what): Remove.
1111 (target_debug_print_thread_info_pp): Remove.
1112
24f5300a
SM
11132020-10-22 Simon Marchi <simon.marchi@efficios.com>
1114
1115 * target.h (struct target_ops) <make_corefile_notes>:
1116 Change return type to unique pointer.
1117 * target.c (dummy_make_corefile_notes): Likewise.
1118 * exec.c (struct exec_target) <make_corefile_notes>:
1119 Likewise.
1120 (exec_target::make_corefile_notes): Likewise.
1121 * procfs.c (class procfs_target) <make_corefile_notes>:
1122 Likewise.
1123 (procfs_do_thread_registers): Adjust to unique pointer.
1124 (struct procfs_corefile_thread_data): Add constructor.
1125 <note_data>: Change type to unique pointer.
1126 (procfs_corefile_thread_callback): Adjust to unique pointer.
1127 (procfs_target::make_corefile_notes): Change return type to
1128 unique pointer.
1129 * target-delegates.c: Re-generate.
1130 * gcore.c (write_gcore_file_1): Adjust.
1131 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
1132 New.
1133
5fb4027f
TV
11342020-10-22 Tom de Vries <tdevries@suse.de>
1135
1136 * block.c (find_block_in_blockvector): Make sure the returned block
1137 contains pc.
1138
4a636814
SM
11392020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1140
1141 PR gdb/26693
1142 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
1143 parameter.
1144 (load_cu): Pass existing CU.
1145 (process_imported_unit_die): Likewise.
1146 (follow_die_offset): Likewise.
1147
1bd57575
LM
11482020-10-22 Luis Machado <luis.machado@linaro.org>
1149
1150 * corelow.c (core_target::xfer_partial): Also check for an empty
1151 m_core_unavailable_mappings vector.
1152
6b4c676c
AB
11532020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1154
1155 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
1156 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
1157 * f-exp.y (arglist): Allow for a series of subranges.
1158 (subrange): Add cases for subranges with strides.
1159 * f-lang.c (value_f90_subarray): Catch use of array strides and
1160 throw an error.
1161 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
1162
f2d8e4c5
AB
11632020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1164
1165 * expprint.c (print_subexp_standard): Change enum range_type to
1166 range_flag and rename variables to match.
1167 (dump_subexp_body_standard): Likewise.
1168 * expression.h (enum range_type): Rename to...
1169 (enum range_flag): ...this.
1170 (range_types): Rename to...
1171 (range_flags): ...this.
1172 * f-lang.c (value_f90_subarray): Change enum range_type to
1173 range_flag and rename variables to match.
1174 * parse.c (operator_length_standard): Likewise.
1175 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
1176 range_type to range_flag.
1177 * rust-lang.c (rust_evaluate_funcall): Likewise.
1178 (rust_range): Likewise.
1179 (rust_compute_range): Likewise.
1180 (rust_subscript): Likewise.
1181
2f1b18db
AB
11822020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1183
1184 * expprint.c (print_subexp_standard): Update to reflect changes to
1185 enum range_type.
1186 (dump_subexp_body_standard): Likewise.
1187 * expression.h (enum range_type): Convert to a bit field enum, and
1188 make the enum unsigned.
1189 * f-exp.y (subrange): Update to reflect changes to enum
1190 range_type.
1191 * f-lang.c (value_f90_subarray): Likewise.
1192 * parse.c (operator_length_standard): Likewise.
1193 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
1194 * rust-lang.c (rust_range): Likewise.
1195 (rust_compute_range): Likewise.
1196 (rust_subscript): Likewise.
1197
a46d1843
SM
11982020-10-21 Simon Marchi <simon.marchi@efficios.com>
1199
1200 * infrun.c (displaced_step_in_progress_thread): Fix comment.
1201 (displaced_step_in_progress): Fix comment.
1202
c21f37a8
SM
12032020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
1204
1205 * gdbarch.sh (make_corefile_notes): Return unique pointer.
1206 * gdbarch.c: Re-generate.
1207 * gdbarch.h: Re-generate.
1208 * gcore.c (write_gcore_file_1): Adjust.
1209 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
1210 constructor.
1211 <note_data>: Change type to unique pointer.
1212 <abort_iteration>: Change type to bool.
1213 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
1214 (fbsd_collect_thread_registers): Return void, adjust.
1215 (struct fbsd_corefile_thread_data): Add construtor.
1216 <note_data>: Change type to unique pointer.
1217 (fbsd_corefile_thread): Adjust.
1218 (fbsd_make_corefile_notes): Return unique pointer, adjust.
1219 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
1220 to unique pointer, adjust.
1221 (struct linux_collect_regset_section_cb_data): Add constructor.
1222 <note_data>: Change type to unique pointer.
1223 <abort_iteration>: Change type to bool.
1224 (linux_collect_thread_registers): Return void, adjust.
1225 (struct linux_corefile_thread_data): Add constructor.
1226 <note_data>: Change type to unique pointer.
1227 (linux_corefile_thread): Adjust.
1228 (linux_make_corefile_notes): Return unique pointer, adjust.
1229
07fbbd01
SM
12302020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1231
1232 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
1233 * gdbarch.c: Re-generate.
1234 * gdbarch.h: Re-generate.
1235 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
1236 bool.
1237 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1238 Likewise.
1239 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
1240 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
1241 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
1242 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
1243
39535193
SM
12442020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1245
1246 * gdbarch.sh: Make generated predicates return bool.
1247 * gdbarch.c: Re-generate.
1248 * gdbarch.h: Re-generate.
1249
ad523d01
TT
12502020-10-20 Tom Tromey <tom@tromey.com>
1251
1252 * varobj-iter.h (struct varobj_item): Remove typedef.
1253
c4464ade
SM
12542020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1255
1256 * infrun.c (currently_stepping): Change int to bool
1257 (maybe_software_singlestep): Likewise.
1258 (show_stop_on_solib_events): Likewise.
1259 (stepping_past_nonsteppable_watchpoint): Likewise.
1260 (displaced_step_in_progress_any_inferior): Likewise.
1261 (displaced_step_in_progress_thread): Likewise.
1262 (keep_going_stepped_thread): Likewise.
1263 (thread_still_needs_step_over): Likewise.
1264 (start_step_over): Likewise.
1265 (do_target_resume): Likewise.
1266 (resume_1): Likewise.
1267 (clear_proceed_status): Likewise.
1268 (thread_still_needs_step_over_bp): Likewise.
1269 (proceed): Likewise.
1270 (switch_back_to_stepped_thread): Likewise.
1271 (adjust_pc_after_break): Likewise.
1272 (stepped_in_from): Likewise.
1273 (handle_stop_requested): Likewise.
1274 (handle_syscall_event): Likewise.
1275 (handle_no_resumed): Likewise.
1276 (handle_inferior_event): Likewise.
1277 (finish_step_over): Likewise.
1278 (handle_signal_stop): Likewise.
1279 (process_event_stop_test): Likewise.
1280
2eb20436
SM
12812020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1282
1283 * infrun.c (get_displaced_stepping_state): Fix comment.
1284
e0c45ded
AS
12852020-10-20 Andreas Schwab <schwab@linux-m68k.org>
1286
1287 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
1288
22cc388e
TT
12892020-10-19 Tom Tromey <tromey@adacore.com>
1290
1291 PR tui/26719
1292 * tui/tui-winsource.h (struct tui_source_window_base)
1293 <refresh_window>: Rename from refresh_pad.
1294 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
1295 Rename from refresh_pad.
1296 (tui_source_window_base::show_source_content)
1297 (tui_source_window_base::do_scroll_horizontal): Update.
1298
3c6eb4d4
TBA
12992020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1300
1301 * thread.c (_initialize_thread): Fine-tune the help text of
1302 'info threads'.
1303
26703721
TBA
13042020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1305
1306 * frame.c: Remove the unused 'uinteger_option_def' type alias.
1307
61c26be8
MS
13082020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
1309
1310 * breakpoint.c (handle_jit_event): Add an argument, change how
1311 `jit_event_handler` is called.
1312
932539d7
TT
13132020-10-17 Tom Tromey <tom@tromey.com>
1314
1315 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
1316 (scan_xcoff_symtab): Update.
1317 * psymtab.h (class psymtab_storage) <global_psymbols,
1318 static_psymbols, current_global_psymbols,
1319 current_static_psymbols>: Remove.
1320 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
1321 (match_partial_symbol, lookup_partial_symbol): Update.
1322 (print_partial_symbols): Change parameters.
1323 (dump_psymtab, recursively_search_psymtabs)
1324 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
1325 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
1326 (concat): Remove.
1327 (end_psymtab_common): Simplify.
1328 (append_psymbol_to_list): Change parameters.
1329 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
1330 (init_psymbol_list): Simplify.
1331 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
1332 * psympriv.h (struct partial_symtab) <empty>: New method.
1333 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
1334 Remove.
1335 <global_psymbols, static_psymbols>: New members.
1336 <add_psymbol>: New methods.
1337 (add_psymbol_to_list): Don't declare.
1338 (psymbol_placement): Move earlier.
1339 * mdebugread.c (parse_partial_symbols): Update.
1340 (handle_psymbol_enumerators): Change parameters.
1341 (mdebug_expand_psymtab): Update.
1342 * dwarf2/read.c (process_psymtab_comp_unit_reader)
1343 (add_partial_symbol): Update.
1344 * dwarf2/index-write.c (write_psymbols): Change parameters.
1345 (write_one_signatured_type): Update.
1346 (recursively_count_psymbols): Update.
1347 (recursively_write_psymbols): Update.
1348 (class debug_names) <recursively_write_psymbols>: Update.
1349 <write_psymbols>: Change parameters.
1350 <write_one_signatured_type>: Update.
1351 * dbxread.c (read_dbx_symtab): Update.
1352 (dbx_end_psymtab): Use partial_symtab::empty.
1353 * ctfread.c (struct ctf_context) <pst>: New member.
1354 (create_partial_symtab): Set it.
1355 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
1356 (scan_partial_symbols): Use the psymtab's context. Update.
1357
cfabbd35
TT
13582020-10-17 Tom Tromey <tom@tromey.com>
1359
1360 * valprint.c (generic_value_print): Remove comment.
1361 * m2-valprint.c (m2_value_print_inner): Remove comment.
1362 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
1363 type.
1364
520596f2
TV
13652020-10-17 Tom de Vries <tdevries@suse.de>
1366
1367 PR symtab/26317
1368 * source.c (select_source_symtab): Handling sal.symtab == NULL for
1369 symbol main.
1370
76547ab3
TV
13712020-10-14 Tom de Vries <tdevries@suse.de>
1372
1373 PR gdb/26733
1374 * solib.c (solib_contains_address_p): Handle
1375 'solib->sections == nullptr'.
1376
d3a07122
SM
13772020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
1378
1379 PR gdb/26642
1380 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
1381 target can't do async.
1382 * target.c (target_wait): Assert that we don't pass
1383 TARGET_WNOHANG to a target that can't async.
1384
1b71cfcf
KR
13852020-10-13 Kamil Rytarowski <n54@gmx.com>
1386
1387 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
1388 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
1389 * alpha-bsd-nat.c: Adjust include.
1390 * alpha-bsd-tdep.h: Adjust comment.
1391 * alpha-nbsd-tdep.c: Rename to ...
1392 * alpha-netbsd-tdep.c: ... this, adjust include.
1393 * amd64-nbsd-nat.c: Rename to ...
1394 * amd64-netbsd-nat.c: ... this, adjust include.
1395 * amd64-nbsd-tdep.c: Rename to ...
1396 * amd64-netbsd-tdep.c: ... this, adjust include.
1397 * amd64-tdep.h: Adjust include.
1398 * arm-nbsd-nat.c: Rename to ...
1399 * arm-netbsd-nat.c: ... this, adjust include.
1400 * arm-nbsd-tdep.c: Rename to ...
1401 * arm-netbsd-tdep.c: ... this, adjust include.
1402 * arm-nbsd-tdep.h: Rename to ...
1403 * arm-netbsd-tdep.h: ... this, adjust include.
1404 * configure.nat: Adjust file lists.
1405 * configure.tgt: Likewise.
1406 * hppa-nbsd-nat.c: Rename to ...
1407 * hppa-netbsd-nat.c: ... this, adjust include.
1408 * hppa-nbsd-tdep.c: Rename to ...
1409 * hppa-netbsd-tdep.c: ... this, adjust include.
1410 * i386-nbsd-nat.c: Rename to ...
1411 * i386-netbsd-nat.c: ... this, adjust include.
1412 * i386-nbsd-tdep.c: Rename to ...
1413 * i386-netbsd-tdep.c: ... this, adjust include.
1414 * m68k-bsd-nat.c: Adjust include.
1415 * mips-nbsd-nat.c: Rename to ...
1416 * mips-netbsd-nat.c: ... this, adjust include.
1417 * mips-nbsd-tdep.c: Rename to ...
1418 * mips-netbsd-tdep.c: ... this, adjust include.
1419 * mips-nbsd-tdep.h: Rename to ...
1420 * mips-netbsd-tdep.h: ... this.
1421 * nbsd-nat.c: Rename to ...
1422 * netbsd-nat.c: ... this, adjust include.
1423 * nbsd-nat.h: Rename to ...
1424 * netbsd-nat.h: ... this, adjust include.
1425 * nbsd-tdep.c: Rename to ...
1426 * netbsd-tdep.c: ... this, adjust include.
1427 * nbsd-tdep.h: Rename to ...
1428 * netbsd-tdep.h: ... this.
1429 * ppc-nbsd-nat.c: Rename to ...
1430 * ppc-netbsd-nat.c: ... this, adjust include.
1431 * ppc-nbsd-tdep.c: Rename to ...
1432 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
1433 * ppc-nbsd-tdep.h: Rename to ...
1434 * ppc-netbsd-tdep.h: ... this.
1435 * sh-nbsd-nat.c: Rename to ...
1436 * sh-netbsd-nat.c: ... this, adjust include.
1437 * sh-nbsd-tdep.c: Rename to ...
1438 * sh-netbsd-tdep.c: ... this, adjust include.
1439 * sparc-nbsd-nat.c: Rename to ...
1440 * sparc-netbsd-nat.c: ... this.
1441 * sparc-nbsd-tdep.c: Rename to ...
1442 * sparc-netbsd-tdep.c: ... this, adjust include.
1443 * sparc64-nbsd-nat.c: Rename to ...
1444 * sparc64-netbsd-nat.c: ... this.
1445 * sparc64-nbsd-tdep.c: Rename to ...
1446 * sparc64-netbsd-tdep.c: ... this, adjust include.
1447 * sparc64-tdep.h: Adjust comment.
1448 * vax-bsd-nat.c: Adjust include.
1449 * vax-nbsd-tdep.c: Rename to ...
1450 * vax-netbsd-tdep.c: ... this, adjust include.
1451
d7a78e5c
TT
14522020-10-12 Tom Tromey <tom@tromey.com>
1453
1454 * target.h (struct target_ops) <get_section_table>: Update.
1455 (target_get_section_table): Update.
1456 * target.c (target_get_section_table, target_section_by_addr)
1457 (memory_xfer_partial_1): Update.
1458 * target-section.h (target_section_table): Now an alias.
1459 * target-delegates.c: Rebuild.
1460 * target-debug.h (target_debug_print_target_section_table_p):
1461 Rename from target_debug_print_struct_target_section_table_p.
1462 * symfile.c (build_section_addr_info_from_section_table): Update.
1463 * solib.c (solib_map_sections, solib_contains_address_p): Update.
1464 * solib-svr4.c (scan_dyntag): Update.
1465 * solib-dsbt.c (scan_dyntag): Update.
1466 * remote.c (remote_target::remote_xfer_live_readonly_partial):
1467 Update.
1468 * record-full.c (record_full_core_target::xfer_partial): Update.
1469 * progspace.h (struct program_space) <target_sections>: Update.
1470 * exec.h (print_section_info): Update.
1471 * exec.c (exec_target::close, build_section_table)
1472 (add_target_sections, add_target_sections_of_objfile)
1473 (remove_target_sections, exec_on_vfork)
1474 (section_table_available_memory)
1475 (section_table_xfer_memory_partial)
1476 (exec_target::get_section_table, exec_target::xfer_partial)
1477 (print_section_info, set_section_command)
1478 (exec_set_section_address, exec_target::has_memory): Update.
1479 * corelow.c (core_target::build_file_mappings)
1480 (core_target::xfer_partial, core_target::info_proc_mappings)
1481 (core_target::info_proc_mappings): Update.
1482 * bfd-target.c (class target_bfd): Update
1483
eda214ce
TT
14842020-10-12 Tom Tromey <tom@tromey.com>
1485
1486 * progspace.c (program_space::~program_space): Don't call
1487 clear_section_table.
1488 * exec.h (clear_section_table): Don't declare.
1489 * exec.c (exec_target::close): Update.
1490 (clear_section_table): Remove.
1491
91840ee3
TT
14922020-10-12 Tom Tromey <tom@tromey.com>
1493
1494 * exec.c (add_target_sections_of_objfile): Simplify.
1495
2d128614
TT
14962020-10-12 Tom Tromey <tom@tromey.com>
1497
1498 * solib.c (solib_map_sections): Update.
1499 * record-full.c (record_full_core_open_1): Update.
1500 * exec.h (build_section_table): Return a target_section_table.
1501 * exec.c (exec_file_attach): Update.
1502 (build_section_table): Return a target_section_table.
1503 * corelow.c (core_target::core_target): Update.
1504 * bfd-target.c (target_bfd::target_bfd): Update.
1505
bb2a6777
TT
15062020-10-12 Tom Tromey <tom@tromey.com>
1507
1508 * target.c (target_section_by_addr, memory_xfer_partial_1):
1509 Update.
1510 * target-section.h (struct target_section_table): Use
1511 std::vector.
1512 * symfile.h (build_section_addr_info_from_section_table): Take a
1513 target_section_table.
1514 * symfile.c (build_section_addr_info_from_section_table): Take a
1515 target_section_table.
1516 * solist.h (struct so_list) <sections>: Change type.
1517 <sections_end>: Remove.
1518 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
1519 (solib_contains_address_p): Update.
1520 * solib-svr4.c (scan_dyntag): Update.
1521 * solib-dsbt.c (scan_dyntag): Update.
1522 * remote.c (remote_target::remote_xfer_live_readonly_partial):
1523 Update.
1524 * record-full.c (record_full_core_start, record_full_core_end):
1525 Remove.
1526 (record_full_core_sections): New global.
1527 (record_full_core_open_1, record_full_core_target::xfer_partial):
1528 Update.
1529 * exec.h (build_section_table, section_table_xfer_memory_partial)
1530 (add_target_sections): Take a target_section_table.
1531 * exec.c (exec_file_attach, clear_section_table): Update.
1532 (resize_section_table): Remove.
1533 (build_section_table, add_target_sections): Take a
1534 target_section_table.
1535 (add_target_sections_of_objfile, remove_target_sections)
1536 (exec_on_vfork): Update.
1537 (section_table_available_memory): Take a target_section_table.
1538 (section_table_read_available_memory): Update.
1539 (section_table_xfer_memory_partial): Take a target_section_table.
1540 (print_section_info, set_section_command)
1541 (exec_set_section_address, exec_target::has_memory): Update.
1542 * corelow.c (class core_target) <m_core_section_table,
1543 m_core_file_mappings>: Remove braces.
1544 <~core_target>: Remove.
1545 (core_target::core_target): Update.
1546 (core_target::~core_target): Remove.
1547 (core_target::build_file_mappings)
1548 (core_target::xfer_memory_via_mappings)
1549 (core_target::xfer_partial, core_target::info_proc_mappings):
1550 Update.
1551 * bfd-target.c (target_bfd::xfer_partial): Update.
1552 (target_bfd::target_bfd): Update.
1553 (target_bfd::~target_bfd): Remove.
1554
7b466b10
TT
15552020-10-12 Tom Tromey <tom@tromey.com>
1556
1557 * target.h (struct target_section, struct target_section_table):
1558 Move to target-section.h.
1559 * target-section.h: New file.
1560
87a37e5e
PA
15612020-10-12 Pedro Alves <pedro@palves.net>
1562
1563 PR exp/26602
1564 * valops.c (struct struct_field_searcher): New.
1565 (update_search_result): Rename to ...
1566 (struct_field_searcher::update_result): ... this. Simplify
1567 prototype. Record all found fields.
1568 (do_search_struct_field): Rename to ...
1569 (struct_field_searcher::search): ... this. Simplify prototype.
1570 Maintain stack of visited baseclass path. Call update_result for
1571 fields too. Keep searching fields in baseclasses instead of
1572 stopping at the first found field.
1573 (search_struct_field): Use struct_field_searcher. When looking
1574 for fields, report ambiguous access attempts.
1575
9370fd51
AB
15762020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
1577
1578 * frame.c (inside_main_func): Check full symbols as well as
1579 minimal symbols.
1580
59c8a30b
JB
15812020-10-09 Joel Brobecker <brobecker@adacore.com>
1582
1583 * ada-lang.c (advance_wild_match): Rewrite the function's
1584 description. Change the type of target0, t0 and t1 to char.
1585
7c184d33
TT
15862020-10-09 Tom Tromey <tromey@adacore.com>
1587
1588 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
1589
5c4258f4
TT
15902020-10-09 Tom Tromey <tromey@adacore.com>
1591
1592 * ada-lang.h (ada_encode): Return std::string.
1593 * ada-lang.c (ada_encode_1): Return std::string.
1594 (ada_encode): Likewise.
1595 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
1596 Update.
1597 * ada-exp.y (block_lookup, write_var_or_type): Update.
1598
3d87245c
HD
15992020-10-09 Hannes Domani <ssbssa@yahoo.de>
1600
1601 PR exp/26714
1602 * printcmd.c (print_formatted): Handle void results as
1603 unformatted prints.
1604
bbb826f5
AB
16052020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
1606
1607 * arch/aarch32.c (aarch32_create_target_description): Release the
1608 target_desc_up as late as possible.
1609 * arch/aarch64.c (aarch64_create_target_description): Likewise.
1610 * arch/amd64.c (amd64_create_target_description): Likewise.
1611 * arch/arc.c (arc_create_target_description): Return a
1612 target_desc_up, don't release it.
1613 * arch/arc.h (arc_create_target_description): Update declaration.
1614 (arc_lookup_target_description): Move target_desc_up into the
1615 cache, and return a borrowed pointer.
1616 * arch/arm.c (arm_create_target_description): Release the
1617 target_desc_up as late as possible.
1618 * arch/i386.c (i386_create_target_description): Likewise.
1619 * arch/riscv.h (riscv_create_target_description): Update
1620 declaration to match definition.
1621 * arch/tic6x.c (tic6x_create_target_description): Release the
1622 target_desc_up as late as possible.
1623
361cb219
AB
16242020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
1625
1626 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
1627 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
1628
f5c4b229
JV
16292020-10-09 Jan Vrany <jan.vrany@labware.com>
1630
1631 * source.c (directory_command): Notify observers that "directories"
1632 parameter has changed.
1633
b2701685
TT
16342020-10-08 Tom Tromey <tom@tromey.com>
1635
1636 * cli/cli-cmds.c (print_disassembly): Style function name and
1637 addresses. Add _() wrappers.
1638
ada508b6
SV
16392020-10-08 Shahab Vahedi <shahab@synopsys.com>
1640
1641 * NEWS: Mention ARC support in GDBserver.
1642
51a948fd
AB
16432020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
1644
1645 * arch/aarch32.c (aarch32_create_target_description): Release
1646 unique_ptr returned from allocate_target_description.
1647 * arch/aarch64.c (aarch64_create_target_description): Likewise.
1648 * arch/amd64.c (amd64_create_target_description): Likewise.
1649 * arch/arc.c (arc_create_target_description): Likewise.
1650 * arch/arm.c (arm_create_target_description): Likewise.
1651 * arch/i386.c (i386_create_target_description): Likewise.
1652 * arch/riscv.c (riscv_create_target_description): Update return
1653 type. Handle allocate_target_description returning a unique_ptr.
1654 (riscv_lookup_target_description): Update to handle unique_ptr.
1655 * arch/tic6x.c (tic6x_create_target_description): Release
1656 unique_ptr returned from allocate_target_description.
1657 * features/microblaze-with-stack-protect.c: Regenerate.
1658 * features/microblaze.c: Regenerate.
1659 * features/mips-dsp-linux.c: Regenerate.
1660 * features/mips-linux.c: Regenerate.
1661 * features/mips64-dsp-linux.c: Regenerate.
1662 * features/mips64-linux.c: Regenerate.
1663 * features/nds32.c: Regenerate.
1664 * features/nios2.c: Regenerate.
1665 * features/or1k.c: Regenerate.
1666 * features/rs6000/powerpc-32.c: Regenerate.
1667 * features/rs6000/powerpc-32l.c: Regenerate.
1668 * features/rs6000/powerpc-403.c: Regenerate.
1669 * features/rs6000/powerpc-403gc.c: Regenerate.
1670 * features/rs6000/powerpc-405.c: Regenerate.
1671 * features/rs6000/powerpc-505.c: Regenerate.
1672 * features/rs6000/powerpc-601.c: Regenerate.
1673 * features/rs6000/powerpc-602.c: Regenerate.
1674 * features/rs6000/powerpc-603.c: Regenerate.
1675 * features/rs6000/powerpc-604.c: Regenerate.
1676 * features/rs6000/powerpc-64.c: Regenerate.
1677 * features/rs6000/powerpc-64l.c: Regenerate.
1678 * features/rs6000/powerpc-7400.c: Regenerate.
1679 * features/rs6000/powerpc-750.c: Regenerate.
1680 * features/rs6000/powerpc-860.c: Regenerate.
1681 * features/rs6000/powerpc-altivec32.c: Regenerate.
1682 * features/rs6000/powerpc-altivec32l.c: Regenerate.
1683 * features/rs6000/powerpc-altivec64.c: Regenerate.
1684 * features/rs6000/powerpc-altivec64l.c: Regenerate.
1685 * features/rs6000/powerpc-e500.c: Regenerate.
1686 * features/rs6000/powerpc-e500l.c: Regenerate.
1687 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
1688 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
1689 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
1690 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
1691 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
1692 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
1693 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
1694 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
1695 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
1696 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
1697 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
1698 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
1699 * features/rs6000/powerpc-vsx32.c: Regenerate.
1700 * features/rs6000/powerpc-vsx32l.c: Regenerate.
1701 * features/rs6000/powerpc-vsx64.c: Regenerate.
1702 * features/rs6000/powerpc-vsx64l.c: Regenerate.
1703 * features/rs6000/rs6000.c: Regenerate.
1704 * features/rx.c: Regenerate.
1705 * features/s390-gs-linux64.c: Regenerate.
1706 * features/s390-linux32.c: Regenerate.
1707 * features/s390-linux32v1.c: Regenerate.
1708 * features/s390-linux32v2.c: Regenerate.
1709 * features/s390-linux64.c: Regenerate.
1710 * features/s390-linux64v1.c: Regenerate.
1711 * features/s390-linux64v2.c: Regenerate.
1712 * features/s390-te-linux64.c: Regenerate.
1713 * features/s390-tevx-linux64.c: Regenerate.
1714 * features/s390-vx-linux64.c: Regenerate.
1715 * features/s390x-gs-linux64.c: Regenerate.
1716 * features/s390x-linux64.c: Regenerate.
1717 * features/s390x-linux64v1.c: Regenerate.
1718 * features/s390x-linux64v2.c: Regenerate.
1719 * features/s390x-te-linux64.c: Regenerate.
1720 * features/s390x-tevx-linux64.c: Regenerate.
1721 * features/s390x-vx-linux64.c: Regenerate.
1722 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
1723 from allocate_target_description.
1724 * target-descriptions.c (allocate_target_description): Update
1725 return type.
1726 (print_c_tdesc::visit_pre): Release unique_ptr returned from
1727 allocate_target_description.
1728
485c47e5
TT
17292020-10-07 Tom Tromey <tromey@adacore.com>
1730
1731 * unittests/search-memory-selftests.c: New file.
1732 * Makefile.in (SELFTESTS_SRCS): Add
1733 unittests/search-memory-selftests.c.
1734
3a135a91
TT
17352020-10-07 Tom Tromey <tromey@adacore.com>
1736
1737 PR gdb/16930:
1738 * findcmd.c (_initialize_mem_search): Mention that the range is
1739 inclusive.
1740
4a72de73
TT
17412020-10-07 Tom Tromey <tromey@adacore.com>
1742
1743 * target.h (simple_search_memory): Don't declare.
1744 * target.c (simple_search_memory): Move to gdbsupport.
1745 (default_search_memory): Update.
1746 * remote.c (remote_target::search_memory): Update.
1747
a038ffd8
SM
17482020-10-07 Simon Marchi <simon.marchi@efficios.com>
1749
1750 * Makefile.in (COMPILE): Add CXXFLAGS.
1751 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
1752 (check-headers): Add CXXFLAGS.
1753
cc463201
AK
17542020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
1755
1756 * arc-linux-tdep.h: New file.
1757 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
1758 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
1759 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
1760 arc_linux_gregset, arc_linux_v2_regset,
1761 arc_linux_iterate_over_regset_sections,
1762 arc_linux_core_read_description): Implement.
1763 (arc_linux_init_osabi): Set iterate_over_regset_sections.
1764 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
1765 (arc_gdbarch_features_create): Add.
1766 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
1767
e4bd363f
SV
17682020-10-07 Shahab Vahedi <shahab@synopsys.com>
1769
1770 * arch/arc.h: Rename "arc_gdbarch_features" to
1771 "arc_arch_features".
1772 * arc-tdep.h: Likewise.
1773 * arc-tdep.c: Likewise.
1774
b68bef99
TBA
17752020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1776
1777 * infcmd.c (attach_command): Remove the redundant call to
1778 `clear_proceed_status`.
1779
4641551a
KR
17802020-10-07 Kamil Rytarowski <n54@gmx.com>
1781
1782 * nat/netbsd-nat.c (write_memory, read_memory): Update.
1783
91e5e8db
KR
17842020-10-07 Kamil Rytarowski <n54@gmx.com>
1785
1786 * nat/netbsd-nat.c (write_memory, read_memory): Add.
1787 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
1788 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
1789
64c03bdb
SM
17902020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
1791
1792 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
1793 (_initialize_break_catch_sig): Don't allocate array.
1794
31a8f60f
AB
17952020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
1796
1797 * symtab.c (find_pc_line): Return unmapped addresses when the
1798 requested address is also unmapped.
1799
9e6dbd8b
SM
18002020-10-05 Simon Marchi <simon.marchi@efficios.com>
1801
1802 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
1803 tui/tui-out.h.
1804
a1d217e8
SM
18052020-10-05 Simon Marchi <simon.marchi@efficios.com>
1806
1807 * amd64-windows-tdep.c (amd64_windows_return_value): Use
1808 type::is_vector instead of TYPE_VECTOR.
1809
7d144117
SM
18102020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
1811
1812 * auto-load.c (auto_load_objfile_script_1): Don't use
1813 debugfile_holder as temporary variable when stripping drive
1814 letter.
1815
cd096ec8
HD
18162020-10-05 Hannes Domani <ssbssa@yahoo.de>
1817
1818 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
1819 Add TYPE_CODE_COMPLEX.
1820 (amd64_windows_return_value): Fix types returned via XMM0.
1821
b58e7f72
AH
18222020-10-05 Alan Hayward <alan.hayward@arm.com>
1823
1824 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
1825 AArch64/ARM maintainers.
1826
8d378f27
SM
18272020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
1828
1829 * NEWS: Mention set/show debug event-loop.
1830
d5519913
TT
18312020-10-02 Tom Tromey <tromey@adacore.com>
1832
1833 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
1834 REG_EXTENDED.
1835
18b67edc
SM
18362020-10-02 Simon Marchi <simon.marchi@efficios.com>
1837
1838 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
1839 * procfs.c (procfs_inferior_created): Remove.
1840 (_initialize_procfs): Don't register procfs_inferior_created.
1841
6b01403b
SM
18422020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1843
1844 * async-event.c (invoke_async_signal_handlers): Add debug
1845 print.
1846 (check_async_event_handlers): Likewise.
1847 * event-top.c (show_debug_event_loop): New function.
1848 (_initialize_event_top): Register "set debug event-loop"
1849 setting.
1850
ba988419
SM
18512020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1852
1853 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
1854 * debug.h: Remove.
1855 * infrun.c: Include gdbsupport/common-debug.h.
1856 * linux-nat.c: Likewise.
1857
db20ebdf
SM
18582020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1859
1860 * async-event.h (create_async_signal_handler): Add name
1861 parameter.
1862 (create_async_event_handler): Likewise.
1863 * async-event.c (struct async_signal_handler) <name>: New field.
1864 (struct async_event_handler) <name>: New field.
1865 (create_async_signal_handler): Assign name.
1866 (create_async_event_handler): Assign name.
1867 * event-top.c (async_init_signals): Pass name when creating
1868 handler.
1869 * infrun.c (_initialize_infrun): Likewise.
1870 * record-btrace.c (record_btrace_push_target): Likewise.
1871 * record-full.c (record_full_open): Likewise.
1872 * remote-notif.c (remote_notif_state_allocate): Likewise.
1873 * remote.c (remote_target::open_1): Likewise.
1874 * tui/tui-win.c (tui_initialize_win): Likewise.
1875
2554f6f5
SM
18762020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1877
1878 * async-event.c (initialize_async_signal_handlers): Pass name to
1879 add_file_handler
1880 * event-top.c (ui_register_input_event_handler): Likewise.
1881 * linux-nat.c (linux_nat_target::async): Likewise.
1882 * run-on-main-thread.c (_initialize_run_on_main_thread):
1883 Likewise
1884 * ser-base.c (reschedule): Likewise.
1885 (ser_base_async): Likewise.
1886 * tui/tui-io.c: Likewise.
1887 * top.h (struct ui) <num>: New field.
1888 * top.c (highest_ui_num): New variable.
1889 (ui::ui): Initialize num.
1890
a7aba266
SM
18912020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1892
1893 * observable.h <inferior_created>: Remove parameters. Update all
1894 listeners.
1895 * inferior.h (post_create_inferior): Remove target parameter.
1896 Update all callers.
1897
048fde1e 18982020-10-02 Nitika Achra <Nitika.Achra@amd.com>
1899
1900 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
1901 and DW_MACRO_undef_strx.
1902 (dwarf_decode_macros): Likewise
1903 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
1904 which is the value of DW_AT_str_offsets_base.
1905 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
1906 str_offsets_base.
1907
064280be
KR
19082020-10-01 Kamil Rytarowski <n54@gmx.com>
1909
1910 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
1911
6ff33035
KR
19122020-10-01 Kamil Rytarowski <n54@gmx.com>
1913
1914 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
1915 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
1916
1eb6eb79
KR
19172020-10-01 Kamil Rytarowski <n54@gmx.com>
1918
1919 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
1920
95eb9e54
TV
19212020-09-30 Tom de Vries <tdevries@suse.de>
1922
1923 PR symtab/26683
1924 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
1925
cae21f8e
TT
19262020-09-30 Tom Tromey <tromey@adacore.com>
1927
1928 * dwarf2/read.c (handle_variant): Use constant_value.
1929
529908cb
TT
19302020-09-29 Tom Tromey <tom@tromey.com>
1931
1932 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
1933 (read_file_scope, dwarf2_get_pc_bounds)
1934 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
1935 (read_structure_type, handle_struct_member_die)
1936 (read_enumeration_type, read_array_type, read_set_type)
1937 (read_tag_pointer_type, read_tag_reference_type)
1938 (read_subroutine_type, read_base_type, read_subrange_type)
1939 (read_full_die_1, partial_die_info::read)
1940 (partial_die_info::read, by, new_symbol)
1941 (dwarf2_const_value_data, dwarf2_const_value_attr)
1942 (dump_die_shallow, dwarf2_fetch_constant_bytes)
1943 (prepare_one_comp_unit): Update.
1944 * dwarf2/attribute.h (DW_UNSND): Remove.
1945
c45bc3f8
TT
19462020-09-29 Tom Tromey <tom@tromey.com>
1947
1948 * dwarf2/read.c (read_func_scope, prototyped_function_p)
1949 (read_subroutine_type, partial_die_info::read)
1950 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
1951 (dwarf2_add_member_fn): Update.
1952 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
1953 * dwarf2/attribute.c (attribute::as_boolean): New method.
1954
23dca5c3
TT
19552020-09-29 Tom Tromey <tom@tromey.com>
1956
1957 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
1958 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
1959 method.
1960 * dwarf2/attribute.c (attribute::as_virtuality): New method.
1961
52c14d11
TT
19622020-09-29 Tom Tromey <tom@tromey.com>
1963
1964 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
1965 the attribute's form.
1966
e8e5c158
TT
19672020-09-29 Tom Tromey <tom@tromey.com>
1968
1969 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
1970 (dwarf2_add_member_fn): Update.
1971 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
1972 * dwarf2/attribute.c (attribute::defaulted): New method, from
1973 is_valid_DW_AT_defaulted.
1974
d4df075e
TT
19752020-09-29 Tom Tromey <tom@tromey.com>
1976
1977 * dwarf2/read.c (dw2_get_file_names_reader)
1978 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
1979 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
1980 (dwarf2_symbol_mark_computed): Use as_unsigned.
1981 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
1982 method.
1983 <form_is_section_offset>: Update comment.
1984
bf23a268
TT
19852020-09-29 Tom Tromey <tom@tromey.com>
1986
1987 * dwarf2/read.c (dwarf2_access_attribute): Rename from
1988 dwarf2_default_access_attribute. Look up attribute.
1989 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
1990 Update.
1991
7a5f294d
TT
19922020-09-29 Tom Tromey <tom@tromey.com>
1993
1994 * dwarf2/read.c (skip_one_die): Update.
1995 (read_full_die_1): Change how reprocessing is done.
1996 (partial_die_info::read): Update.
1997 (read_attribute_value): Remove need_reprocess parameter.
1998 (read_attribute): Likewise.
1999 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
2000 New method.
2001
36d378cf
TT
20022020-09-29 Tom Tromey <tom@tromey.com>
2003
2004 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
2005 (dwarf2_const_value_attr, dump_die_shallow)
2006 (dwarf2_fetch_constant_bytes): Update.
2007 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
2008 comment.
2009 <set_address>: New method.
2010 (DW_ADDR): Remove.
2011 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
2012 (attribute::as_string, attribute::as_address): Add assert.
2013
fe56917a
TT
20142020-09-29 Tom Tromey <tom@tromey.com>
2015
2016 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
2017 (read_attribute_reprocess, read_attribute_value): Update.
2018 (read_attribute): Clear requires_reprocessing.
2019 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
2020 form_requires_reprocessing>: New methods.
2021 <string_init>: Clear requires_reprocessing.
2022 <set_unsigned_reprocess>: New method.
2023 <name>: Shrink by one bit.
2024 <requires_reprocessing>: New member.
2025 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
2026 method.
2027
414ad644
TT
20282020-09-29 Tom Tromey <tom@tromey.com>
2029
2030 * dwarf2/read.c (read_attribute_value): Update.
2031 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
2032 set_unsigned>: New methods.
2033 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
2034
1bc397c5
TT
20352020-09-29 Tom Tromey <tom@tromey.com>
2036
2037 * dwarf2/read.c (get_alignment, read_array_order)
2038 (read_attribute_value, dwarf2_const_value_attr)
2039 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
2040 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
2041 New methods.
2042 (DW_SND): Remove.
2043
630ed6b9
TT
20442020-09-29 Tom Tromey <tom@tromey.com>
2045
2046 * dwarf2/read.c (read_attribute_value, lookup_die_type)
2047 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
2048 Update.
2049 * dwarf2/attribute.h (struct attribute) <as_signature,
2050 set_signature>: New methods.
2051 (DW_SIGNATURE): Remove.
2052
9d2246fc
TT
20532020-09-29 Tom Tromey <tom@tromey.com>
2054
2055 * dwarf2/read.c (read_call_site_scope)
2056 (handle_data_member_location, dwarf2_add_member_fn)
2057 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
2058 (partial_die_info::read, read_attribute_value)
2059 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
2060 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
2061 (dwarf2_symbol_mark_computed): Update.
2062 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
2063 methods.
2064 (DW_BLOCK): Remove.
2065 * dwarf2/attribute.c (attribute::form_is_block): Add
2066 DW_FORM_data16.
2067
c6481205
TT
20682020-09-29 Tom Tromey <tom@tromey.com>
2069
2070 * dwarf2/read.c (read_cutu_die_from_dwo)
2071 (read_attribute_reprocess, read_attribute_value, read_attribute)
2072 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
2073 (dwarf2_fetch_constant_bytes): Update.
2074 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
2075 <set_string_noncanonical, set_string_canonical>: New methods.
2076 <string_is_canonical>: Update comment.
2077 <canonical_string_p>: Add assert.
2078 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
2079 * dwarf2/attribute.c (attribute::form_is_string): New method.
2080 (attribute::string): Use it.
2081
3b64bf15
TT
20822020-09-29 Tom Tromey <tom@tromey.com>
2083
2084 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
2085 (dump_die_shallow): Use canonical_string_p.
2086 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
2087 method.
2088
2c830f54
TT
20892020-09-29 Tom Tromey <tom@tromey.com>
2090
2091 * dwarf2/read.c (partial_die_info::read)
2092 (dwarf2_const_value_attr, anonymous_struct_prefix, )
2093 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
2094 attribute::as_string.
2095
6c412691
TT
20962020-09-29 Tom Tromey <tom@tromey.com>
2097
2098 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
2099 DW_ADDR.
2100 (attribute::string): Don't use DW_STRING.
2101 (attribute::get_ref_die_offset): Don't use DW_UNSND.
2102 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
2103
95f982e5
TT
21042020-09-29 Tom Tromey <tom@tromey.com>
2105
2106 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
2107 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
2108 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
2109 * dwarf2/attribute.h (struct attribute): Rename methods.
2110 * dwarf2/attribute.c (attribute::as_address): Rename from
2111 value_as_address.
2112 (attribute::as_string): Rename from value_as_string.
2113
f800b00e
TT
21142020-09-29 Tom Tromey <tom@tromey.com>
2115
2116 * dwarf2/read.c (partial_die_info::read) <case
2117 DW_AT_linkage_name>: Use value_as_string.
2118 (dwarf2_string_attr): Use value_as_string.
2119 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
2120 method.
2121 * dwarf2/attribute.c (attribute::value_as_string): New method.
2122
de38d64a
PA
21232020-09-29 Pedro Alves <pedro@palves.net>
2124
2125 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
2126 defined before using '#pragma GCC diagnostic' instead of checking
2127 __clang__.
2128
9aed480c
TT
21292020-09-28 Tom Tromey <tom@tromey.com>
2130
2131 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
2132 (handle_signal_stop): Update.
2133 * procfs.c (procfs_target::insert_watchpoint): Update.
2134 * target.h (target_have_steppable_watchpoint): Now a function.
2135
8a3ecb79
TT
21362020-09-28 Tom Tromey <tom@tromey.com>
2137
2138 * infrun.c (set_schedlock_func): Update.
2139 * target.h (target_can_lock_scheduler): Now a function.
2140
55f6301a
TT
21412020-09-28 Tom Tromey <tom@tromey.com>
2142
2143 * inferior.h (class inferior) <has_execution>: Update.
2144 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2145 * valops.c (find_function_in_inferior)
2146 (value_allocate_space_in_inferior): Update.
2147 * top.c (kill_or_detach): Update.
2148 * target.c (target_preopen, set_target_permissions): Update.
2149 (target_has_execution_current): Remove.
2150 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
2151 Update.
2152 * solib.c (update_solib_list, reload_shared_libraries): Update.
2153 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
2154 * solib-dsbt.c (enable_break): Update.
2155 * score-tdep.c (score7_fetch_inst): Update.
2156 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
2157 Update.
2158 * remote.c (remote_target::start_remote)
2159 (remote_target::remote_check_symbols, remote_target::open_1)
2160 (remote_target::remote_detach_1, remote_target::verify_memory)
2161 (remote_target::xfer_partial, remote_target::read_description)
2162 (remote_target::get_min_fast_tracepoint_insn_len): Update.
2163 * record-full.c (record_full_open_1): Update.
2164 * record-btrace.c (record_btrace_target_open): Update.
2165 * objc-lang.c (lookup_objc_class, lookup_child_selector)
2166 (value_nsstring): Update.
2167 * linux-thread-db.c (add_thread_db_info)
2168 (thread_db_find_new_threads_silently, check_thread_db_callback)
2169 (try_thread_db_load_1, record_thread): Update.
2170 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
2171 Update.
2172 * linux-fork.c (checkpoint_command): Update.
2173 * infrun.c (set_non_stop, set_observer_mode)
2174 (check_multi_target_resumption, for_each_just_stopped_thread)
2175 (maybe_remove_breakpoints, normal_stop)
2176 (class infcall_suspend_state): Update.
2177 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
2178 (info_program_command, attach_command): Update.
2179 * infcall.c (call_function_by_hand_dummy): Update.
2180 * inf-loop.c (inferior_event_handler): Update.
2181 * gcore.c (gcore_command, derive_heap_segment): Update.
2182 * exec.c (exec_file_command): Update.
2183 * eval.c (evaluate_subexp): Update.
2184 * compile/compile.c (compile_to_object): Update.
2185 * cli/cli-dump.c (restore_command): Update.
2186 * breakpoint.c (update_watchpoint)
2187 (update_inserted_breakpoint_locations)
2188 (insert_breakpoint_locations, get_bpstat_thread): Update.
2189 * target.h (target_has_execution): Remove macro.
2190 (target_has_execution_current): Don't declare.
2191 (target_has_execution): Rename from target_has_execution_1. Add
2192 argument default.
2193
05374cfd
TT
21942020-09-28 Tom Tromey <tom@tromey.com>
2195
2196 * mi/mi-main.c (exec_reverse_continue)
2197 (mi_cmd_list_target_features): Update.
2198 * infrun.c (set_exec_direction_func): Update.
2199 * target.c (default_execution_direction): Update.
2200 * reverse.c (exec_reverse_once): Update.
2201 * target.h (target_can_execute_reverse): Now a function.
2202
9dccd06e
TT
22032020-09-28 Tom Tromey <tom@tromey.com>
2204
2205 * tui/tui-regs.c (tui_get_register)
2206 (tui_data_window::show_registers): Update.
2207 * thread.c (scoped_restore_current_thread::restore)
2208 (scoped_restore_current_thread::scoped_restore_current_thread):
2209 Update.
2210 * regcache-dump.c (regcache_print): Update.
2211 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2212 Update.
2213 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
2214 * mep-tdep.c (current_me_module, current_options): Update.
2215 * linux-thread-db.c (thread_db_load): Update.
2216 * infcmd.c (registers_info, info_vector_command)
2217 (info_float_command): Update.
2218 * ia64-tdep.c (ia64_frame_prev_register)
2219 (ia64_sigtramp_frame_prev_register): Update.
2220 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
2221 * gcore.c (derive_stack_segment): Update.
2222 * frame.c (get_current_frame, has_stack_frames): Update.
2223 * findvar.c (language_defn::read_var_value): Update.
2224 * arm-tdep.c (arm_pc_is_thumb): Update.
2225 * target.c (target_has_registers): Rename from
2226 target_has_registers_1.
2227 * target.h (target_has_registers): Remove macro.
2228 (target_has_registers): Rename from target_has_registers_1.
2229
841de120
TT
22302020-09-28 Tom Tromey <tom@tromey.com>
2231
2232 * windows-tdep.c (tlb_make_value): Update.
2233 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2234 * thread.c (scoped_restore_current_thread::restore)
2235 (scoped_restore_current_thread::scoped_restore_current_thread)
2236 (thread_command): Update.
2237 * stack.c (backtrace_command_1, frame_apply_level_command)
2238 (frame_apply_all_command, frame_apply_command): Update.
2239 * infrun.c (siginfo_make_value, restore_infcall_control_state):
2240 Update.
2241 * gcore.c (derive_stack_segment): Update.
2242 * frame.c (get_current_frame, has_stack_frames): Update.
2243 * auxv.c (info_auxv_command): Update.
2244 * ada-tasks.c (ada_build_task_list): Update.
2245 * target.c (target_has_stack): Rename from target_has_stack_1.
2246 * target.h (target_has_stack): Remove macro.
2247 (target_has_stack): Rename from target_has_stack_1.
2248
a739972c
TT
22492020-09-28 Tom Tromey <tom@tromey.com>
2250
2251 * target.c (target_has_memory): Rename from target_has_memory_1.
2252 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2253 * thread.c (scoped_restore_current_thread::restore)
2254 (scoped_restore_current_thread::scoped_restore_current_thread):
2255 Update.
2256 * frame.c (get_current_frame, has_stack_frames): Update.
2257 * target.h (target_has_memory): Remove macro.
2258 (target_has_memory): Rename from target_has_memory_1.
2259
5b8a4776
TT
22602020-09-28 Tom Tromey <tom@tromey.com>
2261
2262 * target.c (target_has_all_memory_1): Remove.
2263 * target.h (target_has_all_memory): Remove define.
2264 (target_has_all_memory_1): Don't declare.
2265
bd356ec6
SM
22662020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
2267
2268 * ser-base.c: Adjust comments formatting.
2269
2c72d5e5
TT
22702020-09-27 Tom Tromey <tom@tromey.com>
2271
2272 PR tui/25342:
2273 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
2274
35a98237
TT
22752020-09-27 Tom Tromey <tom@tromey.com>
2276
2277 PR tui/25342:
2278 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
2279
9e820dec
TT
22802020-09-27 Tom Tromey <tom@tromey.com>
2281
2282 * unittests/tui-selftests.c: Update.
2283 * tui/tui-winsource.h (struct tui_source_window_base)
2284 <extra_margin, show_line_number, refresh_pad>: New methods.
2285 <m_max_length, m_pad>: New members.
2286 (tui_copy_source_line): Update.
2287 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
2288 first_col, line_width, ndigits parameters. Add length.
2289 (tui_source_window_base::show_source_line): Write to pad. Line
2290 number now 0-based.
2291 (tui_source_window_base::refresh_pad): New method.
2292 (tui_source_window_base::show_source_content): Write to pad. Call
2293 refresh_pad.
2294 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
2295 not refill.
2296 (tui_source_window_base::update_exec_info): Call
2297 show_line_number.
2298 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
2299 method.
2300 <m_digits>: New member.
2301 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
2302 and m_max_length.
2303 (tui_source_window::show_line_number): New method.
2304 * tui/tui-io.h (tui_puts): Fix comment.
2305 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
2306 m_max_length.
2307
c15c15c8
TT
23082020-09-27 Tom Tromey <tom@tromey.com>
2309
2310 * tui/tui-winsource.c
2311 (tui_source_window_base::set_is_exec_point_at): Don't call
2312 show_source_line.
2313
149830c1
TT
23142020-09-27 Tom Tromey <tom@tromey.com>
2315
2316 * python/py-tui.c (class tui_py_window) <refresh_window>: New
2317 method.
2318 <erase>: Update.
2319 <cursor_x, cursor_y>: Remove.
2320 <m_inner_window>: New member.
2321 (tui_py_window::rerender): Create inner window.
2322 (tui_py_window::output): Write to inner window.
2323
8f9929bb
GR
23242020-09-26 Gareth Rees <grees@undo.io> (tiny change)
2325
2326 PR python/26586
2327 * cli/cli-script.c (execute_control_commands): don't set
2328 instream to nullptr here as this breaks the from_tty argument
2329 to gdb.execute in Python.
2330 (execute_user_command): set instream to nullptr here instead.
2331
956bdb59
SM
23322020-09-25 Simon Marchi <simon.marchi@efficios.com>
2333
2334 * infrun.h (infrun_debug_printf): Fix formatting.
2335 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
2336
3b93626b
SJ
23372020-09-25 Saagar Jha <saagar@saagarjha.com>
2338
2339 * compile/compile-object-load.h (struct munmap_list): Add
2340 explicitly-defined move constructor.
2341
b551a89f
TT
23422020-09-24 Tom Tromey <tromey@adacore.com>
2343
2344 PR tui/26638:
2345 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
2346 method.
2347 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
2348 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
2349 (tui_prev_win): Rewrite.
2350
99bb393f
HD
23512020-09-23 Hannes Domani <ssbssa@yahoo.de>
2352
2353 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
2354 in WOW64 processes as SIGINT.
2355 * nat/windows-nat.h: Make wow64_process a shared variable.
2356 * windows-nat.c: Remove static wow64_process variable.
2357
20a5fcbd
TT
23582020-09-23 Tom Tromey <tom@tromey.com>
2359
2360 PR symtab/25470:
2361 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
2362 offset and bit size.
2363 * printcmd.c (print_scalar_formatted): Handle zero-length
2364 integer.
2365 (print_scalar_formatted): Use bit_size_differs_p.
2366 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
2367 constant.
2368 (union type_specific): <int_stuff>: New member.
2369 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
2370 methods.
2371 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
2372 TYPE_SPECIFIC_FIELD.
2373 (recursive_dump_type, copy_type_recursive): Update.
2374 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
2375 DW_AT_data_bit_offset.
2376
bac51ab7
TT
23772020-09-23 Tom Tromey <tom@tromey.com>
2378
2379 * utils.h (class gdb_argv): Add move operators.
2380 <append>: New methods.
2381 * compile/compile.c (build_argc_argv): Remove.
2382 (compile_args_argc): Remove.
2383 (compile_args_argv): Change type.
2384 (set_compile_args): Simplify.
2385 (append_args): Remove.
2386 (filter_args): Remove argcp parameter.
2387 (get_args): Return gdb_argv. Simplify.
2388 (compile_to_object): Update.
2389
92677124
TT
23902020-09-23 Tom Tromey <tom@tromey.com>
2391
2392 * compile/compile-object-run.c (do_module_cleanup)
2393 <~do_module_cleanup> :Remove.
2394 (do_module_cleanup): Update.
2395 * compile/compile-object-load.h (struct munmap_list): Add move
2396 assignment operator.
2397 <source_file>: Now a std::string.
2398 <munmap_list>: Rename. No longer a pointer.
2399 * compile/compile-object-load.c (struct setup_sections_data): Add
2400 constructor.
2401 <setup_one_section>: Declare.
2402 <munmap_list>: Move earlier.
2403 <m_bfd>: New member.
2404 <m_last_size, m_last_section_first, m_last_prot,
2405 m_last_max_alignment>: Rename, add initializers where needed.
2406 (setup_sections_data::setup_one_section): Rename from
2407 setup_sections. Update.
2408 (compile_object_load): Update. Don't use bfd_map_over_sections.
2409
e616f60a
TT
24102020-09-23 Tom Tromey <tom@tromey.com>
2411
2412 * compile/compile-object-run.c (struct do_module_cleanup): Add
2413 parameters to constructor. Update destructor.
2414 <source_file, scope, scope_data, out_value_type, out_value_addr,
2415 munmap_list_head, objfile_name_string>: Remove.
2416 <module>: New member.
2417 (do_module_cleanup): Update.
2418 (compile_object_run): Update.
2419
e947a848
TT
24202020-09-23 Tom Tromey <tom@tromey.com>
2421
2422 * compile/compile.c (eval_compile_command): Update.
2423 * compile/compile-object-run.h (compile_object_run): Take a
2424 compile_module_up.
2425 * compile/compile-object-run.c (compile_object_run): Take a
2426 compile_module_up.
2427 * compile/compile-object-load.h (struct compile_module): Add
2428 constructor, destructor.
2429 (compile_module_up): New typedef.
2430 (compile_object_load): Return compile_object_up.
2431 * compile/compile-object-load.c (compile_object_load): Return
2432 compile_module_up.
2433
0dbf6ee6
TT
24342020-09-23 Tom Tromey <tom@tromey.com>
2435
2436 * compile/compile-object-run.c (struct do_module_cleanup): Add
2437 constructor, destructor.
2438 <objfile_name_string>: Don't use struct hack.
2439 (do_module_cleanup): Use delete.
2440 (compile_object_run): Use new.
2441
ebe824f5
TT
24422020-09-23 Tom Tromey <tom@tromey.com>
2443
2444 * compile/compile-cplus-types.c
2445 (compile_cplus_convert_struct_or_union): Use std::vector.
2446 (compile_cplus_convert_func): Likewise.
2447 * compile/compile-c-types.c (convert_func): Use std::vector.
2448
5dd918d9
TT
24492020-09-21 Tom Tromey <tromey@adacore.com>
2450
2451 * sparc-tdep.c (sparc32_skip_prologue): Use
2452 skip_prologue_using_sal.
2453
5486c517
TT
24542020-09-19 Tom Tromey <tom@tromey.com>
2455
2456 * symfile.c (add_section_size_callback): Remove.
2457 (load_one_section): Rename from load_section_callback. Change
2458 parameters.
2459 (generic_load): Use foreach.
2460
8a6bb1d1
TT
24612020-09-19 Tom Tromey <tom@tromey.com>
2462
2463 * exec.c (add_to_section_table): Remove.
2464 (build_section_table): Use foreach.
2465
08f93a1a
TT
24662020-09-19 Tom Tromey <tom@tromey.com>
2467
2468 * elfread.c (elf_locate_sections): Change parameters.
2469 (elf_symfile_read): Use foreach.
2470
03cd72b8
TT
24712020-09-19 Tom Tromey <tom@tromey.com>
2472
2473 * cli/cli-dump.c (struct callback_data): Remove.
2474 (restore_one_section): Rename from restore_section_callback.
2475 Change parameters.
2476 (restore_binary_file): Change parameters.
2477 (restore_command): Use foreach.
2478
f4f2b85f
TT
24792020-09-19 Tom Tromey <tom@tromey.com>
2480
2481 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
2482 (gcore_copy_callback): Likewise.
2483 (gcore_memory_sections): Use foreach.
2484
b35c1d1c
TT
24852020-09-19 Tom Tromey <tom@tromey.com>
2486
2487 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
2488 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
2489 parameters.
2490 (generic_elf_osabi_sniffer): Use foreach.
2491 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
2492 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
2493
5bb6e9dd
TT
24942020-09-19 Tom Tromey <tom@tromey.com>
2495
2496 * dwarf2/read.c (locate_dwz_sections): Change parameters.
2497 (dwarf2_get_dwz_file): Use foreach.
2498 (dwarf2_locate_dwo_sections): Change parameters.
2499 (open_and_init_dwo_file): Use foreach.
2500 (dwarf2_locate_common_dwp_sections): Change parameters.
2501 (open_and_init_dwp_file): Use foreach.
2502
ad7277da
TT
25032020-09-19 Tom Tromey <tom@tromey.com>
2504
2505 * symfile.h: (find_lowest_section): Don't declare.
2506 * symfile.c (find_lowest_section): Now static. Change
2507 parameters.
2508 (struct place_section_arg): Remove.
2509 (place_section): Change parameters.
2510 (addr_info_make_relative): Use foreach.
2511 (symfile_dummy_outputs): Remove.
2512 (default_symfile_relocate): Use foreach.
2513
cb814f2e
TT
25142020-09-19 Tom Tromey <tom@tromey.com>
2515
2516 * objfiles.c (add_to_objfile_sections): Rename from
2517 add_to_objfile_sections_full.
2518 (add_to_objfile_sections): Remove.
2519 (build_objfile_section_table): Use foreach.
2520
3cabfd26
TT
25212020-09-19 Tom Tromey <tom@tromey.com>
2522
2523 * stap-probe.c (get_stap_base_address_1): Remove.
2524 (get_stap_base_address): Use foreach.
2525
1ce51eb5
TT
25262020-09-19 Tom Tromey <tom@tromey.com>
2527
2528 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
2529 parameters.
2530 (gdb_bfd_close_or_warn): Use foreach.
2531
a190fabb
TT
25322020-09-19 Tom Tromey <tom@tromey.com>
2533
2534 * corelow.c (add_to_thread_list): Change parameters.
2535 (core_target_open): Use foreach.
2536
cafb0d81
TT
25372020-09-19 Tom Tromey <tom@tromey.com>
2538
2539 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
2540 existing function.
2541
c8d5abea
AB
25422020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2543
2544 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
2545 for arrays.
2546
6d816919
AB
25472020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2548
2549 * eval.c: Remove 'f-lang.h' include.
2550 (value_f90_subarray): Moved to f-lang.c.
2551 (eval_call): Renamed to...
2552 (evaluate_subexp_do_call): ...this, is no longer static, header
2553 comment moved into header file.
2554 (evaluate_funcall): Update call to eval_call.
2555 (skip_undetermined_arglist): Moved to f-lang.c.
2556 (fortran_value_subarray): Likewise.
2557 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
2558 moved to evaluate_subexp_f.
2559 (calc_f77_array_dims): Moved to f-lang.c
2560 * expprint.c (print_subexp_funcall): New function.
2561 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
2562 moved to print_subexp_f, OP_FUNCALL uses new function.
2563 (dump_subexp_body_funcall): New function.
2564 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
2565 moved to dump_subexp_f, OP_FUNCALL uses new function.
2566 * expression.h (evaluate_subexp_do_call): Declare.
2567 * f-lang.c (value_f90_subarray): Moved from eval.c.
2568 (skip_undetermined_arglist): Likewise.
2569 (calc_f77_array_dims): Likewise.
2570 (fortran_value_subarray): Likewise.
2571 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
2572 (operator_length_f): Likewise.
2573 (print_subexp_f): Likewise.
2574 (dump_subexp_body_f): Likewise.
2575 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
2576 declaration of this operation to here.
2577 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
2578 support moved to operator_length_f.
2579 * parser-defs.h (dump_subexp_body_funcall): Declare.
2580 (print_subexp_funcall): Declare.
2581 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
2582 fortran-operator.def.
2583
8c37706a
AB
25842020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2585
2586 * eval.c (fortran_value_subarray): New function, content is taken
2587 from...
2588 (evaluate_subexp_standard): ...here, in two places. Now arrays
2589 and strings both call the new function.
2590 (calc_f77_array_dims): Add header comment, handle strings.
2591
14f9473c
VC
25922020-09-18 Victor Collod <vcollod@nvidia.com>
2593
2594 PR gdb/26635
2595 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
2596 (i386_analyze_prologue): Call i386_skip_endbr.
2597
b60cea74
TT
25982020-09-18 Tom Tromey <tromey@adacore.com>
2599
2600 * windows-nat.c (struct windows_nat_target) <wait>: Update.
2601 (windows_nat_target::wait): Update.
2602 * target/wait.h (enum target_wait_flag): New. Use
2603 DEF_ENUM_FLAGS_TYPE.
2604 * target/target.h (target_wait): Change type of options.
2605 * target.h (target_options_to_string, default_target_wait):
2606 Update.
2607 (struct target_ops) <wait>: Change type of options.
2608 * target.c (target_wait, default_target_wait, do_option): Change
2609 type of "options".
2610 (target_options_to_string): Likewise.
2611 * target-delegates.c: Rebuild.
2612 * target-debug.h (target_debug_print_target_wait_flags): Rename
2613 from target_debug_print_options.
2614 * sol-thread.c (class sol_thread_target) <wait>: Update.
2615 (sol_thread_target::wait): Update.
2616 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
2617 (rs6000_nat_target::wait): Update.
2618 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
2619 Update.
2620 (remote_target::wait_ns, remote_target::wait_as): Change type of
2621 "options".
2622 (remote_target::wait): Update.
2623 * remote-sim.c (struct gdbsim_target) <wait>: Update.
2624 (gdbsim_target::wait): Update.
2625 * record-full.c (class record_full_base_target) <wait>: Update.
2626 (record_full_wait_1): Change type of "options".
2627 (record_full_base_target::wait): Update.
2628 * record-btrace.c (class record_btrace_target) <wait>: Update.
2629 (record_btrace_target::wait): Update.
2630 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
2631 Update.
2632 (ravenscar_thread_target::wait): Update.
2633 * procfs.c (class procfs_target) <wait>: Update.
2634 (procfs_target::wait): Update.
2635 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
2636 * obsd-nat.c (obsd_nat_target::wait): Update.
2637 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
2638 (nto_procfs_target::wait): Update.
2639 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
2640 * nbsd-nat.c (nbsd_wait): Change type of "options".
2641 (nbsd_nat_target::wait): Update.
2642 * linux-thread-db.c (class thread_db_target) <wait>: Update.
2643 (thread_db_target::wait): Update.
2644 * linux-nat.h (class linux_nat_target) <wait>: Update.
2645 * linux-nat.c (linux_nat_target::wait): Update.
2646 (linux_nat_wait_1): Update.
2647 * infrun.c (do_target_wait_1, do_target_wait): Change type of
2648 "options".
2649 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
2650 * inf-ptrace.c (inf_ptrace_target::wait): Update.
2651 * go32-nat.c (struct go32_nat_target) <wait>: Update.
2652 (go32_nat_target::wait): Update.
2653 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
2654 * gnu-nat.c (gnu_nat_target::wait): Update.
2655 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
2656 * fbsd-nat.c (fbsd_nat_target::wait): Update.
2657 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
2658 * darwin-nat.c (darwin_nat_target::wait): Update.
2659 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
2660 (bsd_uthread_target::wait): Update.
2661 * aix-thread.c (class aix_thread_target) <wait>: Update.
2662 (aix_thread_target::wait): Update.
2663
0295dde6
AB
26642020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
2665
2666 * compile/compile-object-run.c (create_copied_type_recursive): New
2667 function.
2668 (compile_object_run): Use new function.
2669
d3483b43
JT
26702020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
2671
2672 * NEWS: Mention x86_64 Cygwin core file support.
2673
e7d612ad
JT
26742020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2675
2676 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
2677 (core_process_module_section): Handle NOTE_INFO_MODULE64.
2678
aff9d387
JT
26792020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2680
62a5151b
JT
2681 * windows-tdep.h: Add prototypes.
2682 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
2683 (i386_windows_core_pid_to_str): Move and rename ...
2684 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
2685 (windows_core_pid_to_str): ... and here.
2686 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
2687
26882020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
2689 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
2690 (amd64_windows_init_abi_common): ... and register.
2691
7d155da3
JT
26922020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2693
2694 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
2695 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
2696
e8ef12b9
PA
26972020-09-18 Pedro Alves <pedro@palves.net>
2698
2699 PR gdb/26631
2700 * thread.c (thread_find_command): Switch inferior before calling
2701 target methods.
2702
c1e1314d
TT
27032020-09-17 Tom Tromey <tromey@adacore.com>
2704
2705 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
2706 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
2707 (tdesc_arch_data_up): New typedef.
2708 (tdesc_use_registers, tdesc_data_alloc): Update.
2709 (tdesc_data_cleanup): Don't declare.
2710 * target-descriptions.c (tdesc_data_alloc): Return a
2711 tdesc_arch_data_up.
2712 (tdesc_arch_data_deleter::operator()): Rename from
2713 tdesc_data_cleanup. Change argument type.
2714 (tdesc_use_registers): Change early_data to an rvalue reference.
2715 (tdesc_use_registers): Don't use delete.
2716 * sparc-tdep.c (sparc32_gdbarch_init): Update.
2717 * s390-tdep.c (s390_gdbarch_init): Update.
2718 * rx-tdep.c (rx_gdbarch_init): Update.
2719 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2720 * riscv-tdep.c (riscv_gdbarch_init): Update.
2721 * or1k-tdep.c (or1k_gdbarch_init): Update.
2722 * nios2-tdep.c (nios2_gdbarch_init): Update.
2723 * nds32-tdep.c (nds32_gdbarch_init): Update.
2724 * mips-tdep.c (mips_gdbarch_init): Update.
2725 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
2726 * m68k-tdep.c (m68k_gdbarch_init): Update.
2727 * i386-tdep.c (i386_gdbarch_init): Update.
2728 * arm-tdep.c (arm_gdbarch_init): Update.
2729 * arc-tdep.c (arc_tdesc_init): Update.
2730 (arc_gdbarch_init): Update.
2731 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
2732
0363df3d
HD
27332020-09-17 Hannes Domani <ssbssa@yahoo.de>
2734
2735 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
2736 for WOW64 processes.
2737
280a9412
TT
27382020-09-17 Tom Tromey <tom@tromey.com>
2739
2740 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
2741
6108fd18
TT
27422020-09-17 Tom Tromey <tom@tromey.com>
2743
2744 * value.c (preserve_values): Update.
2745 * python/py-type.c (save_objfile_types): Update.
2746 * guile/scm-type.c (save_objfile_types): Update.
2747 * gdbtypes.h (create_copied_types_hash): Return htab_up.
2748 * gdbtypes.c (create_copied_types_hash): Return htab_up.
2749 * compile/compile-object-run.c (compile_object_run): Update.
2750
fa9b1164
TT
27512020-09-17 Tom Tromey <tom@tromey.com>
2752
2753 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
2754 Remove.
2755 <m_table>: Now htab_up.
2756 * typeprint.c (typedef_hash_table::recursively_update)
2757 (typedef_hash_table::add_template_parameters)
2758 (typedef_hash_table::typedef_hash_table): Update.
2759 (typedef_hash_table::~typedef_hash_table): Remove.
2760 (typedef_hash_table::typedef_hash_table)
2761 (typedef_hash_table::find_global_typedef)
2762 (typedef_hash_table::find_typedef): Update.
2763
eb53f105
TT
27642020-09-17 Tom Tromey <tom@tromey.com>
2765
2766 * target-descriptions.c (tdesc_use_registers): Use htab_up.
2767
7a8a5d47
TT
27682020-09-17 Tom Tromey <tom@tromey.com>
2769
2770 * linespec.c (class decode_compound_collector)
2771 <~decode_compound_collector>: Remove.
2772 <m_unique_syms>: Now htab_up.
2773 (decode_compound_collector::operator ()): Update.
2774 (class symtab_collector) <~symtab_collector>: Remove.
2775 <m_symtab_table>: Now htab_up.
2776 (symtab_collector::operator ()): Update.
2777
99032cfc
TT
27782020-09-17 Tom Tromey <tom@tromey.com>
2779
2780 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
2781 (filename_seen_cache::clear): Update.
2782 (~filename_seen_cache): Remove.
2783 (filename_seen_cache::seen): Update.
2784 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
2785 htab_up.
2786 <~filename_seen_cache>: Remove.
2787 <traverse>: Update.
2788
32580f6d
TT
27892020-09-17 Tom Tromey <tom@tromey.com>
2790
2791 * completer.c (completion_tracker::discard_completions)
2792 (completion_tracker::~completion_tracker)
2793 (completion_tracker::maybe_add_completion)
2794 (completion_tracker::remove_completion)
2795 (completion_tracker::recompute_lowest_common_denominator)
2796 (completion_tracker::build_completion_result): Update.
2797 * completer.h (class completion_tracker) <have_completions>:
2798 Update.
2799 <m_entries_hash>: Now htab_up.
2800
c1fb9836
TT
28012020-09-17 Tom Tromey <tom@tromey.com>
2802
2803 * breakpoint.c (ambiguous_names_p): Use htab_up.
2804
88f07206
TT
28052020-09-17 Tom Tromey <tom@tromey.com>
2806
2807 * auto-load.c (struct auto_load_pspace_info)
2808 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
2809 <loaded_script_files, loaded_script_texts>: Change type to
2810 htab_up.
2811 (~auto_load_pspace_info) Remove.
2812 (init_loaded_scripts_info, maybe_add_script_file)
2813 (maybe_add_script_text, auto_load_info_scripts): Update.
2814
9519b2ee
TT
28152020-09-17 Tom Tromey <tromey@adacore.com>
2816
2817 * c-exp.y (name_obstack): Now static.
2818
d2cd4113
CC
28192020-09-17 Chungyi Chi <demonic@csie.io>
2820
2821 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
2822
b650a282
SM
28232020-09-16 Simon Marchi <simon.marchi@efficios.com>
2824
2825 * breakpoint.h (init_catchpoint): Change int parameter to bool.
2826 (add_solib_catchpoint): Likewise.
2827 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
2828 to bool.
2829 (add_solib_catchpoint): Change int parameter/variable to bool.
2830 (catch_load_or_unload): Likewise.
2831 (init_catchpoint): Likewise.
2832 (create_fork_vfork_event_catchpoint): Likewise.
2833 (catch_fork_command_1): Likewise.
2834 (catch_exec_command_1): Likewise.
2835
4d0bcfcf
SM
28362020-09-16 Simon Marchi <simon.marchi@efficios.com>
2837
2838 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
2839 Change instance_flags to m_instance_flags.
2840
fe830662
TT
28412020-09-16 Tom Tromey <tromey@adacore.com>
2842
2843 PR gdb/26598:
2844 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
2845
fe5ddfc3
JB
28462020-09-16 John Baldwin <jhb@FreeBSD.org>
2847
2848 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
2849 PL_FLAG_EXEC.
2850 (fbsd_nat_target::insert_exec_catchpoint)
2851 (fbsd_nat_target::remove_exec_catchpoint): Always define.
2852 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
2853 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
2854
e911c666
JB
28552020-09-16 John Baldwin <jhb@FreeBSD.org>
2856
2857 * configure.ac: Remove check for kinfo_getvmmap().
2858 * configure, config.in: Regenerate.
2859 * fbsd-nat.c (fbsd_read_mapping): Remove
2860 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
2861 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
2862 kinfo_get_vmmap() are always present.
2863
1f17d372
JB
28642020-09-16 John Baldwin <jhb@FreeBSD.org>
2865
2866 * fbsd-nat.c: Always include support for
2867 TARGET_OBJECT_SIGNAL_INFO.
2868
bcb1da7f
JB
28692020-09-16 John Baldwin <jhb@FreeBSD.org>
2870
2871 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
2872 sysctl and remove procfs fallback.
2873
5515f729
JB
28742020-09-16 John Baldwin <jhb@FreeBSD.org>
2875
2876 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
2877 * fbsd-nat.h: Likewise.
2878
da1df1db
TBA
28792020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2880
2881 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
2882 argument.
2883
0e25e767
AB
28842020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2885
2886 * ada-lang.c (ada_language_data): Delete.
2887 (ada_language): Remove references to ada_language_data.
2888 * c-lang.c (c_language_data): Delete.
2889 (c_language): Remove references to c_language_data.
2890 (cplus_language_data): Delete.
2891 (cplus_language): Remove references to cplus_language_data.
2892 (asm_language_data): Delete.
2893 (asm_language): Remove references to asm_language_data.
2894 (minimal_language_data): Delete.
2895 (minimal_language): Remove references to minimal_language_data.
2896 * d-lang.c (d_language_data): Delete.
2897 (d_language): Remove references to d_language_data.
2898 * f-lang.c (f_language_data): Delete.
2899 (f_language): Remove references to f_language_data.
2900 * go-lang.c (go_language_data): Delete.
2901 (go_language): Remove references to go_language_data.
2902 * language.c (unknown_language_data): Delete.
2903 (unknown_language): Remove references to unknown_language_data.
2904 (auto_language_data): Delete.
2905 (auto_language): Remove references to auto_language_data.
2906 * language.h (language_data): Delete struct.
2907 (language_defn): No longer inherit from language_data.
2908 * m2-lang.c (m2_language_data): Delete.
2909 (m2_language): Remove references to m2_language_data.
2910 * objc-lang.c (objc_language_data): Delete.
2911 (objc_language): Remove references to objc_language_data.
2912 * opencl-lang.c (opencl_language_data): Delete.
2913 (opencl_language): Remove references to opencl_language_data.
2914 * p-lang.c (pascal_language_data): Delete.
2915 (pascal_language): Remove references to pascal_language_data.
2916 * rust-lang.c (rust_language_data): Delete.
2917 (rust_language): Remove references to rust_language_data.
2918
b7c6e27d
AB
29192020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2920
2921 * ada-lang.c (ada_language_data): Remove la_op_print_tab
2922 initializer.
2923 (ada_language::opcode_print_table): New member function.
2924 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
2925 (c_language::opcode_print_table): New member function.
2926 (cplus_language_data): Remove la_op_print_tab initializer.
2927 (cplus_language::opcode_print_table): New member function.
2928 (asm_language_data): Remove la_op_print_tab initializer.
2929 (asm_language::opcode_print_table): New member function.
2930 (minimal_language_data): Remove la_op_print_tab initializer.
2931 (minimal_language::opcode_print_table): New member function.
2932 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
2933 (d_language::opcode_print_table): New member function.
2934 * expprint.c (print_subexp_standard): Update call to
2935 opcode_print_table.
2936 (op_string): Likewise.
2937 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
2938 (f_language::opcode_print_table): New member function.
2939 * go-lang.c (go_language_data): Remove la_op_print_tab
2940 initializer.
2941 (go_language::opcode_print_table): New member function.
2942 * language.c (unknown_language_data): Remove la_op_print_tab
2943 initializer.
2944 (unknown_language::opcode_print_table): New member function.
2945 (auto_language_data): Remove la_op_print_tab initializer.
2946 (auto_language::opcode_print_table): New member function.
2947 * language.h (language_data): Remove la_op_print_tab field.
2948 (language_defn::opcode_print_table): Declare new member function.
2949 * m2-lang.c (m2_language_data): Remove la_op_print_tab
2950 initializer.
2951 (m2_language::opcode_print_table): New member function.
2952 * objc-lang.c (objc_language_data): Remove la_op_print_tab
2953 initializer.
2954 (objc_language::opcode_print_table): New member function.
2955 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
2956 initializer.
2957 (opencl_language::opcode_print_table): New member function.
2958 * p-lang.c (pascal_language_data): Remove la_op_print_tab
2959 initializer.
2960 (pascal_language::opcode_print_table): New member function.
2961 * rust-lang.c (rust_language_data): Remove la_op_print_tab
2962 initializer.
2963 (rust_language::opcode_print_table): New member function.
2964
5aba6ebe
AB
29652020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2966
2967 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
2968 (ada_language::expression_ops): New member function.
2969 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
2970 (c_language::expression_ops): New member function.
2971 (cplus_language_data): Remove la_exp_desc initializer.
2972 (cplus_language::expression_ops): New member function.
2973 (asm_language_data): Remove la_exp_desc initializer.
2974 (asm_language::expression_ops): New member function.
2975 (minimal_language_data): Remove la_exp_desc initializer.
2976 (minimal_language::expression_ops): New member function.
2977 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
2978 (d_language::expression_ops): New member function.
2979 * eval.c (evaluate_subexp): Update call to expression_ops.
2980 * expprint.c (print_subexp): Likewise.
2981 (op_name): Likewise.
2982 (dump_subexp_body): Likewise.
2983 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
2984 (f_language::expression_ops): New member function.
2985 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
2986 (go_language::expression_ops): New member function.
2987 * language.c (language_defn::expression_ops): New function.
2988 (unknown_language_data): Remove la_exp_desc initializer.
2989 (auto_language_data): Likewise.
2990 * language.h (language_data): Remove la_exp_desc field.
2991 (language_defn::expression_ops): Declare new member function.
2992 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
2993 (m2_language::expression_ops): New member function.
2994 * objc-lang.c (objc_language_data): Remove la_exp_desc
2995 initializer.
2996 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
2997 initializer.
2998 (opencl_language::expression_ops): New member function.
2999 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
3000 * parse.c (operator_length): Update call to expression_ops.
3001 (exp_iterate): Likewise.
3002 * rust-lang.c (rust_language_data): Remove la_exp_desc
3003 initializer.
3004 (ruse_language::expression_ops): New member function.
3005
b63a3f3f
AB
30062020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3007
3008 * ada-lang.c (ada_language_data): Remove la_varobj_ops
3009 initializer.
3010 (ada_language::varobj_ops): New member function.
3011 * c-lang.c (c_language_data): Remove la_varobj_ops
3012 initializer.
3013 (cplus_language_data): Likewise.
3014 (cplus_language::varobj_ops): New member function.
3015 (asm_language_data): Remove la_varobj_ops initializer.
3016 (minimal_language_data): Likewise.
3017 * d-lang.c (d_language_data): Likewise.
3018 * f-lang.c (f_language_data): Likewise.
3019 * go-lang.c (go_language_data): Likewise.
3020 * language.c (language_defn::varobj_ops): New function.
3021 (unknown_language_data): Remove la_varobj_ops
3022 initializer.
3023 (auto_language_data): Likewise.
3024 * language.h (language_data): Remove la_varobj_ops field.
3025 (language_defn::varobj_ops): Declare new member function.
3026 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
3027 * objc-lang.c (objc_language_data): Likewise.
3028 * opencl-lang.c (opencl_language_data): Likewise.
3029 * p-lang.c (pascal_language_data): Likewise.
3030 * rust-lang.c (rust_language_data): Likewise.
3031 * varobj.c (varobj_create): Update call to varobj_ops.
3032 * varobj.h (default_varobj_ops): Delete define.
3033
1ac14a04
AB
30342020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3035
3036 * ada-lang.c (ada_language_data): Remove la_macro_expansion
3037 initializer.
3038 * c-lang.c (c_language_data): Likewise.
3039 (c_language::macro_expansion): New member function.
3040 (cplus_language_data): Likewise.
3041 (cplus_language::macro_expansion): New member function.
3042 (asm_language_data): Likewise.
3043 (asm_language::macro_expansion): New member function.
3044 (minimal_language_data): Likewise.
3045 (minimal_language::macro_expansion): New member function.
3046 * d-lang.c (d_language_data): Remove la_macro_expansion
3047 initializer.
3048 * f-lang.c (f_language_data): Likewise.
3049 * go-lang.c (go_language_data): Likewise.
3050 * language.c (unknown_language_data): Likewise.
3051 (auto_language_data): Likewise.
3052 * language.h (language_data): Remove la_macro_expansion field.
3053 (language_defn::macro_expansion): New member function.
3054 * m2-lang.c (m2_language_data): Remove la_macro_expansion
3055 initializer.
3056 * objc-lang.c (objc_language_data): Likewise.
3057 (objc_language::macro_expansion): New member function.
3058 * opencl-lang.c (opencl_language_data): Likewise.
3059 (opencl_language::macro_expansion): New member function.
3060 * p-lang.c (pascal_language_data): Remove la_macro_expansion
3061 initializer.
3062 * rust-lang.c (rust_language_data): Likewise.
3063 * symtab.c (default_collect_symbol_completion_matches_break_on):
3064 Update call to macro_expansion.
3065
3a3440fb
AB
30662020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3067
3068 * ada-lang.c (ada_language_data): Remove la_array_ordering
3069 initializer.
3070 * c-lang.c (c_language_data): Likewise.
3071 (cplus_language_data): Likewise.
3072 (asm_language_data): Likewise.
3073 (minimal_language_data): Likewise.
3074 * d-lang.c (d_language_data): Likewise.
3075 * dwarf2/read.c (read_array_order): Update for call to
3076 array_ordering.
3077 * f-lang.c (f_language_data): Remove la_array_ordering
3078 initializer.
3079 (f_language::array_ordering): New member function.
3080 * go-lang.c (go_language_data): Remove la_array_ordering
3081 initializer.
3082 * language.c (unknown_language_data): Likewise.
3083 (auto_language_data): Likewise.
3084 * language.h (language_data): Delete la_array_ordering field.
3085 (language_defn::array_ordering): New member function.
3086 * m2-lang.c (m2_language_data): Remove la_array_ordering
3087 initializer.
3088 * objc-lang.c (objc_language_data): Likewise.
3089 * opencl-lang.c (opencl_language_data): Likewise.
3090 * p-lang.c (pascal_language_data): Likewise.
3091 * rust-lang.c (rust_language_data): Likewise.
3092
0d201fa4
AB
30932020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3094
3095 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
3096 initializer.
3097 * c-lang.c (c_language_data): Likewise.
3098 (cplus_language_data): Likewise.
3099 (asm_language_data): Likewise.
3100 (minimal_language_data): Likewise.
3101 * d-lang.c (d_language_data): Likewise.
3102 * f-lang.c (f_language_data): Likewise.
3103 (f_language::case_sensitivity): New member function.
3104 * go-lang.c (go_language_data): Remove la_case_sensitivity
3105 initializer.
3106 * language.c (enum case_mode): Moved here from language.h.
3107 (case_mode): Make static.
3108 (show_case_command): Update for case_sensitivity being a method.
3109 (set_case_command): Likewise.
3110 (set_range_case): Likewise.
3111 (unknown_language_data): Remove la_case_sensitivity initializer.
3112 (auto_language_data): Likewise.
3113 * language.h (case_mode): Delete, move enum declaration to
3114 language.c.
3115 (language_data): Delete la_case_sensitivity field.
3116 (language_defn::case_sensitivity): New member function.
3117 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
3118 initializer.
3119 * objc-lang.c (objc_language_data): Likewise.
3120 * opencl-lang.c (opencl_language_data): Likewise.
3121 * p-lang.c (pascal_language_data): Likewise.
3122 * rust-lang.c (rust_language_data): Likewise.
3123
efdf6a73
AB
31242020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3125
3126 * ada-lang.c (ada_language_data): Remove la_range_check
3127 initializer.
3128 * c-lang.c (c_language_data): Likewise.
3129 (cplus_language_data): Likewise.
3130 (asm_language_data): Likewise.
3131 (minimal_language_data): Likewise.
3132 * d-lang.c (d_language_data): Likewise.
3133 * f-lang.c (f_language_data): Likewise.
3134 (f_language::range_checking_on_by_default): New member function.
3135 * go-lang.c (go_language_data): Remove la_range_check initializer.
3136 * language.c (enum range_mode): Moved here from language.h.
3137 (range_mode): Made static.
3138 (show_range_command): Update to use
3139 range_checking_on_by_default.
3140 (set_range_command): Likewise.
3141 (set_range_case): Likewise.
3142 (unknown_language_data): Remove la_range_check initializer.
3143 (auto_language_data): Likewise.
3144 * language.h (range_mode): Delete. Enum definition moved to
3145 language.c.
3146 (language_data): Remove la_range_check field.
3147 (language_defn::range_checking_on_by_default): New member
3148 function.
3149 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
3150 (m2_language::range_checking_on_by_default): New member function.
3151 * objc-lang.c (objc_language_data): Remove la_range_check
3152 initializer.
3153 * opencl-lang.c (opencl_language_data): Likewise.
3154 * p-lang.c (pascal_language_data): Likewise.
3155 (pascal_language::range_checking_on_by_default): New member
3156 function.
3157 * rust-lang.c (rust_language_data): Remove la_range_check
3158 initializer.
3159 (rust_language::range_checking_on_by_default): New member
3160 function.
3161
bf92aec5
AB
31622020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3163
3164 * dwarf2/read.c (dwarf2_physname): Remove special case for
3165 language_go.
3166 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
3167 member function.
3168
d3355e4d
AB
31692020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3170
3171 * ada-lang.c (ada_language_data): Remove
3172 la_store_sym_names_in_linkage_form_p initializer.
3173 (ada_language::store_sym_names_in_linkage_form_p): New member
3174 function.
3175 * c-lang.c (c_language_data): Remove
3176 la_store_sym_names_in_linkage_form_p initializer.
3177 (c_language::store_sym_names_in_linkage_form_p): New member
3178 function.
3179 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
3180 initializer.
3181 (asm_language_data): Likewise.
3182 (asm_language::store_sym_names_in_linkage_form_p): New member
3183 function.
3184 (minimal_language_data): Remove
3185 la_store_sym_names_in_linkage_form_p initializer.
3186 (minimal_language::store_sym_names_in_linkage_form_p): New member
3187 function.
3188 * d-lang.c (d_language_data): Remove
3189 la_store_sym_names_in_linkage_form_p initializer.
3190 * dwarf2/read.c (dwarf2_physname): Update call to
3191 store_sym_names_in_linkage_form_p.
3192 * f-lang.c (f_language_data): Remove
3193 la_store_sym_names_in_linkage_form_p initializer.
3194 * go-lang.c (go_language_data): Remove
3195 la_store_sym_names_in_linkage_form_p initializer.
3196 * language.c (unknown_language_data): Remove
3197 la_store_sym_names_in_linkage_form_p initializer.
3198 (unknown_language::store_sym_names_in_linkage_form_p): New member
3199 function.
3200 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
3201 initializer.
3202 (auto_language::store_sym_names_in_linkage_form_p): New member
3203 function.
3204 * language.h (language_data): Remove
3205 la_store_sym_names_in_linkage_form_p member variable.
3206 (language_defn::store_sym_names_in_linkage_form_p): New member
3207 function.
3208 * m2-lang.c (m2_language_data): Remove
3209 la_store_sym_names_in_linkage_form_p initializer.
3210 * objc-lang.c (objc_language_data): Likewise.
3211 * opencl-lang.c (opencl_language_data): Likewise.
3212 * p-lang.c (pascal_language_data): Likewise.
3213 * rust-lang.c (rust_language_data): Likewise.
3214
22c12a6c
AB
32152020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3216
3217 * ada-lang.c (ada_language_data): Remove string_lower_bound
3218 initializer.
3219 * c-lang.c (c_language_data): Likewise.
3220 (cplus_language_data): Likewise.
3221 (asm_language_data): Likewise.
3222 (minimal_language_data): Likewise.
3223 * d-lang.c (d_language_data): Likewise.
3224 * f-lang.c (f_language_data): Likewise.
3225 * go-lang.c (go_language_data): Likewise.
3226 * language.c (unknown_language_data): Likewise.
3227 (auto_language_data): Likewise.
3228 * language.h (language_data): Remove string_lower_bound field.
3229 (language_defn::string_lower_bound): New member function.
3230 * m2-lang.c (m2_language_data): Remove string_lower_bound
3231 initializer.
3232 (m2_language::string_lower_bound): New member function.
3233 * objc-lang.c (objc_language_data): Remove string_lower_bound
3234 initializer.
3235 * opencl-lang.c (opencl_language_data): Likewise.
3236 * p-lang.c (pascal_language_data): Likewise.
3237 * rust-lang.c (rust_language_data): Likewise.
3238 * valops.c (value_cstring): Update call to string_lower_bound.
3239 (value_string): Likewise.
3240 * value.c (allocate_repeated_value): Likewise.
3241
1c236ddd
AB
32422020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3243
3244 * valops.c (value_repeat): Fix incorrect argument name in comment.
3245
67bd3fd5
AB
32462020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3247
3248 * ada-lang.c (ada_language_data): Remove c_style_arrays
3249 initializer.
3250 (ada_language::c_style_arrays_p): New member fuction.
3251 * c-lang.c (c_language_data): Remove c_style_arrays
3252 initializer.
3253 (cplus_language_data): Likewise.
3254 (asm_language_data): Likewise.
3255 (minimal_language_data): Likewise.
3256 * d-lang.c (d_language_data): Likewise.
3257 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
3258 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
3259 (f_language::c_style_arrays_p): New member function.
3260 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
3261 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
3262 * language.c (unknown_language_data): Remove c_style_arrays
3263 initializer.
3264 (auto_language_data): Likewise.
3265 * language.h (language_data): Remove c_style_arrays field.
3266 (language_defn::c_style_arrays_p): New member function.
3267 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
3268 (m2_language::c_style_arrays_p): New member function.
3269 * objc-lang.c (objc_language_data): Remove c_style_arrays
3270 initializer.
3271 * opencl-lang.c (opencl_language_data): Likewise.
3272 * p-lang.c (pascal_language_data): Likewise.
3273 * rust-lang.c (rust_language_data): Likewise.
3274 * valarith.c (value_subscript): Update call to c_style_arrays_p,
3275 and update local variable to a bool.
3276 * valops.c (value_cast): Update call to c_style_arrays_p.
3277 (value_array): Likewise.
3278 * value.c (coerce_array): Likewise.
3279
85967615
AB
32802020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3281
3282 * ada-lang.c (ada_language_data): Remove la_language initializer.
3283 * c-lang.c (c_language_data): Likewise.
3284 (cplus_language_data): Likewise.
3285 (asm_language_data): Likewise.
3286 (minimal_language_data): Likewise.
3287 * d-lang.c (d_language_data): Likewise.
3288 * f-lang.c (f_language_data): Likewise.
3289 * go-lang.c (go_language_data): Likewise.
3290 * language.c (unknown_language_data): Likewise.
3291 (auto_language_data): Likewise.
3292 * language.h (language_data): Remove la_language field.
3293 (language_defn::language_defn): Initialise la_language field.
3294 (language_defn::la_language): New member variable.
3295 * m2-lang.c (m2_language_data): Remove la_language field.
3296 * objc-lang.c (objc_language_data): Likewise.
3297 * opencl-lang.c (opencl_language_data): Likewise.
3298 * p-lang.c (pascal_language_data): Likewise.
3299 * rust-lang.c (rust_language_data): Likewise.
3300
e171d6f1
AB
33012020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3302
3303 * ada-lang.c (ada_extensions): Delete, moved into
3304 ada_language::filename_extensions.
3305 (ada_language_data): Remove la_filename_extensions initializer.
3306 (ada_language::filename_extensions): New member function.
3307 * c-lang.c (c_extensions): Delete, moved into
3308 c_language::filename_extensions.
3309 (c_language_data): Remove la_filename_extensions initializer.
3310 (c_language::filename_extensions): New member function.
3311 (cplus_extensions): Delete, moved into
3312 cplus_language::filename_extensions.
3313 (cplus_language_data): Remove la_filename_extensions initializer.
3314 (cplus_language::filename_extensions): New member function.
3315 (asm_extensions): Delete, moved into
3316 asm_language::filename_extensions.
3317 (asm_language_data): Remove la_filename_extensions initializer.
3318 (asm_language::filename_extensions): New member function.
3319 (minimal_language_data): Remove la_filename_extensions
3320 initializer.
3321 * d-lang.c (d_extensions): Delete, moved into
3322 d_language::filename_extensions.
3323 (d_language_data): Remove la_filename_extensions initializer.
3324 (d_language::filename_extensions): New member function.
3325 * f-lang.c (f_extensions): Delete, moved into
3326 f_language::filename_extensions.
3327 (f_language_data): Remove la_filename_extensions initializer.
3328 (f_language::filename_extensions): New member function.
3329 * go-lang.c (go_language_data): Remove la_filename_extensions
3330 initializer.
3331 * language.c (add_set_language_command): Update now that
3332 filename_extensions returns a vector.
3333 (unknown_language_data): Remove la_filename_extensions
3334 initializer.
3335 (auto_language_data): Likewise.
3336 * language.h (language_data): Remove la_filename_extensions field.
3337 (language_defn::filename_extensions): New member function.
3338 * m2-lang.c (m2_language_data): Remove la_filename_extensions
3339 initializer.
3340 * objc-lang.c (objc_extensions): Delete, moved into
3341 objc_language::filename_extensions.
3342 (objc_language_data): Remove la_filename_extensions initializer.
3343 (objc_language::filename_extensions): New member function.
3344 * opencl-lang.c (opencl_language_data): Remove
3345 la_filename_extensions initializer.
3346 * p-lang.c (pascal_extensions): Delete, moved into
3347 pascal_language::filename_extensions.
3348 (pascal_language_data): Remove la_filename_extensions initializer.
3349 (pascal_language::filename_extensions): New member function.
3350 * rust-lang.c (rust_extensions): Delete, moved into
3351 rust_language::filename_extensions.
3352 (rust_language_data): Remove la_filename_extensions initializer.
3353 (rust_language::filename_extensions): New member function.
3354 * symfile.c (add_filename_language): Add new assert.
3355
6f7664a9
AB
33562020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3357
3358 * ada-lang.c (ada_language_data): Remove la_name and
3359 la_natural_name initializers.
3360 (ada_language::name): New member function.
3361 (ada_language::natural_name): New member function.
3362 * c-lang.c (c_language_data): Remove la_name and
3363 la_natural_name initializers.
3364 (c_language::name): New member function.
3365 (c_language::natural_name): New member function.
3366 (cplus_language_data): Remove la_name and
3367 la_natural_name initializers.
3368 (cplus_language::name): New member function.
3369 (cplus_language::natural_name): New member function.
3370 (asm_language_data): Remove la_name and
3371 la_natural_name initializers.
3372 (asm_language::name): New member function.
3373 (asm_language::natural_name): New member function.
3374 (minimal_language_data): Remove la_name and
3375 la_natural_name initializers.
3376 (minimal_language::name): New member function.
3377 (minimal_language::natural_name): New member function.
3378 * compile/compile.c (compile_to_object): Update call to
3379 lanugage_defn::name.
3380 * d-lang.c (d_language_data): Remove la_name and
3381 la_natural_name initializers.
3382 (d_language::name): New member function.
3383 (d_language::natural_name): New member function.
3384 * expprint.c (print_subexp_standard): Update call to
3385 language_defn::name.
3386 (dump_raw_expression): Likewise
3387 (dump_prefix_expression): Likewise.
3388 * f-lang.c (f_language_data): Remove la_name and
3389 la_natural_name initializers.
3390 (f_language::name): New member function.
3391 (f_language::natural_name): New member function.
3392 * go-lang.c (go_language_data): Remove la_name and
3393 la_natural_name initializers.
3394 (go_language::name): New member function.
3395 (go_language::natural_name): New member function.
3396 * language.c (show_language_command): Update call to
3397 language_defn::name.
3398 (set_language_command): Likewise.
3399 (language_enum): Likewise.
3400 (language_str): Likewise.
3401 (add_set_language_command): Likewise, use
3402 language_defn::natural_name in the doc string.
3403 (unknown_language_data): Remove la_name and
3404 la_natural_name initializers.
3405 (unknown_language::name): New member function.
3406 (unknown_language::natural_name): New member function.
3407 (auto_language_data): Remove la_name and
3408 la_natural_name initializers.
3409 (auto_language::name): New member function.
3410 (auto_language::natural_name): New member function.
3411 (language_lookup_primitive_type_as_symbol): Update call to
3412 language_defn::name.
3413 * language.h (language_data): Remove la_name and la_natural_name
3414 member variables.
3415 (language_defn::name): New member function.
3416 (language_defn::natural_name): New member function.
3417 * m2-lang.c (m2_language_data): Remove la_name and
3418 la_natural_name initializers.
3419 (m2_language::name): New member function.
3420 (m2_language::natural_name): New member function.
3421 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
3422 language_defn::natural_name.
3423 * objc-lang.c (objc_language_data): Remove la_name and
3424 la_natural_name initializers.
3425 (objc_language::name): New member function.
3426 (objc_language::natural_name): New member function.
3427 * opencl-lang.c (opencl_language_data): Remove la_name and
3428 la_natural_name initializers.
3429 (opencl_language::name): New member function.
3430 (opencl_language::natural_name): New member function.
3431 * p-lang.c (pascal_language_data): Remove la_name and
3432 la_natural_name initializers.
3433 (pascal_language::name): New member function.
3434 (pascal_language::natural_name): New member function.
3435 * rust-lang.c (rust_language_data): Remove la_name and
3436 la_natural_name initializers.
3437 (rust_language::name): New member function.
3438 (rust_language::natural_name): New member function.
3439 * symtab.c (lookup_language_this): Update call to
3440 language_defn::name.
3441
5bae7c4e
AB
34422020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3443
3444 * ada-lang.c (ada_language_data): Remove la_name_of_this
3445 initializer.
3446 * ax-gdb.c (gen_expr): Update call to name_of_this.
3447 * c-exp.y (classify_name): Likewise.
3448 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
3449 (cplus_language_data): Likewise.
3450 (cplus_language::name_of_this): New member function.
3451 (asm_language_data): Remove la_name_of_this initializer.
3452 (minimal_language_data): Likewise.
3453 * d-lang.c (d_language_data): Likewise.
3454 (d_language::name_of_this): New member function.
3455 * expprint.c (print_subexp_standard): Update call to name_of_this.
3456 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
3457 * go-lang.c (go_language_data): Likewise.
3458 * language.c (unknown_language_data): Likewise.
3459 (unknown_language::name_of_this): New member function.
3460 (auto_language_data): Remove la_name_of_this initializer.
3461 (auto_language::name_of_this): New member function.
3462 * language.h (language_data): Delete la_name_of_this member
3463 variable.
3464 (language_defn::name_of_this): New member function.
3465 * m2-lang.c (m2_language_data): Remove la_name_of_this
3466 initializer.
3467 * objc-lang.c (objc_language_data): Likewise.
3468 (objc_language::name_of_this): New member function.
3469 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
3470 initializer.
3471 * p-lang.c (pascal_language_data): Likewise.
3472 (pascal_language::name_of_this): New member function.
3473 * rust-lang.c (rust_language_data): Remove la_name_of_this
3474 initializer.
3475 * symtab.c (lookup_language_this): Update call to name_of_this.
3476 (lookup_symbol_aux): Likewise.
3477 * valops.c (value_of_this): Likewise.
3478
22e3f3ed
AB
34792020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3480
3481 * ada-lang.c (ada_language_data): Remove
3482 la_struct_too_deep_ellipsis initializer.
3483 (ada_language::struct_too_deep_ellipsis): New member function.
3484 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
3485 initializer.
3486 (cplus_language_data): Likewise.
3487 (asm_language_data): Likewise.
3488 (minimal_language_data): Likewise.
3489 * cp-valprint.c (cp_print_value): Update call to
3490 struct_too_deep_ellipsis.
3491 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
3492 initializer.
3493 * f-lang.c (f_language_data): Likewise.
3494 (f_language::struct_too_deep_ellipsis): New member function.
3495 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
3496 initializer.
3497 * language.c (unknown_language_data): Likewise.
3498 (auto_language_data): Likewise.
3499 * language.h (language_data): Delete la_struct_too_deep_ellipsis
3500 member variable.
3501 (language_defn::struct_too_deep_ellipsis): New member function.
3502 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
3503 initializer.Q
3504 * objc-lang.c (objc_language_data): Likewise.
3505 * opencl-lang.c (opencl_language_data): Likewise.
3506 * p-lang.c (pascal_language_data): Likewise.
3507 * rust-lang.c (rust_language_data): Likewise.
3508 * valprint.c (val_print_check_max_depth): Update call to
3509 struct_too_deep_ellipsis.
3510
ed29e1c7
FW
35112020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
3512
3513 * MAINTAINERS (Write After Approval): Add myself.
3514
12d8f940
TT
35152020-09-15 Tom Tromey <tom@tromey.com>
3516
3517 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
3518 Remove.
3519
6b5a7bc7
TT
35202020-09-15 Tom Tromey <tom@tromey.com>
3521
3522 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
3523 and TYPE_CODE_METHODPTR cases.
3524 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
3525 (c_value_print_inner): Update.
3526 * valprint.c (generic_value_print_memberptr): New function, from
3527 c_value_print_memberptr.
3528 (generic_value_print): Use it. Call cplus_print_method_ptr.
3529
47f0e2ff
TT
35302020-09-15 Tom Tromey <tromey@adacore.com>
3531
3532 * python/python-internal.h (PyInt_FromLong): Remove define.
3533 * python/py-value.c (convert_value_from_python): Use
3534 gdb_py_object_from_longest.
3535 * python/py-type.c (typy_get_code): Use
3536 gdb_py_object_from_longest.
3537 * python/py-symtab.c (salpy_get_line): Use
3538 gdb_py_object_from_longest.
3539 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
3540 gdb_py_object_from_longest.
3541 * python/py-record.c (recpy_gap_reason_code): Use
3542 gdb_py_object_from_longest.
3543 * python/py-record-btrace.c (recpy_bt_insn_size)
3544 (recpy_bt_func_level, btpy_list_count): Use
3545 gdb_py_object_from_longest.
3546 * python/py-infthread.c (gdbpy_create_ptid_object): Use
3547 gdb_py_object_from_longest. Fix error handling.
3548 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
3549 gdb_py_object_from_longest.
3550 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
3551 gdb_py_object_from_longest.
3552 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
3553 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
3554 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
3555
512116ce
TT
35562020-09-15 Tom Tromey <tromey@adacore.com>
3557
3558 * python/python.c (gdbpy_parameter_value): Use
3559 gdb_py_object_from_ulongest.
3560
4ab1029c
TT
35612020-09-15 Tom Tromey <tromey@adacore.com>
3562
3563 * python/py-infevents.c (create_register_changed_event_object):
3564 Use gdb_py_object_from_longest.
3565 * python/py-exitedevent.c (create_exited_event_object): Use
3566 gdb_py_object_from_longest.
3567
062534d4
TT
35682020-09-15 Tom Tromey <tromey@adacore.com>
3569
3570 * python/python.c (gdbpy_parameter_value): Use
3571 gdb_py_object_from_longest.
3572 * python/py-type.c (convert_field, typy_range): Use
3573 gdb_py_object_from_longest.
3574 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
3575 gdb_py_object_from_longest.
3576 * python/py-lazy-string.c (stpy_get_length): Use
3577 gdb_py_object_from_longest.
3578 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
3579 gdb_py_object_from_longest.
3580 * python/py-infevents.c (create_memory_changed_event_object): Use
3581 gdb_py_object_from_longest.
3582 * python/py-inferior.c (infpy_get_num): Use
3583 gdb_py_object_from_longest.
3584 (infpy_get_pid): Likewise.
3585
d1cab987
TT
35862020-09-15 Tom Tromey <tromey@adacore.com>
3587
3588 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
3589 defines.
3590 * python/py-value.c (valpy_long): Use
3591 gdb_py_object_from_ulongest.
3592 * python/py-symtab.c (salpy_get_pc): Use
3593 gdb_py_object_from_ulongest.
3594 (salpy_get_last): Likewise.
3595 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
3596 gdb_py_object_from_ulongest.
3597 * python/py-lazy-string.c (stpy_get_address): Use
3598 gdb_py_object_from_ulongest.
3599 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
3600 * python/py-arch.c (archpy_disassemble): Use
3601 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
3602 error handling.
3603
4bde49dc
TT
36042020-09-15 Tom Tromey <tromey@adacore.com>
3605
3606 * python/python-internal.h (gdb_py_long_from_longest): Remove
3607 defines.
3608 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
3609 * python/py-type.c (convert_field, typy_get_sizeof): Use
3610 gdb_py_object_from_longest.
3611 * python/py-record-btrace.c (btpy_list_index): Use
3612 gdb_py_object_from_longest.
3613
37431074
TT
36142020-09-15 Tom Tromey <tromey@adacore.com>
3615
3616 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
3617 * python/py-record.c (recpy_element_number): Use
3618 gdb_py_object_from_longest.
3619 (recpy_gap_number): Likewise.
3620
cbe25684
TT
36212020-09-15 Tom Tromey <tromey@adacore.com>
3622
3623 * top.c (ui::ui): Update.
3624 (highest_ui_num): Remove.
3625 * top.h (struct ui) <num>: Remove.
3626
db92ac45
TT
36272020-09-15 Tom Tromey <tromey@adacore.com>
3628
3629 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
3630 * ui-style.c (ansi_regex_text): Now array.
3631 * rust-exp.y (number_regex_text): Now array.
3632 * linespec.c (linespec_quote_characters): Now array.
3633 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
3634 Now arrays.
3635
d2b31b67
SM
36362020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3637
3638 * debuginfod-support.c (debuginfod_client_deleter): New.
3639 (debuginfod_client_up): New.
3640 (debuginfod_init): Return debuginfod_client_up.
3641 (debuginfod_source_query): Adjust.
3642 (debuginfod_debuginfo_query): Adjust.
3643
3246bd8e
SM
36442020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3645
3646 * debuginfod-support.c (debuginfod_source_query): Use
3647 make_unique_xstrdup.
3648
10242f36
SM
36492020-09-14 Simon Marchi <simon.marchi@efficios.com>
3650
3651 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
3652 with `type::instance_flags`.
3653
e1044e6a
MM
36542020-09-14 Michael Mullin <masmullin@gmail.com>
3655
3656 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
3657 Remove baton parameter.
3658
04902b09
PA
36592020-09-14 Pedro Alves <pedro@palves.net>
3660
3661 * Makefile.in (SELFTESTS_SRCS): Add
3662 unittests/enum-flags-selftests.c.
3663 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
3664 btrace_function_flags instead of enum btrace_function_flag.
3665 * compile/compile-c-types.c (convert_qualified): Use
3666 enum_flags::raw.
3667 * compile/compile-cplus-symbols.c (convert_one_symbol)
3668 (convert_symbol_bmsym):
3669 * compile/compile-cplus-types.c (compile_cplus_convert_method)
3670 (compile_cplus_convert_struct_or_union_methods)
3671 (compile_cplus_instance::convert_qualified_base):
3672 * go-exp.y (parse_string_or_char): Add cast to int.
3673 * unittests/enum-flags-selftests.c: New file.
3674 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
3675 type to btrace_thread_flags from btrace_thread_flag.
3676 (record_btrace_cancel_resume, record_btrace_step_thread): Change
3677 local's type to btrace_thread_flags from btrace_thread_flag. Add
3678 cast in DEBUG call.
3679
69896a2c
PA
36802020-09-14 Pedro Alves <pedro@palves.net>
3681
3682 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
3683 * gdbtypes.c (address_space_name_to_int): Rename to ...
3684 (address_space_name_to_type_instance_flags): ... this.
3685 (address_space_int_to_name): Rename to ...
3686 (address_space_type_instance_flags_to_name): ... this.
3687 * gdbtypes.h (address_space_name_to_int): Rename to ...
3688 (address_space_name_to_type_instance_flags): ... this.
3689 (address_space_int_to_name): Rename to ...
3690 (address_space_type_instance_flags_to_name): ... this.
3691 * type-stack.c (type_stack::insert): Adjust to rename.
3692 * type-stack.h (type_stack::insert): Likewise.
3693
314ad88d
PA
36942020-09-14 Pedro Alves <pedro@palves.net>
3695 Andrew Burgess <andrew.burgess@embecosm.com>
3696
3697 * avr-tdep.c (avr_address_class_type_flags): Return
3698 type_instance_flags.
3699 (avr_address_class_type_flags_to_name): Take a
3700 type_instance_flags.
3701 (avr_address_class_name_to_type_flags): Return bool and take a
3702 type_instance_flags.
3703 * d-lang.c (build_d_types): Use type::set_instance_flags.
3704 * ft32-tdep.c (ft32_address_class_type_flags): Return
3705 type_instance_flags.
3706 (ft32_address_class_type_flags_to_name): Take a
3707 type_instance_flags.
3708 (ft32_address_class_name_to_type_flags): Return bool and take a
3709 type_instance_flags.
3710 (ft32_gdbarch_init): Use type::set_instance_flags.
3711 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
3712 * gdbarch.h, gdbarch.c: Regenerate.
3713 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
3714 (address_class_name_to_type_flags): Use type_instance_flags and
3715 bool.
3716 * gdbtypes.c (address_space_name_to_int)
3717 (address_space_int_to_name, make_qualified_type): Use
3718 type_instance_flags.
3719 (make_qualified_type): Use type_instance_flags and
3720 type::set_instance_flags.
3721 (make_type_with_address_space, make_cv_type, make_vector_type)
3722 (check_typedef): Use type_instance_flags.
3723 (recursive_dump_type): Cast type_instance_flags to unsigned for
3724 printing.
3725 (copy_type_recursive): Use type::set_instance_flags.
3726 (gdbtypes_post_init): Use type::set_instance_flags.
3727 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
3728 <m_instance_flags>: ... this.
3729 <instance_flags, set_instance_flags>: New methods.
3730 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
3731 (SET_TYPE_INSTANCE_FLAGS): New.
3732 (address_space_name_to_int, address_space_int_to_name)
3733 (make_type_with_address_space): Pass flags using
3734 type_instance_flags instead of int.
3735 * stabsread.c (cleanup_undefined_types_noname): Use
3736 type::set_instance_flags.
3737 * s390-tdep.c (s390_address_class_type_flags): Return
3738 type_instance_flags.
3739 (s390_address_class_type_flags_to_name): Take a
3740 type_instance_flags.
3741 (s390_address_class_name_to_type_flags): Return bool and take a
3742 type_instance_flags.
3743 * type-stack.c (type_stack::follow_types): Use
3744 type_instance_flags.
3745 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
3746
27087b7f
TT
37472020-09-14 Tom Tromey <tromey@adacore.com>
3748
3749 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
3750 * x86-tdep.c (x86_is_thunk_register_name)
3751 (x86_in_indirect_branch_thunk): Update.
3752 * sparc64-tdep.c (sparc64_fpu_register_names)
3753 (sparc64_cp0_register_names, sparc64_register_names)
3754 (sparc64_pseudo_register_names): Now const.
3755 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
3756 cp0_registers_num>: Now const.
3757 * sparc-tdep.c (sparc_core_register_names)
3758 (sparc32_fpu_register_names, sparc32_cp0_register_names)
3759 (sparc32_pseudo_register_names): Now const.
3760 (validate_tdesc_registers): Update.
3761 * rust-lang.c (rust_extensions): Now const.
3762 * p-lang.c (p_extensions): Now const.
3763 * objc-lang.c (objc_extensions): Now const.
3764 * nto-tdep.c (nto_thread_state_str): Now const.
3765 * moxie-tdep.c (moxie_register_names): Now const.
3766 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
3767 Now const.
3768 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
3769 (mips_linux_reg_names): Now const.
3770 (mips_gdbarch_init): Update.
3771 * microblaze-tdep.c (microblaze_register_names): Now const.
3772 * m68k-tdep.c (m68k_register_names): Now const.
3773 * m32r-tdep.c (m32r_register_names): Now const.
3774 * ia64-tdep.c (ia64_register_names): Now const.
3775 * i386-tdep.h (struct gdbarch_tdep) <register_names,
3776 ymmh_register_names, ymm16h_regnum, mpx_register_names,
3777 k_register_names, zmmh_register_names, xmm_avx512_register_names,
3778 ymm_avx512_register_names, pkeys_register_names>: Now const.
3779 * i386-tdep.c (i386_register_names, i386_zmm_names)
3780 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
3781 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
3782 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
3783 * f-lang.c (f_extensions): Now const.
3784 * d-lang.c (d_extensions): Now const.
3785 * csky-tdep.c (csky_register_names): Now const.
3786 * charset.c (default_charset_names, charset_enum): Now const.
3787 (_initialize_charset): Update.
3788 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
3789 const.
3790 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
3791 (bsd_uthread_solib_loaded): Update.
3792 (bsd_uthread_state): Now const.
3793 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
3794 (amd64_ymm_avx512_names, amd64_ymmh_names)
3795 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
3796 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
3797 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
3798 (amd64_dword_names): Now const.
3799 * agent.c (can_use_agent_enum): Now const.
3800 * ada-tasks.c (task_states, long_task_states): Now const.
3801 * ada-lang.c (known_runtime_file_name_patterns)
3802 (known_auxiliary_function_name_patterns, attribute_names)
3803 (standard_exc, ada_extensions): Now const.
3804
89806626
SM
38052020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3806
3807 * bcache.h (struct bcache) <bcache>: Remove constructor.
3808 <m_hash_function, m_compare_function>: Remove.
3809 <~bcache>: Make virtual.
3810 <compare>: Remove static method, introduce virtual method.
3811 <default_hash>: Remove.
3812 <hash>: New virtual method.
3813 * bcache.c (bcache::expand_hash_table): Update.
3814 (bcache::insert): Update.
3815 (bcache::hash): New.
3816 (bcache::compare): Update comment and parameter names.
3817 * gdbtypes.c (types_deeply_equal): Update.
3818 * psymtab.h (struct psymbol_bcache): New struct.
3819 (class psymtab_storage) <psymtab_storage>: Make default.
3820 <psymbol_cache>: Change type to psymbol_bcache.
3821 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
3822 (psymbol_hash): Change to...
3823 (psymbol_bcache::hash): ... this.
3824 (psymbol_compare): Change to...
3825 (psymbol_bcache::compare): ... this.
3826
677c92fe
SM
38272020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3828
3829 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
3830 checking for initial lwp.
3831
3eba3a01
TT
38322020-09-14 Tom Tromey <tromey@adacore.com>
3833
3834 * m68k-tdep.c (m68k_extract_return_value): Use
3835 pointer_result_regnum.
3836 (m68k_store_return_value): Likewise.
3837 (m68k_reg_struct_return_p): Handle vectors and arrays.
3838 (m68k_return_value): Handle arrays.
3839 (m68k_svr4_return_value): Fix single-element aggregate handling.
3840 Handle long double. Adjust for embedded ABI.
3841 (m68k_svr4_init_abi): Set pointer_result_regnum.
3842 (m68k_embedded_init_abi): New function.
3843 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
3844 (m68k_osabi_sniffer): New function.
3845 (_initialize_m68k_tdep): Register osabi sniffer.
3846 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
3847 member.
3848
33f4dd48
SM
38492020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3850
3851 * xml-support.c (xml_fetch_content_from_file): Replace xfree
3852 with gdb::unique_xmalloc_ptr<char>.
3853
8400a90d
SM
38542020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3855
3856 * xml-support.h (xml_fetch_another): Change type to be a
3857 function_view.
3858 (xml_process_xincludes): Remove baton parameter.
3859 (xml_fetch_content_from_file): Change baton parameter to
3860 dirname.
3861 * xml-support.c (struct xinclude_parsing_data)
3862 <xinclude_parsing_data>: Remove baton parameter.
3863 <fetcher_baton>: Remove.
3864 (xinclude_start_include): Adjust.
3865 (xml_process_xincludes): Adjust.
3866 (xml_fetch_content_from_file): Replace baton parameter with
3867 dirname.
3868 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
3869 (xml_init_syscalls_info): Use a lambda.
3870 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
3871 (file_read_description_xml): Use a lambda.
3872 (fetch_available_features_from_target): Change baton parameter
3873 to target_ops.
3874 (target_read_description_xml): Use a lambda.
3875 (target_fetch_description_xml): Use a lambda.
3876 (string_read_description_xml): Update.
3877
04f5bab2
SM
38782020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3879
3880 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
3881 uses with type::endianity_is_not_default.
3882
db558e34
SM
38832020-09-14 Simon Marchi <simon.marchi@efficios.com>
3884
3885 * gdbtypes.h (struct type) <endianity_is_not_default,
3886 set_endianity_is_not_default>: New methods.
3887 (TYPE_ENDIANITY_NOT_DEFAULT): Use
3888 type::endianity_is_not_default, change all write call sites to
3889 use type::set_endianity_is_not_default.
3890
22c4c60c
SM
38912020-09-14 Simon Marchi <simon.marchi@efficios.com>
3892
3893 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
3894 uses with type::is_fixed_instance.
3895
9cdd0d12
SM
38962020-09-14 Simon Marchi <simon.marchi@efficios.com>
3897
3898 * gdbtypes.h (struct type) <is_fixed_instance,
3899 set_is_fixed_instance>: New methods.
3900 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
3901 write call sites to use type::set_is_fixed_instance.
3902
0becda7a
SM
39032020-09-14 Simon Marchi <simon.marchi@efficios.com>
3904
3905 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
3906 uses with type::is_gnu_ifunc.
3907
03cc7249
SM
39082020-09-14 Simon Marchi <simon.marchi@efficios.com>
3909
3910 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
3911 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
3912 use type::set_is_gnu_ifunc.
3913
3f46044c
SM
39142020-09-14 Simon Marchi <simon.marchi@efficios.com>
3915
3916 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
3917 uses with type::stub_is_supported.
3918
9baccff6
SM
39192020-09-14 Simon Marchi <simon.marchi@efficios.com>
3920
3921 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
3922 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
3923 use type::set_stub_is_supported.
3924
bd63c870
SM
39252020-09-14 Simon Marchi <simon.marchi@efficios.com>
3926
3927 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
3928 uses with type::is_vector.
3929
2062087b
SM
39302020-09-14 Simon Marchi <simon.marchi@efficios.com>
3931
3932 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
3933 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
3934 use type::set_is_vector.
3935
a409645d
SM
39362020-09-14 Simon Marchi <simon.marchi@efficios.com>
3937
3938 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
3939 uses with type::has_varargs.
3940
1d6286ed
SM
39412020-09-14 Simon Marchi <simon.marchi@efficios.com>
3942
3943 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
3944 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
3945 use type::set_has_varargs.
3946
7f9f399b
SM
39472020-09-14 Simon Marchi <simon.marchi@efficios.com>
3948
3949 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
3950 uses with type::is_prototyped.
3951
27e69b7a
SM
39522020-09-14 Simon Marchi <simon.marchi@efficios.com>
3953
3954 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
3955 New methods.
3956 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
3957 call sites to use type::set_is_prototyped.
3958
d2183968
SM
39592020-09-14 Simon Marchi <simon.marchi@efficios.com>
3960
3961 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
3962 uses with type::target_is_stub.
3963
8f53807e
SM
39642020-09-14 Simon Marchi <simon.marchi@efficios.com>
3965
3966 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
3967 New methods.
3968 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
3969 sites to use type::set_target_is_stub.
3970
e46d3488
SM
39712020-09-14 Simon Marchi <simon.marchi@efficios.com>
3972
3973 * gdbtypes.h (TYPE_STUB): Remove, replace all
3974 uses with type::is_stub.
3975
b4b73759
SM
39762020-09-14 Simon Marchi <simon.marchi@efficios.com>
3977
3978 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
3979 (TYPE_STUB): Use type::is_stub, change all write call sites to
3980 use type::set_is_stub.
3981
20ce4123
SM
39822020-09-14 Simon Marchi <simon.marchi@efficios.com>
3983
3984 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
3985 type::has_no_signedness.
3986
15152a54
SM
39872020-09-14 Simon Marchi <simon.marchi@efficios.com>
3988
3989 * gdbtypes.h (struct type) <has_no_signedness,
3990 set_has_no_signedness>: New methods.
3991 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
3992 call sites to use type::set_has_no_signedness.
3993
c6d940a9
SM
39942020-09-14 Simon Marchi <simon.marchi@efficios.com>
3995
3996 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
3997 type::is_unsigned.
3998
653223d3
SM
39992020-09-14 Simon Marchi <simon.marchi@efficios.com>
4000
4001 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
4002 methods.
4003 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
4004 sites to use type::set_is_unsigned.
4005
55ea94da 40062020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 4007 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 4008
e851246a
SM
4009 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
4010 pointer and stack frame offset when unwinding.
55ea94da 4011
6791b117
PA
40122020-09-13 Pedro Alves <pedro@palves.net>
4013
4014 * NEWS: Document "-break-insert --qualified".
4015 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
4016
77f2120b
PA
40172020-09-13 Pedro Alves <pedro@palves.net>
4018
4019 * linespec.c (classify_mtype, compare_msyms): Delete.
4020 (search_minsyms_for_name): Remove classification logic. Instead
4021 filter out trampoline symbols if we also found an external
4022 function of the same name.
4023
ed6a896c
JB
40242020-09-13 Joel Brobecker <brobecker@adacore.com>
4025
4026 * NEWS: Create a new section for the next release branch.
4027 Rename the section of the current branch, now that it has
4028 been cut.
4029
32aea73e
JB
40302020-09-13 Joel Brobecker <brobecker@adacore.com>
4031
4032 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
4033 * version.in: Bump version to 11.0.50.DATE-git.
4034
8087c3fa
JB
40352020-09-12 Joel Brobecker <brobecker@adacore.com>
4036
4037 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
4038
2a67f09d
FW
40392020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
4040 Felix Willgerodt <Felix.Willgerodt@intel.com>
4041
4042 * gdbarch.sh: Added bfloat16 type.
4043 * gdbarch.c: Regenerated.
4044 * gdbarch.h: Regenerated.
4045 * gdbtypes.c (floatformats_bfloat16): New struct.
4046 (gdbtypes_post_init): Add builtin_bfloat16.
4047 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
4048 (floatformats_bfloat16): New struct.
4049 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
4050 (i386_ymm_type): Add field "v16_bfloat16"
4051 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
4052 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
4053 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
4054 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
4055 * features/i386/64bit-avx512.xml: Add bfloat16 type.
4056 * features/i386/64bit-avx512.c: Regenerated.
4057 * features/i386/64bit-sse.xml: Add bfloat16 type.
4058 * features/i386/64bit-sse.c: Regenerated.
4059
1347d111
FW
40602020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
4061
4062 * i386-tdep.c (i386_zmm_type): Fix field names.
4063 (i386_ymm_type): Fix field names.
4064
7a4e8e7d
TBA
40652020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4066
4067 * breakpoint.c: Fix typo in the help message of the
4068 "set breakpoint condition-evaluation" command.
4069
cf4ac4be
KR
40702020-09-10 Kamil Rytarowski <n54@gmx.com>
4071
4072 * nbsd-nat.c: Include "nat/netbsd-nat.h".
4073 * (nbsd_nat_target::pid_to_exec_file)
4074 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
4075 (nbsd_nat_target::post_startup_inferior)
4076 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
4077 (nbsd_add_threads): Switch local code to common gdb/nat functions.
4078 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
4079 * (nbsd_thread_lister): Remove.
4080
f404573e
KR
40812020-09-10 Kamil Rytarowski <n54@gmx.com>
4082
4083 * fork-inferior.c (startup_inferior): Avoid double free.
4084
1ccb2c17
KR
40852020-09-10 Kamil Rytarowski <n54@gmx.com>
4086
4087 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
4088 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
4089
feedfcc7
KR
40902020-09-10 Kamil Rytarowski <n54@gmx.com>
4091
4092 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
4093 * netbsd-nat.c: Include <sys/ptrace.h>.
4094 * (netbsd_nat::enable_proc_events): Add.
4095
c489f8c6
KR
40962020-09-10 Kamil Rytarowski <n54@gmx.com>
4097
4098 * netbsd-nat.h: Include "gdbsupport/function-view.h".
4099 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4100 (netbsd_nat::for_each_thread): Add.
4101 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
4102 "gdbsupport/common-debug.h".
4103 * (netbsd_nat::netbsd_thread_lister)
4104 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4105 (netbsd_nat::for_each_thread): Add.
4106
330662f6
KR
41072020-09-10 Kamil Rytarowski <n54@gmx.com>
4108
4109 * netbsd-nat.h: Include <unistd.h>.
4110 * (netbsd_nat::pid_to_exec_file): Add.
4111 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
4112 * (netbsd_nat::pid_to_exec_file) Add.
4113
70b67307
KR
41142020-09-10 Kamil Rytarowski <n54@gmx.com>
4115
4116 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
4117
99cf6da6
KR
41182020-09-10 Kamil Rytarowski <n54@gmx.com>
4119
4120 * netbsd-nat.h: New file.
4121 * netbsd-nat.c: Likewise.
4122
1b788fb6
TT
41232020-09-09 Tom Tromey <tromey@adacore.com>
4124
4125 * ada-lang.c (remove_extra_symbols): Do not increment when
4126 removing an element
4127
03b0a45f
TT
41282020-09-08 Tom Tromey <tromey@adacore.com>
4129
4130 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
4131
3cae4447
TT
41322020-09-08 Tom Tromey <tromey@adacore.com>
4133
4134 PR win32/25302:
4135 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
4136 (gdb_bfd_init_data): New function.
4137 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
4138
7f08fd51
TBA
41392020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4140
4141 * infrun.c (fetch_inferior_event): Use
4142 `switch_to_target_no_thread` to switch the target.
4143
3e6ff933
TT
41442020-09-06 Tom Tromey <tom@tromey.com>
4145
4146 * symfile.h (dwarf2_free_objfile): Don't declare.
4147
e56798df
AKS
41482020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4149
4150 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
4151 to match 16 byte real/complex type generated by Flang compiler.
4152
8f5c6526
TV
41532020-09-03 Tom de Vries <tdevries@suse.de>
4154
4155 PR breakpoint/26546
4156 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
4157 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
4158
c5065df0
SM
41592020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
4160
4161 * maint.c (index_digits): New function.
4162 (struct maint_print_section_data): Remove.
4163 (print_bfd_section_info): Remove print_data parameter, add arg
4164 and index_digits.
4165 (print_objfile_section_info): Likewise.
4166 (print_bfd_section_info_maybe_relocated): Likewise (plus
4167 objfile).
4168 (maintenance_info_sections): Adjust calls.
4169
02c6f3f1
TT
41702020-09-02 Tom Tromey <tromey@adacore.com>
4171
4172 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
4173 for null pointers.
4174 (ada_varobj_adjust_for_child_access): Special-case null pointers.
4175
ef5e5b0b
SM
41762020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
4177
4178 * bcache.h (struct bcache) <insert>: Change type of `added` to
4179 pointer to bool.
4180 * bcache.c (bcache::insert): Likewise.
4181 * gdbtypes.c (check_types_worklist): Adjust.
4182 * psymtab.c (add_psymbol_to_bcache): Adjust.
4183
973695d6
KB
41842020-08-31 Kevin Buettner <kevinb@redhat.com>
4185
4186 * corelow.c (unordered_set): Include.
4187 (class core_target): Add field 'm_core_unavailable_mappings'.
4188 (core_target::build_file_mappings): Print only one warning
4189 per inaccessible file. Add unavailable/broken mappings
4190 to m_core_unavailable_mappings.
4191 (core_target::xfer_partial): Call...
4192 (core_target::xfer_memory_via_mappings): New method.
4193
264fc0e2
SM
41942020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4195
4196 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
4197 type to bool.
4198
2de01bdb
SM
41992020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4200
4201 * dwarf2/read.c (struct field_info): Fix indentation.
4202
f3bd50f1
SM
42032020-08-31 Simon Marchi <simon.marchi@efficios.com>
4204
4205 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
4206 ordering in comment.
4207 * frame.c (frame_id_eq): Fix indentation.
4208
22b9b4b0
SL
42092020-08-31 Scott Linder <scott@scottlinder.com>
4210 Simon Marchi <simon.marchi@efficios.com>
4211
4212 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
4213 inline frame ids in outer frame.
4214
84154d16
SM
42152020-08-31 Simon Marchi <simon.marchi@efficios.com>
4216
4217 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
4218 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
4219 (outer_frame_id): Use FID_STACK_OUTER instead of
4220 FID_STACK_INVALID.
4221 (frame_id_p): Don't check for outer_frame_id.
4222
8efaf6b3
SM
42232020-08-31 Simon Marchi <simon.marchi@efficios.com>
4224
4225 * frame-unwind.c (frame_unwind_got_optimized): Don't set
4226 regnum/frame in value. Call allocate_value_lazy.
4227 * frame.c (frame_unwind_register_value): Use
4228 val_print_not_saved.
4229
fe1fe7ea
SM
42302020-08-31 Simon Marchi <simon.marchi@efficios.com>
4231
4232 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
4233
f7c7700d
PA
42342020-08-29 Pedro Alves <pedro@palves.net>
4235
4236 * progspace.c (print_program_space): Use all_inferiors. Switch to
4237 the inferior before calling target_pid_to_str.
4238
e0814aae
TT
42392020-08-28 Tom Tromey <tom@tromey.com>
4240
4241 * xcoffread.c (xcoff_end_psymtab): Update comment.
4242 * dbxread.c (dbx_end_psymtab): Update comment.
4243
626d2320
TV
42442020-08-28 Tom de Vries <tdevries@suse.de>
4245
4246 PR breakpoint/26544
4247 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
4248 event_location.
4249 (create_breakpoint): Same.
4250 (base_breakpoint_decode_location): Same.
4251 (bkpt_create_sals_from_location): Same.
4252 (bkpt_decode_location): Same.
4253 (bkpt_probe_create_sals_from_location): Same.
4254 (bkpt_probe_decode_location): Same.
4255 (tracepoint_create_sals_from_location): Same.
4256 (tracepoint_decode_location): Same.
4257 (tracepoint_probe_decode_location): Same.
4258 (strace_marker_create_sals_from_location): Same.
4259 (strace_marker_decode_location): Same.
4260 (create_sals_from_location_default): Same.
4261 (decode_location_default): Same.
4262 * breakpoint.h (struct breakpoint_ops): Same.
4263 (create_breakpoint): Same.
4264 * linespec.h (decode_line_full): Same.
4265 * linespec.c (decode_line_full): Same. Throw error if
4266 result.size () == 0.
4267
df631783
PA
42682020-08-27 Pedro Alves <pedro@palves.net>
4269
4270 PR gdb/26524
4271 * breakpoint.c (until_break_fsm) <location_breakpoint,
4272 caller_breakpoint>: Delete fields.
4273 <breakpoints>: New field.
4274 <until_break_fsm>: Adjust to save a breakpoint vector instead of
4275 two individual breakpoints.
4276 (until_break_fsm::should_stop): Loop over breakpoints in the
4277 breakpoint vector.
4278 (until_break_fsm::clean_up): Adjust to clear the breakpoints
4279 vector.
4280 (until_break_command): Handle location expanding into multiple
4281 sals.
4282
b2b38aa4
PA
42832020-08-27 Pedro Alves <pedro@palves.net>
4284
4285 PR gdb/26523
4286 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
4287 bp_until breakpoints user-specified locations. Update intro
4288 comment.
4289
b886559f
SM
42902020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
4291
4292 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
4293 gdb_bfd_sections): New.
4294 * maint.c (print_bfd_section_info): Change param type to
4295 maint_print_section_data.
4296 (print_objfile_section_info): Likewise.
4297 (print_bfd_section_info_maybe_relocated): Likewise.
4298 (maintenance_info_sections): Use gdb_bfd_sections.
4299
4c6e63bf
SV
43002020-08-25 Shahab Vahedi <shahab@synopsys.com>
4301
4302 * MAINTAINERS: Add ARC target and maintainer.
4303
8d7f0635
AK
43042020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
4305
4306 * configure.tgt: ARC support for GNU/Linux.
4307 * Makefile.in (ALL_TARGET_OBJS): Likewise.
4308 * arc-linux-tdep.c: New file.
4309 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
4310 * arc-tdep.c (arc_write_pc): Use it.
4311
fdd8731b
SV
43122020-08-25 Shahab Vahedi <shahab@synopsys.com>
4313
4314 * arc-tdep.c (arc_check_for_hardware_loop): New.
4315 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
4316
22459524
SV
43172020-08-25 Shahab Vahedi <shahab@synopsys.com>
4318
4319 * arc-tdep.h: Include "gdbarch.h".
4320
995d3a19
SV
43212020-08-25 Shahab Vahedi <shahab@synopsys.com>
4322
4323 * arch/arc.h
4324 (arc_gdbarch_features): New class to stir the selection of target XML.
4325 (arc_create_target_description): Use FEATURES to choose XML target.
4326 (arc_lookup_target_description): Use arc_create_target_description
4327 to create _new_ target descriptions or return the already created
4328 ones if the FEATURES is the same.
4329 * arch/arc.c: Implementation of prototypes described above.
4330 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
4331 (arc_gdbarch_features_init): Initialize the FEATURES struct.
4332 * arc-tdep.c (*_feature_name): Make feature names consistent.
4333 (arc_register_feature): A new struct to hold information about
4334 registers of a particular target/feature.
4335 (arc_check_tdesc_feature): Check if XML provides registers in
4336 compliance with ARC_REGISTER_FEATURE structs.
4337 (arc_update_acc_reg_names): Add aliases for r58 and r59.
4338 (determine_*_reg_feature_set): Which feature name to look for.
4339 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
4340 (mach_type_to_arc_isa): Convert from a set of binutils machine types
4341 to expected ISA enums to be used in arc_gdbarch_features structs.
4342 * features/Makefile (FEATURE_XMLFILES): Add new files.
4343 * gdb/features/arc/v1-aux.c: New file.
4344 * gdb/features/arc/v1-aux.xml: Likewise.
4345 * gdb/features/arc/v1-core.c: Likewise.
4346 * gdb/features/arc/v1-core.xml: Likewise.
4347 * gdb/features/arc/v2-aux.c: Likewise.
4348 * gdb/features/arc/v2-aux.xml: Likewise.
4349 * gdb/features/arc/v2-core.c: Likewise.
4350 * gdb/features/arc/v2-core.xml: Likewise.
4351 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
4352
3945d2d7
GM
43532020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
4354 Andrew Burgess <andrew.burgess@embecosm.com>
4355
4356 PR m2/26372
fc5d6901 4357 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
4358 an assert. Remove single element array indexing pattern as the
4359 MULTI_SUBSCRIPT support will handle this case too.
4360
2677f2d3
SM
43612020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
4362
4363 * value.h (valprint_check_validity): Move declaration from
4364 here...
4365 * valprint.h (valprint_check_validity): ... to here.
4366
c426fddb
SM
43672020-08-24 Simon Marchi <simon.marchi@efficios.com>
4368
4369 * debug.h: New file.
4370 * debug.c (debug_prefixed_vprintf): New function.
4371 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
4372 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
4373
1eb8556f
SM
43742020-08-24 Simon Marchi <simon.marchi@efficios.com>
4375
4376 * infrun.h (infrun_debug_printf_1): New function declaration.
4377 (infrun_debug_printf): New macro.
4378 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
4379 throughout.
4380 (infrun_debug_printf): New function.
4381 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
4382 (handle_jit_event): Likewise.
4383
b8fff44e
MW
43842020-08-21 Mark Wielaard <mark@klomp.org>
4385
4386 * ada-lex.l: Extend register warnings diagnostics comment for g++.
4387
d19c3068
SM
43882020-08-22 Simon Marchi <simon.marchi@efficios.com>
4389
4390 * frame.c (enum class frame_id_status): New.
4391 (struct frame_info) <this_id::p>: Change type to frame_id_status.
4392 (fprintf_frame): Update.
4393 (compute_frame_id): Set frame id status to "computing" on entry.
4394 Set it back to "not_computed" on failure and to "computed" on
4395 success.
4396 (get_frame_id): Assert the frame id is not being computed.
4397 (create_sentinel_frame): Use frame_id_status::COMPUTED.
4398 (create_new_frame): Likewise.
4399 (frame_cleanup_after_sniffer): Update assert.
4400
b70e516e
SM
44012020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4402
4403 * regcache.c (pid_ptid_regcache_map): New type.
4404 (target_ptid_regcache_map): Remove.
4405 (target_pid_ptid_regcache_map): New type.
4406 (regcaches): Change type to target_pid_ptid_regcache_map.
4407 (get_thread_arch_aspace_regcache): Update.
4408 (regcache_thread_ptid_changed): Update, handle pid-like ptid
4409 case.
4410 (regcaches_size): Update.
4411 (regcache_count): Update.
4412 (registers_changed_ptid_target_pid_test): New.
4413 (_initialize_regcache): Register new test.
4414
cdd9148a
SM
44152020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4416
4417 * regcache.c (regcache_count): New.
4418 (struct regcache_test_data): New.
4419 (regcache_test_data_up): New.
4420 (populate_regcaches_for_test): New.
4421 (regcaches_test): Remove.
4422 (get_thread_arch_aspace_regcache_test): New.
4423 (registers_changed_ptid_all_test): New.
4424 (registers_changed_ptid_target_test): New.
4425 (registers_changed_ptid_target_ptid_test): New.
4426 (regcache_thread_ptid_changed): Remove regcache_count lambda.
4427 (_initialize_regcache): Register new tests.
4428
dd125343
SM
44292020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4430
4431 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
4432 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
4433 gdbarch and aspace parameter. Use current inferior's aspace.
4434 Validate regcache's arch value.
4435 (regcaches_test): Update.
4436
3ee93972
SM
44372020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4438
4439 * regcache.c (regcaches_test): Call registers_changed.
4440
33bf4c5c
TBA
44412020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4442
4443 * infrun.c (process_event_stop_test): Fix typo "breapoint".
4444
c2fd7fae
AKS
44452020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4446
4447 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
4448 to find the end of prologue for flang compiled binaries.
4449 * arm-tdep.c (arm_skip_prologue): Likewise.
4450 * i386-tdep.c (i386_skip_prologue): Likewise.
4451 * producer.c (producer_is_llvm): New function.
4452 (producer_parsing_tests): Added new tests for clang/flang.
4453 * producer.h (producer_is_llvm): New declaration.
4454
9327494e
SM
44552020-08-18 Simon Marchi <simon.marchi@efficios.com>
4456
4457 * linux-nat.c (linux_nat_debug_printf): New function.
4458 (linux_nat_debug_printf_1): New macro. Use throughout the file.
4459
d138725a
AM
44602020-08-18 Aaron Merey <amerey@redhat.com>
4461
4462 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
4463 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
4464 (CLIBS): Add DEBUGINFOD_LIBS.
4465
f9b11e6b
ST
44662020-08-17 Sergei Trofimovich <siarheit@google.com>
4467
4468 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
4469 'gdbarch_num_regs'.
4470
3ae7ab99
TT
44712020-08-17 Tom Tromey <tromey@adacore.com>
4472
4473 * ada-varobj.c (ada_varobj_decode_var): Handle case where
4474 ada_get_decoded_value returns NULL.
4475
b017825f
TT
44762020-08-17 Tom Tromey <tromey@adacore.com>
4477
4478 * python/py-inferior.c (infpy_search_memory): Use
4479 gdb_py_object_from_ulongest.
4480 * python/py-infevents.c (create_inferior_call_event_object)
4481 (create_memory_changed_event_object): Use
4482 gdb_py_object_from_ulongest.
4483 * python/py-linetable.c (ltpy_entry_get_pc): Use
4484 gdb_py_object_from_ulongest.
4485
7635cf79
SM
44862020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
4487
4488 * loc.c (class symbol_needs_eval_context): Fix indentation.
4489
f54be24b
SM
44902020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
4491
4492 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
4493 bool.
4494
53d5a2a5
TV
44952020-08-17 Tom de Vries <tdevries@suse.de>
4496
4497 PR gdb/26393
4498 * gdbtypes.c (dump_dynamic_prop): New function.
4499 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
4500
547ce8f0
TV
45012020-08-15 Tom de Vries <tdevries@suse.de>
4502
4503 PR backtrace/26390
4504 * stack.c (print_frame_args): Temporarily set the selected
4505 frame to FRAME while printing the frame's arguments.
4506
6ea815e7
PFC
45072020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4508
4509 PR breakpoints/26385
4510 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
4511 Always clear watchpoint with PTRACE_SET_DEBUGREG.
4512
6e562fa3
PFC
45132020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4514
4515 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
4516 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
4517 and >= to check return value instead of == -1 and != -1.
4518
d369b608
SM
45192020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
4520
4521 * utils.h (class gdb_argv) <as_array_view>: New method.
4522 * utils.c (gdb_argv_as_array_view_test): New.
4523 (_initialize_utils): Register selftest.
4524 * maint.c (maintenance_selftest): Use the new method.
4525
b31488a3
KR
45262020-08-13 Kamil Rytarowski <n54@gmx.com>
4527
4528 * target.h (supports_dumpcore, dumpcore): New
4529 function declarations.
4530 * target.c (supports_dumpcore, dumpcore): New
4531 functions.
4532 * target-delegates.c: Rebuild.
4533 * gcore.c (gcore_command): Use target_supports_dumpcore ()
4534 and target_dumpcore ().
4535
002a3166
AM
45362020-08-13 Aaron Merey <amerey@redhat.com>
4537
4538 * debuginfod-support.c: Replace global variables with user_data.
4539
ece5bc8a
SM
45402020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
4541
4542 * maint.c (maintenance_selftest): Split args and pass array_view
4543 to run_tests.
4544
6d8a0a5e
LM
45452020-08-12 Luis Machado <luis.machado@linaro.org>
4546
4547 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
4548 type's length.
4549 Use %s and pulongest to print the length.
4550
7cf663a9
PA
45512020-08-12 Pedro Alves <palves@redhat.com>
4552
4553 * NEWS: Move "Multi-target debugging support" item to the
4554 "Changes since GDB 9" section.
4555
27c7b875
PA
45562020-08-12 Pedro Alves <palves@redhat.com>
4557
4558 PR gdb/26336
4559 * progspace.c (program_space::remove_objfile): Invalidate the
4560 frame cache.
4561
1796a2a1
TV
45622020-08-11 Tom de Vries <tdevries@suse.de>
4563
4564 * MAINTAINERS: Mark ms1 as deleted.
4565
f8e3fe0d
LM
45662020-08-10 Luis Machado <luis.machado@linaro.org>
4567
4568 PR gdb/26310
4569
4570 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
4571 act accordingly.
4572 (aarch64_analyze_prologue_test): Add more unit tests to exercise
4573 movz/str/stur/stp skipping behavior.
4574
cc308722
LM
45752020-08-10 Luis Machado <luis.machado@linaro.org>
4576
4577 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
4578 struct user_sve_header instead of struct sve_context.
4579
041d9819
SM
45802020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
4581
4582 * read.h (dwarf2_fetch_die_loc_sect_off,
4583 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
4584 `void *` parameter with function_view.
4585 * read.c (dwarf2_fetch_die_loc_sect_off,
4586 dwarf2_fetch_die_loc_cu_off): Likewise.
4587 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
4588 (per_cu_dwarf_call): Adjust.
4589 (get_frame_address_in_block_wrapper): Remove.
4590 (indirect_synthetic_pointer): Adjust.
4591 (get_ax_pc): Remove.
4592 (dwarf2_compile_expr_to_ax): Adjust.
4593
38f8aa06
TV
45942020-08-08 Tom de Vries <tdevries@suse.de>
4595
4596 PR build/26344
4597 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
4598 constructor.
4599 * regcache.c (get_thread_arch_aspace_regcache): Same.
4600
a52b3ae2
TT
46012020-08-07 Tom Tromey <tromey@adacore.com>
4602
4603 * ravenscar-thread.c
4604 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
4605 New method.
4606 (ravenscar_thread_target::wait): Check
4607 runtime_initialized.
4608 (ravenscar_thread_target::prepare_to_store)
4609 (ravenscar_thread_target::stopped_by_sw_breakpoint)
4610 (ravenscar_thread_target::stopped_by_hw_breakpoint)
4611 (ravenscar_thread_target::stopped_by_watchpoint)
4612 (ravenscar_thread_target::stopped_data_address)
4613 (ravenscar_thread_target::core_of_thread): Use
4614 scoped_restore_current_thread and
4615 set_base_thread_from_ravenscar_task.
4616
0e29517d
TT
46172020-08-07 Tom Tromey <tromey@adacore.com>
4618
4619 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
4620
592f9bd7
TT
46212020-08-07 Tom Tromey <tromey@adacore.com>
4622
4623 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
4624 update_inferior_ptid before update_thread_list.
4625 (temporarily_change_regcache_ptid): New class.
4626 (ravenscar_thread_target::fetch_registers)
4627 (ravenscar_thread_target::store_registers)
4628 (ravenscar_thread_target::prepare_to_store): Use base thread when
4629 forwarding operation.
4630
39e2018a
TT
46312020-08-07 Tom Tromey <tromey@adacore.com>
4632
4633 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
4634 "is_pid" case.
4635
2080266b
TT
46362020-08-07 Tom Tromey <tromey@adacore.com>
4637
4638 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
4639 New methods.
4640 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
4641 first.
4642 (ravenscar_thread_target::add_thread): Rename from
4643 ravenscar_add_thread.
4644 (ravenscar_thread_target::update_thread_list): Use a lambda.
4645 (ravenscar_thread_target::xfer_partial): New method.
4646
78c02f21
TT
46472020-08-07 Tom Tromey <tromey@adacore.com>
4648
4649 * ada-lang.h (ada_task_list_iterator_ftype): Now a
4650 gdb::function_view.
4651 (iterate_over_live_ada_tasks): Change type of argument.
4652 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
4653 of argument.
4654
d5d833af
TT
46552020-08-07 Tom Tromey <tromey@adacore.com>
4656
4657 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
4658 Remove.
4659 (ravenscar_thread_target::extra_thread_info): Remove.
4660 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
4661 defer to target beneath for non-Ravenscar threads.
4662
a8ac85bb
TT
46632020-08-07 Tom Tromey <tromey@adacore.com>
4664
4665 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
4666 get_base_thread_from_ravenscar_task>: Now methods.
4667 <m_cpu_map>: New member.
4668 (ravenscar_thread_target::get_thread_base_cpu): Rename from
4669 ravenscar_get_thread_base_cpu. Check m_cpu_map.
4670 (ravenscar_thread_target::task_is_currently_active): Update.
4671 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
4672 Now a method.
4673 (ravenscar_thread_target::add_active_thread): Put initial thread
4674 into the m_cpu_map.
4675
550ab58d
TT
46762020-08-07 Tom Tromey <tromey@adacore.com>
4677
4678 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
4679 event_ptid.
4680
e9546579
TT
46812020-08-07 Tom Tromey <tromey@adacore.com>
4682
4683 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
4684 runtime_initialized.
4685
3d4470e5
TT
46862020-08-07 Tom Tromey <tromey@adacore.com>
4687
4688 * ravenscar-thread.c (ravenscar_thread_target): Don't call
4689 add_active_thread.
4690 (ravenscar_thread_target::add_active_thread): Now public.
4691 (ravenscar_inferior_created): Call add_active_thread after pushing
4692 the target.
4693
888bdb2b
SM
46942020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
4695
4696 * regcache.c (ptid_regcache_map): New type.
4697 (target_ptid_regcache_map): New type.
4698 (regcaches): Change type to target_ptid_regcache_map.
4699 (get_thread_arch_aspace_regcache): Update to regcaches' new
4700 type.
4701 (regcache_thread_ptid_changed): Likewise.
4702 (registers_changed_ptid): Likewise.
4703 (regcaches_size): Likewise.
4704 (regcaches_test): Update.
4705 (regcache_thread_ptid_changed): Update.
4706 * regcache.h (regcache_up): New type.
4707 * gdbsupport/ptid.h (hash_ptid): New struct.
4708
b161a60d
SM
47092020-08-07 Simon Marchi <simon.marchi@efficios.com>
4710
4711 * observable.h (thread_ptid_changed): Add parameter
4712 `process_stratum_target *`.
4713 * infrun.c (infrun_thread_ptid_changed): Add parameter
4714 `process_stratum_target *` and use it.
4715 (selftests): New namespace.
4716 (infrun_thread_ptid_changed): New function.
4717 (_initialize_infrun): Register selftest.
4718 * regcache.c (regcache_thread_ptid_changed): Add parameter
4719 `process_stratum_target *` and use it.
4720 (regcache_thread_ptid_changed): New function.
4721 (_initialize_regcache): Register selftest.
4722 * thread.c (thread_change_ptid): Pass target to
4723 thread_ptid_changed observable.
4724
d2854d8d
CT
47252020-08-06 Caroline Tice <cmtice@google.com>
4726
fe4c3d43
SM
4727 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
4728 (struct dwp_sections): Update field comments. Add loclists and
4729 rnglists fields.
4730 (struct virtual_v2_dwo_sections): Rename struct to
4731 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
4732 size & offset fields for loclists and rnglists.
4733 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
4734 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
4735 skipping dummy type units.
4736 (create_dwp_hash_table): Update the large comment above the function to
4737 discuss Version 5 DWP files as well, with references. Update all the
4738 version checks in the function to check for version 5 as well. Add new
4739 section at the end to create dwp hash table for version 5.
4740 (create_dwp_v2_section): Rename function to
4741 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
4742 Add V5 to error message text.
4743 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
4744 into calls to create_dwp_v2_or_v5_section.
4745 (create_dwo_unit_in_dwp_v5): New function.
4746 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
4747 check for version2; add else clause to handle version 5.
4748 (open_and_init_dwo_file): Add code to check dwarf version & only call
4749 create_debug_types_hash_table (with sections.types) if version is not 5;
4750 else call create_debug_type_hash_table, with sections.info.
4751 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
4752 version 5.
4753 (dwarf2_locate_v5_dwp_sections): New function.
4754 (open_and_init_dwp_file): Add else-if clause for version 5 to call
4755 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 4756
159ed7d9
SM
47572020-08-06 Simon Marchi <simon.marchi@efficios.com>
4758
4759 * regcache.h (class regcache): Remove friend
4760 registers_changed_ptid.
4761 <regcache_thread_ptid_changed>: Remove.
4762 <regcaches>: Remove.
4763 * regcache.c (regcache::regcaches): Rename to...
4764 (regcaches): ... this. Make static.
4765 (get_thread_arch_aspace_regcache): Update.
4766 (regcache::regcache_thread_ptid_changed): Rename to...
4767 (regcache_thread_ptid_changed): ... this. Update.
4768 (class regcache_access): Remove.
4769 (regcaches_test): Update.
4770 (_initialize_regcache): Update.
4771 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
4772 <forward_list>.
4773
174981ae
SM
47742020-08-06 Simon Marchi <simon.marchi@efficios.com>
4775
4776 * regcache.h (class regcache) <current_regcache>: Rename to...
4777 <regcaches>: ... this. Move doc here.
4778 * regcache.c (regcache::current_regcache) Rename to...
4779 (regcache::regcaches): ... this. Move doc to header.
4780 (get_thread_arch_aspace_regcache): Update.
4781 (regcache::regcache_thread_ptid_changed): Update.
4782 (registers_changed_ptid): Update.
4783 (class regcache_access) <current_regcache_size>: Rename to...
4784 <regcaches_size>: ... this.
4785 (current_regcache_test): Rename to...
4786 (regcaches_test): ... this.
4787 (_initialize_regcache): Update.
4788
ed908db6
VC
47892020-08-06 Victor Collod <vcollod@nvidia.com>
4790
4791 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
4792
b5582ab7
KB
47932020-08-05 Kevin Buettner <kevinb@redhat.com>
4794
4795 * corelow.c (core_target::build_file_mappings): Don't output
4796 null pathname in warning.
4797
ea946b86
SM
47982020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
4799
4800 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
4801 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
4802 gdb.dwarf2/dw2-single-line-discriminators.exp,
4803 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
4804
57d02173
TT
48052020-08-05 Tom Tromey <tromey@adacore.com>
4806
4807 PR rust/26197:
4808 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
4809 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
4810 Fix off-by-one and type size errors in ordinary case.
4811
5555c86d
TV
48122020-08-05 Tom de Vries <tdevries@suse.de>
4813
4814 * gdbtypes.c (type_not_allocated, type_not_associated): Use
4815 "prop->const_val () == 0" instead of "prop->const_val () != 0".
4816
97916bfe
SM
48172020-08-04 Simon Marchi <simon.marchi@efficios.com>
4818
4819 * frame.h (frame_id_p): Return bool.
4820 (frame_id_artificial_p): Return bool.
4821 (frame_id_eq): Return bool.
4822 (has_stack_frames): Return bool.
4823 (get_selected_frame): Fix typo in comment.
4824 (get_frame_pc_if_available): Return bool.
4825 (get_frame_address_in_block_if_available): Return bool.
4826 (get_frame_func_if_available): Return bool.
4827 (read_frame_register_unsigned): Return bool.
4828 (get_frame_register_bytes): Return bool.
4829 (safe_frame_unwind_memory): Return bool.
4830 (deprecated_frame_register_read): Return bool.
4831 (frame_unwinder_is): Return bool.
4832 * frame.c (struct frame_info) <prev_arch::p>: Change type to
4833 bool.
4834 <this_id::p>: Likewise.
4835 <prev_p>: Likewise.
4836 (frame_stash_add): Return bool.
4837 (get_frame_id): Use bool.
4838 (frame_id_build_special) Use bool.
4839 (frame_id_build_unavailable_stack): Use bool.
4840 (frame_id_build): Use bool.
4841 (frame_id_p): Return bool, use true/false instead of 1/0.
4842 (frame_id_artificial_p): Likewise.
4843 (frame_id_eq): Likewise.
4844 (frame_id_inner): Likewise.
4845 (get_frame_func_if_available): Likewise.
4846 (read_frame_register_unsigned): Likewise.
4847 (deprecated_frame_register_read): Likewise.
4848 (get_frame_register_bytes): Likewise.
4849 (has_stack_frames): Likewise.
4850 (inside_main_func): Likewise.
4851 (inside_entry_func): Likewise.
4852 (get_frame_pc_if_available): Likewise.
4853 (get_frame_address_in_block_if_available): Likewise.
4854 (frame_unwinder_is): Likewise.
4855 (safe_frame_unwind_memory): Likewise.
4856 (frame_unwind_arch): Likewise.
4857
fedfee88
SM
48582020-08-04 Simon Marchi <simon.marchi@efficios.com>
4859
4860 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
4861 type to cached_copy_status.
4862 (fprintf_frame): Adjust.
4863 (get_frame_func_if_available): Adjust.
4864 (frame_cleanup_after_sniffer): Adjust.
4865
6cfa9b59
MW
48662020-08-04 Mark Wielaard <mark@klomp.org>
4867
4868 * MAINTAINERS (Write After Approval): Update email address.
4869
66d6346b
SM
48702020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4871
4872 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
4873 dynamic_prop::const_val.
4874
8a6d5e35
SM
48752020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4876
4877 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
4878 dynamic_prop::kind.
4879
51d6067d
SM
48802020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4881
4882 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
4883
b26e2ae7
JM
48842020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
4885
4886 * configure.tgt: Set gdb_sim for bpf-*-* targets.
4887
39791af2
JM
48882020-08-04 Weimin Pan <weimin.pan@oracle.com>
4889 Jose E. Marchesi <jose.marchesi@oracle.com>
4890
4891 * configure.tgt: Add entry for bpf-*-*.
4892 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
4893 (ALLDEPFILES): Add bpf-tdep.c.
4894 * bpf-tdep.c: New file.
4895 * MAINTAINERS: Add bpf target and maintainer.
4896 * NEWS: Mention the support for the new target.
4897
521894aa
TV
48982020-08-04 Tom de Vries <tdevries@suse.de>
4899
4900 PR symtab/23270
4901 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
4902 Error.
4903
5d6356e9
JB
49042020-08-03 John Baldwin <jhb@FreeBSD.org>
4905
4906 * syscalls/freebsd.xml: Regenerate.
4907
0cf82b81
JB
49082020-08-03 John Baldwin <jhb@FreeBSD.org>
4909
4910 * syscalls/update-freebsd.sh: Fix usage and year range.
4911
8f34b746
TV
49122020-08-03 Tom de Vries <tdevries@suse.de>
4913
4914 PR symtab/26333
4915 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
4916 DW_LNE_lo_user/DW_LNE_hi_user range.
4917
5e500d33
SM
49182020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
4919
4920 PR ada/26318
4921 * ada-lang.c (ada_modulus): Return 0 if property is not of const
4922 kind.
4923
78319c15
TBA
49242020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4925
4926 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
4927
4c55e970
TBA
49282020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4929
4930 * breakpoint.c (set_breakpoint_condition): Update the condition
4931 expressions after checking that the input condition string parses
4932 successfully and does not contain junk at the end.
4933
1e620590
TBA
49342020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4935
4936 * breakpoint.c (set_breakpoint_condition): Update the
4937 condition string after parsing the new condition successfully.
4938
c8693053
RO
49392020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4940
4941 * proc-api.c (_STRUCTURED_PROC): Don't define.
4942 * proc-events.c: Likewise.
4943 * proc-flags.c: Likewise.
4944 * proc-why.c: Likewise.
4945 * procfs.c: Likewise.
4946
4947 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
4948 * configure, config.in: Regenerate.
4949
5a99adb8
TV
49502020-07-30 Tom de Vries <tdevries@suse.de>
4951
4952 PR build/26320
4953 * ui-style.h (struct ui_file_style::color): Wrap m_value and
4954 m_red/m_green/m_blue in a union.
4955
8ba83e91
TV
49562020-07-29 Tom de Vries <tdevries@suse.de>
4957
4958 PR tdep/26280
4959 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
4960
f75a0693
AB
49612020-07-28 Tom Tromey <tromey@adacore.com>
4962
4963 PR symtab/26270:
4964 * symtab.h (find_pc_partial_function_sym): Declare.
4965 * cli/cli-cmds.c (disassemble_command): Use
4966 find_pc_partial_function_sym. Check asm_demangle.
4967 * blockframe.c (cache_pc_function_sym): New global.
4968 (cache_pc_function_name): Remove.
4969 (clear_pc_function_cache): Update.
4970 (find_pc_partial_function_sym): New function, from
4971 find_pc_partial_function.
4972 (find_pc_partial_function): Rewrite using
4973 find_pc_partial_function_sym.
4974
16f3242c
TT
49752020-07-28 Tom Tromey <tromey@adacore.com>
4976
4977 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
4978 help. Add usage.
4979
4888741a
TT
49802020-07-28 Tom Tromey <tromey@adacore.com>
4981
4982 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
4983 <DW_OP_GNU_variable_value>: Cast to address type.
4984
4d46f402
KR
49852020-07-28 Kamil Rytarowski <n54@gmx.com>
4986
4987 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
4988 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
4989 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
4990 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
4991 (nbsd_get_siginfo_type): New.
4992 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
4993 (_initialize_nbsd_tdep): New.
4994
d70f978b
L
49952020-07-28 H.J. Lu <hongjiu.lu@intel.com>
4996
4997 PR binutils/26301
4998 * configure: Regenerated.
4999
377170fa
L
50002020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5001
5002 PR binutils/26301
5003 * configure: Regenerated.
5004
43d5901d
AB
50052020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5006
5007 * python/py-frame.c: Remove 'user-regs.h' include.
5008 (frapy_read_register): Rewrite to make use of
5009 gdbpy_parse_register_id.
5010 * python/py-registers.c (gdbpy_parse_register_id): New function,
5011 moved here from python/py-unwind.c. Updated the return type, and
5012 also accepts register descriptor objects.
5013 * python/py-unwind.c: Remove 'user-regs.h' include.
5014 (pyuw_parse_register_id): Moved to python/py-registers.c.
5015 (unwind_infopy_add_saved_register): Update to use
5016 gdbpy_parse_register_id.
5017 (pending_framepy_read_register): Likewise.
5018 * python/python-internal.h (gdbpy_parse_register_id): Declare.
5019
14fa8fb3
AB
50202020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5021
5022 * python/py-registers.c: Add 'user-regs.h' include.
5023 (register_descriptor_iter_find): New function.
5024 (register_descriptor_iterator_object_methods): New static global
5025 methods array.
5026 (register_descriptor_iterator_object_type): Add pointer to methods
5027 array.
5028
ddce1758
JB
50292020-07-27 John Baldwin <jhb@FreeBSD.org>
5030
5031 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
5032 for all architectures on FreeBSD 11.3 and later.
5033
a4089f52
TT
50342020-07-27 Tom Tromey <tromey@adacore.com>
5035
5036 * gcore.h (load_corefile): Don't declare.
5037
95420d30
TV
50382020-07-27 Tom de Vries <tdevries@suse.de>
5039
5040 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
5041 * config.in: Regenerate.
5042 * configure: Regenerate.
5043
05a6b8c2
EZ
50442020-07-26 Eli Zaretskii <eliz@gnu.org>
5045
5046 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
5047 ws2tcpip.h. When checking whether socklen_t type is defined, use
5048 ws2tcpip.h if it is available and sys/socket.h isn't.
5049 * configure: Regenerate.
5050 * config.in: Regenerate.
5051
e79eb02f
AB
50522020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
5053
5054 PR fortran/23051
5055 PR fortran/26139
5056 * valops.c (value_ind): Pass address to
5057 readjust_indirect_value_type.
5058 * value.c (readjust_indirect_value_type): Make parameter
5059 non-const, and add extra address parameter. Resolve original type
5060 before using it.
5061 * value.h (readjust_indirect_value_type): Update function
5062 signature and comment.
5063
876518dd
TV
50642020-07-25 Tom de Vries <tdevries@suse.de>
5065
5066 PR symtab/26243
5067 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
5068 entries.
5069
f6720b1c
AM
50702020-07-24 Aaron Merey <amerey@redhat.com>
5071
5072 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
5073 * configure: Rebuild.
5074
513487e1
KB
50752020-07-23 Kevin Buettner <kevinb@redhat.com>
5076
5077 PR corefiles/26294
5078 * corelow.c (_initialize_corelow): Add period to help text
5079 for "maintenance print core-file-backed-mappings".
5080
e7bc9db8
PA
50812020-07-23 Pedro Alves <pedro@palves.net>
5082
5083 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
5084 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
5085 meanwhile.
5086 * frame.c (frame_cache_generation, get_frame_cache_generation):
5087 New.
5088 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
5089 (get_prev_frame_if_no_cycle): On exception, don't touch
5090 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
5091 * frame.h (get_frame_cache_generation): Declare.
5092
90fcc466
TV
50932020-07-23 Tom de Vries <tdevries@suse.de>
5094
5095 PR tui/26282
5096 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
5097 New default constructor.
5098
78344df7
AB
50992020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
5100
5101 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
5102 exclude non-statement entries.
5103
b089853a
KB
51042020-07-22 Kevin Buettner <kevinb@redhat.com>
5105
5106 * NEWS (New commands): Mention new command
5107 "maintenance print core-file-backed-mappings".
5108
09c2f5d4
KB
51092020-07-22 Kevin Buettner <kevinb@redhat.com>
5110
5111 * corelow.c (gdbcmd.h): Include.
5112 (core_target::info_proc_mappings): New method.
5113 (get_current_core_target): New function.
5114 (maintenance_print_core_file_backed_mappings): New function.
5115 (_initialize_corelow): Add core-file-backed-mappings to
5116 "maint print" commands.
5117
9c5ec5c2 51182020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 5119
9c5ec5c2
KB
5120 * linux-tdep.c (dump_note_entry_p): New function.
5121 (linux_dump_mapping_p_ftype): New typedef.
5122 (linux_find_memory_regions_full): Add new parameter,
5123 should_dump_mapping_p.
5124 (linux_find_memory_regions): Adjust call to
5125 linux_find_memory_regions_full.
5126 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
5127 call to linux_find_memory_regions_full.
5128
db082f59
KB
51292020-07-22 Kevin Buettner <kevinb@redhat.com>
5130
5131 * corelow.c (solist.h, unordered_map): Include.
5132 (class core_target): Add field m_core_file_mappings and
5133 method build_file_mappings.
5134 (core_target::core_target): Call build_file_mappings.
5135 (core_target::~core_target): Free memory associated with
5136 m_core_file_mappings.
5137 (core_target::build_file_mappings): New method.
5138 (core_target::xfer_partial): Use m_core_file_mappings
5139 for memory transfers.
5140 * linux-tdep.c (linux_read_core_file_mappings): New
5141 function.
5142 (linux_core_info_proc_mappings): Rewrite to use
5143 linux_read_core_file_mappings.
5144 (linux_init_abi): Register linux_read_core_file_mappings.
5145
7e183d27
KB
51462020-07-22 Kevin Buettner <kevinb@redhat.com>
5147
5148 * arch-utils.c (default_read_core_file_mappings): New function.
5149 * arch-utils.c (default_read_core_file_mappings): Declare.
5150 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
5151 * gdbarch.h, gdbarch.c: Regenerate.
5152
2735d421
KB
51532020-07-22 Kevin Buettner <kevinb@redhat.com>
5154
5155 PR corefiles/25631
5156 * corelow.c (core_target:xfer_partial): Revise
5157 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
5158 case after first checking the stratum beneath the core
5159 target.
5160 (has_all_memory): Return true.
5161 * target.c (raw_memory_xfer_partial): Revise comment
5162 regarding use of has_all_memory.
5163
e56cb451
KB
51642020-07-22 Kevin Buettner <kevinb@redhat.com>
5165
5166 * exec.h (section_table_xfer_memory): Revise declaration,
5167 replacing section name parameter with an optional callback
5168 predicate.
5169 * exec.c (section_table_xfer_memory): Likewise.
5170 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
5171 of section_table_xfer_memory.
5172
32fa152e
TT
51732020-07-22 Tom Tromey <tromey@adacore.com>
5174
5175 * mi/mi-cmd-stack.c (list_args_or_locals): Use
5176 lookup_symbol_search_name.
5177
a67a1c41
AB
51782020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5179
5180 * python/py-registers.c (gdbpy_register_object_data_init): Remove
5181 redundant local variable.
5182 (gdbpy_get_register_descriptor): Extract descriptor vector as a
5183 reference, not pointer, update code accordingly.
5184
a7b4ff4f
SM
51852020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5186 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5187
5188 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
5189 * jit.c (jit_breakpoint_re_set_internal): Use the
5190 `skip_jit_symbol_lookup` field.
5191
2340e834
SM
51922020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5193 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5194
5195 * jit.c (jit_read_descriptor): Define the descriptor address once,
5196 use twice.
5197 (jit_breakpoint_deleted): Move the declaration of the loop variable
5198 `iter` into the loop header.
5199 (jit_breakpoint_re_set_internal): Move the declaration of the local
5200 variable `objf_data` to the first point of definition.
5201 (jit_event_handler): Move the declaration of local variables
5202 `code_entry`, `entry_addr`, and `objf` to their first point of use.
5203 Rename `objf` to `jited`.
5204
c1072906
SM
52052020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5206
5207 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
5208 Remove.
5209 * jit.c (get_jiter_objfile_data): Update.
5210
c8474dc3
TBA
52112020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5212 Simon Marchi <simon.marchi@polymtl.ca>
5213
5214 * jit.c (struct jit_program_space_data): Remove.
5215 (jit_program_space_key): Remove.
5216 (jiter_objfile_data::~jiter_objfile_data): Remove program space
5217 stuff.
5218 (get_jit_program_space_data): Remove.
5219 (jit_breakpoint_deleted): Iterate on all of the program space's
5220 objfiles.
5221 (jit_inferior_init): Likewise.
5222 (jit_breakpoint_re_set_internal): Likewise. Also change return
5223 type to void.
5224 (jit_breakpoint_re_set): Pass current_program_space to
5225 jit_breakpoint_re_set_internal.
5226
77208eb7
SM
52272020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5228
5229 * jit.h (struct jiter_objfile_data) <cached_code_address,
5230 jit_breakpoint>: Move to here from ...
5231 * jit.c (jit_program_space_data): ... here.
5232 (jiter_objfile_data::~jiter_objfile_data): Update.
5233 (jit_breakpoint_deleted): Update.
5234 (jit_breakpoint_re_set_internal): Update.
5235
8c1c720f
SM
52362020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5237
5238 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
5239 checks.
5240 (jit_read_descriptor): Remove NULL check.
5241 (jit_event_handler): Add an assertion.
5242
0e74a041
SM
52432020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5244
5245 * jit.h (struct jit_objfile_data): Split into...
5246 (struct jiter_objfile_data): ... this ...
5247 (struct jited_objfile_data): ... and this.
5248 * objfiles.h (struct objfile) <jit_data>: Remove.
5249 <jiter_data, jited_data>: New fields.
5250 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
5251 (jiter_objfile_data::~jiter_objfile_data): ... this.
5252 (get_jit_objfile_data): Rename to ...
5253 (get_jiter_objfile_data): ... this.
5254 (add_objfile_entry): Update.
5255 (jit_read_descriptor): Use get_jiter_objfile_data.
5256 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
5257 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
5258 (jit_inferior_exit_hook): Use objfile's jited_data field.
5259
238b5c9f
SM
52602020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5261
5262 * jit.h: Forward-declare `struct minimal_symbol`.
5263 (struct jit_objfile_data): Migrate to here from jit.c; also add a
5264 constructor, destructor, and an objfile* field.
5265 * jit.c (jit_objfile_data): Remove.
5266 (struct jit_objfile_data): Migrate from here to jit.h.
5267 (jit_objfile_data::~jit_objfile_data): New destructor
5268 implementation with code moved from free_objfile_data.
5269 (free_objfile_data): Delete.
5270 (get_jit_objfile_data): Update to use the jit_data field of objfile.
5271 (jit_find_objf_with_entry_addr): Ditto.
5272 (jit_inferior_exit_hook): Ditto.
5273 (_initialize_jit): Remove the call to
5274 register_objfile_data_with_cleanup.
5275 * objfiles.h (struct objfile) <jit_data>: New field.
5276
fe053b9e
TBA
52772020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5278
5279 * jit.h: Forward-declare `struct objfile`.
5280 (jit_event_handler): Add a second parameter, the JITer objfile.
5281 * jit.c (jit_read_descriptor): Change the signature to take the
5282 JITer objfile as an argument instead of the jit_program_space_data.
5283 (jit_inferior_init): Update the call to jit_read_descriptor.
5284 (jit_event_handler): Use the new JITer objfile argument when calling
5285 jit_read_descriptor.
5286 * breakpoint.c (handle_jit_event): Update the call to
5287 jit_event_handler to pass the JITer objfile.
5288
4cec0c66
JB
52892020-07-21 John Baldwin <jhb@FreeBSD.org>
5290
5291 * gdbarch.c: Regenerate.
5292 * gdbarch.h: Regenerate.
5293 * gdbarch.sh (handle_segmentation_fault): Remove method.
5294 * infrun.c (handle_segmentation_fault): Remove.
5295 (print_signal_received_reason): Remove call to
5296 handle_segmentation_fault.
5297
0e42f66a
JB
52982020-07-21 John Baldwin <jhb@FreeBSD.org>
5299
5300 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
5301 Rename to sparc64_linux_report_signal_info and add siggnal
5302 argument.
5303 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
5304 instead of sparc64_linux_handle_segmentation_fault.
5305
77bdfeb2
JB
53062020-07-21 John Baldwin <jhb@FreeBSD.org>
5307
5308 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
5309 i386_linux_report_signal_info instead of
5310 i386_linux_handle_segmentation_fault.
5311 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
5312 to i386_linux_report_signal_info and add siggnal argument.
5313 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
5314 of i386_linux_handle_segmentation_fault.
5315 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
5316 to i386_linux_report_signal_info and add siggnal argument.
5317
ad97bfc5
JB
53182020-07-21 John Baldwin <jhb@FreeBSD.org>
5319
5320 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
5321 hook if present.
5322
272bb05c
JB
53232020-07-21 John Baldwin <jhb@FreeBSD.org>
5324
5325 * gdbarch.c: Regenerate.
5326 * gdbarch.h: Regenerate.
5327 * gdbarch.sh (report_signal_info): New method.
5328 * infrun.c (print_signal_received_reason): Invoke gdbarch
5329 report_signal_info hook if present.
5330
baf8791e
AB
53312020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
5332
5333 * python/py-registers.c : Add 'unordered_map' include.
5334 (gdbpy_new_reggroup): Renamed to...
5335 (gdbpy_get_reggroup): ...this. Update to only create register
5336 group descriptors when needed.
5337 (gdbpy_reggroup_iter_next): Update.
5338
f7306dac
AB
53392020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
5340
5341 * python/py-registers.c (gdbpy_register_object_data): New static
5342 global.
5343 (gdbpy_register_object_data_init): New function.
5344 (gdbpy_new_register_descriptor): Renamed to...
5345 (gdbpy_get_register_descriptor): ...this, and update to reuse
5346 existing register descriptors where possible.
5347 (gdbpy_register_descriptor_iter_next): Update.
5348 (gdbpy_initialize_registers): Register new gdbarch data.
5349
05c309a8
SM
53502020-07-21 Simon Marchi <simon.marchi@efficios.com>
5351
5352 * linux-nat.c (stopped_pids): Make static.
5353
d1fd641e
SM
53542020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
5355
5356 PR ada/26235
5357 * gdbtypes.c (ada_discrete_type_low_bound,
5358 ada_discrete_type_high_bound): Handle undefined bounds.
5359
1de14d77
KR
53602020-07-21 Kamil Rytarowski <n54@gmx.com>
5361
5362 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
5363 declaration.
5364 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
5365 function.
5366
ed810cc7
JB
53672020-07-20 John Baldwin <jhb@FreeBSD.org>
5368
5369 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
5370 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
5371 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
5372 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
5373 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
5374 method.
5375
ae5369e7
LC
53762020-07-20 Ludovic Courtès <ludo@gnu.org>
5377
5378 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
5379 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
5380 which are deprecated in Guile 3.0.
5381 * configure.ac (try_guile_versions): Add "guile-3.0".
5382 * configure (try_guile_versions): Regenerate.
5383 * NEWS: Update entry.
5384
68cf161c
LC
53852020-07-20 Ludovic Courtès <ludo@gnu.org>
5386 Doug Evans <dje@google.com>
5387
5388 PR gdb/21104
5389 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
5390 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
5391 USING_GUILE_BEFORE_2_2.
5392 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
5393 Change type to 'scm_t_port_type *'.
5394 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
5395 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
5396 parameter and honor it. Update callers.
5397 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
5398 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
5399 functions.
5400 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
5401 USING_GUILE_BEFORE_2_2.
5402 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
5403 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
5404 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
5405 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
5406 and 'SCM_PORT_TYPE'.
5407 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
5408 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
5409 (gdbscm_memory_port_read, gdbscm_memory_port_write)
5410 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
5411 [!USING_GUILE_BEFORE_2_2]: New functions.
5412 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
5413 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
5414 'gdbscm_memory_port_read'.
5415 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
5416 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
5417 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
5418 function.
5419 (ioscm_init_memory_port): Remove.
5420 (ioscm_init_memory_port_stream): New function
5421 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
5422 function.
5423 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
5424 Return scm_from_uint (0).
5425 (gdbscm_set_memory_port_read_buffer_size_x)
5426 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
5427 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
5428 Return scm_from_uint (0).
5429 (gdbscm_set_memory_port_write_buffer_size_x)
5430 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
5431 * configure.ac (try_guile_versions): Add "guile-2.2".
5432 * configure: Regenerate.
5433 * NEWS: Add entry.
5434
aee91db3
TT
54352020-07-18 Tom Tromey <tom@tromey.com>
5436
5437 * linux-nat.c (linux_multi_process): Remove.
5438 (linux_nat_target::supports_multi_process): Return true.
5439
0e267416
AB
54402020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
5441
5442 * arch/riscv.c (riscv_tdesc_cache): Change map type.
5443 (riscv_lookup_target_description): Return pointer out of
5444 unique_ptr.
5445 * target-descriptions.c (allocate_target_description): Add
5446 comment.
5447 (target_desc_deleter::operator()): Likewise.
5448 * target-descriptions.h (struct target_desc_deleter): Moved to
5449 gdbsupport/tdesc.h.
5450 (target_desc_up): Likewise.
5451
f80c8ec4
TT
54522020-07-17 Tom Tromey <tromey@adacore.com>
5453
5454 * linux-nat.c (linux_nat_target::supports_non_stop)
5455 (linux_nat_target::always_non_stop_p): Use "true".
5456 (linux_nat_target::supports_disable_randomization): Use "true" and
5457 "false".
5458
d0ce17d8
CT
54592020-07-16 Caroline Tice <cmtice@google.com>
5460
5461 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
5462 (RNGLIST_HEADER_SIZE64): New constant definition.
5463 (struct dwop_section_names): Add rnglists_dwo.
5464 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
5465 (struct loclist_header): Rename to 'loclists_rnglists_header'.
5466 (struct dwo_sections): Add rnglists field.
5467 (read_attribut_reprocess): Add tag parameter.
5468 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
5469 (cu_debug_rnglists_section): New function (decl & definition).
5470 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
5471 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
5472 die whose range is being checked; get rnglist section from
5473 cu_debug_rnglists_section, to get from either objfile or dwo file as
5474 appropriate. Add cases for DW_RLE_base_addressx,
5475 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
5476 the base address to DW_RLE_offset_pairs (not to all ranges), moving
5477 test inside if-condition and updating complaint message.
5478 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
5479 dwarf2_rnglists_process.
5480 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
5481 dwarf2_ranges_process.
5482 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
5483 need_ranges_base and update comment appropriately. Also pass die tag
5484 to dwarf2_ranges_read.
5485 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
5486 need_ranges_base and update comment appropriately. Also pass die tag
5487 to dwarf2_ranges_process.
5488 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
5489 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
5490 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
5491 need_ranges_base and update comment appropriately. Also pass die tag
5492 to read_attribute_reprocess and dwarf2_ranges_read.
5493 (read_loclist_header): Rename function to read_loclists_rnglists_header,
5494 and update function comment appropriately.
5495 (read_loclist_index): Call read_loclists_rnglists_header instead of
5496 read_loclist_header.
5497 (read_rnglist_index): New function.
5498 (read_attribute_reprocess): Add tag parameter. Add code for
5499 DW_FORM_rnglistx, passing tag to read_rnglist_index.
5500 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
5501
3dcc261c
AB
55022020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
5503
5504 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
5505 being resolved.
5506
ccb9eba6
AB
55072020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
5508
5509 * arch-utils.c (show_architecture): Update formatting of messages.
5510
cf88be68
SM
55112020-07-12 Simon Marchi <simon.marchi@efficios.com>
5512
5513 * gdbtypes.h (struct type) <bounds>: Handle array and string
5514 types.
5515 * ada-lang.c (assign_aggregate): Use type::bounds on
5516 array/string type.
5517 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
5518 * c-varobj.c (c_number_of_children): Likewise.
5519 (c_describe_child): Likewise.
5520 * eval.c (evaluate_subexp_for_sizeof): Likewise.
5521 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
5522 (f_type_print_base): Likewise.
5523 * f-valprint.c (f77_array_offset_tbl): Likewise.
5524 (f77_get_upperbound): Likewise.
5525 (f77_print_array_1): Likewise.
5526 * guile/scm-type.c (gdbscm_type_range): Likewise.
5527 * m2-typeprint.c (m2_array): Likewise.
5528 (m2_is_long_set_of_type): Likewise.
5529 * m2-valprint.c (get_long_set_bounds): Likewise.
5530 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
5531 * python/py-type.c (typy_range): Likewise.
5532 * rust-lang.c (rust_internal_print_type): Likewise.
5533 * type-stack.c (type_stack::follow_types): Likewise.
5534 * valarith.c (value_subscripted_rvalue): Likewise.
5535 * valops.c (value_cast): Likewise.
5536
509971ae
SM
55372020-07-12 Simon Marchi <simon.marchi@efficios.com>
5538
5539 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
5540 callers to use the equivalent accessor methods.
5541
107406b7
SM
55422020-07-12 Simon Marchi <simon.marchi@efficios.com>
5543
5544 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
5545 (struct type) <bit_stride>: New method.
5546 (TYPE_BIT_STRIDE): Remove.
5547 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
5548
bb789949
SM
55492020-07-12 Simon Marchi <simon.marchi@efficios.com>
5550
5551 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
5552 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
5553 callers to use the equivalent accessor methods instead.
5554
39498edb
SM
55552020-07-12 Simon Marchi <simon.marchi@efficios.com>
5556
5557 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
5558 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
5559 callers to use the equivalent accessor methods instead.
5560
3b606f38
SM
55612020-07-12 Simon Marchi <simon.marchi@efficios.com>
5562
5563 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
5564 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
5565 to use dynamic_prop::kind.
5566
064d9cb9
SM
55672020-07-12 Simon Marchi <simon.marchi@efficios.com>
5568
5569 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
5570 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
5571 to get the bound property's kind and check against
5572 PROP_UNDEFINED.
5573
5537ddd0
SM
55742020-07-12 Simon Marchi <simon.marchi@efficios.com>
5575
5576 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
5577 all callers to use type::range_bounds followed by
5578 dynamic_prop::{low,high}.
5579
8c2e4e06
SM
55802020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
5581
5582 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
5583 const_val, set_const_val, baton, set_locexpr, set_loclist,
5584 set_addr_offset, variant_parts, set_variant_parts,
5585 original_type, set_original_type>: New methods.
5586 <kind>: Rename to...
5587 <m_kind>: ... this. Update all users to use the new methods
5588 instead.
5589 <data>: Rename to...
5590 <m_data>: ... this. Update all users to use the new methods
5591 instead.
5592
7c6f2712
SM
55932020-07-12 Simon Marchi <simon.marchi@efficios.com>
5594
5595 * gdbtypes.c (get_discrete_bounds): Return failure if
5596 the range type's bounds are not both defined and constant
5597 values.
5598 (get_array_bounds): Update comment. Remove undefined bound check.
5599
599088e3
SM
56002020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
5601
5602 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
5603 the type::bounds method directly.
5604
c4dfcb36
SM
56052020-07-12 Simon Marchi <simon.marchi@efficios.com>
5606
5607 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
5608 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
5609 are used to set the range type's bounds to use set_bounds.
5610
0a278aa7
PW
56112020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5612
5613 * exec.c (_initialize_exec): Update exec-file-mismatch help.
5614
cce20f10
PA
56152020-07-10 Pedro Alves <pedro@palves.net>
5616
5617 * gdbthread.h (inferior_ref): Define.
5618 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
5619 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
5620 * thread.c
5621 (scoped_restore_current_thread::restore):
5622 Adjust to gdb::ref_ptr.
5623 (scoped_restore_current_thread::~scoped_restore_current_thread):
5624 Remove manual decref handling.
5625 (scoped_restore_current_thread::scoped_restore_current_thread):
5626 Adjust to use
5627 inferior_ref::new_reference/thread_info_ref::new_reference.
5628 Incref the thread before calling get_frame_id instead of after.
5629 Let TARGET_CLOSE_ERROR propagate.
5630
6d7aa592
PA
56312020-07-10 Pedro Alves <pedro@palves.net>
5632
5633 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
5634 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
5635 NOT_AVAILABLE_ERROR.
5636 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
5637 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
5638
b3e3a4c1
SM
56392020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5640 Pedro Alves <pedro@palves.net>
5641
5642 PR gdb/26199
5643 * infrun.c (threads_are_resumed_pending_p): Delete.
5644 (do_target_wait): Remove threads_are_executing and
5645 threads_are_resumed_pending_p checks from the inferior_matches
5646 lambda. Update comments.
5647
d6cc5d98
PA
56482020-07-10 Pedro Alves <pedro@palves.net>
5649
5650 PR gdb/26199
5651 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
5652 executing threads.
5653
7d3badc6
PA
56542020-07-10 Pedro Alves <pedro@palves.net>
5655
5656 PR gdb/26199
5657 * infrun.c (handle_no_resumed): Handle multiple targets.
5658
42bd97a6
PA
56592020-07-10 Pedro Alves <pedro@palves.net>
5660
5661 PR gdb/26199
5662 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
5663 target_is_async_p.
5664
43667cc6
PA
56652020-07-10 Pedro Alves <pedro@palves.net>
5666
5667 PR gdb/26199
5668 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
5669 threads, not all threads.
5670
96118d11
PA
56712020-07-10 Pedro Alves <pedro@palves.net>
5672
5673 PR gdb/26199
5674 * remote.c (remote_target::open_1): Pass remote target pointer as
5675 data to create_async_event_handler.
5676 (remote_async_inferior_event_handler): Mark async event handler
5677 before returning if the remote target still has either pending
5678 events or unacknowledged notifications.
5679
54904d81
JB
56802020-07-10 John Baldwin <jhb@FreeBSD.org>
5681
5682 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
5683 declaration.
5684 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
5685 function.
5686
f37e5866
JB
56872020-07-09 John Baldwin <jhb@FreeBSD.org>
5688
5689 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
5690 inferior_ptid.
5691
fc238d4a
JB
56922020-07-09 John Baldwin <jhb@FreeBSD.org>
5693
5694 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
5695 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
5696 AT_FREEBSD_PS_STRINGS.
5697
6e2469ff
HD
56982020-07-08 Hannes Domani <ssbssa@yahoo.de>
5699
5700 * auto-load.c (auto_load_objfile_script_1): Convert drive part
5701 of debugfile path on Windows.
5702
d1076c41
JB
57032020-07-08 John Baldwin <jhb@FreeBSD.org>
5704
5705 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
5706 argument to 'data'.
5707
15f3b077
TT
57082020-07-08 Tom Tromey <tromey@adacore.com>
5709
5710 * ada-lang.c (ada_exception_message_1): Use read_memory.
5711
9fc501fd
AB
57122020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5713
5714 PR python/22748
5715 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
5716 special handling for inline frames.
5717 * findvar.c (value_of_register_lazy): Skip inline frames when
5718 creating lazy register values.
5719 * frame.c (frame_id_computed_p): Delete definition.
5720 * frame.h (frame_id_computed_p): Delete declaration.
5721
64cb3757
AB
57222020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5723
5724 * NEWS: Mention additions to Python API.
5725 * python/py-arch.c (archpy_register_groups): New function.
5726 (arch_object_methods): Add 'register_groups' method.
5727 * python/py-registers.c (reggroup_iterator_object): New struct.
5728 (reggroup_object): New struct.
5729 (gdbpy_new_reggroup): New function.
5730 (gdbpy_reggroup_to_string): New function.
5731 (gdbpy_reggroup_name): New function.
5732 (gdbpy_reggroup_iter): New function.
5733 (gdbpy_reggroup_iter_next): New function.
5734 (gdbpy_new_reggroup_iterator): New function
5735 (gdbpy_initialize_registers): Register new types.
5736 (reggroup_iterator_object_type): Define new Python type.
5737 (gdbpy_reggroup_getset): New static global.
5738 (reggroup_object_type): Define new Python type.
5739 * python/python-internal.h
5740
0f767f94
AB
57412020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5742
5743 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
5744 * python/py-arch.c (archpy_registers): New function.
5745 (arch_object_methods): Add 'registers' method.
5746 * python/py-registers.c: New file.
5747 * python/python-internal.h
5748 (gdbpy_new_register_descriptor_iterator): Declare.
5749 (gdbpy_initialize_registers): Declare.
5750 * python/python.c (do_start_initialization): Call
5751 gdbpy_initialize_registers.
5752 * NEWS: Mention additions to the Python API.
5753
87dbc774
AB
57542020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5755
5756 * NEWS: Mention new Python API method.
5757 * python/py-unwind.c (pending_framepy_architecture): New function.
5758 (pending_frame_object_methods): Add architecture method.
5759
3bc98c0c
AB
57602020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5761
5762 * gdbarch.c: Regenerate.
5763 * gdbarch.h: Regenerate.
5764 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
5765 (gdbarch_data): Use internal_error for the case where
5766 deprecated_set_gdbarch_data was originally needed.
5767 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
5768 and use passed in obstack.
5769 (libunwind_frame_set_descr): Should no longer get back NULL from
5770 gdbarch_data.
5771 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
5772 type.
5773 * user-regs.c (user_regs_init): Update parameters, and use passed
5774 in obstack.
5775 (user_reg_add): Should no longer get back NULL from gdbarch_data.
5776 (_initialize_user_regs): Register as a pre-init gdbarch data type.
5777
d8cc8af6
TV
57782020-07-06 Tom de Vries <tdevries@suse.de>
5779
5780 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
5781 End-Of-Sequence in lte_is_less_than.
5782 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
5783 "gdb: Don't reorder line table entries too much when sorting".
5784
947f7597
TV
57852020-07-06 Tom de Vries <tdevries@suse.de>
5786
5787 PR tui/26205
5788 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
5789
1e7c1b22
TV
57902020-07-05 Tom de Vries <tdevries@suse.de>
5791
5792 PR build/26187
5793 * inferior.h (struct infcall_suspend_state_deleter): If available, use
5794 std::uncaught_exceptions instead of deprecated
5795 std::uncaught_exception.
5796
a36158ec
SM
57972020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5798
5799 * macroexp.h (macro_stringify): Return
5800 gdb::unique_xmalloc_ptr<char>.
5801 * macroexp.c (macro_stringify): Likewise.
5802 * macrotab.c (fixup_definition): Update.
5803
14d960c8
SM
58042020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5805
5806 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
5807 (lex_one_token): Update.
5808 * macroexp.c (struct macro_buffer) <release>: Return
5809 gdb::unique_xmalloc_ptr<char>.
5810 (macro_stringify): Update.
5811 (macro_expand): Update.
5812 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
5813 * macroexp.h (macro_expand_next): Likewise.
5814
211d5b1c
SM
58152020-07-02 Simon Marchi <simon.marchi@efficios.com>
5816
5817 * macroexp.h (macro_lookup_ftype): Remove.
5818 (macro_expand, macro_expand_once, macro_expand_next): Remove
5819 lookup function parameters, add scope parameter.
5820 * macroexp.c (scan, substitute_args, expand, maybe_expand,
5821 macro_expand, macro_expand_once, macro_expand_next): Likewise.
5822 * macroscope.h (standard_macro_lookup): Change parameter type
5823 to macro_scope.
5824 * macroscope.c (standard_macro_lookup): Likewise.
5825 * c-exp.y (lex_one_token): Update.
5826 * macrocmd.c (macro_expand_command): Likewise.
5827 (macro_expand_once_command): Likewise.
5828
b1a35af2
SM
58292020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5830
5831 * inf-loop.c (inferior_event_handler): Remove client_data param.
5832 * inf-loop.h (inferior_event_handler): Likewise.
5833 * infcmd.c (step_1): Adjust.
5834 * infrun.c (proceed): Adjust.
5835 (fetch_inferior_event): Remove client_data param.
5836 (infrun_async_inferior_event_handler): Adjust.
5837 * infrun.h (fetch_inferior_event): Remove `void *` param.
5838 * linux-nat.c (handle_target_event): Adjust.
5839 * record-btrace.c (record_btrace_handle_async_inferior_event):
5840 Adjust.
5841 * record-full.c (record_full_async_inferior_event_handler):
5842 Adjust.
5843 * remote.c (remote_async_inferior_event_handler): Adjust.
5844
1cdf9e33
TT
58452020-07-01 Tom Tromey <tom@tromey.com>
5846
5847 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
5848 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
5849
32c1e210
TT
58502020-07-01 Tom Tromey <tom@tromey.com>
5851
5852 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
5853 tui_gen_win_info.
5854 (tui_win_info::make_window): Merge with
5855 tui_gen_win_info::make_window.
5856 (tui_win_info::make_visible): Move from tui_gen_win_info.
5857 * tui/tui-win.c (tui_win_info::max_width): Move from
5858 tui_gen_win_info.
5859 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
5860 type.
5861 <window_factory>: Likewise.
5862 * tui/tui-layout.c (tui_win_info::resize): Move from
5863 tui_gen_win_info.
5864 (make_standard_window): Change return type.
5865 (get_locator_window, tui_get_window_by_name): Likewise.
5866 (tui_layout_window::apply): Remove a cast.
5867 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
5868 (struct tui_win_info): Merge with tui_gen_win_info.
5869 (struct tui_gen_win_info): Remove.
5870
a30cb6da
TT
58712020-07-01 Tom Tromey <tom@tromey.com>
5872
5873 * tui/tui-stack.h (struct tui_locator_window): Derive from
5874 tui_win_info.
5875 <do_scroll_horizontal, do_scroll_vertical>: New methods.
5876 <can_box>: New method.
5877
1eb2161f
TT
58782020-07-01 Tom Tromey <tom@tromey.com>
5879
5880 * tui/tui-stack.h (struct tui_locator_window): Remove body.
5881
7134f2eb
TT
58822020-07-01 Tom Tromey <tom@tromey.com>
5883
5884 * tui/tui-regs.c (tui_data_window::display_registers_from)
5885 (tui_data_window::display_registers_from)
5886 (tui_data_window::first_data_item_displayed)
5887 (tui_data_window::delete_data_content_windows): Update.
5888 (tui_data_window::refresh_window, tui_data_window::no_refresh):
5889 Remove.
5890 (tui_data_window::check_register_values): Update.
5891 (tui_data_item_window::rerender): Add parameters. Update.
5892 (tui_data_item_window::refresh_window): Remove.
5893 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
5894 virtual.
5895 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
5896 tui_gen_win_info.
5897 <refresh_window, max_height, min_height>: Remove.
5898 <rerender>: Add parameters.
5899 <x, y, visible>: New members.
5900 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
5901 <m_item_width>: New member.
5902
22b7b041
TT
59032020-07-01 Tom Tromey <tom@tromey.com>
5904
5905 * tui/tui-regs.c (tui_data_window::show_register_group)
5906 (tui_data_window::check_register_values): Update.
5907 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
5908 from item_no.
5909
c9753adb
TT
59102020-07-01 Tom Tromey <tom@tromey.com>
5911
5912 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
5913 useless "if".
5914
9ab26b4a
TT
59152020-07-01 Tom Tromey <tom@tromey.com>
5916
5917 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
5918 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
5919
e555083f
TT
59202020-07-01 Tom Tromey <tom@tromey.com>
5921
5922 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
5923 * tui/tui-winsource.h (enum tui_line_or_address_kind)
5924 (struct tui_line_or_address): Move from tui-data.h.
5925 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
5926 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
5927 (tui_cmd_window, tui_source_window_base, tui_source_window)
5928 (tui_disasm_window): Don't declare.
5929 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
5930 to tui-winsource.h.
5931 (SINGLE_KEY): Move to tui-stack.c.
5932
7a02bab7
TT
59332020-07-01 Tom Tromey <tom@tromey.com>
5934
5935 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
5936 std::string.
5937 * tui/tui-regs.c (class tab_expansion_file): New.
5938 (tab_expansion_file::write): New method.
5939 (tui_register_format): Change return type. Use
5940 tab_expansion_file.
5941 (tui_get_register, tui_data_window::display_registers_from)
5942 (tui_data_item_window::rerender): Update.
5943 * tui/tui-io.h (tui_expand_tabs): Don't declare.
5944 * tui/tui-io.c (tui_expand_tabs): Remove.
5945
ea68593b
TT
59462020-07-01 Tom Tromey <tom@tromey.com>
5947
5948 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
5949
a8caed5d
FS
59502020-07-01 Fangrui Song <maskray@google.com>
5951
5952 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
5953
9cdf9820
AKS
59542020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5955
5956 * dwarf2/read.c (set_die_type): Removed conditions to restrict
5957 forms for DW_AT_associated and DW_AT_allocated attributes,
5958 which is already checked in function attr_to_dynamic_prop.
5959
a1520ad8
TT
59602020-06-30 Tom Tromey <tromey@adacore.com>
5961
5962 * dwarf2/read.c (quirk_rust_enum): Correctly call
5963 alloc_rust_variant for default-less enum.
5964
5ac58899
TT
59652020-06-30 Tom Tromey <tromey@adacore.com>
5966
5967 PR build/26183:
5968 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
5969 gdb::to_string.
5970
19b187a9
SM
59712020-06-29 Simon Marchi <simon.marchi@efficios.com>
5972
5973 * gdbarch.sh (displaced_step_copy_insn): Update doc.
5974 * gdbarch.h: Re-generate.
5975
cd4c4c07
TT
59762020-06-28 Tom Tromey <tom@tromey.com>
5977
5978 * command.h (cmd_types): Remove.
5979 (cmd_type): Don't declare.
5980 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
5981 typedef.
5982 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
5983 * cli/cli-decode.c (cmd_type): Remove.
5984
05779d57
PA
59852020-06-27 Pedro Alves <palves@redhat.com>
5986
5987 * fork-child.c (prefork_hook): Adjust.
5988 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
5989 Delete.
5990 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
5991 * inferior.c (inferior::set_tty, inferior::tty): New methods.
5992 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
5993 Remove declarations.
5994 (struct inferior) <set_tty, tty>: New methods.
5995 (struct inferior) <terminal>: Rename to ...
5996 (struct inferior) <m_terminal>: ... this and make private.
5997 * main.c (captured_main_1): Adjust.
5998 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
5999 (mi_cmd_inferior_tty_show): Adjust.
6000 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
6001 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
6002
1776e3e5
NA
60032020-06-26 Nick Alcock <nick.alcock@oracle.com>
6004
6005 * configure.ac: Add --enable-libctf: handle --disable-static
6006 properly.
6007 * acinclude.m4: sinclude ../config/enable.m4.
6008 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
6009 (LIBCTF): Substitute in.
6010 (CTF_DEPS): New, likewise.
6011 (CLIBS): libctf needs symbols from libbfd: move earlier.
6012 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
6013 flags.
6014 * ctfread.c: Surround in ENABLE_LIBCTF.
6015 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
6016 * configure: Regenerate.
6017 * config.in: Likewise.
6018
58373b80
SM
60192020-06-25 Simon Marchi <simon.marchi@efficios.com>
6020
6021 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
6022
277474ee
SM
60232020-06-25 Simon Marchi <simon.marchi@efficios.com>
6024
6025 * inferior.h (struct inferior) <terminal>: Change type to
6026 gdb::unique_xmalloc_ptr<char>.
6027 * inferior.c (inferior::~inferior): Don't free inf->terminal.
6028 * infcmd.c (set_inferior_io_terminal): Don't free terminal
6029 field, adjust to unique pointer.
6030 (get_inferior_io_terminal): Adjust to unique pointer.
6031
6d74da72
AB
60322020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6033
6034 * riscv-tdep.c (riscv_print_registers_info): Loop over all
6035 registers, not just the known core set of registers.
6036
2e52d038
AB
60372020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6038
6039 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
6040 fflags, frm, and fcsr registers.
6041 (riscv_register_reggroup_p): Remove unknown CSRs from save and
6042 restore groups.
6043 (riscv_tdesc_unknown_reg): New function.
6044 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
6045 tdesc_use_registers.
6046 * riscv-tdep.h (struct gdbarch_tdep): Add
6047 unknown_csrs_first_regnum, unknown_csrs_count,
6048 duplicate_fflags_regnum, duplicate_frm_regnum, and
6049 duplicate_fcsr_regnum fields.
6050
be64fd07
AB
60512020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6052
6053 * target-descriptions.c (tdesc_use_registers): Add new parameter a
6054 callback, use the callback (when not null) to help number unknown
6055 registers.
6056 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
6057 (tdesc_use_registers): Add extra parameter to declaration.
6058
3b9fce96
AB
60592020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6060
6061 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
6062 in the file.
6063 (class riscv_pending_register_alias): Likewise.
6064 (riscv_register_feature::register_info): Change 'required_p' field
6065 to 'required', and change its type. Add 'check' member function.
6066 (riscv_register_feature::register_info::check): Define new member
6067 function.
6068 (riscv_xreg_feature): Change initialisation of 'required' field.
6069 (riscv_freg_feature): Likewise.
6070 (riscv_virtual_feature): Likewise.
6071 (riscv_csr_feature): Likewise.
6072 (riscv_check_tdesc_feature): Take extra parameter, the csr
6073 tdesc_feature, rewrite the function to use the new
6074 riscv_register_feature::register_info::check function.
6075 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
6076
865bad26
AB
60772020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6078
6079 * features/Makefile: Remove all references to the deleted files
6080 below.
6081 * features/riscv/32bit-csr.c: Deleted.
6082 * features/riscv/32bit-csr.xml: Deleted.
6083 * features/riscv/64bit-csr.c: Deleted.
6084 * features/riscv/64bit-csr.xml: Deleted.
6085 * features/riscv/rebuild-csr-xml.sh: Deleted.
6086
ed69cbc8
AB
60872020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6088
6089 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
6090 whitespace error for declaration of names member variable.
6091 (struct riscv_register_feature): Add new prefer_first_name member
6092 variable, and fix whitespace error in declaration of registers.
6093 (riscv_xreg_feature): Initialize prefer_first_name field.
6094 (riscv_freg_feature): Likewise.
6095 (riscv_virtual_feature): Likewise.
6096 (riscv_csr_feature): Likewise.
6097 (riscv_register_name): Expand on comments. Remove register name
6098 modifications for CSR and virtual registers.
6099
4445e8f5
AB
61002020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6101
6102 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
6103 errors.
6104
767a879e
AB
61052020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6106
6107 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
6108 riscv-opc.h.
6109 (class riscv_pending_register_alias): New class.
6110 (riscv_check_tdesc_feature): Take vector of pending aliases and
6111 populate it as appropriate.
6112 (riscv_setup_register_aliases): Delete.
6113 (riscv_gdbarch_init): Create vector of pending aliases and pass it
6114 to riscv_check_tdesc_feature in all cases. Use the vector to
6115 create the register aliases.
6116
bb6e55f3
RO
61172020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6118
6119 * sol2-tdep.c (sol2_static_transform_name): Remove.
6120 (sol2_init_abi): Don't register it.
6121 * gdbarch.sh (static_transform_name): Remove.
6122 * gdbarch.c, gdbarch.h: Regenerate.
6123
6124 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
6125 gdbarch_static_transform_name.
6126 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
6127 * stabsread.c (define_symbol) <'X'>: Remove.
6128 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
6129 handling.
6130 <'V'>: Likewise.
6131 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
6132 <'S'>: Remove call to gdbarch_static_transform_name.
6133
c6d36836
RO
61342020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6135
6136 * procfs.c (procfs_pre_trace): New function.
6137 (procfs_target::create_inferior): Pass it to fork_inferior.
6138
a7e6196b
RO
61392020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6140
6141 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
6142 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
6143 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
6144 sol2-tdep.o, sparc-sol2-tdep.o.
6145 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
6146 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
6147 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
6148 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
6149
d412e696
RO
61502020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6151
6152 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
6153 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
6154 Call sol2_init_abi.
6155 Remove calls to set_gdbarch_skip_solib_resolver,
6156 set_gdbarch_core_pid_to_str.
6157 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
6158 (i386_sol2_static_transform_name): Remove.
6159 (i386_sol2_init_abi): Call sol2_init_abi.
6160 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6161 set_gdbarch_static_transform_name,
6162 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6163 Use sol2_sigtramp_p.
6164 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
6165 (sol2_sigtramp_p): New function.
6166 (sol2_static_transform_name): New function.
6167 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
6168 (sol2_init_abi): New function.
6169 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
6170 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
6171 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
6172 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
6173 (sparc_sol2_static_transform_name): Remove.
6174 (sparc32_sol2_init_abi): Call sol2_init_abi.
6175 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6176 set_gdbarch_static_transform_name,
6177 set_gdbarch_skip_solib_resolver,
6178 set_gdbarch_core_pid_to_str.
6179 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
6180 (sparc_sol2_static_transform_name): Remove
6181 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
6182 call sol2_sigtramp_p.
6183 (sparc64_sol2_init_abi): Call sol2_init_abi.
6184 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6185 set_gdbarch_static_transform_name,
6186 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6187
a8654e7d
PW
61882020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6189
6190 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
6191 * exec.c (validate_exec_file): If from_tty, set both
6192 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
6193 * symfile.c (symbol_file_add_with_addrs): if always_confirm
6194 and from_tty, unconditionally ask a confirmation.
6195
caa7fd04
AB
61962020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6197
6198 * target-descriptions.c (tdesc_architecture_name): Protect against
6199 NULL pointer dereference.
6200 (maint_print_xml_tdesc_cmd): New function.
6201 (_initialize_target_descriptions): Register new 'maint print
6202 xml-tdesc' command and give it the filename completer.
6203 * NEWS: Mention new 'maint print xml-tdesc' command.
6204
fbf42f4e
AB
62052020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6206
6207 * target-descriptions.c (class tdesc_compatible_info): New class.
6208 (struct target_desc): Change type of compatible vector.
6209 (tdesc_compatible_p): Update for change in type of
6210 target_desc::compatible.
6211 (tdesc_compatible_info_list): New function.
6212 (tdesc_compatible_info_arch_name): New function.
6213 (tdesc_add_compatible): Update for change in type of
6214 target_desc::compatible.
6215 (print_c_tdesc::visit_pre): Likewise.
6216
20821f4e
AB
62172020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6218
6219 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
6220 whitespace to underscore.
6221 (maint_print_c_tdesc_cmd): Use fake filename for target
6222 descriptions that came from the target.
6223 (_initialize_target_descriptions): Add filename command completion
6224 for 'maint print c-tdesc'.
6225
1fb5ee62
SM
62262020-06-23 Simon Marchi <simon.marchi@efficios.com>
6227
6228 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
6229 lines.
6230
fc3ecb3e
SM
62312020-06-23 Simon Marchi <simon.marchi@efficios.com>
6232
6233 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
6234 lines.
6235 (dwarf2_find_location_expression): Likewise.
6236 (call_site_parameter_matches): Likewise.
6237 (dwarf2_compile_expr_to_ax): Likewise.
6238 (disassemble_dwarf_expression): Likewise.
6239 (loclist_describe_location): Likewise.
6240
236ef034
PA
62412020-06-23 Pedro Alves <palves@redhat.com>
6242
6243 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
6244 progspace-and-thread.h. Include scoped-mock-context.h instead.
6245 (register_to_value_test): Use scoped_mock_context.
6246 * regcache.c: Include "scoped-mock-context.h".
6247 (cooked_read_test): Don't error out if a target is already pushed.
6248 Use scoped_mock_context. Adjust.
6249 * scoped-mock-context.h: New file.
6250
39e7ecca
AB
62512020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6252
6253 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
6254 initializer.
6255 (ada_language::is_string_type_p): New member function.
6256 * c-lang.c (c_language_data): Delete la_is_string_type_p
6257 initializer.
6258 (cplus_language_data): Likewise.
6259 (asm_language_data): Likewise.
6260 (minimal_language_data): Likewise.
6261 * d-lang.c (d_language_data): Likewise.
6262 * f-lang.c (f_is_string_type_p): Delete function, implementation
6263 moved to f_language::is_string_type_p.
6264 (f_language_data): Delete la_is_string_type_p initializer.
6265 (f_language::is_string_type_p): New member function,
6266 implementation from f_is_string_type_p.
6267 * go-lang.c (go_is_string_type_p): Delete function, implementation
6268 moved to go_language::is_string_type_p.
6269 (go_language_data): Delete la_is_string_type_p initializer.
6270 (go_language::is_string_type_p): New member function,
6271 implementation from go_is_string_type_p.
6272 * language.c (language_defn::is_string_type_p): Define new member
6273 function.
6274 (default_is_string_type_p): Make static, add comment copied from
6275 header file.
6276 (unknown_language_data): Delete la_is_string_type_p initializer.
6277 (unknown_language::is_string_type_p): New member function.
6278 (auto_language_data): Delete la_is_string_type_p initializer.
6279 (auto_language::is_string_type_p): New member function.
6280 * language.h (language_data): Delete la_is_string_type_p field.
6281 (language_defn::is_string_type_p): Declare new function.
6282 (default_is_string_type_p): Delete desclaration, move comment to
6283 definition.
6284 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
6285 moved to m2_language::is_string_type_p.
6286 (m2_language_data): Delete la_is_string_type_p initializer.
6287 (m2_language::is_string_type_p): New member function,
6288 implementation from m2_is_string_type_p.
6289 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
6290 initializer.
6291 * opencl-lang.c (opencl_language_data): Likewise.
6292 * p-lang.c (pascal_is_string_type_p): Delete function,
6293 implementation moved to pascal_language::is_string_type_p.
6294 (pascal_language_data): Delete la_is_string_type_p initializer.
6295 (pascal_language::is_string_type_p): New member function,
6296 implementation from pascal_is_string_type_p.
6297 * rust-lang.c (rust_is_string_type_p): Delete function,
6298 implementation moved to rust_language::is_string_type_p.
6299 (rust_language_data): Delete la_is_string_type_p initializer.
6300 (rust_language::is_string_type_p): New member function,
6301 implementation from rust_is_string_type_p.
6302 * valprint.c (val_print_scalar_or_string_type_p): Update call to
6303 is_string_type_p.
6304
4ffc13fb
AB
63052020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6306
6307 * ada-lang.c (ada_language_data): Delete la_print_typedef
6308 initializer.
6309 (ada_language::print_typedef): New member function.
6310 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
6311 (cplus_language_data): Likewise.
6312 (asm_language_data): Likewise.
6313 (minimal_language_data): Likewise.
6314 * d-lang.c (d_language_data): Likewise.
6315 * f-lang.c (f_language_data): Likewise.
6316 (f_language::print_typedef): New member function.
6317 * go-lang.c (go_language_data): Delete la_print_typedef
6318 initializer.
6319 * language.c (language_defn::print_typedef): Define member
6320 function.
6321 (unknown_language_data): Delete la_print_typedef initializer.
6322 (unknown_language::print_typedef): New member function.
6323 (auto_language_data): Delete la_print_typedef initializer.
6324 (auto_language::print_typedef): New member function.
6325 * language.h (language_data): Delete la_print_typedef field.
6326 (language_defn::print_typedef): Declare new member function.
6327 (LA_PRINT_TYPEDEF): Update call to print_typedef.
6328 (default_print_typedef): Delete declaration.
6329 * m2-lang.c (m2_language_data): Delete la_print_typedef
6330 initializer.
6331 (m2_language::print_typedef): New member function.
6332 * objc-lang.c (objc_language_data): Delete la_print_typedef
6333 initializer.
6334 * opencl-lang.c (opencl_language_data): Likewise.
6335 * p-lang.c (pascal_language_data): Likewise.
6336 (pascal_language::print_typedef): New member function.
6337 * rust-lang.c (rust_print_typedef): Delete function,
6338 implementation moved to rust_language::print_typedef.
6339 (rust_language): Delete la_print_typedef initializer.
6340 (rust_language::print_typedef): New member function,
6341 implementation from rust_print_typedef.
6342 * typeprint.c (default_print_typedef): Delete.
6343
d711ee67
AB
63442020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6345
6346 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
6347 (ada_language::printstr): New member function.
6348 * c-lang.c (c_language_data): Delete la_printstr initializer.
6349 (cplus_language_data): Likewise.
6350 (asm_language_data): Likewise.
6351 (minimal_language_data): Likewise.
6352 * d-lang.c (d_language_data): Likewise.
6353 * f-lang.c (f_printstr): Rename to f_language::printstr.
6354 (f_language_data): Delete la_printstr initializer.
6355 (f_language::printstr): New member function, implementation from
6356 f_printstr.
6357 * go-lang.c (go_language_data): Delete la_printstr initializer.
6358 * language.c (language_defn::printstr): Define new member
6359 function.
6360 (unk_lang_printstr): Delete.
6361 (unknown_language_data): Delete la_printstr initializer.
6362 (unknown_language::printstr): New member function.
6363 (auto_language_data): Delete la_printstr initializer.
6364 (auto_language::printstr): New member function.
6365 * language.h (language_data): Delete la_printstr field.
6366 (language_defn::printstr): Declare new member function.
6367 (LA_PRINT_STRING): Update call to printstr.
6368 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
6369 (m2_language_data): Delete la_printstr initializer.
6370 (m2_language::printstr): New member function, implementation from
6371 m2_printstr.
6372 * objc-lang.c (objc_language_data): Delete la_printstr
6373 initializer.
6374 * opencl-lang.c (opencl_language_data): Likewise.
6375 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
6376 (pascal_language_data): Delete la_printstr initializer.
6377 (pascal_language::printstr): New member function, implementation
6378 from pascal_printstr.
6379 * p-lang.h (pascal_printstr): Delete declaration.
6380 * rust-lang.c (rust_printstr): Update header comment.
6381 (rust_language_data): Delete la_printstr initializer.
6382 (rust_language::printstr): New member function.
6383
52b50f2c
AB
63842020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6385
6386 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
6387 (ada_language::printchar): New member function.
6388 * c-lang.c (c_language_data): Delete la_printchar initializer.
6389 (cplus_language_data): Likewise.
6390 (asm_language_data): Likewise.
6391 (minimal_language_data): Likewise.
6392 * d-lang.c (d_language_data): Likewise.
6393 * f-lang.c (f_printchar): Rename to f_language::printchar.
6394 (f_language_data): Delete la_printchar initializer.
6395 (f_language::printchar): New member function, implementation from
6396 f_printchar.
6397 * go-lang.c (go_language_data): Delete la_printchar initializer.
6398 * language.c (unk_lang_printchar): Delete.
6399 (language_defn::printchar): Define new member function.
6400 (unknown_language_data): Delete la_printchar initializer.
6401 (unknown_language::printchar): New member function.
6402 (auto_language_data): Delete la_printchar initializer.
6403 (auto_language::printchar): New member function.
6404 * language.h (language_data): Delete la_printchar field.
6405 (language_defn::printchar): Declare new member function.
6406 (LA_PRINT_CHAR): Update call to printchar.
6407 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
6408 (m2_language::printchar): New member function.
6409 * objc-lang.c (objc_language_data): Delete la_printchar
6410 initializer.
6411 * opencl-lang.c (opencl_language_data): Likewise.
6412 * p-lang.c (pascal_language_data): Delete la_printchar
6413 initializer.
6414 (pascal_language::printchar): New member function.
6415 * rust-lang.c (rust_printchar): Rename to
6416 rust_language::printchar.
6417 (rust_language_data): Delete la_printchar initializer.
6418 (rust_language::printchar): New member function, implementation
6419 from rust_printchar.
6420
ec8cec5b
AB
64212020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6422
6423 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
6424 (ada_language_data): Delete la_emitchar initializer.
6425 (ada_language::emitchar): New member function, implementation from
6426 emit_char.
6427 * c-lang.c (c_language_data): Delete la_emitchar initializer.
6428 (cplus_language_data): Likewise.
6429 (asm_language_data): Likewise.
6430 (minimal_language_data): Likewise.
6431 * d-lang.c (d_language_data): Likewise.
6432 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
6433 (f_language_data): Delete la_emitchar initializer.
6434 (f_language::emitchar): New member function, implementation from
6435 f_emit_char.
6436 * go-lang.c (go_language_data): Delete la_emitchar initializer.
6437 * language.c (unk_lang_emit_char): Delete.
6438 (language_defn::emitchar): New member function definition.
6439 (unknown_language_data): Delete la_emitchar initializer.
6440 (unknown_language::emitchar): New member function.
6441 (auto_language_data): Delete la_emitchar initializer.
6442 (auto_language::emitchar): New member function.
6443 * language.h (language_data): Delete la_emitchar field.
6444 (language_defn::emitchar): New member field declaration.
6445 (LA_EMIT_CHAR): Update call to emitchar.
6446 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
6447 (m2_language_data): Delete la_emitchar initializer.
6448 (m2_language::emitchar): New member function, implementation from
6449 m2_emit_char.
6450 * objc-lang.c (objc_language_data): Delete la_emitchar
6451 initializer.
6452 * opencl-lang.c (opencl_language_data): Likewise.
6453 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
6454 (pascal_language_data): Delete la_emitchar initializer.
6455 (pascal_language::emitchar): New member function, implementation
6456 from pascal_emit_char.
6457 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
6458 (rust_language_data): Delete la_emitchar initializer.
6459 (rust_language::emitchar): New member function, implementation
6460 from rust_emitchar.
6461
1bf9c363
AB
64622020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6463
6464 * ada-lang.c (resolve): Rename to ada_language::post_parser.
6465 (ada_language_data): Delete la_post_parser initializer.
6466 (ada_language::post_parser): New member function.
6467 * c-lang.c (c_language_data): Delete la_post_parser initializer.
6468 (cplus_language_data): Likewise.
6469 (asm_language_data): Likewise.
6470 (minimal_language_data): Likewise.
6471 * d-lang.c (d_language_data): Likewise.
6472 * f-lang.c (f_language_data): Likewise.
6473 * go-lang.c (go_language_data): Likewise.
6474 * language.c (unknown_language_data): Likewise.
6475 (auto_language_data): Likewise.
6476 * language.h (language_data): Delete la_post_parser field.
6477 (language_defn::post_parser): New member function.
6478 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
6479 * objc-lang.c (objc_language_data): Likewise.
6480 * opencl-lang.c (opencl_language_data): Likewise.
6481 * p-lang.c (pascal_language_data): Likewise.
6482 * parse.c (parse_exp_in_context): Update call to post_parser.
6483 (null_post_parser): Delete definition.
6484 * parser-defs.h (null_post_parser): Delete declaration.
6485 * rust-lang.c (rust_language_data): Delete la_post_parser
6486 initializer.
6487
87afa652
AB
64882020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6489
6490 * ada-lang.c (parse): Rename to ada_language::parser.
6491 (ada_language_data): Delete la_parser initializer.
6492 (ada_language::parser): New member function, implementation from
6493 parse.
6494 * c-lang.c (c_language_data): Delete la_parser initializer.
6495 (cplus_language_data): Likewise.
6496 (asm_language_data): Likewise.
6497 (minimal_language_data): Likewise.
6498 * d-lang.c (d_language_data): Likewise.
6499 (d_language::parser): New member function.
6500 * f-lang.c (f_language_data): Delete la_parser initializer.
6501 (f_language::parser): New member function.
6502 * go-lang.c (go_language_data): Delete la_parser initializer.
6503 (go_language::parser): New member function.
6504 * language.c (unk_lang_parser): Delete.
6505 (language_defn::parser): Define new member function.
6506 (unknown_language_data): Delete la_parser initializer.
6507 (unknown_language::parser): New member function.
6508 (auto_language_data): Delete la_parser initializer.
6509 (auto_language::parser): New member function.
6510 * language.h (language_data): Delete la_parser field.
6511 (language_defn::parser): Declare new member function.
6512 * m2-lang.c (m2_language_data): Delete la_parser initializer.
6513 (m2_language::parser): New member function.
6514 * objc-lang.c (objc_language_data): Delete la_parser initializer.
6515 * opencl-lang.c (opencl_language_data): Likewise.
6516 * p-lang.c (pascal_language_data): Likewise.
6517 (pascal_language::parser): New member function.
6518 * parse.c (parse_exp_in_context): Update call to parser.
6519 * rust-lang.c (rust_language_data): Delete la_parser initializer.
6520 (rust_language::parser): New member function.
6521
37825800
AB
65222020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6523
6524 * top.c (print_gdb_configuration): Print --with-python-libdir
6525 configuration value.
6526
5b860c93
PW
65272020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6528
6529 * NEWS: Mention change to the alias command.
6530
cf00cd6f
PW
65312020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6532
6533 * cli/cli-cmds.c (lookup_cmd_for_default_args)
6534 (alias_command_completer)
6535 (make_alias_options_def_group): New functions.
6536 (alias_opts, alias_option_defs): New struct and array.
6537 (alias_usage_error): Update usage.
6538 (alias_command): Handles optional DEFAULT-ARGS... arguments.
6539 Use option framework.
6540 (_initialize_cli_cmds): Update alias command help.
6541 Update aliases command help.
6542 (show_user):
6543 Add NULL for new default_args lookup_cmd argument.
6544 (valid_command_p): Rename to validate_aliased_command.
6545 Add NULL for new default_args lookup_cmd argument. Verify that the
6546 aliased_command has no default args.
6547 * cli/cli-decode.c (help_cmd): Show aliases definitions.
6548 (lookup_cmd_1, lookup_cmd): New argument default_args.
6549 (add_alias_cmd):
6550 Add NULL for new default_args lookup_cmd argument.
6551 (print_help_for_command): Show default args under the layout
6552 alias some_alias = some_aliased_cmd some_alias_default_arg.
6553 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
6554 xfree default_args in destructor.
6555 * cli/cli-script.c (process_next_line, do_define_command):
6556 Add NULL for new default_args lookup_cmd argument.
6557 * command.h: Declare new default_args argument in lookup_cmd
6558 and lookup_cmd_1.
6559 * completer.c (complete_line_internal_1):
6560 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6561 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
6562 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
6563 Likewise.
6564 * infcmd.c (_initialize_infcmd): Likewise.
6565 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
6566 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
6567 * python/py-param.c (add_setshow_generic): Likewise.
6568 * remote.c (_initialize_remote): Likewise.
6569 * top.c (execute_command): Prepend default_args if command has some.
6570 (set_verbose):
6571 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6572 * tracepoint.c (validate_actionline, encode_actions_1):
6573 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6574
bd920864
TBA
65752020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6576
6577 * jit.c (jit_read_descriptor): Use bool as the return type.
6578 (jit_breakpoint_re_set_internal): Use bool as the return type.
6579 Invert the return value logic; return true if the jit breakpoint
6580 has been successfully initialized.
6581 (jit_inferior_init): Update the call to
6582 jit_breakpoint_re_set_internal.
6583
f8098322
PA
65842020-06-22 Pedro Alves <palves@redhat.com>
6585
6586 PR gdb/25939
6587 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
6588 Use the current inferior instead. Don't return
6589 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
6590 wait again.
6591 * sol-thread.c (sol_thread_target::wait): Don't reference
6592 inferior_ptid.
6593 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
6594 (sol_update_thread_list_callback): Use the current inferior's pid
6595 instead of inferior_ptid.
6596
196535a6
RO
65972020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6598
6599 * procfs.c: Cleanup many comments.
6600
6601 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
6602 (AFTER_WATCHFLAG): Replace by value.
6603
6604 (MAIN_PROC_NAME_FORMAT): Inline ...
6605 (create_procinfo): ... here.
6606
6607 (procfs_debug_inferior): Remove SYS_exec handling.
6608 (syscall_is_exec): Likewise.
6609 (procfs_set_exec_trap): Likewise.
6610
6611 (syscall_is_lwp_exit): Inline in callers.
6612 (syscall_is_exit): Likewise.
6613 (syscall_is_exec): Likewise.
6614 (syscall_is_lwp_create): Likewise.
6615
6616 (invalidate_cache): Remove #if 0 code.
6617
6618 (make_signal_thread_runnable): Remove.
6619 (procfs_target::resume): Remove #if 0 code.
6620
cf6f3e86
RO
66212020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6622
6623 PR gdb/25939
6624 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
6625 call ...
6626 (procfs_target::create_inferior): ... here.
6627
48e9cc84
PW
66282020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6629
6630 * exec.c (validate_exec_file): Ensure the build-id is up to
6631 date by calling reopen_exec_file (that checks file timestamp
6632 to decide to re-read the file).
6633
3922b302
PA
66342020-06-18 Pedro Alves <palves@redhat.com>
6635
6636 PR gdb/25412
6637 * gdbthread.h (delete_thread, delete_thread_silent)
6638 (find_thread_ptid): Update comments.
6639 * thread.c (current_thread_): New global.
6640 (is_current_thread): Move higher, and reimplement.
6641 (inferior_thread): Reimplement.
6642 (set_thread_exited): Use bool. Add assertions.
6643 (add_thread_silent): Simplify thread-reuse handling by always
6644 calling delete_thread.
6645 (delete_thread): Remove intro comment.
6646 (find_thread_ptid): Skip exited threads.
6647 (switch_to_thread_no_regs): Write to current_thread_.
6648 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
6649 INFERIOR_PTID. Clear current_thread_.
6650
6dbdab44
PA
66512020-06-18 Pedro Alves <palves@redhat.com>
6652
6653 * aix-thread.c (pd_update): Use switch_to_thread.
6654
2da4b788
PA
66552020-06-18 Pedro Alves <palves@redhat.com>
6656
6657 * ravenscar-thread.c (ravenscar_thread_target): Update.
6658 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
6659 (ravenscar_thread_target::add_active_thread): ... this. Don't
6660 set m_base_ptid here. Update to avoid referencing inferior_ptid.
6661 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
6662
50838d1b
PA
66632020-06-18 Pedro Alves <palves@redhat.com>
6664
6665 * nat/windows-nat.c (current_windows_thread): Remove.
6666 * nat/windows-nat.h (current_windows_thread): Remove.
6667 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
6668 Adjust.
6669 (display_selectors): Adjust to fetch the current
6670 windows_thread_info based on inferior_ptid.
6671 (fake_create_process): No longer write to current_windows_thread.
6672 (windows_nat_target::get_windows_debug_event):
6673 Don't set inferior_ptid or current_windows_thread.
6674 (windows_nat_target::wait): Adjust to not rely on
6675 current_windows_thread.
6676 (do_initial_windows_stuff): Now a method of windows_nat_target.
6677 Switch to the last_ptid thread.
6678 (windows_nat_target::attach): Adjust.
6679 (windows_nat_target::detach): Use switch_to_no_thread instead of
6680 writing to inferior_ptid directly.
6681 (windows_nat_target::create_inferior): Adjust.
6682
31ce04e9
PA
66832020-06-18 Pedro Alves <palves@redhat.com>
6684
6685 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
6686
1ee1a363
PA
66872020-06-18 Pedro Alves <palves@redhat.com>
6688
6689 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
6690 after creating it, instead of writing to inferior_ptid. Don't
6691 write to inferior_ptid.
6692
6d350754
PA
66932020-06-18 Pedro Alves <palves@redhat.com>
6694
6695 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
6696
5d971d48
PA
66972020-06-18 Pedro Alves <palves@redhat.com>
6698
6699 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
6700 it, instead of writing to inferior_ptid.
6701
86e57d1b
PA
67022020-06-18 Pedro Alves <palves@redhat.com>
6703
6704 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
6705 to inferior_ptid.
6706
f2e1c129
PA
67072020-06-18 Pedro Alves <palves@redhat.com>
6708
6709 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
6710 instead of writing to inferior_ptid directly.
6711
60db1b85
PA
67122020-06-18 Pedro Alves <palves@redhat.com>
6713
6714 * corelow.c (core_target::close): Use switch_to_no_thread instead
6715 of writing to inferior_ptid directly.
6716 (add_to_thread_list, core_target_open): Use switch_to_thread
6717 instead of writing to inferior_ptid directly.
6718
fe7d6a8d
PA
67192020-06-18 Pedro Alves <palves@redhat.com>
6720
6721 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
6722 inferior_ptid.
6723 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
6724 inferior_ptid.
6725 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
6726 inferior_ptid directly.
6727 (darwin_nat_target::init_thread_list): Switch to thread, instead
6728 of writing to inferior_ptid.
6729 (darwin_nat_target::attach): Don't write to inferior_ptid.
6730 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
6731
975f8708
PA
67322020-06-18 Pedro Alves <palves@redhat.com>
6733
6734 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
6735 thread.
6736 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
6737 Instead use switch_to_thread.
6738 (gnu_nat_target::detach): Use switch_to_no_thread
6739 instead of writing to inferior_ptid directly. Used passed-in
6740 inferior instead of looking up the inferior by pid.
6741
1a204730
PA
67422020-06-18 Pedro Alves <palves@redhat.com>
6743
6744 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
6745 inferior_ptid.
6746
ebe84f23
PA
67472020-06-18 Pedro Alves <palves@redhat.com>
6748
6749 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
6750 inferior_ptid.
6751 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
6752 thread.
6753 (nto_procfs_target::detach): Avoid referencing
6754 inferior_ptid. Use switch_to_no_thread instead of writing to
6755 inferior_ptid directly.
6756 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
6757 instead of writing to inferior_ptid directly.
6758 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
6759 to thread.
6760
191f02e5
PA
67612020-06-18 Pedro Alves <palves@redhat.com>
6762
6763 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
6764 after creating it, instead of writing to inferior_ptid.
6765 (gdbsim_target_open): Use switch_to_no_thread instead of writing
6766 to inferior_ptid directly.
6767 (gdbsim_target::wait): Don't write to inferior_ptid.
6768
0ac55310
PA
67692020-06-18 Pedro Alves <palves@redhat.com>
6770
6771 * remote.c (remote_target::remote_notice_new_inferior): Use
6772 switch_to_thread instead of writing to inferior_ptid directly.
6773 (remote_target::add_current_inferior_and_thread): Use
6774 switch_to_no_thread instead of writing to inferior_ptid directly.
6775 (extended_remote_target::attach): Use switch_to_inferior_no_thread
6776 and switch_to_thread instead of using set_current_inferior or
6777 writing to inferior_ptid directly.
6778
5233f39b
PA
67792020-06-18 Pedro Alves <palves@redhat.com>
6780
6781 * tracectf.c (ctf_target_open): Switch to added thread instead of
6782 writing to inferior_ptid directly.
6783 (ctf_target::close): Use switch_to_no_thread instead of writing to
6784 inferior_ptid directly.
6785
087e161b
PA
67862020-06-18 Pedro Alves <palves@redhat.com>
6787
6788 * tracefile-tfile.c (tfile_target_open): Don't write to
6789 inferior_ptid directly, instead switch to added thread.
6790 (tfile_target::close): Use switch_to_no_thread instead of writing
6791 to inferior_ptid directly.
6792
7fb43e53
PA
67932020-06-18 Pedro Alves <palves@redhat.com>
6794
6795 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
6796 (procfs_target::detach): Use switch_to_no_thread
6797 instead of writing to inferior_ptid directly.
6798 (do_attach): Change return type to void. Switch to the added
6799 thread.
6800 (procfs_target::create_inferior): Switch to the added thread.
6801 (procfs_do_thread_registers): Don't write to inferior_ptid.
6802
18493a00
PA
68032020-06-18 Pedro Alves <palves@redhat.com>
6804
6805 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
6806 of writing to inferior_ptid.
6807 (scoped_restore_exited_inferior): Delete.
6808 (handle_vfork_child_exec_or_exit): Simplify using
6809 scoped_restore_current_pspace_and_thread. Use switch_to_thread
6810 instead of writing to inferior_ptid.
6811 (THREAD_STOPPED_BY): Delete.
6812 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
6813 (thread_stopped_by_hw_breakpoint): Delete.
6814 (save_waitstatus): Use
6815 scoped_restore_current_thread+switch_to_thread, and call
6816 target_stopped_by_watchpoint instead of
6817 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
6818 instead of thread_stopped_by_sw_breakpoint, and
6819 target_stopped_by_hw_breakpoint instead of
6820 thread_stopped_by_hw_breakpoint.
6821 (handle_inferior_event)
6822 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
6823 inferior_ptid directly, nor
6824 set_current_inferior/set_current_program_space. Use
6825 switch_to_thread / switch_to_inferior_no_thread instead.
6826
a0776b13
PA
68272020-06-18 Pedro Alves <palves@redhat.com>
6828
6829 * target.c (generic_mourn_inferior): Use switch_to_no_thread
6830 instead of writing to inferior_ptid.
6831
6155c136
PA
68322020-06-18 Pedro Alves <palves@redhat.com>
6833
6834 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
6835 added thread.
6836 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
6837 to the added thread.
6838 (inf_ptrace_target::detach_success): Use switch_to_no_thread
6839 instead of writing to inferior_ptid.
6840
c5316fc6
PA
68412020-06-18 Pedro Alves <palves@redhat.com>
6842
6843 * gdbarch-selftests.c: Include "progspace-and-thread.h".
6844 (register_to_value_test): Mock a program_space too. Heap-allocate
6845 the address space. Don't write to inferior_ptid. Use
6846 switch_to_thread instead.
6847
8df01799
PA
68482020-06-18 Pedro Alves <palves@redhat.com>
6849
6850 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
6851 Delete.
6852 (find_signalled_thread()): New, factored out from
6853 linux_make_corefile_notes and adjusted to handle exited threads.
6854 (linux_make_corefile_notes): Adjust to use the new
6855 find_signalled_thread.
6856
41792d68
PA
68572020-06-18 Pedro Alves <palves@redhat.com>
6858
6859 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
6860 of saving/restoring inferior_ptid.
6861
612f258a
TT
68622020-06-17 Tom Tromey <tom@tromey.com>
6863
6864 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
6865 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
6866 declare.
6867 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
6868
efb763a5
SM
68692020-06-15 Simon Marchi <simon.marchi@efficios.com>
6870
6871 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
6872 of partial symtabs.
6873
2951f6c0
SM
68742020-06-17 Simon Marchi <simon.marchi@efficios.com>
6875
6876 * regformats/reg-arm.dat: Remove.
6877 * regformats/reg-bfin.dat: Remove.
6878 * regformats/reg-cris.dat: Remove.
6879 * regformats/reg-crisv32.dat: Remove.
6880 * regformats/reg-m32r.dat: Remove.
6881 * regformats/reg-tilegx.dat: Remove.
6882 * regformats/reg-tilegx32.dat: Remove.
6883
7d458ea5
SM
68842020-06-17 Simon Marchi <simon.marchi@efficios.com>
6885
6886 * features/Makefile (WHICH): Remove arm files.
6887 * regformats/arm/arm-with-iwmmxt.dat: Remove.
6888 * regformats/arm/arm-with-neon.dat: Remove.
6889 * regformats/arm/arm-with-vfpv2.dat: Remove.
6890 * regformats/arm/arm-with-vfpv3.dat: Remove.
6891
3af96c0d
SM
68922020-06-17 Simon Marchi <simon.marchi@efficios.com>
6893
6894 * features/Makefile (XMLTOC): Remove rx.xml.
6895
b25e22fd
PA
68962020-06-17 Pedro Alves <palves@redhat.com>
6897
6898 * gdbthread.h (thread_control_state) <trap_expected> Update
6899 comments.
6900
a78a19b1
AB
69012020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6902
6903 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
6904 ada_language::lookup_symbol_nonlocal.
6905 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
6906 (ada_language::lookup_symbol_nonlocal): New member function,
6907 implementation from ada_lookup_symbol_nonlocal.
6908 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
6909 initializer.
6910 (cplus_language_data): Delete la_lookup_symbol_nonlocal
6911 initializer.
6912 (cplus_language::lookup_symbol_nonlocal): New member function.
6913 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
6914 (minimal_language_data) Likewise.
6915 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
6916 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
6917 initializer.
6918 (d_language::lookup_symbol_nonlocal): New member function.
6919 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
6920 initializer.
6921 (f_language::lookup_symbol_nonlocal): New member function.
6922 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
6923 initializer.
6924 * language.c (unknown_language_data): Likewise.
6925 (auto_language_data): Likewise.
6926 * language.h (language_data): Delete la_lookup_symbol_nonlocal
6927 field.
6928 (language_defn::lookup_symbol_nonlocal): New member function.
6929 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
6930 initializer.
6931 * objc-lang.c (objc_language_data): Likewise.
6932 * opencl-lang.c (opencl_language_data): Likewise.
6933 * p-lang.c (pascal_language_data): Likewise.
6934 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
6935 rust_language::lookup_symbol_nonlocal.
6936 (rust_language_data): Delete la_lookup_symbol_nonlocal
6937 initializer.
6938 (rust_language::lookup_symbol_nonlocal): New member function,
6939 implementation from rust_lookup_symbol_nonlocal.
6940 * symtab.c (lookup_symbol_aux): Update call to
6941 lookup_symbol_nonlocal.
6942 (basic_lookup_symbol_nonlocal): Rename to...
6943 (language_defn::lookup_symbol_nonlocal): ...this, and update
6944 header comment. Remove language_defn parameter, and replace with
6945 uses of `this'.
6946 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
6947
ebe2334e
AB
69482020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6949
6950 * ada-lang.c (ada_language_data): Delete la_value_print_inner
6951 initializer.
6952 (ada_language::value_print_inner): New member function.
6953 * c-lang.c (c_language_data): Delete la_value_print_inner
6954 initializer.
6955 (cplus_language_data): Likewise.
6956 (asm_language_data): Likewise.
6957 (minimal_language_data): Likewise.
6958 * d-lang.c (d_language_data): Likewise.
6959 (d_language::value_print_inner): New member function.
6960 * f-lang.c (f_language_data): Delete la_value_print_inner
6961 initializer.
6962 (f_language::value_print_inner): New member function.
6963 * f-lang.h (f_value_print_innner): Rename to...
6964 (f_value_print_inner): ...this (note spelling of 'inner').
6965 * f-valprint.c (f_value_print_innner): Rename to...
6966 (f_value_print_inner): ...this (note spelling of 'inner').
6967 * go-lang.c (go_language_data): Delete la_value_print_inner
6968 initializer.
6969 (go_language::value_print_inner): New member function.
6970 * language.c (language_defn::value_print_inner): Define new member
6971 function.
6972 (unk_lang_value_print_inner): Delete.
6973 (unknown_language_data): Delete la_value_print_inner initializer.
6974 (unknown_language::value_print_inner): New member function.
6975 (auto_language_data): Delete la_value_print_inner initializer.
6976 (auto_language::value_print_inner): New member function.
6977 * language.h (language_data): Delete la_value_print_inner field.
6978 (language_defn::value_print_inner): Delcare new member function.
6979 * m2-lang.c (m2_language_data): Delete la_value_print_inner
6980 initializer.
6981 (m2_language::value_print_inner): New member function.
6982 * objc-lang.c (objc_language_data): Delete la_value_print_inner
6983 initializer.
6984 * opencl-lang.c (opencl_language_data): Likewise.
6985 * p-lang.c (pascal_language_data): Likewise.
6986 (pascal_language::value_print_inner): New member function.
6987 * rust-lang.c (rust_language_data): Delete la_value_print_inner
6988 initializer.
6989 (rust_language::value_print_inner): New member function.
6990 * valprint.c (do_val_print): Update call to value_print_inner.
6991
a1d1fa3e
AB
69922020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6993
6994 * ada-lang.c (ada_language_data): Delete la_value_print
6995 initializer.
6996 (ada_language::value_print): New member function.
6997 * c-lang.c (c_language_data): Delete la_value_print initializer.
6998 (cplus_language_data): Likewise.
6999 (asm_language_data): Likewise.
7000 (minimal_language_data): Likewise.
7001 * d-lang.c (d_language_data): Likewise.
7002 * f-lang.c (f_language_data): Likewise.
7003 * go-lang.c (go_language_data): Likewise.
7004 * language.c (unk_lang_value_print): Delete.
7005 (language_defn::value_print): Define new member function.
7006 (unknown_language_data): Delete la_value_print initializer.
7007 (unknown_language::value_print): New member function.
7008 (auto_language_data): Delete la_value_print initializer.
7009 (auto_language::value_print): New member function.
7010 * language.h (language_data): Delete la_value_print field.
7011 (language_defn::value_print): Declare new member function.
7012 (LA_VALUE_PRINT): Update call to value_print.
7013 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
7014 * objc-lang.c (objc_language_data): Likewise.
7015 * opencl-lang.c (opencl_language_data): Likewise.
7016 * p-lang.c (pascal_language_data): Likewise.
7017 (pascal_language::value_print): New member function.
7018 * rust-lang.c (rust_language_data): Delete la_value_print
7019 initializer.
7020
f16a9f57
AB
70212020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7022
7023 * ada-lang.c (ada_watch_location_expression): Rename to
7024 ada_language::watch_location_expression.
7025 (ada_language_data): Delete la_watch_location_expression
7026 initializer.
7027 (ada_language::watch_location_expression): New member function,
7028 implementation from ada_watch_location_expression.
7029 * breakpoint.c (watch_command_1): Update call to
7030 watch_location_expression.
7031 * c-lang.c (c_watch_location_expression): Rename to
7032 language_defn::watch_location_expression.
7033 (c_language_data): Delete la_watch_location_expression
7034 initializer.
7035 (cplus_language_data): Likewise.
7036 (asm_language_data): Likewise.
7037 (minimal_language_data): Likewise.
7038 * c-lang.h (c_watch_location_expression): Delete declaration.
7039 * d-lang.c (d_language_data): Delete la_watch_location_expression
7040 initializer.
7041 * f-lang.c (f_language_data): Likewise.
7042 * go-lang.c (go_language_data): Likewise.
7043 * language.c (language_defn::watch_location_expression): Member
7044 function implementation from c_watch_location_expression.
7045 (unknown_language_data): Delete la_watch_location_expression
7046 initializer.
7047 (auto_language_data): Likewise.
7048 * language.h (language_data): Delete la_watch_location_expression
7049 field.
7050 (language_defn::watch_location_expression): Declare new member
7051 function.
7052 * m2-lang.c (m2_language_data): Delete
7053 la_watch_location_expression initializer.
7054 * objc-lang.c (objc_language_data): Likewise.
7055 * opencl-lang.c (opencl_language_data): Likewise.
7056 * p-lang.c (pascal_language_data): Likewise.
7057 * rust-lang.c (rust_watch_location_expression): Rename to
7058 rust_language::watch_location_expression.
7059 (rust_language_data): Delete la_watch_location_expression
7060 initializer.
7061 (rust_language::watch_location_expression): New member function,
7062 implementation from rust_watch_location_expression.
7063
7e56227d
AB
70642020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7065
7066 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
7067 ada_language::collect_symbol_completion_matches.
7068 (ada_language_data): Delete la_collect_symbol_completion_matches
7069 initializer.
7070 (ada_language::collect_symbol_completion_matches): New member
7071 function, implementation from
7072 ada_collect_symbol_completion_matches.
7073 * c-lang.c (c_language_data): Delete
7074 la_collect_symbol_completion_matches initializer.
7075 (cplus_language_data): Likewise.
7076 (asm_language_data): Likewise.
7077 (minimal_language_data): Likewise.
7078 * d-lang.c (d_language_data): Likewise.
7079 * f-lang.c (f_collect_symbol_completion_matches): Rename to
7080 f_language::collect_symbol_completion_matches.
7081 (f_language_data): Delete la_collect_symbol_completion_matches
7082 initializer.
7083 (f_language::collect_symbol_completion_matches) New member
7084 function, implementation from f_collect_symbol_completion_matches.
7085 * go-lang.c (go_language_data): Delete
7086 la_collect_symbol_completion_matches initializer.
7087 * language.c (unknown_language_data): Likewise.
7088 (auto_language_data): Likewise.
7089 * language.h (language_data): Delete
7090 la_collect_symbol_completion_matches field.
7091 (language_defn::collect_symbol_completion_matches): New member
7092 function.
7093 * m2-lang.c (m2_language_data): Delete
7094 la_collect_symbol_completion_matches initializer.
7095 * objc-lang.c (objc_language_data): Likewise.
7096 * opencl-lang.c (opencl_language_data): Likewise.
7097 * p-lang.c (pascal_language_data): Likewise.
7098 * rust-lang.c (rust_language_data): Likewise.
7099 * symtab.c (default_collect_symbol_completion_matches): Delete.
7100 (collect_symbol_completion_matches): Update call to
7101 collect_symbol_completion_matches.
7102 (collect_symbol_completion_matches_type): Likewise.
7103 * symtab.h (default_collect_symbol_completion_matches): Delete
7104 declaration.
7105
53fc67f8
AB
71062020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7107
7108 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
7109 (ada_language_data): Delete la_word_break_characters initializer.
7110 (ada_language::word_break_characters): New member function.
7111 * c-lang.c (c_language_data): Delete la_word_break_characters
7112 initializer.
7113 (cplus_language_data): Likewise.
7114 (asm_language_data): Likewise.
7115 (minimal_language_data): Likewise.
7116 * completer.c: Update global comment.
7117 (advance_to_expression_complete_word_point): Update call to
7118 word_break_characters.
7119 (complete_files_symbols): Likewise.
7120 (complete_line_internal_1): Likewise.
7121 (default_completer_handle_brkchars): Likewise.
7122 (skip_quoted_chars): Likewise.
7123 * d-lang.c (d_language_data): Delete la_word_break_characters
7124 initializer.
7125 * f-lang.c (f_word_break_characters): Delete.
7126 (f_language_data): Delete la_word_break_characters initializer.
7127 (f_language::word_break_characters): New member function.
7128 * go-lang.c (go_language_data): Delete la_word_break_characters
7129 initializer.
7130 * language.c (unknown_language_data): Likewise.
7131 (auto_language_data): Likewise.
7132 * language.h (default_word_break_characters): Move declaration to
7133 earlier in the file.
7134 (language_data): Delete la_word_break_characters field.
7135 (language_defn::word_break_characters): New member function.
7136 * m2-lang.c (m2_language_data): Delete la_word_break_characters
7137 initializer.
7138 * objc-lang.c (objc_language_data): Likewise.
7139 * opencl-lang.c (opencl_language_data): Likewise.
7140 * p-lang.c (pascal_language_data): Likewise.
7141 * rust-lang.c (rust_language_data): Likewise.
7142
c9debfb9
AB
71432020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7144
7145 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
7146 (ada_language_data): Delete la_get_symbol_name_matcher
7147 initializer.
7148 (language_defn::get_symbol_name_matcher_inner): New member
7149 function.
7150 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
7151 initializer.
7152 (cplus_language_data): Likewise.
7153 (cplus_language::get_symbol_name_matcher_inner): New member
7154 function.
7155 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
7156 (minimal_language_data): Likewise.
7157 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
7158 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
7159 initializer.
7160 * dictionary.c (iter_match_first_hashed): Update call to
7161 get_symbol_name_matcher.
7162 (iter_match_next_hashed): Likewise.
7163 (iter_match_next_linear): Likewise.
7164 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
7165 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
7166 initializer.
7167 (f_language::get_symbol_name_matcher_inner): New member function.
7168 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
7169 initializer.
7170 * language.c (default_symbol_name_matcher): Update header comment,
7171 make static.
7172 (language_defn::get_symbol_name_matcher): New definition.
7173 (language_defn::get_symbol_name_matcher_inner): Likewise.
7174 (get_symbol_name_matcher): Delete.
7175 (unknown_language_data): Delete la_get_symbol_name_matcher
7176 initializer.
7177 (auto_language_data): Likewise.
7178 * language.h (language_data): Delete la_get_symbol_name_matcher
7179 field.
7180 (language_defn::get_symbol_name_matcher): New member function.
7181 (language_defn::get_symbol_name_matcher_inner): Likewise.
7182 (default_symbol_name_matcher): Delete declaration.
7183 * linespec.c (find_methods): Update call to
7184 get_symbol_name_matcher.
7185 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
7186 initializer.
7187 * minsyms.c (lookup_minimal_symbol): Update call to
7188 get_symbol_name_matcher.
7189 (iterate_over_minimal_symbols): Likewise.
7190 * objc-lang.c (objc_language_data): Delete
7191 la_get_symbol_name_matcher initializer.
7192 * opencl-lang.c (opencl_language_data): Likewise.
7193 * p-lang.c (pascal_language_data): Likewise.
7194 * psymtab.c (psymbol_name_matches): Update call to
7195 get_symbol_name_matcher.
7196 * rust-lang.c (rust_language_data): Delete
7197 la_get_symbol_name_matcher initializer.
7198 * symtab.c (symbol_matches_search_name): Update call to
7199 get_symbol_name_matcher.
7200 (compare_symbol_name): Likewise.
7201
9a49ad8c
AB
72022020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7203
7204 * ada-lang.c (ada_language_data): Delete la_compute_program
7205 initializer.
7206 * c-lang.c (c_language_data): Likewise.
7207 (c_language::compute_program): New member function.
7208 (cplus_language_data): Delete la_compute_program initializer.
7209 (cplus_language::compute_program): New member function.
7210 (asm_language_data): Delete la_compute_program initializer.
7211 (minimal_language_data): Likewise.
7212 * c-lang.h (c_compute_program): Update comment.
7213 (cplus_compute_program): Likewise.
7214 * compile/compile-c-support.c (c_compute_program): Likewise.
7215 (cplus_compute_program): Likewise.
7216 * compile/compile.c (compile_to_object): Update call to
7217 la_compute_program.
7218 * d-lang.c (d_language_data): Delete la_compute_program
7219 initializer.
7220 * f-lang.c (f_language_data): Likewise.
7221 * go-lang.c (go_language_data): Likewise.
7222 * language.c (unknown_language_data): Likewise.
7223 (auto_language_data): Likewise.
7224 * language.h (language_data): Delete la_compute_program field.
7225 (language_defn::compute_program): New member function.
7226 * m2-lang.c (m2_language_data): Delete la_compute_program
7227 initializer.
7228 * objc-lang.c (objc_language_data): Likewise.
7229 * opencl-lang.c (opencl_language_data): Likewise.
7230 * p-lang.c (pascal_language_data): Likewise.
7231 * rust-lang.c (rust_language_data): Likewise.
7232
eff93b4d
AB
72332020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7234
7235 * ada-lang.c (ada_language_data) Delete
7236 la_class_name_from_physname initializer.
7237 * c-lang.c (c_language_data): Likewise.
7238 (cplus_language_data): Likewise.
7239 (cplus_language::class_name_from_physname): New member function.
7240 (asm_language_data): Delete la_class_name_from_physname
7241 initializer.
7242 (minimal_language_data): Likewise.
7243 * d-lang.c (d_language_data): Likewise.
7244 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
7245 method on language_defn class.
7246 (guess_full_die_structure_name): Likewise.
7247 * f-lang.c (f_language_data): Delete la_class_name_from_physname
7248 initializer.
7249 * go-lang.c (go_language_data): Likewise.
7250 * language.c (language_class_name_from_physname): Delete.
7251 (unk_lang_class_name): Delete.
7252 (unknown_language_data): Delete la_class_name_from_physname
7253 initializer.
7254 (auto_language_data): Likewise.
7255 * language.h (language_data): Delete la_class_name_from_physname
7256 field.
7257 (language_defn::class_name_from_physname): New function.
7258 (language_class_name_from_physname): Delete declaration.
7259 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
7260 initializer.
7261 * objc-lang.c (objc_language_data): Likewise.
7262 * opencl-lang.c (opencl_language_data): Likewise.
7263 * p-lang.c (pascal_language_data): Likewise.
7264 * rust-lang.c (rust_language_data): Likewise.
7265
de543742
TT
72662020-06-16 Tom Tromey <tom@tromey.com>
7267
7268 * tui/tui-data.h (STATUS_NAME): New macro.
7269 * tui/tui-layout.c (tui_remove_some_windows)
7270 (initialize_known_windows, tui_register_window)
7271 (tui_layout_split::remove_windows, initialize_layouts)
7272 (tui_new_layout_command): Don't use hard-coded window names.
7273
a350efd4
TT
72742020-06-16 Tom Tromey <tom@tromey.com>
7275
7276 PR tui/25348:
7277 * tui/tui.c (tui_ensure_readline_initialized): Rename from
7278 tui_initialize_readline. Only run once. Call rl_initialize.
7279 * tui/tui.h (tui_ensure_readline_initialized): Rename from
7280 tui_initialize_readline.
7281 * tui/tui-io.c (tui_setup_io): Call
7282 tui_ensure_readline_initialized.
7283 * tui/tui-interp.c (tui_interp::init): Update.
7284
39ec0490
TT
72852020-06-16 Tom Tromey <tom@tromey.com>
7286
7287 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
7288 Also preserve the status window.
7289
d2d1ea20
TT
72902020-06-16 Tom Tromey <tom@tromey.com>
7291
7292 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
7293 where m_window==nullptr.
7294
66920317
TT
72952020-06-15 Tom Tromey <tromey@adacore.com>
7296
7297 * windows-nat.c (windows_nat::handle_output_debug_string):
7298 Update.
7299 (windows_nat::handle_ms_vc_exception): Update.
7300 * target.h (target_read_string): Change API.
7301 * target.c (target_read_string): Change API.
7302 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
7303 Update.
7304 * solib-frv.c (frv_current_sos): Update.
7305 * solib-dsbt.c (dsbt_current_sos): Update.
7306 * solib-darwin.c (darwin_current_sos): Update.
7307 * linux-thread-db.c (inferior_has_bug): Update.
7308 * expprint.c (print_subexp_standard): Update.
7309 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
7310 (ada_exception_message_1): Update.
7311
a5d871dd
TT
73122020-06-15 Tom Tromey <tromey@adacore.com>
7313
7314 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
7315
670e35fa
TT
73162020-06-15 Tom Tromey <tromey@adacore.com>
7317
7318 * valprint.c (read_string): Update comment.
7319 * target.c (MIN): Remove.
7320 (target_read_string): Rewrite.
7321
f5272a3b
TT
73222020-06-15 Tom Tromey <tromey@adacore.com>
7323
7324 * corefile.c (read_memory_string): Remove.
7325 * ada-valprint.c (ada_value_print_ptr): Update.
7326 * ada-lang.h (ada_tag_name): Change return type.
7327 * ada-lang.c (type_from_tag): Update.
7328 (ada_tag_name_from_tsd): Change return type. Use
7329 target_read_string.
7330 (ada_tag_name): Likewise.
7331 * gdbcore.h (read_memory_string): Don't declare.
7332
2c074f49
HD
73332020-06-14 Hannes Domani <ssbssa@yahoo.de>
7334
7335 * symtab.c (rbreak_command): Ignore Windows drive colon.
7336
6a17d503
SM
73372020-06-12 Simon Marchi <simon.marchi@efficios.com>
7338
7339 * NEWS: Mention removed GDBserver host support.
7340
453c733f
NC
73412020-06-12 Nelson Chu <nelson.chu@sifive.com>
7342
7343 * features/riscv/rebuild-csr-xml.sh: Updated.
7344
2b4e6a3f
TT
73452020-06-11 Tom Tromey <tom@tromey.com>
7346
7347 PR gdb/18318:
7348 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
7349
4412332f
JG
73502020-06-09 Jonny Grant <jg@jguk.org>
73512020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
7352
7353 * main.c (captured_main_1): Don't print new line after help.
7354 (print_gdb_help): add mailing list and IRC channel information
7355 to --help. Add new lines between items in the footer. Remove
7356 quotes around bug url.
7357
2f33032a
KS
73582020-06-11 Keith Seitz <keiths@redhat.com>
7359
7360 PR gdb/21356
7361 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
7362 Resolve typedefs for type length calculations.
7363
7ab96794
TV
73642020-06-10 Tom de Vries <tdevries@suse.de>
7365
7366 PR ada/24713
7367 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
7368 (write_psymbols): Enable .gdb_index for ada.
7369 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
7370 ada.
7371
e5f3ece2
TV
73722020-06-10 Tom de Vries <tdevries@suse.de>
7373
7374 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
7375 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
7376 namei" instead of "const char *name" argument.
7377 (dw2_map_matching_symbols): Use "offset_type namei" variant of
7378 dw2_symtab_iter_init.
7379
940da03e
SM
73802020-06-08 Simon Marchi <simon.marchi@efficios.com>
7381
7382 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
7383 to use type::field and field::type instead.
7384
b6cdac4b
SM
73852020-06-08 Simon Marchi <simon.marchi@efficios.com>
7386
7387 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
7388 to use field::type instead.
7389
5d14b6e5
SM
73902020-06-08 Simon Marchi <simon.marchi@efficios.com>
7391
7392 * gdbtypes.h (struct field) <type, set_type>: New methods.
7393 Rename `type` field to...
7394 <m_type>: ... this. Change references throughout to use type or
7395 set_type methods.
7396 (FIELD_TYPE): Use field::type. Change call sites that modify
7397 the field's type to use field::set_type instead.
7398
3d967001
SM
73992020-06-08 Simon Marchi <simon.marchi@efficios.com>
7400
7401 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
7402 to use type::index_type instead.
7403
262abc0d
SM
74042020-06-08 Simon Marchi <simon.marchi@efficios.com>
7405
7406 * gdbtypes.h (struct type) <index_type, set_index_type>: New
7407 methods.
7408 (TYPE_INDEX_TYPE): Use type::index_type.
7409 * gdbtypes.c (create_array_type_with_stride): Likewise.
7410
82836c92
TT
74112020-06-07 Tom Tromey <tom@tromey.com>
7412
7413 * valprint.c (generic_val_print_float): Remove "embedded_offset"
7414 parameter.
7415 (generic_value_print): Update.
7416
940dace9
AB
74172020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
7418
7419 Revert commit 982a38f60b0.
7420 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
7421
982a38f6
AB
74222020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
7423
7424 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
7425 avoid use after free.
7426
82f06518
TV
74272020-06-05 Tom de Vries <tdevries@suse.de>
7428
7429 * NEWS: Fix typos.
7430
f8c41851
SM
74312020-06-04 Simon Marchi <simon.marchi@efficios.com>
7432
7433 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
7434 the per_bfd object.
7435 (dwarf2_read_debug_names): Likewise.
7436 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
7437 object when re-using a per_bfd object with an index.
7438
f9b5d5ea
TV
74392020-06-03 Tom de Vries <tdevries@suse.de>
7440
7441 PR symtab/26046
7442 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
7443 children for C++.
7444 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
7445 DW_TAG_subprogram.
7446
f6eee2d0
AB
74472020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7448
7449 * ada-lang.c (ada_language_data): Delete skip_trampoline
7450 initializer.
7451 * c-lang.c (c_language_data): Likewise.
7452 (cplus_language_data): Likewise.
7453 (cplus_language::skip_trampoline): New member function.
7454 (asm_language_data): Delete skip_trampoline initializer.
7455 (minimal_language_data): Likewise.
7456 * d-lang.c (d_language_data): Likewise.
7457 * f-lang.c (f_language_data): Likewise.
7458 * go-lang.c (go_language_data): Likewise.
7459 * language.c (unk_lang_trampoline): Delete function.
7460 (skip_language_trampoline): Update.
7461 (unknown_language_data): Delete skip_trampoline initializer.
7462 (auto_language_data): Likewise.
7463 * language.h (language_data): Delete skip_trampoline field.
7464 (language_defn::skip_trampoline): New function.
7465 * m2-lang.c (m2_language_data): Delete skip_trampoline
7466 initializer.
7467 * objc-lang.c (objc_skip_trampoline): Delete function, move
7468 implementation to objc_language::skip_trampoline.
7469 (objc_language_data): Delete skip_trampoline initializer.
7470 (objc_language::skip_trampoline): New member function with
7471 implementation from objc_skip_trampoline.
7472 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
7473 initializer.
7474 * p-lang.c (pascal_language_data): Likewise.
7475 * rust-lang.c (rust_language_data): Likewise.
7476
0a50df5d
AB
74772020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7478
7479 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
7480 (ada_language::demangle): New member function.
7481 * c-lang.c (c_language_data): Delete la_demangle initializer.
7482 (cplus_language_data): Delete la_demangle initializer.
7483 (cplus_language::demangle): New member function.
7484 (asm_language_data): Delete la_demangle initializer.
7485 (minimal_language_data): Delete la_demangle initializer.
7486 * d-lang.c (d_language_data): Delete la_demangle initializer.
7487 (d_language::demangle): New member function.
7488 * f-lang.c (f_language_data): Delete la_demangle initializer.
7489 (f_language::demangle): New member function.
7490 * go-lang.c (go_language_data): Delete la_demangle initializer.
7491 (go_language::demangle): New member function.
7492 * language.c (language_demangle): Update.
7493 (unk_lang_demangle): Delete.
7494 (unknown_language_data): Delete la_demangle initializer.
7495 (unknown_language::demangle): New member function.
7496 (auto_language_data): Delete la_demangle initializer.
7497 (auto_language::demangle): New member function.
7498 * language.h (language_data): Delete la_demangle field.
7499 (language_defn::demangle): New function.
7500 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
7501 * objc-lang.c (objc_language_data): Delete la_demangle
7502 initializer.
7503 (objc_language::demangle): New member function.
7504 * opencl-lang.c (opencl_language_data): Delete la_demangle
7505 initializer.
7506 * p-lang.c (pascal_language_data): Likewise.
7507 * rust-lang.c (rust_language_data): Likewise.
7508 (rust_language::demangle): New member function.
7509
fbfb0a46
AB
75102020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7511
7512 * ada-lang.c (ada_language_data): Delete la_print_type
7513 initializer.
7514 (ada_language::print_type): New member function.
7515 * c-lang.c (c_language_data): Delete la_print_type initializer.
7516 (c_language::print_type): New member function.
7517 (cplus_language_data): Delete la_print_type initializer.
7518 (cplus_language::print_type): New member function.
7519 (asm_language_data): Delete la_print_type initializer.
7520 (asm_language::print_type): New member function.
7521 (minimal_language_data): Delete la_print_type initializer.
7522 (minimal_language::print_type): New member function.
7523 * d-lang.c (d_language_data): Delete la_print_type initializer.
7524 (d_language::print_type): New member function.
7525 * f-lang.c (f_language_data): Delete la_print_type initializer.
7526 (f_language::print_type): New member function.
7527 * go-lang.c (go_language_data): Delete la_print_type initializer.
7528 (go_language::print_type): New member function.
7529 * language.c (unk_lang_print_type): Delete.
7530 (unknown_language_data): Delete la_print_type initializer.
7531 (unknown_language::print_type): New member function.
7532 (auto_language_data): Delete la_print_type initializer.
7533 (auto_language::print_type): New member function.
7534 * language.h (language_data): Delete la_print_type field.
7535 (language_defn::print_type): New function.
7536 (LA_PRINT_TYPE): Update.
7537 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
7538 (m2_language::print_type): New member function.
7539 * objc-lang.c (objc_language_data): Delete la_print_type
7540 initializer.
7541 (objc_language::print_type): New member function.
7542 * opencl-lang.c (opencl_print_type): Delete, implementation moved
7543 to opencl_language::print_type.
7544 (opencl_language_data): Delete la_print_type initializer.
7545 (opencl_language::print_type): New member function, implementation
7546 from opencl_print_type.
7547 * p-lang.c (pascal_language_data): Delete la_print_type
7548 initializer.
7549 (pascal_language::print_type): New member function.
7550 * rust-lang.c (rust_print_type): Delete, implementation moved to
7551 rust_language::print_type.
7552 (rust_language_data): Delete la_print_type initializer.
7553 (rust_language::print_type): New member function, implementation
7554 from rust_print_type.
7555
6f827019
AB
75562020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7557
7558 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
7559 implementation moves to...
7560 (ada_language::sniff_from_mangled_name): ...here. Update return
7561 type.
7562 (ada_language_data): Delete la_sniff_from_mangled_name
7563 initializer.
7564 * c-lang.c (c_language_data): Likewise.
7565 (cplus_language_data): Likewise.
7566 (cplus_language::sniff_from_mangled_name): New member function,
7567 implementation taken from gdb_sniff_from_mangled_name.
7568 (asm_language_data): Delete la_sniff_from_mangled_name
7569 initializer.
7570 (minimal_language_data): Likewise.
7571 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
7572 implementation moves to cplus_language::sniff_from_mangled_name.
7573 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
7574 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
7575 moves to...
7576 (d_language::sniff_from_mangled_name): ...here.
7577 (d_language_data): Delete la_sniff_from_mangled_name initializer.
7578 * f-lang.c (f_language_data): Likewise.
7579 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
7580 moves to...
7581 (go_language::sniff_from_mangled_name): ...here.
7582 (go_language_data): Delete la_sniff_from_mangled_name initializer.
7583 * language.c (language_sniff_from_mangled_name): Delete.
7584 (unknown_language_data): Delete la_sniff_from_mangled_name
7585 initializer.
7586 (auto_language_data): Likewise.
7587 * language.h (language_data): Delete la_sniff_from_mangled_name
7588 field.
7589 (language_defn::sniff_from_mangled_name): New function.
7590 (language_sniff_from_mangled_name): Delete declaration.
7591 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
7592 field.
7593 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
7594 implementation moves to...
7595 (objc_language::sniff_from_mangled_name): ...here.
7596 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
7597 * opencl-lang.c (opencl_language_data): Likewise.
7598 * p-lang.c (pascal_language_data): Likewise.
7599 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
7600 implementation moves to...
7601 (rust_language::sniff_from_mangled_name): ...here.
7602 (rust_language_data): Delete la_sniff_from_mangled_name
7603 initializer.
7604 * symtab.c (symbol_find_demangled_name): Call
7605 sniff_from_mangled_name member function.
7606
fb8006fd
AB
76072020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7608
7609 * ada-lang.c (ada_language_data): Delete la_search_name_hash
7610 initializer.
7611 * c-lang.c (c_language_data): Likewise.
7612 (cplus_language_data): Likewise.
7613 (cplus_language::search_name_hash): New member function.
7614 (asm_language_data): Delete la_search_name_hash initializer.
7615 (minimal_language_data): Likewise.
7616 * d-lang.c (d_language_data): Likewise.
7617 * dictionary.c (default_search_name_hash): Rename to...
7618 (language_defn::search_name_hash): ...this.
7619 * f-lang.c (f_language_data): Likewise.
7620 (f_language::search_name_hash): New member function.
7621 * go-lang.c (go_language_data): Delete la_search_name_hash
7622 initializer.
7623 * language.c (unknown_language_data): Likewise.
7624 (auto_language_data): Likewise.
7625 * language.h (struct language_data): Delete la_search_name_hash
7626 field.
7627 (language_defn::search_name_hash): Declare new member function.
7628 (default_search_name_hash): Delete declaration.
7629 * m2-lang.c (m2_language_data): Delete la_search_name_hash
7630 initializer.
7631 * objc-lang.c (objc_language_data): Likewise.
7632 * opencl-lang.c (opencl_language_data): Likewise.
7633 * p-lang.c (pascal_language_data): Likewise.
7634 * rust-lang.c (rust_language_data): Likewise.
7635 * symtab.c (search_name_hash): Update call.
7636
8e25bafe
AB
76372020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7638
7639 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
7640 initializer.
7641 * c-lang.c (class compile_instance): Declare.
7642 (c_language_data): Delete la_get_compile_instance initializer.
7643 (c_language::get_compile_instance): New member function.
7644 (cplus_language_data): Delete la_get_compile_instance initializer.
7645 (cplus_language::get_compile_instance): New member function.
7646 (asm_language_data): Delete la_get_compile_instance initializer.
7647 (minimal_language_data): Likewise.
7648 * c-lang.h (c_get_compile_context): Update comment.
7649 (cplus_get_compile_context): Update comment.
7650 * compile/compile.c (compile_to_object): Update calls, don't rely
7651 on function pointer being NULL.
7652 * d-lang.c (d_language_data): Delete la_get_compile_instance
7653 initializer.
7654 * f-lang.c (f_language_data): Likewise.
7655 * go-lang.c (go_language_data): Likewise.
7656 * language.c (unknown_language_data): Likewise.
7657 (auto_language_data): Likewise.
7658 * language.h (language_data): Delete la_get_compile_instance field.
7659 (language_defn::get_compile_instance): New member function.
7660 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
7661 initializer.
7662 * objc-lang.c (objc_language_data): Likewise.
7663 * opencl-lang.c (opencl_language_data): Likewise.
7664 * p-lang.c (pascal_language_data): Likewise.
7665 * rust-lang.c (rust_language_data): Likewise.
7666
4009ee92
AB
76672020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7668
7669 * ada-lang.c (ada_add_all_symbols): Update comment.
7670 (ada_iterate_over_symbols): Delete, move implementation to...
7671 (ada_language::iterate_over_symbols): ...here, a new member
7672 function, rewrite to use range based for loop.
7673 (ada_language_data): Delete la_iterate_over_symbols initializer.
7674 * c-lang.c (c_language_data): Likewise.
7675 (cplus_language_data): Likewise.
7676 (asm_language_data): Likewise.
7677 (minimal_language_data): Likewise.
7678 * d-lang.c (d_language_data): Likewise.
7679 * f-lang.c (f_language_data): Likewise.
7680 * go-lang.c (go_language_data): Likewise.
7681 * language.c (unknown_language_data): Likewise.
7682 (auto_language_data): Likewise.
7683 * language.h (language_data): Delete la_iterate_over_symbols field.
7684 (language_defn::iterate_over_symbols): New member function.
7685 (LA_ITERATE_OVER_SYMBOLS): Update.
7686 * linespec.c (iterate_over_all_matching_symtabs): Update.
7687 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
7688 initializer.
7689 * objc-lang.c (objc_language_data): Likewise.
7690 * opencl-lang.c (opencl_language_data): Likewise.
7691 * p-lang.c (pascal_language_data): Likewise.
7692 * rust-lang.c (rust_language_data): Likewise.
7693
54f4ca46
AB
76942020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7695
7696 * ada-lang.c (ada_language_data): Delete
7697 la_lookup_transparent_type initializer.
7698 * c-lang.c (c_language_data): Likewise.
7699 (cplus_language_data): Likewise.
7700 (cplus_language::lookup_transparent_type): New member function.
7701 (asm_language_data): Delete la_lookup_transparent_type
7702 initializer.
7703 (minimal_language_data): Likewise.
7704 * d-lang.c (d_language_data): Likewise.
7705 * f-lang.c (f_language_data): Likewise.
7706 * go-lang.c (go_language_data): Likewise.
7707 * language.c (unknown_language_data): Likewise.
7708 (auto_language_data): Likewise.
7709 * language.h (struct language_data): Delete
7710 la_lookup_transparent_type field.
7711 (language_defn::lookup_transparent_type): New member function.
7712 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
7713 initializer.
7714 * objc-lang.c (objc_language_data): Likewise.
7715 * opencl-lang.c (opencl_language_data): Likewise.
7716 * p-lang.c (pascal_language_data): Likewise.
7717 * rust-lang.c (rust_language_data): Likewise.
7718 * symtab.c (symbol_matches_domain): Update call.
7719
1fb314aa
AB
77202020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7721
7722 * ada-lang.c (ada_language_arch_info): Delete function, move
7723 implementation to...
7724 (ada_language::language_arch_info): ...here, a new member
7725 function.
7726 (ada_language_data): Delete la_language_arch_info.
7727 * c-lang.c (c_language_data): Likewise.
7728 (c_language::language_arch_info): New member function.
7729 (cplus_language_arch_info): Delete function, move
7730 implementation to...
7731 (cplus_language::language_arch_info): ...here, a new member
7732 function.
7733 (cplus_language_data): Delete la_language_arch_info.
7734 (asm_language_data): Likewise.
7735 (asm_language::language_arch_info): New member function.
7736 (minimal_language_data): Delete la_language_arch_info.
7737 (minimal_language::language_arch_info): New member function.
7738 * d-lang.c (d_language_arch_info): Delete function, move
7739 implementation to...
7740 (d_language::language_arch_info): ...here, a new member
7741 function.
7742 (d_language_data): Delete la_language_arch_info.
7743 * f-lang.c (f_language_arch_info): Delete function, move
7744 implementation to...
7745 (f_language::language_arch_info): ...here, a new member
7746 function.
7747 (f_language_data): Delete la_language_arch_info.
7748 * go-lang.c (go_language_arch_info): Delete function, move
7749 implementation to...
7750 (go_language::language_arch_info): ...here, a new member
7751 function.
7752 (go_language_data): Delete la_language_arch_info.
7753 * language.c (unknown_language_data): Likewise.
7754 (unknown_language::language_arch_info): New member function.
7755 (auto_language_data): Delete la_language_arch_info.
7756 (auto_language::language_arch_info): New member function.
7757 (language_gdbarch_post_init): Update call to
7758 la_language_arch_info.
7759 * language.h (language_data): Delete la_language_arch_info
7760 function pointer.
7761 (language_defn::language_arch_info): New function.
7762 * m2-lang.c (m2_language_arch_info): Delete function, move
7763 implementation to...
7764 (m2_language::language_arch_info): ...here, a new member
7765 function.
7766 (m2_language_data): Delete la_language_arch_info.
7767 * objc-lang.c (objc_language_arch_info): Delete function, move
7768 implementation to...
7769 (objc_language::language_arch_info): ...here, a new member
7770 function.
7771 (objc_language_data): Delete la_language_arch_info.
7772 * opencl-lang.c (opencl_language_arch_info): Delete function, move
7773 implementation to...
7774 (opencl_language::language_arch_info): ...here, a new member
7775 function.
7776 (opencl_language_data): Delete la_language_arch_info.
7777 * p-lang.c (pascal_language_arch_info): Delete function, move
7778 implementation to...
7779 (pascal_language::language_arch_info): ...here, a new member
7780 function.
7781 (pascal_language_data): Delete la_language_arch_info.
7782 * rust-lang.c (rust_language_arch_info): Delete function, move
7783 implementation to...
7784 (rust_language::language_arch_info): ...here, a new member
7785 function.
7786 (rust_language_data): Delete la_language_arch_info.
7787
48448202
AB
77882020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7789
7790 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
7791 initializer.
7792 * c-lang.c (c_language_data): Likewise.
7793 (cplus_language_data): Likewise.
7794 (cplus_language::pass_by_reference_info): New method.
7795 (asm_language_data): Delete la_pass_by_reference initializer.
7796 (minimal_language_data): Likewise.
7797 * cp-abi.c (cp_pass_by_reference): Remove use of
7798 default_pass_by_reference.
7799 * d-lang.c (d_language_data): Likewise.
7800 * f-lang.c (f_language_data): Likewise.
7801 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
7802 default_pass_by_reference.
7803 * go-lang.c (go_language_data): Likewise.
7804 * language.c (language_pass_by_reference): Update.
7805 (default_pass_by_reference): Delete.
7806 (unknown_language_data): Delete la_pass_by_reference
7807 initializer.
7808 (auto_language_data): Likewise.
7809 * language.h (struct language_data): Delete la_pass_by_reference
7810 field.
7811 (language_defn::pass_by_reference_info): New member function.
7812 (default_pass_by_reference): Delete declaration.
7813 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
7814 initializer.
7815 * objc-lang.c (objc_language_data): Likewise.
7816 * opencl-lang.c (opencl_language_data): Likewise.
7817 * p-lang.c (pascal_language_data): Likewise.
7818 * rust-lang.c (rust_language_data): Likewise.
7819
15e5fd35
AB
78202020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7821
7822 * ada-lang.c (ada_read_var_value): Delete function, move
7823 implementation to...
7824 (ada_language::read_var_value): ...here.
7825 (ada_language_data): Delete la_read_var_value initializer.
7826 * c-lang.c (c_language_data): Likewise.
7827 (cplus_language_data): Likewise.
7828 (minimal_language_data): Likewise.
7829 * d-lang.c (d_language_data): Likewise.
7830 * f-lang.c (f_language_data): Likewise.
7831 * findvar.c (default_read_var_value): Rename to...
7832 (language_defn::read_var_value): ...this.
7833 * findvar.c (read_var_value): Update header comment, and change to
7834 call member function instead of function pointer.
7835 * go-lang.c (go_language_data): Likewise.
7836 * language.c (unknown_language_data): Delete la_read_var_value
7837 initializer.
7838 (auto_language_data): Likewise.
7839 * language.h (struct language_data): Delete la_read_var_value
7840 field.
7841 (language_defn::read_var_value): New member function.
7842 (default_read_var_value): Delete declaration.
7843 * m2-lang.c (m2_language_data): Delete la_read_var_value
7844 initializer.
7845 * objc-lang.c (objc_language_data): Likewise.
7846 * opencl-lang.c (opencl_language_data): Likewise.
7847 * p-lang.c (pascal_language_data): Likewise.
7848 * rust-lang.c (rust_language_data): Likewise.
7849 * value.h (default_read_var_value): Delete declaration.
7850
5bd40f2a
AB
78512020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7852
7853 * ada-lang.c (ada_print_array_index): Delete function, move
7854 implementation to...
7855 (ada_language::print_array_index): ...here.
7856 (ada_language_data): Delete la_print_array_index initializer.
7857 * c-lang.c (c_language_data): Likewise.
7858 (cplus_language_data): Likewise.
7859 (minimal_language_data): Likewise.
7860 * d-lang.c (d_language_data): Likewise.
7861 * f-lang.c (f_language_data): Likewise.
7862 * go-lang.c (go_language_data): Likewise.
7863 * language.c (default_print_array_index): Delete function, move
7864 implementation to...
7865 (language_defn::print_array_index): ...here.
7866 (unknown_language_data): Delete la_print_array_index initializer.
7867 (auto_language_data): Likewise.
7868 * language.h (struct language_data): Delete la_print_array_index
7869 field.
7870 (language_defn::print_array_index): New member function.
7871 (LA_PRINT_ARRAY_INDEX): Update.
7872 (default_print_array_index): Delete declaration.
7873 * m2-lang.c (m2_language_data): Delete la_print_array_index
7874 initializer.
7875 * objc-lang.c (objc_language_data): Likewise.
7876 * opencl-lang.c (opencl_language_data): Likewise.
7877 * p-lang.c (pascal_language_data): Likewise.
7878 * rust-lang.c (rust_language_data): Likewise.
7879
0874fd07
AB
78802020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7881
7882 * gdb/ada-lang.c (ada_language_defn): Convert to...
7883 (ada_language_data): ...this.
7884 (class ada_language): New class.
7885 (ada_language_defn): New static global.
7886 * gdb/c-lang.c (c_language_defn): Convert to...
7887 (c_language_data): ...this.
7888 (class c_language): New class.
7889 (c_language_defn): New static global.
7890 (cplus_language_defn): Convert to...
7891 (cplus_language_data): ...this.
7892 (class cplus_language): New class.
7893 (cplus_language_defn): New static global.
7894 (asm_language_defn): Convert to...
7895 (asm_language_data): ...this.
7896 (class asm_language): New class.
7897 (asm_language_defn): New static global.
7898 (minimal_language_defn): Convert to...
7899 (minimal_language_data): ...this.
7900 (class minimal_language): New class.
7901 (minimal_language_defn): New static global.
7902 * gdb/d-lang.c (d_language_defn): Convert to...
7903 (d_language_data): ...this.
7904 (class d_language): New class.
7905 (d_language_defn): New static global.
7906 * gdb/f-lang.c (f_language_defn): Convert to...
7907 (f_language_data): ...this.
7908 (class f_language): New class.
7909 (f_language_defn): New static global.
7910 * gdb/go-lang.c (go_language_defn): Convert to...
7911 (go_language_data): ...this.
7912 (class go_language): New class.
7913 (go_language_defn): New static global.
7914 * gdb/language.c (unknown_language_defn): Remove declaration.
7915 (current_language): Initialize to nullptr, real initialization is
7916 moved to _initialize_language.
7917 (languages): Delete global.
7918 (language_defn::languages): Define.
7919 (set_language_command): Use language_defn::languages.
7920 (set_language): Likewise.
7921 (range_error): Likewise.
7922 (language_enum): Likewise.
7923 (language_def): Likewise.
7924 (add_set_language_command): Use language_def::languages for the
7925 language list, and language_def to lookup language pointers.
7926 (skip_language_trampoline): Use language_defn::languages.
7927 (unknown_language_defn): Convert to...
7928 (unknown_language_data): ...this.
7929 (class unknown_language): New class.
7930 (unknown_language_defn): New static global.
7931 (auto_language_defn): Convert to...
7932 (auto_language_data): ...this.
7933 (class auto_language): New class.
7934 (auto_language_defn): New static global.
7935 (language_gdbarch_post_init): Use language_defn::languages.
7936 (_initialize_language): Initialize current_language.
7937 * gdb/language.h (struct language_defn): Rename to...
7938 (struct language_data): ...this.
7939 (struct language_defn): New.
7940 (auto_language_defn): Delete.
7941 (unknown_language_defn): Delete.
7942 (minimal_language_defn): Delete.
7943 (ada_language_defn): Delete.
7944 (asm_language_defn): Delete.
7945 (c_language_defn): Delete.
7946 (cplus_language_defn): Delete.
7947 (d_language_defn): Delete.
7948 (f_language_defn): Delete.
7949 (go_language_defn): Delete.
7950 (m2_language_defn): Delete.
7951 (objc_language_defn): Delete.
7952 (opencl_language_defn): Delete.
7953 (pascal_language_defn): Delete.
7954 (rust_language_defn): Delete.
7955 * gdb/m2-lang.c (m2_language_defn): Convert to...
7956 (m2_language_data): ...this.
7957 (class m2_language): New class.
7958 (m2_language_defn): New static global.
7959 * gdb/objc-lang.c (objc_language_defn): Convert to...
7960 (objc_language_data): ...this.
7961 (class objc_language): New class.
7962 (objc_language_defn): New static global.
7963 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
7964 (opencl_language_data): ...this.
7965 (class opencl_language): New class.
7966 (opencl_language_defn): New static global.
7967 * gdb/p-lang.c (pascal_language_defn): Convert to...
7968 (pascal_language_data): ...this.
7969 (class pascal_language): New class.
7970 (pascal_language_defn): New static global.
7971 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
7972 language pointer, update comment format.
7973 * gdb/rust-lang.c (rust_language_defn): Convert to...
7974 (rust_language_data): ...this.
7975 (class rust_language): New class.
7976 (rust_language_defn): New static global.
7977
1313c56e
AB
79782020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
7979
7980 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
7981 member variable.
7982 <m_stmt_at_address>: New member variable.
7983 (lnp_state_machine::record_line): Don't record some lines, update
7984 tracking of is_stmt at the same address.
7985 (lnp_state_machine::lnp_state_machine): Initialise new member
7986 variables.
7987
b7ed9f3d
ST
79882020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
7989
7990 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
7991 "-include gnu-nat-mig.h".
7992 * gnu-nat-mig.h: New file.
7993 * gnu-nat.c: Include "gnu-nat-mig.h".
7994 (exc_server, msg_reply_server, notify_server,
7995 process_reply_server): Remove declarations.
7996
14a8ad62
ST
79972020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7998
7999 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
8000 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
8001 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
8002 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
8003 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
8004 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
8005 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
8006 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
8007 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
8008 to gnu_nat_target class.
8009 * gnu-nat.c: Likewise.
8010 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
8011 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
8012 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
8013 object.
8014 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
8015 instead of `gnu_target'.
8016
0af5e106
ST
80172020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8018
8019 * i386-gnu-tdep.c: Include "gdbcore.h"
8020 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
8021 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
8022 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
8023 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
8024 i386_gnu_sigcontext_addr): New functions
8025 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
8026 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
8027 tdep.
8028
078f2fc9
ST
80292020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8030
8031 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
8032 before fork_inferior call. Avoid calling it if target_is_pushed returns
8033 true.
8034
53dff92c
ST
80352020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8036
8037 * gnu-nat.h (gnu_target): New variable declaration.
8038 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
8039 gnu_target.
8040 * gnu-nat.c (gnu_target): New variable.
8041 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
8042 add_thread_silent, and add_thread calls.
8043 (gnu_nat_target::create_inferior): Pass gnu_target to
8044 add_thread_silent, thread_change_ptid call.
8045 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
8046 call.
8047
5a8b8627
ST
80482020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8049
8050 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
8051 (gnu_nat_target::find_memory_regions): Remove unused
8052 `old_address' variable.
8053
366f550a
ST
80542020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8055
8056 * gnu-nat.c: Include "gdbarch.h".
8057
f14871bf
ST
80582020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8059
8060 * reply_mig_hack.awk (Error return): Cast function through
8061 void *, to bypass compiler function call check.
8062
c6887cfb
ST
80632020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8064
8065 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
8066 $(srcdir)/reply_mig_hack.awk.
8067
6930bffe
ST
80682020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8069
8070 * gnu-nat.h (gnu_debug_flag): Set type to bool.
8071
112c22ed
JG
80722020-05-30 Jonny Grant <jg@jguk.org>
8073
8074 * configure.ac (ACX_BUGURL): change bug URL to https.
8075
f68f85b5
PA
80762020-05-30 Pedro Alves <palves@redhat.com>
8077
8078 * cp-support.c (replace_typedefs_template): New.
8079 (replace_typedefs_qualified_name): Handle
8080 DEMANGLE_COMPONENT_TEMPLATE.
8081
976ca316
SM
80822020-05-29 Simon Marchi <simon.marchi@efficios.com>
8083
8084 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
8085 dwarf2/index-cache.h, dwarf2/index-write.c,
8086 dwarf2/index-write.h, dwarf2/line-header.c,
8087 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
8088 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
8089 variables and fields from `dwarf2_per_objfile` to just
8090 `per_objfile` throughout.
8091
989ade05
SM
80922020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
8093
8094 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8095 <push_dwarf_reg_entry_value>: Add comment.
8096
c47bae85
KB
80972020-05-28 Kevin Buettner <kevinb@redhat.com>
8098 Keith Seitz <keiths@redhat.com>
8099
8100 * python/python.c (do_start_initialization): Call PyEval_SaveThread
8101 instead of PyEval_ReleaseLock.
8102 (class gdbpy_gil): Move to earlier in file.
8103 (finalize_python): Set gdb_python_initialized.
8104 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
8105 when not initialized.
8106
44486dcf
SM
81072020-05-28 Simon Marchi <simon.marchi@efficios.com>
8108
8109 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8110 <push_dwarf_reg_entry_value>: Remove assert. Override
8111 per_objfile with caller_per_objfile.
8112
f030440d
TV
81132020-05-28 Tom de Vries <tdevries@suse.de>
8114
8115 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
8116 PR gold/15646 workaround to symbol kind "type".
8117
f0fbb768
TT
81182020-05-27 Tom Tromey <tromey@adacore.com>
8119
8120 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
8121
af0b2a3e
TT
81222020-05-27 Tom Tromey <tromey@adacore.com>
8123
8124 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
8125 Use htab_find_with_hash.
8126 <add_abbrev>: Remove "abbrev_number" parameter.
8127 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
8128 "abbrev_number" parameter. Use htab_find_slot_with_hash.
8129 (hash_abbrev): Add comment.
8130 (abbrev_table::lookup_abbrev): Move to header file.
8131 (abbrev_table::read): Update.
8132
7d00ffec
TT
81332020-05-27 Tom Tromey <tromey@adacore.com>
8134
8135 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
8136 method.
8137 <canonical_name>: New member.
8138 <raw_name>: Rename from "name".
8139 (partial_die_info): Initialize canonical_name.
8140 (scan_partial_symbols): Check raw_name.
8141 (partial_die_parent_scope, partial_die_full_name)
8142 (add_partial_symbol, add_partial_subprogram)
8143 (add_partial_enumeration, load_partial_dies): Use "name" method.
8144 (partial_die_info::name): New method.
8145 (partial_die_info::read, guess_partial_die_structure_name)
8146 (partial_die_info::fixup): Update.
8147
697bba18
TT
81482020-05-27 Tom Tromey <tromey@adacore.com>
8149
8150 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
8151 <get_ref_die_offset>: Inline.
8152 <get_ref_die_offset_complaint>: New method.
8153 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
8154 (attribute::get_ref_die_offset_complaint): Rename from
8155 get_ref_die_offset. Just issue complaint.
8156
c17ace43
HD
81572020-05-27 Hannes Domani <ssbssa@yahoo.de>
8158
8159 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
8160
96445f0b
HD
81612020-05-27 Hannes Domani <ssbssa@yahoo.de>
8162
8163 * exec.c (exec_file_attach): Use errno value of first openp failure.
8164
ac637ec3
HD
81652020-05-27 Hannes Domani <ssbssa@yahoo.de>
8166
8167 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
8168 Don't close thread handle.
8169
17ee85fc
TT
81702020-05-27 Tom Tromey <tom@tromey.com>
8171 Simon Marchi <simon.marchi@efficios.com>
8172
8173 * objfiles.h (struct objfile) <partial_symtabs>: Now a
8174 shared_ptr.
8175 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
8176 member.
8177 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
8178 dwarf2_per_bfd_objfile_data_key>: New globals.
8179 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
8180 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
8181 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
8182 shared.
8183 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
8184 short-circuit when sharing.
8185 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
8186 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
8187
39b16f87
SM
81882020-05-27 Simon Marchi <simon.marchi@efficios.com>
8189
8190 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
8191 to...
8192 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
8193 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
8194
fcf23d5b
SM
81952020-05-27 Simon Marchi <simon.marchi@efficios.com>
8196
8197 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
8198 build_name_components, find_name_components_bounds>:
8199 Add per_objfile parameter.
8200 (struct mapped_index) <symbol_name_at>: Likewise.
8201 (struct mapped_debug_names): Remove constructor.
8202 <dwarf2_per_objfile>: Remove field.
8203 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
8204 (mapped_index_base::find_name_components_bounds,
8205 mapped_index_base::build_name_components,
8206 dw2_expand_symtabs_matching_symbol): Likewise.
8207 (class mock_mapped_index) <symbol_name_at>: Likewise.
8208 (check_match): Likewise.
8209 (check_find_bounds_finds): Likewise.
8210 (test_mapped_index_find_name_component_bounds): Update.
8211 (CHECK_MATCH): Update.
8212 (dw2_expand_symtabs_matching): Update.
8213 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
8214 per_objfile parameter.
8215 <find_vec_in_debug_names>: Likewise.
8216 <m_per_objfile>: New field.
8217 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
8218 parameter.
8219 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
8220 (dw2_debug_names_iterator::next): Update.
8221 (dw2_debug_names_lookup_symbol): Update.
8222 (dw2_debug_names_expand_symtabs_for_function): Update.
8223 (dw2_debug_names_map_matching_symbols): Update.
8224 (dw2_debug_names_expand_symtabs_matching): Update.
8225 (dwarf2_read_debug_names): Update.
8226
7188ed02
SM
82272020-05-27 Simon Marchi <simon.marchi@efficios.com>
8228
8229 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
8230 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
8231 move to dwarf2_per_objfile.
8232 <read_in_chain>: Remove.
8233 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
8234 remove_all_cus, age_comp_units>: New methods.
8235 <m_dwarf2_cus>: New member.
8236 (struct dwarf2_per_cu_data) <cu>: Remove.
8237 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
8238 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
8239 moved to methods of dwarf2_per_objfile.
8240 (dwarf2_clear_marks): Remove.
8241 (dwarf2_queue_item::~dwarf2_queue_item): Update.
8242 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
8243 (dwarf2_per_bfd::free_cached_comp_units): Remove.
8244 (dwarf2_per_objfile::remove_all_cus): New.
8245 (class free_cached_comp_units) <~free_cached_comp_units>:
8246 Update.
8247 (load_cu): Update.
8248 (dw2_do_instantiate_symtab): Adjust.
8249 (fill_in_sig_entry_from_dwo_entry): Adjust.
8250 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8251 (cutu_reader::cutu_reader): Likewise.
8252 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
8253 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
8254 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
8255 and dwarf2_per_objfile::age_comp_units.
8256 (load_partial_comp_unit): Update.
8257 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
8258 (process_queue): Likewise.
8259 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
8260 backlink.
8261 (dwarf2_read_addr_index): Likewise.
8262 (follow_die_offset): Likewise.
8263 (dwarf2_fetch_die_loc_sect_off): Likewise.
8264 (dwarf2_fetch_constant_bytes): Likewise.
8265 (dwarf2_fetch_die_type_sect_off): Likewise.
8266 (follow_die_sig_1): Likewise.
8267 (load_full_type_unit): Likewise.
8268 (read_signatured_type): Likewise.
8269 (dwarf2_cu::dwarf2_cu): Don't set cu field.
8270 (dwarf2_cu::~dwarf2_cu): Remove.
8271 (dwarf2_per_objfile::get_cu): New.
8272 (dwarf2_per_objfile::set_cu): New.
8273 (age_cached_comp_units): Rename to...
8274 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
8275 to std::unordered_map.
8276 (free_one_cached_comp_unit): Rename to...
8277 (dwarf2_per_objfile::remove_cu): ... this. Adjust
8278 to std::unordered_map.
8279 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
8280 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
8281 a dwarf2_per_objfile in data.
8282 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
8283 (dwarf2_clear_marks): Remove.
8284
2e671100
SM
82852020-05-27 Simon Marchi <simon.marchi@efficios.com>
8286
8287 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
8288 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
8289 (init_tu_and_read_dwo_dies): Likewise.
8290 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
8291 (cutu_reader::cutu_reader): Likewise.
8292 (load_partial_comp_unit): Likewise.
8293 (process_psymtab_comp_unit): Update.
8294 (build_type_psymtabs_1): Update.
8295 (process_skeletonless_type_unit): Update.
8296 (load_full_comp_unit): Update.
8297 (find_partial_die): Update.
8298 (dwarf2_read_addr_index): Update.
8299 (read_signatured_type): Update.
8300
2e6a9f79
SM
83012020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8302
8303 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
8304 m_header_read_in>: New fields.
8305 <get_header>: New method.
8306 * dwarf2/read.c (per_cu_header_read_in): Remove.
8307 (dwarf2_per_cu_data::get_header): New.
8308 (dwarf2_per_cu_data::addr_size): Update.
8309 (dwarf2_per_cu_data::offset_size): Update.
8310 (dwarf2_per_cu_data::ref_addr_size): Update.
8311
1b555f17
SM
83122020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8313
8314 * dwarf2/read.c (load_cu): Return dwarf2_cu.
8315 (dw2_do_instantiate_symtab): Update.
8316 (queue_and_load_all_dwo_tus): Change parameter from
8317 dwarf2_per_cu_data to dwarf2_cu.
8318 (dwarf2_fetch_die_loc_sect_off): Update.
8319 (dwarf2_fetch_constant_bytes): Update.
8320 (dwarf2_fetch_die_type_sect_off): Update.
8321
8fc0b21d
SM
83222020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8323
8324 * dwarf2/read.c (process_full_comp_unit,
8325 process_full_type_unit): Remove per_cu, per_objfile paramters.
8326 Add dwarf2_cu parameter.
8327 (process_queue): Update.
8328
168c9250
SM
83292020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8330
8331 * dwarf2/read.c (create_cu_from_index_list): Replace
8332 dwarf2_per_objfile parameter with dwarf2_per_bfd.
8333 (create_cus_from_index_list): Likewise.
8334 (create_cus_from_index): Likewise.
8335 (create_signatured_type_table_from_index): Likewise.
8336 (create_cus_from_debug_names_list): Likewise.
8337 (create_cus_from_debug_names): Likewise.
8338 (dwarf2_read_gdb_index): Update.
8339 (dwarf2_read_debug_names): Update.
8340
e286671b
TT
83412020-05-27 Tom Tromey <tom@tromey.com>
8342 Simon Marchi <simon.marchi@efficios.com>
8343
8344 * dwarf2/read.h (struct dwarf2_per_objfile)
8345 <get_type_for_signatured_type, set_type_for_signatured_type>:
8346 New methods.
8347 <m_type_map>: New member.
8348 (struct signatured_type) <type>: Remove.
8349 * dwarf2/read.c
8350 (dwarf2_per_objfile::get_type_for_signatured_type,
8351 dwarf2_per_objfile::set_type_for_signatured_type): New.
8352 (get_signatured_type): Use new methods.
8353
8adb8487
TT
83542020-05-27 Tom Tromey <tom@tromey.com>
8355 Simon Marchi <simon.marchi@efficios.com>
8356
8357 * dwarf2/read.h (struct type_unit_group_unshareable): New.
8358 (struct dwarf2_per_objfile) <type_units>: New member.
8359 <get_type_unit_group_unshareable>: New method.
8360 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
8361 num_symtabs, symtabs>: Remove; move to
8362 type_unit_group_unshareable.
8363 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
8364 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
8365 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
8366
127bbf4b
SM
83672020-05-27 Simon Marchi <simon.marchi@efficios.com>
8368
8369 * dwarf2/read.h (struct dwarf2_per_cu_data):
8370 <dwarf2_per_objfile>: Remove.
8371 * dwarf2/read.c (create_cu_from_index_list): Don't assign
8372 dwarf2_per_objfile.
8373 (create_signatured_type_table_from_index): Likewise.
8374 (create_signatured_type_table_from_debug_names): Likewise.
8375 (create_debug_type_hash_table): Likewise.
8376 (fill_in_sig_entry_from_dwo_entry): Likewise.
8377 (create_type_unit_group): Likewise.
8378 (read_comp_units_from_section): Likewise.
8379 (create_cus_hash_table): Likewise.
8380
f6e649dd
SM
83812020-05-27 Simon Marchi <simon.marchi@efficios.com>
8382
8383 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
8384 dwarf2_per_cu_data::dwarf2_per_objfile.
8385 (compute_compunit_symtab_includes): Likewise.
8386 (dwarf2_cu::start_symtab): Likewise.
8387
aa66c379
SM
83882020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8389
8390 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
8391 parameter.
8392 * dwarf2/read.c (get_die_type_at_offset): Likewise.
8393 (read_namespace_alias): Update.
8394 (lookup_die_type): Update.
8395 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
8396 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
8397 Update.
8398 (disassemble_dwarf_expression): Update.
8399
120ce1b5
SM
84002020-05-27 Simon Marchi <simon.marchi@efficios.com>
8401
8402 * dwarf2/read.h (struct dwarf2_queue_item): Add
8403 dwarf2_per_objfile parameter, assign new parameter.
8404 <per_objfile>: New field.
8405 * dwarf2/read.c (free_one_cached_comp_unit): Add
8406 dwarf2_per_objfile parameter.
8407 (queue_comp_unit): Likewise.
8408 (dw2_do_instantiate_symtab): Update.
8409 (process_psymtab_comp_unit): Update.
8410 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
8411 (process_imported_unit_die): Update.
8412 (queue_and_load_dwo_tu): Update.
8413 (follow_die_offset): Update.
8414 (follow_die_sig_1): Update.
8415
9f47c707
SM
84162020-05-27 Simon Marchi <simon.marchi@efficios.com>
8417
8418 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
8419 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
8420 (read_call_site_scope): Assign per_objfile.
8421 (dwarf2_per_cu_data::objfile): Remove.
8422 * gdbtypes.h (struct call_site) <per_objfile>: New member.
8423 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
8424 dwarf2_per_objfile parameter.
8425 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
8426 dwarf2_per_objfile parameter.
8427 (dwarf_expr_reg_to_entry_parameter): Add output
8428 dwarf2_per_objfile parameter.
8429 (locexpr_get_frame_base): Update.
8430 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
8431 <push_dwarf_reg_entry_value>: Update.
8432 <call_site_to_target_addr>: Update.
8433 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
8434 parameter.
8435 (value_of_dwarf_reg_entry): Update.
8436 (rw_pieced_value): Update.
8437 (indirect_synthetic_pointer): Update.
8438 (dwarf2_evaluate_property): Update.
8439 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
8440 parameter.
8441 (locexpr_read_variable): Update.
8442 (locexpr_get_symbol_read_needs): Update.
8443 (loclist_read_variable): Update.
8444
14095eb3
SM
84452020-05-27 Simon Marchi <simon.marchi@efficios.com>
8446
8447 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8448 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8449 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
8450 parameter.
8451 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8452 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8453 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
8454 parameter.
8455 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
8456 sect_variable_value): Add dwarf2_per_objfile parameter.
8457 (class dwarf_evaluate_loc_desc) <dwarf_call,
8458 dwarf_variable_value>: Update.
8459 (fetch_const_value_from_synthetic_pointer): Add
8460 dwarf2_per_objfile parameter.
8461 (fetch_const_value_from_synthetic_pointer): Update.
8462 (coerced_pieced_ref): Update.
8463 (class symbol_needs_eval_context) <dwarf_call,
8464 dwarf_variable_value>: Update.
8465 (dwarf2_compile_expr_to_ax): Update.
8466
3c3cd3d4
SM
84672020-05-27 Simon Marchi <simon.marchi@efficios.com>
8468
8469 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
8470 parameter.
8471 (dwarf2_evaluate_loc_desc_full): Update.
8472
82ca3f51
SM
84732020-05-27 Simon Marchi <simon.marchi@efficios.com>
8474
8475 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
8476 parameter.
8477 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
8478 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
8479 dwarf2_per_objfile parameter.
8480 (decode_debug_loc_dwo_addresses): Likewise.
8481 (dwarf2_find_location_expression): Update.
8482 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
8483 (locexpr_describe_location_piece): Add dwarf2_per_objfile
8484 parameter.
8485 (disassemble_dwarf_expression): Add dwarf2_per_objfile
8486 parameter.
8487 (locexpr_describe_location_1): Likewise.
8488 (locexpr_describe_location): Update.
8489
4b167ea1
SM
84902020-05-27 Simon Marchi <simon.marchi@efficios.com>
8491
8492 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
8493 Remove.
8494 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
8495 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
8496 (dwarf2_compile_property_to_c): Update.
8497 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
8498 use text offset from objfile.
8499 (locexpr_tracepoint_var_ref): Update.
8500 (locexpr_generate_c_location): Update.
8501 (loclist_describe_location): Update.
8502 (loclist_tracepoint_var_ref): Update.
8503 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
8504 dwarf2_per_objfile parameter.
8505 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
8506 use text offset from objfile.
8507 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
8508
89b07335
SM
85092020-05-27 Simon Marchi <simon.marchi@efficios.com>
8510
8511 * dwarf2/expr.h (struct dwarf_expr_context)
8512 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
8513 <offset>: Remove.
8514 <per_objfile>: New member.
8515 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
8516 dwarf2_per_objfile parameter. Don't set offset, set
8517 per_objfile.
8518 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
8519 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
8520 a dwarf2_per_objfile object instead of an offset.
8521 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
8522 constructor.
8523 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
8524 to dwarf2_expr_executor constructor. Don't set offset.
8525 (dwarf2_fetch_cfa_info): Update.
8526 (struct dwarf2_frame_cache) <text_offset>: Remove.
8527 <per_objfile>: New field.
8528 (dwarf2_frame_cache): Update.
8529 (dwarf2_frame_prev_register): Update.
8530 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8531 <dwarf_evaluate_loc_desc>: Add constructor.
8532 (dwarf2_evaluate_loc_desc_full): Update.
8533 (dwarf2_locexpr_baton_eval): Update.
8534 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
8535 Add constructor.
8536 (dwarf2_loc_desc_get_symbol_read_needs): Update.
8537
293e7e51
SM
85382020-05-27 Simon Marchi <simon.marchi@efficios.com>
8539
8540 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
8541 addr_sized_int_type>: Move to dwarf2_cu.
8542 <int_type>: Move to dwarf2_per_objfile.
8543 (struct dwarf2_per_objfile) <int_type>: Move here.
8544 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
8545 addr_sized_int_type>: Move here.
8546 (read_func_scope): Update.
8547 (read_array_type): Update.
8548 (read_tag_string_type): Update.
8549 (attr_to_dynamic_prop): Update.
8550 (dwarf2_per_cu_data::int_type): Rename to...
8551 (dwarf2_per_objfile::int_type): ... this.
8552 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
8553 (dwarf2_cu::addr_sized_int_type): ... this.
8554 (read_subrange_type): Update.
8555 (dwarf2_per_cu_data::addr_type): Rename to...
8556 (dwarf2_cu::addr_type): ... this.
8557 (set_die_type): Update.
8558
64874a40
SM
85592020-05-27 Simon Marchi <simon.marchi@efficios.com>
8560
8561 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
8562 data through per_cu->cu.
8563
4ab09049
SM
85642020-05-27 Simon Marchi <simon.marchi@efficios.com>
8565
8566 * dwarf2/read.c (lookup_dwo_comp_unit): Change
8567 dwarf2_per_cu_data parameter fo dwarf2_cu.
8568 (lookup_dwo_type_unit): Likewise.
8569 (read_cutu_die_from_dwo): Likewise.
8570 (lookup_dwo_unit): Likewise.
8571 (open_and_init_dwo_file): Likewise.
8572 (lookup_dwo_cutu): Likewise.
8573 (lookup_dwo_comp_unit): Likewise.
8574 (lookup_dwo_type_unit): Likewise.
8575 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8576 (cutu_reader::cutu_reader): Update.
8577
47b14e86
SM
85782020-05-27 Simon Marchi <simon.marchi@efficios.com>
8579
8580 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
8581 parameter.
8582 (process_full_type_unit): Likewise.
8583 (process_queue): Update.
8584
43182c09
SM
85852020-05-27 Simon Marchi <simon.marchi@efficios.com>
8586
8587 * dwarf2/read.c (recursively_compute_inclusions): Add
8588 dwarf2_per_objfile parameter.
8589 (compute_compunit_symtab_includes): Likewise.
8590 (process_cu_includes): Update.
8591
7aa104c4
SM
85922020-05-27 Simon Marchi <simon.marchi@efficios.com>
8593
8594 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
8595 parameter.
8596 (create_type_unit_group): Update.
8597 (process_psymtab_comp_unit_reader): Update.
8598 (build_type_psymtabs_reader): Update.
8599
e3beb21d
SM
86002020-05-27 Simon Marchi <simon.marchi@efficios.com>
8601
8602 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
8603 object through m_this_cu->cu.
8604
d460f660
SM
86052020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8606
8607 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
8608 the info parameter.
8609 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
8610
ab432490
SM
86112020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8612
8613 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
8614 per_objfile parameter.
8615 (load_full_type_unit): Add per_objfile parameter.
8616 (read_signatured_type): Likewise.
8617 (load_full_comp_unit): Likewise.
8618 (load_cu): Likewise.
8619 (dw2_do_instantiate_symtab): Likewise.
8620 (dw2_get_file_names): Likewise.
8621 (dw2_map_symtabs_matching_filename): Update.
8622 (dw_expand_symtabs_matching_file_matcher): Update.
8623 (dw2_map_symbol_filenames): Update.
8624 (process_psymtab_comp_unit): Add per_objfile parameter.
8625 (build_type_psymtabs_1): Update.
8626 (process_skeletonless_type_unit): Update.
8627 (dwarf2_build_psymtabs_hard): Update.
8628 (load_partial_comp_unit): Add per_objfile parameter.
8629 (scan_partial_symbols): Update.
8630 (load_full_comp_unit): Add per_objfile parameter.
8631 (process_imported_unit_die): Update.
8632 (create_cus_hash_table): Update.
8633 (find_partial_die): Update.
8634 (dwarf2_read_addr_index): Update.
8635 (follow_die_offset): Update.
8636 (dwarf2_fetch_die_loc_sect_off): Update.
8637 (dwarf2_fetch_constant_bytes): Update.
8638 (dwarf2_fetch_die_type_sect_off): Update.
8639 (follow_die_sig_1): Update.
8640 (load_full_type_unit): Add per_objfile parameter.
8641 (read_signatured_type): Likewise.
8642
313bad1b
SM
86432020-05-27 Simon Marchi <simon.marchi@efficios.com>
8644
8645 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
8646 of objfile_name.
8647
c3699833
SM
86482020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8649
8650 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
8651 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
8652 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
8653 field.
8654 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
8655 (create_cus_from_index): Update.
8656 (dwarf2_read_gdb_index): Update.
8657 (create_cus_from_debug_names): Update.
8658 (dwarf2_read_debug_names): Update.
8659 (get_abbrev_section_for_cu): Update.
8660 (create_all_comp_units): Update.
8661 (read_attribute_value): Update.
8662 (get_debug_line_section): Update.
8663 * dwarf2/index-cache.c (index_cache::store): Update.
8664 * dwarf2/index-write.c (save_gdb_index_command): Update.
8665 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
8666
1859c670
SM
86672020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8668
8669 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
8670 member.
8671 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
8672 dwarf2_per_cu_data::per_bfd.
8673 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
8674 (create_type_unit_group): Likewise.
8675 (queue_comp_unit): Remove reference to
8676 per_cu->dwarf2_per_objfile.
8677 (maybe_queue_comp_unit): Likewise.
8678 (fill_in_sig_entry_from_dwo_entry): Assign new field.
8679 (create_cus_hash_table): Assign new field.
8680
5e22e966
SM
86812020-05-27 Simon Marchi <simon.marchi@efficios.com>
8682
8683 * dwarf2/read.c: Replace
8684 dwarf2_cu->per_cu->dwarf2_per_objfile references with
8685 dwarf2_cu->per_objfile throughout.
8686
97a1449a
SM
86872020-05-27 Simon Marchi <simon.marchi@efficios.com>
8688
8689 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
8690 parameter, don't use per_cu->dwarf2_per_objfile.
8691 (dw2_instantiate_symtab): Likewise.
8692 (dw2_find_last_source_symtab): Update.
8693 (dw2_map_expand_apply): Update.
8694 (dw2_lookup_symbol): Update.
8695 (dw2_expand_symtabs_for_function): Update.
8696 (dw2_expand_all_symtabs): Update.
8697 (dw2_expand_symtabs_with_fullname): Update.
8698 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
8699 don't use per_cu->dwarf2_per_objfile.
8700 (dw2_expand_marked_cus): Update.
8701 (dw2_find_pc_sect_compunit_symtab): Update.
8702 (dw2_debug_names_lookup_symbol): Update.
8703 (dw2_debug_names_expand_symtabs_for_function): Update.
8704 (dw2_debug_names_map_matching_symbols): Update.
8705 (dwarf2_psymtab::expand_psymtab): Update.
8706
9e021579
SM
87072020-05-27 Simon Marchi <simon.marchi@efficios.com>
8708
8709 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
8710 <per_objfile>: New member.
8711 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
8712 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
8713 call to dwarf2_cu.
8714 (cutu_reader::cutu_reader): Update.
8715 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
8716
ae090bdb
SM
87172020-05-27 Simon Marchi <simon.marchi@efficios.com>
8718
8719 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
8720 struct dwarf2_per_objfile.
8721 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
8722 dwarf2_per_bfd.
8723 * dwarf2/read.c (set_die_type): Update.
8724 (get_die_type_at_offset): Update.
8725
af758d11
SM
87262020-05-27 Tom Tromey <tom@tromey.com>
8727 Simon Marchi <simon.marchi@efficios.com>
8728
8729 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
8730 method.
8731 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
8732 get_symtab, set_symtab>: New methods.
8733 <m_symtabs>: New field.
8734 (struct dwarf2_psymtab): Derive from partial_symtab.
8735 <readin_p, get_compunit_symtab>: Declare methods.
8736 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
8737 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
8738 New methods.
8739 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
8740 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
8741 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
8742 (dw2_symtab_iter_next, dw2_print_stats)
8743 (dw2_expand_symtabs_with_fullname)
8744 (dw2_expand_symtabs_matching_one)
8745 (dw_expand_symtabs_matching_file_matcher)
8746 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
8747 (dw2_debug_names_iterator::next)
8748 (dw2_debug_names_map_matching_symbols)
8749 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
8750 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
8751 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
8752 New methods.
8753 (get_compunit_symtab, process_full_comp_unit)
8754 (process_full_type_unit): Update.
8755 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
8756
5989a64e
SM
87572020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8758
8759 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
8760 then introduce a new dwarf2_per_objfile type.
8761 <read_line_string>: Move to the new dwarf2_per_objfile type.
8762 <objfile>: Likewise.
8763 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
8764 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
8765 dwarf2_per_objfile->per_bfd.
8766 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
8767 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
8768 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
8769 (dwarf2_per_bfd::free_cached_comp_units): ... this.
8770 (dwarf2_has_info): Allocate dwarf2_per_bfd.
8771 (dwarf2_per_objfile::locate_sections): Rename to...
8772 (dwarf2_per_bfd::locate_sections): ... this.
8773 (dwarf2_per_objfile::get_cutu): Rename to...
8774 (dwarf2_per_bfd::get_cutu): ... this.
8775 (dwarf2_per_objfile::get_cu): Rename to...
8776 (dwarf2_per_bfd::get_cu): ... this.
8777 (dwarf2_per_objfile::get_tu): Rename to...
8778 (dwarf2_per_bfd::get_tu): ... this.
8779 (dwarf2_per_objfile::allocate_per_cu): Rename to...
8780 (dwarf2_per_bfd::allocate_per_cu): ... this.
8781 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
8782 (dwarf2_per_bfd::allocate_signatured_type): ... this.
8783 (get_gdb_index_contents_ftype): Change parameter from
8784 dwarf2_per_objfile to dwarf2_per_bfd.
8785 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
8786 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
8787
a50264ba
TT
87882020-05-27 Tom Tromey <tom@tromey.com>
8789 Simon Marchi <simon.marchi@efficios.com>
8790
8791 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
8792 (allocate_piece_closure): Set "per_objfile" member.
8793 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
8794 (locexpr_describe_location, loclist_describe_location): Use new
8795 member.
8796 * dwarf2/read.c (read_call_site_scope)
8797 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
8798 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
8799 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
8800 handle_data_member_location): Set per_objfile member.
8801 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
8802 member.
8803 (struct dwarf2_loclist_baton) <per_objfile>: New member.
8804
d3473f0c
TT
88052020-05-27 Tom Tromey <tom@tromey.com>
8806
8807 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
8808 allocate_signatured_type>: Declare new methods.
8809 <m_num_psymtabs>: New member.
8810 (struct dwarf2_per_cu_data) <index>: New member.
8811 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
8812 (dwarf2_per_objfile::allocate_signatured_type): New methods.
8813 (create_cu_from_index_list): Use allocate_per_cu.
8814 (create_signatured_type_table_from_index)
8815 (create_signatured_type_table_from_debug_names)
8816 (create_debug_type_hash_table, add_type_unit)
8817 (read_comp_units_from_section): Use allocate_signatured_type.
8818
5717c425
TT
88192020-05-27 Tom Tromey <tom@tromey.com>
8820
8821 * psymtab.c (partial_map_expand_apply)
8822 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
8823 (psym_lookup_global_symbol_language)
8824 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
8825 (psym_print_stats, psym_expand_symtabs_for_function)
8826 (psym_map_symbol_filenames, psym_map_matching_symbols)
8827 (psym_expand_symtabs_matching)
8828 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
8829 (maintenance_check_psymtabs): Update.
8830 * psympriv.h (struct partial_symtab) <readin_p,
8831 get_compunit_symtab>: Add objfile parameter.
8832 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
8833 Likewise.
8834 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
8835 get_compunit_symtab>: Likewise.
8836 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
8837
45940949
TT
88382020-05-27 Tom Tromey <tom@tromey.com>
8839
8840 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
8841 member.
8842 * dwarf2/read.c (delete_file_name_entry): Fix comment.
8843 (create_cu_from_index_list)
8844 (create_signatured_type_table_from_index)
8845 (create_signatured_type_table_from_debug_names)
8846 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
8847 (dwarf2_create_include_psymtab)
8848 (create_debug_type_hash_table, add_type_unit)
8849 (create_type_unit_group, read_comp_units_from_section)
8850 (dwarf2_compute_name, create_cus_hash_table)
8851 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
8852 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
8853 obstack.
8854 (dw2_get_real_path): Likewise. Change argument to
8855 dwarf2_per_objfile.
8856
f8c6d152
LM
88572020-05-27 Luis Machado <luis.machado@linaro.org>
8858
8859 PR tdep/26000
8860 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
8861 for ldrd (immediate).
8862
e98d2e6d
PW
88632020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8864
8865 * command.h: Add comment giving the name of class_tui.
8866 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
8867 create the fake command for the help for class_tui.
8868
53a47a3e
TT
88692020-05-26 Tom Tromey <tromey@adacore.com>
8870
8871 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
8872 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
8873 (val_atr): New function.
8874 (value_val_atr): Use it.
8875 * ada-valprint.c (print_optional_low_bound): Change low bound
8876 handling for enums.
8877 (val_print_packed_array_elements): Don't call discrete_position.
8878 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
8879 discrete_position for enum types.
8880 * language.c (default_print_array_index): Change type.
8881 * language.h (struct language_defn) <la_print_array_index>: Add
8882 index_type parameter, change type of index_value.
8883 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
8884 (default_print_array_index): Update.
8885 * valprint.c (maybe_print_array_index): Don't call
8886 value_from_longest. Update.
8887 (value_print_array_elements): Don't call discrete_position.
8888
0bc2354b
TT
88892020-05-26 Tom Tromey <tromey@adacore.com>
8890
8891 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
8892 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
8893
1218a4bf
CDA
88942020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
8895
8896 PR gdb/13519
8897 * avr-tdep.c (avr_integer_to_address): Return data or code
8898 address accordingly to the second 'type' argument of the
8899 function.
8900
92651b1d
MW
89012020-05-25 Michael Weghorn <m.weghorn@posteo.de>
8902
8903 * infcmd.c, inferior.h: (construct_inferior_arguments):
8904 Moved function from here to gdbsupport/common-inferior.{h,cc}
8905
0a4f5f8c
TT
89062020-05-23 Tom Tromey <tom@tromey.com>
8907
8908 Revert commit eca1f90c:
8909 * NEWS: Remove entry for completion styling.
8910 * completer.c (_rl_completion_prefix_display_length): Move
8911 declaration later.
8912 (gdb_fnprint): Revert.
8913 (gdb_display_match_list_1): Likewise.
8914 * cli/cli-style.c (completion_prefix_style)
8915 (completion_difference_style, completion_suffix_style): Remove.
8916 (_initialize_cli_style): Revert.
8917 * cli/cli-style.h (completion_prefix_style)
8918 (completion_difference_style, completion_suffix_style): Don't
8919 declare.
8920
e08bd6c5
PA
89212020-05-24 Pedro Alves <palves@redhat.com>
8922
8923 * symtab.c (completion_list_add_name): Return boolean indication
8924 of whether the symbol matched.
8925 (completion_list_add_symbol): Don't try to remove C++ aliases if
8926 the symbol didn't match in the first place.
8927 * symtab.h (completion_list_add_name): Return bool.
8928
ceacbf6e
SM
89292020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
8930
8931 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
8932 type::field.
8933
26f16254
JB
89342020-05-23 Joel Brobecker <brobecker@adacore.com>
8935
8936 GDB 9.2 released.
8937
eca1f90c
TT
89382020-05-23 Tom Tromey <tom@tromey.com>
8939
8940 * NEWS: Add entry for completion styling.
8941 * completer.c (_rl_completion_prefix_display_length): Move
8942 declaration earlier.
8943 (gdb_fnprint): Use completion_style.
8944 (gdb_display_match_list_1): Likewise.
8945 * cli/cli-style.c (completion_prefix_style)
8946 (completion_difference_style, completion_suffix_style): New
8947 globals.
8948 (_initialize_cli_style): Register new globals.
8949 * cli/cli-style.h (completion_prefix_style)
8950 (completion_difference_style, completion_suffix_style): Declare.
8951
51e2cfa2
PA
89522020-05-23 Pedro Alves <palves@redhat.com>
8953
8954 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
8955 (parse_escape): Use ISDIGIT instead of isdigit.
8956 (puts_debug): Use gdb_isprint instead of isprint.
8957 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
8958 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
8959 ISSPACE instead of isspace.
8960 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
8961 instead of isspace.
8962 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
8963 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
8964 instead of isxdigit and ISDIGIT instead of isdigit.
8965
80fc5e77
SM
89662020-05-22 Simon Marchi <simon.marchi@efficios.com>
8967
8968 * gdbtypes.h (struct type) <field>: New method.
8969 (TYPE_FIELDS): Remove, replace all uses with either type::fields
8970 or type::field.
8971
3cabb6b0
SM
89722020-05-22 Simon Marchi <simon.marchi@efficios.com>
8973
8974 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
8975 (TYPE_FIELDS): Use type::fields. Change all call sites that
8976 modify the propery to use type::set_fields instead.
8977
1f704f76
SM
89782020-05-22 Simon Marchi <simon.marchi@efficios.com>
8979
8980 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
8981 type::num_fields instead.
8982
5e33d5f4
SM
89832020-05-22 Simon Marchi <simon.marchi@efficios.com>
8984
8985 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
8986 methods.
8987 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
8988 that modify the number of fields to use type::set_num_fields
8989 instead.
8990
9392ebb3
TT
89912020-05-22 Tom Tromey <tromey@adacore.com>
8992
8993 * compile/compile-object-load.h (munmap_list_free): Don't
8994 declare.
8995
7c13f4e8
AB
89962020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
8997
8998 * annotate.c (annotate_source_line): Update return type, add call
8999 to update current symtab and line.
9000 * annotate.h (annotate_source_line): Update return type, and
9001 extend header comment.
9002 * source.c (info_line_command): Check annotation_level before
9003 calling annotate_source_line.
9004 * stack.c (print_frame_info): If calling annotate_source_line
9005 returns true, then don't print any other source line information.
9006
aa370940
SM
90072020-05-21 Simon Marchi <simon.marchi@efficios.com>
9008
9009 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
9010
84d53fa9
SM
90112020-05-21 Simon Marchi <simon.marchi@efficios.com>
9012
9013 * coffread.c (patch_type): Remove NULL check before xfree.
9014 * corefile.c (set_gnutarget): Likewise.
9015 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
9016 * exec.c (build_section_table): Likewise.
9017 * remote.c (remote_target::pass_signals): Likewise.
9018 * utils.c (n_spaces): Likewise.
9019 * cli/cli-script.c (document_command): Likewise.
9020 * i386-windows-tdep.c (core_process_module_section): Likewise.
9021 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
9022
9d428aae
SM
90232020-05-20 Simon Marchi <simon.marchi@efficios.com>
9024
9025 * symfile.c (reread_symbols): Clear objfile's section_offsets
9026 vector and section indices, re-compute them by calling
9027 sym_offsets.
9028
250106a7
TT
90292020-05-20 Tom Tromey <tromey@adacore.com>
9030
9031 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 9032 (desc_one_bound, desc_index_type): Compute field name.
250106a7 9033
9a0bacfb
TV
90342020-05-20 Tom de Vries <tdevries@suse.de>
9035
9036 PR symtab/25833
9037 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
9038
7b958a48
AM
90392020-05-20 Alan Modra <amodra@gmail.com>
9040
9041 PR 25993
9042 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
9043 bfd_set_filename.
9044 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
9045 passed to bfd_set_filename.
9046 * symfile-mem.c (add_vsyscall_page): Likewise for string
9047 passed to symbol_file_add_from_memory.
9048 (symbol_file_add_from_memory): Make name param a const char* and
9049 don't strdup.
9050
c7e97679
AM
90512020-05-20 Alan Modra <amodra@gmail.com>
9052
9053 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
9054 rather than accessing bfd->filename directly.
9055 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
9056 and use bfd_section_name.
9057 * dwarf2/frame.c (decode_frame_entry): Likewise.
9058 * exec.c (exec_set_section_address): Likewise.
9059 * solib-aix.c (solib_aix_bfd_open): Likewise.
9060 * stap-probe.c (get_stap_base_address): Likewise.
9061 * symfile.c (reread_symbols): Likewise.
9062
563c591b
TT
90632020-05-19 Tom Tromey <tromey@adacore.com>
9064
9065 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
9066
f408d82c
SM
90672020-05-19 Simon Marchi <simon.marchi@efficios.com>
9068
9069 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
9070
98c59b52
PA
90712020-05-19 Pedro Alves <palves@redhat.com>
9072
9073 * NEWS (set exec-file-mismatch): Adjust entry.
9074 * exec.c: Include "build-id.h".
9075 (validate_exec_file): Try to match build IDs instead of filenames.
9076 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
9077 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
9078 and pass down 'warn_if_slow'.
9079 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
9080 gdb_bfd_open_closure to pass it down.
9081 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
9082
4111f652
PA
90832020-05-19 Pedro Alves <palves@redhat.com>
9084
9085 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
9086 * target.c (target_fileio_open_1): Rename to target_fileio_open
9087 and make extern. Use bool.
9088 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
9089 (target_fileio_read_alloc_1): Adjust.
9090 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
9091 (target_fileio_open_warn_if_slow): Delete declaration.
9092
ad80db5b
PA
90932020-05-19 Pedro Alves <palves@redhat.com>
9094
9095 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
9096 Adjust all callers.
9097
1d6ce4d3
YS
90982020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
9099
9100 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
9101 whether disp is negative.
9102
9005fbbb
SM
91032020-05-19 Simon Marchi <simon.marchi@efficios.com>
9104
9105 * symfile.h (struct symfile_segment_data)
9106 <~symfile_segment_data>: Remove.
9107 <segment_info>: Change to std::vector.
9108 * symfile.c (default_symfile_segments): Update.
9109 * elfread.c (elf_symfile_segments): Update.
9110
68b888ff
SM
91112020-05-19 Simon Marchi <simon.marchi@efficios.com>
9112
9113 * symfile.h (struct symfile_segment_data) <struct segment>: New.
9114 <segments>: New.
9115 <segment_bases, segment_sizes>: Remove.
9116 * symfile.c (default_symfile_segments): Update.
9117 * elfread.c (elf_symfile_segments): Update.
9118 * remote.c (remote_target::get_offsets): Update.
9119 * solib-target.c (solib_target_relocate_section_addresses):
9120 Update.
9121
62982abd
SM
91222020-05-19 Simon Marchi <simon.marchi@efficios.com>
9123
9124 * symfile.h (struct symfile_segment_data): Initialize fields.
9125 <~symfile_segment_data>: Add.
9126 (symfile_segment_data_up): New.
9127 (struct sym_fns) <sym_segments>: Return a
9128 symfile_segment_data_up.
9129 (default_symfile_segments): Return a symfile_segment_data_up.
9130 (free_symfile_segment_data): Remove.
9131 (get_symfile_segment_data): Return a symfile_segment_data_up.
9132 * symfile.c (default_symfile_segments): Likewise.
9133 (get_symfile_segment_data): Likewise.
9134 (free_symfile_segment_data): Remove.
9135 (symfile_find_segment_sections): Update.
9136 * elfread.c (elf_symfile_segments): Return a
9137 symfile_segment_data_up.
9138 * remote.c (remote_target::get_offsets): Update.
9139 * solib-target.c (solib_target_relocate_section_addresses):
9140 Update.
9141 * symfile-debug.c (debug_sym_segments): Return a
9142 symfile_segment_data_up.
9143
7f204339
RO
91442020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9145
e52a0f1b
RO
9146 PR build/25981
9147 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
9148 Hardcode register numbers.
9149
7f204339
RO
9150 PR build/25981
9151 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
9152 procfs_find_LDT_entry): Remove.
9153 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
9154 procfs_find_LDT_entry): Remove.
9155 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
9156 Remove.
9157
7f32a4d5
PA
91582020-05-17 Pedro Alves <palves@redhat.com>
9159 Andrew Burgess <andrew.burgess@embecosm.com>
9160 Keno Fischer <keno@juliacomputing.com>
9161
9162 PR gdb/25741
9163 * breakpoint.c (build_target_condition_list): Update comments.
9164 (build_target_command_list): Update comments and skip matching
9165 locations.
9166 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
9167 a separate function. Simplify "set breakpoint auto-hw off"
9168 handling.
9169 (insert_breakpoints): Update comment.
9170 (tracepoint_locations_match): New parameter. For breakpoints,
9171 compare location types too, if the caller wants to.
9172 (handle_automatic_hardware_breakpoints): New functions.
9173 (bp_location_is_less_than): Also sort by location type and
9174 hardware breakpoint length.
9175 (update_global_location_list): Handle "set breakpoint auto-hw on"
9176 here.
9177 (update_breakpoint_locations): Ask breakpoint_locations_match to
9178 ignore location types.
9179
7d93a1e0
SM
91802020-05-16 Simon Marchi <simon.marchi@efficios.com>
9181
9182 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
9183 type::name instead.
9184
d0e39ea2
SM
91852020-05-16 Simon Marchi <simon.marchi@efficios.com>
9186
9187 * gdbtypes.h (struct type) <name, set_name>: New methods.
9188 (TYPE_CODE): Use type::name. Change all call sites used to set
9189 the name to use type::set_name instead.
9190
2dab0c7b
TT
91912020-05-16 Tom Tromey <tom@tromey.com>
9192
9193 * top.c (quit_force): Update.
9194 * infrun.c (handle_no_resumed): Update.
9195 * top.h (all_uis): New function.
9196 (ALL_UIS): Remove.
9197
59f7bd8d
SM
91982020-05-16 Simon Marchi <simon.marchi@efficios.com>
9199
9200 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
9201
9bf058f0
PA
92022020-05-16 Pedro Alves <palves@redhat.com>
9203
9204 * ia64-linux-nat.c
9205 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
9206 Declare method.
9207 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
9208
8f86ae1a
SM
92092020-05-15 Simon Marchi <simon.marchi@efficios.com>
9210
9211 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
9212 (sparc64_adi_info): Likewise.
9213
d6bc0792
TT
92142020-05-15 Tom Tromey <tom@tromey.com>
9215
9216 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
9217 block_objfile.
9218 (lookup_objfile_from_block): Remove.
9219 (lookup_symbol_in_block, lookup_symbol_in_static_block)
9220 (lookup_global_symbol): Use block_objfile.
9221 * symtab.h (lookup_objfile_from_block): Don't declare.
9222 * printcmd.c (clear_dangling_display_expressions): Use
9223 block_objfile.
9224 * parse.c (operator_check_standard): Use block_objfile.
9225
8c14c3a3
TT
92262020-05-15 Tom Tromey <tom@tromey.com>
9227
9228 * language.c (language_alloc_type_symbol): Set
9229 SYMBOL_SECTION.
9230 * symtab.c (initialize_objfile_symbol): Remove.
9231 (allocate_symbol): Remove.
9232 (allocate_template_symbol): Remove.
9233 * dwarf2/read.c (fixup_go_packaging): Use "new".
9234 (new_symbol): Use "new".
9235 (read_variable): Don't call initialize_objfile_symbol. Use
9236 "new".
9237 (read_func_scope): Use "new".
9238 * xcoffread.c (process_xcoff_symbol): Don't call
9239 initialize_objfile_symbol.
9240 (SYMBOL_DUP): Remove.
9241 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
9242 "new".
9243 * symtab.h (allocate_symbol, initialize_objfile_symbol)
9244 (allocate_template_symbol): Don't declare.
9245 (struct symbol): Add copy constructor. Change defaults.
9246 * jit.c (finalize_symtab): Use "new".
9247 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
9248 Use "new".
9249 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
9250 (common_block_end): Use "new".
9251 * mdebugread.c (parse_symbol): Use "new".
9252 (new_symbol): Likewise.
9253
5b4a1a8d
PW
92542020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9255
9256 * NEWS: Mention changes to help and apropos.
9257
57b4f16e
PW
92582020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9259
9260 * command.h (enum command_class): Improve comments, document
9261 that class_alias is for user-defined aliases, give the class
9262 name for each class, remove unused class_xdb.
9263 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
9264 * breakpoint.c (_initialize_breakpoint): Replace class_alias
9265 by a precise class.
9266 * infcmd.c (_initialize_infcmd): Likewise.
9267 * reverse.c (_initialize_reverse): Likewise.
9268 * stack.c (_initialize_stack): Likewise.
9269 * symfile.c (_initialize_symfile): Likewise.
9270 * tracepoint.c (_initialize_tracepoint): Likewise.
9271
7c05caf7
PW
92722020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9273
9274 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
9275 when their aliased command is traversed.
9276 (help_cmd): Add fput_command_names_styled call to
9277 output command name and aliases when command has an alias.
9278
3b3aaacb
PW
92792020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9280
9281 * cli/cli-decode.h (help_cmd_list): Remove declaration.
9282 * cli/cli-decode.c (help_cmd_list): Declare as static,
9283 remove prefix argument, use bool for recurse arg, rework to show the aliases of
9284 a command together with the command.
9285 (fput_command_name_styled, fput_command_names_styled): New functions.
9286 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
9287 fput_command_name_styled.
9288 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
9289 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
9290
7aa1b46f
PW
92912020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9292
9293 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
9294 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
9295 * command.h (cmd_show_list): Likewise.
9296 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
9297 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
9298
89bcba74
PW
92992020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9300
9301 * unittests/command-def-selftests.c (traverse_command_structure):
9302 Verify all commands of a list have the same prefix command and
9303 that only the top cmdlist commands have a null prefix.
9304
3f4d92eb
PW
93052020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9306
9307 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
9308 as prefix, not one of its aliases.
9309 (set_cmd_prefix): Remove.
9310 (do_add_cmd): Centralize the setting of the prefix of a command, when
9311 command is defined after its full chain of prefix commands.
9312 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
9313 (add_setshow_cmd_full): Likewise.
9314 (update_prefix_field_of_prefixed_commands): New function.
9315 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
9316 update_prefix_field_of_prefixed_commands.
9317 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
9318 addresses of remote_set_cmdlist and remote_show_cmdlist given
9319 as argument, not the address of an argument.
9320 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
9321 * gdb/remote.c (_initialize_remote): Likewise.
9322
0605465f
PW
93232020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9324
9325 * cli/cli-cmds.c (alias_command): Check for an existing alias
9326 using lookup_cmd_composition, as valid_command_p is too strict
9327 and forbids aliases that are the prefix of an existing alias
9328 or command.
9329 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
9330 command is properly recognised as a valid command.
9331
58e6ac70
PW
93322020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9333
9334 * unittests/help-doc-selftests.c: Rename to
9335 unittests/command-def-selftests.c
9336 * unittests/command-def-selftests.c (help_doc_tests): Update some
9337 comments.
9338 (command_structure_tests, traverse_command_structure): New namespace
9339 and function.
9340 (command_structure_invariants_tests): New function.
9341 (_initialize_command_def_selftests) Renamed from
9342 _initialize_help_doc_selftests, register command_structure_invariants
9343 selftest.
9344
a7b9ceb8
PW
93452020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9346
9347 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
9348 an alias of 'show'.
9349
b2188a06
JB
93502020-05-15 Joel Brobecker <brobecker@adacore.com>
9351
9352 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
9353 ada_is_fixed_point_type. Update all callers.
9354 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
9355 all callers.
9356 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
9357 Update all callers.
9358 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
9359 print_fixed_point_type. Update all callers.
9360 * ada-valprint.c (ada_value_print_num): Replace call to
9361 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
9362
a51951c2
KB
93632020-05-14 Kevin Buettner <kevinb@redhat.com>
9364
9365 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
9366 processors.
9367 (cpu_supports_bts): Add CV_AMD case.
9368
29d6859f
LM
93692020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
9370 Simon Marchi <simon.marchi@efficios.com>
9371
9372 * infrun.c (stop_all_threads): Collect multiple wait events at
9373 each pass.
9374
78134374
SM
93752020-05-14 Simon Marchi <simon.marchi@efficios.com>
9376
9377 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
9378 type::code instead.
9379
67607e24
SM
93802020-05-14 Simon Marchi <simon.marchi@efficios.com>
9381
9382 * gdbtypes.h (struct type) <code, set_code>: New methods.
9383 (TYPE_CODE): Use type::code. Change all call sites used to set
9384 the code to use type::set_code instead.
9385
a05575d3
TBA
93862020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9387 Tom de Vries <tdevries@suse.de>
9388 Pedro Alves <palves@redhat.com>
9389
9390 PR threads/25478
9391 * infrun.c (stop_all_threads): Do NOT ignore
9392 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
9393 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
9394 received.
9395 (handle_no_resumed): Remove code handling a live inferior with no
9396 threads.
9397 * remote.c (has_single_non_exited_thread): New.
9398 (remote_target::update_thread_list): Do not delete a thread if is
9399 the last thread of the process.
9400 * thread.c (thread_select): Call delete_exited_threads instead of
9401 prune_threads.
9402
6ad82919
TBA
94032020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9404
9405 * infrun.c (stop_all_threads): Enable/disable thread events of all
9406 targets. Move a debug message denoting the end of the function
9407 into the SCOPED_EXIT block.
9408
d890404b
TBA
94092020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9410
9411 * process-stratum-target.h: Include <set>.
9412 (all_non_exited_process_targets, switch_to_target_no_thread): New
9413 function declarations.
9414 * process-stratum-target.c (all_non_exited_process_targets)
9415 (switch_to_target_no_thread): New function implementations.
9416
293b3ebc
TBA
94172020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9418
9419 * infrun.c (handle_inferior_event): Extract out a piece of code
9420 into...
9421 (mark_non_executing_threads): ...this new function.
9422
7ca9b62a
TBA
94232020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9424
9425 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
9426 use.
9427
fc75c28b
TBA
94282020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9429
9430 * regcache.c (regcache_read_pc_protected): New function
9431 implementation that returns 0 if the PC cannot read via
9432 'regcache_read_pc'.
9433 * infrun.c (proceed): Call 'regcache_read_pc_protected'
9434 instead of 'regcache_read_pc'.
9435 (keep_going_pass_signal): Ditto.
9436
a89febbd
TT
94372020-05-13 Tom Tromey <tromey@adacore.com>
9438
9439 * ada-lang.c (align_value): Remove.
9440 (ada_template_to_fixed_record_type_1): Use align_up.
9441
f7e23710
TBA
94422020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9443
9444 * async-event.c: Update the copyright year.
9445 * async-event.h: Update the copyright year.
9446
02ff80c2
SM
94472020-05-12 Simon Marchi <simon.marchi@efficios.com>
9448
9449 * objfiles.h (is_addr_in_objfile,
9450 shared_objfile_contains_address_p): Return bool.
9451 * objfile.c (is_addr_in_objfile,
9452 shared_objfile_contains_address_p): Return bool.
9453
4fd6c7e8
TT
94542020-05-11 Tom Tromey <tromey@adacore.com>
9455
9456 * cli/cli-cmds.c (info_command): Restore.
9457 (_initialize_cli_cmds): Use add_prefix_command for "info".
9458 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
9459
5eb68a39
TT
94602020-05-11 Tom Tromey <tromey@adacore.com>
9461
9462 * ada-lang.c (ada_value_primitive_field): Now public.
9463 * ada-lang.h (ada_value_primitive_field): Declare.
9464 * ada-valprint.c (print_field_values): Use
9465 ada_value_primitive_field for wrapper fields.
9466
7666722f
TV
94672020-05-11 Tom de Vries <tdevries@suse.de>
9468
9469 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
9470 MODULE_DOMAIN.
9471
3ee6bb11
TV
94722020-05-11 Tom de Vries <tdevries@suse.de>
9473
9474 PR symtab/25941
9475 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
9476 with length 0, if not gdb-produced.
9477 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
9478
43434996
TV
94792020-05-09 Tom de Vries <tdevries@suse.de>
9480
9481 PR gdb/25955
9482 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
9483 calculation.
9484
2f78cffc
TT
94852020-05-09 Tom Tromey <tom@tromey.com>
9486
9487 * top.c (server_command): Now bool.
9488 * top.h (server_command): Now bool.
9489
4f7bc5ed
TT
94902020-05-08 Tom Tromey <tromey@adacore.com>
9491
9492 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
9493 already being processed.
9494
8be4b118
TT
94952020-05-08 Tom Tromey <tom@tromey.com>
9496
9497 * printcmd.c (struct display) <next>: Remove.
9498 <display>: New constructor.
9499 <exp_string>: Now a std::string.
9500 <enabled_p>: Now a bool.
9501 (display_number): Move definition earlier.
9502 (displays): Rename from display_chain. Now a std::vector.
9503 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
9504 (display_command): Update.
9505 (do_one_display, disable_display)
9506 (enable_disable_display_command, do_enable_disable_display):
9507 Update.
9508 (free_display): Remove.
9509 (clear_displays): Rewrite.
9510 (delete_display): Update.
9511 (map_display_numbers): Use function_view. Remove "data"
9512 parameter. Update.
9513 (do_delete_display): Remove.
9514 (undisplay_command): Update.
9515 (do_one_display, do_displays, disable_display)
9516 (info_display_command): Update.
9517 (do_enable_disable_display): Remove.
9518 (enable_disable_display_command)
9519 (clear_dangling_display_expressions): Update.
9520
94c93c35
TT
95212020-05-08 Tom Tromey <tom@tromey.com>
9522
9523 * symtab.c (set_symbol_cache_size)
9524 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
9525 (maintenance_print_symbol_cache_statistics): Update.
9526 * symmisc.c (print_symbol_bcache_statistics)
9527 (print_objfile_statistics, maintenance_print_objfiles)
9528 (maintenance_info_symtabs, maintenance_check_symtabs)
9529 (maintenance_expand_symtabs, maintenance_info_line_tables):
9530 Update.
9531 * symfile-debug.c (set_debug_symfile): Update.
9532 * source.c (forget_cached_source_info): Update.
9533 * python/python.c (gdbpy_progspaces): Update.
9534 * psymtab.c (maintenance_info_psymtabs): Update.
9535 * probe.c (parse_probes): Update.
9536 * linespec.c (iterate_over_all_matching_symtabs)
9537 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
9538 * guile/scm-progspace.c (gdbscm_progspaces): Update.
9539 * exec.c (exec_target::close): Update.
9540 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
9541 * breakpoint.c (print_one_breakpoint_location)
9542 (create_longjmp_master_breakpoint)
9543 (create_std_terminate_master_breakpoint): Update.
9544 * progspace.c (program_spaces): Now a std::vector.
9545 (maybe_new_address_space): Update.
9546 (add_program_space): Remove.
9547 (program_space::program_space): Update.
9548 (remove_program_space): Update.
9549 (number_of_program_spaces): Remove.
9550 (print_program_space, update_address_spaces): Update.
9551 * progspace.h (program_spaces): Change type.
9552 (ALL_PSPACES): Remove.
9553 (number_of_program_spaces): Don't declare.
9554 (struct program_space) <next>: Remove.
9555
a1fd1ac9
TT
95562020-05-08 Tom Tromey <tom@tromey.com>
9557
9558 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
9559 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
9560 (enable_break): Update.
9561 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
9562 (frv_fdpic_find_canonical_descriptor): Update.
9563 (frv_fetch_objfile_link_map): Update.
9564 * progspace.c (program_space::free_all_objfiles): Update.
9565 (program_space::solibs): New method.
9566 * progspace.h (struct program_space) <solibs>: New method.
9567 * solist.h (master_so_list): Don't declare.
9568 (ALL_SO_LIBS): Remove.
9569 * solib.h (so_list_head): Remove.
9570 (update_solib_list): Update comment.
9571 * solib.c (master_so_list): Remove.
9572 (solib_used, update_solib_list, solib_add)
9573 (info_sharedlibrary_command, clear_solib)
9574 (reload_shared_libraries_1, remove_user_added_objfile): Update.
9575
38eae084
TT
95762020-05-08 Tom Tromey <tom@tromey.com>
9577
9578 * extension.c (extension_languages): Now a std::array.
9579 (ALL_EXTENSION_LANGUAGES): Remove.
9580 (get_ext_lang_defn, get_ext_lang_of_file)
9581 (eval_ext_lang_from_control_command): Update.
9582 (finish_ext_lang_initialization)
9583 (auto_load_ext_lang_scripts_for_objfile)
9584 (ext_lang_type_printers::ext_lang_type_printers)
9585 (apply_ext_lang_type_printers)
9586 (ext_lang_type_printers::~ext_lang_type_printers)
9587 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
9588 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
9589 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
9590 (get_matching_xmethod_workers, ext_lang_colorize)
9591 (ext_lang_before_prompt): Update.
9592 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
9593
596dc4ad
TT
95942020-05-08 Tom Tromey <tom@tromey.com>
9595
9596 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
9597 overload.
9598 <swap_string, m_string>: Remove.
9599 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
9600 Update.
9601 * stabsread.c (define_symbol, read_type): Update.
9602 * linespec.c (find_linespec_symbols): Update.
9603 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
9604 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
9605 * dbxread.c (read_dbx_symtab): Update.
9606 * cp-support.h (cp_canonicalize_string_full)
9607 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
9608 Return unique_xmalloc_ptr.
9609 * cp-support.c (inspect_type): Update.
9610 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
9611 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
9612 Likewise.
9613 * c-typeprint.c (print_name_maybe_canonical): Update.
9614 * break-catch-throw.c (check_status_exception_catchpoint):
9615 Update.
9616
bf4cb9be
TV
96172020-05-08 Tom de Vries <tdevries@suse.de>
9618
9619 * infrun.c (follow_fork): Copy current_line and current_symtab to
9620 child thread.
9621
a1b68f28
SM
96222020-05-07 Simon Marchi <simon.marchi@efficios.com>
9623
9624 * async-event.c (struct async_signal_handler, struct
9625 async_event_handler): Reformat, remove typedef.
9626
98d48915
SM
96272020-05-07 Simon Marchi <simon.marchi@efficios.com>
9628
9629 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
9630 access thistype->main_type->dyn_prop_list directly.
9631
7aa91313
SM
96322020-05-07 Simon Marchi <simon.marchi@efficios.com>
9633
9634 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
9635 (remove_dyn_prop): Remove. Update all users to use
9636 type::remove_dyn_prop.
9637 * gdbtypes.c (remove_dyn_prop): Rename to...
9638 (type::remove_dyn_prop): ... this.
9639
5c54719c
SM
96402020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
9641
9642 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
9643 (add_dyn_prop): Remove. Update all users to use
9644 type::add_dyn_prop.
9645 * gdbtypes.c (add_dyn_prop): Rename to...
9646 (type::add_dyn_prop): ... this.
9647
24e99c6c
SM
96482020-05-07 Simon Marchi <simon.marchi@efficios.com>
9649
9650 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
9651 (get_dyn_prop): Remove. Update all users to use
9652 type::dyn_prop.
9653 * gdbtypes.c (get_dyn_prop): Rename to...
9654 (type::dyn_prop): ... this.
9655
0d4bf016
SM
96562020-05-06 Simon Marchi <simon.marchi@efficios.com>
9657
9658 * gdbtypes.h (struct main_type) <flag_static>: Remove.
9659
ac4a4f1c
SM
96602020-05-06 Simon Marchi <simon.marchi@efficios.com>
9661
9662 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
9663 instruction, skip it if it's there.
9664
a3bbacc1
SM
96652020-05-05 Simon Marchi <simon.marchi@efficios.com>
9666
9667 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
9668
c3236f84
SM
96692020-05-04 Simon Marchi <simon.marchi@efficios.com>
9670
9671 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
9672 * gdbtypes.c (recursive_dump_type): Remove use of
9673 TYPE_INCOMPLETE.
9674
3b6acaee
TT
96752020-05-03 Tom Tromey <tom@tromey.com>
9676
9677 * breakpoint.c (catch_command, tcatch_command): Remove.
9678 (_initialize_breakpoint): Use add_basic_prefix_cmd,
9679 add_show_prefix_cmd.
9680 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
9681 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
9682 Remove.
9683 (add_internal_problem_command): Use add_basic_prefix_cmd,
9684 add_show_prefix_cmd.
9685 * mips-tdep.c (set_mipsfpu_command): Remove.
9686 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
9687 * dwarf2/index-cache.c (set_index_cache_command): Remove.
9688 (_initialize_index_cache): Use add_basic_prefix_cmd.
9689 * memattr.c (dummy_cmd): Remove.
9690 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
9691 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
9692 (_initialize_tui_win): Use add_basic_prefix_cmd,
9693 add_show_prefix_cmd.
9694 * cli/cli-logging.c (set_logging_command): Remove.
9695 (_initialize_cli_logging): Use add_basic_prefix_cmd,
9696 add_show_prefix_cmd.
9697 (show_logging_command): Remove.
9698 * target.c (target_command): Remove.
9699 (add_target): Use add_basic_prefix_cmd.
9700
a51119cd
HD
97012020-05-02 Hannes Domani <ssbssa@yahoo.de>
9702
9703 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
9704
652fc23a 97052020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 9706
652fc23a
PW
9707 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
9708 info_command.
9709
117539e6
KR
97102020-04-30 Kamil Rytarowski <n54@gmx.com>
9711
9712 * nbsd-nat.c (nbsd_enable_proc_events)
9713 (nbsd_nat_target::post_startup_inferior): Add.
9714 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
9715 (nbsd_nat_target::update_thread_list): Rewrite.
9716 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
9717 "PTRACE_LWP_CREATE".
9718 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
9719
102e38eb 97202020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 9721
102e38eb
PW
9722 * stack.c (_initialize_stack): Remove duplicated creation
9723 of "frame" command and "f" alias.
9724
ee9d1e5f
HD
97252020-04-30 Hannes Domani <ssbssa@yahoo.de>
9726
9727 PR gdb/18706
9728 * gdbtypes.c (check_typedef): Calculate size of array of
9729 stubbed type.
9730
627c7fb8
HD
97312020-04-30 Hannes Domani <ssbssa@yahoo.de>
9732
9733 PR gdb/15559
9734 * i386-tdep.c (i386_push_dummy_call): Call
9735 i386_thiscall_push_dummy_call.
9736 (i386_thiscall_push_dummy_call): New function.
9737 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
9738 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
9739 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
9740
ffc2844e
SM
97412020-04-29 Simon Marchi <simon.marchi@efficios.com>
9742
9743 * gdbarch.sh (do_read): Add shellcheck disable directive for
9744 warning SC2162.
9745
1207375d
SM
97462020-04-29 Simon Marchi <simon.marchi@efficios.com>
9747
9748 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
9749 "referenced but not assigned" warning.
9750
9fdb2916
SM
97512020-04-29 Simon Marchi <simon.marchi@efficios.com>
9752
9753 * gdbarch.sh: Remove code that sets fallbackdefault.
9754
759cea5e
SM
97552020-04-29 Simon Marchi <simon.marchi@efficios.com>
9756
9757 * gdbarch.sh: Use shell operators && and || instead of
9758 -a and -o.
9759
cb02ab24
SM
97602020-04-29 Simon Marchi <simon.marchi@efficios.com>
9761
9762 * gdbarch.sh: Use $(...) instead of `...`.
9763
a6fc5ffc
SM
97642020-04-29 Simon Marchi <simon.marchi@efficios.com>
9765
9766 * gdbarch.sh: Use double quotes around variables.
9767
8d113d13
SM
97682020-04-29 Simon Marchi <simon.marchi@efficios.com>
9769
9770 * gdbarch.sh: Use %s with printf, instead of variables in the
9771 format string.
9772
ed6acedd
TT
97732020-04-29 Tom Tromey <tromey@adacore.com>
9774
9775 PR ada/25875:
9776 * dwarf2/read.c (update_enumeration_type_from_children): Compute
9777 type fields here.
9778 (read_enumeration_type): Call
9779 update_enumeration_type_from_children later. Update comments.
9780 (process_enumeration_scope): Don't create type fields.
9781
b68b1b58
KR
97822020-04-29 Kamil Rytarowski <n54@gmx.com>
9783
9784 * nbsd-tdep.c: Include "xml-syscall.h".
9785 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
9786
f94b2e03
KR
97872020-04-29 Kamil Rytarowski <n54@gmx.com>
9788
9789 * nbsd-nat.c: Include "sys/wait.h".
9790 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
9791 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
9792 (nbsd_nat_target::remove_exec_catchpoint)
9793 (nbsd_nat_target::set_syscall_catchpoint): Add.
9794 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
9795 (nbsd_nat_target::insert_exec_catchpoint)
9796 (nbsd_nat_target::remove_exec_catchpoint)
9797 (nbsd_nat_target::set_syscall_catchpoint): Add.
9798 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
9799 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
9800 `nbsd_get_syscall_number'.
9801
fc49bc72
TT
98022020-04-29 Tom Tromey <tom@tromey.com>
9803
9804 * stack.c (print_block_frame_labels): Remove.
9805
d642b692
HD
98062020-04-29 Hannes Domani <ssbssa@yahoo.de>
9807
9808 PR gdb/17320
9809 * ada-valprint.c (val_print_packed_array_elements): Move array
9810 end bracket to new line.
9811 (ada_val_print_string): Remove extra spaces before first array
9812 element.
9813 * c-valprint.c (c_value_print_array): Likewise.
9814 * m2-valprint.c (m2_print_array_contents): Likewise.
9815 (m2_value_print_inner): Likewise.
9816 * p-valprint.c (pascal_value_print_inner): Likewise.
9817 * valprint.c (generic_val_print_array): Likewise.
9818 (value_print_array_elements): Move first array element and array
9819 end bracket to new line.
9820
ea90f227
TV
98212020-04-29 Tom de Vries <tdevries@suse.de>
9822
9823 PR symtab/25889
9824 * linespec.c (find_method): Fix ix calculation.
9825
4498ef4f
KR
98262020-04-28 Kamil Rytarowski <n54@gmx.com>
9827
9828 * syscalls/update-netbsd.sh: New file.
9829 * syscalls/netbsd.xml: Regenerate.
9830 * data-directory/Makefile.in: Register `netbsd.xml' in
9831 `SYSCALLS_FILES'.
9832
a55e30b5
SM
98332020-04-28 Simon Marchi <simon.marchi@efficios.com>
9834
9835 * syscalls/update-freebsd.sh: Add double quotes.
9836
2b2fbab8
TT
98372020-04-28 Tom Tromey <tom@tromey.com>
9838
9839 * NEWS: Update.
9840 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
9841 (cmdpy_init): Allow class_tui.
9842
a65189c9
TV
98432020-04-28 Mark Williams <mark@myosotissp.com>
9844
9845 PR gdb/24480
9846 * dwarf2read.c: Add missing assingments to list_in_scope when
9847 start_symtab was already called.
9848
1b95cdb7
SM
98492020-04-28 Simon Marchi <simon.marchi@efficios.com>
9850
9851 PR gdb/25881
9852 * dwarf2/read.c (offset_map_type): Use
9853 gdb:hash_enum<sect_offset> as hash function.
9854
15cd93d0
TV
98552020-04-28 Tom de Vries <tdevries@suse.de>
9856
9857 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
9858 with DW_AT_signature.
9859
1eb39914
SM
98602020-04-27 Simon Marchi <simon.marchi@efficios.com>
9861
9862 * configure.ac: Remove check for fs_base/gs_base in
9863 user_regs_struct.
9864 * configure: Re-generate.
9865 * config.in: Re-generate.
9866 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
9867 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
9868 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
9869
991a3e2e
LM
98702020-04-27 Luis Machado <luis.machado@linaro.org>
9871
9872 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
9873 problematic inline frame unwinding situation.
9874 * frame.c (frame_id_computed_p): New function.
9875 * frame.h (frame_id_computed_p): New prototype.
9876
361ba0e8
TT
98772020-04-26 Tom Tromey <tom@tromey.com>
9878
9879 * command.h (enum command_class) <class_pseudo>: Remove.
9880
bc3609fd
PW
98812020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9882
9883 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
9884 and whitespace.
9885
b9771db7
KR
98862020-04-25 Kamil Rytarowski <n54@gmx.com>
9887
ec16513e
SM
9888 * inf-ptrace.c (inf_ptrace_target::wait): Remove
9889 `PT_GET_PROCESS_STATE' block.
b9771db7 9890
7151c1af
TT
98912020-04-24 Tom Tromey <tom@tromey.com>
9892
9893 * symtab.h (symbol_get_demangled_name): Don't declare.
9894 * symtab.c (symbol_get_demangled_name): Remove.
9895 (general_symbol_info::natural_name)
9896 (general_symbol_info::demangled_name): Update.
9897
906bb4c5
TT
98982020-04-24 Tom Tromey <tom@tromey.com>
9899
9900 PR rust/25025:
9901 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
9902
bcfe6157
TT
99032020-04-24 Tom Tromey <tom@tromey.com>
9904
9905 PR symtab/12707:
9906 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
9907 exists.
9908 (new_symbol): Likewise.
9909 * compile/compile-object-load.c (get_out_value_type): Use
9910 symbol_matches_search_name.
9911
f049a313
TT
99122020-04-24 Tom Tromey <tom@tromey.com>
9913
9914 * dwarf2/read.c (add_partial_symbol): Do not call
9915 compute_and_set_names.
9916
76e288d1
TT
99172020-04-24 Tom Tromey <tom@tromey.com>
9918
9919 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
9920 overload.
9921
2467f4f6
TT
99222020-04-24 Tom Tromey <tom@tromey.com>
9923
9924 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
9925 (add_psymbol_to_list): New overload. Make old overload call new
9926 one.
9927 * psympriv.h (add_psymbol_to_list): New overload.
9928
e61108c9
TT
99292020-04-24 Tom Tromey <tom@tromey.com>
9930
9931 * dwarf2/read.c (partial_die_info::read) <case
9932 DW_AT_linkage_name>: Use value_as_string.
9933 (dwarf2_string_attr): Use value_as_string.
9934 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
9935 method.
9936 * dwarf2/attribute.c (attribute::value_as_string): New method.
9937
8c87a452
TT
99382020-04-24 Tom Tromey <tom@tromey.com>
9939
9940 * symtab.c (general_symbol_info::natural_name)
9941 (general_symbol_info::demangled_name): Check for language_rust.
9942
787de330
TT
99432020-04-24 Tom Tromey <tom@tromey.com>
9944
9945 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
9946 (dwarf2_physname): ... from here.
9947 (partial_die_info::read): Add Rust "{" hack.
9948
ff985671
TT
99492020-04-24 Tom Tromey <tom@tromey.com>
9950
9951 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
9952 method.
9953 (symbol_set_demangled_name): Don't declare.
9954 * symtab.c (general_symbol_info::set_demangled_name): Rename from
9955 symbol_set_demangled_name.
9956 (general_symbol_info::set_language)
9957 (general_symbol_info::compute_and_set_names): Update.
9958 * minsyms.c (minimal_symbol_reader::install): Update.
9959 * dwarf2/read.c (new_symbol): Update.
9960
1acda803
TT
99612020-04-24 Tom Tromey <tromey@adacore.com>
9962
9963 PR python/23662:
9964 * python/py-type.c (convert_field): Handle
9965 FIELD_LOC_KIND_DWARF_BLOCK.
9966 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
9967 (typy_get_dynamic): Nw function.
9968 (type_object_getset): Add "dynamic".
9969 * NEWS: Add entry.
9970
d656f129
TT
99712020-04-24 Tom Tromey <tromey@adacore.com>
9972
9973 * ada-typeprint.c (print_choices, print_variant_part)
9974 (print_record_field_types_dynamic): New functions.
9975 (print_record_field_types): Use print_record_field_types_dynamic.
9976
7d79de9a
TT
99772020-04-24 Tom Tromey <tromey@adacore.com>
9978
9979 * dwarf2/read.c (handle_data_member_location): New overload.
9980 (dwarf2_add_field): Use it.
9981 (decode_locdesc): Add "computed" parameter. Update comment.
9982 * gdbtypes.c (is_dynamic_type_internal): Also look for
9983 FIELD_LOC_KIND_DWARF_BLOCK.
9984 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
9985 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
9986 virtual base classes.
9987 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
9988 FIELD_LOC_KIND_DWARF_BLOCK.
9989
f8e89861
TT
99902020-04-24 Tom Tromey <tromey@adacore.com>
9991
9992 * dwarf2/read.c (read_structure_type): Handle dynamic length.
9993 * gdbtypes.c (is_dynamic_type_internal): Check
9994 TYPE_HAS_DYNAMIC_LENGTH.
9995 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
9996 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
9997 New macros.
9998 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
9999 constant.
10000
9c6a1327
TT
100012020-04-24 Tom Tromey <tromey@adacore.com>
10002
10003 * dwarf2/read.c (struct variant_field): Rewrite.
10004 (struct variant_part_builder): New.
10005 (struct nextfield): Remove "variant" field. Add "offset".
10006 (struct field_info): Add "current_variant_part" and
10007 "variant_parts".
10008 (alloc_discriminant_info): Remove.
10009 (alloc_rust_variant): New function.
10010 (quirk_rust_enum): Update.
10011 (dwarf2_add_field): Set "offset" member. Don't handle
10012 DW_TAG_variant_part.
10013 (offset_map_type): New typedef.
10014 (convert_variant_range, create_one_variant)
10015 (create_one_variant_part, create_variant_parts)
10016 (add_variant_property): New functions.
10017 (dwarf2_attach_fields_to_type): Call add_variant_property.
10018 (read_structure_type): Don't handle DW_TAG_variant_part.
10019 (handle_variant_part, handle_variant): New functions.
10020 (handle_struct_member_die): Use them.
10021 (process_structure_scope): Don't handle variant parts.
10022 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
10023 (struct discriminant_info): Remove.
10024 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
10025 (struct main_type) <flag_discriminated_union>: Remove.
10026 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
10027 (rust_enum_variant): Return int. Remove "contents". Rewrite.
10028 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
10029 Update.
10030 * valops.c (value_union_variant): Remove.
10031 * value.h (value_union_variant): Don't declare.
10032
b249d2c2
TT
100332020-04-24 Tom Tromey <tromey@adacore.com>
10034
10035 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
10036 (ada_value_primitive_packed_val): Update.
10037 * ada-valprint.c (ada_value_print_1): Update.
10038 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
10039 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
10040 just an address. Use evaluate_for_locexpr_baton.
10041 (dwarf2_evaluate_property): Update.
10042 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
10043 array_view.
10044 * findvar.c (default_read_var_value): Update.
10045 * gdbtypes.c (compute_variant_fields_inner)
10046 (resolve_dynamic_type_internal): Update.
10047 (resolve_dynamic_type): Change type of valaddr parameter.
10048 * gdbtypes.h (resolve_dynamic_type): Update.
10049 * valarith.c (value_subscripted_rvalue): Update.
10050 * value.c (value_from_contents_and_address): Update.
10051
61122aa9
TT
100522020-04-24 Tom Tromey <tromey@adacore.com>
10053
10054 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
10055 "push_initial_value" parameter.
10056 (dwarf2_evaluate_property): Likewise.
10057 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
10058
ef83a141
TT
100592020-04-24 Tom Tromey <tromey@adacore.com>
10060
10061 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
10062 (variant::matches, compute_variant_fields_recurse)
10063 (compute_variant_fields_inner, compute_variant_fields): New
10064 functions.
10065 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
10066 Use resolved_type after type is made.
10067 (operator==): Add new cases.
10068 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
10069 (struct discriminant_range, struct variant, struct variant_part):
10070 New.
10071 (union dynamic_prop_data) <variant_parts, original_type>: New
10072 members.
10073 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
10074 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
10075 constants.
10076 * value.c (unpack_bits_as_long): Now public.
10077 * value.h (unpack_bits_as_long): Declare.
10078
675127ec
TT
100792020-04-24 Tom Tromey <tromey@adacore.com>
10080
10081 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
10082 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
10083
9852ceef
HD
100842020-04-24 Hannes Domani <ssbssa@yahoo.de>
10085
10086 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
10087
7632c6ce
KR
100882020-04-24 Kamil Rytarowski <n54@gmx.com>
10089
10090 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
10091 (remove_fork_catchpoint, post_startup_inferior)
10092 (post_attach): Move...
10093 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
10094 (remove_fork_catchpoint, post_startup_inferior)
10095 (post_attach): ...here.
10096 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
10097 (remove_fork_catchpoint, post_startup_inferior)
10098 (post_attach): Move...
10099 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
10100 (remove_fork_catchpoint, post_startup_inferior)
10101 (post_attach): ...here.
10102
7be2bb4f
TT
101032020-04-24 Tom Tromey <tromey@adacore.com>
10104
10105 * nat/windows-nat.h (struct windows_thread_info)
10106 <pc_adjusted>: New member.
10107 * windows-nat.c (windows_fetch_one_register): Check
10108 pc_adjusted.
10109 (windows_nat_target::get_windows_debug_event)
10110 (windows_nat_target::wait): Set pc_adjusted.
10111
f80cb3b4
TV
101122020-04-24 Tom de Vries <tdevries@suse.de>
10113
10114 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
10115 Run gdb-add-index inside temp dir.
10116
29514b87
TT
101172020-04-23 Tom Tromey <tromey@adacore.com>
10118
10119 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
10120 in loop.
10121
5939967b
LM
101222020-04-23 Luis Machado <luis.machado@linaro.org>
10123
10124 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10125 get_frame_register instead of gdbarch_unwind_pc.
10126
70bc38f5
TV
101272020-04-23 Tom de Vries <tdevries@suse.de>
10128
10129 * symtab.c (lookup_global_symbol): Prefer def over decl.
10130
de82891c
TV
101312020-04-23 Tom de Vries <tdevries@suse.de>
10132
10133 PR symtab/25807
10134 * block.c (best_symbol, better_symbol): Promote to external.
10135 * block.h (best_symbol, better_symbol): Declare.
10136 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
10137 decl.
10138
ecc6c606
TT
101392020-04-23 Tom Tromey <tromey@adacore.com>
10140
10141 PR ada/25837:
10142 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
10143 "const char *", not a "const std::string &".
10144 <name_and_matcher::operator==>: Update.
10145 * unittests/lookup_name_info-selftests.c: Change type of
10146 "result".
10147
740480b8
TT
101482020-04-23 Tom Tromey <tom@tromey.com>
10149
10150 * inferior.h (iterate_over_inferiors): Don't declare.
10151 * inferior.c (iterate_over_inferiors): Remove.
10152 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
10153 Remove.
10154 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
10155 use iterate_over_inferiors.
10156 (darwin_resume_inferior_it)
10157 (struct resume_inferior_threads_param)
10158 (darwin_resume_inferior_threads_it): Remove.
10159 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
10160
ae3ab1f0
TV
101612020-04-23 Tom de Vries <tdevries@suse.de>
10162
10163 * blockframe.c (find_pc_partial_function): Use
10164 find_pc_sect_compunit_symtab rather than
10165 objfile->sf->qf->find_pc_sect_compunit_symtab.
10166
317d2668
TV
101672020-04-22 Tom de Vries <tdevries@suse.de>
10168
10169 PR symtab/25764
10170 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
10171 in psymtabs.
10172
eea9e357
TV
101732020-04-22 Tom de Vries <tdevries@suse.de>
10174
10175 PR symtab/25801
10176 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
10177 symtabs.
10178
3d5afab3
TV
101792020-04-22 Tom de Vries <tdevries@suse.de>
10180
10181 PR symtab/25700
10182 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
10183 CU if already created.
10184
d43b7a2d
TBA
101852020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10186
10187 * infrun.c (displaced_step_fixup): Switch to the event_thread
10188 before calling displaced_step_restore, not after.
10189
d89edf9b
MM
101902020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10191
10192 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
10193 its inferior is not recorded by us.
10194 (record_btrace_target_open): Replace call to
10195 all_non_exited_threads () with call to current_inferior
10196 ()->non_exited_threads ().
10197 (record_btrace_target::stop_recording): Likewise.
10198 (record_btrace_target::close): Likewise.
10199 (record_btrace_target::wait): Likewise.
10200 (record_btrace_target::record_stop_replaying): Likewise.
10201
5897fd49
MM
102022020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10203
10204 * btrace.c (btrace_enable): Throw an error on double enables and
10205 when enabling recording fails.
10206 (btrace_disable): Throw an error if the thread is not recorded.
10207
1a476b6d
MM
102082020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10209
10210 * record-btrace.c (record_btrace_target::fetch_registers): Forward
10211 request if we do not have a thread_info.
10212
4778a5f8
TV
102132020-04-21 Tom de Vries <tdevries@suse.de>
10214
10215 PR gdb/25471
10216 * thread.c
10217 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
10218 exception in get_frame_id.
10219
0fa7617d
TT
102202020-04-20 Tom Tromey <tromey@adacore.com>
10221
10222 * python/python.c (struct gdbpy_event): Mark move constructor as
10223 noexcept.
10224 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
10225 constructor as noexcept.
10226 * completer.h (struct completion_result): Mark move constructor as
10227 noexcept.
10228 * completer.c (completion_result::completion_result): Use
10229 initialization style. Don't call reset_match_list.
10230
ad23bda0
MS
102312020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
10232
10233 * MAINTAINERS (Write After Approval): Add myself.
10234
45e1f031
TT
102352020-04-18 Tom Tromey <tom@tromey.com>
10236
10237 * windows-tdep.c (init_w32_command_list)
10238 (w32_prefix_command_valid): Restore.
10239 (_initialize_windows_tdep): Call init_w32_command_list.
10240
08feed99
TT
102412020-04-18 Tom Tromey <tom@tromey.com>
10242
10243 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
10244 * value.c (value_fn_field): Update.
10245 * valops.c (find_function_in_inferior)
10246 (value_allocate_space_in_inferior): Update.
10247 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10248 Update.
10249 * tui/tui-source.c (tui_source_window::set_contents): Update.
10250 * symtab.c (lookup_global_or_static_symbol)
10251 (find_function_start_sal_1, skip_prologue_sal)
10252 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
10253 * symmisc.c (dump_msymbols, dump_symtab_1)
10254 (maintenance_print_one_line_table): Update.
10255 * symfile.c (init_entry_point_info, section_is_mapped)
10256 (list_overlays_command, simple_read_overlay_table)
10257 (simple_overlay_update_1): Update.
10258 * stap-probe.c (handle_stap_probe): Update.
10259 * stabsread.c (dbx_init_float_type, define_symbol)
10260 (read_one_struct_field, read_enum_type, read_range_type): Update.
10261 * source.c (info_line_command): Update.
10262 * python/python.c (gdbpy_source_objfile_script)
10263 (gdbpy_execute_objfile_script): Update.
10264 * python/py-type.c (save_objfile_types): Update.
10265 * python/py-objfile.c (py_free_objfile): Update.
10266 * python/py-inferior.c (python_new_objfile): Update.
10267 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
10268 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
10269 (maintenance_check_psymtabs): Update.
10270 * printcmd.c (info_address_command): Update.
10271 * objfiles.h (struct objfile) <arch>: New method, from
10272 get_objfile_arch.
10273 (get_objfile_arch): Don't declare.
10274 * objfiles.c (get_objfile_arch): Remove.
10275 (filter_overlapping_sections): Update.
10276 * minsyms.c (msymbol_is_function): Update.
10277 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
10278 (output_nondebug_symbol): Update.
10279 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
10280 (mdebug_expand_psymtab): Update.
10281 * machoread.c (macho_add_oso_symfile): Update.
10282 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
10283 Update.
10284 * linux-fork.c (checkpoint_command): Update.
10285 * linespec.c (convert_linespec_to_sals): Update.
10286 * jit.c (finalize_symtab): Update.
10287 * infrun.c (insert_exception_resume_from_probe): Update.
10288 * ia64-tdep.c (ia64_find_unwind_table): Update.
10289 * hppa-tdep.c (internalize_unwinds): Update.
10290 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
10291 Update.
10292 * gcore.c (call_target_sbrk): Update.
10293 * elfread.c (record_minimal_symbol, elf_symtab_read)
10294 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
10295 (elf_gnu_ifunc_resolve_by_got): Update.
10296 * dwarf2/read.c (create_addrmap_from_index)
10297 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10298 (read_debug_names_from_section)
10299 (process_psymtab_comp_unit_reader, add_partial_symbol)
10300 (add_partial_subprogram, process_full_comp_unit)
10301 (read_file_scope, read_func_scope, read_lexical_block_scope)
10302 (read_call_site_scope, dwarf2_ranges_read)
10303 (dwarf2_record_block_ranges, dwarf2_add_field)
10304 (mark_common_block_symbol_computed, read_tag_pointer_type)
10305 (read_tag_string_type, dwarf2_init_float_type)
10306 (dwarf2_init_complex_target_type, read_base_type)
10307 (partial_die_info::read, partial_die_info::read)
10308 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
10309 (dwarf2_fetch_die_loc_sect_off): Update.
10310 * dwarf2/loc.c (dwarf2_find_location_expression)
10311 (class dwarf_evaluate_loc_desc, rw_pieced_value)
10312 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
10313 (dwarf2_loc_desc_get_symbol_read_needs)
10314 (locexpr_describe_location_piece, locexpr_describe_location_1)
10315 (loclist_describe_location): Update.
10316 * dwarf2/index-write.c (write_debug_names): Update.
10317 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
10318 * dtrace-probe.c (dtrace_process_dof): Update.
10319 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
10320 (process_one_symbol): Update.
10321 * ctfread.c (ctf_init_float_type, read_base_type): Update.
10322 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
10323 (coff_read_enum_type): Update.
10324 * cli/cli-cmds.c (edit_command, list_command): Update.
10325 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
10326 * breakpoint.c (create_overlay_event_breakpoint)
10327 (create_longjmp_master_breakpoint)
10328 (create_std_terminate_master_breakpoint)
10329 (create_exception_master_breakpoint, get_sal_arch): Update.
10330 * block.c (block_gdbarch): Update.
10331 * annotate.c (annotate_source_line): Update.
10332
0743fc83
TT
103332020-04-17 Tom Tromey <tromey@adacore.com>
10334
10335 * auto-load.c (show_auto_load_cmd): Remove.
10336 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
10337 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
10338 (maintenance_print_arc_command): Remove.
10339 * tui/tui-win.c (tui_command): Remove.
10340 (tui_get_cmd_list): Use add_basic_prefix_cmd.
10341 * tui/tui-layout.c (tui_layout_command): Remove.
10342 (_initialize_tui_layout): Use add_basic_prefix_cmd.
10343 * python/python.c (user_set_python, user_show_python): Remove.
10344 (_initialize_python): Use add_basic_prefix_cmd,
10345 add_show_prefix_cmd.
10346 * guile/guile.c (set_guile_command, show_guile_command): Remove.
10347 (install_gdb_commands): Use add_basic_prefix_cmd,
10348 add_show_prefix_cmd.
10349 (info_guile_command): Remove.
10350 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
10351 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
10352 add_show_prefix_cmd.
10353 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
10354 Remove do_set and do_show parameters.
10355 * cli/cli-style.c (set_style, show_style): Remove.
10356 (_initialize_cli_style): Use add_basic_prefix_cmd,
10357 add_show_prefix_cmd.
10358 (cli_style_option::add_setshow_commands): Remove do_set and
10359 do_show parameters.
10360 (cli_style_option::add_setshow_commands): Use
10361 add_basic_prefix_cmd, add_show_prefix_cmd.
10362 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
10363 (set_style_name): Remove.
10364 * cli/cli-dump.c (dump_command, append_command): Remove.
10365 (srec_dump_command, ihex_dump_command, verilog_dump_command)
10366 (tekhex_dump_command, binary_dump_command)
10367 (binary_append_command): Remove.
10368 (_initialize_cli_dump): Use add_basic_prefix_cmd.
10369 * windows-tdep.c (w32_prefix_command_valid): Remove global.
10370 (init_w32_command_list): Remove; move into ...
10371 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
10372 * valprint.c (set_print, show_print, set_print_raw)
10373 (show_print_raw): Remove.
10374 (_initialize_valprint): Use add_basic_prefix_cmd,
10375 add_show_prefix_cmd.
10376 * typeprint.c (set_print_type, show_print_type): Remove.
10377 (_initialize_typeprint): Use add_basic_prefix_cmd,
10378 add_show_prefix_cmd.
10379 * record.c (set_record_command, show_record_command): Remove.
10380 (_initialize_record): Use add_basic_prefix_cmd,
10381 add_show_prefix_cmd.
10382 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
10383 add_show_prefix_cmd.
10384 (info_command, show_command, set_debug, show_debug): Remove.
10385 * top.h (set_history, show_history): Don't declare.
10386 * top.c (set_history, show_history): Remove.
10387 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
10388 (unset_tdesc_cmd): Remove.
10389 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
10390 add_show_prefix_cmd.
10391 * symtab.c (info_module_command): Remove.
10392 (_initialize_symtab): Use add_basic_prefix_cmd.
10393 * symfile.c (overlay_command): Remove.
10394 (_initialize_symfile): Use add_basic_prefix_cmd.
10395 * sparc64-tdep.c (info_adi_command): Remove.
10396 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
10397 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
10398 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
10399 add_show_prefix_cmd.
10400 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
10401 (_initialize_serial): Use add_basic_prefix_cmd,
10402 add_show_prefix_cmd.
10403 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
10404 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
10405 add_show_prefix_cmd.
10406 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
10407 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
10408 add_show_prefix_cmd.
10409 * riscv-tdep.c (show_riscv_command, set_riscv_command)
10410 (show_debug_riscv_command, set_debug_riscv_command): Remove.
10411 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
10412 add_show_prefix_cmd.
10413 * remote.c (remote_command, set_remote_cmd): Remove.
10414 (_initialize_remote): Use add_basic_prefix_cmd.
10415 * record-full.c (set_record_full_command)
10416 (show_record_full_command): Remove.
10417 (_initialize_record_full): Use add_basic_prefix_cmd,
10418 add_show_prefix_cmd.
10419 * record-btrace.c (cmd_set_record_btrace)
10420 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
10421 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
10422 (cmd_show_record_btrace_pt): Remove.
10423 (_initialize_record_btrace): Use add_basic_prefix_cmd,
10424 add_show_prefix_cmd.
10425 * ravenscar-thread.c (set_ravenscar_command)
10426 (show_ravenscar_command): Remove.
10427 (_initialize_ravenscar): Use add_basic_prefix_cmd,
10428 add_show_prefix_cmd.
10429 * mips-tdep.c (show_mips_command, set_mips_command)
10430 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
10431 add_show_prefix_cmd.
10432 * maint.c (maintenance_command, maintenance_info_command)
10433 (maintenance_check_command, maintenance_print_command)
10434 (maintenance_set_cmd, maintenance_show_cmd): Remove.
10435 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
10436 add_show_prefix_cmd.
10437 (show_per_command_cmd): Remove.
10438 * maint-test-settings.c (maintenance_set_test_settings_cmd):
10439 Remove.
10440 (maintenance_show_test_settings_cmd): Remove.
10441 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
10442 add_show_prefix_cmd.
10443 * maint-test-options.c (maintenance_test_options_command):
10444 Remove.
10445 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
10446 * macrocmd.c (macro_command): Remove
10447 (_initialize_macrocmd): Use add_basic_prefix_cmd.
10448 * language.c (set_check, show_check): Remove.
10449 (_initialize_language): Use add_basic_prefix_cmd,
10450 add_show_prefix_cmd.
10451 * infcmd.c (unset_command): Remove.
10452 (_initialize_infcmd): Use add_basic_prefix_cmd.
10453 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
10454 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
10455 add_show_prefix_cmd.
10456 * go32-nat.c (go32_info_dos_command): Remove.
10457 (_initialize_go32_nat): Use add_basic_prefix_cmd.
10458 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
10459 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
10460 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
10461 (_initialize_frame): Use add_basic_prefix_cmd,
10462 add_show_prefix_cmd.
10463 * dcache.c (set_dcache_command, show_dcache_command): Remove.
10464 (_initialize_dcache): Use add_basic_prefix_cmd,
10465 add_show_prefix_cmd.
10466 * cp-support.c (maint_cplus_command): Remove.
10467 (_initialize_cp_support): Use add_basic_prefix_cmd.
10468 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
10469 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
10470 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
10471 add_basic_prefix_cmd, add_show_prefix_cmd.
10472 * breakpoint.c (save_command): Remove.
10473 (_initialize_breakpoint): Use add_basic_prefix_cmd.
10474 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
10475 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
10476 add_show_prefix_cmd.
10477 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
10478 (set_ada_command, show_ada_command): Remove.
10479 (_initialize_ada_language): Use add_basic_prefix_cmd,
10480 add_show_prefix_cmd.
10481 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
10482
3557f442
KR
104832020-04-16 Kamil Rytarowski <n54@gmx.com>
10484
10485 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
10486 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
10487
16197208
SM
104882020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
10489
10490 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
10491 warning messages.
10492
00ac85d3
SM
104932020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
10494
10495 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
10496 import table is not at beginning of .idata section.
10497
381ce63f
PA
104982020-04-16 Pedro Alves <palves@redhat.com>
10499
10500 * inferior.c (delete_inferior): Use delete operator directly
10501 instead of delete_program_space.
10502 * progspace.c (add_program_space): New, factored out from
10503 program_space::program_space.
10504 (remove_program_space): New, factored out from
10505 delete_program_space.
10506 (program_space::program_space): Remove intro comment. Rewrite.
10507 (program_space::~program_space): Remove intro comment. Call
10508 remove_program_space.
10509 (delete_program_space): Delete.
10510 * progspace.h (program_space::program_space): Make explicit. Move
10511 intro comment here, adjusted.
10512 (program_space::~program_space): Move intro comment here,
10513 adjusted.
10514 (delete_program_space): Remove.
10515
a010605f
TT
105162020-04-16 Tom Tromey <tromey@adacore.com>
10517
10518 * windows-nat.c (windows_nat::handle_access_violation): New
10519 function.
10520 * nat/windows-nat.h (handle_access_violation): Declare.
10521 * nat/windows-nat.c (handle_exception): Move Cygwin code to
10522 windows-nat.c. Call handle_access_violation.
10523
efba5c23
TV
105242020-04-16 Tom de Vries <tdevries@suse.de>
10525
10526 PR symtab/25791
10527 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
10528 CUs without psymtab.
10529
97ed802d
KB
105302020-04-16 Kevin Buettner <kevinb@redhat.com>
10531
10532 * python/python.c (do_start_initialization): Don't call
10533 PyEval_InitThreads for Python 3.9 and beyond.
10534
c7d64809
KR
105352020-04-15 Kamil Rytarowski <n54@gmx.com>
10536
10537 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
10538 thread functions.
10539 (obsd_nat_target::wait): Likewise.
10540
ce127a96
TT
105412020-04-15 Tom Tromey <tromey@adacore.com>
10542
10543 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
10544 (DEBUG_EXCEPT): Use debug_printf.
10545
99f1bc6a
AB
105462020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
10547
10548 * completer.c (class completion_tracker::completion_hash_entry)
10549 <hash_name>: New member function.
10550 (completion_tracker::discard_completions): New callback to hash a
10551 completion_hash_entry, pass this to htab_create_alloc.
10552
a0e9b532
JT
105532016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
10554
10555 * windows-nat.c (windows_make_so): Warn rather than stopping with
10556 an error if realpath() fails.
10557
06ca5dd4
KR
105582020-04-14 Kamil Rytarowski <n54@gmx.com>
10559
10560 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
10561 (nbsd_nat_target::info_proc): Add do_status.
10562
194d088f
TV
105632020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
10564 Tom de Vries <tdevries@suse.de>
10565
10566 PR symtab/25718
10567 * psympriv.h (struct partial_symtab::read_symtab)
10568 (struct partial_symtab::expand_psymtab)
10569 (struct partial_symtab::read_dependencies): Update comments.
10570 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
10571 read_symtab for includer.
10572 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
10573 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
10574 (struct dwarf2_include_psymtab::m_readin): Remove.
10575 (struct dwarf2_include_psymtab::includer): New member function.
10576 (dwarf2_psymtab::expand_psymtab): Assert !readin.
10577
c1a66c06
TV
105782020-04-14 Tom de Vries <tdevries@suse.de>
10579
10580 PR symtab/25720
10581 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
10582 with NULL symbol_matcher and lookup_name.
10583 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
10584 and lookup_name.
10585 * dwarf2/read.c (dw2_expand_symtabs_matching)
10586 (dw2_debug_names_expand_symtabs_matching): Same.
10587 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
10588 Make lookup_name a pointer. Update comment.
10589 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
10590 lookup_name being a pointer.
10591 * symfile.c (expand_symtabs_matching): Same.
10592 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
10593 * linespec.c (iterate_over_all_matching_symtabs): Same.
10594
400b5eca
TT
105952020-04-13 Tom Tromey <tom@tromey.com>
10596
10597 * run-on-main-thread.c: Update include.
10598 * unittests/main-thread-selftests.c: Update include.
10599 * tui/tui-win.c: Update include.
10600 * tui/tui-io.c: Update include.
10601 * tui/tui-interp.c: Update include.
10602 * tui/tui-hooks.c: Update include.
10603 * top.h: Update include.
10604 * top.c: Update include.
10605 * ser-base.c: Update include.
10606 * remote.c: Update include.
10607 * remote-notif.c: Update include.
10608 * remote-fileio.c: Update include.
10609 * record-full.c: Update include.
10610 * record-btrace.c: Update include.
10611 * python/python.c: Update include.
10612 * posix-hdep.c: Update include.
10613 * mingw-hdep.c: Update include.
10614 * mi/mi-main.c: Update include.
10615 * mi/mi-interp.c: Update include.
10616 * main.c: Update include.
10617 * linux-nat.c: Update include.
10618 * interps.c: Update include.
10619 * infrun.c: Update include.
10620 * inf-loop.c: Update include.
10621 * event-top.c: Update include.
10622 * event-loop.c: Move to ../gdbsupport/.
10623 * event-loop.h: Move to ../gdbsupport/.
10624 * async-event.h: Update include.
10625 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
10626
93b54c8e
TT
106272020-04-13 Tom Tromey <tom@tromey.com>
10628
10629 * tui/tui-win.c: Include async-event.h.
10630 * remote.c: Include async-event.h.
10631 * remote-notif.c: Include async-event.h.
10632 * record-full.c: Include async-event.h.
10633 * record-btrace.c: Include async-event.h.
10634 * infrun.c: Include async-event.h.
10635 * event-top.c: Include async-event.h.
10636 * event-loop.h: Move some declarations to async-event.h.
10637 * event-loop.c: Don't include ser-event.h or top.h. Move some
10638 code to async-event.c.
10639 * async-event.h: New file.
10640 * async-event.c: New file.
10641 * Makefile.in (COMMON_SFILES): Add async-event.c.
10642 (HFILES_NO_SRCDIR): Add async-event.h.
10643
c1cd3163
TT
106442020-04-13 Tom Tromey <tom@tromey.com>
10645
10646 * utils.c (flush_streams): New function.
10647 * event-loop.c (gdb_wait_for_event): Call flush_streams.
10648
29f2bf4f
TT
106492020-04-13 Tom Tromey <tom@tromey.com>
10650
10651 * event-loop.c (handle_file_event): Use warning, not
10652 printf_unfiltered.
10653
98029d02
TT
106542020-04-13 Tom Tromey <tom@tromey.com>
10655
10656 * event-loop.c: Include <chrono>.
10657
06cc9596
TT
106582020-04-13 Tom Tromey <tom@tromey.com>
10659
10660 * gdb_select.h: Move to ../gdbsupport/.
10661 * event-loop.c: Update include path.
10662 * top.c: Update include path.
10663 * ser-base.c: Update include path.
10664 * ui-file.c: Update include path.
10665 * ser-tcp.c: Update include path.
10666 * guile/scm-ports.c: Update include path.
10667 * posix-hdep.c: Update include path.
10668 * ser-unix.c: Update include path.
10669 * gdb_usleep.c: Update include path.
10670 * mingw-hdep.c: Update include path.
10671 * inflow.c: Update include path.
10672 * infrun.c: Update include path.
10673 * event-top.c: Update include path.
10674
8ae8e197
TT
106752020-04-13 Tom Tromey <tom@tromey.com>
10676
10677 * configure: Rebuild.
10678 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
10679
58cf28e8
TT
106802020-04-13 Tom Tromey <tom@tromey.com>
10681
10682 * event-loop.h (start_event_loop): Don't declare.
10683 * event-loop.c (start_event_loop): Move...
10684 * main.c (start_event_loop): ...here. Now static.
10685
b7f999ae
SDJ
106862020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
10687
10688 * MAINTAINERS: Update my email address.
10689
1085dfd4
KR
106902020-04-12 Kamil Rytarowski <n54@gmx.com>
10691
10692 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
10693 IP_ALL.
10694
49d1d1f5
KR
106952020-04-12 Kamil Rytarowski <n54@gmx.com>
10696
10697 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 10698 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 10699
b4848d2a
KR
107002020-04-12 Kamil Rytarowski <n54@gmx.com>
10701
10702 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 10703 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 10704
51c133d5
KR
107052020-04-12 Kamil Rytarowski <n54@gmx.com>
10706
10707 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
10708
54b8cbd0
KR
107092020-04-11 Kamil Rytarowski <n54@gmx.com>
10710
10711 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
10712 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
10713 (nbsd_nat_target::info_proc): New functions.
10714 * nbsd-nat.c (kinfo_get_vmmap): New function.
10715 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
10716 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
10717 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
10718 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
10719 functions.
10720 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
10721 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
10722 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
10723 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
10724 (KINFO_VME_FLAG_GROWS_DOWN): New.
10725
cf83625d
AS
107262020-04-10 Artur Shepilko <nomadbyte@gmail.com>
10727
10728 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
10729 bit shift.
10730
0c4311ab
TT
107312020-04-10 Tom Tromey <tromey@adacore.com>
10732
10733 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
10734
3e65b3e9
TT
107352020-04-10 Tom Tromey <tromey@adacore.com>
10736
10737 * symtab.c (get_symbol_address, get_msymbol_address): Skip
10738 separate debug files.
10739
13302e95
HD
107402020-04-10 Hannes Domani <ssbssa@yahoo.de>
10741
10742 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
10743 Move to...
10744 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
10745 ... here.
10746 * windows-nat.c (windows_nat_target::get_windows_debug_event):
10747 Check for STATUS_WX86_BREAKPOINT.
10748 (windows_nat_target::wait): Same.
10749
bdfc1e8a
TV
107502020-04-10 Tom de Vries <tdevries@suse.de>
10751
10752 PR cli/25808
10753 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
10754
f4460aec
SM
107552020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10756
10757 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
10758 (Write After Approval): Remove Tom de Vries.
10759
a25198bb
BE
107602020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
10761
10762 revert partially:
10763 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10764
aac66a4c
SM
10765 * buildsym.c (record_line): Fix undefined behavior and preserve
10766 lines at eof.
a25198bb 10767
206c98a6
KR
107682020-04-09 Kamil Rytarowski <n54@gmx.com>
10769
10770 * auxv.h (svr4_auxv_parse): New.
10771 * auxv.c (default_auxv_parse): Split into default_auxv_parse
10772 and generic_auxv_parse.
10773 (svr4_auxv_parse): Add.
10774 * obsd-tdep.c: Include "auxv.h".
10775 (obsd_auxv_parse): Remove.
10776 (obsd_init_abi): Remove comment.
10777 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
10778 from `obsd_auxv_parse' to `svr4_auxv_parse'.
10779 * nbsd-tdep.c: Include "auxv.h".
10780 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
10781
71fbdbaf
TT
107822020-04-08 Tom Tromey <tromey@adacore.com>
10783
10784 * nat/windows-nat.h (last_wait_event): Don't declare.
10785 (wait_for_debug_event): Update comment.
10786 * nat/windows-nat.c (last_wait_event): Now static.
10787
2c1d95e8
TT
107882020-04-08 Tom Tromey <tromey@adacore.com>
10789
10790 * windows-nat.c (wait_for_debug_event): Move to
10791 nat/windows-nat.c.
10792 * nat/windows-nat.h (wait_for_debug_event): Declare.
10793 * nat/windows-nat.c (wait_for_debug_event): Move from
10794 windows-nat.c. No longer static.
10795
d2977bc4
TT
107962020-04-08 Tom Tromey <tromey@adacore.com>
10797
10798 * windows-nat.c (get_windows_debug_event): Use
10799 fetch_pending_stop.
10800 * nat/windows-nat.h (fetch_pending_stop): Declare.
10801 * nat/windows-nat.c (fetch_pending_stop): New function.
10802
e758e19c
TT
108032020-04-08 Tom Tromey <tromey@adacore.com>
10804
10805 * windows-nat.c (windows_continue): Use matching_pending_stop and
10806 continue_last_debug_event.
10807 * nat/windows-nat.h (matching_pending_stop)
10808 (continue_last_debug_event): Declare.
10809 * nat/windows-nat.c (DEBUG_EVENTS): New define.
10810 (matching_pending_stop, continue_last_debug_event): New
10811 functions.
10812
8d30e395
TT
108132020-04-08 Tom Tromey <tromey@adacore.com>
10814
10815 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
10816 (handle_exception_result): Move to nat/windows-nat.h.
10817 (DEBUG_EXCEPTION_SIMPLE): Remove.
10818 (windows_nat::handle_ms_vc_exception): New function.
10819 (handle_exception): Move to nat/windows-nat.c.
10820 (get_windows_debug_event): Update.
10821 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
10822 nat/windows-nat.c.
10823 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
10824 (handle_exception_result): Move from windows-nat.c.
10825 (handle_exception): Declare.
10826 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
10827 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
10828 windows-nat.c.
10829
29de418d
TT
108302020-04-08 Tom Tromey <tromey@adacore.com>
10831
10832 * windows-nat.c (exception_count, event_count): Remove.
10833 (handle_exception, get_windows_debug_event)
10834 (do_initial_windows_stuff): Update.
10835
a816ba18
TT
108362020-04-08 Tom Tromey <tromey@adacore.com>
10837
10838 * windows-nat.c (windows_nat::handle_load_dll)
10839 (windows_nat::handle_unload_dll): Rename. No longer static.
10840 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
10841 Declare.
10842
a00caa12
TT
108432020-04-08 Tom Tromey <tromey@adacore.com>
10844
10845 * complaints.h (stop_whining): Declare at top-level.
10846 (complaint): Don't declare stop_whining.
10847
d41b524f
TT
108482020-04-08 Tom Tromey <tromey@adacore.com>
10849
10850 * windows-nat.c (windows_nat::handle_output_debug_string):
10851 Rename. No longer static.
10852 * nat/windows-nat.h (handle_output_debug_string): Declare.
10853
3c76026d
TT
108542020-04-08 Tom Tromey <tromey@adacore.com>
10855
10856 * windows-nat.c (current_process_handle, current_process_id)
10857 (main_thread_id, last_sig, current_event, last_wait_event)
10858 (current_windows_thread, desired_stop_thread_id, pending_stops)
10859 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
10860 (display_selectors, fake_create_process)
10861 (get_windows_debug_event): Update.
10862 * nat/windows-nat.h (current_process_handle, current_process_id)
10863 (main_thread_id, last_sig, current_event, last_wait_event)
10864 (current_windows_thread, desired_stop_thread_id, pending_stops)
10865 (struct pending_stop, siginfo_er): Move from windows-nat.c.
10866 * nat/windows-nat.c (current_process_handle, current_process_id)
10867 (main_thread_id, last_sig, current_event, last_wait_event)
10868 (current_windows_thread, desired_stop_thread_id, pending_stops)
10869 (siginfo_er): New globals. Move from windows-nat.c.
10870
9d8679cc
TT
108712020-04-08 Tom Tromey <tromey@adacore.com>
10872
10873 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
10874 (handle_load_dll): Update.
10875 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
10876
28688adf
TT
108772020-04-08 Tom Tromey <tromey@adacore.com>
10878
10879 * windows-nat.c (enum thread_disposition_type): Move to
10880 nat/windows-nat.h.
10881 (windows_nat::thread_rec): Rename from thread_rec. No longer
10882 static.
10883 (windows_add_thread, windows_nat_target::fetch_registers)
10884 (windows_nat_target::store_registers, handle_exception)
10885 (windows_nat_target::resume, get_windows_debug_event)
10886 (windows_nat_target::get_tib_address)
10887 (windows_nat_target::thread_name)
10888 (windows_nat_target::thread_alive): Update.
10889 * nat/windows-nat.h (enum thread_disposition_type): Move from
10890 windows-nat.c.
10891 (thread_rec): Declare.
10892
4834dad0
TT
108932020-04-08 Tom Tromey <tromey@adacore.com>
10894
10895 * windows-nat.c: Add "using namespace".
10896 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
10897 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
10898
65bafd5b
TT
108992020-04-08 Tom Tromey <tromey@adacore.com>
10900
10901 * nat/windows-nat.h (struct windows_thread_info): Declare
10902 destructor.
10903 * nat/windows-nat.c (~windows_thread_info): New.
10904
0a4afda3
TT
109052020-04-08 Tom Tromey <tromey@adacore.com>
10906
10907 PR gdb/22992
10908 * windows-nat.c (current_event): Update comment.
10909 (last_wait_event, desired_stop_thread_id): New globals.
10910 (struct pending_stop): New.
10911 (pending_stops): New global.
10912 (windows_nat_target) <stopped_by_sw_breakpoint>
10913 <supports_stopped_by_sw_breakpoint>: New methods.
10914 (windows_fetch_one_register): Add assertions. Adjust PC.
10915 (windows_continue): Handle pending stops. Suspend other threads
10916 when stepping. Use last_wait_event
10917 (wait_for_debug_event): New function.
10918 (get_windows_debug_event): Use wait_for_debug_event. Handle
10919 pending stops. Queue spurious stops.
10920 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
10921 (windows_nat_target::kill): Use wait_for_debug_event.
10922 * nat/windows-nat.h (struct windows_thread_info)
10923 <stopped_at_software_breakpoint>: New field.
10924 * nat/windows-nat.c (windows_thread_info::resume): Clear
10925 stopped_at_software_breakpoint.
10926
8e61ebec
TT
109272020-04-08 Tom Tromey <tromey@adacore.com>
10928
10929 * windows-nat.c (enum thread_disposition_type): New.
10930 (thread_rec): Replace "get_context" parameter with "disposition";
10931 change type.
10932 (windows_add_thread, windows_nat_target::fetch_registers)
10933 (windows_nat_target::store_registers, handle_exception)
10934 (windows_nat_target::resume, get_windows_debug_event)
10935 (windows_nat_target::get_tib_address)
10936 (windows_nat_target::thread_name)
10937 (windows_nat_target::thread_alive): Update.
10938
98a03287
TT
109392020-04-08 Tom Tromey <tromey@adacore.com>
10940
10941 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
10942 (windows_continue): Use windows_continue::resume.
10943 * nat/windows-nat.h (struct windows_thread_info) <suspend,
10944 resume>: Declare new methods.
10945 * nat/windows-nat.c: New file.
10946 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
10947
7c7411bc
TT
109482020-04-08 Tom Tromey <tromey@adacore.com>
10949
10950 * windows-nat.c (windows_add_thread, windows_delete_thread)
10951 (windows_nat_target::fetch_registers)
10952 (windows_nat_target::store_registers, fake_create_process)
10953 (windows_nat_target::resume, windows_nat_target::resume)
10954 (get_windows_debug_event, windows_nat_target::wait)
10955 (windows_nat_target::pid_to_str)
10956 (windows_nat_target::get_tib_address)
10957 (windows_nat_target::get_ada_task_ptid)
10958 (windows_nat_target::thread_name)
10959 (windows_nat_target::thread_alive): Use lwp, not tid.
10960
2950fdf7
TT
109612020-04-08 Tom Tromey <tromey@adacore.com>
10962
10963 * windows-nat.c (handle_exception)
10964 (windows_nat_target::thread_name): Update.
10965 * nat/windows-nat.h (windows_thread_info): Remove destructor.
10966 <name>: Now unique_xmalloc_ptr.
10967
62fe396b
TT
109682020-04-08 Tom Tromey <tromey@adacore.com>
10969
10970 * windows-nat.c (thread_rec)
10971 (windows_nat_target::fetch_registers): Update.
10972 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
10973 Update comment.
10974 <debug_registers_changed, reload_context>: Now bool.
10975
e9534bd2
TT
109762020-04-08 Tom Tromey <tromey@adacore.com>
10977
10978 * windows-nat.c (windows_add_thread): Use new.
10979 (windows_init_thread_list, windows_delete_thread): Use delete.
10980 (get_windows_debug_event): Update.
10981 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
10982 destructor, and initializers.
10983
ae1f8880
TT
109842020-04-08 Tom Tromey <tromey@adacore.com>
10985
10986 * windows-nat.c (struct windows_thread_info): Remove.
10987 * nat/windows-nat.h: New file.
10988
55a1e039
TT
109892020-04-08 Tom Tromey <tromey@adacore.com>
10990
10991 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
10992 (thread_rec, windows_add_thread, windows_delete_thread)
10993 (windows_continue): Update.
10994
93366324
TT
109952020-04-08 Tom Tromey <tromey@adacore.com>
10996
10997 * windows-nat.c (struct windows_thread_info): Remove typedef.
10998 (thread_head): Remove.
10999 (thread_list): New global.
11000 (thread_rec, windows_add_thread, windows_init_thread_list)
11001 (windows_delete_thread, windows_continue): Update.
11002
0f2265e2
SM
110032020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11004
11005 * windows-tdep.h (windows_init_abi): Add comment.
11006 (cygwin_init_abi): New declaration.
11007 * windows-tdep.c: Split signal enumeration in two, one for
11008 Windows and one for Cygwin.
11009 (windows_gdb_signal_to_target): Only deal with signal of the
11010 Windows OS ABI.
11011 (cygwin_gdb_signal_to_target): New function.
11012 (windows_init_abi): Rename to windows_init_abi_common, don't set
11013 gdb_signal_to_target gdbarch method. Add new new function with
11014 this name.
11015 (cygwin_init_abi): New function.
11016 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
11017 comment. Don't call windows_init_abi.
11018 (amd64_windows_init_abi): Add comment, call windows_init_abi.
11019 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
11020 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
11021 i386_windows_init_abi_common, don't call windows_init_abi. Add
11022 a new function of this name.
11023 (i386_cygwin_init_abi): New function.
11024 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
11025 OS ABI Cygwin.
11026
3810f182
SM
110272020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11028
11029 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
11030 parameter.c.
11031 (dwarf2_read_gdb_index): Update.
11032
063f8e80
KR
110332020-04-07 Kamil Rytarowski <n54@gmx.com>
11034
11035 * nbsd-tdep.c: Include "objfiles.h".
11036 (nbsd_skip_solib_resolver): New.
11037 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
11038
85a9510c 110392020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11040
11041 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
11042 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
11043 with DW_LLE_base_addressx are being emitted in DWARFv5.
11044 Add the newly added kind DW_LOC_OFFSET_PAIR also.
11045 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
11046 unsigned integer.
11047
9fc3eaae 110482020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11049
11050 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
11051 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
11052 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
11053 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
11054 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
11055 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
11056 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
11057
11058
41144253 110592020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11060
11061 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
11062 (read_loclist_index): New function definition.
11063 (lookup_loclist_base): New function definition.
11064 (read_loclist_header): New function definition.
11065 (dwarf2_cu): Add loclist_base and loclist_header field.
11066 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
11067 (read_full_die_1): Read the value of DW_AT_loclists_base.
11068 (read_attribute_reprocess): Handle DW_FORM_loclistx.
11069 (read_attribute_value): Handle DW_FORM_loclistx.
11070 (skip_one_die): Handle DW_FORM_loclistx.
11071 (loclist_header): New structure declaration.
11072 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
11073
9f4e76a4
SM
110742020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11075
11076 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
11077 constructor. Remove `addr` parameter from other constructor and
11078 add `per_cu` parameter.
11079 * dwarf2/read.c (create_partial_symtab): Update.
11080
25c11aca
TV
110812020-04-07 Tom de Vries <tdevries@suse.de>
11082
11083 PR symtab/25796
11084 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
11085 (partial_die_info::fixup): Inherit has_const_value.
11086
5707e24b
TV
110872020-04-07 Tom de Vries <tdevries@suse.de>
11088
11089 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
11090 symbols without address.
11091
05f00e22
KR
110922020-04-06 Kamil Rytarowski <n54@gmx.com>
11093
11094 * nbsd-nat.h (struct thread_info): Add forward declaration.
11095 (nbsd_nat_target::thread_alive): Add.
11096 (nbsd_nat_target::thread_name): Likewise.
11097 (nbsd_nat_target::update_thread_list): Likewise.
11098 (update_thread_list::post_attach): Likewise.
11099 (post_attach::pid_to_str): Likewise.
11100 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
11101 (nbsd_thread_lister): Add.
11102 (nbsd_nat_target::thread_alive): Likewise.
11103 (nbsd_nat_target::thread_name): Likewise.
11104 (nbsd_add_threads): Likewise.
11105 (update_thread_list::post_attach): Likewise.
11106 (nbsd_nat_target::update_thread_list): Likewise.
11107 (post_attach::pid_to_str): Likewise.
11108
6ee448cc
TT
111092020-04-06 Tom Tromey <tromey@adacore.com>
11110
11111 * ada-valprint.c (print_variant_part): Extract the variant field.
11112 (print_field_values): Use the field as the outer value when
11113 recursing.
11114
dea34e8c
TT
111152020-04-06 Tom Tromey <tromey@adacore.com>
11116
11117 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
11118 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
11119 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
11120 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
11121 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
11122
93689ce9
TT
111232020-04-06 Tom Tromey <tromey@adacore.com>
11124
11125 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
11126 TYPE_CODE_ERROR.
11127
79743962
KR
111282020-04-06 Kamil Rytarowski <n54@gmx.com>
11129
11130 * nbsd-tdep.c: Include "gdbarch.h".
11131 Define enum with NetBSD signal numbers.
11132 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
11133 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
11134 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
11135 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
11136 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
11137 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
11138 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
11139 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11140 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
11141 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
11142 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
11143 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
11144
9e7c9a03
HD
111452020-04-03 Hannes Domani <ssbssa@yahoo.de>
11146
11147 PR gdb/25325
11148 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
11149
d9e49b61
TT
111502020-04-03 Tom Tromey <tromey@adacore.com>
11151
11152 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
11153 Read constant block.
11154
e0fc5c3f
SM
111552020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11156
11157 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
11158 (gdb_bfd_get_full_section_contents): New declaration.
11159 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
11160 * windows-tdep.c (is_linked_with_cygwin_dll): Use
11161 gdb_bfd_get_full_section_contents.
11162
e2ff18a0
SM
111632020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11164
11165 * exec.c (build_section_table): Replace internal_error with
11166 gdb_assert.
11167 (section_table_xfer_memory_partial): Likewise.
11168 * mdebugread.c (parse_partial_symbols): Likewise.
11169 * psymtab.c (lookup_partial_symbol): Likewise.
11170 * utils.c (wrap_here): Likewise.
11171
0830d301
TT
111722020-04-02 Tom Tromey <tromey@adacore.com>
11173
11174 * f-lang.c (build_fortran_types): Use arch_type to initialize
11175 builtin_complex_s32 in the TYPE_CODE_ERROR case.
11176
e7da7f8f
TT
111772020-04-02 Tom Tromey <tromey@adacore.com>
11178
11179 * dwarf2/read.c (partial_die_info::read): Do not create a vector
11180 of attributes.
11181
c90d28ac
AB
111822020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
11183 Bernd Edlinger <bernd.edlinger@hotmail.de>
11184 Tom Tromey <tromey@adacore.com>
11185
11186 * buildsym.c (buildsym_compunit::record_line): Remove
11187 deduplication code.
11188
1aa98955
TV
111892020-04-02 Tom de Vries <tdevries@suse.de>
11190
11191 PR ada/24671
11192 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
11193
d3214198
TV
111942020-04-02 Tom de Vries <tdevries@suse.de>
11195
11196 * dwarf2/read.c (dwarf2_gdb_index_functions,
11197 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
11198 NULL.
11199 * psymtab.c (psym_lookup_global_symbol_language): New function.
11200 (psym_functions): Init psym_lookup_global_symbol_language with
11201 psym_lookup_global_symbol_language.
11202 * symfile-debug.c (debug_sym_quick_functions): Init
11203 lookup_global_symbol_language with NULL.
11204 * symfile.c (set_initial_language): Remove fixme comment.
11205 * symfile.h (struct quick_symbol_functions): Add
11206 lookup_global_symbol_language.
11207 * symtab.c (find_quick_global_symbol_language): New function.
11208 (find_main_name): Use find_quick_global_symbol_language.
11209
2836752f
SM
112102020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
11211
11212 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
11213
64dc2d4b
BE
112142020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11215
11216 * buildsym.c (record_line): Fix undefined behavior and preserve
11217 lines at eof.
11218
bbe3dc41
BE
112192020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11220
11221 * buildsym.c (record_line): Fix the resizing condition.
11222
6b4a335b
TT
112232020-04-01 Tom Tromey <tom@tromey.com>
11224
11225 * value.h (value_literal_complex): Add comment.
11226 * valops.c (value_literal_complex): Refer to value.h.
11227
3638a098
TT
112282020-04-01 Tom Tromey <tom@tromey.com>
11229
11230 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
11231 (scalar_type): New rule, from typebase.
11232 (typebase): Use scalar_type. Recognize complex types.
11233 (field_name): Handle FLOAT_KEYWORD.
11234 (ident_tokens): Add _Complex and __complex__.
11235
c34e8714
TT
112362020-04-01 Tom Tromey <tom@tromey.com>
11237
11238 PR exp/25299:
11239 * valarith.c (promotion_type, complex_binop): New functions.
11240 (scalar_binop): Handle complex numbers. Use promotion_type.
11241 (value_pos, value_neg, value_complement): Handle complex numbers.
11242
fa649bb7
TT
112432020-04-01 Tom Tromey <tom@tromey.com>
11244
11245 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
11246 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
11247 (parse_number): Handle complex numbers.
11248
981c08ce
TT
112492020-04-01 Tom Tromey <tom@tromey.com>
11250
11251 * c-valprint.c (c_decorations): Change complex suffix to "i".
11252
4c99290d
TT
112532020-04-01 Tom Tromey <tom@tromey.com>
11254
11255 * valprint.c (generic_value_print_complex): Use accessors.
11256 * value.h (value_real_part, value_imaginary_part): Declare.
11257 * valops.c (value_real_part, value_imaginary_part): New
11258 functions.
11259 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
11260
5b930b45
TT
112612020-04-01 Tom Tromey <tom@tromey.com>
11262
11263 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
11264 (read_range_type): Update.
11265 * mdebugread.c (basic_type): Update.
11266 * go-lang.c (build_go_types): Use init_complex_type.
11267 * gdbtypes.h (struct main_type) <complex_type>: New member.
11268 (init_complex_type): Update.
11269 (arch_complex_type): Don't declare.
11270 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
11271 Make name if none given. Use alloc_type_copy. Look for cached
11272 complex type.
11273 (arch_complex_type): Remove.
11274 (gdbtypes_post_init): Use init_complex_type.
11275 * f-lang.c (build_fortran_types): Use init_complex_type.
11276 * dwarf2/read.c (read_base_type): Update.
11277 * d-lang.c (build_d_types): Use init_complex_type.
11278 * ctfread.c (read_base_type): Update.
11279
53cccef1
TBA
112802020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11281
11282 * infrun.c (stop_all_threads): Update assertion, plus when
11283 stopping threads, take into account that we might be trying
11284 to stop an all-stop target.
11285 (stop_waiting): Call 'stop_all_threads' if there exists a
11286 non-stop target.
11287
a0714d30
TBA
112882020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11289
11290 * target.h (exists_non_stop_target): New function declaration.
11291 * target.c (exists_non_stop_target): New function.
11292
60e22c1e
HD
112932020-04-01 Hannes Domani <ssbssa@yahoo.de>
11294
11295 PR gdb/24789
11296 * eval.c (is_integral_or_integral_reference): New function.
11297 (evaluate_subexp_standard): Allow integer references in
11298 pointer arithmetic.
11299
e139a727
TBA
113002020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11301
11302 * remote.c (remote_target::remote_parse_stop_reply): Remove the
11303 check for no ptid in the stop reply when the target is non-stop.
11304
e0802d59
TT
113052020-04-01 Tom Tromey <tromey@adacore.com>
11306
11307 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
11308 "name" parameter to rvalue reference. Initialize m_name_holder.
11309 <lookup_name_info>: New overloads.
11310 <name>: Return gdb::string_view.
11311 <c_str>: New method.
11312 <make_ignore_params>: Update.
11313 <search_name_hash>: Update.
11314 <language_lookup_name>: Return const char *.
11315 <m_name>: Change type.
11316 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
11317 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
11318 (lookup_name_info::match_any): Update.
11319 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
11320 Update.
11321 * minsyms.c (linkage_name_str): Update.
11322 * language.c (default_symbol_name_matcher): Update.
11323 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
11324 Update.
11325 * ada-lang.c (ada_fold_name): Change parameter to string_view.
11326 (ada_lookup_name_info::ada_lookup_name_info): Update.
11327 (literal_symbol_name_matcher): Update.
11328
8c072cb6
TT
113292020-04-01 Tom Tromey <tromey@adacore.com>
11330
11331 * psymtab.c (psymtab_search_name): Remove function.
11332 (psym_lookup_symbol): Create search name and lookup name here.
11333 (lookup_partial_symbol): Remove "name" parameter; add
11334 lookup_name.
11335 (psym_expand_symtabs_for_function): Update.
11336
6f29a534
TT
113372020-03-31 Joel Jones <joelkevinjones@gmail.com>
11338
11339 PR tui/25597:
11340 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
11341
af62665e
TT
113422020-03-31 Tom Tromey <tromey@adacore.com>
11343
11344 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
11345 memcpy.
11346
d1a89da5
NC
113472020-03-30 Nelson Chu <nelson.chu@sifive.com>
11348
11349 * features/riscv/32bit-csr.xml: Regenerated.
11350 * features/riscv/64bit-csr.xml: Regenerated.
11351
d8af9068
TT
113522020-03-30 Tom Tromey <tromey@adacore.com>
11353
11354 * ada-valprint.c (print_variant_part): Update.
11355 * ada-lang.h (ada_which_variant_applies): Update.
11356 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
11357 outer_valaddr parameters; replace with "outer" value parameter.
11358 (to_fixed_variant_branch_type): Update.
11359
227c0bf4
PFC
113602020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11361
11362 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
11363 <list>. Remove inclusion of observable.h.
11364 (PPC_DEBUG_CURRENT_VERSION): Move up define.
11365 (struct arch_lwp_info): New struct.
11366 (class ppc_linux_dreg_interface): New class.
11367 (struct ppc_linux_process_info): New struct.
11368 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
11369 <low_new_clone, low_forget_process, low_prepare_to_resume>
11370 <copy_thread_dreg_state, mark_thread_stale>
11371 <mark_debug_registers_changed, register_hw_breakpoint>
11372 <clear_hw_breakpoint, register_wp, clear_wp>
11373 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
11374 <num_memory_accesses, get_trigger_type>
11375 <create_watchpoint_request, hwdebug_point_cmp>
11376 <init_arch_lwp_info, get_arch_lwp_info>
11377 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
11378 methods.
11379 <struct ptid_hash>: New inner struct.
11380 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
11381 members.
11382 (saved_dabr_value, hwdebug_info, max_slots_number)
11383 (struct hw_break_tuple, struct thread_points, ppc_threads)
11384 (have_ptrace_hwdebug_interface)
11385 (hwdebug_find_thread_points_by_tid)
11386 (hwdebug_insert_point, hwdebug_remove_point): Remove.
11387 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
11388 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
11389 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
11390 use m_dreg_interface.
11391 (hwdebug_point_cmp): Change to...
11392 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
11393 reference arguments instead of pointers.
11394 (ppc_linux_nat_target::ranged_break_num_registers): Use
11395 m_dreg_interface.
11396 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
11397 m_dreg_interface. Call register_hw_breakpoint.
11398 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
11399 m_dreg_interface. Call clear_hw_breakpoint.
11400 (get_trigger_type): Change to...
11401 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
11402 comment.
11403 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
11404 use m_dreg_interface. Call register_hw_breakpoint.
11405 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
11406 use m_dreg_interface. Call clear_hw_breakpoint.
11407 (can_use_watchpoint_cond_accel): Change to...
11408 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
11409 method. Update comment, use m_dreg_interface and
11410 m_process_info.
11411 (calculate_dvc): Change to...
11412 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
11413 m_dreg_interface.
11414 (num_memory_accesses): Change to...
11415 (ppc_linux_nat_target::num_memory_accesses): ...this method.
11416 (check_condition): Change to...
11417 (ppc_linux_nat_target::check_condition): ...this method.
11418 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
11419 comment, use m_dreg_interface.
11420 (create_watchpoint_request): Change to...
11421 (ppc_linux_nat_target::create_watchpoint_request): ...this
11422 method. Use m_dreg_interface.
11423 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
11424 m_dreg_interface. Call register_hw_breakpoint or register_wp.
11425 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
11426 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
11427 (ppc_linux_nat_target::low_forget_process)
11428 (ppc_linux_nat_target::low_new_fork)
11429 (ppc_linux_nat_target::low_new_clone)
11430 (ppc_linux_nat_target::low_delete_thread)
11431 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
11432 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
11433 only call mark_thread_stale.
11434 (ppc_linux_thread_exit): Remove.
11435 (ppc_linux_nat_target::stopped_data_address): Change to...
11436 (ppc_linux_nat_target::low_stopped_data_address): This. Add
11437 comment, use m_dreg_interface and m_thread_hw_breakpoints.
11438 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
11439 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
11440 comment. Call low_stopped_data_address.
11441 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
11442 m_dreg_interface.
11443 (ppc_linux_nat_target::masked_watch_num_registers): Use
11444 m_dreg_interface.
11445 (ppc_linux_nat_target::copy_thread_dreg_state)
11446 (ppc_linux_nat_target::mark_thread_stale)
11447 (ppc_linux_nat_target::mark_debug_registers_changed)
11448 (ppc_linux_nat_target::register_hw_breakpoint)
11449 (ppc_linux_nat_target::clear_hw_breakpoint)
11450 (ppc_linux_nat_target::register_wp)
11451 (ppc_linux_nat_target::clear_wp)
11452 (ppc_linux_nat_target::init_arch_lwp_info)
11453 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
11454 (_initialize_ppc_linux_nat): Remove observer callback.
11455
4db10d8f
PFC
114562020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11457
11458 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
11459 (ppc_linux_nat_target::auxv_parse)
11460 (ppc_linux_nat_target::read_description)
11461 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
11462 Move up.
11463
1310c1b0
PFC
114642020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11465
11466 * linux-nat.h (low_new_clone): New method.
11467 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
11468
69b037c3
SM
114692020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
11470
11471 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
11472 (dbx_expand_psymtab): ... this.
11473 (start_psymtab): Update.
11474 * mdebugread.c (psymtab_to_symtab_1): Rename to...
11475 (mdebug_expand_psymtab): ... this.
11476 (parse_partial_symbols): Update.
11477 (new_psymtab): Update.
11478 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
11479 (xcoff_expand_psymtab): ... this.
11480 (xcoff_start_psymtab): Update.
11481
48993951
SM
114822020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
11483
11484 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
11485 <expand_dependencies>: ... this.
11486 * psymtab.c (partial_symtab::read_dependencies): Rename to...
11487 (partial_symtab::expand_dependencies): ... this.
11488 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
11489 Update.
11490 (dwarf2_psymtab::expand_psymtab): Update.
11491 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
11492 * mdebugread.c (psymtab_to_symtab_1): Update.
11493 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
11494
3ad83046
SM
114952020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
11496
11497 * psympriv.h (discard_psymtab): Remove.
11498 * dbxread.c (dbx_end_psymtab): Update.
11499 * xcoffread.c (xcoff_end_psymtab): Update.
11500
4d1b9ab6
TT
115012020-03-28 Tom Tromey <tom@tromey.com>
11502
11503 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
11504 comment.
11505
f1749218
TT
115062020-03-28 Tom Tromey <tom@tromey.com>
11507
11508 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
11509
ebea7626
HD
115102020-03-27 Hannes Domani <ssbssa@yahoo.de>
11511
11512 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
11513
a879b4d5
JB
115142020-03-26 John Baldwin <jhb@FreeBSD.org>
11515
11516 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
11517
0826b30a
TT
115182020-03-26 Tom Tromey <tom@tromey.com>
11519
11520 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
11521 (mark_common_block_symbol_computed, read_tag_string_type)
11522 (attr_to_dynamic_prop, read_subrange_type): Update.
11523 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
11524 to be methods on struct attribute.
11525 (skip_one_die, process_imported_unit_die, read_namespace_alias)
11526 (read_call_site_scope, partial_die_info::read)
11527 (partial_die_info::read, lookup_die_type, follow_die_ref):
11528 Update.
11529 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
11530 from dwarf2_get_ref_die_offset.
11531 (attribute::constant_value): New method, from
11532 dwarf2_get_attr_constant_value.
11533 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
11534 Declare method.
11535 <constant_value>: New method.
11536
2b2558bf
TT
115372020-03-26 Tom Tromey <tom@tromey.com>
11538
11539 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
11540 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
11541 (dwarf_type_encoding_name): Move to stringify.c.
11542 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
11543 * dwarf2/stringify.c: New file.
11544 * dwarf2/stringify.h: New file.
11545
eeb64781
TT
115462020-03-26 Tom Tromey <tom@tromey.com>
11547
11548 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
11549 Rewrite.
11550
a39fdb41
TT
115512020-03-26 Tom Tromey <tom@tromey.com>
11552
11553 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
11554 methods.
11555 * dwarf2/read.c (lookup_addr_base): Move to die.h.
11556 (lookup_ranges_base): Likewise.
11557 (read_cutu_die_from_dwo, read_full_die_1): Update.
11558
436c571c
TT
115592020-03-26 Tom Tromey <tom@tromey.com>
11560
11561 * dwarf2/read.c (read_import_statement, read_file_scope)
11562 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
11563 (read_lexical_block_scope, read_call_site_scope)
11564 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
11565 (handle_struct_member_die, process_structure_scope)
11566 (update_enumeration_type_from_children)
11567 (process_enumeration_scope, read_array_type, read_common_block)
11568 (read_namespace, read_module, read_subroutine_type): Update.
11569 (sibling_die): Remove.
11570
052c8bb8
TT
115712020-03-26 Tom Tromey <tom@tromey.com>
11572
11573 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
11574 (build_type_psymtabs_reader, read_structure_type)
11575 (read_enumeration_type, read_full_die_1): Update.
11576 (dwarf2_attr_no_follow): Move to die.h.
11577 * dwarf2/die.h (struct die_info) <attr>: New method.
11578
2b24b6e4
TT
115792020-03-26 Tom Tromey <tom@tromey.com>
11580
11581 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
11582 <base_address>: Now an optional.
11583 (dwarf2_find_base_address, dwarf2_rnglists_process)
11584 (dwarf2_ranges_process, fill_in_loclist_baton)
11585 (dwarf2_symbol_mark_computed): Update.
11586
c2d50fd0
TT
115872020-03-26 Tom Tromey <tom@tromey.com>
11588
11589 * dwarf2/read.c (struct die_info): Move to die.h.
11590 * dwarf2/die.h: New file.
11591
0df7ad3a
TT
115922020-03-26 Tom Tromey <tom@tromey.com>
11593
11594 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
11595 * dwarf2/read.c
11596 (dwarf2_statement_list_fits_in_line_number_section_complaint):
11597 Move to line-header.c.
11598 (read_checked_initial_length_and_offset, read_formatted_entries):
11599 Likewise.
11600 (dwarf_decode_line_header): Split into two.
11601 * dwarf2/line-header.c
11602 (dwarf2_statement_list_fits_in_line_number_section_complaint):
11603 Move from read.c.
11604 (read_checked_initial_length_and_offset, read_formatted_entries):
11605 Likewise.
11606 (dwarf_decode_line_header): New function, split from read.c.
11607
86c0bb4c
TT
116082020-03-26 Tom Tromey <tom@tromey.com>
11609
11610 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
11611 Declare method.
11612 * dwarf2/read.c (read_attribute_value): Update.
11613 (dwarf2_per_objfile::read_line_string): Rename from
11614 read_indirect_line_string.
11615 (read_formatted_entries): Update.
11616
2ef46c2f
TT
116172020-03-26 Tom Tromey <tom@tromey.com>
11618
11619 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
11620 variable.
11621
4f9c1eda
TT
116222020-03-26 Tom Tromey <tom@tromey.com>
11623
11624 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
11625 const.
11626 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
11627 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
11628 parameter const.
11629
5a0e026f
TT
116302020-03-26 Tom Tromey <tom@tromey.com>
11631
11632 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
11633 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
11634 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
11635 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
11636
8844c11b
TT
116372020-03-26 Tom Tromey <tom@tromey.com>
11638
11639 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
11640 file_names_size, file_full_name, file_file_name>: Use const.
11641 <file_name_at, file_names>: Add const overload.
11642 * dwarf2/line-header.c (line_header::file_file_name)
11643 (line_header::file_full_name): Update.
11644
c90ec28a
TT
116452020-03-26 Tom Tromey <tom@tromey.com>
11646
11647 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
11648 (macro_start_file, consume_improper_spaces)
11649 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
11650 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
11651 (dwarf_decode_macros): Move to macro.c.
11652 * dwarf2/macro.c: New file.
11653 * dwarf2/macro.h: New file.
11654 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
11655
4f44ae6c
TT
116562020-03-26 Tom Tromey <tom@tromey.com>
11657
11658 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
11659 method.
11660 * dwarf2/section.c: New method. From
11661 read_indirect_string_at_offset_from.
11662 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
11663 (read_indirect_string_at_offset_from): Move to section.c.
11664 (read_indirect_string_at_offset): Rewrite.
11665 (read_indirect_line_string_at_offset): Remove.
11666 (read_indirect_string, read_indirect_line_string)
11667 (dwarf_decode_macro_bytes): Update.
11668
a0194fa8
TT
116692020-03-26 Tom Tromey <tom@tromey.com>
11670
11671 * dwarf2/section.h (struct dwarf2_section_info)
11672 <overload_complaint>: Declare.
11673 (dwarf2_section_buffer_overflow_complaint): Don't declare.
11674 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
11675 Rename from dwarf2_section_buffer_overflow_complaint.
11676 * dwarf2/read.c (skip_one_die, partial_die_info::read)
11677 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
11678
3d27bbdb
TT
116792020-03-26 Tom Tromey <tom@tromey.com>
11680
11681 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
11682 Declare.
11683 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
11684 Move from read.c.
11685 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
11686 to section.c.
11687
9eac9650
TT
116882020-03-26 Tom Tromey <tom@tromey.com>
11689
11690 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
11691
bf80d710
TT
116922020-03-26 Tom Tromey <tom@tromey.com>
11693
11694 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
11695 "builder".
11696 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
11697 parameter.
11698 (dwarf_decode_macros): Update.
11699
0314b390
TT
117002020-03-26 Tom Tromey <tom@tromey.com>
11701
11702 * dwarf2/read.c (read_attribute_value): Update.
11703 (read_indirect_string_from_dwz): Move to dwz.c; change into
11704 method.
11705 (dwarf_decode_macro_bytes): Update.
11706 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
11707 * dwarf2/dwz.c: New file.
11708 * Makefile.in (COMMON_SFILES): Add dwz.c.
11709
9fda78b6
TT
117102020-03-26 Tom Tromey <tom@tromey.com>
11711
11712 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
11713 * dwarf2/read.c: Add include.
11714 * dwarf2/index-write.c: Add include.
11715 * dwarf2/index-cache.c: Add include.
11716 * dwarf2/dwz.h: New file.
11717
33aa3c10
TT
117182020-03-25 Tom Tromey <tom@tromey.com>
11719
11720 * compile/compile-object-load.c (get_out_value_type): Mention
11721 correct symbol name in error message.
11722
d503b685
HD
117232020-03-25 Hannes Domani <ssbssa@yahoo.de>
11724
11725 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
11726
7b1eff95
TV
117272020-03-25 Tom de Vries <tdevries@suse.de>
11728
11729 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
11730 * symmisc.c (dump_symtab_1): Print user and includes fields.
11731 (maintenance_info_symtabs): Same.
11732
dd895392
AB
117332020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
11734
11735 PR gdb/25534
11736 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
11737 (riscv_regcache_cooked_write): New function.
11738 (riscv_push_dummy_call): Use new function.
11739 (riscv_return_value): Likewise.
11740
5ab2fbf1
SM
117412020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
11742
11743 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
11744 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
11745 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
11746 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
11747 * infrun.c (follow_fork): Likewise.
11748 (follow_fork_inferior): Likewise.
11749 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
11750 * linux-nat.h (class linux_nat_target): Likewise.
11751 * remote.c (class remote_target) <follow_fork>: Likewise.
11752 (remote_target::follow_fork): Likewise.
11753 * target-delegates.c: Re-generate.
11754 * target.c (default_follow_fork): Likewise.
11755 (target_follow_fork): Likewise.
11756 * target.h (struct target_ops) <follow_fork>: Likewise.
11757 (target_follow_fork): Likewise.
11758
a64fafb5
TV
117592020-03-24 Tom de Vries <tdevries@suse.de>
11760
11761 * psymtab.c (maintenance_info_psymtabs): Print user field.
11762
fe26d3a3
TT
117632020-03-20 Tom Tromey <tromey@adacore.com>
11764
11765 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
11766 const.
11767 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
11768 const.
11769
c884cc46
SM
117702020-03-20 Simon Marchi <simon.marchi@efficios.com>
11771
11772 * ptrace.m4: Don't check for ptrace declaration.
11773 * config.in: Re-generate.
11774 * configure: Re-generate.
11775 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
11776 not defined.
11777
1ff700c2
KR
117782020-03-20 Kamil Rytarowski <n54@gmx.com>
11779
11780 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
11781 `PTRACE_TYPE_RET'.
11782 * i386-bsd-nat.c (gdb_ptrace): Likewise.
11783 * sparc-nat.c (gdb_ptrace): Likewise.
11784 * x86-bsd-nat.c (gdb_ptrace): Likewise.
11785
f7d4f0b1
TT
117862020-03-20 Tom Tromey <tromey@adacore.com>
11787
11788 * c-exp.y (lex_one_token): Fix assert.
11789
f67210ff
TT
117902020-03-20 Tom Tromey <tromey@adacore.com>
11791
11792 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
11793 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
11794 strncpy call.
11795
1773be9e
TT
117962020-03-20 Tom Tromey <tromey@adacore.com>
11797
11798 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
11799
70304be9
TT
118002020-03-20 Tom Tromey <tromey@adacore.com>
11801
11802 * ada-valprint.c (print_variant_part): Remove parameters; switch
11803 to value-based API.
11804 (print_field_values): Likewise.
11805 (ada_val_print_struct_union): Likewise.
11806 (ada_value_print_1): Update.
11807
9faa006d
KR
118082020-03-20 Kamil Rytarowski <n54@gmx.com>
11809
11810 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
11811 nbsd_nat_target instead of inf_ptrace_target.
11812 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11813 nbsd_nat_target.
11814
4a90f062
KR
118152020-03-20 Kamil Rytarowski <n54@gmx.com>
11816
11817 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
11818 it to the ptrace call.
11819 * (store_registers): Likewise.
11820
118212020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
11822
11823 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
11824 it to the ptrace call.
11825 * (store_registers): Likewise.
11826
2d07da27
LM
118272020-03-19 Luis Machado <luis.machado@linaro.org>
11828
11829 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
11830 valid, fetch vg value from ptrace.
11831
f09db380
KR
118322020-03-19 Kamil Rytarowski <n54@gmx.com>
11833 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
11834 * inf-ptrace.c: Likewise.
11835 * (gdb_ptrace): Add.
11836 * (inf_ptrace_target::resume): Update.
11837 * (inf_ptrace_target::xfer_partial): Likewise.
11838 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
11839 * (inf_ptrace_peek_poke): Update.
11840
fcc7376e
KR
118412020-03-19 Kamil Rytarowski <n54@gmx.com>
11842
11843 * x86-bsd-nat.c (gdb_ptrace): New.
11844 * (x86bsd_dr_set): Add new argument `ptid'.
11845 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
11846 x86bsd_dr_set_addr): Update.
11847
cada5fc9
AB
118482020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
11849
11850 * remote.c (remote_target::process_stop_reply): Handle events for
11851 all threads differently.
11852
19a2740f
AB
118532020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
11854
11855 * completer.c (completion_tracker::remove_completion): Define new
11856 function.
11857 * completer.h (completion_tracker::remove_completion): Declare new
11858 function.
11859 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
11860 when adding a C++ function symbol.
11861
724fd9ba
AB
118622020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
11863
11864 * completer.c (completion_tracker::completion_hash_entry): Define
11865 new class.
11866 (advance_to_filename_complete_word_point): Call
11867 recompute_lowest_common_denominator.
11868 (completion_tracker::completion_tracker): Call discard_completions
11869 to setup the hash table.
11870 (completion_tracker::discard_completions): Allow for being called
11871 from the constructor, pass new equal function, and element deleter
11872 when constructing the hash table. Initialise new class member
11873 variables.
11874 (completion_tracker::maybe_add_completion): Remove use of
11875 m_entries_vec, and store more information into m_entries_hash.
11876 (completion_tracker::recompute_lcd_visitor): New function, most
11877 content taken from...
11878 (completion_tracker::recompute_lowest_common_denominator):
11879 ...here, this now just visits each item in the hash calling the
11880 above visitor.
11881 (completion_tracker::build_completion_result): Remove use of
11882 m_entries_vec, call recompute_lowest_common_denominator.
11883 * completer.h (completion_tracker::have_completions): Remove use
11884 of m_entries_vec.
11885 (completion_tracker::completion_hash_entry): Declare new class.
11886 (completion_tracker::recompute_lowest_common_denominator): Change
11887 function signature.
11888 (completion_tracker::recompute_lcd_visitor): Declare new function.
11889 (completion_tracker::m_entries_vec): Delete.
11890 (completion_tracker::m_entries_hash): Initialize to NULL.
11891 (completion_tracker::m_lowest_common_denominator_valid): New
11892 member variable.
11893 (completion_tracker::m_lowest_common_denominator_max_length): New
11894 member variable.
11895
5a82b8a1
KR
118962020-03-17 Kamil Rytarowski <n54@gmx.com>
11897
11898 * regformats/regdef.h: Put reg in gdb namespace.
11899
fb516a69
KR
119002020-03-17 Kamil Rytarowski <n54@gmx.com>
11901
11902 * i386-bsd-nat.c (gdb_ptrace): New.
11903 * (i386bsd_fetch_inferior_registers,
11904 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
11905 * (i386bsd_fetch_inferior_registers,
11906 i386bsd_store_inferior_registers) Use gdb_ptrace.
11907
1c0aa1fb
KR
119082020-03-17 Kamil Rytarowski <n54@gmx.com>
11909
11910 * amd64-bsd-nat.c (gdb_ptrace): New.
11911 * (amd64bsd_fetch_inferior_registers,
11912 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
11913 * (amd64bsd_fetch_inferior_registers,
11914 amd64bsd_store_inferior_registers) Use gdb_ptrace.
11915
5ccd2fb7
KR
119162020-03-17 Kamil Rytarowski <n54@gmx.com>
11917
11918 * user-regs.c (user_reg::read): Rename to...
11919 (user_reg::xread): ...this.
11920 * (append_user_reg): Rename argument `read' to `xread'.
11921 * (user_reg_add_builtin): Likewise.
11922 * (user_reg_add): Likewise.
11923 * (value_of_user_reg): Likewise.
11924
2108a63a
KR
119252020-03-17 Kamil Rytarowski <n54@gmx.com>
11926
11927 * sparc-nat.c (gdb_ptrace): New.
11928 * sparc-nat.c (sparc_fetch_inferior_registers)
11929 (sparc_store_inferior_registers) Remove obsolete comment.
11930 * sparc-nat.c (sparc_fetch_inferior_registers)
11931 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
11932 * sparc-nat.c (sparc_fetch_inferior_registers)
11933 (sparc_store_inferior_registers) Use gdb_ptrace.
11934
a225c9a8
KR
119352020-03-17 Kamil Rytarowski <n54@gmx.com>
11936
11937 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
11938 it to the ptrace call.
11939 * sh-nbsd-nat.c (store_registers): Likewise.
11940
98097623
KR
119412020-03-17 Kamil Rytarowski <n54@gmx.com>
11942
11943 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
11944 nbsd_nat_target instead of inf_ptrace_target.
11945 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11946 nbsd_nat_target.
11947
9e38d619
KR
119482020-03-17 Kamil Rytarowski <n54@gmx.com>
11949
11950 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
11951
a2ecbe9f
KR
119522020-03-17 Kamil Rytarowski <n54@gmx.com>
11953
11954 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
11955 <sys/sysctl.h>.
11956 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
11957
58990295
TV
119582020-03-17 Tom de Vries <tdevries@suse.de>
11959
11960 PR gdb/23710
11961 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
11962 fields.
11963 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
11964 fields.
11965 (process_imported_unit_die): Skip import of c++ CUs.
11966
771dd3a8
TT
119672020-03-16 Tom Tromey <tom@tromey.com>
11968
11969 * p-valprint.c (pascal_object_print_value): Initialize
11970 base_value.
11971
817a7585
AK
119722020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
11973 Shahab Vahedi <shahab@synopsys.com>
11974
11975 * Makefile.in: Add arch/arc.o
11976 * configure.tgt: Likewise.
11977 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
11978 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 11979 (arc_read_description): New function to cache target descriptions.
817a7585
AK
11980 * arc-tdep.h (arc_read_description): Add proto type.
11981 * arch/arc.c: New file.
11982 * arch/arc.h: Likewise.
11983 * features/Makefile: Replace old target descriptions with new.
11984 * features/arc-arcompact.c: Remove.
11985 * features/arc-arcompact.xml: Likewise.
11986 * features/arc-v2.c: Likewise
11987 * features/arc-v2.xml: Likewise
11988 * features/arc/aux-arcompact.xml: New file.
11989 * features/arc/aux-v2.xml: Likewise.
11990 * features/arc/core-arcompact.xml: Likewise.
11991 * features/arc/core-v2.xml: Likewise.
11992 * features/arc/aux-arcompact.c: Generate.
11993 * features/arc/aux-v2.c: Likewise.
11994 * features/arc/core-arcompact.c: Likewise.
11995 * features/arc/core-v2.c: Likewise.
11996 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
11997
67430cd0
TT
119982020-03-16 Tom Tromey <tromey@adacore.com>
11999
12000 PR gdb/25663:
12001 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
12002 putting value into bcache.
12003
30efb6c7
SM
120042020-03-16 Simon Marchi <simon.marchi@efficios.com>
12005
12006 PR gdb/21500
12007 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
12008 to...
12009 (amd64_windows_init_abi_common): ... this. Don't set size of
12010 long type.
12011 (amd64_windows_init_abi): New function.
12012 (amd64_cygwin_init_abi): New function.
12013 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
12014 the Cygwin OS ABI.
12015 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
12016 comment.
12017
8db52437
SM
120182020-03-16 Simon Marchi <simon.marchi@efficios.com>
12019
12020 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
12021 * windows-tdep.c (CYGWIN_DLL_NAME): New.
12022 (pe_import_directory_entry): New struct type.
12023 (is_linked_with_cygwin_dll): New function.
12024 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
12025 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
12026 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
12027
5982a56a
SM
120282020-03-16 Simon Marchi <simon.marchi@efficios.com>
12029
12030 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
12031 i386_cygwin_core_osabi_sniffer.
12032
7a1998df
SM
120332020-03-16 Simon Marchi <simon.marchi@efficios.com>
12034
12035 * i386-cygwin-tdep.c: Rename to...
12036 * i386-windows-tdep.c: ... this.
12037 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
12038 i386-windows-tdep.c.
12039 * configure.tgt: Likewise.
12040
053205cc
SM
120412020-03-16 Simon Marchi <simon.marchi@efficios.com>
12042
12043 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
12044 * osabi.c (gdb_osabi_names): Add "Windows".
12045 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
12046 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
12047 (i386_cygwin_core_osabi_sniffer): New function, extracted from
12048 i386_cygwin_osabi_sniffer.
12049 (_initialize_i386_cygwin_tdep): Register OS ABI
12050 GDB_OSABI_WINDOWS for i386.
12051 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
12052 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
12053 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
12054 for x86-64.
12055 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
12056 when the target matches '*-*-mingw*'.
12057
fe4b2ee6
SM
120582020-03-16 Simon Marchi <simon.marchi@efficios.com>
12059
12060 * defs.h (enum gdb_osabi): Move to...
12061 * osabi.h (enum gdb_osabi): ... here.
12062 * gdbarch.sh: Include osabi.h in gdbarch.h.
12063 * gdbarch.h: Re-generate.
12064
cb9b645d
SM
120652020-03-16 Simon Marchi <simon.marchi@efficios.com>
12066
12067 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
12068 function.
12069 (_initialize_amd64_windows_tdep): Register osabi sniffer.
12070
3293bbaf
TT
120712020-03-14 Tom Tromey <tom@tromey.com>
12072
12073 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
12074 for C++.
12075 (c_type_print_modifier): Likewise. Add "language" parameter.
12076 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
12077 (c_type_print_base_1): Update.
12078 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
12079 constants.
12080 * type-stack.c (type_stack::insert): Handle tp_atomic and
12081 tp_restrict.
12082 (type_stack::follow_type_instance_flags): Likewise.
12083 (type_stack::follow_types): Likewise. Merge type-following code.
12084 * c-exp.y (RESTRICT, ATOMIC): New tokens.
12085 (space_identifier, cv_with_space_id)
12086 (const_or_volatile_or_space_identifier_noopt)
12087 (const_or_volatile_or_space_identifier): Remove.
12088 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
12089 rules.
12090 (ptr_operator, typebase): Update.
12091 (enum token_flag) <FLAG_C>: New constant.
12092 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
12093 "_Atomic".
12094 (lex_one_token): Handle FLAG_C.
12095
154151a6
KR
120962020-03-14 Kamil Rytarowski <n54@gmx.com>
12097
12098 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
12099 it to the ptrace call.
12100 * m68k-bsd-nat.c (store_registers): Likewise.
12101
bc107784
KR
121022020-03-14 Kamil Rytarowski <n54@gmx.com>
12103
12104 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
12105 gdb_byte *.
12106 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
12107 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
12108 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
12109
01a80117
KR
121102020-03-14 Kamil Rytarowski <n54@gmx.com>
12111
12112 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
12113 nbsd_nat_target instead of inf_ptrace_target.
12114 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12115 nbsd_nat_target.
12116
f90280ca
KR
121172020-03-14 Kamil Rytarowski <n54@gmx.com>
12118
12119 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
12120 register_t.
12121
6def66f1
KR
121222020-03-14 Kamil Rytarowski <n54@gmx.com>
12123
12124 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
12125 it to the ptrace call.
12126 * alpha-bsd-nat.c (store_registers): Likewise.
12127
66eaca97
KR
121282020-03-14 Kamil Rytarowski <n54@gmx.com>
12129
12130 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
12131 includes.
12132 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
12133 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
12134 fill_fpregset): Likewise.
12135
4fed520b
KR
121362020-03-14 Kamil Rytarowski <n54@gmx.com>
12137
12138 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
12139 nbsd_nat_target instead of inf_ptrace_target.
12140 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12141 nbsd_nat_target.
12142
2190cf06
KR
121432020-03-14 Kamil Rytarowski <n54@gmx.com>
12144
12145 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
12146 register_t.
12147
75c56d3d
KR
121482020-03-14 Kamil Rytarowski <n54@gmx.com>
12149
12150 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
12151 it to the ptrace call.
12152 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
12153 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
12154 * arm-nbsd-nat.c (store_register): Likewise.
12155 * arm-nbsd-nat.c (store_regs): Likewise.
12156 * arm-nbsd-nat.c (store_fp_register): Likewise.
12157 * arm-nbsd-nat.c (store_fp_regs): Likewise.
12158
6018d381
KR
121592020-03-14 Kamil Rytarowski <n54@gmx.com>
12160
12161 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
12162 nbsd_nat_target instead of inf_ptrace_target.
12163 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12164 nbsd_nat_target.
12165
013f99f0
KR
121662020-03-14 Kamil Rytarowski <n54@gmx.com>
12167
12168 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
12169 it to the ptrace call.
12170 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
12171
12753073
KR
121722020-03-14 Kamil Rytarowski <n54@gmx.com>
12173
6227b330
KR
12174 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
12175 it to the ptrace call.
12176 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
12177
121782020-03-14 Kamil Rytarowski <n54@gmx.com>
12179
12180 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
12181 gdb_byte *.
12753073
KR
12182 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
12183
d5be5fa4
KR
121842020-03-14 Kamil Rytarowski <n54@gmx.com>
12185
12186 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
12187 instead of inf_ptrace_target.
12188 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12189 nbsd_nat_target.
12190
8110f842
KR
121912020-03-14 Kamil Rytarowski <n54@gmx.com>
12192
12193 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12194 register_t.
12195
52feded7
KR
121962020-03-14 Kamil Rytarowski <n54@gmx.com>
12197
12198 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12199 register_t.
12200
25567eee
KR
122012020-03-14 Kamil Rytarowski <n54@gmx.com>
12202
12203 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
12204 register_t.
12205
426a9c18
TT
122062020-03-13 Tom Tromey <tom@tromey.com>
12207
12208 * value.h (val_print): Don't declare.
12209 * valprint.h (val_print_array_elements)
12210 (val_print_scalar_formatted, generic_val_print): Don't declare.
12211 * valprint.c (generic_val_print_array): Take a struct value.
12212 (generic_val_print_ptr, generic_val_print_memberptr)
12213 (generic_val_print_bool, generic_val_print_int)
12214 (generic_val_print_char, generic_val_print_complex)
12215 (generic_val_print): Remove.
12216 (generic_value_print): Update.
12217 (do_val_print): Remove unused parameters. Don't call
12218 la_val_print.
12219 (val_print): Remove.
12220 (common_val_print): Update. Don't call value_check_printable.
12221 (val_print_scalar_formatted, val_print_array_elements): Remove.
12222 * rust-lang.c (rust_val_print): Remove.
12223 (rust_language_defn): Update.
12224 * p-valprint.c (pascal_val_print): Remove.
12225 (pascal_value_print_inner): Update.
12226 (pascal_object_print_val_fields, pascal_object_print_val):
12227 Remove.
12228 (pascal_object_print_static_field): Update.
12229 * p-lang.h (pascal_val_print): Don't declare.
12230 * p-lang.c (pascal_language_defn): Update.
12231 * opencl-lang.c (opencl_language_defn): Update.
12232 * objc-lang.c (objc_language_defn): Update.
12233 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
12234 * m2-lang.h (m2_val_print): Don't declare.
12235 * m2-lang.c (m2_language_defn): Update.
12236 * language.h (struct language_defn) <la_val_print>: Remove.
12237 * language.c (unk_lang_value_print_inner): Rename. Change
12238 argument types.
12239 (unknown_language_defn, auto_language_defn): Update.
12240 * go-valprint.c (go_val_print): Remove.
12241 * go-lang.h (go_val_print): Don't declare.
12242 * go-lang.c (go_language_defn): Update.
12243 * f-valprint.c (f_val_print): Remove.
12244 * f-lang.h (f_value_print): Don't declare.
12245 * f-lang.c (f_language_defn): Update.
12246 * d-valprint.c (d_val_print): Remove.
12247 * d-lang.h (d_value_print): Don't declare.
12248 * d-lang.c (d_language_defn): Update.
12249 * cp-valprint.c (cp_print_value_fields)
12250 (cp_print_value_fields_rtti, cp_print_value): Remove.
12251 (cp_print_static_field): Update.
12252 * c-valprint.c (c_val_print_array, c_val_print_ptr)
12253 (c_val_print_struct, c_val_print_union, c_val_print_int)
12254 (c_val_print_memberptr, c_val_print): Remove.
12255 * c-lang.h (c_val_print_array, cp_print_value_fields)
12256 (cp_print_value_fields_rtti): Don't declare.
12257 * c-lang.c (c_language_defn, cplus_language_defn)
12258 (asm_language_defn, minimal_language_defn): Update.
12259 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
12260 (ada_val_print_enum): Take a struct value.
12261 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
12262 (ada_val_print): Remove.
12263 (ada_value_print_1): Update.
12264 (printable_val_type): Remove.
12265 * ada-lang.h (ada_val_print): Don't declare.
12266 * ada-lang.c (ada_language_defn): Update.
12267
42331a1e
TT
122682020-03-13 Tom Tromey <tom@tromey.com>
12269
12270 * valprint.c (do_val_print): Update.
12271 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
12272 a struct value.
12273 (value_to_value_object_no_release): Declare.
12274 * python/py-value.c (value_to_value_object_no_release): New
12275 function.
12276 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
12277 struct value.
12278 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
12279 function.
12280 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
12281 a struct value.
12282 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
12283 Declare.
12284 (gdbscm_apply_val_pretty_printer): Take a struct value.
12285 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
12286 value.
12287 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
12288 value.
12289 * extension-priv.h (struct extension_language_ops)
12290 <apply_val_pretty_printer>: Take a struct value.
12291 * cp-valprint.c (cp_print_value): Create a struct value.
12292 (cp_print_value): Update.
12293
3a916a97
TT
122942020-03-13 Tom Tromey <tom@tromey.com>
12295
12296 * ada-valprint.c (print_field_values): Call common_val_print.
12297
b59eac37
TT
122982020-03-13 Tom Tromey <tom@tromey.com>
12299
12300 * ada-valprint.c (val_print_packed_array_elements): Remove
12301 bitoffset and val parameters. Call common_val_print.
12302 (ada_val_print_string): Remove offset, address, and original_value
12303 parameters.
12304 (ada_val_print_array): Update.
12305 (ada_value_print_array): New function.
12306 (ada_value_print_1): Call it.
12307
03371129
TT
123082020-03-13 Tom Tromey <tom@tromey.com>
12309
12310 * ada-valprint.c (ada_value_print): Use common_val_print.
12311
2e088f8b
TT
123122020-03-13 Tom Tromey <tom@tromey.com>
12313
12314 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
12315
39ef85a8
TT
123162020-03-13 Tom Tromey <tom@tromey.com>
12317
12318 * ada-valprint.c (ada_value_print_num): New function.
12319 (ada_value_print_1): Use it.
12320
b9fa6e07
TT
123212020-03-13 Tom Tromey <tom@tromey.com>
12322
12323 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
12324
416595d6
TT
123252020-03-13 Tom Tromey <tom@tromey.com>
12326
12327 * ada-valprint.c (ada_value_print_ptr): New function.
12328 (ada_value_print_1): Use it.
12329
5b5e15ec
TT
123302020-03-13 Tom Tromey <tom@tromey.com>
12331
12332 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
12333 call common_val_print.
12334 (ada_val_print_1): Update.
12335 (ada_value_print_1): New function.
12336 (ada_value_print_inner): Rewrite.
12337
fbf54e75
TT
123382020-03-13 Tom Tromey <tom@tromey.com>
12339
12340 * cp-valprint.c (cp_print_value_fields): Update.
12341 (cp_print_value): New function.
12342
64b653ca
TT
123432020-03-13 Tom Tromey <tom@tromey.com>
12344
12345 * m2-valprint.c (m2_value_print_inner): Use
12346 cp_print_value_fields.
12347 * cp-valprint.c (cp_print_value_fields): New function.
12348 * c-valprint.c (c_value_print_struct): New function.
12349 (c_value_print_inner): Use c_value_print_struct.
12350 * c-lang.h (cp_print_value_fields): Declare.
12351
6999f067
TT
123522020-03-13 Tom Tromey <tom@tromey.com>
12353
12354 * c-valprint.c (c_value_print_array): New function.
12355 (c_value_print_inner): Use it.
12356
ce80b8bd
TT
123572020-03-13 Tom Tromey <tom@tromey.com>
12358
12359 * c-valprint.c (c_value_print_memberptr): New function.
12360 (c_value_print_inner): Use it.
12361
2faac269
TT
123622020-03-13 Tom Tromey <tom@tromey.com>
12363
12364 * c-valprint.c (c_value_print_int): New function.
12365 (c_value_print_inner): Use it.
12366
da3e2c29
TT
123672020-03-13 Tom Tromey <tom@tromey.com>
12368
12369 * c-valprint.c (c_value_print_ptr): New function.
12370 (c_value_print_inner): Use it.
12371
50836231
TT
123722020-03-13 Tom Tromey <tom@tromey.com>
12373
12374 * c-valprint.c (c_value_print_inner): Rewrite.
12375
4f412b6e
TT
123762020-03-13 Tom Tromey <tom@tromey.com>
12377
12378 * valprint.c (generic_value_print_complex): New function.
12379 (generic_value_print): Use it.
12380
f5354008
TT
123812020-03-13 Tom Tromey <tom@tromey.com>
12382
12383 * valprint.c (generic_val_print_float): Don't call
12384 val_print_scalar_formatted.
12385 (generic_val_print, generic_value_print): Update.
12386
3eec3b05
TT
123872020-03-13 Tom Tromey <tom@tromey.com>
12388
12389 * valprint.c (generic_value_print_char): New function
12390 (generic_value_print): Use it.
12391
fdddfccb
TT
123922020-03-13 Tom Tromey <tom@tromey.com>
12393
12394 * valprint.c (generic_value_print_int): New function.
12395 (generic_value_print): Use it.
12396
6dde7521
TT
123972020-03-13 Tom Tromey <tom@tromey.com>
12398
12399 * valprint.c (generic_value_print_bool): New function.
12400 (generic_value_print): Use it.
12401
4112d2e6
TT
124022020-03-13 Tom Tromey <tom@tromey.com>
12403
12404 * valprint.c (generic_val_print_func): Simplify.
12405 (generic_val_print, generic_value_print): Update.
12406
65786af6
TT
124072020-03-13 Tom Tromey <tom@tromey.com>
12408
12409 * valprint.c (generic_val_print_flags): Remove.
12410 (generic_val_print, generic_value_print): Update.
12411 (val_print_type_code_flags): Add original_value parameter.
12412
40f3ce18
TT
124132020-03-13 Tom Tromey <tom@tromey.com>
12414
12415 * valprint.c (generic_val_print): Update.
12416 (generic_value_print): Update.
12417 * valprint.c (generic_val_print_enum): Don't call
12418 val_print_scalar_formatted.
12419
2a5b130b
TT
124202020-03-13 Tom Tromey <tom@tromey.com>
12421
12422 * valprint.c (generic_value_print): Call generic_value_print_ptr.
12423 * valprint.c (generic_value_print_ptr): New function.
12424
abc66ce9
TT
124252020-03-13 Tom Tromey <tom@tromey.com>
12426
12427 * valprint.c (generic_value_print): Rewrite.
12428
07a32858
TT
124292020-03-13 Tom Tromey <tom@tromey.com>
12430
12431 * p-valprint.c (pascal_object_print_value_fields)
12432 (pascal_object_print_value): New functions.
12433
64d64d3a
TT
124342020-03-13 Tom Tromey <tom@tromey.com>
12435
12436 * p-valprint.c (pascal_value_print_inner): Rewrite.
12437
6a95a1f5
TT
124382020-03-13 Tom Tromey <tom@tromey.com>
12439
12440 * f-valprint.c (f_value_print_innner): Rewrite.
12441
59fcdac6
TT
124422020-03-13 Tom Tromey <tom@tromey.com>
12443
12444 * m2-valprint.c (m2_print_unbounded_array): New overload.
12445 (m2_print_unbounded_array): Update.
12446 (m2_print_array_contents): Take a struct value.
12447 (m2_value_print_inner): Rewrite.
12448
d133c3e1
TT
124492020-03-13 Tom Tromey <tom@tromey.com>
12450
12451 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
12452 (d_value_print_inner): New function.
12453 * d-lang.h (d_value_print_inner): Declare.
12454 * d-lang.c (d_language_defn): Use d_value_print_inner.
12455
23b0f06b
TT
124562020-03-13 Tom Tromey <tom@tromey.com>
12457
12458 * go-valprint.c (go_value_print_inner): New function.
12459 * go-lang.h (go_value_print_inner): Declare.
12460 * go-lang.c (go_language_defn): Use go_value_print_inner.
12461
5f56f7cb
TT
124622020-03-13 Tom Tromey <tom@tromey.com>
12463
12464 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
12465 API.
12466 (rust_val_print): Rewrite.
12467 (rust_value_print_inner): New function, from rust_val_print.
12468 (rust_language_defn): Use rust_value_print_inner.
12469
26792ee0
TT
124702020-03-13 Tom Tromey <tom@tromey.com>
12471
12472 * ada-valprint.c (ada_value_print_inner): New function.
12473 * ada-lang.h (ada_value_print_inner): Declare.
12474 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
12475
24051bbe
TT
124762020-03-13 Tom Tromey <tom@tromey.com>
12477
12478 * f-valprint.c (f_value_print_innner): New function.
12479 * f-lang.h (f_value_print_innner): Declare.
12480 * f-lang.c (f_language_defn): Use f_value_print_innner.
12481
c0941be6
TT
124822020-03-13 Tom Tromey <tom@tromey.com>
12483
12484 * p-valprint.c (pascal_value_print_inner): New function.
12485 * p-lang.h (pascal_value_print_inner): Declare.
12486 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
12487
62c4663d
TT
124882020-03-13 Tom Tromey <tom@tromey.com>
12489
12490 * m2-valprint.c (m2_value_print_inner): New function.
12491 * m2-lang.h (m2_value_print_inner): Declare.
12492 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
12493
62182190
TT
124942020-03-13 Tom Tromey <tom@tromey.com>
12495
12496 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
12497 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
12498 * c-valprint.c (c_value_print_inner): New function.
12499 * c-lang.h (c_value_print_inner): Declare.
12500 * c-lang.c (c_language_defn, cplus_language_defn)
12501 (asm_language_defn, minimal_language_defn): Use
12502 c_value_print_inner.
12503
1e592a8a
TT
125042020-03-13 Tom Tromey <tom@tromey.com>
12505
12506 * p-valprint.c (pascal_object_print_value_fields): Now static.
12507 * p-lang.h (pascal_object_print_value_fields): Don't declare.
12508
7fe471e9
TT
125092020-03-13 Tom Tromey <tom@tromey.com>
12510
12511 * c-valprint.c (c_val_print_array): Simplify.
12512
d121c6ce
TT
125132020-03-13 Tom Tromey <tom@tromey.com>
12514
12515 * valprint.c (value_print_array_elements): New function.
12516 * valprint.h (value_print_array_elements): Declare.
12517
4dba70ee
TT
125182020-03-13 Tom Tromey <tom@tromey.com>
12519
12520 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
12521 * mips-tdep.c (mips_print_register): Use
12522 value_print_scalar_formatted.
12523
4f9ae810
TT
125242020-03-13 Tom Tromey <tom@tromey.com>
12525
12526 * valprint.h (value_print_scalar_formatted): Declare.
12527 * valprint.c (value_print_scalar_formatted): New function.
12528
156bfec9
TT
125292020-03-13 Tom Tromey <tom@tromey.com>
12530
12531 * valprint.h (generic_value_print): Declare.
12532 * valprint.c (generic_value_print): New function.
12533
2b4e573d
TT
125342020-03-13 Tom Tromey <tom@tromey.com>
12535
12536 * valprint.c (do_val_print): Call la_value_print_inner, if
12537 available.
12538 * rust-lang.c (rust_language_defn): Update.
12539 * p-lang.c (pascal_language_defn): Update.
12540 * opencl-lang.c (opencl_language_defn): Update.
12541 * objc-lang.c (objc_language_defn): Update.
12542 * m2-lang.c (m2_language_defn): Update.
12543 * language.h (struct language_defn) <la_value_print_inner>: New
12544 member.
12545 * language.c (unknown_language_defn, auto_language_defn): Update.
12546 * go-lang.c (go_language_defn): Update.
12547 * f-lang.c (f_language_defn): Update.
12548 * d-lang.c (d_language_defn): Update.
12549 * c-lang.c (c_language_defn, cplus_language_defn)
12550 (asm_language_defn, minimal_language_defn): Update.
12551 * ada-lang.c (ada_language_defn): Update.
12552
a1f6a07c
TT
125532020-03-13 Tom Tromey <tom@tromey.com>
12554
12555 * c-valprint.c (c_value_print): Use common_val_print.
12556
410cf315
TT
125572020-03-13 Tom Tromey <tom@tromey.com>
12558
12559 * cp-valprint.c (cp_print_static_field): Use common_val_print.
12560
72a45c93
TT
125612020-03-13 Tom Tromey <tom@tromey.com>
12562
12563 * f-valprint.c (f77_print_array_1, f_val_print): Use
12564 common_val_print.
12565
040f66bd
TT
125662020-03-13 Tom Tromey <tom@tromey.com>
12567
12568 * riscv-tdep.c (riscv_print_one_register_info): Use
12569 common_val_print.
12570
a6e05a6c
TT
125712020-03-13 Tom Tromey <tom@tromey.com>
12572
12573 * mi/mi-main.c (output_register): Use common_val_print.
12574
3444c526
TT
125752020-03-13 Tom Tromey <tom@tromey.com>
12576
12577 * infcmd.c (default_print_one_register_info): Use
12578 common_val_print.
12579
c2a44efe
TT
125802020-03-13 Tom Tromey <tom@tromey.com>
12581
12582 * valprint.h (common_val_print_checked): Declare.
12583 * valprint.c (common_val_print_checked): New function.
12584 * stack.c (print_frame_arg): Use common_val_print_checked.
12585
b0c26e99
TT
125862020-03-13 Tom Tromey <tom@tromey.com>
12587
12588 * valprint.c (do_val_print): New function, from val_print.
12589 (val_print): Use do_val_print.
12590 (common_val_print): Use do_val_print.
12591
ce3acbe9
TT
125922020-03-13 Tom Tromey <tom@tromey.com>
12593
12594 * valprint.c (value_print): Use scoped_value_mark.
12595
96c7f873
TV
125962020-03-13 Tom de Vries <tdevries@suse.de>
12597
12598 PR symtab/25646
12599 * psymtab.c (partial_symtab::partial_symtab): Don't set
12600 globals_offset and statics_offset. Push element onto
12601 current_global_psymbols and current_static_psymbols stacks.
12602 (concat): New function.
12603 (end_psymtab_common): Set globals_offset and statics_offset. Pop
12604 element from current_global_psymbols and current_static_psymbols
12605 stacks. Concat popped elements to global_psymbols and
12606 static_symbols.
12607 (add_psymbol_to_list): Use current_global_psymbols and
12608 current_static_psymbols stacks.
12609 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
12610 current_static_psymbols fields.
12611
6ba0a321
CB
126122020-03-12 Christian Biesinger <cbiesinger@google.com>
12613
12614 * corelow.c (sniff_core_bfd): Remove.
12615 (class core_target) <m_core_vec>: Remove.
12616 (core_target::core_target): Update.
12617 (core_file_fns): Remove.
12618 (deprecated_add_core_fns): Remove.
12619 (default_core_sniffer): Remove.
12620 (sniff_core_bfd): Remove.
12621 (default_check_format): Remove.
12622 (gdb_check_format): Remove.
12623 (core_target_open): Update.
12624 (core_target::get_core_register_section): Update.
12625 (get_core_registers_cb): Update.
12626 (core_target::fetch_registers): Update.
12627 * gdbcore.h (struct core_fns): Remove.
12628 (deprecated_add_core_fns): Remove.
12629 (default_core_sniffer): Remove.
12630 (default_check_format): Remove.
12631
227031b2
TT
126322020-03-12 Tom Tromey <tom@tromey.com>
12633
12634 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
12635 CORE_ADDR.
12636 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
12637
53807e9f
TT
126382020-03-12 Tom Tromey <tom@tromey.com>
12639
12640 * remote.c (remote_target::download_tracepoint)
12641 (remote_target::enable_tracepoint)
12642 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
12643 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
12644 sprintf_vma.
12645
64f25102
TT
126462020-03-12 Tom Tromey <tom@tromey.com>
12647
12648 * symfile-mem.c: Update CORE_ADDR size assert.
12649
272cd5a3
SM
126502020-03-12 Simon Marchi <simon.marchi@efficios.com>
12651
12652 * selftest.m4: Move to gdbsupport/.
12653 * acinclude.m4: Update path to selftest.m4.
12654
74cd3f9d
SM
126552020-03-12 Simon Marchi <simon.marchi@efficios.com>
12656
12657 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
12658 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
12659 gdbarch-selfselftests.c and selftest-arch.c.
12660 (SUBDIR_UNITTESTS_OBS): Rename to...
12661 (SELFTESTS_OBS): ... this.
12662 (COMMON_SFILES): Remove disasm-selftests.c and
12663 gdbarch-selftests.c.
12664 * configure.ac: Don't add selftest-arch.{c,o} to
12665 CONFIG_{SRCS,OBS}.
12666 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
12667 preprocessor conditions.
12668
db6878ac
SM
126692020-03-12 Simon Marchi <simon.marchi@efficios.com>
12670
12671 * configure.ac: Don't source bfd/development.sh.
12672 * selftest.m4: Modify comment.
12673 * configure: Re-generate.
12674
4d696a5c
SM
126752020-03-12 Simon Marchi <simon.marchi@efficios.com>
12676
12677 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
12678 not "true" or "false".
12679 * configure: Re-generate.
12680
8dd8e1c7
CB
126812020-03-12 Christian Biesinger <cbiesinger@google.com>
12682
12683 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
12684 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
12685 renamed to arm_nbsd_supply_gregset.
12686 (fetch_register): Update to call arm_nbsd_supply_gregset.
12687 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
12688 (arm_netbsd_nat_target::fetch_registers): Update.
12689 (fetch_elfcore_registers): Removed.
12690 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
12691 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
12692 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
12693 not require NetBSD system headers.
12694 (arm_nbsd_regset): New struct.
12695 (arm_nbsd_iterate_over_regset_sections): New function.
12696 (arm_netbsd_init_abi_common): Updated to call
12697 set_gdbarch_iterate_over_regset_sections.
12698 * arm-nbsd-tdep.h: New file.
12699
dd69bf7a
KB
127002020-03-11 Kevin Buettner <kevinb@redhat.com>
12701
12702 * symtab.c (find_pc_sect_line): Add check which prevents infinite
12703 recursion.
12704
a0761e34
SM
127052020-03-11 Simon Marchi <simon.marchi@efficios.com>
12706
12707 * configure: Re-generate.
12708
e7a82140
TT
127092020-03-11 Tom Tromey <tromey@adacore.com>
12710
12711 * ada-typeprint.c (print_choices): Fix comment.
12712
dcc050c8
AB
127132020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
12714
12715 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
12716 previous item in the list, when the list has no items.
12717
1c33af77
TV
127182020-03-11 Tom de Vries <tdevries@suse.de>
12719
12720 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
12721 PROP_LOCLIST handling code.
12722
8c95582d
AB
127232020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
12724
12725 * buildsym-legacy.c (record_line): Pass extra parameter to
12726 record_line.
12727 * buildsym.c (buildsym_compunit::record_line): Take an extra
12728 parameter, reduce duplication in the line table, and record the
12729 is_stmt flag in the line table.
12730 * buildsym.h (buildsym_compunit::record_line): Add extra
12731 parameter.
12732 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
12733 non-statement lines.
12734 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
12735 this to the symtab builder.
12736 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
12737 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
12738 through to dwarf_record_line_1.
12739 * infrun.c (process_event_stop_test): When stepping, don't stop at
12740 a non-statement instruction, and only refresh the step info when
12741 we land in the middle of a line's range. Also add an extra
12742 comment.
12743 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
12744 field.
12745 * record-btrace.c (btrace_find_line_range): Only record lines
12746 marked as is-statement.
12747 * stack.c (frame_show_address): Show the frame address if we are
12748 in a non-statement sal.
12749 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
12750 (maintenance_print_one_line_table): Print a header for the is_stmt
12751 column, and include is_stmt information in the output.
12752 * symtab.c (find_pc_sect_line): Find lines marked as statements in
12753 preference to non-statements.
12754 (find_pcs_for_symtab_line): Prefer is-statement entries.
12755 (find_line_common): Likewise.
12756 * symtab.h (struct linetable_entry): Add is_stmt field.
12757 (struct symtab_and_line): Likewise.
12758 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
12759 arranging the line table.
12760
e4003a34
TV
127612020-03-07 Tom de Vries <tdevries@suse.de>
12762
12763 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
12764 DIE.
12765
e8932576
TT
127662020-03-07 Tom Tromey <tom@tromey.com>
12767
12768 * valops.c (value_literal_complex): Remove obsolete comment.
12769 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
12770 comment.
12771
29734269
SM
127722020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
12773
12774 * infrun.h: Forward-declare thread_info.
12775 (set_step_info): Add thread_info parameter, add doc.
12776 * infrun.c (set_step_info): Add thread_info parameter, move doc
12777 to header.
12778 * infrun.c (process_event_stop_test): Pass thread to
12779 set_step_info call.
12780 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
12781 set_step_info.
12782 (prepare_one_step): Add thread_info parameter, pass it to
12783 set_step_frame and prepare_one_step (recursive) call.
12784 (step_1): Pass thread to prepare_one_step call.
12785 (step_command_fsm::should_stop): Pass thread to
12786 prepare_one_step.
12787 (until_next_fsm): Pass thread to set_step_frame call.
12788 (finish_command): Pass thread to set_step_info call.
12789
b7d64b29
HD
127902020-03-06 Hannes Domani <ssbssa@yahoo.de>
12791
12792 * windows-tdep.c (windows_solib_create_inferior_hook):
12793 Check if inferior is running.
12794
09f2921c
TV
127952020-03-06 Tom de Vries <tdevries@suse.de>
12796
12797 * NEWS: Fix "the the".
12798 * ctfread.c: Same.
12799
fd760e79
TV
128002020-03-06 Tom de Vries <tdevries@suse.de>
12801
12802 * psymtab.c (psymtab_to_symtab): Don't print "done.".
12803
20ea4a60
AB
128042020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12805
12806 * .dir-locals.el: Add a comment referencing the other copies of
12807 this file.
12808
0afbabf0
JB
128092020-03-05 John Baldwin <jhb@FreeBSD.org>
12810
12811 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
12812 psargs.
12813
842806cb
TBA
128142020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12815
12816 * .gitattributes: New file.
12817
be1e3d3e
TT
128182020-03-04 Tom Tromey <tom@tromey.com>
12819
12820 * symmisc.c (print_symbol_bcache_statistics)
12821 (print_objfile_statistics): Update.
12822 * symfile.c (allocate_symtab): Use intern.
12823 * psymtab.c (partial_symtab::partial_symtab): Use intern.
12824 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
12825 macro_cache>: Remove.
12826 <string_cache>: New member.
12827 (struct objfile) <intern>: New methods.
12828 * elfread.c (elf_symtab_read): Use intern.
12829 * dwarf2/read.c (fixup_go_packaging): Intern package name.
12830 (dwarf2_compute_name, dwarf2_physname)
12831 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
12832 names.
12833 (guess_partial_die_structure_name): Update.
12834 (partial_die_info::fixup): Intern name.
12835 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
12836 name.
12837 (dwarf2_name): Intern name. Update.
12838 * buildsym.c (buildsym_compunit::get_macro_table): Use
12839 string_cache.
12840
4e7625fd
TT
128412020-03-04 Tom Tromey <tom@tromey.com>
12842
12843 * jit.c (bfd_open_from_target_memory): Make "target" const.
12844 * corefile.c (gnutarget): Now const.
12845 * gdbcore.h (gnutarget): Now const.
12846
46f9f931
HD
128472020-03-04 Hannes Domani <ssbssa@yahoo.de>
12848
12849 * NEWS: Mention support for WOW64 processes.
12850 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
12851 (amd64_windows_segment_register_p): Remove static.
12852 (_initialize_amd64_windows_nat): Update.
12853 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
12854 * i386-windows-nat.c (context_offset): Update.
12855 (i386_mappings): Rename and remove static.
12856 (i386_windows_segment_register_p): Remove static.
12857 (_initialize_i386_windows_nat): Update.
12858 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
12859 (STATUS_WX86_SINGLE_STEP): New macro.
12860 (EnumProcessModulesEx): New macro.
12861 (Wow64SuspendThread): New macro.
12862 (Wow64GetThreadContext): New macro.
12863 (Wow64SetThreadContext): New macro.
12864 (Wow64GetThreadSelectorEntry): New macro.
12865 (windows_set_context_register_offsets): Add static.
12866 (windows_set_segment_register_p): Likewise.
12867 (windows_add_thread): Adapt for WOW64 processes.
12868 (windows_fetch_one_register): Likewise.
12869 (windows_nat_target::fetch_registers): Likewise.
12870 (windows_store_one_register): Likewise.
12871 (display_selector): Likewise.
12872 (display_selectors): Likewise.
12873 (handle_exception): Likewise.
12874 (windows_continue): Likewise.
12875 (windows_nat_target::resume): Likewise.
12876 (windows_add_all_dlls): Likewise.
12877 (do_initial_windows_stuff): Likewise.
12878 (windows_nat_target::attach): Likewise.
12879 (windows_get_exec_module_filename): Likewise.
12880 (windows_nat_target::create_inferior): Likewise.
12881 (windows_xfer_siginfo): Likewise.
12882 (_initialize_loadable): Initialize Wow64SuspendThread,
12883 Wow64GetThreadContext, Wow64SetThreadContext,
12884 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
12885 * windows-nat.h (windows_set_context_register_offsets):
12886 Remove declaration.
12887 (windows_set_segment_register_p): Likewise.
12888 (i386_windows_segment_register_p): Add declaration.
12889 (amd64_windows_segment_register_p): Likewise.
12890
440cf44e
LM
128912020-03-04 Luis Machado <luis.machado@linaro.org>
12892
12893 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
12894 in "info registers" for AArch64/ARM.
12895
12896 The change caused "info registers" to not print GPR's.
12897
12898 gdb/ChangeLog:
12899
12900 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
12901
12902 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
12903 when reg->group is empty and reggroup is not.
12904
1009d92f
TT
129052020-03-03 Tom Tromey <tromey@adacore.com>
12906
12907 * dwarf2/frame.c (struct dwarf2_frame_cache)
12908 <checked_tailcall_bottom, entry_cfa_sp_offset,
12909 entry_cfa_sp_offset_p>: Remove members.
12910 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
12911 (dwarf2_frame_prev_register): Don't call
12912 dwarf2_tailcall_sniffer_first.
12913 (dwarf2_append_unwinders): Don't append tailcall unwinder.
12914 * frame-unwind.c (add_unwinder): New fuction.
12915 (frame_unwind_init): Use it. Add tailcall unwinder.
12916
5e5d66b6
AB
129172020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
12918 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12919
12920 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
12921 value should be printed as true.
12922
584cf46d
HD
129232020-03-03 Hannes Domani <ssbssa@yahoo.de>
12924
12925 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
12926 (windows_init_abi): Set and use windows_so_ops.
12927
7b973adc
SDJ
129282020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
12929
12930 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
12931 when verifying if dealing with a convenience variable.
12932
bb7b70ab
LM
129332020-03-03 Luis Machado <luis.machado@linaro.org>
12934
12935 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
12936
9822cb57
SM
129372020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12938
12939 * infrun.c (gdbarch_supports_displaced_stepping): New.
12940 (use_displaced_stepping): Break up conditions in smaller pieces.
12941 Use gdbarch_supports_displaced_stepping.
12942 (displaced_step_prepare_throw): Use
12943 gdbarch_supports_displaced_stepping.
12944
63e163f2
AB
129452020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
12946
12947 * NEWS: Mention new behaviour of the history filename.
12948 * top.c (write_history_p): Add comment.
12949 (show_write_history_p): Add header comment, give a different
12950 message when history writing is on, but the history filename is
12951 empty.
12952 (history_filename): Add comment.
12953 (history_filename_empty): New function.
12954 (show_history_filename): Add header comment, give a different
12955 message when the filename is empty.
12956 (init_history): Compare history_filename against nullptr, and only
12957 read history if the filename is not empty.
12958 (set_history_filename): Add header comment, and only make
12959 non-empty filenames absolute.
12960 (init_main): Make the filename argument to 'set history filename'
12961 optional.
12962
81b86b97
CB
129632020-03-02 Christian Biesinger <cbiesinger@google.com>
12964
12965 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
12966 (arm_supply_vfpregset): ...this, and update to use VFP registers.
12967 (fetch_fp_register): Update.
12968 (fetch_fp_regs): Update.
12969 (store_fp_register): Update.
12970 (store_fp_regs): Update.
12971 (arm_netbsd_nat_target::read_description): New function.
12972 (fetch_elfcore_registers): Update.
12973
24ed6739
AB
129742020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
12975
12976 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
12977 general_thread if the stop reply is missing a thread-id.
12978 (remote_target::process_stop_reply): Use the first non-exited
12979 thread if the target didn't pass a thread-id.
12980 * infrun.c (do_target_wait): Move call to
12981 switch_to_inferior_no_thread to ....
12982 (do_target_wait_1): ... here.
12983
a84bb2a0
JT
129842020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
12985
12986 * debuginfod-support.c: Include defs.h first.
12987
658dadf0
TV
129882020-02-28 Tom de Vries <tdevries@suse.de>
12989
12990 * symfile.c (set_initial_language): Use default language for lookup.
12991
4ebe4877
SM
129922020-02-28 Simon Marchi <simon.marchi@efficios.com>
12993
12994 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
12995 reader variable, pass `this` to read_cutu_die_from_dwo.
12996
e5da1139
AM
129972020-02-27 Aaron Merey <amerey@redhat.com>
12998
12999 * source.c (open_source_file): Check for nullptr when computing
13000 srcpath.
13001
317f7127
TT
130022020-02-27 Tom Tromey <tromey@adacore.com>
13003
13004 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
13005 member.
13006 (dwarf2_add_field): Don't update nfields.
13007 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
13008
3104d9ee
AB
130092020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13010
13011 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
13012 abs.
13013
b83470bf
TT
130142020-02-26 Tom Tromey <tom@tromey.com>
13015
13016 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
13017 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
13018 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
13019 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
13020 per_cu_data.
13021
edfe0a0c
TT
130222020-02-26 Tom Tromey <tom@tromey.com>
13023
13024 * dwarf2/index-write.c (psym_index_map): Change type.
13025 (add_address_entry_worker, write_one_signatured_type)
13026 (recursively_count_psymbols, recursively_write_psymbols)
13027 (class debug_names, psyms_seen_size, write_gdbindex)
13028 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
13029
0d79cdc4
AM
130302020-02-26 Aaron Merey <amerey@redhat.com>
13031
13032 * Makefile.in: Handle optional debuginfod support.
13033 * NEWS: Update.
13034 * README: Add --with-debuginfod summary.
13035 * config.in: Regenerate.
13036 * configure: Regenerate.
13037 * configure.ac: Handle optional debuginfod support.
13038 * debuginfod-support.c: debuginfod helper functions.
13039 * debuginfod-support.h: Ditto.
13040 * doc/gdb.texinfo: Add --with-debuginfod to configure options
13041 summary.
13042 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
13043 when a dwz file cannot be found.
13044 * elfread.c (elf_symfile_read): Query debuginfod servers when a
13045 debuginfo file cannot be found.
13046 * source.c (open_source_file): Query debuginfod servers when a
13047 source file cannot be found.
13048 * top.c (print_gdb_configuration): Include
13049 --{with,without}-debuginfod in the output.
13050
b65ce565
JG
130512020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
13052
13053 * thread.c (thr_try_catch_cmd): Print thread name.
13054
d4c9a4f8
SM
130552020-02-26 Simon Marchi <simon.marchi@efficios.com>
13056
13057 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
13058 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13059 dwarf2_fetch_die_type_sect_off): Move to...
13060 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
13061 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13062 dwarf2_fetch_die_type_sect_off): ... here.
13063 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
13064 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13065 dwarf2_fetch_die_type_sect_off): Move doc to header file.
13066
0dce4280
TV
130672020-02-26 Tom de Vries <tdevries@suse.de>
13068
13069 PR gdb/25603
13070 * symfile.c (set_initial_language): Exit-early if
13071 language_mode == language_mode_manual.
13072
450a1bfc
SM
130732020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13074
13075 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
13076 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
13077 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
13078
9e80cfa1
AB
130792020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
13080
13081 * gdbtypes.c (create_array_type_with_stride): Handle negative
13082 array strides.
13083 * valarith.c (value_subscripted_rvalue): Likewise.
13084
09624f1f
LM
130852020-02-25 Luis Machado <luis.machado@linaro.org>
13086
13087 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
13088
8cb5117c
SM
130892020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13090
13091 * loc.h (dwarf2_get_die_type): Move to...
13092 * read.h (dwarf2_get_die_type): ... here.
13093 * read.c (dwarf2_get_die_type): Move doc to header.
13094
c325c44e
JB
130952020-02-25 Joel Brobecker <brobecker@adacore.com>
13096
13097 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
13098 'gnulib/Makefile.in' to the list.
13099
4ac93832
TT
131002020-02-24 Tom Tromey <tom@tromey.com>
13101
13102 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
13103 Remove.
13104 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
13105 XOBNEWVEC.
13106
197400e8
TT
131072020-02-24 Tom Tromey <tom@tromey.com>
13108
13109 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
13110 New method.
13111 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
13112 (dw2_do_instantiate_symtab, dw2_get_file_names)
13113 (build_type_psymtab_dependencies, load_full_type_unit): Update.
13114
76935768
TT
131152020-02-24 Tom Tromey <tom@tromey.com>
13116
13117 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
13118 make_scoped_restore.
13119 (dwarf2_psymtab::read_symtab): Don't clear
13120 reading_partial_symbols.
13121
a88ef40d
TV
131222020-02-24 Tom de Vries <tdevries@suse.de>
13123
13124 PR gdb/25592
13125 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
13126
c9af6521
TV
131272020-02-24 Tom de Vries <tdevries@suse.de>
13128
13129 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
13130 commands layout next/prev/regs.
13131
5707a07a
TT
131322020-02-22 Tom Tromey <tom@tromey.com>
13133
13134 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
13135 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
13136
3b0fb49e
TT
131372020-02-22 Tom Tromey <tom@tromey.com>
13138
13139 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
13140
283be8bf
TT
131412020-02-22 Tom Tromey <tom@tromey.com>
13142
13143 * tui/tui-win.c (_initialize_tui_win): Add usage text.
13144 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
13145 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
13146 * tui/tui.c (_initialize_tui): Add usage text.
13147
ca793b96
TT
131482020-02-22 Tom Tromey <tom@tromey.com>
13149
13150 * tui/tui-win.c (tui_set_focus_command)
13151 (tui_set_win_height_command): Use error_no_arg.
13152 (_initialize_tui_win): Update help text.
13153 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
13154
432b5c40
TT
131552020-02-22 Tom Tromey <tom@tromey.com>
13156
13157 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
13158 * tui/tui-disasm.h (struct tui_disasm_window)
13159 <display_start_addr>: Declare.
13160 * tui/tui-source.h (struct tui_source_window)
13161 <display_start_addr>: Declare.
13162 * tui/tui-winsource.h (struct tui_source_window_base)
13163 <show_source_line, display_start_addr>: New methods.
13164 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
13165 Rename and move to protected section.
13166 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
13167 (tui_source_window_base::do_erase_source_content): Update.
13168 (tui_source_window_base::show_source_line): Now a method.
13169 (tui_source_window_base::show_source_content)
13170 (tui_source_window_base::tui_source_window_base)
13171 (tui_source_window_base::rerender)
13172 (tui_source_window_base::refill)
13173 (tui_source_window_base::do_scroll_horizontal)
13174 (tui_source_window_base::set_is_exec_point_at)
13175 (tui_source_window_base::update_breakpoint_info)
13176 (tui_source_window_base::update_exec_info): Update.
13177 * tui/tui-source.c (tui_source_window::set_contents)
13178 (tui_source_window::showing_source_p)
13179 (tui_source_window::do_scroll_vertical)
13180 (tui_source_window::location_matches_p)
13181 (tui_source_window::line_is_displayed): Update.
13182 (tui_source_window::display_start_addr): New method.
13183 * tui/tui-disasm.c (tui_disasm_window::set_contents)
13184 (tui_disasm_window::do_scroll_vertical)
13185 (tui_disasm_window::location_matches_p): Update.
13186 (tui_disasm_window::display_start_addr): New method.
13187
01b1af32
TT
131882020-02-22 Tom Tromey <tom@tromey.com>
13189
13190 * NEWS: Add entry for gdb.register_window_type.
13191 * tui/tui-layout.h (window_factory): New typedef.
13192 (tui_register_window): Declare.
13193 * tui/tui-layout.c (saved_tui_windows): New global.
13194 (tui_apply_current_layout): Use it.
13195 (tui_register_window): New function.
13196 * python/python.c (do_start_initialization): Call
13197 gdbpy_initialize_tui.
13198 (python_GdbMethods): Add "register_window_type" function.
13199 * python/python-internal.h (gdbpy_register_tui_window)
13200 (gdbpy_initialize_tui): Declare.
13201 * python/py-tui.c: New file.
13202 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
13203
fc96d20b
TT
132042020-02-22 Tom Tromey <tom@tromey.com>
13205
13206 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
13207
935c78c0
TT
132082020-02-22 Tom Tromey <tom@tromey.com>
13209
13210 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
13211 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
13212 * tui/tui-data.c (tui_set_win_with_focus): Remove.
13213 (tui_set_win_focus_to): Move from tui-win.c.
13214
0240c8f1
TT
132152020-02-22 Tom Tromey <tom@tromey.com>
13216
13217 * tui/tui-layout.c (make_standard_window, get_locator_window): New
13218 functions.
13219 (known_window_types): New global.
13220 (tui_get_window_by_name): Reimplement.
13221 (initialize_known_windows): New function.
13222 (validate_window_name): Rewrite.
13223 (_initialize_tui_layout): Call initialize_known_windows.
13224
fdb01f0c
TT
132252020-02-22 Tom Tromey <tom@tromey.com>
13226
13227 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
13228 Remove constants.
13229 * tui/tui-winsource.h (struct tui_source_window_base)
13230 <tui_source_window_base>: Remove parameter.
13231 * tui/tui-winsource.c
13232 (tui_source_window_base::tui_source_window_base): Remove
13233 parameter.
13234 (tui_source_window_base::refill): Update.
13235 * tui/tui-stack.h (struct tui_locator_window)
13236 <tui_locator_window>: Update.
13237 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
13238 Default the constructor.
13239 * tui/tui-regs.h (struct tui_data_item_window)
13240 <tui_data_item_window>: Default the constructor.
13241 (struct tui_data_window) <tui_data_window>: Likewise.
13242 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
13243 Default the constructor.
13244 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
13245 Default the constructor.
13246 <type>: Remove.
13247 (struct tui_win_info) <tui_win_info>: Default the constructor.
13248 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
13249 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
13250 Default the constructor.
13251
865a5aec
TT
132522020-02-22 Tom Tromey <tom@tromey.com>
13253
13254 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
13255 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
13256 * tui/tui-win.c (tui_resize_all): Don't call
13257 tui_delete_invisible_windows.
13258 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
13259 done.
13260 (tui_set_layout): Update.
13261 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
13262 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
13263 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
13264
e098d18c
TT
132652020-02-22 Tom Tromey <tom@tromey.com>
13266
13267 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
13268 correctly.
13269
eb9c8874
TT
132702020-02-22 Tom Tromey <tom@tromey.com>
13271
13272 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
13273
7eed1a8e
TT
132742020-02-22 Tom Tromey <tom@tromey.com>
13275
13276 * tui/tui-winsource.h (struct tui_source_window_iterator)
13277 <inner_iterator>: New etytypedef.
13278 <tui_source_window_iterator>: Take "end" parameter.
13279 <tui_source_window_iterator>: Take iterator.
13280 <operator*, advance>: Update.
13281 <m_iter>: Change type.
13282 <m_end>: New field.
13283 (struct tui_source_windows) <begin, end>: Update.
13284 * tui/tui-layout.c (tui_windows): New global.
13285 (tui_apply_current_layout): Clear tui_windows.
13286 (tui_layout_window::apply): Update tui_windows.
13287 * tui/tui-data.h (tui_windows): Declare.
13288 (all_tui_windows): Now inline function.
13289 (class tui_window_iterator, struct all_tui_windows): Remove.
13290
7c043ba6
TT
132912020-02-22 Tom Tromey <tom@tromey.com>
13292
13293 PR tui/17850:
13294 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
13295 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
13296 "height" argument.
13297 (class tui_layout_window) <get_sizes>: Likewise.
13298 (class tui_layout_split) <tui_layout_split>: Add "vertical"
13299 argument.
13300 <get_sizes>: Add "height" argument.
13301 <m_vertical>: New field.
13302 * tui/tui-layout.c (tui_layout_split::clone): Update.
13303 (tui_layout_split::get_sizes): Add "height" argument.
13304 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
13305 (tui_new_layout_command): Parse "-horizontal".
13306 (_initialize_tui_layout): Update help string.
13307 (tui_layout_split::specification): Add "-horizontal" when needed.
13308 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
13309 argument.
13310 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
13311 New methods.
13312
6bc56648
TT
133132020-02-22 Tom Tromey <tom@tromey.com>
13314
13315 * tui/tui-layout.h (enum tui_adjust_result): New.
13316 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
13317 (class tui_layout_window) <adjust_size>: Return
13318 tui_adjust_result. Rewrite.
13319 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
13320 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
13321
c22fef7e
TT
133222020-02-22 Tom Tromey <tom@tromey.com>
13323
13324 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
13325 parameter and return types.
13326 (class tui_layout_base) <specification>: Add "depth".
13327 (class tui_layout_window) <specification>: Add "depth".
13328 (class tui_layout_split) <specification>: Add "depth".
13329 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
13330 and return types.
13331 (tui_new_layout_command): Parse sub-layouts.
13332 (_initialize_tui_layout): Update help string.
13333 (tui_layout_window::specification): Add "depth".
13334 (add_layout_command): Update.
13335
ee325b61
TT
133362020-02-22 Tom Tromey <tom@tromey.com>
13337
13338 * NEWS: Add "tui new-layout" item.
13339 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
13340 Add new-layout command to help text.
13341 (validate_window_name): New function.
13342 (tui_new_layout_command): New function.
13343 (_initialize_tui_layout): Register "new-layout".
13344 (tui_layout_window::specification): New method.
13345 (tui_layout_window::specification): New method.
13346 * tui/tui-layout.h (class tui_layout_base) <specification>: New
13347 method.
13348 (class tui_layout_window) <specification>: New method.
13349 (class tui_layout_split) <specification>: New method.
13350
416eb92d
TT
133512020-02-22 Tom Tromey <tom@tromey.com>
13352
13353 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
13354 * tui/tui-win.c (window_name_completer): Update comment.
13355 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
13356 Declare method.
13357 (class tui_layout_window) <replace_window>: Likewise.
13358 (class tui_layout_split) <replace_window>: Likewise.
13359 (tui_set_layout): Don't declare.
13360 (tui_set_initial_layout): Declare function.
13361 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
13362 (asm_regs_layout): New globals.
13363 (tui_current_layout, show_layout): Remove.
13364 (tui_set_layout, tui_add_win_to_layout): Rewrite.
13365 (find_layout, tui_apply_layout): New function.
13366 (layout_completer): Remove.
13367 (tui_next_layout): Reimplement.
13368 (tui_next_layout_command): New function.
13369 (tui_set_initial_layout, tui_prev_layout_command): New functions.
13370 (tui_regs_layout): Reimplement.
13371 (tui_regs_layout_command): New function.
13372 (extract_display_start_addr): Rewrite.
13373 (next_layout, prev_layout): Remove.
13374 (tui_layout_window::replace_window): New method.
13375 (tui_layout_split::replace_window): New method.
13376 (destroy_layout): New function.
13377 (layout_list): New global.
13378 (add_layout_command): New function.
13379 (initialize_layouts): Update.
13380 (tui_layout_command): New function.
13381 (_initialize_tui_layout): Install "layout" commands.
13382 * tui/tui-data.h (enum tui_layout_type): Remove.
13383 (tui_current_layout): Don't declare.
13384
0dbc2fc7
TT
133852020-02-22 Tom Tromey <tom@tromey.com>
13386
13387 * tui/tui-regs.c (tui_reg_layout): Remove.
13388 (tui_reg_command): Use tui_regs_layout.
13389 * tui/tui-layout.h (tui_reg_command): Declare.
13390 * tui/tui-layout.c (tui_reg_command): New function.
13391
5afe342e
TT
133922020-02-22 Tom Tromey <tom@tromey.com>
13393
13394 * tui/tui.c (tui_rl_delete_other_windows): Call
13395 tui_remove_some_windows.
13396 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
13397 Declare method.
13398 (class tui_layout_window) <remove_windows>: New method.
13399 (class tui_layout_split) <remove_windows>: Declare.
13400 (tui_remove_some_windows): Declare.
13401 * tui/tui-layout.c (tui_remove_some_windows): New function.
13402 (tui_layout_split::remove_windows): New method.
13403
427326a8
TT
134042020-02-22 Tom Tromey <tom@tromey.com>
13405
13406 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
13407 * tui/tui-layout.h (tui_next_layout): Declare.
13408 * tui/tui-layout.c (tui_next_layout): New function.
13409
3fe12b6d
TT
134102020-02-22 Tom Tromey <tom@tromey.com>
13411
13412 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
13413 correct coordinates.
13414
59b8b5d2
TT
134152020-02-22 Tom Tromey <tom@tromey.com>
13416
13417 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
13418 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
13419 DATA_WIN case.
13420
2a3d458b
TT
134212020-02-22 Tom Tromey <tom@tromey.com>
13422
13423 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
13424 TUI_DISASM_WIN, not tui_win_list.
13425
3f0cbb04
TT
134262020-02-22 Tom Tromey <tom@tromey.com>
13427
13428 * valprint.c (generic_val_print_enum_1)
13429 (val_print_type_code_flags): Style member names.
13430 * rust-lang.c (val_print_struct, rust_print_enum)
13431 (rust_print_struct_def, rust_internal_print_type): Style member
13432 names.
13433 * p-valprint.c (pascal_object_print_value_fields): Style member
13434 names. Only call fprintf_symbol_filtered for static members.
13435 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
13436 * f-valprint.c (f_val_print): Style member names.
13437 * f-typeprint.c (f_type_print_base): Style member names.
13438 * cp-valprint.c (cp_print_value_fields): Style member names. Only
13439 call fprintf_symbol_filtered for static members.
13440 (cp_print_class_member): Style member names.
13441 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
13442 member names.
13443 * ada-valprint.c (ada_print_scalar): Style enum names.
13444 (ada_val_print_enum): Likewise.
13445 * ada-typeprint.c (print_enum_type): Style enum names.
13446
d4d947ae
TT
134472020-02-21 Tom Tromey <tom@tromey.com>
13448
13449 * psympriv.h (struct partial_symtab): Update comment.
13450
e94e944b
TT
134512020-02-21 Tom Tromey <tromey@adacore.com>
13452
13453 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
13454 type is CORE_ADDR.
13455
1eb73179
TV
134562020-02-21 Tom de Vries <tdevries@suse.de>
13457
13458 PR gdb/25534
13459 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
13460 if dependencies[i]->user != NULL.
13461
4f180d53
AT
134622020-02-21 Ali Tamur <tamur@google.com>
13463
13464 * dwarf2/read.c (dwarf2_name): Add null check.
13465
22b6cd70
TT
134662020-02-20 Tom Tromey <tom@tromey.com>
13467
13468 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
13469 ">=", in binary search.
13470 (dwarf2_find_containing_comp_unit): New overload.
13471 (run_test): New self-test.
13472 (_initialize_dwarf2_read): Register new test.
13473
bd0cf5a6
NC
134742020-02-20 Nelson Chu <nelson.chu@sifive.com>
13475
13476 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
13477 * riscv-tdep.h: Likewise.
13478 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
13479 rv32-only CSR.
13480 * features/riscv/64bit-csr.xml: Regenerated.
13481
3f702acd
SDJ
134822020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
13483 Tom Tromey <tom@tromey.com>
13484
13485 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
13486 of 'fputc_unfiltered'.
13487 (putchar_unfiltered): Call 'fputc_unfiltered'.
13488 (fputc_unfiltered): Call 'fputs_unfiltered'.
13489
d13c7322
AB
134902020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
13491
13492 * config.in: Regenerate.
13493 * configure: Regenerate.
13494 * configure.ac: Add --with-python-libdir option.
13495 * main.c: Use WITH_PYTHON_LIBDIR.
13496
869d8950
TT
134972020-02-19 Tom Tromey <tom@tromey.com>
13498
13499 * symtab.c (general_symbol_info::compute_and_set_names): Use
13500 obstack_strndup. Simplify call to symbol_set_demangled_name.
13501
298e9637
SM
135022020-02-19 Simon Marchi <simon.marchi@efficios.com>
13503
13504 * dwarf2/read.c (allocate_signatured_type_table,
13505 allocate_dwo_unit_table, allocate_type_unit_groups_table,
13506 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
13507 Remove objfile parameter, update all callers.
13508
08410482
DE
135092020-02-19 Doug Evans <dje@google.com>
13510
13511 PR rust/25535
13512 * rust-lang.c (rust_print_enum): Apply embedded_offset to
13513 rust_enum_variant calculation.
13514
dfdeeca1
TT
135152020-02-19 Tom Tromey <tromey@adacore.com>
13516
13517 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
13518
2ef5453b
TT
135192020-02-19 Tom Tromey <tromey@adacore.com>
13520
13521 * ada-lang.c (cache_symbol): Use obstack_strdup.
13522
9f1528a1
AB
135232020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
13524
13525 * configure: Regenerate.
13526
d3c22fa8
TT
135272020-02-19 Tom Tromey <tromey@adacore.com>
13528
13529 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
13530 NULL check.
13531
bf84f706
MR
135322020-02-19 Maciej W. Rozycki <macro@wdc.com>
13533
13534 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
13535
d1c9b20f
AB
135362020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
13537
13538 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
13539 if GDBSERVER is not defined.
13540 (riscv_tdesc_cache): Likewise, also store const target_desc.
13541 (STATIC_IN_GDB): Define.
13542 (riscv_create_target_description): Update declaration with
13543 STATIC_IN_GDB.
13544 (riscv_lookup_target_description): New function, only define if
13545 GDBSERVER is not defined.
13546 * arch/riscv.h (riscv_create_target_description): Declare only
13547 when GDBSERVER is defined.
13548 (riscv_lookup_target_description): New declaration when GDBSERVER
13549 is not defined.
13550 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
13551 (riscv_linux_read_features): ...this, and return
13552 riscv_gdbarch_features instead of target_desc.
13553 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
13554 (riscv_linux_read_description): Rename to...
13555 (riscv_linux_read_features): ...this.
13556 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
13557 Update to use riscv_gdbarch_features and
13558 riscv_lookup_target_description.
13559 * riscv-tdep.c (riscv_find_default_target_description): Use
13560 riscv_lookup_target_description instead of
13561 riscv_create_target_description.
13562
373d7ac0
SM
135632020-02-18 Simon Marchi <simon.marchi@efficios.com>
13564
13565 * valprint.c (generic_val_print_enum_1): When printing a flag
13566 enum with value 0 and there is no enumerator with value 0, print
13567 just "0" instead of "(unknown: 0x0)".
13568
b29a2df0
SM
135692020-02-18 Simon Marchi <simon.marchi@efficios.com>
13570
13571 * valprint.c (generic_val_print_enum_1): Print unknown part of
13572 flag enum in hex.
13573
6740f0cc
SM
135742020-02-18 Simon Marchi <simon.marchi@efficios.com>
13575
13576 * dwarf2/read.c (update_enumeration_type_from_children): Allow
13577 flag enums to contain duplicate enumerators.
13578 * valprint.c (generic_val_print_enum_1): Update comment.
13579
edd45eb0
SM
135802020-02-18 Simon Marchi <simon.marchi@efficios.com>
13581
13582 * dwarf2/read.c: Include "count-one-bits.h".
13583 (update_enumeration_type_from_children): If an enumerator has
13584 multiple bits set, don't treat the enumeration as a "flag enum".
13585 * valprint.c (generic_val_print_enum_1): Assert that enumerators
13586 of flag enums have 0 or 1 bit set.
13587
6d0cf446
BE
135882020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
13589
13590 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
13591 conversion.
13592 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13593 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
13594 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13595 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
13596 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13597
7001c1b7
SM
135982020-02-18 Simon Marchi <simon.marchi@efficios.com>
13599
13600 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
13601
fdb61c6c
SM
136022020-02-14 Simon Marchi <simon.marchi@efficios.com>
13603
13604 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
13605 displaced_step_closure_up.
13606 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
13607 (struct displaced_step_closure_up):
13608 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13609 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
13610 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
13611 Likewise.
13612 * gdbarch.sh (displaced_step_copy_insn): Likewise.
13613 * gdbarch.c, gdbarch.h: Re-generate.
13614 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
13615 displaced_step_closure_up.
13616 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13617 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
13618 * infrun.h (displaced_step_closure_up): New type alias.
13619 (struct displaced_step_inferior_state) <step_closure>: Change
13620 type to displaced_step_closure_up.
13621 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
13622 displaced_step_closure_up.
13623 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13624
a4a38eb4
TT
136252020-02-14 Tom Tromey <tom@tromey.com>
13626
13627 * minidebug.c (gnu_debug_key): New global.
13628 (find_separate_debug_file_in_section): Use it.
13629
e8217e61
SM
136302020-02-14 Simon Marchi <simon.marchi@efficios.com>
13631
13632 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
13633 std::unique_ptr.
13634 * gdbarch.c: Re-generate.
13635 * gdbarch.h: Re-generate.
13636 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
13637 change.
13638 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
13639 type to std::unique_ptr.
13640 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
13641 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13642 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
13643 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
13644 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
13645 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13646 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
13647 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
13648 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13649
d8d83535
SM
136502020-02-14 Simon Marchi <simon.marchi@efficios.com>
13651
13652 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
13653 std::unique_ptr.
13654 (displaced_step_clear): Rename to...
13655 (displaced_step_reset): ... this. Just call displaced->reset ().
13656 (displaced_step_clear_cleanup): Rename to...
13657 (displaced_step_reset_cleanup): ... this.
13658 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
13659 (displaced_step_fixup): Likewise.
13660 (resume_1): Likewise.
13661 (handle_inferior_event): Restore child's memory before calling
13662 displaced_step_fixup on the parent.
13663 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
13664 to std::unique_ptr.
13665 <step_closure>: Change type to std::unique_ptr.
13666
5f661e03
SM
136672020-02-14 Simon Marchi <simon.marchi@efficios.com>
13668
13669 * arm-tdep.c: Include count-one-bits.h.
13670 (cleanup_block_store_pc): Use count_one_bits.
13671 (cleanup_block_load_pc): Use count_one_bits.
13672 (arm_copy_block_xfer): Use count_one_bits.
13673 (thumb2_copy_block_xfer): Use count_one_bits.
13674 (thumb_copy_pop_pc_16bit): Use count_one_bits.
13675 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
13676 (thumb_get_next_pcs_raw): Use count_one_bits.
13677 (arm_get_next_pcs_raw): Use count_one_bits_l.
13678 * arch/arm.c (bitcount): Remove.
13679 * arch/arm.h (bitcount): Remove.
13680
8084e579
TT
136812020-02-14 Tom Tromey <tromey@adacore.com>
13682
13683 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
13684 Update.
13685 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
13686 * dwarf2/loc.c (call_site_find_chain_1): Return
13687 unique_xmalloc_ptr.
13688 (call_site_find_chain): Likewise.
13689
258bf0ee
RB
136902020-02-14 Richard Biener <rguenther@suse.de>
13691
13692 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
13693 on expression with division operators.
13694
f98a8458
AKS
136952020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13696
13697 * MAINTAINERS (Write After Approval): Adding myself.
13698
d1437c0e
TT
136992020-02-12 Tom Tromey <tom@tromey.com>
13700
13701 * event-loop.c (event_data, gdb_event, event_handler_func):
13702 Remove.
13703
3d4560f7
TT
137042020-02-12 Tom Tromey <tom@tromey.com>
13705
13706 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
13707 (dwarf2_frame_objfile_data): Add comment.
13708 (find_comp_unit, set_comp_unit): New functions.
13709 (dwarf2_frame_find_fde): Use find_comp_unit.
13710 (dwarf2_build_frame_info): Use set_comp_unit.
13711
21982304
TT
137122020-02-12 Tom Tromey <tom@tromey.com>
13713
13714 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
13715 (comp_unit): Don't initialize objfile.
13716 (execute_cfa_program): Add text_offset parameter.
13717 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
13718 (dwarf2_frame_cache): Update.
13719 (dwarf2_build_frame_info): Don't set "objfile" member.
13720
4debb237
TT
137212020-02-12 Tom Tromey <tom@tromey.com>
13722
13723 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
13724 (decode_frame_entry): Likewise.
13725 (dwarf2_build_frame_info): Update.
13726
0d404d44
TT
137272020-02-12 Tom Tromey <tom@tromey.com>
13728
13729 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
13730 (decode_frame_entry_1): Use the comp_unit obstack.
13731
a7a3ae5c
TT
137322020-02-12 Tom Tromey <tom@tromey.com>
13733
13734 * dwarf2/frame.c (struct comp_unit): Add initializers and
13735 constructor.
13736 (dwarf2_frame_objfile_data): Store a comp_unit.
13737 (dwarf2_frame_find_fde): Update.
13738 (dwarf2_build_frame_info): Use "new".
13739
a9d65418
TT
137402020-02-12 Tom Tromey <tom@tromey.com>
13741
13742 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
13743 (dwarf2_fde_table): Typedef for std::vector.
13744 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
13745 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
13746 (decode_frame_entry): Update.
13747 (dwarf2_build_frame_info): Use "new".
13748
7559c217
CB
137492020-02-12 Christian Biesinger <cbiesinger@google.com>
13750
13751 * arm-tdep.c (arm_gdbarch_init): Update.
13752 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
13753 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
13754 have_neon, is_m>: Change to bool.
13755
aeefc73c
CB
137562020-02-12 Christian Biesinger <cbiesinger@google.com>
13757
13758 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
13759
d27b8e5f
TT
137602020-02-12 Tom Tromey <tom@tromey.com>
13761
13762 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
13763
cd5900f3
HD
137642020-02-12 Hannes Domani <ssbssa@yahoo.de>
13765
13766 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
13767 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
13768
f056b22b
TT
137692020-02-11 Tom Tromey <tom@tromey.com>
13770
13771 * psymtab.h: Update comment.
13772
f92ff6b5
TT
137732020-02-11 Tom Tromey <tom@tromey.com>
13774
13775 * gdb_obstack.h (struct auto_obstack): Use
13776 DISABLE_COPY_AND_ASSIGN.
13777
3fd6912b
TT
137782020-02-11 Tom Tromey <tom@tromey.com>
13779
13780 * dwarf2/frame.h (struct objfile): Don't forward declare.
13781
69ed9b74
CB
137822020-02-11 Christian Biesinger <cbiesinger@google.com>
13783
13784 * cris-tdep.c (cris_supply_gregset): Change signature to match
13785 what struct regset expects.
13786 (cris_regset): New struct.
13787 (fetch_core_registers): Remove.
13788 (cris_iterate_over_regset_sections): New function.
13789 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
13790 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
13791
bda874f6
CB
137922020-02-11 Christian Biesinger <cbiesinger@google.com>
13793
13794 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
13795 registers.
13796
754e1564
CB
137972020-02-11 Christian Biesinger <cbiesinger@google.com>
13798
13799 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
13800
8ddd8e0e
SM
138012020-02-11 Simon Marchi <simon.marchi@efficios.com>
13802
13803 * configure: Re-generate.
13804
898e7f60
SM
138052020-02-11 Simon Marchi <simon.marchi@efficios.com>
13806
13807 * configure: Re-generate.
13808
58df732b
SM
138092020-02-11 Simon Marchi <simon.marchi@efficios.com>
13810
13811 * acinclude: Update warning.m4 path.
13812 * warning.m4: Move to gdbsupport.
13813
da5bd37e
TT
138142020-02-11 Tom Tromey <tromey@adacore.com>
13815
13816 * remote.c (remote_console_output): Update.
13817 * printcmd.c (printf_command): Update.
13818 * event-loop.c (gdb_wait_for_event): Update.
13819 * linux-nat.c (sigchld_handler): Update.
13820 * remote-sim.c (gdb_os_write_stdout): Update.
13821 (gdb_os_flush_stdout): Update.
13822 (gdb_os_flush_stderr): Update.
13823 (gdb_os_write_stderr): Update.
13824 * exceptions.c (print_exception): Update.
13825 * remote-fileio.c (remote_fileio_func_read): Update.
13826 (remote_fileio_func_write): Update.
13827 * tui/tui.c (tui_enable): Update.
13828 * tui/tui-interp.c (tui_interp::init): Update.
13829 * utils.c (init_page_info): Update.
13830 (putchar_unfiltered, fputc_unfiltered): Update.
13831 (gdb_flush): Update.
13832 (emit_style_escape): Update.
13833 (flush_wrap_buffer, fputs_maybe_filtered): Update.
13834 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
13835 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
13836 (stderr_file::write): Update.
13837 (stderr_file::puts): Update.
13838 * ui-file.h (ui_file_isatty, ui_file_write)
13839 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
13840 (ui_file_puts): Don't declare.
13841
85f0dd3c
TV
138422020-02-10 Tom de Vries <tdevries@suse.de>
13843
13844 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
13845 sentinel to char *.
13846
2e927613
TV
138472020-02-09 Tom de Vries <tdevries@suse.de>
13848
13849 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
13850 filename if it matches "<artificial>".
13851
6bafc845
HD
138522020-02-09 Hannes Domani <ssbssa@yahoo.de>
13853
13854 * windows-tdep.c (struct enum_value_name): New struct.
13855 (create_enum): New function.
13856 (windows_get_siginfo_type): Create and use enum types.
13857
7928d571
HD
138582020-02-09 Hannes Domani <ssbssa@yahoo.de>
13859
13860 * NEWS: Mention $_siginfo support for Windows.
13861 * windows-nat.c (handle_exception): Set siginfo_er.
13862 (windows_nat_target::mourn_inferior): Reset siginfo_er.
13863 (windows_xfer_siginfo): New function.
13864 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
13865 * windows-tdep.c (struct windows_gdbarch_data): New struct.
13866 (init_windows_gdbarch_data): New function.
13867 (get_windows_gdbarch_data): New function.
13868 (windows_get_siginfo_type): New function.
13869 (windows_init_abi): Register windows_get_siginfo_type.
13870 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
13871
6751ebae
TT
138722020-02-08 Tom Tromey <tom@tromey.com>
13873
13874 * dwarf2/read.c (class cutu_reader) <cutu_reader,
13875 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
13876 <keep>: Declare method.
13877 <m_keep>: Remove member.
13878 <~cutu_reader>: Remove.
13879 (cutu_reader::init_tu_and_read_dwo_dies): Update.
13880 (cutu_reader::cutu_reader): Update.
13881 (cutu_reader::keep): Rename from ~cutu_reader.
13882 (process_psymtab_comp_unit, build_type_psymtabs_1)
13883 (process_skeletonless_type_unit, load_partial_comp_unit)
13884 (load_full_comp_unit, dwarf2_read_addr_index)
13885 (read_signatured_type): Update.
13886
135f5437
TT
138872020-02-08 Tom Tromey <tom@tromey.com>
13888
13889 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
13890 "want_partial_unit" parameter.
13891 (process_psymtab_comp_unit): Change want_partial_unit to bool.
13892 Inline check for DW_TAG_partial_unit.
13893 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
13894
9f66ff1c
TT
138952020-02-08 Tom Tromey <tom@tromey.com>
13896
13897 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
13898 read.c.
13899 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
13900 read.c.
13901
c8a7a66f
TT
139022020-02-08 Tom Tromey <tom@tromey.com>
13903
13904 * dwarf2/read.c (read_address): Move to comp-unit.c.
13905 (dwarf2_rnglists_process, dwarf2_ranges_process)
13906 (read_attribute_value, dwarf_decode_lines_1)
13907 (var_decode_location, decode_locdesc): Update.
13908 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
13909 read.c. Remove "cu" parameter.
13910 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
13911 method.
13912
8266302d
TT
139132020-02-08 Tom Tromey <tom@tromey.com>
13914
13915 * dwarf2/read.c (read_attribute_value, read_indirect_string)
13916 (read_indirect_line_string): Update.
13917 * dwarf2/comp-unit.c (read_offset): Remove.
13918 (read_comp_unit_head): Update.
13919 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
13920 method.
13921 (read_offset): Don't declare.
13922
4057dfde
TT
139232020-02-08 Tom Tromey <tom@tromey.com>
13924
13925 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
13926 * dwarf2/read.c (struct comp_unit_head): Move to
13927 dwarf2/comp-unit.h.
13928 (enum class rcuh_kind): Move to comp-unit.h.
13929 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
13930 (read_comp_unit_head, error_check_comp_unit_head)
13931 (read_and_check_comp_unit_head): Move to comp-unit.c.
13932 (read_offset, dwarf_unit_type_name): Likewise.
13933 (create_debug_type_hash_table, read_cutu_die_from_dwo)
13934 (cutu_reader::cutu_reader, read_call_site_scope)
13935 (find_partial_die, follow_die_offset): Update.
13936 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
13937
24aa364d
TT
139382020-02-08 Tom Tromey <tom@tromey.com>
13939
13940 * dwarf2/read.c (read_offset_1): Move to leb.c.
13941 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
13942 (dwarf_decode_macro_bytes): Update.
13943 * dwarf2/leb.c (read_offset): Rename; move from read.c.
13944 * dwarf2/leb.h (read_offset): Declare.
13945
2c7d5afc
TT
139462020-02-08 Tom Tromey <tom@tromey.com>
13947
13948 * dwarf2/read.c (dwarf2_section_size): Remove.
13949 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
13950 Update.
13951 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
13952
4075cb26
TT
139532020-02-08 Tom Tromey <tom@tromey.com>
13954
13955 * dwarf2/read.c (read_initial_length): Move to leb.c.
13956 * dwarf2/leb.h (read_initial_length): Declare.
13957 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
13958 handle_nonstd parameter.
13959 * dwarf2/frame.c (read_initial_length): Remove.
13960 (decode_frame_entry_1): Update.
13961
09ba997f
TT
139622020-02-08 Tom Tromey <tom@tromey.com>
13963
13964 * dwarf2/loc.c (dwarf2_find_location_expression)
13965 (dwarf_evaluate_loc_desc::get_tls_address)
13966 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
13967 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
13968 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
13969 (dwarf2_compile_property_to_c)
13970 (dwarf2_loc_desc_get_symbol_read_needs)
13971 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
13972 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
13973 (loclist_describe_location, loclist_tracepoint_var_ref)
13974 (loclist_generate_c_location): Update.
13975 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
13976 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
13977 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
13978 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
13979 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
13980 (dwarf2_per_cu_data::addr_size)
13981 (dwarf2_per_cu_data::ref_addr_size)
13982 (dwarf2_per_cu_data::text_offset)
13983 (dwarf2_per_cu_data::addr_type): Now methods.
13984 (per_cu_header_read_in): Make per_cu "const".
13985 (dwarf2_version): Remove.
13986 (dwarf2_per_cu_data::int_type): Now a method.
13987 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
13988 (set_die_type, read_array_type, read_subrange_index_type)
13989 (read_tag_string_type, read_subrange_type): Update.
13990 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
13991 offset_size, ref_addr_size, text_offset, addr_type, version,
13992 objfile, int_type, addr_sized_int_type>: Declare methods.
13993
96c738c0
TT
139942020-02-08 Tom Tromey <tom@tromey.com>
13995
13996 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
13997 Move earlier.
13998
8fdd972c
TT
139992020-02-08 Tom Tromey <tom@tromey.com>
14000
14001 * dwarf2/read.h (dwarf_line_debug): Declare.
14002 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
14003 * dwarf2/read.c: Move line_header code to new files.
14004 (dwarf_line_debug): No longer static.
14005 * dwarf2/line-header.c: New file.
14006 * dwarf2/line-header.h: New file.
14007
03075812
TT
140082020-02-08 Tom Tromey <tom@tromey.com>
14009
14010 * dwarf2/read.c (struct line_header) <file_full_name,
14011 file_file_name>: Return unique_xmalloc_ptr.
14012 (line_header::file_file_name): Update.
14013 (line_header::file_full_name): Update.
14014 (dw2_get_file_names_reader): Update.
14015 (macro_start_file): Update.
14016
bb822404
TT
140172020-02-08 Tom Tromey <tom@tromey.com>
14018
14019 * dwarf2/read.c (struct line_header) <file_full_name,
14020 file_file_name>: Declare methods.
14021 (dw2_get_file_names_reader): Update.
14022 (file_file_name): Now a method.
14023 (file_full_name): Likewise.
14024 (macro_start_file): Update.
14025
009b64fc
TT
140262020-02-08 Tom Tromey <tom@tromey.com>
14027
14028 * dwarf2/read.c (dwarf_always_disassemble)
14029 (show_dwarf_always_disassemble): Move to loc.c.
14030 (_initialize_dwarf2_read): Move "always-disassemble" registration
14031 to loc.c.
14032 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
14033 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
14034 static.
14035 (show_dwarf_always_disassemble): Move from read.c.
14036 (_initialize_dwarf2loc): Move always-disassemble from read.c.
14037
5895093f
TT
140382020-02-08 Tom Tromey <tom@tromey.com>
14039
14040 * dwarf2/read.c (~dwarf2_per_objfile): Update.
14041 (create_quick_file_names_table): Return htab_up.
14042 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
14043 Update.
14044 * dwarf2/read.h (struct dwarf2_per_objfile)
14045 <quick_file_names_table>: Now htab_up.
14046
b3b32279
TT
140472020-02-08 Tom Tromey <tom@tromey.com>
14048
14049 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
14050
1d33d811
TT
140512020-02-08 Tom Tromey <tom@tromey.com>
14052
14053 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
14054 Rewrite.
14055 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
14056 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
14057 (abbrev_table::abbrev_table): No longer inline.
14058 (ABBREV_HASH_SIZE): Remove.
14059 (abbrev_table::m_abbrevs): Now an htab_up.
14060
86de1d91
TT
140612020-02-08 Tom Tromey <tom@tromey.com>
14062
14063 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
14064 (cutu_reader): Update.
14065 (build_type_psymtabs_1): Update.
14066 * dwarf2/abbrev.c (abbrev_table::read): Rename.
14067 (abbrev_table::alloc_abbrev): Update.
14068 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
14069 (abbrev_table::read): New static method, renamed from
14070 abbrev_table_read_table.
14071 (abbrev_table::alloc_abbrev)
14072 (abbrev_table::add_abbrev): Now private.
14073 (abbrev_table::abbrev_table): Now private.
14074 (abbrev_table::m_abbrev_obstack): Now private. Rename.
14075
0335378b
TT
140762020-02-08 Tom Tromey <tom@tromey.com>
14077
14078 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
14079 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
14080 htab_up.
14081
48b490f2
TT
140822020-02-08 Tom Tromey <tom@tromey.com>
14083
14084 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
14085 htab_up.
14086 (lookup_dwo_unit_in_dwp): Update.
14087 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
14088 on obstack.
14089
bc68fb19
TT
140902020-02-08 Tom Tromey <tom@tromey.com>
14091
14092 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
14093 obstack.
14094
d15acc42
TT
140952020-02-08 Tom Tromey <tom@tromey.com>
14096
14097 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
14098 line_header_hash.
14099 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
14100 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
14101 Change type to htab_up.
14102
eaa5fa8b
TT
141032020-02-08 Tom Tromey <tom@tromey.com>
14104
14105 * dwarf2/read.c (allocate_type_unit_groups_table): Return
14106 htab_up. Don't allocate on obstack.
14107 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
14108 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
14109 Change type to htab_up.
14110
b0b6a987
TT
141112020-02-08 Tom Tromey <tom@tromey.com>
14112
14113 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
14114 Change type to htab_up.
14115 * dwarf2/read.c (create_signatured_type_table_from_index)
14116 (create_signatured_type_table_from_debug_names)
14117 (create_all_type_units, add_type_unit)
14118 (lookup_dwo_signatured_type, lookup_signatured_type)
14119 (process_skeletonless_type_unit): Update.
14120 (create_debug_type_hash_table, create_debug_types_hash_table):
14121 Change type of types_htab.
14122 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
14123 htab_up. Don't allocate on obstack.
14124 (create_cus_hash_table): Change type of cus_htab parameter.
14125 (struct dwo_file) <cus, tus>: Now htab_up.
14126 (lookup_dwo_signatured_type, lookup_dwo_cutu)
14127 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
14128 (queue_and_load_all_dwo_tus): Update.
14129 * dwarf2/index-write.c (write_gdbindex): Update.
14130 (write_debug_names): Update.
14131
39856def
TT
141322020-02-08 Tom Tromey <tom@tromey.com>
14133
14134 * dwarf2/read.h (struct dwarf2_queue_item): Move from
14135 dwarf2/read.c. Remove "next" member. Add constructor ntad
14136 destructor.
14137 (struct dwarf2_per_objfile) <queue>: New member.
14138 * dwarf2/read.c (struct dwarf2_queue_item): Move to
14139 dwarf2/read.h.
14140 (dwarf2_queue, dwarf2_queue_tail): Remove.
14141 (class dwarf2_queue_guard): Add parameter to constructor. Use
14142 DISABLE_COPY_AND_ASSIGN.
14143 <m_per_objfile>: New member.
14144 <~dwarf2_queue_guard>: Rewrite.
14145 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
14146 Update.
14147 (~dwarf2_queue_item): New.
14148
3e225074
TT
141492020-02-08 Tom Tromey <tom@tromey.com>
14150
14151 * dwarf2/read.c (struct die_info) <has_children>: New member.
14152 (dw2_get_file_names_reader): Remove has_children.
14153 (dw2_get_file_names): Update.
14154 (read_cutu_die_from_dwo): Remove has_children.
14155 (cutu_reader::init_tu_and_read_dwo_dies)
14156 (cutu_reader::cutu_reader): Update.
14157 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
14158 Remove has_children.
14159 (build_type_psymtabs_1, process_skeletonless_type_unit)
14160 (load_partial_comp_unit, load_full_comp_unit): Update.
14161 (create_dwo_cu_reader): Remove has_children.
14162 (create_cus_hash_table, read_die_and_children): Update.
14163 (read_full_die_1,read_full_die): Remove has_children.
14164 (read_signatured_type): Update.
14165 (class cutu_reader) <has_children>: Remove.
14166
82ca8957
TT
141672020-02-08 Tom Tromey <tom@tromey.com>
14168
14169 * dwarf2/expr.c: Rename from dwarf2expr.c.
14170 * dwarf2/expr.h: Rename from dwarf2expr.h.
14171 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
14172 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
14173 * dwarf2/frame.c: Rename from dwarf2-frame.c.
14174 * dwarf2/frame.h: Rename from dwarf2-frame.h.
14175 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
14176 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
14177 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
14178 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
14179 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
14180 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
14181 * dwarf2/loc.c: Rename from dwarf2loc.c.
14182 * dwarf2/loc.h: Rename from dwarf2loc.h.
14183 * dwarf2/read.c: Rename from dwarf2read.c.
14184 * dwarf2/read.h: Rename from dwarf2read.h.
14185 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
14186 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
14187 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
14188 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
14189 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
14190 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
14191 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
14192 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
14193 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
14194 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
14195 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
14196 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
14197 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
14198 Update.
14199 * Makefile.in (COMMON_SFILES): Update.
14200 (HFILES_NO_SRCDIR): Update.
14201
9e35d499
TT
142022020-02-08 Tom Tromey <tom@tromey.com>
14203
14204 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
14205 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
14206
1eba2311
TT
142072020-02-08 Tom Tromey <tom@tromey.com>
14208
14209 * dwarf2read.h (struct die_info): Don't declare.
14210
e41c2da2
TT
142112020-02-08 Tom Tromey <tom@tromey.com>
14212
14213 * dwarf2read.h (die_info_ptr): Remove typedef.
14214
4fc6c0d5
TT
142152020-02-08 Tom Tromey <tom@tromey.com>
14216
14217 * dwarf2read.c (read_call_site_scope)
14218 (handle_data_member_location, dwarf2_add_member_fn)
14219 (mark_common_block_symbol_computed, read_common_block)
14220 (attr_to_dynamic_prop, partial_die_info::read)
14221 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
14222 (dwarf2_symbol_mark_computed, set_die_type): Update.
14223 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
14224 method.
14225 (attr_form_is_block): Don't declare.
14226 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
14227
cd6c91b4
TT
142282020-02-08 Tom Tromey <tom@tromey.com>
14229
14230 * dwarf2read.c (dwarf2_find_base_address, )
14231 (read_call_site_scope, rust_containing_type)
14232 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
14233 (handle_data_member_location, dwarf2_add_member_fn)
14234 (get_alignment, read_structure_type, process_structure_scope)
14235 (mark_common_block_symbol_computed, read_common_block)
14236 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
14237 (partial_die_info::read, read_attribute_value, new_symbol)
14238 (lookup_die_type, dwarf2_get_ref_die_offset)
14239 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
14240 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
14241 (dwarf2_symbol_mark_computed): Update.
14242 * dwarf2/attribute.h (struct attribute) <value_as_address,
14243 form_is_section_offset, form_is_constant, form_is_ref>: Declare
14244 methods.
14245 (value_as_address, attr_form_is_section_offset)
14246 (attr_form_is_constant, attr_form_is_ref): Don't declare.
14247 * dwarf2/attribute.c (attribute::value_as_address)
14248 (attribute::form_is_section_offset, attribute::form_is_constant)
14249 (attribute::form_is_ref): Now methods.
14250
162dce55
TT
142512020-02-08 Tom Tromey <tom@tromey.com>
14252
14253 * dwarf2read.c (struct attribute, DW_STRING)
14254 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
14255 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
14256 (attr_form_is_block, attr_form_is_section_offset)
14257 (attr_form_is_constant, attr_form_is_ref): Move.
14258 * dwarf2/attribute.h: New file.
14259 * dwarf2/attribute.c: New file, from dwarf2read.c.
14260 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
14261
3054dd54
TT
142622020-02-08 Tom Tromey <tom@tromey.com>
14263
14264 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
14265 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
14266 Move.
14267 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
14268 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
14269 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
14270 abbrev.c.
14271 * dwarf2/abbrev.h: New file.
14272 * dwarf2/abbrev.c: New file, from dwarf2read.c.
14273 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
14274
96b79293
TT
142752020-02-08 Tom Tromey <tom@tromey.com>
14276
14277 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
14278 (dwarf2_section_size, dwarf2_get_section_info)
14279 (create_signatured_type_table_from_debug_names)
14280 (create_addrmap_from_aranges, read_debug_names_from_section)
14281 (get_gdb_index_contents_from_section, read_comp_unit_head)
14282 (error_check_comp_unit_head, read_abbrev_offset)
14283 (create_debug_type_hash_table, init_cu_die_reader)
14284 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
14285 (read_comp_units_from_section, create_cus_hash_table)
14286 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
14287 (create_dwp_v2_section, dwarf2_rnglists_process)
14288 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
14289 (abbrev_table_read_table, read_indirect_string_at_offset_from)
14290 (read_indirect_string_from_dwz, read_addr_index_1)
14291 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
14292 (dwarf_decode_macro_bytes, dwarf_decode_macros)
14293 (fill_in_loclist_baton): Update.
14294 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
14295 get_containing_section, get_bfd_owner, get_bfd_section,
14296 get_file_name, get_id, get_flags, empty, read>: Declare methods.
14297 (dwarf2_read_section, get_section_name, get_section_file_name)
14298 (get_containing_section, get_section_bfd_owner)
14299 (get_section_bfd_section, get_section_name, get_section_file_name)
14300 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
14301 declare.
14302 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
14303 (dwarf2_section_info::get_bfd_owner)
14304 (dwarf2_section_info::get_bfd_section)
14305 (dwarf2_section_info::get_name)
14306 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
14307 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
14308 (dwarf2_section_info::read): Now methods.
14309 * dwarf-index-write.c (class debug_names): Update.
14310
2c86cff9
TT
143112020-02-08 Tom Tromey <tom@tromey.com>
14312
14313 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
14314 Move to dwarf2/section.h.
14315 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
14316 (get_section_bfd_section, get_section_name)
14317 (get_section_file_name, get_section_id, get_section_flags)
14318 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
14319 dwarf2/section.c.
14320 * dwarf2/section.h: New file.
14321 * dwarf2/section.c: New file, from dwarf2read.c.
14322 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
14323
f4382c45
TT
143242020-02-08 Tom Tromey <tom@tromey.com>
14325
14326 * dwarf2read.h (read_unsigned_leb128): Don't declare.
14327 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
14328 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
14329 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
14330 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
14331 * dwarf2/leb.h: New file, from dwarf2read.c.
14332 * dwarf2/leb.c: New file, from dwarf2read.c.
14333 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
14334 Remove.
14335 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
14336 (COMMON_SFILES): Add dwarf2/leb.c.
14337
01840b7a
JB
143382020-02-08 Joel Brobecker <brobecker@adacore.com>
14339
14340 GDB 9.1 released.
14341
dfcb27e4
IB
143422020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
14343
14344 PR gdb/25190:
aac66a4c
SM
14345 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
14346 * gdb/remote.c (remote_console_output): Update.
14347 * gdb/ui-file.c (fputs_unfiltered): Rename to...
14348 (ui_file_puts): ...this.
14349 * gdb/ui-file.h (ui_file_puts): Add declaration.
14350 * gdb/utils.c (emit_style_escape): Update.
14351 (flush_wrap_buffer): Update.
14352 (fputs_maybe_filtered): Update.
14353 (fputs_unfiltered): Add function.
dfcb27e4 14354
faa17681
IB
143552020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
14356
aac66a4c
SM
14357 * gdb/event-loop.c (gdb_wait_for_event): Update.
14358 * gdb/printcmd.c (printf_command): Update.
14359 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
14360 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
14361 (gdb_os_flush_stderr): Update.
14362 * gdb/remote.c (remote_console_output): Update.
14363 * gdb/ui-file.c (gdb_flush): Rename to...
14364 (ui_file_flush): ...this.
14365 (stderr_file::write): Update.
14366 (stderr_file::puts): Update.
14367 * gdb/ui-file.h (gdb_flush): Rename to...
14368 (ui_file_flush): ...this.
14369 * gdb/utils.c (gdb_flush): Add function.
14370 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 14371
5abbbe1d
TT
143722020-02-07 Tom Tromey <tromey@adacore.com>
14373
14374 PR breakpoints/24915:
14375 * source.c (find_and_open_source): Do not check basenames_may_differ.
14376
919adfe8
TT
143772020-02-07 Tom Tromey <tom@tromey.com>
14378
14379 * README: Update gdbserver documentation.
14380 * gdbserver: Move to top level.
14381 * configure.tgt (build_gdbserver): Remove.
14382 * configure.ac: Remove --enable-gdbserver.
14383 * configure: Rebuild.
14384 * Makefile.in (distclean): Don't mention gdbserver.
14385
1d5d29e7
SV
143862020-02-06 Shahab Vahedi <shahab@synopsys.com>
14387
14388 * source-cache.c (source_cache::ensure): Surround
14389 get_plain_source_lines with a try/catch.
14390 (source_cache::get_line_charpos): Get rid of try/catch
14391 and only check for the return value of "ensure".
14392 * tui/tui-source.c (tui_source_window::set_contents):
14393 Simplify "nlines" calculation.
14394
6eb1129c
SV
143952020-02-06 Shahab Vahedi <shahab@synopsys.com>
14396
14397 * MAINTAINERS (Write After Approval): Add myself.
14398
c6a42d11
CB
143992020-02-05 Christian Biesinger <cbiesinger@google.com>
14400
14401 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
14402 function call.
14403
c8ecdda6
CB
144042020-02-05 Christian Biesinger <cbiesinger@google.com>
14405
14406 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
14407
f6480e70
MR
144082020-02-05 Maciej W. Rozycki <macro@wdc.com>
14409
14410 * nat/riscv-linux-tdesc.h: New file.
14411 * nat/riscv-linux-tdesc.c: New file, taking code from...
14412 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
14413 ... here.
14414 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
14415 NATDEPFILES.
14416
dcc9fbc6
AB
144172020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
14418
14419 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
14420 we don't set the fake simulator ptid to the null_ptid.
14421
719546c4
SM
144222020-02-03 Simon Marchi <simon.marchi@efficios.com>
14423
14424 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
14425 * gdbthread.h (class thread_info) <resumed>: Likewise.
14426 * infrun.c (resume_1): Likewise.
14427 (proceed): Likewise.
14428 (infrun_thread_stop_requested): Likewise.
14429 (stop_all_threads): Likewise.
14430 (handle_inferior_event): Likewise.
14431 (restart_threads): Likewise.
14432 (finish_step_over): Likewise.
14433 (keep_going_stepped_thread): Likewise.
14434 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
14435 (linux_handle_extended_wait): Likewise.
14436 * record-btrace.c (get_thread_current_frame_id): Likewise.
14437 * record-full.c (record_full_wait_1): Likewise.
14438 * remote.c (remote_target::process_initial_stop_replies): Likewise.
14439 * target.c (target_resume): Likewise.
14440 * thread.c (set_running_thread): Likewise.
14441
e409c542
AKS
144422020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14443
14444 * f-valprint.c (f77_print_array_1): Changed datatype of index
14445 variable to LONGEST from int to enable it to contain bound
14446 values correctly.
14447
ee98c0da
MR
144482020-02-03 Maciej W. Rozycki <macro@wdc.com>
14449
14450 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
14451 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
14452 offsets according to FLEN determined.
14453 (riscv_linux_nat_target::read_description): Determine FLEN
14454 dynamically.
14455 (riscv_linux_nat_target::fetch_registers): Size regset buffer
14456 according to FLEN determined.
14457 (riscv_linux_nat_target::store_registers): Likewise.
14458
aa66aac4
SV
144592020-02-01 Shahab Vahedi <shahab@synopsys.com>
14460
14461 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
14462 when reg->group is empty and reggroup is not.
14463
fd9faca8
TT
144642020-01-31 Tom Tromey <tromey@adacore.com>
14465
14466 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
14467 Call beneath target's mourn_inferior after unpushing.
14468
42330a68
AB
144692020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
14470
14471 PR tui/9765
14472 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
14473 have enough lines to fill the screen, still return the lowest
14474 address we found.
14475
7a27a45b
AB
144762020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
14477
14478 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
14479 '-', '<', and '>' commands.
14480
c47f70e2
PA
144812020-01-29 Pedro Alves <palves@redhat.com>
14482 Sergio Durigan Junior <sergiodj@redhat.com>
14483
14484 * infcmd.c (construct_inferior_arguments): Assert that
14485 'argc' is greater than 0.
14486
5133a315
LM
144872020-01-29 Luis Machado <luis.machado@linaro.org>
14488
14489 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
14490 (BRK_INSN_MASK): Define to 0xd4200000.
14491 (aarch64_program_breakpoint_here_p): New function.
14492 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
14493 * arch-utils.c (default_program_breakpoint_here_p): Moved from
14494 breakpoint.c.
14495 * arch-utils.h (default_program_breakpoint_here_p): Moved from
14496 breakpoint.h
14497 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
14498 call gdbarch_program_breakpoint_here_p.
14499 (program_breakpoint_here): Moved to arch-utils.c, renamed to
14500 default_program_breakpoint_here_p, changed return type to bool and
14501 simplified.
14502 * breakpoint.h (program_breakpoint_here): Moved prototype to
14503 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
14504 return type to bool.
14505 * gdbarch.c: Regenerate.
14506 * gdbarch.h: Regenerate.
14507 * gdbarch.sh (program_breakpoint_here_p): New method.
14508 * infrun.c (handle_signal_stop): Call
14509 gdbarch_program_breakpoint_here_p.
14510
168f8c6b
TT
145112020-01-26 Tom Tromey <tom@tromey.com>
14512
14513 * ctfread.c (struct ctf_fp_info): Reindent.
14514 (_initialize_ctfread): Remove.
14515
128a391f
TT
145162020-01-26 Tom Tromey <tom@tromey.com>
14517
14518 * psymtab.c (partial_map_expand_apply)
14519 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
14520 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
14521 (psym_print_stats, psym_expand_symtabs_for_function)
14522 (psym_map_symbol_filenames, psym_map_matching_symbols)
14523 (psym_expand_symtabs_matching)
14524 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
14525 (maintenance_check_psymtabs): Use new methods.
14526 * psympriv.h (struct partial_symtab) <readin_p,
14527 get_compunit_symtab>: New methods.
14528 <readin, compunit_symtab>: Remove members.
14529 (struct standard_psymtab): New.
14530 (struct legacy_psymtab): Derive from standard_psymtab.
14531 * dwarf2read.h (struct dwarf2_psymtab): Derive from
14532 standard_psymtab.
14533 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
14534
0494dbec
TT
145352020-01-26 Tom Tromey <tom@tromey.com>
14536
14537 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
14538 read_dependencies. Add assert.
14539 * psymtab.c (partial_symtab::read_dependencies): New method.
14540 * psympriv.h (struct partial_symtab) <read_dependencies>: New
14541 method.
14542 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
14543 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
14544 read_dependencies.
14545 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
14546 Add assert.
14547
8566b89b
TT
145482020-01-26 Tom Tromey <tom@tromey.com>
14549
14550 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
14551 Call expand_psymtab.
14552 (xcoff_read_symtab): Call expand_psymtab.
14553 (xcoff_start_psymtab, xcoff_end_psymtab): Set
14554 legacy_expand_psymtab.
14555 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
14556 method.
14557 (struct legacy_psymtab) <expand_psymtab>: Implement.
14558 <legacy_expand_psymtab>: New member.
14559 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
14560 (parse_partial_symbols): Set legacy_expand_psymtab.
14561 (psymtab_to_symtab_1): Change argument order. Call
14562 expand_psymtab.
14563 (new_psymtab): Set legacy_expand_psymtab.
14564 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
14565 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
14566 expand_psymtab.
14567 (dwarf2_psymtab::expand_psymtab): Rename from
14568 psymtab_to_symtab_1. Call expand_psymtab.
14569 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
14570 (dbx_end_psymtab): Likewise.
14571 (dbx_psymtab_to_symtab_1): Change argument order. Call
14572 expand_psymtab.
14573 (dbx_read_symtab): Call expand_psymtab.
14574 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
14575 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
14576 (ctf_psymtab::read_symtab): Call expand_psymtab.
14577
077cbab2
TT
145782020-01-26 Tom Tromey <tom@tromey.com>
14579
14580 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
14581 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
14582 messages.
14583 * mdebugread.c (mdebug_read_symtab): Remove prints.
14584 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
14585 assert.
14586 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
14587
891813be
TT
145882020-01-26 Tom Tromey <tom@tromey.com>
14589
14590 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
14591 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
14592 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
14593 legacy_symtab.
14594 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
14595 * psymtab.c (psymtab_to_symtab): Call method.
14596 (dump_psymtab): Update.
14597 * psympriv.h (struct partial_symtab): Add virtual destructor.
14598 <read_symtab>: New method.
14599 (struct legacy_symtab): New.
14600 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
14601 (struct pst_map) <pst>: Now a legacy_psymtab.
14602 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
14603 (new_psymtab): Use legacy_psymtab.
14604 * dwarf2read.h (struct dwarf2_psymtab): New.
14605 (struct dwarf2_per_cu_data) <psymtab>: Use it.
14606 * dwarf2read.c (dwarf2_create_include_psymtab)
14607 (dwarf2_build_include_psymtabs, create_type_unit_group)
14608 (create_partial_symtab, process_psymtab_comp_unit_reader)
14609 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
14610 (set_partial_user): Use dwarf2_psymtab.
14611 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
14612 (psymtab_to_symtab_1, process_full_comp_unit)
14613 (process_full_type_unit, dwarf2_ranges_read)
14614 (dwarf2_get_pc_bounds, psymtab_include_file_name)
14615 (dwarf_decode_lines): Use dwarf2_psymtab.
14616 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
14617 (add_address_entry_worker, write_one_signatured_type)
14618 (recursively_count_psymbols, recursively_write_psymbols)
14619 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
14620 (write_debug_names): Likewise.
14621 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
14622 <pst>: Now a legacy_psymtab.
14623 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
14624 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
14625 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
14626 * ctfread.c (struct ctf_psymtab): New.
14627 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
14628 ctf_psymtab.
14629 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
14630 (create_partial_symtab): Return a ctf_psymtab.
14631 (scan_partial_symbols): Update.
14632
c3693a1d
TT
146332020-01-26 Tom Tromey <tom@tromey.com>
14634
14635 * xcoffread.c (xcoff_start_psymtab): Use new.
14636 * psymtab.c (partial_symtab::partial_symtab): New constructor,
14637 renamed from start_psymtab_common.
14638 * psympriv.h (struct partial_symtab): Add new constructor.
14639 (start_psymtab_common): Don't declare.
14640 * mdebugread.c (parse_partial_symbols): Use new.
14641 * dwarf2read.c (create_partial_symtab): Use new.
14642 * dbxread.c (start_psymtab): Use new.
14643 * ctfread.c (create_partial_symtab): Use new.
14644
32caafd0
TT
146452020-01-26 Tom Tromey <tom@tromey.com>
14646
14647 * xcoffread.c (xcoff_end_psymtab): Use new.
14648 * psymtab.c (start_psymtab_common): Use new.
14649 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
14650 Update.
14651 * psympriv.h (struct partial_symtab): Add parameters to
14652 constructor. Don't inline.
14653 (allocate_psymtab): Don't declare.
14654 * mdebugread.c (new_psymtab): Use new.
14655 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
14656 * dbxread.c (dbx_end_psymtab): Use new.
14657
abaa2f23
TT
146582020-01-26 Tom Tromey <tom@tromey.com>
14659
14660 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
14661 allocate_psymtab. Update documentation.
14662 * psymtab.c (psymtab_storage::install_psymtab): Rename from
14663 allocate_psymtab. Do not use new.
14664 (allocate_psymtab): Use new. Update.
14665
6d94535f
TT
146662020-01-26 Tom Tromey <tom@tromey.com>
14667
14668 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
14669 * psymtab.c (psym_print_stats): Update.
14670 * psympriv.h (struct partial_symtab) <readin,
14671 psymtabs_addrmap_supported, anonymous>: Now bool.
14672 * mdebugread.c (psymtab_to_symtab_1): Update.
14673 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
14674 (build_type_psymtabs_reader, psymtab_to_symtab_1)
14675 (process_full_comp_unit, process_full_type_unit): Update.
14676 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
14677 * ctfread.c (psymtab_to_symtab): Update.
14678
6f17252b
TT
146792020-01-26 Tom Tromey <tom@tromey.com>
14680
14681 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
14682 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
14683 * psymtab.c (psymtab_storage): Delete psymtabs.
14684 (psymtab_storage::allocate_psymtab): Use new.
14685 (psymtab_storage::discard_psymtab): Use delete.
14686 * psympriv.h (struct partial_symtab): Add constructor and
14687 initializers.
14688
f6f1cebc
TT
146892020-01-26 Tom Tromey <tom@tromey.com>
14690
14691 * machoread.c: Do not include psympriv.h.
14692
e47e48f6
PW
146932020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14694
14695 * NEWS: Mention the new option and the set/show commands.
14696
a2fedca9
PW
146972020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14698
14699 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
14700 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
14701 (validate_exec_file): New variables, enums, functions.
14702 (exec_file_locate_attach, print_section_info): Style the filenames.
14703 (_initialize_exec): Install show_exec_file_mismatch_command and
14704 set_exec_file_mismatch_command.
14705 * gdbcore.h (validate_exec_file): Declare.
14706 * infcmd.c (attach_command): Call validate_exec_file.
14707 * remote.c ( remote_target::remote_add_inferior): Likewise.
14708
7ffa82e1
AB
147092020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14710
14711 * frame.c (find_frame_sal): Move call to get_next_frame into more
14712 inner scope.
14713 * inline-frame.c (inilne_state) <inline_state>: Update argument
14714 types.
14715 (inilne_state) <skipped_symbol>: Rename to...
14716 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
14717 (skip_inline_frames): Build vector of skipped symbols and use this
14718 to reate the inline_state.
14719 (inline_skipped_symbol): Add a comment and some assertions, fetch
14720 skipped symbol from the list.
14721
3d92a3e3
AB
147222020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14723
14724 * buildsym.c (lte_is_less_than): Delete.
14725 (buildsym_compunit::end_symtab_with_blockvector): Create local
14726 lambda function to sort line table entries, and use
14727 std::stable_sort instead of std::sort.
14728 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
14729 markers when looking for a previous line.
14730
94a72be7
AB
147312020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14732
14733 * dwarf2read.c (lnp_state_machine::record_line): Include
14734 end_sequence parameter in debug print out. Record the line if we
14735 are at an end_sequence marker even if it's not the start of a
14736 statement.
14737 * symmisc.c (maintenance_print_one_line_table): Print end of
14738 sequence markers with 'END' not '0'.
14739
53af73bf
PA
147402020-01-24 Pedro Alves <palves@redhat.com>
14741
14742 PR gdb/25410
14743 * thread.c (scoped_restore_current_thread::restore): Use
14744 switch_to_inferior_no_thread.
14745 * exec.c: Include "progspace-and-thread.h".
14746 (add_target_sections, remove_target_sections):
14747 scoped_restore_current_pspace_and_thread instead of
14748 scoped_restore_current_thread.
14749 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
14750 and aspace to the inferior before calling clone_program_space.
14751 Remove stale comment.
14752
3050c6f4
CB
147532020-01-24 Christian Biesinger <cbiesinger@google.com>
14754
14755 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
14756 (arm_netbsd_nat_target::fetch_registers): ...this.
14757 (arm_nbsd_nat_target::store_registers): Rename to...
14758 (arm_netbsd_nat_target::store_registers): ...this.
14759
73685c7e
CB
147602020-01-24 Christian Biesinger <cbiesinger@google.com>
14761
14762 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
14763 register_t.
14764
89203d40
CB
147652020-01-24 Christian Biesinger <cbiesinger@google.com>
14766
14767 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
14768 Update comment.
14769 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
14770 Likewise.
14771 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
14772 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
14773 the correct replacement (iterate_over_regset_sections).
14774 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
14775 Update comment.
14776
1ba1ac88
AB
147772020-01-24 Graham Markall <graham.markall@embecosm.com>
14778
14779 PR gdb/23718
14780 * gdb/python/python.c (execute_gdb_command): Call
14781 async_enable_stdin in catch block.
14782
f3364a6d
AB
147832020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14784
14785 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
14786 SWITCH_THRU_ALL_UIS.
14787
733d0a67
AB
147882020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14789
14790 PR tui/9765
14791 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
14792 comment, add extra parameter, and update to store previous symbol
14793 when appropriate.
14794 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
14795 add extra parameter.
14796 * tui/tui-disasm.c (tui_disassemble): Update header comment,
14797 remove unneeded parameter, add try/catch around gdb_print_insn,
14798 rewrite to add items to asm_lines vector.
14799 (tui_find_backward_disassembly_start_address): New function.
14800 (tui_find_disassembly_address): Updated throughout.
14801 (tui_disasm_window::set_contents): Update for changes to
14802 tui_disassemble.
14803 (tui_disasm_window::do_scroll_vertical): No need to adjust the
14804 number of lines to scroll.
14805
b3b3bada
SM
148062020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
14807
14808 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
14809 (SECT_OFF_DATA): Likewise.
14810 (SECT_OFF_RODATA): Likewise.
14811 (SECT_OFF_TEXT): Likewise.
14812 (SECT_OFF_BSS): Likewise.
14813 (struct objfile) <text_section_offset, data_section_offset>: New
14814 methods.
14815 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
14816 objfile::text_section_offset.
14817 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
14818 * coffread.c (coff_symtab_read): Likewise.
14819 (enter_linenos): Likewise.
14820 (process_coff_symbol): Likewise.
14821 * ctfread.c (get_objfile_text_range): Likewise.
14822 * dtrace-probe.c (dtrace_probe::get_relocated_address):
14823 Use objfile::data_section_offset.
14824 * dwarf2-frame.c (execute_cfa_program): Use
14825 objfile::text_section_offset.
14826 (dwarf2_frame_find_fde): Likewise.
14827 * dwarf2read.c (create_addrmap_from_index): Likewise.
14828 (create_addrmap_from_aranges): Likewise.
14829 (dw2_find_pc_sect_compunit_symtab): Likewise.
14830 (process_psymtab_comp_unit_reader): Likewise.
14831 (add_partial_symbol): Likewise.
14832 (add_partial_subprogram): Likewise.
14833 (process_full_comp_unit): Likewise.
14834 (read_file_scope): Likewise.
14835 (read_func_scope): Likewise.
14836 (read_lexical_block_scope): Likewise.
14837 (read_call_site_scope): Likewise.
14838 (dwarf2_rnglists_process): Likewise.
14839 (dwarf2_ranges_process): Likewise.
14840 (dwarf2_ranges_read): Likewise.
14841 (dwarf_decode_lines_1): Likewise.
14842 (new_symbol): Likewise.
14843 (dwarf2_fetch_die_loc_sect_off): Likewise.
14844 (dwarf2_per_cu_text_offset): Likewise.
14845 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
14846 * hppa-tdep.c (read_unwind_info): Likewise.
14847 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
14848 * psympriv.h (struct partial_symtab): Likewise.
14849 * psymtab.c (find_pc_sect_psymtab): Likewise.
14850 * solib-svr4.c (enable_break): Likewise.
14851 * stap-probe.c (relocate_address): Use
14852 objfile::data_section_offset.
14853 * xcoffread.c (enter_line_range): Use
14854 objfile::text_section_offset.
14855 (read_xcoff_symtab): Likewise.
14856
ab53f382
SM
148572020-01-23 Simon Marchi <simon.marchi@efficios.com>
14858
14859 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
14860 declaration to narrower scopes.
14861
e7eee665
SM
148622020-01-23 Simon Marchi <simon.marchi@efficios.com>
14863
14864 * darwin-nat.h (struct darwin_exception_msg, enum
14865 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
14866 Move up.
14867 (class darwin_nat_target) <wait_1, check_new_threads,
14868 decode_exception_message, decode_message, stop_inferior,
14869 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
14870 * darwin-nat.c (darwin_check_new_threads): Rename to...
14871 (darwin_nat_target::check_new_threads): ... this.
14872 (darwin_suspend_inferior_it): Remove.
14873 (darwin_decode_exception_message): Rename to...
14874 (darwin_nat_target::decode_exception_message): ... this.
14875 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
14876 (darwin_decode_message): Rename to...
14877 (darwin_nat_target::decode_message): ... this.
14878 (cancel_breakpoint): Rename to...
14879 (darwin_nat_target::cancel_breakpoint): ... this.
14880 (darwin_wait): Rename to...
14881 (darwin_nat_target::wait_1): ... this. Use range-based for loop
14882 instead of iterate_over_inferiors.
14883 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
14884 (darwin_stop_inferior): Rename to...
14885 (darwin_nat_target::stop_inferior): ... this.
14886 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
14887 (darwin_init_thread_list): Rename to...
14888 (darwin_nat_target::init_thread_list): ... this.
14889 (darwin_ptrace_him): Rename to...
14890 (darwin_nat_target::ptrace_him): ... this.
14891 (darwin_nat_target::create_inferior): Pass lambda function to
14892 fork_inferior.
14893 (darwin_nat_target::detach): Call stop_inferior instead of
14894 darwin_stop_inferior.
14895 * fork-inferior.h (fork_inferior): Change init_trace_fun
14896 parameter to gdb::function_view.
14897 * fork-inferior.c (fork_inferior): Likewise.
14898
c162ed3e
HD
148992020-01-23 Hannes Domani <ssbssa@yahoo.de>
14900
14901 * i386-cygwin-tdep.c (core_process_module_section): Update.
14902 * windows-nat.c (struct lm_info_windows): Add text_offset.
14903 (windows_xfer_shared_libraries): Update.
14904 * windows-tdep.c (windows_xfer_shared_library):
14905 Add text_offset_cached argument.
14906 * windows-tdep.h (windows_xfer_shared_library): Update.
14907
a1237872
SM
149082020-01-21 Simon Marchi <simon.marchi@efficios.com>
14909
14910 * gdbarch.sh: Add declaration for _initialize_gdbarch.
14911
b3ee6dd9
SM
149122020-01-21 Simon Marchi <simon.marchi@efficios.com>
14913
14914 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
14915 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
14916 replace with range-based for.
14917 (gdbsim_interrupt_inferior): Remove.
14918 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
14919 with a range-based for. Inline code from
14920 gdbsim_interrupt_inferior.
14921
f9fac3c8
SM
149222020-01-21 Simon Marchi <simon.marchi@efficios.com>
14923
14924 * infrun.c (proceed): Fix indentation.
14925
f6474de9
TT
149262020-01-21 Tom Tromey <tromey@adacore.com>
14927
14928 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
14929 * python/python.c (python_extension_ops): Update.
14930 (gdbpy_colorize): New function.
14931 * python/lib/gdb/__init__.py (colorize): New function.
14932 * extension.h (ext_lang_colorize): Declare.
14933 * extension.c (ext_lang_colorize): New function.
14934 * extension-priv.h (struct extension_language_ops) <colorize>: New
14935 member.
14936 * cli/cli-style.c (_initialize_cli_style): Update help text.
14937
f0c702d4
LM
149382020-01-21 Luis Machado <luis.machado@linaro.org>
14939
14940 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
14941 <cond>: Change type to bool.
14942 (aarch64_displaced_step_b_cond): Update cond to use bool type.
14943 (aarch64_displaced_step_cb): Likewise.
14944 (aarch64_displaced_step_tb): Likewise.
14945
1ab139e5
LM
149462020-01-21 Luis Machado <luis.machado@linaro.org>
14947
14948 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
14949 output.
14950
0c271889
LM
149512020-01-21 Luis Machado <luis.machado@linaro.org>
14952
14953 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
14954 <pc_adjust>: Adjust the documentation.
14955 (aarch64_displaced_step_fixup): Check if PC really moved before
14956 adjusting it.
14957
4d89c1c7
TT
149582020-01-19 Tom Tromey <tom@tromey.com>
14959
14960 * disasm.c (~gdb_disassembler): New destructor.
14961 (gdb_buffered_insn_length): Call disassemble_free_target.
14962 * disasm.h (class gdb_disassembler): Declare destructor. Use
14963 DISABLE_COPY_AND_ASSIGN.
14964
c0ab21c2
TT
149652020-01-19 Tom Tromey <tom@tromey.com>
14966
14967 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
14968 (die_reader_func_ftype): Remove.
14969 (cutu_reader): New class.
14970 (dw2_get_file_names_reader): Remove "data" parameter.
14971 (dw2_get_file_names): Use cutu_reader.
14972 (create_debug_type_hash_table): Update.
14973 (read_cutu_die_from_dwo): Update comment.
14974 (lookup_dwo_unit): Add dwo_name parameter.
14975 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
14976 die_reader_func_ftype and data parameters.
14977 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
14978 Remove die_reader_func_ftype and data parameters.
14979 (~cutu_reader): New; from init_cutu_and_read_dies.
14980 (cutu_reader::cutu_reader): Rename from
14981 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
14982 and data parameters.
14983 (init_cutu_and_read_dies_simple): Remove.
14984 (struct process_psymtab_comp_unit_data): Remove.
14985 (process_psymtab_comp_unit_reader): Remove data parameter; add
14986 want_partial_unit and pretend_language parameters.
14987 (process_psymtab_comp_unit): Use cutu_reader.
14988 (build_type_psymtabs_reader): Remove data parameter.
14989 (build_type_psymtabs_1): Use cutu_reader.
14990 (process_skeletonless_type_unit): Likewise.
14991 (load_partial_comp_unit_reader): Remove.
14992 (load_partial_comp_unit): Use cutu_reader.
14993 (load_full_comp_unit_reader): Remove.
14994 (load_full_comp_unit): Use cutu_reader.
14995 (struct create_dwo_cu_data): Remove.
14996 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
14997 dwo_unit parameters.
14998 (create_cus_hash_table): Use cutu_reader.
14999 (struct dwarf2_read_addr_index_data): Remove.
15000 (dwarf2_read_addr_index_reader): Remove.
15001 (dwarf2_read_addr_index): Use cutu_reader.
15002 (read_signatured_type_reader): Remove.
15003 (read_signatured_type): Use cutu_reader.
15004
45bbae5c
TT
150052020-01-19 Tom Tromey <tom@tromey.com>
15006
15007 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
15008 * tui/tui-wingeneral.h (class tui_suppress_output): New.
15009 (tui_wrefresh): Declare.
15010 * tui/tui-wingeneral.c (suppress_output): New global.
15011 (tui_suppress_output, ~tui_suppress_output): New constructor and
15012 destructor.
15013 (tui_wrefresh): New function.
15014 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
15015 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
15016 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
15017 method.
15018 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
15019 tui_wrefresh.
15020 (tui_data_window::no_refresh): New method.
15021 (tui_data_item_window::refresh_window): Call tui_wrefresh.
15022 (tui_reg_command): Use tui_suppress_output
15023 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
15024 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
15025 method.
15026 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
15027
4f13c1c0
TT
150282020-01-19 Tom Tromey <tom@tromey.com>
15029
15030 * tui/tui-winsource.c (tui_update_source_windows_with_line):
15031 Handle case where symtab is null.
15032
fa47e446
SM
150332020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
15034
15035 * linux-fork.c (one_fork_p): Simplify.
15036
26f42329
SM
150372020-01-17 Simon Marchi <simon.marchi@efficios.com>
15038
15039 * top.c (struct qt_args): Remove.
15040 (kill_or_detach): Change return type to void, replace `void *`
15041 parameter with a proper one.
15042 (print_inferior_quit_action): Likewise.
15043 (quit_confirm): Use range-based for loop to iterate over inferiors.
15044 (quit_force): Likewise.
15045
a9ac81b1
SM
150462020-01-17 Simon Marchi <simon.marchi@efficios.com>
15047
15048 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
15049 `void *` parameter with proper parameters.
15050 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
15051 (print_one_inferior): Change return type to void, replace `void *`
15052 parameter with proper parameters.
15053 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
15054 inferiors.
15055 (get_other_inferior): Remove.
15056 (mi_cmd_remove_inferior): Use range-based loop to iterate over
15057 inferiors.
15058
788eca49
SM
150592020-01-17 Simon Marchi <simon.marchi@efficios.com>
15060
15061 * mi/mi-interp.c (report_initial_inferior): Remove.
15062 (mi_interp::init): Use range-based for to iterate over inferiors.
15063
d9bc85b6
SM
150642020-01-17 Simon Marchi <simon.marchi@efficios.com>
15065
15066 * python/py-inferior.c (build_inferior_list): Remove.
15067 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
15068
40c94099
CB
150692020-01-16 Christian Biesinger <cbiesinger@google.com>
15070
15071 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
15072 (btrace_stitch_trace): Likewise.
15073 * charset.c (intermediate_encoding): Likewise (vaild).
15074 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
15075 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
15076 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
15077
e0cdfe3c
HD
150782020-01-16 Hannes Domani <ssbssa@yahoo.de>
15079
15080 * windows-tdep.c (windows_get_tlb_type):
15081 Add rtl_user_process_parameters type.
15082
790f1718 150832020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 15084 Norbert Lange <nolange79@gmail.com>
790f1718
PA
15085
15086 PR build/24805
15087 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
15088 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
15089 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
15090 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
15091 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
15092 (ps_plog): Redeclare exported functions with default visibility.
15093
3112ed97
NA
150942020-01-16 Nitika Achra <Nitika.Achra@amd.com>
15095
15096 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
15097 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
15098
8dc3273e
SM
150992020-01-15 Simon Marchi <simon.marchi@efficios.com>
15100
15101 * infcmd.c (post_create_inferior): Use get_thread_regcache
15102 instead of get_current_regcache.
15103
ff47f4f0
TT
151042020-01-14 Tom Tromey <tom@tromey.com>
15105
15106 PR symtab/12535:
15107 * python/python.c (gdbpy_decode_line): Treat empty string the same
15108 as no argument.
15109
975f45b7
TT
151102020-01-14 Tom Tromey <tom@tromey.com>
15111
15112 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
15113
25e57356
TT
151142020-01-14 Tom Tromey <tom@tromey.com>
15115
15116 * nat/linux-btrace.c: Don't include <config.h>.
15117 * nat/linux-ptrace.c: Don't include <config.h>.
15118 * nat/x86-linux-dregs.c: Don't include <config.h>.
15119
05ea2a05
TT
151202020-01-14 Tom Tromey <tom@tromey.com>
15121
15122 * configure: Rebuild.
15123 * configure.ac: Move many checks to ../gdbsupport/common.m4.
15124
01027315
TT
151252020-01-14 Tom Tromey <tom@tromey.com>
15126
15127 * nat/x86-linux-dregs.c: Include configh.h.
15128 * nat/linux-ptrace.c: Include configh.h.
15129 * nat/linux-btrace.c: Include configh.h.
15130 * defs.h: Include config.h, bfd.h.
15131 * configure.ac: Don't source common.host.
15132 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
15133 * configure: Rebuild.
15134 * acinclude.m4: Update path.
15135 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
15136 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
15137 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
15138 (CLIBS): Add LIBSUPPORT.
15139 (CDEPS): Likewise.
15140 (COMMON_SFILES): Remove gdbsupport files.
15141 (HFILES_NO_SRCDIR): Likewise.
15142 (stamp-version): Update path to create-version.sh.
15143 (ALLDEPFILES): Remove gdbsupport files.
15144
b2ceabe8
TT
151452020-01-14 Tom Tromey <tom@tromey.com>
15146
15147 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
15148 USE_WIN32API when needed.
15149 * configure.ac (USE_WIN32API): Don't define.
15150 (WIN32LIBS): Use WIN32APILIBS.
15151 * configure: Rebuild.
15152
25c51f71
TT
151532020-01-14 Tom Tromey <tom@tromey.com>
15154
15155 * configure: Rebuild.
15156 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
15157
717c684d
BE
151582020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
15159
15160 * skip.c (skip_function_command): Make skip w/o arguments use the
15161 name of the inlined function if pc is inside any inlined function.
15162
7da6a5b9
LM
151632020-01-14 Luis Machado <luis.machado@linaro.org>
15164
15165 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
15166 * infrun.c (resume_1): Likewise.
15167 (handle_inferior_event): Remove stale comment.
15168 * linux-nat.c (linux_nat_target::resume): Update comments.
15169 (save_stop_reason): Likewise.
15170 (linux_nat_filter_event): Likewise.
15171 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
15172
44e4c775
AB
151732020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15174
15175 * elfread.c (record_minimal_symbol): Set section index to 0 for
15176 non-allocatable sections.
15177
18a8505e
AT
15178
151792020-01-13 Ali Tamur <tamur@google.com>
15180
15181 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
15182 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
15183 to gdb::optional. Update comments.
15184 (dwo_file): Update comments.
15185 (read_attribute): Update API to take an additional out parameter,
15186 need_reprocess. This is used to mark attributes that need other
15187 attributes (e.g. str_offsets_base) for correct computation which may not
15188 have been read yet.
15189 (read_attribute_reprocess): New function declaration.
15190 (read_addr_index): Likewise.
15191 (read_dwo_str_index): Likewise.
15192 (read_stub_str_index): Likewise.
15193 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
15194 (lookup_addr_base): New function definition.
15195 (lookup_ranges_base): Likewise.
15196 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
15197 lookup_ranges_base.
15198 (init_cutu_and_read_dies): Update comments.
15199 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
15200 unit. This is used to inherit parent's str_offsets_base and addr_base.
15201 Update comments.
15202 (init_cutu_and_read_dies_simple): Reflect API changes.
15203 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
15204 (create_cus_hash_table): Change API to take parent compile unit.
15205 Reflect API changes.
15206 (open_and_init_dwo_file): Reflect API changes.
15207 (dwarf2_get_pc_bounds): Update comments.
15208 (dwarf2_record_block_ranges): Likewise.
15209 (read_full_die_1): Change implementation to reprocess attributes that
15210 need str_offsets_base and addr_base.
15211 (partial_die_info::read): Likewise.
15212 (read_attribute_reprocess): New function definition.
15213 (read_attribute_value): Change API to take an additional out parameter,
15214 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
15215 when a non-dwo compile unit has index based attributes.
15216 (read_attribute): Reflect API changes.
15217 (read_addr_index_1): Reflect API changes. Update comments.
15218 (dwarf2_read_addr_index_data): Reflect API changes.
15219 (dwarf2_read_addr_index): Likewise.
15220 (read_str_index): Change API and implementation. This becomes a helper
15221 to be used by the new string index related methods. Update error
15222 message and comments.
15223 (read_dwo_str_index): New function definition.
15224 (read_stub_str_index): Likewise.
15225 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
15226 * symfile.h (dwarf2_debug_sections): Likewise.
15227 * xcoffread.c (dwarf2_debug_sections): Likewise.
15228
0cac9354
SM
152292020-01-13 Simon Marchi <simon.marchi@efficios.com>
15230
15231 * gdbcore.h (struct core_fns) <core_read_registers>: Change
15232 core_reg_sect type to gdb_byte *.
15233 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
15234 * cris-tdep.c (fetch_core_registers): Likewise.
15235 * corelow.c (core_target::get_core_register_section): Change
15236 type of `contents` to gdb::byte_vector.
15237
9a6d629c
AB
152382020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15239
15240 * tui/tui-wingeneral.c (box_win): Position the title in the center
15241 of the border.
15242
d8b2f9e3
SM
152432020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15244
15245 * corelow.c (core_target::get_core_register_section): Use
15246 std::vector instead of alloca.
15247
bb564c58
SM
152482020-01-13 Simon Marchi <simon.marchi@efficios.com>
15249
15250 * warning.m4: Add -Wmissing-declarations to build_warnings.
15251 * configure: Re-generate.
15252
6b366111
SM
152532020-01-13 Simon Marchi <simon.marchi@efficios.com>
15254
15255 * python/python.c (init__gdb_module): Add declaration.
15256
6c265988
SM
152572020-01-13 Simon Marchi <simon.marchi@efficios.com>
15258
15259 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
15260 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
15261 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
15262 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
15263 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
15264 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
15265 * ada-exp.y (_initialize_ada_exp): Add declaration.
15266 * ada-lang.c (_initialize_ada_language): Add declaration.
15267 * ada-tasks.c (_initialize_tasks): Add declaration.
15268 * agent.c (_initialize_agent): Add declaration.
15269 * aix-thread.c (_initialize_aix_thread): Add declaration.
15270 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
15271 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
15272 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
15273 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
15274 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
15275 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
15276 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
15277 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
15278 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
15279 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
15280 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
15281 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
15282 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
15283 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
15284 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
15285 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
15286 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
15287 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
15288 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
15289 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
15290 * annotate.c (_initialize_annotate): Add declaration.
15291 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
15292 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
15293 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
15294 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
15295 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
15296 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
15297 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
15298 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
15299 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
15300 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
15301 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
15302 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
15303 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
15304 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
15305 * auto-load.c (_initialize_auto_load): Add declaration.
15306 * auxv.c (_initialize_auxv): Add declaration.
15307 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
15308 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
15309 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
15310 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
15311 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
15312 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
15313 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
15314 * breakpoint.c (_initialize_breakpoint): Add declaration.
15315 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
15316 * btrace.c (_initialize_btrace): Add declaration.
15317 * charset.c (_initialize_charset): Add declaration.
15318 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
15319 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
15320 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
15321 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
15322 * cli/cli-script.c (_initialize_cli_script): Add declaration.
15323 * cli/cli-style.c (_initialize_cli_style): Add declaration.
15324 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
15325 * coffread.c (_initialize_coffread): Add declaration.
15326 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
15327 * compile/compile.c (_initialize_compile): Add declaration.
15328 * complaints.c (_initialize_complaints): Add declaration.
15329 * completer.c (_initialize_completer): Add declaration.
15330 * copying.c (_initialize_copying): Add declaration.
15331 * corefile.c (_initialize_core): Add declaration.
15332 * corelow.c (_initialize_corelow): Add declaration.
15333 * cp-abi.c (_initialize_cp_abi): Add declaration.
15334 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
15335 * cp-support.c (_initialize_cp_support): Add declaration.
15336 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
15337 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
15338 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
15339 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
15340 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
15341 * ctfread.c (_initialize_ctfread): Add declaration.
15342 * d-lang.c (_initialize_d_language): Add declaration.
15343 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
15344 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
15345 * dbxread.c (_initialize_dbxread): Add declaration.
15346 * dcache.c (_initialize_dcache): Add declaration.
15347 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
15348 * disasm.c (_initialize_disasm): Add declaration.
15349 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
15350 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
15351 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
15352 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
15353 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
15354 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
15355 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
15356 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
15357 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
15358 * elfread.c (_initialize_elfread): Add declaration.
15359 * exec.c (_initialize_exec): Add declaration.
15360 * extension.c (_initialize_extension): Add declaration.
15361 * f-lang.c (_initialize_f_language): Add declaration.
15362 * f-valprint.c (_initialize_f_valprint): Add declaration.
15363 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
15364 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
15365 * filesystem.c (_initialize_filesystem): Add declaration.
15366 * findcmd.c (_initialize_mem_search): Add declaration.
15367 * findvar.c (_initialize_findvar): Add declaration.
15368 * fork-child.c (_initialize_fork_child): Add declaration.
15369 * frame-base.c (_initialize_frame_base): Add declaration.
15370 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
15371 * frame.c (_initialize_frame): Add declaration.
15372 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
15373 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
15374 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
15375 * gcore.c (_initialize_gcore): Add declaration.
15376 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
15377 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
15378 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
15379 * gdbarch.c (_initialize_gdbarch): Add declaration.
15380 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
15381 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
15382 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
15383 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
15384 * go-lang.c (_initialize_go_language): Add declaration.
15385 * go32-nat.c (_initialize_go32_nat): Add declaration.
15386 * guile/guile.c (_initialize_guile): Add declaration.
15387 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
15388 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
15389 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
15390 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
15391 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
15392 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
15393 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
15394 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
15395 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
15396 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
15397 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
15398 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
15399 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
15400 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
15401 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
15402 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
15403 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
15404 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
15405 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
15406 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
15407 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
15408 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
15409 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
15410 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
15411 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
15412 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
15413 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
15414 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
15415 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
15416 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
15417 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
15418 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
15419 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
15420 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
15421 * infcall.c (_initialize_infcall): Add declaration.
15422 * infcmd.c (_initialize_infcmd): Add declaration.
15423 * inflow.c (_initialize_inflow): Add declaration.
15424 * infrun.c (_initialize_infrun): Add declaration.
15425 * interps.c (_initialize_interpreter): Add declaration.
15426 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
15427 * jit.c (_initialize_jit): Add declaration.
15428 * language.c (_initialize_language): Add declaration.
15429 * linux-fork.c (_initialize_linux_fork): Add declaration.
15430 * linux-nat.c (_initialize_linux_nat): Add declaration.
15431 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
15432 * linux-thread-db.c (_initialize_thread_db): Add declaration.
15433 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
15434 * m2-lang.c (_initialize_m2_language): Add declaration.
15435 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
15436 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
15437 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
15438 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
15439 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
15440 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
15441 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
15442 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
15443 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
15444 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
15445 * machoread.c (_initialize_machoread): Add declaration.
15446 * macrocmd.c (_initialize_macrocmd): Add declaration.
15447 * macroscope.c (_initialize_macroscope): Add declaration.
15448 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
15449 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
15450 * maint.c (_initialize_maint_cmds): Add declaration.
15451 * mdebugread.c (_initialize_mdebugread): Add declaration.
15452 * memattr.c (_initialize_mem): Add declaration.
15453 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
15454 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
15455 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
15456 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
15457 * mi/mi-main.c (_initialize_mi_main): Add declaration.
15458 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
15459 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
15460 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
15461 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
15462 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
15463 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
15464 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
15465 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
15466 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
15467 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
15468 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
15469 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
15470 * mipsread.c (_initialize_mipsread): Add declaration.
15471 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
15472 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
15473 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
15474 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
15475 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
15476 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
15477 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
15478 * nto-procfs.c (_initialize_procfs): Add declaration.
15479 * objc-lang.c (_initialize_objc_language): Add declaration.
15480 * observable.c (_initialize_observer): Add declaration.
15481 * opencl-lang.c (_initialize_opencl_language): Add declaration.
15482 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
15483 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
15484 * osabi.c (_initialize_gdb_osabi): Add declaration.
15485 * osdata.c (_initialize_osdata): Add declaration.
15486 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
15487 * parse.c (_initialize_parse): Add declaration.
15488 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
15489 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
15490 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
15491 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
15492 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
15493 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
15494 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
15495 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
15496 * printcmd.c (_initialize_printcmd): Add declaration.
15497 * probe.c (_initialize_probe): Add declaration.
15498 * proc-api.c (_initialize_proc_api): Add declaration.
15499 * proc-events.c (_initialize_proc_events): Add declaration.
15500 * proc-service.c (_initialize_proc_service): Add declaration.
15501 * procfs.c (_initialize_procfs): Add declaration.
15502 * producer.c (_initialize_producer): Add declaration.
15503 * psymtab.c (_initialize_psymtab): Add declaration.
15504 * python/python.c (_initialize_python): Add declaration.
15505 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
15506 * record-btrace.c (_initialize_record_btrace): Add declaration.
15507 * record-full.c (_initialize_record_full): Add declaration.
15508 * record.c (_initialize_record): Add declaration.
15509 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
15510 * regcache.c (_initialize_regcache): Add declaration.
15511 * reggroups.c (_initialize_reggroup): Add declaration.
15512 * remote-notif.c (_initialize_notif): Add declaration.
15513 * remote-sim.c (_initialize_remote_sim): Add declaration.
15514 * remote.c (_initialize_remote): Add declaration.
15515 * reverse.c (_initialize_reverse): Add declaration.
15516 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
15517 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
15518 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
15519 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
15520 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
15521 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
15522 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
15523 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
15524 Add declaration.
15525 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
15526 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
15527 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
15528 * rust-exp.y (_initialize_rust_exp): Add declaration.
15529 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
15530 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
15531 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
15532 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
15533 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
15534 * score-tdep.c (_initialize_score_tdep): Add declaration.
15535 * ser-go32.c (_initialize_ser_dos): Add declaration.
15536 * ser-mingw.c (_initialize_ser_windows): Add declaration.
15537 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
15538 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
15539 * ser-uds.c (_initialize_ser_socket): Add declaration.
15540 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
15541 * serial.c (_initialize_serial): Add declaration.
15542 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
15543 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
15544 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
15545 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
15546 * skip.c (_initialize_step_skip): Add declaration.
15547 * sol-thread.c (_initialize_sol_thread): Add declaration.
15548 * solib-aix.c (_initialize_solib_aix): Add declaration.
15549 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
15550 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
15551 * solib-frv.c (_initialize_frv_solib): Add declaration.
15552 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
15553 * solib-target.c (_initialize_solib_target): Add declaration.
15554 * solib.c (_initialize_solib): Add declaration.
15555 * source-cache.c (_initialize_source_cache): Add declaration.
15556 * source.c (_initialize_source): Add declaration.
15557 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
15558 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
15559 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
15560 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
15561 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
15562 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
15563 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
15564 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
15565 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
15566 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
15567 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
15568 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
15569 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
15570 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
15571 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
15572 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
15573 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
15574 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
15575 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
15576 * stabsread.c (_initialize_stabsread): Add declaration.
15577 * stack.c (_initialize_stack): Add declaration.
15578 * stap-probe.c (_initialize_stap_probe): Add declaration.
15579 * std-regs.c (_initialize_frame_reg): Add declaration.
15580 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
15581 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
15582 * symfile.c (_initialize_symfile): Add declaration.
15583 * symmisc.c (_initialize_symmisc): Add declaration.
15584 * symtab.c (_initialize_symtab): Add declaration.
15585 * target.c (_initialize_target): Add declaration.
15586 * target-connection.c (_initialize_target_connection): Add
15587 declaration.
15588 * target-dcache.c (_initialize_target_dcache): Add declaration.
15589 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
15590 * thread.c (_initialize_thread): Add declaration.
15591 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
15592 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
15593 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
15594 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
15595 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
15596 * tracectf.c (_initialize_ctf): Add declaration.
15597 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
15598 * tracefile.c (_initialize_tracefile): Add declaration.
15599 * tracepoint.c (_initialize_tracepoint): Add declaration.
15600 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
15601 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
15602 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
15603 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
15604 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
15605 * tui/tui-win.c (_initialize_tui_win): Add declaration.
15606 * tui/tui.c (_initialize_tui): Add declaration.
15607 * typeprint.c (_initialize_typeprint): Add declaration.
15608 * ui-style.c (_initialize_ui_style): Add declaration.
15609 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
15610 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
15611 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
15612 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
15613 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
15614 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
15615 * unittests/filtered_iterator-selftests.c
15616 (_initialize_filtered_iterator_selftests): Add declaration.
15617 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
15618 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
15619 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
15620 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
15621 * unittests/main-thread-selftests.c
15622 (_initialize_main_thread_selftests): Add declaration.
15623 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
15624 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
15625 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
15626 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
15627 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
15628 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
15629 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
15630 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
15631 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
15632 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
15633 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
15634 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
15635 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
15636 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
15637 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
15638 declaration.
15639 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
15640 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
15641 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
15642 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
15643 * user-regs.c (_initialize_user_regs): Add declaration.
15644 * utils.c (_initialize_utils): Add declaration.
15645 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
15646 * valops.c (_initialize_valops): Add declaration.
15647 * valprint.c (_initialize_valprint): Add declaration.
15648 * value.c (_initialize_values): Add declaration.
15649 * varobj.c (_initialize_varobj): Add declaration.
15650 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
15651 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
15652 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
15653 * windows-nat.c (_initialize_windows_nat): Add declaration.
15654 (_initialize_check_for_gdb_ini): Add declaration.
15655 (_initialize_loadable): Add declaration.
15656 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
15657 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
15658 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
15659 * xcoffread.c (_initialize_xcoffread): Add declaration.
15660 * xml-support.c (_initialize_xml_support): Add declaration.
15661 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
15662 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
15663 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
15664 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
15665
e2de1eec
SM
156662020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15667
15668 * regformats/regdat.sh: Generate declaration for init function.
15669
e0037b4c
SM
156702020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15671
15672 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
15673 up.
15674 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
15675 close_one_inferior>: New methods.
15676 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
15677 pass down target to find_inferior_pid.
15678 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
15679 Pass down target to find_inferior_ptid.
15680 (gdbsim_target::create_inferior): Pass down target to
15681 add_thread_silent.
15682 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
15683 target down to find_inferior_ptid and switch_to_thread.
15684 (gdbsim_target::close): Update to call close_one_inferior.
15685 (struct resume_data): Remove.
15686 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
15687 directly, rather than through a void pointer.
15688 (gdbsim_target::resume): Update to call resume_one_inferior.
15689
58920b5b
SM
156902020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
15691
15692 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
15693
4ec89149
PA
156942020-01-12 Pedro Alves <palves@redhat.com>
15695
15696 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
15697 directly for the current inferior instead of
15698 discard_all_inferiors.
15699 (discard_all_inferiors): Delete.
15700
7c392d1d
TT
157012020-01-11 Tom Tromey <tom@tromey.com>
15702
15703 * tui/tui-wingeneral.c (box_win): Check cli_styling.
15704 * tui/tui-winsource.c (tui_source_window_base::refill): Use
15705 deprecated_safe_get_selected_frame.
15706
d9ebdab7
TBA
157072020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
15708
15709 * inferior.c (print_inferior): Switch inferior before printing it.
15710
f3c469b9
PA
157112020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
15712 Pedro Alves <palves@redhat.com>
15713
15714 * progspace-and-thread.c (switch_to_program_space_and_thread):
15715 Assert there's an inferior for PSPACE. Use
15716 switch_to_inferior_no_thread to switch the inferior too.
15717 * progspace.c (program_space::~program_space): Call
15718 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
15719 (program_space::free_all_objfiles): Don't call clear_symtab_users
15720 here.
15721 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
15722
65c574f6
PA
157232020-01-10 Pedro Alves <palves@redhat.com>
15724
15725 * NEWS: Mention multi-target debugging, "info connections", and
15726 "add-inferior -no-connection".
15727
2f4fcf00
PA
157282020-01-10 Pedro Alves <palves@redhat.com>
15729
15730 * infrun.c: Include "target-connection.h".
15731 (check_multi_target_resumption): New.
15732 (proceed): Call it.
15733 * target-connection.c (make_target_connection_string): Make
15734 extern.
15735 * target-connection.h (make_target_connection_string): Declare.
15736
121b3efd
PA
157372020-01-10 Pedro Alves <palves@redhat.com>
15738
15739 * Makefile.in (COMMON_SFILES): Add target-connection.c.
15740 * inferior.c (uiout_field_connection): New function.
15741 (print_inferior): Add new "connection-id" column.
15742 (add_inferior_command): Show connection number/string of added
15743 inferior.
15744 * process-stratum-target.h
15745 (process_stratum_target::connection_string): New virtual method.
15746 (process_stratum_target::connection_number): New field.
15747 * remote.c (remote_target::connection_string): New override.
15748 * target-connection.c: New file.
15749 * target-connection.h: New file.
15750 * target.c (decref_target): Remove process_stratum targets from
15751 the connection list.
15752 (target_stack::push): Add process_stratum targets to the
15753 connection list.
15754
4f837581
PA
157552020-01-10 Pedro Alves <palves@redhat.com>
15756
15757 Revert:
15758 2016-04-12 Pedro Alves <palves@redhat.com>
15759 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
15760 Remove references to name.
15761 * serial.h (struct serial) <name>: Delete.
15762
f4ec508e
PA
157632020-01-10 Pedro Alves <palves@redhat.com>
15764
15765 * gdbarch-selftests.c (register_to_value_test): Remove "target
15766 already pushed" check.
15767
5b6d1e4f
PA
157682020-01-10 Pedro Alves <palves@redhat.com>
15769 John Baldwin <jhb@FreeBSD.org>
15770
15771 * aarch64-linux-nat.c
15772 (aarch64_linux_nat_target::thread_architecture): Adjust.
15773 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
15774 (task_command_1): Likewise.
15775 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
15776 (aix_thread_target::wait, aix_thread_target::fetch_registers)
15777 (aix_thread_target::store_registers)
15778 (aix_thread_target::thread_alive): Adjust.
15779 * amd64-fbsd-tdep.c: Include "inferior.h".
15780 (amd64fbsd_get_thread_local_address): Pass down target.
15781 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
15782 thread's gdbarch instead of target_gdbarch.
15783 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
15784 get_last_target_status.
15785 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
15786 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
15787 inferiors.
15788 (update_inserted_breakpoint_locations): Skip if inferiors with no
15789 execution.
15790 (update_global_location_list): When handling moribund locations,
15791 find representative inferior for location's pspace, and use thread
15792 count of its process_stratum target.
15793 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
15794 * bsd-uthread.c (bsd_uthread_target::wait): Use
15795 as_process_stratum_target and adjust thread_change_ptid and
15796 add_thread calls.
15797 (bsd_uthread_target::update_thread_list): Use
15798 as_process_stratum_target and adjust find_thread_ptid,
15799 thread_change_ptid and add_thread calls.
15800 * btrace.c (maint_btrace_packet_history_cmd): Adjust
15801 find_thread_ptid call.
15802 * corelow.c (add_to_thread_list): Adjust add_thread call.
15803 (core_target_open): Adjust add_thread_silent and thread_count
15804 calls.
15805 (core_target::pid_to_str): Adjust find_inferior_ptid call.
15806 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
15807 * event-top.c (async_disconnect): Pop targets from all inferiors.
15808 * exec.c (add_target_sections): Push exec target on all inferiors
15809 sharing the program space.
15810 (remove_target_sections): Remove the exec target from all
15811 inferiors sharing the program space.
15812 (exec_on_vfork): New.
15813 * exec.h (exec_on_vfork): Declare.
15814 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
15815 Pass it down.
15816 (fbsd_nat_target::update_thread_list): Adjust.
15817 (fbsd_nat_target::resume): Adjust.
15818 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
15819 down.
15820 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
15821 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
15822 get_thread_arch_regcache call.
15823 * fork-child.c (gdb_startup_inferior): Pass target down to
15824 startup_inferior and set_executing.
15825 * gdbthread.h (struct process_stratum_target): Forward declare.
15826 (add_thread, add_thread_silent, add_thread_with_info)
15827 (in_thread_list): Add process_stratum_target parameter.
15828 (find_thread_ptid(inferior*, ptid_t)): New overload.
15829 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
15830 parameter.
15831 (all_threads()): Delete overload.
15832 (all_threads, all_non_exited_threads): Add process_stratum_target
15833 parameter.
15834 (all_threads_safe): Use brace initialization.
15835 (thread_count): Add process_stratum_target parameter.
15836 (set_resumed, set_running, set_stop_requested, set_executing)
15837 (threads_are_executing, finish_thread_state): Add
15838 process_stratum_target parameter.
15839 (switch_to_thread): Use is_current_thread.
15840 * i386-fbsd-tdep.c: Include "inferior.h".
15841 (i386fbsd_get_thread_local_address): Pass down target.
15842 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
15843 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
15844 have_inferiors check.
15845 * inf-ptrace.c (inf_ptrace_target::create_inferior)
15846 (inf_ptrace_target::attach): Adjust.
15847 * infcall.c (run_inferior_call): Adjust.
15848 * infcmd.c (run_command_1): Pass target to
15849 scoped_finish_thread_state.
15850 (proceed_thread_callback): Skip inferiors with no execution.
15851 (continue_command): Rename 'all_threads' local to avoid hiding
15852 'all_threads' function. Adjust get_last_target_status call.
15853 (prepare_one_step): Adjust set_running call.
15854 (signal_command): Use user_visible_resume_target. Compare thread
15855 pointers instead of inferior_ptid.
15856 (info_program_command): Adjust to pass down target.
15857 (attach_command): Mark target's 'thread_executing' flag.
15858 (stop_current_target_threads_ns): New, factored out from ...
15859 (interrupt_target_1): ... this. Switch inferior before making
15860 target calls.
15861 * inferior-iter.h
15862 (struct all_inferiors_iterator, struct all_inferiors_range)
15863 (struct all_inferiors_safe_range)
15864 (struct all_non_exited_inferiors_range): Filter on
15865 process_stratum_target too. Remove explicit.
15866 * inferior.c (inferior::inferior): Push dummy target on target
15867 stack.
15868 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
15869 Add process_stratum_target parameter, and pass it down.
15870 (have_live_inferiors): Adjust.
15871 (switch_to_inferior_and_push_target): New.
15872 (add_inferior_command, clone_inferior_command): Handle
15873 "-no-connection" parameter. Use
15874 switch_to_inferior_and_push_target.
15875 (_initialize_inferior): Mention "-no-connection" option in
15876 the help of "add-inferior" and "clone-inferior" commands.
15877 * inferior.h: Include "process-stratum-target.h".
15878 (interrupt_target_1): Use bool.
15879 (struct inferior) <push_target, unpush_target, target_is_pushed,
15880 find_target_beneath, top_target, process_target, target_at,
15881 m_stack>: New.
15882 (discard_all_inferiors): Delete.
15883 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
15884 (all_inferiors, all_non_exited_inferiors): Add
15885 process_stratum_target parameter.
15886 * infrun.c: Include "gdb_select.h" and <unordered_map>.
15887 (target_last_proc_target): New global.
15888 (follow_fork_inferior): Push target on new inferior. Pass target
15889 to add_thread_silent. Call exec_on_vfork. Handle target's
15890 reference count.
15891 (follow_fork): Adjust get_last_target_status call. Also consider
15892 target.
15893 (follow_exec): Push target on new inferior.
15894 (struct execution_control_state) <target>: New field.
15895 (user_visible_resume_target): New.
15896 (do_target_resume): Call target_async.
15897 (resume_1): Set target's threads_executing flag. Consider resume
15898 target.
15899 (commit_resume_all_targets): New.
15900 (proceed): Also consider resume target. Skip threads of inferiors
15901 with no execution. Commit resumtion in all targets.
15902 (start_remote): Pass current inferior to wait_for_inferior.
15903 (infrun_thread_stop_requested): Consider target as well. Pass
15904 thread_info pointer to clear_inline_frame_state instead of ptid.
15905 (infrun_thread_thread_exit): Consider target as well.
15906 (random_pending_event_thread): New inferior parameter. Use it.
15907 (do_target_wait): Rename to ...
15908 (do_target_wait_1): ... this. Add inferior parameter, and pass it
15909 down.
15910 (threads_are_resumed_pending_p, do_target_wait): New.
15911 (prepare_for_detach): Adjust calls.
15912 (wait_for_inferior): New inferior parameter. Handle it. Use
15913 do_target_wait_1 instead of do_target_wait.
15914 (fetch_inferior_event): Adjust. Switch to representative
15915 inferior. Pass target down.
15916 (set_last_target_status): Add process_stratum_target parameter.
15917 Save target in global.
15918 (get_last_target_status): Add process_stratum_target parameter and
15919 handle it.
15920 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
15921 (context_switch): Check inferior_ptid == null_ptid before calling
15922 inferior_thread().
15923 (get_inferior_stop_soon): Pass down target.
15924 (wait_one): Rename to ...
15925 (poll_one_curr_target): ... this.
15926 (struct wait_one_event): New.
15927 (wait_one): New.
15928 (stop_all_threads): Adjust.
15929 (handle_no_resumed, handle_inferior_event): Adjust to consider the
15930 event's target.
15931 (switch_back_to_stepped_thread): Also consider target.
15932 (print_stop_event): Update.
15933 (normal_stop): Update. Also consider the resume target.
15934 * infrun.h (wait_for_inferior): Remove declaration.
15935 (user_visible_resume_target): New declaration.
15936 (get_last_target_status, set_last_target_status): New
15937 process_stratum_target parameter.
15938 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
15939 process_stratum_target parameter, and use it.
15940 (clear_inline_frame_state (thread_info*)): New.
15941 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
15942 process_stratum_target parameter.
15943 (clear_inline_frame_state (thread_info*)): Declare.
15944 * linux-fork.c (delete_checkpoint_command): Pass target down to
15945 find_thread_ptid.
15946 (checkpoint_command): Adjust.
15947 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
15948 instead of just tweaking inferior_ptid.
15949 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
15950 (exit_lwp): Pass target down to find_thread_ptid.
15951 (attach_proc_task_lwp_callback): Pass target down to
15952 add_thread/set_running/set_executing.
15953 (linux_nat_target::attach): Pass target down to
15954 thread_change_ptid.
15955 (get_detach_signal): Pass target down to find_thread_ptid.
15956 Consider last target status's target.
15957 (linux_resume_one_lwp_throw, resume_lwp)
15958 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
15959 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
15960 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
15961 (linux_nat_target::async_wait_fd): New.
15962 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
15963 target down.
15964 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
15965 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
15966 * linux-thread-db.c (struct thread_db_info::process_target): New
15967 field.
15968 (add_thread_db_info): Save target.
15969 (get_thread_db_info): New process_stratum_target parameter. Also
15970 match target.
15971 (delete_thread_db_info): New process_stratum_target parameter.
15972 Also match target.
15973 (thread_from_lwp): Adjust to pass down target.
15974 (thread_db_notice_clone): Pass down target.
15975 (check_thread_db_callback): Pass down target.
15976 (try_thread_db_load_1): Always push the thread_db target.
15977 (try_thread_db_load, record_thread): Pass target down.
15978 (thread_db_target::detach): Pass target down. Always unpush the
15979 thread_db target.
15980 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
15981 target down. Always unpush the thread_db target.
15982 (find_new_threads_callback, thread_db_find_new_threads_2)
15983 (thread_db_target::update_thread_list): Pass target down.
15984 (thread_db_target::pid_to_str): Pass current inferior down.
15985 (thread_db_target::get_thread_local_address): Pass target down.
15986 (thread_db_target::resume, maintenance_check_libthread_db): Pass
15987 target down.
15988 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
15989 * procfs.c (procfs_target::procfs_init_inferior): Declare.
15990 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
15991 (procfs_init_inferior): Rename to ...
15992 (procfs_target::procfs_init_inferior): ... this and adjust.
15993 (procfs_target::create_inferior, procfs_notice_thread)
15994 (procfs_do_thread_registers): Adjust.
15995 * ppc-fbsd-tdep.c: Include "inferior.h".
15996 (ppcfbsd_get_thread_local_address): Pass down target.
15997 * proc-service.c (ps_xfer_memory): Switch current inferior and
15998 program space as well.
15999 (get_ps_regcache): Pass target down.
16000 * process-stratum-target.c
16001 (process_stratum_target::thread_address_space)
16002 (process_stratum_target::thread_architecture): Pass target down.
16003 * process-stratum-target.h
16004 (process_stratum_target::threads_executing): New field.
16005 (as_process_stratum_target): New.
16006 * ravenscar-thread.c
16007 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
16008 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
16009 down.
16010 * record-btrace.c (record_btrace_target::info_record): Adjust.
16011 (record_btrace_target::record_method)
16012 (record_btrace_target::record_is_replaying)
16013 (record_btrace_target::fetch_registers)
16014 (get_thread_current_frame_id, record_btrace_target::resume)
16015 (record_btrace_target::wait, record_btrace_target::stop): Pass
16016 target down.
16017 * record-full.c (record_full_wait_1): Switch to event thread.
16018 Pass target down.
16019 * regcache.c (regcache::regcache)
16020 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
16021 process_stratum_target parameter and handle it.
16022 (current_thread_target): New global.
16023 (get_thread_regcache): Add process_stratum_target parameter and
16024 handle it. Switch inferior before calling target method.
16025 (get_thread_regcache): Pass target down.
16026 (get_thread_regcache_for_ptid): Pass target down.
16027 (registers_changed_ptid): Add process_stratum_target parameter and
16028 handle it.
16029 (registers_changed_thread, registers_changed): Pass target down.
16030 (test_get_thread_arch_aspace_regcache): New.
16031 (current_regcache_test): Define a couple local test_target_ops
16032 instances and use them for testing.
16033 (readwrite_regcache): Pass process_stratum_target parameter.
16034 (cooked_read_test, cooked_write_test): Pass mock_target down.
16035 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
16036 (get_thread_arch_aspace_regcache): Add process_stratum_target
16037 parameter.
16038 (regcache::target): New method.
16039 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
16040 (regcache::registers_changed_ptid): Add process_stratum_target
16041 parameter.
16042 (regcache::m_target): New field.
16043 (registers_changed_ptid): Add process_stratum_target parameter.
16044 * remote.c (remote_state::supports_vCont_probed): New field.
16045 (remote_target::async_wait_fd): New method.
16046 (remote_unpush_and_throw): Add remote_target parameter.
16047 (get_current_remote_target): Adjust.
16048 (remote_target::remote_add_inferior): Push target.
16049 (remote_target::remote_add_thread)
16050 (remote_target::remote_notice_new_inferior)
16051 (get_remote_thread_info): Pass target down.
16052 (remote_target::update_thread_list): Skip threads of inferiors
16053 bound to other targets. (remote_target::close): Don't discard
16054 inferiors. (remote_target::add_current_inferior_and_thread)
16055 (remote_target::process_initial_stop_replies)
16056 (remote_target::start_remote)
16057 (remote_target::remote_serial_quit_handler): Pass down target.
16058 (remote_target::remote_unpush_target): New remote_target
16059 parameter. Unpush the target from all inferiors.
16060 (remote_target::remote_unpush_and_throw): New remote_target
16061 parameter. Pass it down.
16062 (remote_target::open_1): Check whether the current inferior has
16063 execution instead of checking whether any inferior is live. Pass
16064 target down.
16065 (remote_target::remote_detach_1): Pass down target. Use
16066 remote_unpush_target.
16067 (extended_remote_target::attach): Pass down target.
16068 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
16069 (remote_target::append_resumption): Pass down target.
16070 (remote_target::append_pending_thread_resumptions)
16071 (remote_target::remote_resume_with_hc, remote_target::resume)
16072 (remote_target::commit_resume): Pass down target.
16073 (remote_target::remote_stop_ns): Check supports_vCont_probed.
16074 (remote_target::interrupt_query)
16075 (remote_target::remove_new_fork_children)
16076 (remote_target::check_pending_events_prevent_wildcard_vcont)
16077 (remote_target::remote_parse_stop_reply)
16078 (remote_target::process_stop_reply): Pass down target.
16079 (first_remote_resumed_thread): New remote_target parameter. Pass
16080 it down.
16081 (remote_target::wait_as): Pass down target.
16082 (unpush_and_perror): New remote_target parameter. Pass it down.
16083 (remote_target::readchar, remote_target::remote_serial_write)
16084 (remote_target::getpkt_or_notif_sane_1)
16085 (remote_target::kill_new_fork_children, remote_target::kill): Pass
16086 down target.
16087 (remote_target::mourn_inferior): Pass down target. Use
16088 remote_unpush_target.
16089 (remote_target::core_of_thread)
16090 (remote_target::remote_btrace_maybe_reopen): Pass down target.
16091 (remote_target::pid_to_exec_file)
16092 (remote_target::thread_handle_to_thread_info): Pass down target.
16093 (remote_target::async_wait_fd): New.
16094 * riscv-fbsd-tdep.c: Include "inferior.h".
16095 (riscv_fbsd_get_thread_local_address): Pass down target.
16096 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
16097 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
16098 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
16099 Adjust.
16100 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
16101 * solib-svr4.c (enable_break): Pass down target.
16102 * spu-multiarch.c (parse_spufs_run): Pass down target.
16103 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
16104 * target-delegates.c: Regenerate.
16105 * target.c (g_target_stack): Delete.
16106 (current_top_target): Return the current inferior's top target.
16107 (target_has_execution_1): Refer to the passed-in inferior's top
16108 target.
16109 (target_supports_terminal_ours): Check whether the initial
16110 inferior was already created.
16111 (decref_target): New.
16112 (target_stack::push): Incref/decref the target.
16113 (push_target, push_target, unpush_target): Adjust.
16114 (target_stack::unpush): Defref target.
16115 (target_is_pushed): Return bool. Adjust to refer to the current
16116 inferior's target stack.
16117 (dispose_inferior): Delete, and inline parts ...
16118 (target_preopen): ... here. Only dispose of the current inferior.
16119 (target_detach): Hold strong target reference while detaching.
16120 Pass target down.
16121 (target_thread_name): Add assertion.
16122 (target_resume): Pass down target.
16123 (target_ops::beneath, find_target_at): Adjust to refer to the
16124 current inferior's target stack.
16125 (get_dummy_target): New.
16126 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
16127 has a thread running.
16128 (initialize_targets): Rename to ...
16129 (_initialize_target): ... this.
16130 * target.h: Include "gdbsupport/refcounted-object.h".
16131 (struct target_ops): Inherit refcounted_object.
16132 (target_ops::shortname, target_ops::longname): Make const.
16133 (target_ops::async_wait_fd): New method.
16134 (decref_target): Declare.
16135 (struct target_ops_ref_policy): New.
16136 (target_ops_ref): New typedef.
16137 (get_dummy_target): Declare function.
16138 (target_is_pushed): Return bool.
16139 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
16140 (all_matching_threads_iterator::all_matching_threads_iterator):
16141 Handle filter target.
16142 * thread-iter.h (struct all_matching_threads_iterator, struct
16143 all_matching_threads_range, class all_non_exited_threads_range):
16144 Filter by target too. Remove explicit.
16145 * thread.c (threads_executing): Delete.
16146 (inferior_thread): Pass down current inferior.
16147 (clear_thread_inferior_resources): Pass down thread pointer
16148 instead of ptid_t.
16149 (add_thread_silent, add_thread_with_info, add_thread): Add
16150 process_stratum_target parameter. Use it for thread and inferior
16151 searches.
16152 (is_current_thread): New.
16153 (thread_info::deletable): Use it.
16154 (find_thread_ptid, thread_count, in_thread_list)
16155 (thread_change_ptid, set_resumed, set_running): New
16156 process_stratum_target parameter. Pass it down.
16157 (set_executing): New process_stratum_target parameter. Pass it
16158 down. Adjust reference to 'threads_executing'.
16159 (threads_are_executing): New process_stratum_target parameter.
16160 Adjust reference to 'threads_executing'.
16161 (set_stop_requested, finish_thread_state): New
16162 process_stratum_target parameter. Pass it down.
16163 (switch_to_thread): Also match inferior.
16164 (switch_to_thread): New process_stratum_target parameter. Pass it
16165 down.
16166 (update_threads_executing): Reimplement.
16167 * top.c (quit_force): Pop targets from all inferior.
16168 (gdb_init): Don't call initialize_targets.
16169 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
16170 Declare.
16171 (windows_add_thread, windows_delete_thread): Adjust.
16172 (get_windows_debug_event): Rename to ...
16173 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
16174 * tracefile-tfile.c (tfile_target_open): Pass down target.
16175 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
16176 Forward declare.
16177 (switch_to_thread): Add process_stratum_target parameter.
16178 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
16179 parameter. Use it.
16180 (mi_on_resume): Pass target down.
16181 * nat/fork-inferior.c (startup_inferior): Add
16182 process_stratum_target parameter. Pass it down.
16183 * nat/fork-inferior.h (startup_inferior): Add
16184 process_stratum_target parameter.
16185 * python/py-threadevent.c (py_get_event_thread): Pass target down.
16186
75c6c844
PA
161872020-01-10 Pedro Alves <palves@redhat.com>
16188
16189 * remote.c (remote_target::start_remote): Don't set inferior_ptid
16190 directly. Instead find the first thread in the thread list and
16191 use switch_to_thread.
16192
78f2c40a
PA
161932020-01-10 Pedro Alves <palves@redhat.com>
16194
16195 * remote.c (remote_target::remote_add_inferior): Don't bind a
16196 process to the current inferior if the current inferior is already
16197 bound to a process.
16198
e7af6c70
TBA
161992020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16200 Pedro Alves <palves@redhat.com>
16201
16202 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
16203 If no process is specified, return null_ptid instead of
16204 inferior_ptid.
16205 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
16206 TARGET_WAITKIND_SIGNALLED with no pid.
16207
31ba933e
PA
162082020-01-10 Pedro Alves <palves@redhat.com>
16209
16210 * remote.c (first_remote_resumed_thread): New.
16211 (remote_target::wait_as): Use it as default event_ptid instead of
16212 inferior_ptid.
16213
735fc2ca
PA
162142020-01-10 Pedro Alves <palves@redhat.com>
16215
16216 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
16217
c17e02e1
PA
162182020-01-10 Pedro Alves <palves@redhat.com>
16219
16220 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
16221 not -1.
16222
ab1ddbcf
PA
162232020-01-10 Pedro Alves <palves@redhat.com>
16224
16225 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
16226 ptid to get_last_target_status.
16227 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
16228 ptid to get_last_target_status.
16229 * infcmd.c (continue_command): Don't pass a target_waitstatus to
16230 get_last_target_status.
16231 (info_program_command): Don't pass a target_waitstatus to
16232 get_last_target_status.
16233 * infrun.c (init_wait_for_inferior): Use
16234 nullify_last_target_wait_ptid.
16235 (get_last_target_status): Handle nullptr arguments.
16236 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
16237 (print_stop_event): Don't pass a ptid to get_last_target_status.
16238 (normal_stop): Don't pass a ptid to get_last_target_status.
16239 * infrun.h (get_last_target_status, set_last_target_status): Move
16240 comments here and update.
16241 (nullify_last_target_wait_ptid): Declare.
16242 * linux-fork.c (fork_load_infrun_state): Remove local extern
16243 declaration of nullify_last_target_wait_ptid.
16244 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
16245 to get_last_target_status.
16246
f3f8ece4
PA
162472020-01-10 Pedro Alves <palves@redhat.com>
16248
16249 * gdbthread.h (scoped_restore_current_thread)
16250 <dont_restore, restore, m_dont_restore>: Declare.
16251 * thread.c (thread_alive): Add assertion. Return bool.
16252 (switch_to_thread_if_alive): New.
16253 (prune_threads): Switch inferior/thread.
16254 (print_thread_info_1): Switch thread before calling target methods.
16255 (scoped_restore_current_thread::restore): New, factored out from
16256 ...
16257 (scoped_restore_current_thread::~scoped_restore_current_thread):
16258 ... this.
16259 (scoped_restore_current_thread::scoped_restore_current_thread):
16260 Add assertion.
16261 (thread_apply_all_command, thread_select): Use
16262 switch_to_thread_if_alive.
16263 * infrun.c (proceed, restart_threads, handle_signal_stop)
16264 (switch_back_to_stepped_thread): Switch current thread before
16265 calling target methods.
16266
db2d40f7
PA
162672020-01-10 Pedro Alves <palves@redhat.com>
16268
16269 * inferior.c (switch_to_inferior_no_thread): New function,
16270 factored out from ...
16271 (inferior_command): ... here.
16272 * inferior.h (switch_to_inferior_no_thread): Declare.
16273 * mi/mi-main.c (run_one_inferior): Use
16274 switch_to_inferior_no_thread.
16275
bd420a2d
PA
162762020-01-10 Pedro Alves <palves@redhat.com>
16277
16278 * infcmd.c (kill_command): Remove dead code.
16279
ddf5db90
PA
162802020-01-10 Pedro Alves <palves@redhat.com>
16281
16282 * remote.c (remote_target::mourn_inferior): No longer check
16283 whether the target is running.
16284
5018ce90
PA
162852020-01-10 Pedro Alves <palves@redhat.com>
16286
16287 * corelow.c (core_target::has_execution): Change parameter type to
16288 inferior pointer.
16289 * inferior.c (number_of_live_inferiors): Use
16290 inferior::has_execution instead of target_has_execution_1.
16291 * inferior.h (inferior::has_execution): New.
16292 * linux-thread-db.c (thread_db_target::update_thread_list): Use
16293 inferior::has_execution instead of target_has_execution_1.
16294 * process-stratum-target.c
16295 (process_stratum_target::has_execution): Change parameter type to
16296 inferior pointer. Check the inferior's PID instead of
16297 inferior_ptid.
16298 * process-stratum-target.h
16299 (process_stratum_target::has_execution): Change parameter type to
16300 inferior pointer.
16301 * record-full.c (record_full_core_target::has_execution): Change
16302 parameter type to inferior pointer.
16303 * target.c (target_has_execution_1): Change parameter type to
16304 inferior pointer.
16305 (target_has_execution_current): Adjust.
16306 * target.h (target_ops::has_execution): Change parameter type to
16307 inferior pointer.
16308 (target_has_execution_1): Change parameter type to inferior
16309 pointer. Change return type to bool.
16310 * tracefile.h (tracefile_target::has_execution): Change parameter
16311 type to inferior pointer.
16312
74375d18
PA
163132020-01-10 Pedro Alves <palves@redhat.com>
16314
16315 * exceptions.c (print_flush): Remove current_top_target() check.
16316
acdf84a6
PA
163172020-01-10 Pedro Alves <palves@redhat.com>
16318
16319 * remote.c (show_remote_exec_file): Show the current inferior's
16320 exec-file instead of the command variable's value.
16321
ec506636
PA
163222020-01-10 Pedro Alves <palves@redhat.com>
16323
16324 * record-full.c (record_full_resume_ptid): New global.
16325 (record_full_target::resume): Set it.
16326 (record_full_wait_1): Use record_full_resume_ptid instead of
16327 inferior_ptid.
16328
873657b9
PA
163292020-01-10 Pedro Alves <palves@redhat.com>
16330
16331 * gdbthread.h (scoped_restore_current_thread)
16332 <dont_restore, restore, m_dont_restore>: Declare.
16333 * thread.c (thread_alive): Add assertion. Return bool.
16334 (switch_to_thread_if_alive): New.
16335 (prune_threads): Switch inferior/thread.
16336 (print_thread_info_1): Switch thread before calling target methods.
16337 (scoped_restore_current_thread::restore): New, factored out from
16338 ...
16339 (scoped_restore_current_thread::~scoped_restore_current_thread):
16340 ... this.
16341 (scoped_restore_current_thread::scoped_restore_current_thread):
16342 Add assertion.
16343 (thread_apply_all_command, thread_select): Use
16344 switch_to_thread_if_alive.
16345
7f0ae84c
GB
163462020-01-10 George Barrett <bob@bob131.so>
16347
16348 * stap-probe.c (stap_modify_semaphore): Don't check for null
16349 semaphores.
16350 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
16351 for null semaphores.
16352
f5a7c406
AB
163532020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16354
16355 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
16356 all source windows, and maintain horizontal scroll status while
16357 doing so.
16358
9ae6bf64
TT
163592020-01-09 Tom Tromey <tom@tromey.com>
16360
16361 PR tui/18932:
16362 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
16363 update_source_window, not print_source_lines.
16364
b2efe70c
AB
163652020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16366
16367 * tui/tui.c (tui_enable): Register tui hooks after calling
16368 tui_display_main.
16369
5f23a082
CB
163702020-01-09 Christian Biesinger <cbiesinger@google.com>
16371
16372 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
16373
3061113b
SM
163742020-01-08 Simon Marchi <simon.marchi@efficios.com>
16375
16376 * thread.c (print_thread_info_1): Fix indentation.
16377
57d75002
CB
163782020-01-09 Christian Biesinger <cbiesinger@google.com>
16379
16380 * symtab.c (general_symbol_info::compute_and_set_names): Move the
16381 unique_xmalloc_ptr outside the if to always free the demangled name.
16382
6a053cb1
TT
163832020-01-08 Tom Tromey <tromey@adacore.com>
16384
16385 * xcoffread.c (enter_line_range, read_xcoff_symtab)
16386 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
16387 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
16388 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
16389 Remove.
16390 (section_offsets): New typedef.
16391 * symtab.c (fixup_section, get_msymbol_address): Update.
16392 * symmisc.c (dump_msymbols): Update.
16393 * symfile.h (relative_addr_info_to_section_offsets)
16394 (symfile_map_offsets_to_segments): Update.
16395 * symfile.c (build_section_addr_info_from_objfile)
16396 (init_objfile_sect_indices): Update.
16397 (struct place_section_arg): Change type of "offsets".
16398 (place_section): Update.
16399 (relative_addr_info_to_section_offsets): Change type of
16400 "section_offsets". Remove "num_sections" parameter.
16401 (default_symfile_offsets, syms_from_objfile_1)
16402 (set_objfile_default_section_offset): Update.
16403 (reread_symbols): No need to preserve section offsets by hand.
16404 (symfile_map_offsets_to_segments): Change type of "offsets".
16405 * stap-probe.c (relocate_address): Update.
16406 * stabsread.h (process_one_symbol): Update.
16407 * solib-target.c (struct lm_info_target) <offsets>: Change type.
16408 (solib_target_relocate_section_addresses): Update.
16409 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
16410 Update.
16411 * solib-frv.c (frv_relocate_main_executable): Update.
16412 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
16413 * solib-aix.c (solib_aix_get_section_offsets): Change return
16414 type.
16415 (solib_aix_solib_create_inferior_hook): Update.
16416 * remote.c (remote_target::get_offsets): Update.
16417 * psymtab.c (find_pc_sect_psymtab): Update.
16418 * psympriv.h (struct partial_symbol) <address, text_low,
16419 text_high>: Update.
16420 * objfiles.h (obj_section_offset): Update.
16421 (struct objfile) <section_offsets>: Change type.
16422 <num_sections>: Remove.
16423 (objfile_relocate): Update.
16424 * objfiles.c (entry_point_address_query): Update
16425 (relocate_one_symbol): Change type of "section_offsets".
16426 (objfile_relocate1, objfile_relocate1): Change type of
16427 "new_offsets".
16428 (objfile_rebase1): Update.
16429 * mipsread.c (mipscoff_symfile_read): Update.
16430 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
16431 parameter.
16432 * mdebugread.c (parse_symbol): Change type of "section_offsets".
16433 (parse_external, psymtab_to_symtab_1): Update.
16434 * machoread.c (macho_symfile_offsets): Update.
16435 * ia64-tdep.c (ia64_find_unwind_table): Update.
16436 * hppa-tdep.c (read_unwind_info): Update.
16437 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
16438 * dwarf2read.c (create_addrmap_from_index)
16439 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
16440 (process_psymtab_comp_unit_reader, add_partial_symbol)
16441 (add_partial_subprogram, process_full_comp_unit)
16442 (read_file_scope, read_func_scope, read_lexical_block_scope)
16443 (read_call_site_scope, dwarf2_rnglists_process)
16444 (dwarf2_ranges_process, dwarf2_ranges_read)
16445 (dwarf_decode_lines_1, var_decode_location, new_symbol)
16446 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
16447 Update.
16448 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
16449 Update.
16450 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
16451 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
16452 (process_one_symbol): Change type of "section_offsets".
16453 * ctfread.c (get_objfile_text_range): Update.
16454 * coffread.c (coff_symtab_read, enter_linenos)
16455 (process_coff_symbol): Update.
16456 * coff-pe-read.c (add_pe_forwarded_sym): Update.
16457 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
16458
456e800a
TT
164592020-01-08 Tom Tromey <tromey@adacore.com>
16460
16461 * dwarf2read.c (parse_macro_definition): Use std::string.
16462 (parse_macro_definition): Likewise.
16463
6dfa2fc2
TT
164642020-01-08 Tom Tromey <tromey@adacore.com>
16465
16466 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
16467 (ATTR_ALLOC_CHUNK): Remove.
16468
421d1616
TT
164692020-01-08 Tom Tromey <tromey@adacore.com>
16470
16471 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
16472
43816ebc
TT
164732020-01-08 Tom Tromey <tromey@adacore.com>
16474
16475 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
16476 (dwarf2_compute_name, open_dwo_file): Likewise.
16477 (process_enumeration_scope): Use std::vector.
16478 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
16479 (partial_die_info::fixup, dwarf2_start_subfile)
16480 (guess_full_die_structure_name, dwarf2_name): Likewise.
16481 (determine_prefix): Update.
16482 (guess_full_die_structure_name): Make return type const.
16483 (partial_die_full_name): Return unique_xmalloc_ptr.
16484 (DW_FIELD_ALLOC_CHUNK): Remove.
16485
4212d509
TT
164862020-01-07 Tom Tromey <tromey@adacore.com>
16487
16488 PR build/24937:
16489 * stap-probe.c (class stap_static_probe_ops): Add constructor.
16490
06a6207a
JT
164912020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
16492
16493 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
16494
153d79c4
AB
164952020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
16496
16497 * stack.c (print_frame_info): Move disassemble_next_line code
16498 inside source_print block.
16499
66182876
EZ
165002020-01-06 Eli Zaretskii <eliz@gnu.org>
16501
16502 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
16503 gdb/signals.h, as we are now using native signal symbols.
16504
cbfa8581
SV
165052020-01-06 Shahab Vahedi <shahab@synopsys.com>
16506
16507 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
16508 overflow by an early check of content vs threshold.
aac66a4c 16509 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
16510 Likewise.
16511
3f602821
EZ
165122020-01-06 Eli Zaretskii <eliz@gnu.org>
16513
16514 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
16515
a08c904d
JT
165162020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
16517
16518 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
16519 export table if no section contains it's RVA.
16520
89a65580
EZ
165212020-01-06 Eli Zaretskii <eliz@gnu.org>
16522
16523 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
16524
8b7fcda2
HD
165252020-01-06 Hannes Domani <ssbssa@yahoo.de>
16526
16527 * source.c (print_source_lines_base): Set last_line_listed.
16528
a61b4f69
SV
165292020-01-06 Shahab Vahedi <shahab@synopsys.com>
16530
16531 * tui/tui-disasm.c: Remove trailing spaces.
16532
559e7e50
EZ
165332020-01-06 Eli Zaretskii <eliz@gnu.org>
16534 Pedro Alves <palves@redhat.com>
16535
16536 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
16537 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
16538 (windows_gdb_signal_to_target): New function, uses the above
16539 enumeration to convert GDB internal signal codes to equivalent
16540 Windows codes.
16541 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
16542 * windows-nat.c: Include "gdb_wait.h".
16543 (get_windows_debug_event): Extract the fatal exception from the
16544 exit status and convert to the equivalent Posix signal number.
16545 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
16546 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
16547 * gdbsupport/gdb_wait.c: New file, implements
16548 windows_status_to_termsig.
16549 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
16550 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
16551
f2302a34
AB
165522020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
16553
16554 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
16555 show_layout.
16556
6a5206eb
LM
165572020-01-05 Luis Machado <luis.machado@linaro.org>
16558
16559 * aarch64-linux-nat.c
16560 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
16561 and bfd_mach_aarch64.
16562
6ec1d75e
PW
165632020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16564
16565 * ui-file.c (stdio_file::can_emit_style_escape)
16566 (tee_file::can_emit_style_escape): Ensure style is used also on
16567 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
16568 to gdb_stdout.
16569 * main.c (set_gdb_data_directory): Use file style to output the
16570 warning that the given pathname is not a directory.
16571 * top.c (show_history_filename, gdb_safe_append_history)
16572 (show_gdb_datadir): Use file style.
16573
44f81a76
HD
165742020-01-03 Hannes Domani <ssbssa@yahoo.de>
16575
16576 * solib-target.c (struct lm_info_target):
16577 Change offsets to be a unique_xmalloc_ptr.
16578 (solib_target_relocate_section_addresses): Update.
16579
25057eb0
HD
165802020-01-03 Hannes Domani <ssbssa@yahoo.de>
16581
16582 * windows-nat.c (windows_clear_solib): Free so_list linked list.
16583
6e2118f5
BE
165842020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
16585
16586 * MAINTAINERS (Write After Approval): Add myself.
16587
8133c7dc
LM
165882020-01-02 Luis Machado <luis.machado@linaro.org>
16589
16590 * proc-service.c (get_ps_regcache): Remove reference to obsolete
16591 Cell BE architecture.
16592 * target.h (struct target_ops) <thread_architecture>: Likewise.
16593
48189bec
HD
165942020-01-01 Hannes Domani <ssbssa@yahoo.de>
16595
16596 * Makefile.in: Use INSTALL_PROGRAM_ENV.
16597
ead1063b
HD
165982020-01-01 Hannes Domani <ssbssa@yahoo.de>
16599
16600 * MAINTAINERS (Write After Approval): Add myself.
16601
e5d78223
JB
166022020-01-01 Joel Brobecker <brobecker@adacore.com>
16603
16604 * gdbarch.sh: Update copyright year range of generated files.
16605
b811d2c2
JB
166062020-01-01 Joel Brobecker <brobecker@adacore.com>
16607
16608 Update copyright year range in all GDB files.
16609
5f4def5c
JB
166102020-01-01 Joel Brobecker <brobecker@adacore.com>
16611
16612 * copyright.py: Convert to Python 3.
16613
51fd4002
JB
166142020-01-01 Joel Brobecker <brobecker@adacore.com>
16615
16616 * copyright.py: Adapt after move of gnulib directory from gdb
16617 directory to toplevel directory.
16618
5fb651f2
JB
166192020-01-01 Joel Brobecker <brobecker@adacore.com>
16620
16621 * copyright.py (main): Exit if run from the wrong directory.
16622
5dd8bf88
JB
166232020-01-01 Joel Brobecker <brobecker@adacore.com>
16624
16625 * top.c (print_gdb_version): Change copyright year to 2020.
16626
9f71dacb 166272020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 16628
9f71dacb 16629 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 16630
9f71dacb 16631For older changes see ChangeLog-2019.
c906108c
SS
16632\f
16633Local Variables:
16634mode: change-log
16635left-margin: 8
16636fill-column: 74
16637version-control: never
57da7796 16638coding: utf-8
c906108c 16639End:
This page took 3.123807 seconds and 4 git commands to generate.