]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Resolve dynamic type in ada_value_struct_elt
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
24aa1b02
TT
12020-11-04 Tom Tromey <tromey@adacore.com>
2
3 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
4
c9a28cbe
TT
52020-11-04 Tom Tromey <tromey@adacore.com>
6
7 * ada-lang.c (ada_is_any_packed_array_type): New function.
8 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
9
57567375
TT
102020-11-04 Tom Tromey <tromey@adacore.com>
11
12 * dwarf2/read.c (recognize_bound_expression)
13 (quirk_ada_thick_pointer): New functions.
14 (read_array_type): Call quirk_ada_thick_pointer.
15 (set_die_type): Add "skip_data_location" parameter.
16 (quirk_ada_thick_pointer): New function.
17 (process_structure_scope): Call quirk_ada_thick_pointer.
18 * ada-lang.c (ada_is_unconstrained_packed_array_type)
19 (decode_packed_array_bitsize): Handle thick pointers without
20 parallel types.
21 (ada_is_gnat_encoded_packed_array_type): Rename from
22 ada_is_packed_array_type.
23 (ada_is_constrained_packed_array_type): Update.
24 * ada-valprint.c (ada_val_print_gnat_array): Remove.
25 (ada_value_print_1): Use ada_get_decoded_value.
26
a7400e44
TT
272020-11-04 Tom Tromey <tromey@adacore.com>
28
29 * ada-lang.c (recursively_update_array_bitsize): New function.
30 (decode_constrained_packed_array_type): Call it.
31
75fd6a26
TT
322020-11-04 Tom Tromey <tromey@adacore.com>
33
34 * ada-lang.c (to_fixed_array_type): Error if
35 decode_constrained_packed_array_type returns NULL.
36
93f9561e
TT
372020-11-04 Tom Tromey <tromey@adacore.com>
38
39 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
40
257e02d8
TT
412020-11-02 Tom Tromey <tromey@adacore.com>
42
43 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
44 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
45 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
46 * amd64-ravenscar-thread.c: New file.
47 * amd64-ravenscar-thread.h: New file.
48 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
49 * configure.tgt (amd64_tobjs): Add ravenscar objects.
50
74d877e5
AB
512020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
52
53 * main.c (execute_cmdargs): New function.
54 (captured_main_1): Make use of execute_cmdargs.
55
64aaad63
AB
562020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
57
58 * NEWS: Mention changes to config file search path.
59 * main.c
60
5b3d3560
TT
612020-11-02 Tom Tromey <tromey@adacore.com>
62
63 * python/python.c: Consolidate two HAVE_PYTHON blocks.
64 (python_GdbModuleDef): Move earlier. Now static.
65 (do_start_initialization): Consolidate some IS_PY3K blocks.
66
dda83cd7
SM
672020-11-02 Simon Marchi <simon.marchi@efficios.com>
68
69 * aarch64-linux-tdep.c: Fix indentation.
70 * aarch64-ravenscar-thread.c: Fix indentation.
71 * aarch64-tdep.c: Fix indentation.
72 * aarch64-tdep.h: Fix indentation.
73 * ada-lang.c: Fix indentation.
74 * ada-lang.h: Fix indentation.
75 * ada-tasks.c: Fix indentation.
76 * ada-typeprint.c: Fix indentation.
77 * ada-valprint.c: Fix indentation.
78 * ada-varobj.c: Fix indentation.
79 * addrmap.c: Fix indentation.
80 * addrmap.h: Fix indentation.
81 * agent.c: Fix indentation.
82 * aix-thread.c: Fix indentation.
83 * alpha-bsd-nat.c: Fix indentation.
84 * alpha-linux-tdep.c: Fix indentation.
85 * alpha-mdebug-tdep.c: Fix indentation.
86 * alpha-nbsd-tdep.c: Fix indentation.
87 * alpha-obsd-tdep.c: Fix indentation.
88 * alpha-tdep.c: Fix indentation.
89 * amd64-bsd-nat.c: Fix indentation.
90 * amd64-darwin-tdep.c: Fix indentation.
91 * amd64-linux-nat.c: Fix indentation.
92 * amd64-linux-tdep.c: Fix indentation.
93 * amd64-nat.c: Fix indentation.
94 * amd64-obsd-tdep.c: Fix indentation.
95 * amd64-tdep.c: Fix indentation.
96 * amd64-windows-tdep.c: Fix indentation.
97 * annotate.c: Fix indentation.
98 * arc-tdep.c: Fix indentation.
99 * arch-utils.c: Fix indentation.
100 * arch/arm-get-next-pcs.c: Fix indentation.
101 * arch/arm.c: Fix indentation.
102 * arm-linux-nat.c: Fix indentation.
103 * arm-linux-tdep.c: Fix indentation.
104 * arm-nbsd-tdep.c: Fix indentation.
105 * arm-pikeos-tdep.c: Fix indentation.
106 * arm-tdep.c: Fix indentation.
107 * arm-tdep.h: Fix indentation.
108 * arm-wince-tdep.c: Fix indentation.
109 * auto-load.c: Fix indentation.
110 * auxv.c: Fix indentation.
111 * avr-tdep.c: Fix indentation.
112 * ax-gdb.c: Fix indentation.
113 * ax-general.c: Fix indentation.
114 * bfin-linux-tdep.c: Fix indentation.
115 * block.c: Fix indentation.
116 * block.h: Fix indentation.
117 * blockframe.c: Fix indentation.
118 * bpf-tdep.c: Fix indentation.
119 * break-catch-sig.c: Fix indentation.
120 * break-catch-syscall.c: Fix indentation.
121 * break-catch-throw.c: Fix indentation.
122 * breakpoint.c: Fix indentation.
123 * breakpoint.h: Fix indentation.
124 * bsd-uthread.c: Fix indentation.
125 * btrace.c: Fix indentation.
126 * build-id.c: Fix indentation.
127 * buildsym-legacy.h: Fix indentation.
128 * buildsym.c: Fix indentation.
129 * c-typeprint.c: Fix indentation.
130 * c-valprint.c: Fix indentation.
131 * c-varobj.c: Fix indentation.
132 * charset.c: Fix indentation.
133 * cli/cli-cmds.c: Fix indentation.
134 * cli/cli-decode.c: Fix indentation.
135 * cli/cli-decode.h: Fix indentation.
136 * cli/cli-script.c: Fix indentation.
137 * cli/cli-setshow.c: Fix indentation.
138 * coff-pe-read.c: Fix indentation.
139 * coffread.c: Fix indentation.
140 * compile/compile-cplus-types.c: Fix indentation.
141 * compile/compile-object-load.c: Fix indentation.
142 * compile/compile-object-run.c: Fix indentation.
143 * completer.c: Fix indentation.
144 * corefile.c: Fix indentation.
145 * corelow.c: Fix indentation.
146 * cp-abi.h: Fix indentation.
147 * cp-namespace.c: Fix indentation.
148 * cp-support.c: Fix indentation.
149 * cp-valprint.c: Fix indentation.
150 * cris-linux-tdep.c: Fix indentation.
151 * cris-tdep.c: Fix indentation.
152 * darwin-nat-info.c: Fix indentation.
153 * darwin-nat.c: Fix indentation.
154 * darwin-nat.h: Fix indentation.
155 * dbxread.c: Fix indentation.
156 * dcache.c: Fix indentation.
157 * disasm.c: Fix indentation.
158 * dtrace-probe.c: Fix indentation.
159 * dwarf2/abbrev.c: Fix indentation.
160 * dwarf2/attribute.c: Fix indentation.
161 * dwarf2/expr.c: Fix indentation.
162 * dwarf2/frame.c: Fix indentation.
163 * dwarf2/index-cache.c: Fix indentation.
164 * dwarf2/index-write.c: Fix indentation.
165 * dwarf2/line-header.c: Fix indentation.
166 * dwarf2/loc.c: Fix indentation.
167 * dwarf2/macro.c: Fix indentation.
168 * dwarf2/read.c: Fix indentation.
169 * dwarf2/read.h: Fix indentation.
170 * elfread.c: Fix indentation.
171 * eval.c: Fix indentation.
172 * event-top.c: Fix indentation.
173 * exec.c: Fix indentation.
174 * exec.h: Fix indentation.
175 * expprint.c: Fix indentation.
176 * f-lang.c: Fix indentation.
177 * f-typeprint.c: Fix indentation.
178 * f-valprint.c: Fix indentation.
179 * fbsd-nat.c: Fix indentation.
180 * fbsd-tdep.c: Fix indentation.
181 * findvar.c: Fix indentation.
182 * fork-child.c: Fix indentation.
183 * frame-unwind.c: Fix indentation.
184 * frame-unwind.h: Fix indentation.
185 * frame.c: Fix indentation.
186 * frv-linux-tdep.c: Fix indentation.
187 * frv-tdep.c: Fix indentation.
188 * frv-tdep.h: Fix indentation.
189 * ft32-tdep.c: Fix indentation.
190 * gcore.c: Fix indentation.
191 * gdb_bfd.c: Fix indentation.
192 * gdbarch.sh: Fix indentation.
193 * gdbarch.c: Re-generate
194 * gdbarch.h: Re-generate.
195 * gdbcore.h: Fix indentation.
196 * gdbthread.h: Fix indentation.
197 * gdbtypes.c: Fix indentation.
198 * gdbtypes.h: Fix indentation.
199 * glibc-tdep.c: Fix indentation.
200 * gnu-nat.c: Fix indentation.
201 * gnu-nat.h: Fix indentation.
202 * gnu-v2-abi.c: Fix indentation.
203 * gnu-v3-abi.c: Fix indentation.
204 * go32-nat.c: Fix indentation.
205 * guile/guile-internal.h: Fix indentation.
206 * guile/scm-cmd.c: Fix indentation.
207 * guile/scm-frame.c: Fix indentation.
208 * guile/scm-iterator.c: Fix indentation.
209 * guile/scm-math.c: Fix indentation.
210 * guile/scm-ports.c: Fix indentation.
211 * guile/scm-pretty-print.c: Fix indentation.
212 * guile/scm-value.c: Fix indentation.
213 * h8300-tdep.c: Fix indentation.
214 * hppa-linux-nat.c: Fix indentation.
215 * hppa-linux-tdep.c: Fix indentation.
216 * hppa-nbsd-nat.c: Fix indentation.
217 * hppa-nbsd-tdep.c: Fix indentation.
218 * hppa-obsd-nat.c: Fix indentation.
219 * hppa-tdep.c: Fix indentation.
220 * hppa-tdep.h: Fix indentation.
221 * i386-bsd-nat.c: Fix indentation.
222 * i386-darwin-nat.c: Fix indentation.
223 * i386-darwin-tdep.c: Fix indentation.
224 * i386-dicos-tdep.c: Fix indentation.
225 * i386-gnu-nat.c: Fix indentation.
226 * i386-linux-nat.c: Fix indentation.
227 * i386-linux-tdep.c: Fix indentation.
228 * i386-nto-tdep.c: Fix indentation.
229 * i386-obsd-tdep.c: Fix indentation.
230 * i386-sol2-nat.c: Fix indentation.
231 * i386-tdep.c: Fix indentation.
232 * i386-tdep.h: Fix indentation.
233 * i386-windows-tdep.c: Fix indentation.
234 * i387-tdep.c: Fix indentation.
235 * i387-tdep.h: Fix indentation.
236 * ia64-libunwind-tdep.c: Fix indentation.
237 * ia64-libunwind-tdep.h: Fix indentation.
238 * ia64-linux-nat.c: Fix indentation.
239 * ia64-linux-tdep.c: Fix indentation.
240 * ia64-tdep.c: Fix indentation.
241 * ia64-tdep.h: Fix indentation.
242 * ia64-vms-tdep.c: Fix indentation.
243 * infcall.c: Fix indentation.
244 * infcmd.c: Fix indentation.
245 * inferior.c: Fix indentation.
246 * infrun.c: Fix indentation.
247 * iq2000-tdep.c: Fix indentation.
248 * language.c: Fix indentation.
249 * linespec.c: Fix indentation.
250 * linux-fork.c: Fix indentation.
251 * linux-nat.c: Fix indentation.
252 * linux-tdep.c: Fix indentation.
253 * linux-thread-db.c: Fix indentation.
254 * lm32-tdep.c: Fix indentation.
255 * m2-lang.c: Fix indentation.
256 * m2-typeprint.c: Fix indentation.
257 * m2-valprint.c: Fix indentation.
258 * m32c-tdep.c: Fix indentation.
259 * m32r-linux-tdep.c: Fix indentation.
260 * m32r-tdep.c: Fix indentation.
261 * m68hc11-tdep.c: Fix indentation.
262 * m68k-bsd-nat.c: Fix indentation.
263 * m68k-linux-nat.c: Fix indentation.
264 * m68k-linux-tdep.c: Fix indentation.
265 * m68k-tdep.c: Fix indentation.
266 * machoread.c: Fix indentation.
267 * macrocmd.c: Fix indentation.
268 * macroexp.c: Fix indentation.
269 * macroscope.c: Fix indentation.
270 * macrotab.c: Fix indentation.
271 * macrotab.h: Fix indentation.
272 * main.c: Fix indentation.
273 * mdebugread.c: Fix indentation.
274 * mep-tdep.c: Fix indentation.
275 * mi/mi-cmd-catch.c: Fix indentation.
276 * mi/mi-cmd-disas.c: Fix indentation.
277 * mi/mi-cmd-env.c: Fix indentation.
278 * mi/mi-cmd-stack.c: Fix indentation.
279 * mi/mi-cmd-var.c: Fix indentation.
280 * mi/mi-cmds.c: Fix indentation.
281 * mi/mi-main.c: Fix indentation.
282 * mi/mi-parse.c: Fix indentation.
283 * microblaze-tdep.c: Fix indentation.
284 * minidebug.c: Fix indentation.
285 * minsyms.c: Fix indentation.
286 * mips-linux-nat.c: Fix indentation.
287 * mips-linux-tdep.c: Fix indentation.
288 * mips-nbsd-tdep.c: Fix indentation.
289 * mips-tdep.c: Fix indentation.
290 * mn10300-linux-tdep.c: Fix indentation.
291 * mn10300-tdep.c: Fix indentation.
292 * moxie-tdep.c: Fix indentation.
293 * msp430-tdep.c: Fix indentation.
294 * namespace.h: Fix indentation.
295 * nat/fork-inferior.c: Fix indentation.
296 * nat/gdb_ptrace.h: Fix indentation.
297 * nat/linux-namespaces.c: Fix indentation.
298 * nat/linux-osdata.c: Fix indentation.
299 * nat/netbsd-nat.c: Fix indentation.
300 * nat/x86-dregs.c: Fix indentation.
301 * nbsd-nat.c: Fix indentation.
302 * nbsd-tdep.c: Fix indentation.
303 * nios2-linux-tdep.c: Fix indentation.
304 * nios2-tdep.c: Fix indentation.
305 * nto-procfs.c: Fix indentation.
306 * nto-tdep.c: Fix indentation.
307 * objfiles.c: Fix indentation.
308 * objfiles.h: Fix indentation.
309 * opencl-lang.c: Fix indentation.
310 * or1k-tdep.c: Fix indentation.
311 * osabi.c: Fix indentation.
312 * osabi.h: Fix indentation.
313 * osdata.c: Fix indentation.
314 * p-lang.c: Fix indentation.
315 * p-typeprint.c: Fix indentation.
316 * p-valprint.c: Fix indentation.
317 * parse.c: Fix indentation.
318 * ppc-linux-nat.c: Fix indentation.
319 * ppc-linux-tdep.c: Fix indentation.
320 * ppc-nbsd-nat.c: Fix indentation.
321 * ppc-nbsd-tdep.c: Fix indentation.
322 * ppc-obsd-nat.c: Fix indentation.
323 * ppc-ravenscar-thread.c: Fix indentation.
324 * ppc-sysv-tdep.c: Fix indentation.
325 * ppc64-tdep.c: Fix indentation.
326 * printcmd.c: Fix indentation.
327 * proc-api.c: Fix indentation.
328 * producer.c: Fix indentation.
329 * producer.h: Fix indentation.
330 * prologue-value.c: Fix indentation.
331 * prologue-value.h: Fix indentation.
332 * psymtab.c: Fix indentation.
333 * python/py-arch.c: Fix indentation.
334 * python/py-bpevent.c: Fix indentation.
335 * python/py-event.c: Fix indentation.
336 * python/py-event.h: Fix indentation.
337 * python/py-finishbreakpoint.c: Fix indentation.
338 * python/py-frame.c: Fix indentation.
339 * python/py-framefilter.c: Fix indentation.
340 * python/py-inferior.c: Fix indentation.
341 * python/py-infthread.c: Fix indentation.
342 * python/py-objfile.c: Fix indentation.
343 * python/py-prettyprint.c: Fix indentation.
344 * python/py-registers.c: Fix indentation.
345 * python/py-signalevent.c: Fix indentation.
346 * python/py-stopevent.c: Fix indentation.
347 * python/py-stopevent.h: Fix indentation.
348 * python/py-threadevent.c: Fix indentation.
349 * python/py-tui.c: Fix indentation.
350 * python/py-unwind.c: Fix indentation.
351 * python/py-value.c: Fix indentation.
352 * python/py-xmethods.c: Fix indentation.
353 * python/python-internal.h: Fix indentation.
354 * python/python.c: Fix indentation.
355 * ravenscar-thread.c: Fix indentation.
356 * record-btrace.c: Fix indentation.
357 * record-full.c: Fix indentation.
358 * record.c: Fix indentation.
359 * reggroups.c: Fix indentation.
360 * regset.h: Fix indentation.
361 * remote-fileio.c: Fix indentation.
362 * remote.c: Fix indentation.
363 * reverse.c: Fix indentation.
364 * riscv-linux-tdep.c: Fix indentation.
365 * riscv-ravenscar-thread.c: Fix indentation.
366 * riscv-tdep.c: Fix indentation.
367 * rl78-tdep.c: Fix indentation.
368 * rs6000-aix-tdep.c: Fix indentation.
369 * rs6000-lynx178-tdep.c: Fix indentation.
370 * rs6000-nat.c: Fix indentation.
371 * rs6000-tdep.c: Fix indentation.
372 * rust-lang.c: Fix indentation.
373 * rx-tdep.c: Fix indentation.
374 * s12z-tdep.c: Fix indentation.
375 * s390-linux-tdep.c: Fix indentation.
376 * score-tdep.c: Fix indentation.
377 * ser-base.c: Fix indentation.
378 * ser-mingw.c: Fix indentation.
379 * ser-uds.c: Fix indentation.
380 * ser-unix.c: Fix indentation.
381 * serial.c: Fix indentation.
382 * sh-linux-tdep.c: Fix indentation.
383 * sh-nbsd-tdep.c: Fix indentation.
384 * sh-tdep.c: Fix indentation.
385 * skip.c: Fix indentation.
386 * sol-thread.c: Fix indentation.
387 * solib-aix.c: Fix indentation.
388 * solib-darwin.c: Fix indentation.
389 * solib-frv.c: Fix indentation.
390 * solib-svr4.c: Fix indentation.
391 * solib.c: Fix indentation.
392 * source.c: Fix indentation.
393 * sparc-linux-tdep.c: Fix indentation.
394 * sparc-nbsd-tdep.c: Fix indentation.
395 * sparc-obsd-tdep.c: Fix indentation.
396 * sparc-ravenscar-thread.c: Fix indentation.
397 * sparc-tdep.c: Fix indentation.
398 * sparc64-linux-tdep.c: Fix indentation.
399 * sparc64-nbsd-tdep.c: Fix indentation.
400 * sparc64-obsd-tdep.c: Fix indentation.
401 * sparc64-tdep.c: Fix indentation.
402 * stabsread.c: Fix indentation.
403 * stack.c: Fix indentation.
404 * stap-probe.c: Fix indentation.
405 * stubs/ia64vms-stub.c: Fix indentation.
406 * stubs/m32r-stub.c: Fix indentation.
407 * stubs/m68k-stub.c: Fix indentation.
408 * stubs/sh-stub.c: Fix indentation.
409 * stubs/sparc-stub.c: Fix indentation.
410 * symfile-mem.c: Fix indentation.
411 * symfile.c: Fix indentation.
412 * symfile.h: Fix indentation.
413 * symmisc.c: Fix indentation.
414 * symtab.c: Fix indentation.
415 * symtab.h: Fix indentation.
416 * target-float.c: Fix indentation.
417 * target.c: Fix indentation.
418 * target.h: Fix indentation.
419 * tic6x-tdep.c: Fix indentation.
420 * tilegx-linux-tdep.c: Fix indentation.
421 * tilegx-tdep.c: Fix indentation.
422 * top.c: Fix indentation.
423 * tracefile-tfile.c: Fix indentation.
424 * tracepoint.c: Fix indentation.
425 * tui/tui-disasm.c: Fix indentation.
426 * tui/tui-io.c: Fix indentation.
427 * tui/tui-regs.c: Fix indentation.
428 * tui/tui-stack.c: Fix indentation.
429 * tui/tui-win.c: Fix indentation.
430 * tui/tui-winsource.c: Fix indentation.
431 * tui/tui.c: Fix indentation.
432 * typeprint.c: Fix indentation.
433 * ui-out.h: Fix indentation.
434 * unittests/copy_bitwise-selftests.c: Fix indentation.
435 * unittests/memory-map-selftests.c: Fix indentation.
436 * utils.c: Fix indentation.
437 * v850-tdep.c: Fix indentation.
438 * valarith.c: Fix indentation.
439 * valops.c: Fix indentation.
440 * valprint.c: Fix indentation.
441 * valprint.h: Fix indentation.
442 * value.c: Fix indentation.
443 * value.h: Fix indentation.
444 * varobj.c: Fix indentation.
445 * vax-tdep.c: Fix indentation.
446 * windows-nat.c: Fix indentation.
447 * windows-tdep.c: Fix indentation.
448 * xcoffread.c: Fix indentation.
449 * xml-syscall.c: Fix indentation.
450 * xml-tdesc.c: Fix indentation.
451 * xstormy16-tdep.c: Fix indentation.
452 * xtensa-config.c: Fix indentation.
453 * xtensa-linux-nat.c: Fix indentation.
454 * xtensa-linux-tdep.c: Fix indentation.
455 * xtensa-tdep.c: Fix indentation.
456
e1f57067
AB
4572020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
458 Craig Blackmore <craig.blackmore@embecosm.com>
459
460 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
461 as an unsigned value.
462
ae7754b2
TT
4632020-11-01 Tom Tromey <tom@tromey.com>
464
465 * dbxread.c (dbx_end_psymtab): Update.
466 * dwarf2/read.c (process_psymtab_comp_unit_reader)
467 (build_type_psymtabs_reader): Update.
468 * xcoffread.c (xcoff_end_psymtab): Update.
469 * ctfread.c (scan_partial_symbols): Update.
470 * psymtab.c (sort_pst_symbols): Remove.
471 (partial_symtab::end): Rename from end_psymtab_common. Inline
472 sort_pst_symbols.
473 * psympriv.h (struct partial_symtab) <end>: New method.
474 (end_psymtab_common): Don't declare.
475
0684bb51
TT
4762020-11-01 Tom Tromey <tom@tromey.com>
477
478 * symmisc.c (count_psyms): New function.
479 (print_objfile_statistics): Use it.
480 * psymtab.c (append_psymbol_to_list): Remove.
481 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
482 * objfiles.h (struct objstats) <n_psyms>: Remove.
483
089002bb
TT
4842020-11-01 Tom Tromey <tom@tromey.com>
485
486 * dbxread.c (dbx_end_psymtab): Update.
487 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
488 (build_type_psymtabs_reader): Update.
489 * xcoffread.c (xcoff_end_psymtab): Update.
490 * ctfread.c (scan_partial_symbols): Update.
491 * psympriv.h (end_psymtab_common): Update.
492 * psymtab.c (end_psymtab_common): Remove objfile parameter.
493 (sort_pst_symbols): Likewise.
494
525454d6
TT
4952020-11-01 Tom Tromey <tom@tromey.com>
496
497 * dbxread.c (dbx_symfile_read): Update.
498 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
499 * xcoffread.c (xcoff_initial_scan): Update.
500 * psympriv.h (init_psymbol_list): Don't declare.
501 * psymtab.c (init_psymbol_list): Remove.
502
60bd1d53
JB
5032020-11-01 Joel Brobecker <brobecker@adacore.com>
504
505 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
506 gnat_encoded_fixed_type_info. Update all callers.
507
db99d0d0
JB
5082020-11-01 Joel Brobecker <brobecker@adacore.com>
509
510 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
511 line too long.
512
75f24e86
JB
5132020-11-01 Joel Brobecker <brobecker@adacore.com>
514
515 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
516 cast_from_fixed. Update all callers.
517 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
518 Update all callers.
519 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
520 Update all callers.
521 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
522 ada_scaling_factor.
523 * ada-typeprint.c: Replace call to ada_scaling_factor by call
524 to print_gnat_encoded_fixed_point_type.
525 * ada-valprint.c: Likewise.
526
4f0469cd
AB
5272020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
528
529 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
530 (debug_prefixed_printf): Add check of debug_displaced flag.
531 * linux-nat.c (linux_nat_debug_printf): Add check of
532 debug_linux_nat flag.
533
17417fb0
SM
5342020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
535
536 * infrun.c (infrun_debug_printf_1): Remove.
537 (displaced_debug_printf_1): Remove.
538 (stop_all_threads): Use debug_prefixed_printf.
539 * infrun.h (infrun_debug_printf_1): Remove.
540 (infrun_debug_printf): Use debug_prefixed_printf.
541 (displaced_debug_printf_1): Remove.
542 (displaced_debug_printf): Use debug_prefixed_printf.
543 * linux-nat.c (linux_nat_debug_printf_1): Remove.
544 (linux_nat_debug_printf): Use debug_prefixed_printf.
545
ad6dba1c
SM
5462020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
547
548 * configure: Re-generate.
549 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
550 AC_LANG_PROGRAM.
551
b6fb30ed
SM
5522020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
553
554 * configure: Re-generate.
555
5164c117
SM
5562020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
557
558 * configure: Re-generate.
559
864ca435
SM
5602020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
561
562 * configure: Re-generate.
563
b9442ec1
SM
5642020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
565
566 * configure: Re-generate.
567
294f2697
SM
5682020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
569
570 * acinclude.m4: Modernize.
571 * configure: Re-generate.
572
5593a99a
SM
5732020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
574
575 * configure.ac: Modernize.
576 * configure: Re-generate.
577
e41fda1d
SM
5782020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
579
580 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
581 * configure: Re-generate.
582 * configure.ac: Remove AM_PROG_CC_STDC.
583
91e1a0ed
SM
5842020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
585
586 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
587 AC_CANONICAL_SYSTEM.
588 * configure: Re-generate.
589
136821d9
SM
5902020-10-30 Simon Marchi <simon.marchi@efficios.com>
591
592 * infrun.h (displaced_debug_printf): New macro. Replace
593 displaced debug prints throughout to use it.
594 (displaced_debug_printf_1): New declaration.
595 (displaced_step_dump_bytes): Return string, remove ui_file
596 parameter, update all callers.
597 * infrun.c (displaced_debug_printf_1): New function.
598 (displaced_step_dump_bytes): Return string, remove ui_file
599 parameter
600
aa2045e7
SM
6012020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
602
603 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
604
b1ec2735
TT
6052020-10-30 Tom Tromey <tromey@adacore.com>
606
607 * Makefile.in (stamp-init): Depend on config.status.
608
b78b3a29
TBA
6092020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
610
611 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
612
d70bdd3c
PA
6132020-10-30 Pedro Alves <pedro@palves.net>
614
615 * thread.c (lookup_selected_frame): Move ...
616 * frame.c (lookup_selected_frame): ... here.
617
79952e69
PA
6182020-10-30 Pedro Alves <pedro@palves.net>
619
620 * blockframe.c (block_innermost_frame): Use get_selected_frame.
621 * frame.c
622 (scoped_restore_selected_frame::scoped_restore_selected_frame):
623 Use save_selected_frame. Save language as well.
624 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
625 Use restore_selected_frame, and restore language as well.
626 (selected_frame_id, selected_frame_level): New.
627 (selected_frame): Update comments.
628 (save_selected_frame, restore_selected_frame): New.
629 (get_selected_frame): Use lookup_selected_frame.
630 (get_selected_frame_if_set): Delete.
631 (select_frame): Record selected_frame_level and selected_frame_id.
632 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
633 fields.
634 (get_selected_frame): Make 'message' parameter optional.
635 (get_selected_frame_if_set): Delete declaration.
636 (select_frame): Update comments.
637 (save_selected_frame, restore_selected_frame)
638 (lookup_selected_frame): Declare.
639 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
640 * infrun.c (struct infcall_control_state) <selected_frame_level>:
641 New field.
642 (save_infcall_control_state): Use save_selected_frame.
643 (restore_selected_frame): Delete.
644 (restore_infcall_control_state): Use restore_selected_frame.
645 * stack.c (select_frame_command_core, frame_command_core): Use
646 get_selected_frame.
647 * thread.c (restore_selected_frame): Rename to ...
648 (lookup_selected_frame): ... this and make extern. Select the
649 current frame if the frame level is -1.
650 (scoped_restore_current_thread::restore): Also restore the
651 language.
652 (scoped_restore_current_thread::~scoped_restore_current_thread):
653 Don't try/catch.
654 (scoped_restore_current_thread::scoped_restore_current_thread):
655 Save the language as well. Use save_selected_frame.
656
58103c33
SM
6572020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
658
659 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
660 documentation.
661 * gdbarch.h: Re-generate.
662
40a53766
SM
6632020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
664
665 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
666 parameter.
667 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
668 Likewise.
669 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
670 Likewise.
671 * arch-utils.c (default_displaced_step_hw_singlestep):
672 Likewise.
673 * arch-utils.h (default_displaced_step_hw_singlestep):
674 Likewise.
675 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
676 Likewise.
677 * s390-tdep.c (s390_displaced_step_hw_singlestep):
678 Likewise.
679 * gdbarch.c: Re-generate.
680 * gdbarch.h: Re-generate.
681 * infrun.c (resume_1): Adjust.
682
8407f91b
TT
6832020-10-29 Tom Tromey <tom@tromey.com>
684
685 * progspace.c (program_space::~program_space): Don't call
686 exec_close.
687
5008b3b2
TT
6882020-10-29 Tom Tromey <tom@tromey.com>
689
690 * exec.c (exec_target::close): Don't change current program
691 space.
692
d9eebde0
TT
6932020-10-29 Tom Tromey <tom@tromey.com>
694
695 * symfile.c (add_symbol_file_command): Update.
696 * exec.c (program_space::add_target_sections): Rename.
697 * symfile-mem.c (symbol_file_add_from_memory): Update.
698 * progspace.h (struct program_space) <add_target_sections>:
699 Declare new overload.
700 * exec.h (add_target_sections_of_objfile): Don't declare.
701
3769e227
TT
7022020-10-29 Tom Tromey <tom@tromey.com>
703
704 * solib.c (solib_map_sections): Update.
705 * exec.c (program_space::add_target_sections): Now a method.
706 (exec_file_attach): Update.
707 * exec.h (add_target_sections): Don't declare.
708 * progspace.h (struct program_space) <add_target_sections>:
709 Declare.
710
2a3f84af
TT
7112020-10-29 Tom Tromey <tom@tromey.com>
712
713 * progspace.h (struct program_space) <remove_target_sections>:
714 Declare.
715 * exec.c (program_space::remove_target_sections): Now a method.
716 * exec.h (remove_target_sections): Don't declare.
717
004eecfd
TT
7182020-10-29 Tom Tromey <tom@tromey.com>
719
720 * inferior.c (delete_inferior): Update.
721 * progspace.c (program_space::empty): Rename from
722 program_space_empty_p. Return bool.
723 * progspace.h (struct program_space) <empty>: New method.
724 (program_space_empty_p): Don't declare.
725
e39fb971
TT
7262020-10-29 Tom Tromey <tom@tromey.com>
727
728 * progspace.c (program_space::~program_space): Don't call
729 clear_program_space_solib_cache.
730 (program_space::clear_solib_cache): Rename from
731 clear_solib_cache.
732 * solib.c (handle_solib_event): Update.
733 * progspace.h (struct program_space) <clear_solib_cache>: New
734 method.
735 (clear_program_space_solib_cache): Don't declare.
736
a42d7dd8
TT
7372020-10-29 Tom Tromey <tom@tromey.com>
738
739 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
740 * target.c (info_target_command): Update.
741 * symfile.c (syms_from_objfile_1, finish_new_objfile)
742 (symbol_file_clear, reread_symbols): Update.
743 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
744 * stabsread.c (scan_file_globals): Update.
745 * solib.c (update_solib_list): Update.
746 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
747 (svr4_fetch_objfile_link_map, enable_break)
748 (svr4_relocate_main_executable)
749 (svr4_iterate_over_objfiles_in_search_order): Update.
750 * solib-frv.c (lm_base, enable_break)
751 (frv_relocate_main_executable): Update.
752 (main_got, frv_fdpic_find_canonical_descriptor): Update.
753 (frv_fetch_objfile_link_map): Update.
754 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
755 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
756 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
757 * remote.c (remote_target::get_offsets): Update.
758 (remote_target::start_remote)
759 (extended_remote_target::post_attach): Update.
760 * objfiles.c (entry_point_address_query): Update.
761 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
762 * minsyms.c (get_symbol_leading_char): Update.
763 * frame.c (inside_main_func): Update.
764 * progspace.h (symfile_objfile): Remove macro.
765
19f6550e
TT
7662020-10-29 Tom Tromey <tom@tromey.com>
767
768 * exec.c (exec_file_attach): Update.
769 * progspace.c (program_space::exec_close): Update.
770 * progspace.h (struct program_space) <ebfd>: Now a
771 gdb_bfd_ref_ptr.
772 <set_exec_bfd>: Change argument type.
773 <exec_bfd>: Update.
774
7e10abd1
TT
7752020-10-29 Tom Tromey <tom@tromey.com>
776
777 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
778 * symfile.c (reread_symbols): Update.
779 * symfile-mem.c (add_symbol_file_from_memory_command)
780 (add_vsyscall_page): Update.
781 * source-cache.c (source_cache::get_plain_source_lines): Update.
782 * solib-svr4.c (find_program_interpreter, elf_locate_base)
783 (svr4_current_sos_direct, svr4_exec_displacement)
784 (svr4_relocate_main_executable): Update.
785 (svr4_iterate_over_objfiles_in_search_order): Update.
786 * solib-frv.c (enable_break2, enable_break): Update.
787 * solib-dsbt.c (lm_base, enable_break): Update.
788 * solib-darwin.c (find_program_interpreter)
789 (darwin_solib_create_inferior_hook): Update.
790 * sol-thread.c (rw_common, ps_pdmodel): Update.
791 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
792 * remote.c (compare_sections_command)
793 (remote_target::trace_set_readonly_regions): Update.
794 * remote-sim.c (get_sim_inferior_data)
795 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
796 (gdbsim_target_open, gdbsim_target::files_info): Update.
797 * exec.h (exec_bfd): Remove macro.
798 * progspace.c (initialize_progspace): Update.
799 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
800 Update.
801 * nto-procfs.c (nto_procfs_target::post_attach)
802 (nto_procfs_target::create_inferior): Update.
803 * maint.c (maintenance_info_sections): Update.
804 * linux-thread-db.c (thread_db_target::get_thread_local_address):
805 Update.
806 * infcmd.c (post_create_inferior): Update.
807 * gcore.c (default_gcore_arch, default_gcore_target): Update.
808 (objfile_find_memory_regions): Update.
809 * exec.c (validate_exec_file, exec_file_attach)
810 (exec_read_partial_read_only, print_section_info): Update.
811 * corelow.c (core_target_open): Update.
812 * corefile.c (reopen_exec_file, validate_files): Update.
813 * arm-tdep.c (gdb_print_insn_arm): Update.
814 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
815 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
816 methods.
817
b55221ab
TT
8182020-10-29 Tom Tromey <tom@tromey.com>
819
820 * progspace.h (current_target_sections): Remove macro.
821 * solib-svr4.c (scan_dyntag): Update.
822 * solib-dsbt.c (scan_dyntag): Update.
823 * exec.c (exec_target::close): Update.
824 (add_target_sections, add_target_sections_of_objfile)
825 (remove_target_sections, exec_target::get_section_table)
826 (exec_target::files_info, set_section_command)
827 (exec_set_section_address, exec_target::has_memory)
828 (exec_target::has_memory): Update.
829
5a36e715
TT
8302020-10-29 Tom Tromey <tom@tromey.com>
831
832 * source-cache.c (source_cache::get_plain_source_lines): Use
833 current_program_space.
834 * corefile.c (reopen_exec_file): Use current_program_space.
835 * exec.c (exec_file_attach): Use current_program_space.
836 * exec.h (exec_bfd_mtime): Remove.
837
784c8592
TT
8382020-10-29 Tom Tromey <tom@tromey.com>
839
840 * gcore.c (default_gcore_mach): Remove.
841 (create_gcore_bfd): Update.
842
8a4f1402
TT
8432020-10-29 Tom Tromey <tom@tromey.com>
844
845 * progspace.c (program_space::exec_close): New method, from
846 exec_close in exec.c.
847 * exec.c (exec_close): Move to progspace.c.
848 (exec_target::close, exec_file_attach): Update.
849 * progspace.h (struct program_space) <exec_close>: Declare
850 method.
851
c20cb686
TT
8522020-10-29 Tom Tromey <tom@tromey.com>
853
854 * progspace.h (struct program_space) <exec_filename>: Rename from
855 pspace_exec_filename. Now a unique_xmalloc_ptr.
856 * inferior.c (print_selected_inferior): Update.
857 (print_inferior): Update.
858 * mi/mi-main.c (print_one_inferior): Update.
859 * exec.h (exec_filename): Remove macro.
860 * corefile.c (get_exec_file): Update.
861 * exec.c (exec_close): Update.
862 (exec_file_attach): Update.
863 * progspace.c (clone_program_space): Update.
864 (print_program_space): Update.
865
6be2a9ab
TT
8662020-10-29 Tom Tromey <tom@tromey.com>
867
868 * target-section.h (struct target_section): Add constructor.
869 * exec.c (build_section_table, add_target_sections_of_objfile):
870 Update.
871 * corelow.c (core_target::build_file_mappings): Update.
872
cfaa8f76
TBA
8732020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
874
875 PR gdb/19318
876 * inferior.c (detach_inferior_command): Restore the current thread.
877 (kill_inferior_command): Ditto.
878
1b00ef06
TV
8792020-10-28 Tom de Vries <tdevries@suse.de>
880
881 PR symtab/26772
882 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
883 map, check it in the "best match" loop.
884
7f40ce1a
SM
8852020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
886
887 * m32c-tdep.c: Remove unused includes.
888
5eb9e3f5
SM
8892020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
890
891 * xtensa-tdep.c: Remove includes.
892
b1d4d8d1
TBA
8932020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
894
895 * breakpoint.c (struct condition_command_opts): New struct.
896 (condition_command_option_defs): New static global.
897 (make_condition_command_options_def_group): New function.
898 (condition_completer): Update to consider the '-force' flag.
899 (condition_command): Use gdb::option for the '-force' flag.
900
bd24c5d6
TV
9012020-10-27 Tom de Vries <tdevries@suse.de>
902
903 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
904 symbols in section check.
905
61eb46a4
TV
9062020-10-27 Tom de Vries <tdevries@suse.de>
907
908 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
909
733d554a
TBA
9102020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
911
912 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
913 * breakpoint.c: Update the help text of the 'condition' and 'break'
914 commands.
915 (set_breakpoint_condition): Take a new bool parameter
916 to control whether condition definition should be forced even when
917 the condition expression is invalid in all of the current locations.
918 (condition_command): Update the call to 'set_breakpoint_condition'.
919 (find_condition_and_thread): Take the "-force-condition" flag into
920 account.
921 * linespec.c (linespec_keywords): Add "-force-condition" as an
922 element.
923 (FORCE_KEYWORD_INDEX): New #define.
924 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
925 as a keyword.
926 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
927 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
928 * python/py-breakpoint.c (bppy_set_condition): Ditto.
929 * NEWS: Mention the changes to the 'break' and 'condition' commands.
930
b5fa468f
TBA
9312020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
932
933 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
934 * breakpoint.c (set_breakpoint_location_condition): New function.
935 (set_breakpoint_condition): Disable a breakpoint location if parsing
936 the condition string gives an error.
937 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
938 (build_target_condition_list): Ditto.
939 (build_target_command_list): Ditto.
940 (build_bpstat_chain): Ditto.
941 (print_one_breakpoint_location): Ditto.
942 (print_one_breakpoint): Ditto.
943 (breakpoint_1): Ditto.
944 (bp_location::bp_location): Ditto.
945 (locations_are_equal): Ditto.
946 (update_breakpoint_locations): Ditto.
947 (enable_disable_bp_num_loc): Ditto.
948 (init_breakpoint_sal): Use set_breakpoint_location_condition.
949 (find_condition_and_thread_for_sals): New static function.
950 (create_breakpoint): Call find_condition_and_thread_for_sals.
951 (location_to_sals): Call find_condition_and_thread_for_sals instead
952 of find_condition_and_thread.
953
1c47ec3e
TV
9542020-10-26 Tom de Vries <tdevries@suse.de>
955
956 * dwarf2/read.c (process_full_comp_unit): Call
957 dwarf2_find_base_address.
958
6390859c
TT
9592020-10-26 Tom Tromey <tromey@adacore.com>
960
961 * gdbtypes.c (create_range_type): Revert previous patch. Add
962 comment.
963
d744f0f9
PA
9642020-10-26 Pedro Alves <pedro@palves.net>
965
966 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
967 (my_waitpid): Use gdb::handle_eintr.
968
006811bc
SM
9692020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
970
971 * acinclude.m4: Update ptrace.m4 path.
972 * ptrace.m4: Moved to gdbsupport.
973
c75e31a1
SM
9742020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
975
976 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
977 instead of target_gdbarch.
978
32495661
SM
9792020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
980
981 * jit.c (jit_reader_load_command): Pass current inferior.
982 (jit_inferior_init): Change parameter type to inferior, use it.
983 (jit_inferior_created): Remove.
984 (jit_inferior_created_hook): Pass inferior parameter down.
985 (_initialize_jit): Use jit_inferior_created_hook instead of
986 jit_inferior_created.
987 * jit.h (jit_inferior_created_hook): Add inferior parameter.
988 * infrun.c (follow_exec): Pass inferior to
989 jit_inferior_created_hook.
990
3f66685e
SM
9912020-10-24 Simon Marchi <simon.marchi@efficios.com>
992
993 * linux-thread-db.c (check_pid_namespace_match): Add inferior
994 parameter and use it.
995 (thread_db_inferior_created): Pass inferior argument.
996
a0ff652f
SM
9972020-10-24 Simon Marchi <simon.marchi@efficios.com>
998
999 * aix-thread.c (aix_thread_inferior_created): Add inferior
1000 parameter.
1001 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
1002 * dummy-frame.c (cleanup_dummy_frames): Likewise.
1003 * jit.c (jit_inferior_created): Likewise.
1004 * linux-thread-db.c (thread_db_inferior_created): Likewise.
1005 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
1006 * observable.h (inferior_created): Likewise.
1007 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
1008 * symfile-mem.c (add_vsyscall_page): Likewise.
1009 * infcmd.c (post_create_inferior): Pass inferior argument.
1010
3c67532c
JB
10112020-10-24 Joel Brobecker <brobecker@adacore.com>
1012
1013 GDB 10.1 released.
1014
8747316e
JB
10152020-10-23 Joel Brobecker <brobecker@adacore.com>
1016
1017 * ada-typeprint.c (ada_print_type): Remove superfluous second call
1018 to ada_check_typedef.
1019
1a0ea399
AB
10202020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1021
1022 * f-exp.y (f_parse): Rename to...
1023 (f_language::parser): ...this.
1024 * f-lang.c (f_get_encoding): Rename to...
1025 (f_language::get_encoding): ...this.
1026 (f_op_print_tab): Rename to...
1027 (f_language::op_print_tab): ...this.
1028 (exp_descriptor_f): Rename to...
1029 (f_language::exp_descriptor_tab): ...this.
1030 (class f_language): Moved to f-lang.h.
1031 (f_language::language_arch_info): New function, moved out of class
1032 declaration.
1033 (f_language::search_name_hash): Likewise.
1034 (f_language::lookup_symbol_nonlocal): Likewise.
1035 (f_language::get_symbol_name_matcher_inner): Likewise.
1036 * f-lang.h: Add 'valprint.h' include.
1037 (class f_language): Moved here from f-lang.c.
1038 * f-typeprint.c (f_type_print_args): Delete commented out
1039 declaration.
1040 (f_print_typedef): Rename to...
1041 (f_language::print_typedef): ...this.
1042 (f_print_type): Rename to...
1043 (f_language::print_type): ...this.
1044 (f_type_print_varspec_prefix): Delete declaration and rename to...
1045 (f_language::f_type_print_varspec_prefix): ...this.
1046 (f_type_print_varspec_suffix): Delete declaration and rename to...
1047 (f_language::f_type_print_varspec_suffix): ...this.
1048 (f_type_print_base): Delete declaration and rename to...
1049 (f_language::f_type_print_base): ...this.
1050 * f-valprint.c (f_value_print_inner): Rename to...
1051 (f_language::value_print_inner): ...this.
1052 * parse.c: Delete 'f-lang.h' include.
1053
88cefd9b
AB
10542020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1055
1056 * language.h (language_defn::print_type): Add variable names in
1057 declaration, and update header comment.
1058
5399db93
AB
10592020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1060
1061 * ada-lang.c (ada_language::demangle): Rename to...
1062 (ada_language::demangle_symbol): ...this.
1063 * c-lang.c (cplus_language::demangle): Rename to...
1064 (cplus_language::demangle_symbol): ...this.
1065 * d-lang.c (d_language::demangle): Rename to...
1066 (d_language::demangle_symbol): ...this.
1067 * f-lang.c (f_language::demangle): Rename to...
1068 (f_language::demangle_symbol): ...this.
1069 * go-lang.c (go_language::demangle): Rename to...
1070 (go_language::demangle_symbol): ...this.
1071 * language.c (language_demangle): Update call to demangle_symbol.
1072 (auto_or_unknown_language::demangle): Rename to...
1073 (auto_or_unknown_language::demangle_symbol): ...this.
1074 * language.h (language_defn::demangle): Rename to...
1075 (language_defn::demangle_symbol): ...this.
1076 * objc-lang.c (objc_language::demangle): Rename to...
1077 (objc_language::demangle_symbol): ...this.
1078 * rust-lang.c (rust_language::demangle): Rename to...
1079 (rust_language::demangle_symbol): ...this.
1080
4b2f86ef
AB
10812020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1082
1083 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
1084 (iterate_over_file_blocks): Replace use of macro with the macros
1085 definition.
1086
e74b39de
AB
10872020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1088
1089 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
1090 * valprint.c (maybe_print_array_index): Replace use of macro with
1091 the macros definition.
1092
00c696a6
AB
10932020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1094
1095 * ada-lang.c (ada_language::print_array_index): Call value_print
1096 directly.
1097 * language.c (language_defn::print_array_index): Likewise.
1098 * language.h (LA_VALUE_PRINT): Delete.
1099 * valprint.c (value_print): Call value_print on the
1100 current_language directly.
1101
d3b67c56
AB
11022020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1103
1104 * language.h (LA_PRINT_TYPEDEF): Delete.
1105 * typeprint.c (typedef_print): Call print_typedef directly on the
1106 current_language object.
1107
790e2a12
AB
11082020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1109
1110 * m2-exp.y (m2_parse): Rename to...
1111 (m2_language::parser): ...this. Update function signature.
1112 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
1113 (m2_op_print): Rename to...
1114 (m2_language::op_print_tab): ...this, and make const.
1115 (exp_descriptor_modula2): Rename to...
1116 (m2_language::exp_descriptor_modula2): ...this.
1117 (class m2_language): Move to m2-lang.h.
1118 (m2_language::language_arch_info): New function, moved out of
1119 class declaration.
1120 (m2_language::printchar): New function, body from m2_printchar.
1121 (m2_language::printstr): New function, moved out of class
1122 declaration.
1123 (m2_language::emitchar): Likewise.
1124 * m2-lang.h (m2_parse): Delete declaration.
1125 (m2_print_typedef): Delete declaration.
1126 (m2_value_print_inner): Delete declaration.
1127 (class m2_language): Class declaration moved from m2-lang.c,
1128 larger functions are left in m2-lang.c.
1129 * m2-typeprint.c (m2_print_typedef): Rename to...
1130 (m2_language::print_typedef): ...this, and update function
1131 signature.
1132 * m2-valprint.c (m2_value_print_inner): Rename to...
1133 (m2_language::value_print_inner): ...this, replace use of
1134 LA_PRINT_STRING with a direct call to printstr member function,
1135 and update recursive call.
1136
b01175fc
AB
11372020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1138
1139 * language.c (default_is_string_type_p): Delete, implementation
1140 moved into auto_or_unknown_language::is_string_type_p.
1141 (unk_op_print_tab): Moved into
1142 auto_or_unknown_language::opcode_print_table.
1143 (unknown_language_arch_info): Delete, implementation moved into
1144 auto_or_unknown_language::language_arch_info.
1145 (class auto_or_unknown_language): New class, member functions
1146 copied from unknown_language class, with some updates.
1147 (class unknown_language): Most member functions moved into
1148 auto_or_unknown_language class. Inherit from
1149 auto_or_unknown_language class.
1150 (class auto_language): Inherit from auto_or_unknown_language.
1151 Delete most member functions.
1152
1a97fe8c
HD
11532020-10-22 Hannes Domani <ssbssa@yahoo.de>
1154
1155 * stabsread.c (read_member_functions): Remove gdb_assert.
1156
6b9d0dfd
HD
11572020-10-22 Hannes Domani <ssbssa@yahoo.de>
1158
1159 * gdbtypes.c (init_complex_type): Check target type name.
1160
4b4bb603
SM
11612020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1162
1163 * target-debug.h (target_debug_print_struct_target_ops_p):
1164 Remove.
1165 (target_debug_print_async_callback_ftype_p): Remove.
1166 (target_debug_print_struct_trace_state_variable_p): Remove.
1167 (target_debug_print_struct_traceframe_info_p): Remove.
1168 (target_debug_print_VEC__btrace_block_s__pp): Remove.
1169 (target_debug_print_enum_btrace_format): Remove.
1170 (target_debug_print_enum_info_proc_what): Remove.
1171 (target_debug_print_thread_info_pp): Remove.
1172
24f5300a
SM
11732020-10-22 Simon Marchi <simon.marchi@efficios.com>
1174
1175 * target.h (struct target_ops) <make_corefile_notes>:
1176 Change return type to unique pointer.
1177 * target.c (dummy_make_corefile_notes): Likewise.
1178 * exec.c (struct exec_target) <make_corefile_notes>:
1179 Likewise.
1180 (exec_target::make_corefile_notes): Likewise.
1181 * procfs.c (class procfs_target) <make_corefile_notes>:
1182 Likewise.
1183 (procfs_do_thread_registers): Adjust to unique pointer.
1184 (struct procfs_corefile_thread_data): Add constructor.
1185 <note_data>: Change type to unique pointer.
1186 (procfs_corefile_thread_callback): Adjust to unique pointer.
1187 (procfs_target::make_corefile_notes): Change return type to
1188 unique pointer.
1189 * target-delegates.c: Re-generate.
1190 * gcore.c (write_gcore_file_1): Adjust.
1191 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
1192 New.
1193
5fb4027f
TV
11942020-10-22 Tom de Vries <tdevries@suse.de>
1195
1196 * block.c (find_block_in_blockvector): Make sure the returned block
1197 contains pc.
1198
4a636814
SM
11992020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1200
1201 PR gdb/26693
1202 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
1203 parameter.
1204 (load_cu): Pass existing CU.
1205 (process_imported_unit_die): Likewise.
1206 (follow_die_offset): Likewise.
1207
1bd57575
LM
12082020-10-22 Luis Machado <luis.machado@linaro.org>
1209
1210 * corelow.c (core_target::xfer_partial): Also check for an empty
1211 m_core_unavailable_mappings vector.
1212
6b4c676c
AB
12132020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1214
1215 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
1216 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
1217 * f-exp.y (arglist): Allow for a series of subranges.
1218 (subrange): Add cases for subranges with strides.
1219 * f-lang.c (value_f90_subarray): Catch use of array strides and
1220 throw an error.
1221 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
1222
f2d8e4c5
AB
12232020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1224
1225 * expprint.c (print_subexp_standard): Change enum range_type to
1226 range_flag and rename variables to match.
1227 (dump_subexp_body_standard): Likewise.
1228 * expression.h (enum range_type): Rename to...
1229 (enum range_flag): ...this.
1230 (range_types): Rename to...
1231 (range_flags): ...this.
1232 * f-lang.c (value_f90_subarray): Change enum range_type to
1233 range_flag and rename variables to match.
1234 * parse.c (operator_length_standard): Likewise.
1235 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
1236 range_type to range_flag.
1237 * rust-lang.c (rust_evaluate_funcall): Likewise.
1238 (rust_range): Likewise.
1239 (rust_compute_range): Likewise.
1240 (rust_subscript): Likewise.
1241
2f1b18db
AB
12422020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1243
1244 * expprint.c (print_subexp_standard): Update to reflect changes to
1245 enum range_type.
1246 (dump_subexp_body_standard): Likewise.
1247 * expression.h (enum range_type): Convert to a bit field enum, and
1248 make the enum unsigned.
1249 * f-exp.y (subrange): Update to reflect changes to enum
1250 range_type.
1251 * f-lang.c (value_f90_subarray): Likewise.
1252 * parse.c (operator_length_standard): Likewise.
1253 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
1254 * rust-lang.c (rust_range): Likewise.
1255 (rust_compute_range): Likewise.
1256 (rust_subscript): Likewise.
1257
a46d1843
SM
12582020-10-21 Simon Marchi <simon.marchi@efficios.com>
1259
1260 * infrun.c (displaced_step_in_progress_thread): Fix comment.
1261 (displaced_step_in_progress): Fix comment.
1262
c21f37a8
SM
12632020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
1264
1265 * gdbarch.sh (make_corefile_notes): Return unique pointer.
1266 * gdbarch.c: Re-generate.
1267 * gdbarch.h: Re-generate.
1268 * gcore.c (write_gcore_file_1): Adjust.
1269 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
1270 constructor.
1271 <note_data>: Change type to unique pointer.
1272 <abort_iteration>: Change type to bool.
1273 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
1274 (fbsd_collect_thread_registers): Return void, adjust.
1275 (struct fbsd_corefile_thread_data): Add construtor.
1276 <note_data>: Change type to unique pointer.
1277 (fbsd_corefile_thread): Adjust.
1278 (fbsd_make_corefile_notes): Return unique pointer, adjust.
1279 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
1280 to unique pointer, adjust.
1281 (struct linux_collect_regset_section_cb_data): Add constructor.
1282 <note_data>: Change type to unique pointer.
1283 <abort_iteration>: Change type to bool.
1284 (linux_collect_thread_registers): Return void, adjust.
1285 (struct linux_corefile_thread_data): Add constructor.
1286 <note_data>: Change type to unique pointer.
1287 (linux_corefile_thread): Adjust.
1288 (linux_make_corefile_notes): Return unique pointer, adjust.
1289
07fbbd01
SM
12902020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1291
1292 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
1293 * gdbarch.c: Re-generate.
1294 * gdbarch.h: Re-generate.
1295 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
1296 bool.
1297 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1298 Likewise.
1299 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
1300 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
1301 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
1302 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
1303
39535193
SM
13042020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1305
1306 * gdbarch.sh: Make generated predicates return bool.
1307 * gdbarch.c: Re-generate.
1308 * gdbarch.h: Re-generate.
1309
ad523d01
TT
13102020-10-20 Tom Tromey <tom@tromey.com>
1311
1312 * varobj-iter.h (struct varobj_item): Remove typedef.
1313
c4464ade
SM
13142020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1315
1316 * infrun.c (currently_stepping): Change int to bool
1317 (maybe_software_singlestep): Likewise.
1318 (show_stop_on_solib_events): Likewise.
1319 (stepping_past_nonsteppable_watchpoint): Likewise.
1320 (displaced_step_in_progress_any_inferior): Likewise.
1321 (displaced_step_in_progress_thread): Likewise.
1322 (keep_going_stepped_thread): Likewise.
1323 (thread_still_needs_step_over): Likewise.
1324 (start_step_over): Likewise.
1325 (do_target_resume): Likewise.
1326 (resume_1): Likewise.
1327 (clear_proceed_status): Likewise.
1328 (thread_still_needs_step_over_bp): Likewise.
1329 (proceed): Likewise.
1330 (switch_back_to_stepped_thread): Likewise.
1331 (adjust_pc_after_break): Likewise.
1332 (stepped_in_from): Likewise.
1333 (handle_stop_requested): Likewise.
1334 (handle_syscall_event): Likewise.
1335 (handle_no_resumed): Likewise.
1336 (handle_inferior_event): Likewise.
1337 (finish_step_over): Likewise.
1338 (handle_signal_stop): Likewise.
1339 (process_event_stop_test): Likewise.
1340
2eb20436
SM
13412020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1342
1343 * infrun.c (get_displaced_stepping_state): Fix comment.
1344
e0c45ded
AS
13452020-10-20 Andreas Schwab <schwab@linux-m68k.org>
1346
1347 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
1348
22cc388e
TT
13492020-10-19 Tom Tromey <tromey@adacore.com>
1350
1351 PR tui/26719
1352 * tui/tui-winsource.h (struct tui_source_window_base)
1353 <refresh_window>: Rename from refresh_pad.
1354 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
1355 Rename from refresh_pad.
1356 (tui_source_window_base::show_source_content)
1357 (tui_source_window_base::do_scroll_horizontal): Update.
1358
3c6eb4d4
TBA
13592020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1360
1361 * thread.c (_initialize_thread): Fine-tune the help text of
1362 'info threads'.
1363
26703721
TBA
13642020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1365
1366 * frame.c: Remove the unused 'uinteger_option_def' type alias.
1367
61c26be8
MS
13682020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
1369
1370 * breakpoint.c (handle_jit_event): Add an argument, change how
1371 `jit_event_handler` is called.
1372
932539d7
TT
13732020-10-17 Tom Tromey <tom@tromey.com>
1374
1375 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
1376 (scan_xcoff_symtab): Update.
1377 * psymtab.h (class psymtab_storage) <global_psymbols,
1378 static_psymbols, current_global_psymbols,
1379 current_static_psymbols>: Remove.
1380 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
1381 (match_partial_symbol, lookup_partial_symbol): Update.
1382 (print_partial_symbols): Change parameters.
1383 (dump_psymtab, recursively_search_psymtabs)
1384 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
1385 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
1386 (concat): Remove.
1387 (end_psymtab_common): Simplify.
1388 (append_psymbol_to_list): Change parameters.
1389 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
1390 (init_psymbol_list): Simplify.
1391 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
1392 * psympriv.h (struct partial_symtab) <empty>: New method.
1393 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
1394 Remove.
1395 <global_psymbols, static_psymbols>: New members.
1396 <add_psymbol>: New methods.
1397 (add_psymbol_to_list): Don't declare.
1398 (psymbol_placement): Move earlier.
1399 * mdebugread.c (parse_partial_symbols): Update.
1400 (handle_psymbol_enumerators): Change parameters.
1401 (mdebug_expand_psymtab): Update.
1402 * dwarf2/read.c (process_psymtab_comp_unit_reader)
1403 (add_partial_symbol): Update.
1404 * dwarf2/index-write.c (write_psymbols): Change parameters.
1405 (write_one_signatured_type): Update.
1406 (recursively_count_psymbols): Update.
1407 (recursively_write_psymbols): Update.
1408 (class debug_names) <recursively_write_psymbols>: Update.
1409 <write_psymbols>: Change parameters.
1410 <write_one_signatured_type>: Update.
1411 * dbxread.c (read_dbx_symtab): Update.
1412 (dbx_end_psymtab): Use partial_symtab::empty.
1413 * ctfread.c (struct ctf_context) <pst>: New member.
1414 (create_partial_symtab): Set it.
1415 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
1416 (scan_partial_symbols): Use the psymtab's context. Update.
1417
cfabbd35
TT
14182020-10-17 Tom Tromey <tom@tromey.com>
1419
1420 * valprint.c (generic_value_print): Remove comment.
1421 * m2-valprint.c (m2_value_print_inner): Remove comment.
1422 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
1423 type.
1424
520596f2
TV
14252020-10-17 Tom de Vries <tdevries@suse.de>
1426
1427 PR symtab/26317
1428 * source.c (select_source_symtab): Handling sal.symtab == NULL for
1429 symbol main.
1430
76547ab3
TV
14312020-10-14 Tom de Vries <tdevries@suse.de>
1432
1433 PR gdb/26733
1434 * solib.c (solib_contains_address_p): Handle
1435 'solib->sections == nullptr'.
1436
d3a07122
SM
14372020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
1438
1439 PR gdb/26642
1440 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
1441 target can't do async.
1442 * target.c (target_wait): Assert that we don't pass
1443 TARGET_WNOHANG to a target that can't async.
1444
1b71cfcf
KR
14452020-10-13 Kamil Rytarowski <n54@gmx.com>
1446
1447 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
1448 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
1449 * alpha-bsd-nat.c: Adjust include.
1450 * alpha-bsd-tdep.h: Adjust comment.
1451 * alpha-nbsd-tdep.c: Rename to ...
1452 * alpha-netbsd-tdep.c: ... this, adjust include.
1453 * amd64-nbsd-nat.c: Rename to ...
1454 * amd64-netbsd-nat.c: ... this, adjust include.
1455 * amd64-nbsd-tdep.c: Rename to ...
1456 * amd64-netbsd-tdep.c: ... this, adjust include.
1457 * amd64-tdep.h: Adjust include.
1458 * arm-nbsd-nat.c: Rename to ...
1459 * arm-netbsd-nat.c: ... this, adjust include.
1460 * arm-nbsd-tdep.c: Rename to ...
1461 * arm-netbsd-tdep.c: ... this, adjust include.
1462 * arm-nbsd-tdep.h: Rename to ...
1463 * arm-netbsd-tdep.h: ... this, adjust include.
1464 * configure.nat: Adjust file lists.
1465 * configure.tgt: Likewise.
1466 * hppa-nbsd-nat.c: Rename to ...
1467 * hppa-netbsd-nat.c: ... this, adjust include.
1468 * hppa-nbsd-tdep.c: Rename to ...
1469 * hppa-netbsd-tdep.c: ... this, adjust include.
1470 * i386-nbsd-nat.c: Rename to ...
1471 * i386-netbsd-nat.c: ... this, adjust include.
1472 * i386-nbsd-tdep.c: Rename to ...
1473 * i386-netbsd-tdep.c: ... this, adjust include.
1474 * m68k-bsd-nat.c: Adjust include.
1475 * mips-nbsd-nat.c: Rename to ...
1476 * mips-netbsd-nat.c: ... this, adjust include.
1477 * mips-nbsd-tdep.c: Rename to ...
1478 * mips-netbsd-tdep.c: ... this, adjust include.
1479 * mips-nbsd-tdep.h: Rename to ...
1480 * mips-netbsd-tdep.h: ... this.
1481 * nbsd-nat.c: Rename to ...
1482 * netbsd-nat.c: ... this, adjust include.
1483 * nbsd-nat.h: Rename to ...
1484 * netbsd-nat.h: ... this, adjust include.
1485 * nbsd-tdep.c: Rename to ...
1486 * netbsd-tdep.c: ... this, adjust include.
1487 * nbsd-tdep.h: Rename to ...
1488 * netbsd-tdep.h: ... this.
1489 * ppc-nbsd-nat.c: Rename to ...
1490 * ppc-netbsd-nat.c: ... this, adjust include.
1491 * ppc-nbsd-tdep.c: Rename to ...
1492 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
1493 * ppc-nbsd-tdep.h: Rename to ...
1494 * ppc-netbsd-tdep.h: ... this.
1495 * sh-nbsd-nat.c: Rename to ...
1496 * sh-netbsd-nat.c: ... this, adjust include.
1497 * sh-nbsd-tdep.c: Rename to ...
1498 * sh-netbsd-tdep.c: ... this, adjust include.
1499 * sparc-nbsd-nat.c: Rename to ...
1500 * sparc-netbsd-nat.c: ... this.
1501 * sparc-nbsd-tdep.c: Rename to ...
1502 * sparc-netbsd-tdep.c: ... this, adjust include.
1503 * sparc64-nbsd-nat.c: Rename to ...
1504 * sparc64-netbsd-nat.c: ... this.
1505 * sparc64-nbsd-tdep.c: Rename to ...
1506 * sparc64-netbsd-tdep.c: ... this, adjust include.
1507 * sparc64-tdep.h: Adjust comment.
1508 * vax-bsd-nat.c: Adjust include.
1509 * vax-nbsd-tdep.c: Rename to ...
1510 * vax-netbsd-tdep.c: ... this, adjust include.
1511
d7a78e5c
TT
15122020-10-12 Tom Tromey <tom@tromey.com>
1513
1514 * target.h (struct target_ops) <get_section_table>: Update.
1515 (target_get_section_table): Update.
1516 * target.c (target_get_section_table, target_section_by_addr)
1517 (memory_xfer_partial_1): Update.
1518 * target-section.h (target_section_table): Now an alias.
1519 * target-delegates.c: Rebuild.
1520 * target-debug.h (target_debug_print_target_section_table_p):
1521 Rename from target_debug_print_struct_target_section_table_p.
1522 * symfile.c (build_section_addr_info_from_section_table): Update.
1523 * solib.c (solib_map_sections, solib_contains_address_p): Update.
1524 * solib-svr4.c (scan_dyntag): Update.
1525 * solib-dsbt.c (scan_dyntag): Update.
1526 * remote.c (remote_target::remote_xfer_live_readonly_partial):
1527 Update.
1528 * record-full.c (record_full_core_target::xfer_partial): Update.
1529 * progspace.h (struct program_space) <target_sections>: Update.
1530 * exec.h (print_section_info): Update.
1531 * exec.c (exec_target::close, build_section_table)
1532 (add_target_sections, add_target_sections_of_objfile)
1533 (remove_target_sections, exec_on_vfork)
1534 (section_table_available_memory)
1535 (section_table_xfer_memory_partial)
1536 (exec_target::get_section_table, exec_target::xfer_partial)
1537 (print_section_info, set_section_command)
1538 (exec_set_section_address, exec_target::has_memory): Update.
1539 * corelow.c (core_target::build_file_mappings)
1540 (core_target::xfer_partial, core_target::info_proc_mappings)
1541 (core_target::info_proc_mappings): Update.
1542 * bfd-target.c (class target_bfd): Update
1543
eda214ce
TT
15442020-10-12 Tom Tromey <tom@tromey.com>
1545
1546 * progspace.c (program_space::~program_space): Don't call
1547 clear_section_table.
1548 * exec.h (clear_section_table): Don't declare.
1549 * exec.c (exec_target::close): Update.
1550 (clear_section_table): Remove.
1551
91840ee3
TT
15522020-10-12 Tom Tromey <tom@tromey.com>
1553
1554 * exec.c (add_target_sections_of_objfile): Simplify.
1555
2d128614
TT
15562020-10-12 Tom Tromey <tom@tromey.com>
1557
1558 * solib.c (solib_map_sections): Update.
1559 * record-full.c (record_full_core_open_1): Update.
1560 * exec.h (build_section_table): Return a target_section_table.
1561 * exec.c (exec_file_attach): Update.
1562 (build_section_table): Return a target_section_table.
1563 * corelow.c (core_target::core_target): Update.
1564 * bfd-target.c (target_bfd::target_bfd): Update.
1565
bb2a6777
TT
15662020-10-12 Tom Tromey <tom@tromey.com>
1567
1568 * target.c (target_section_by_addr, memory_xfer_partial_1):
1569 Update.
1570 * target-section.h (struct target_section_table): Use
1571 std::vector.
1572 * symfile.h (build_section_addr_info_from_section_table): Take a
1573 target_section_table.
1574 * symfile.c (build_section_addr_info_from_section_table): Take a
1575 target_section_table.
1576 * solist.h (struct so_list) <sections>: Change type.
1577 <sections_end>: Remove.
1578 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
1579 (solib_contains_address_p): Update.
1580 * solib-svr4.c (scan_dyntag): Update.
1581 * solib-dsbt.c (scan_dyntag): Update.
1582 * remote.c (remote_target::remote_xfer_live_readonly_partial):
1583 Update.
1584 * record-full.c (record_full_core_start, record_full_core_end):
1585 Remove.
1586 (record_full_core_sections): New global.
1587 (record_full_core_open_1, record_full_core_target::xfer_partial):
1588 Update.
1589 * exec.h (build_section_table, section_table_xfer_memory_partial)
1590 (add_target_sections): Take a target_section_table.
1591 * exec.c (exec_file_attach, clear_section_table): Update.
1592 (resize_section_table): Remove.
1593 (build_section_table, add_target_sections): Take a
1594 target_section_table.
1595 (add_target_sections_of_objfile, remove_target_sections)
1596 (exec_on_vfork): Update.
1597 (section_table_available_memory): Take a target_section_table.
1598 (section_table_read_available_memory): Update.
1599 (section_table_xfer_memory_partial): Take a target_section_table.
1600 (print_section_info, set_section_command)
1601 (exec_set_section_address, exec_target::has_memory): Update.
1602 * corelow.c (class core_target) <m_core_section_table,
1603 m_core_file_mappings>: Remove braces.
1604 <~core_target>: Remove.
1605 (core_target::core_target): Update.
1606 (core_target::~core_target): Remove.
1607 (core_target::build_file_mappings)
1608 (core_target::xfer_memory_via_mappings)
1609 (core_target::xfer_partial, core_target::info_proc_mappings):
1610 Update.
1611 * bfd-target.c (target_bfd::xfer_partial): Update.
1612 (target_bfd::target_bfd): Update.
1613 (target_bfd::~target_bfd): Remove.
1614
7b466b10
TT
16152020-10-12 Tom Tromey <tom@tromey.com>
1616
1617 * target.h (struct target_section, struct target_section_table):
1618 Move to target-section.h.
1619 * target-section.h: New file.
1620
87a37e5e
PA
16212020-10-12 Pedro Alves <pedro@palves.net>
1622
1623 PR exp/26602
1624 * valops.c (struct struct_field_searcher): New.
1625 (update_search_result): Rename to ...
1626 (struct_field_searcher::update_result): ... this. Simplify
1627 prototype. Record all found fields.
1628 (do_search_struct_field): Rename to ...
1629 (struct_field_searcher::search): ... this. Simplify prototype.
1630 Maintain stack of visited baseclass path. Call update_result for
1631 fields too. Keep searching fields in baseclasses instead of
1632 stopping at the first found field.
1633 (search_struct_field): Use struct_field_searcher. When looking
1634 for fields, report ambiguous access attempts.
1635
9370fd51
AB
16362020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
1637
1638 * frame.c (inside_main_func): Check full symbols as well as
1639 minimal symbols.
1640
59c8a30b
JB
16412020-10-09 Joel Brobecker <brobecker@adacore.com>
1642
1643 * ada-lang.c (advance_wild_match): Rewrite the function's
1644 description. Change the type of target0, t0 and t1 to char.
1645
7c184d33
TT
16462020-10-09 Tom Tromey <tromey@adacore.com>
1647
1648 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
1649
5c4258f4
TT
16502020-10-09 Tom Tromey <tromey@adacore.com>
1651
1652 * ada-lang.h (ada_encode): Return std::string.
1653 * ada-lang.c (ada_encode_1): Return std::string.
1654 (ada_encode): Likewise.
1655 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
1656 Update.
1657 * ada-exp.y (block_lookup, write_var_or_type): Update.
1658
3d87245c
HD
16592020-10-09 Hannes Domani <ssbssa@yahoo.de>
1660
1661 PR exp/26714
1662 * printcmd.c (print_formatted): Handle void results as
1663 unformatted prints.
1664
bbb826f5
AB
16652020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
1666
1667 * arch/aarch32.c (aarch32_create_target_description): Release the
1668 target_desc_up as late as possible.
1669 * arch/aarch64.c (aarch64_create_target_description): Likewise.
1670 * arch/amd64.c (amd64_create_target_description): Likewise.
1671 * arch/arc.c (arc_create_target_description): Return a
1672 target_desc_up, don't release it.
1673 * arch/arc.h (arc_create_target_description): Update declaration.
1674 (arc_lookup_target_description): Move target_desc_up into the
1675 cache, and return a borrowed pointer.
1676 * arch/arm.c (arm_create_target_description): Release the
1677 target_desc_up as late as possible.
1678 * arch/i386.c (i386_create_target_description): Likewise.
1679 * arch/riscv.h (riscv_create_target_description): Update
1680 declaration to match definition.
1681 * arch/tic6x.c (tic6x_create_target_description): Release the
1682 target_desc_up as late as possible.
1683
361cb219
AB
16842020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
1685
1686 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
1687 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
1688
f5c4b229
JV
16892020-10-09 Jan Vrany <jan.vrany@labware.com>
1690
1691 * source.c (directory_command): Notify observers that "directories"
1692 parameter has changed.
1693
b2701685
TT
16942020-10-08 Tom Tromey <tom@tromey.com>
1695
1696 * cli/cli-cmds.c (print_disassembly): Style function name and
1697 addresses. Add _() wrappers.
1698
ada508b6
SV
16992020-10-08 Shahab Vahedi <shahab@synopsys.com>
1700
1701 * NEWS: Mention ARC support in GDBserver.
1702
51a948fd
AB
17032020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
1704
1705 * arch/aarch32.c (aarch32_create_target_description): Release
1706 unique_ptr returned from allocate_target_description.
1707 * arch/aarch64.c (aarch64_create_target_description): Likewise.
1708 * arch/amd64.c (amd64_create_target_description): Likewise.
1709 * arch/arc.c (arc_create_target_description): Likewise.
1710 * arch/arm.c (arm_create_target_description): Likewise.
1711 * arch/i386.c (i386_create_target_description): Likewise.
1712 * arch/riscv.c (riscv_create_target_description): Update return
1713 type. Handle allocate_target_description returning a unique_ptr.
1714 (riscv_lookup_target_description): Update to handle unique_ptr.
1715 * arch/tic6x.c (tic6x_create_target_description): Release
1716 unique_ptr returned from allocate_target_description.
1717 * features/microblaze-with-stack-protect.c: Regenerate.
1718 * features/microblaze.c: Regenerate.
1719 * features/mips-dsp-linux.c: Regenerate.
1720 * features/mips-linux.c: Regenerate.
1721 * features/mips64-dsp-linux.c: Regenerate.
1722 * features/mips64-linux.c: Regenerate.
1723 * features/nds32.c: Regenerate.
1724 * features/nios2.c: Regenerate.
1725 * features/or1k.c: Regenerate.
1726 * features/rs6000/powerpc-32.c: Regenerate.
1727 * features/rs6000/powerpc-32l.c: Regenerate.
1728 * features/rs6000/powerpc-403.c: Regenerate.
1729 * features/rs6000/powerpc-403gc.c: Regenerate.
1730 * features/rs6000/powerpc-405.c: Regenerate.
1731 * features/rs6000/powerpc-505.c: Regenerate.
1732 * features/rs6000/powerpc-601.c: Regenerate.
1733 * features/rs6000/powerpc-602.c: Regenerate.
1734 * features/rs6000/powerpc-603.c: Regenerate.
1735 * features/rs6000/powerpc-604.c: Regenerate.
1736 * features/rs6000/powerpc-64.c: Regenerate.
1737 * features/rs6000/powerpc-64l.c: Regenerate.
1738 * features/rs6000/powerpc-7400.c: Regenerate.
1739 * features/rs6000/powerpc-750.c: Regenerate.
1740 * features/rs6000/powerpc-860.c: Regenerate.
1741 * features/rs6000/powerpc-altivec32.c: Regenerate.
1742 * features/rs6000/powerpc-altivec32l.c: Regenerate.
1743 * features/rs6000/powerpc-altivec64.c: Regenerate.
1744 * features/rs6000/powerpc-altivec64l.c: Regenerate.
1745 * features/rs6000/powerpc-e500.c: Regenerate.
1746 * features/rs6000/powerpc-e500l.c: Regenerate.
1747 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
1748 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
1749 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
1750 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
1751 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
1752 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
1753 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
1754 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
1755 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
1756 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
1757 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
1758 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
1759 * features/rs6000/powerpc-vsx32.c: Regenerate.
1760 * features/rs6000/powerpc-vsx32l.c: Regenerate.
1761 * features/rs6000/powerpc-vsx64.c: Regenerate.
1762 * features/rs6000/powerpc-vsx64l.c: Regenerate.
1763 * features/rs6000/rs6000.c: Regenerate.
1764 * features/rx.c: Regenerate.
1765 * features/s390-gs-linux64.c: Regenerate.
1766 * features/s390-linux32.c: Regenerate.
1767 * features/s390-linux32v1.c: Regenerate.
1768 * features/s390-linux32v2.c: Regenerate.
1769 * features/s390-linux64.c: Regenerate.
1770 * features/s390-linux64v1.c: Regenerate.
1771 * features/s390-linux64v2.c: Regenerate.
1772 * features/s390-te-linux64.c: Regenerate.
1773 * features/s390-tevx-linux64.c: Regenerate.
1774 * features/s390-vx-linux64.c: Regenerate.
1775 * features/s390x-gs-linux64.c: Regenerate.
1776 * features/s390x-linux64.c: Regenerate.
1777 * features/s390x-linux64v1.c: Regenerate.
1778 * features/s390x-linux64v2.c: Regenerate.
1779 * features/s390x-te-linux64.c: Regenerate.
1780 * features/s390x-tevx-linux64.c: Regenerate.
1781 * features/s390x-vx-linux64.c: Regenerate.
1782 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
1783 from allocate_target_description.
1784 * target-descriptions.c (allocate_target_description): Update
1785 return type.
1786 (print_c_tdesc::visit_pre): Release unique_ptr returned from
1787 allocate_target_description.
1788
485c47e5
TT
17892020-10-07 Tom Tromey <tromey@adacore.com>
1790
1791 * unittests/search-memory-selftests.c: New file.
1792 * Makefile.in (SELFTESTS_SRCS): Add
1793 unittests/search-memory-selftests.c.
1794
3a135a91
TT
17952020-10-07 Tom Tromey <tromey@adacore.com>
1796
1797 PR gdb/16930:
1798 * findcmd.c (_initialize_mem_search): Mention that the range is
1799 inclusive.
1800
4a72de73
TT
18012020-10-07 Tom Tromey <tromey@adacore.com>
1802
1803 * target.h (simple_search_memory): Don't declare.
1804 * target.c (simple_search_memory): Move to gdbsupport.
1805 (default_search_memory): Update.
1806 * remote.c (remote_target::search_memory): Update.
1807
a038ffd8
SM
18082020-10-07 Simon Marchi <simon.marchi@efficios.com>
1809
1810 * Makefile.in (COMPILE): Add CXXFLAGS.
1811 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
1812 (check-headers): Add CXXFLAGS.
1813
cc463201
AK
18142020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
1815
1816 * arc-linux-tdep.h: New file.
1817 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
1818 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
1819 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
1820 arc_linux_gregset, arc_linux_v2_regset,
1821 arc_linux_iterate_over_regset_sections,
1822 arc_linux_core_read_description): Implement.
1823 (arc_linux_init_osabi): Set iterate_over_regset_sections.
1824 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
1825 (arc_gdbarch_features_create): Add.
1826 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
1827
e4bd363f
SV
18282020-10-07 Shahab Vahedi <shahab@synopsys.com>
1829
1830 * arch/arc.h: Rename "arc_gdbarch_features" to
1831 "arc_arch_features".
1832 * arc-tdep.h: Likewise.
1833 * arc-tdep.c: Likewise.
1834
b68bef99
TBA
18352020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1836
1837 * infcmd.c (attach_command): Remove the redundant call to
1838 `clear_proceed_status`.
1839
4641551a
KR
18402020-10-07 Kamil Rytarowski <n54@gmx.com>
1841
1842 * nat/netbsd-nat.c (write_memory, read_memory): Update.
1843
91e5e8db
KR
18442020-10-07 Kamil Rytarowski <n54@gmx.com>
1845
1846 * nat/netbsd-nat.c (write_memory, read_memory): Add.
1847 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
1848 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
1849
64c03bdb
SM
18502020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
1851
1852 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
1853 (_initialize_break_catch_sig): Don't allocate array.
1854
31a8f60f
AB
18552020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
1856
1857 * symtab.c (find_pc_line): Return unmapped addresses when the
1858 requested address is also unmapped.
1859
9e6dbd8b
SM
18602020-10-05 Simon Marchi <simon.marchi@efficios.com>
1861
1862 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
1863 tui/tui-out.h.
1864
a1d217e8
SM
18652020-10-05 Simon Marchi <simon.marchi@efficios.com>
1866
1867 * amd64-windows-tdep.c (amd64_windows_return_value): Use
1868 type::is_vector instead of TYPE_VECTOR.
1869
7d144117
SM
18702020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
1871
1872 * auto-load.c (auto_load_objfile_script_1): Don't use
1873 debugfile_holder as temporary variable when stripping drive
1874 letter.
1875
cd096ec8
HD
18762020-10-05 Hannes Domani <ssbssa@yahoo.de>
1877
1878 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
1879 Add TYPE_CODE_COMPLEX.
1880 (amd64_windows_return_value): Fix types returned via XMM0.
1881
b58e7f72
AH
18822020-10-05 Alan Hayward <alan.hayward@arm.com>
1883
1884 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
1885 AArch64/ARM maintainers.
1886
8d378f27
SM
18872020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
1888
1889 * NEWS: Mention set/show debug event-loop.
1890
d5519913
TT
18912020-10-02 Tom Tromey <tromey@adacore.com>
1892
1893 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
1894 REG_EXTENDED.
1895
18b67edc
SM
18962020-10-02 Simon Marchi <simon.marchi@efficios.com>
1897
1898 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
1899 * procfs.c (procfs_inferior_created): Remove.
1900 (_initialize_procfs): Don't register procfs_inferior_created.
1901
6b01403b
SM
19022020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1903
1904 * async-event.c (invoke_async_signal_handlers): Add debug
1905 print.
1906 (check_async_event_handlers): Likewise.
1907 * event-top.c (show_debug_event_loop): New function.
1908 (_initialize_event_top): Register "set debug event-loop"
1909 setting.
1910
ba988419
SM
19112020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1912
1913 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
1914 * debug.h: Remove.
1915 * infrun.c: Include gdbsupport/common-debug.h.
1916 * linux-nat.c: Likewise.
1917
db20ebdf
SM
19182020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1919
1920 * async-event.h (create_async_signal_handler): Add name
1921 parameter.
1922 (create_async_event_handler): Likewise.
1923 * async-event.c (struct async_signal_handler) <name>: New field.
1924 (struct async_event_handler) <name>: New field.
1925 (create_async_signal_handler): Assign name.
1926 (create_async_event_handler): Assign name.
1927 * event-top.c (async_init_signals): Pass name when creating
1928 handler.
1929 * infrun.c (_initialize_infrun): Likewise.
1930 * record-btrace.c (record_btrace_push_target): Likewise.
1931 * record-full.c (record_full_open): Likewise.
1932 * remote-notif.c (remote_notif_state_allocate): Likewise.
1933 * remote.c (remote_target::open_1): Likewise.
1934 * tui/tui-win.c (tui_initialize_win): Likewise.
1935
2554f6f5
SM
19362020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1937
1938 * async-event.c (initialize_async_signal_handlers): Pass name to
1939 add_file_handler
1940 * event-top.c (ui_register_input_event_handler): Likewise.
1941 * linux-nat.c (linux_nat_target::async): Likewise.
1942 * run-on-main-thread.c (_initialize_run_on_main_thread):
1943 Likewise
1944 * ser-base.c (reschedule): Likewise.
1945 (ser_base_async): Likewise.
1946 * tui/tui-io.c: Likewise.
1947 * top.h (struct ui) <num>: New field.
1948 * top.c (highest_ui_num): New variable.
1949 (ui::ui): Initialize num.
1950
a7aba266
SM
19512020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1952
1953 * observable.h <inferior_created>: Remove parameters. Update all
1954 listeners.
1955 * inferior.h (post_create_inferior): Remove target parameter.
1956 Update all callers.
1957
048fde1e 19582020-10-02 Nitika Achra <Nitika.Achra@amd.com>
1959
1960 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
1961 and DW_MACRO_undef_strx.
1962 (dwarf_decode_macros): Likewise
1963 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
1964 which is the value of DW_AT_str_offsets_base.
1965 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
1966 str_offsets_base.
1967
064280be
KR
19682020-10-01 Kamil Rytarowski <n54@gmx.com>
1969
1970 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
1971
6ff33035
KR
19722020-10-01 Kamil Rytarowski <n54@gmx.com>
1973
1974 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
1975 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
1976
1eb6eb79
KR
19772020-10-01 Kamil Rytarowski <n54@gmx.com>
1978
1979 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
1980
95eb9e54
TV
19812020-09-30 Tom de Vries <tdevries@suse.de>
1982
1983 PR symtab/26683
1984 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
1985
cae21f8e
TT
19862020-09-30 Tom Tromey <tromey@adacore.com>
1987
1988 * dwarf2/read.c (handle_variant): Use constant_value.
1989
529908cb
TT
19902020-09-29 Tom Tromey <tom@tromey.com>
1991
1992 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
1993 (read_file_scope, dwarf2_get_pc_bounds)
1994 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
1995 (read_structure_type, handle_struct_member_die)
1996 (read_enumeration_type, read_array_type, read_set_type)
1997 (read_tag_pointer_type, read_tag_reference_type)
1998 (read_subroutine_type, read_base_type, read_subrange_type)
1999 (read_full_die_1, partial_die_info::read)
2000 (partial_die_info::read, by, new_symbol)
2001 (dwarf2_const_value_data, dwarf2_const_value_attr)
2002 (dump_die_shallow, dwarf2_fetch_constant_bytes)
2003 (prepare_one_comp_unit): Update.
2004 * dwarf2/attribute.h (DW_UNSND): Remove.
2005
c45bc3f8
TT
20062020-09-29 Tom Tromey <tom@tromey.com>
2007
2008 * dwarf2/read.c (read_func_scope, prototyped_function_p)
2009 (read_subroutine_type, partial_die_info::read)
2010 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
2011 (dwarf2_add_member_fn): Update.
2012 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
2013 * dwarf2/attribute.c (attribute::as_boolean): New method.
2014
23dca5c3
TT
20152020-09-29 Tom Tromey <tom@tromey.com>
2016
2017 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
2018 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
2019 method.
2020 * dwarf2/attribute.c (attribute::as_virtuality): New method.
2021
52c14d11
TT
20222020-09-29 Tom Tromey <tom@tromey.com>
2023
2024 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
2025 the attribute's form.
2026
e8e5c158
TT
20272020-09-29 Tom Tromey <tom@tromey.com>
2028
2029 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
2030 (dwarf2_add_member_fn): Update.
2031 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
2032 * dwarf2/attribute.c (attribute::defaulted): New method, from
2033 is_valid_DW_AT_defaulted.
2034
d4df075e
TT
20352020-09-29 Tom Tromey <tom@tromey.com>
2036
2037 * dwarf2/read.c (dw2_get_file_names_reader)
2038 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
2039 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
2040 (dwarf2_symbol_mark_computed): Use as_unsigned.
2041 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
2042 method.
2043 <form_is_section_offset>: Update comment.
2044
bf23a268
TT
20452020-09-29 Tom Tromey <tom@tromey.com>
2046
2047 * dwarf2/read.c (dwarf2_access_attribute): Rename from
2048 dwarf2_default_access_attribute. Look up attribute.
2049 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
2050 Update.
2051
7a5f294d
TT
20522020-09-29 Tom Tromey <tom@tromey.com>
2053
2054 * dwarf2/read.c (skip_one_die): Update.
2055 (read_full_die_1): Change how reprocessing is done.
2056 (partial_die_info::read): Update.
2057 (read_attribute_value): Remove need_reprocess parameter.
2058 (read_attribute): Likewise.
2059 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
2060 New method.
2061
36d378cf
TT
20622020-09-29 Tom Tromey <tom@tromey.com>
2063
2064 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
2065 (dwarf2_const_value_attr, dump_die_shallow)
2066 (dwarf2_fetch_constant_bytes): Update.
2067 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
2068 comment.
2069 <set_address>: New method.
2070 (DW_ADDR): Remove.
2071 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
2072 (attribute::as_string, attribute::as_address): Add assert.
2073
fe56917a
TT
20742020-09-29 Tom Tromey <tom@tromey.com>
2075
2076 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
2077 (read_attribute_reprocess, read_attribute_value): Update.
2078 (read_attribute): Clear requires_reprocessing.
2079 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
2080 form_requires_reprocessing>: New methods.
2081 <string_init>: Clear requires_reprocessing.
2082 <set_unsigned_reprocess>: New method.
2083 <name>: Shrink by one bit.
2084 <requires_reprocessing>: New member.
2085 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
2086 method.
2087
414ad644
TT
20882020-09-29 Tom Tromey <tom@tromey.com>
2089
2090 * dwarf2/read.c (read_attribute_value): Update.
2091 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
2092 set_unsigned>: New methods.
2093 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
2094
1bc397c5
TT
20952020-09-29 Tom Tromey <tom@tromey.com>
2096
2097 * dwarf2/read.c (get_alignment, read_array_order)
2098 (read_attribute_value, dwarf2_const_value_attr)
2099 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
2100 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
2101 New methods.
2102 (DW_SND): Remove.
2103
630ed6b9
TT
21042020-09-29 Tom Tromey <tom@tromey.com>
2105
2106 * dwarf2/read.c (read_attribute_value, lookup_die_type)
2107 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
2108 Update.
2109 * dwarf2/attribute.h (struct attribute) <as_signature,
2110 set_signature>: New methods.
2111 (DW_SIGNATURE): Remove.
2112
9d2246fc
TT
21132020-09-29 Tom Tromey <tom@tromey.com>
2114
2115 * dwarf2/read.c (read_call_site_scope)
2116 (handle_data_member_location, dwarf2_add_member_fn)
2117 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
2118 (partial_die_info::read, read_attribute_value)
2119 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
2120 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
2121 (dwarf2_symbol_mark_computed): Update.
2122 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
2123 methods.
2124 (DW_BLOCK): Remove.
2125 * dwarf2/attribute.c (attribute::form_is_block): Add
2126 DW_FORM_data16.
2127
c6481205
TT
21282020-09-29 Tom Tromey <tom@tromey.com>
2129
2130 * dwarf2/read.c (read_cutu_die_from_dwo)
2131 (read_attribute_reprocess, read_attribute_value, read_attribute)
2132 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
2133 (dwarf2_fetch_constant_bytes): Update.
2134 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
2135 <set_string_noncanonical, set_string_canonical>: New methods.
2136 <string_is_canonical>: Update comment.
2137 <canonical_string_p>: Add assert.
2138 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
2139 * dwarf2/attribute.c (attribute::form_is_string): New method.
2140 (attribute::string): Use it.
2141
3b64bf15
TT
21422020-09-29 Tom Tromey <tom@tromey.com>
2143
2144 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
2145 (dump_die_shallow): Use canonical_string_p.
2146 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
2147 method.
2148
2c830f54
TT
21492020-09-29 Tom Tromey <tom@tromey.com>
2150
2151 * dwarf2/read.c (partial_die_info::read)
2152 (dwarf2_const_value_attr, anonymous_struct_prefix, )
2153 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
2154 attribute::as_string.
2155
6c412691
TT
21562020-09-29 Tom Tromey <tom@tromey.com>
2157
2158 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
2159 DW_ADDR.
2160 (attribute::string): Don't use DW_STRING.
2161 (attribute::get_ref_die_offset): Don't use DW_UNSND.
2162 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
2163
95f982e5
TT
21642020-09-29 Tom Tromey <tom@tromey.com>
2165
2166 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
2167 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
2168 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
2169 * dwarf2/attribute.h (struct attribute): Rename methods.
2170 * dwarf2/attribute.c (attribute::as_address): Rename from
2171 value_as_address.
2172 (attribute::as_string): Rename from value_as_string.
2173
f800b00e
TT
21742020-09-29 Tom Tromey <tom@tromey.com>
2175
2176 * dwarf2/read.c (partial_die_info::read) <case
2177 DW_AT_linkage_name>: Use value_as_string.
2178 (dwarf2_string_attr): Use value_as_string.
2179 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
2180 method.
2181 * dwarf2/attribute.c (attribute::value_as_string): New method.
2182
de38d64a
PA
21832020-09-29 Pedro Alves <pedro@palves.net>
2184
2185 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
2186 defined before using '#pragma GCC diagnostic' instead of checking
2187 __clang__.
2188
9aed480c
TT
21892020-09-28 Tom Tromey <tom@tromey.com>
2190
2191 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
2192 (handle_signal_stop): Update.
2193 * procfs.c (procfs_target::insert_watchpoint): Update.
2194 * target.h (target_have_steppable_watchpoint): Now a function.
2195
8a3ecb79
TT
21962020-09-28 Tom Tromey <tom@tromey.com>
2197
2198 * infrun.c (set_schedlock_func): Update.
2199 * target.h (target_can_lock_scheduler): Now a function.
2200
55f6301a
TT
22012020-09-28 Tom Tromey <tom@tromey.com>
2202
2203 * inferior.h (class inferior) <has_execution>: Update.
2204 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2205 * valops.c (find_function_in_inferior)
2206 (value_allocate_space_in_inferior): Update.
2207 * top.c (kill_or_detach): Update.
2208 * target.c (target_preopen, set_target_permissions): Update.
2209 (target_has_execution_current): Remove.
2210 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
2211 Update.
2212 * solib.c (update_solib_list, reload_shared_libraries): Update.
2213 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
2214 * solib-dsbt.c (enable_break): Update.
2215 * score-tdep.c (score7_fetch_inst): Update.
2216 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
2217 Update.
2218 * remote.c (remote_target::start_remote)
2219 (remote_target::remote_check_symbols, remote_target::open_1)
2220 (remote_target::remote_detach_1, remote_target::verify_memory)
2221 (remote_target::xfer_partial, remote_target::read_description)
2222 (remote_target::get_min_fast_tracepoint_insn_len): Update.
2223 * record-full.c (record_full_open_1): Update.
2224 * record-btrace.c (record_btrace_target_open): Update.
2225 * objc-lang.c (lookup_objc_class, lookup_child_selector)
2226 (value_nsstring): Update.
2227 * linux-thread-db.c (add_thread_db_info)
2228 (thread_db_find_new_threads_silently, check_thread_db_callback)
2229 (try_thread_db_load_1, record_thread): Update.
2230 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
2231 Update.
2232 * linux-fork.c (checkpoint_command): Update.
2233 * infrun.c (set_non_stop, set_observer_mode)
2234 (check_multi_target_resumption, for_each_just_stopped_thread)
2235 (maybe_remove_breakpoints, normal_stop)
2236 (class infcall_suspend_state): Update.
2237 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
2238 (info_program_command, attach_command): Update.
2239 * infcall.c (call_function_by_hand_dummy): Update.
2240 * inf-loop.c (inferior_event_handler): Update.
2241 * gcore.c (gcore_command, derive_heap_segment): Update.
2242 * exec.c (exec_file_command): Update.
2243 * eval.c (evaluate_subexp): Update.
2244 * compile/compile.c (compile_to_object): Update.
2245 * cli/cli-dump.c (restore_command): Update.
2246 * breakpoint.c (update_watchpoint)
2247 (update_inserted_breakpoint_locations)
2248 (insert_breakpoint_locations, get_bpstat_thread): Update.
2249 * target.h (target_has_execution): Remove macro.
2250 (target_has_execution_current): Don't declare.
2251 (target_has_execution): Rename from target_has_execution_1. Add
2252 argument default.
2253
05374cfd
TT
22542020-09-28 Tom Tromey <tom@tromey.com>
2255
2256 * mi/mi-main.c (exec_reverse_continue)
2257 (mi_cmd_list_target_features): Update.
2258 * infrun.c (set_exec_direction_func): Update.
2259 * target.c (default_execution_direction): Update.
2260 * reverse.c (exec_reverse_once): Update.
2261 * target.h (target_can_execute_reverse): Now a function.
2262
9dccd06e
TT
22632020-09-28 Tom Tromey <tom@tromey.com>
2264
2265 * tui/tui-regs.c (tui_get_register)
2266 (tui_data_window::show_registers): Update.
2267 * thread.c (scoped_restore_current_thread::restore)
2268 (scoped_restore_current_thread::scoped_restore_current_thread):
2269 Update.
2270 * regcache-dump.c (regcache_print): Update.
2271 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2272 Update.
2273 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
2274 * mep-tdep.c (current_me_module, current_options): Update.
2275 * linux-thread-db.c (thread_db_load): Update.
2276 * infcmd.c (registers_info, info_vector_command)
2277 (info_float_command): Update.
2278 * ia64-tdep.c (ia64_frame_prev_register)
2279 (ia64_sigtramp_frame_prev_register): Update.
2280 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
2281 * gcore.c (derive_stack_segment): Update.
2282 * frame.c (get_current_frame, has_stack_frames): Update.
2283 * findvar.c (language_defn::read_var_value): Update.
2284 * arm-tdep.c (arm_pc_is_thumb): Update.
2285 * target.c (target_has_registers): Rename from
2286 target_has_registers_1.
2287 * target.h (target_has_registers): Remove macro.
2288 (target_has_registers): Rename from target_has_registers_1.
2289
841de120
TT
22902020-09-28 Tom Tromey <tom@tromey.com>
2291
2292 * windows-tdep.c (tlb_make_value): Update.
2293 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2294 * thread.c (scoped_restore_current_thread::restore)
2295 (scoped_restore_current_thread::scoped_restore_current_thread)
2296 (thread_command): Update.
2297 * stack.c (backtrace_command_1, frame_apply_level_command)
2298 (frame_apply_all_command, frame_apply_command): Update.
2299 * infrun.c (siginfo_make_value, restore_infcall_control_state):
2300 Update.
2301 * gcore.c (derive_stack_segment): Update.
2302 * frame.c (get_current_frame, has_stack_frames): Update.
2303 * auxv.c (info_auxv_command): Update.
2304 * ada-tasks.c (ada_build_task_list): Update.
2305 * target.c (target_has_stack): Rename from target_has_stack_1.
2306 * target.h (target_has_stack): Remove macro.
2307 (target_has_stack): Rename from target_has_stack_1.
2308
a739972c
TT
23092020-09-28 Tom Tromey <tom@tromey.com>
2310
2311 * target.c (target_has_memory): Rename from target_has_memory_1.
2312 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2313 * thread.c (scoped_restore_current_thread::restore)
2314 (scoped_restore_current_thread::scoped_restore_current_thread):
2315 Update.
2316 * frame.c (get_current_frame, has_stack_frames): Update.
2317 * target.h (target_has_memory): Remove macro.
2318 (target_has_memory): Rename from target_has_memory_1.
2319
5b8a4776
TT
23202020-09-28 Tom Tromey <tom@tromey.com>
2321
2322 * target.c (target_has_all_memory_1): Remove.
2323 * target.h (target_has_all_memory): Remove define.
2324 (target_has_all_memory_1): Don't declare.
2325
bd356ec6
SM
23262020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
2327
2328 * ser-base.c: Adjust comments formatting.
2329
2c72d5e5
TT
23302020-09-27 Tom Tromey <tom@tromey.com>
2331
2332 PR tui/25342:
2333 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
2334
35a98237
TT
23352020-09-27 Tom Tromey <tom@tromey.com>
2336
2337 PR tui/25342:
2338 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
2339
9e820dec
TT
23402020-09-27 Tom Tromey <tom@tromey.com>
2341
2342 * unittests/tui-selftests.c: Update.
2343 * tui/tui-winsource.h (struct tui_source_window_base)
2344 <extra_margin, show_line_number, refresh_pad>: New methods.
2345 <m_max_length, m_pad>: New members.
2346 (tui_copy_source_line): Update.
2347 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
2348 first_col, line_width, ndigits parameters. Add length.
2349 (tui_source_window_base::show_source_line): Write to pad. Line
2350 number now 0-based.
2351 (tui_source_window_base::refresh_pad): New method.
2352 (tui_source_window_base::show_source_content): Write to pad. Call
2353 refresh_pad.
2354 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
2355 not refill.
2356 (tui_source_window_base::update_exec_info): Call
2357 show_line_number.
2358 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
2359 method.
2360 <m_digits>: New member.
2361 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
2362 and m_max_length.
2363 (tui_source_window::show_line_number): New method.
2364 * tui/tui-io.h (tui_puts): Fix comment.
2365 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
2366 m_max_length.
2367
c15c15c8
TT
23682020-09-27 Tom Tromey <tom@tromey.com>
2369
2370 * tui/tui-winsource.c
2371 (tui_source_window_base::set_is_exec_point_at): Don't call
2372 show_source_line.
2373
149830c1
TT
23742020-09-27 Tom Tromey <tom@tromey.com>
2375
2376 * python/py-tui.c (class tui_py_window) <refresh_window>: New
2377 method.
2378 <erase>: Update.
2379 <cursor_x, cursor_y>: Remove.
2380 <m_inner_window>: New member.
2381 (tui_py_window::rerender): Create inner window.
2382 (tui_py_window::output): Write to inner window.
2383
8f9929bb
GR
23842020-09-26 Gareth Rees <grees@undo.io> (tiny change)
2385
2386 PR python/26586
2387 * cli/cli-script.c (execute_control_commands): don't set
2388 instream to nullptr here as this breaks the from_tty argument
2389 to gdb.execute in Python.
2390 (execute_user_command): set instream to nullptr here instead.
2391
956bdb59
SM
23922020-09-25 Simon Marchi <simon.marchi@efficios.com>
2393
2394 * infrun.h (infrun_debug_printf): Fix formatting.
2395 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
2396
3b93626b
SJ
23972020-09-25 Saagar Jha <saagar@saagarjha.com>
2398
2399 * compile/compile-object-load.h (struct munmap_list): Add
2400 explicitly-defined move constructor.
2401
b551a89f
TT
24022020-09-24 Tom Tromey <tromey@adacore.com>
2403
2404 PR tui/26638:
2405 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
2406 method.
2407 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
2408 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
2409 (tui_prev_win): Rewrite.
2410
99bb393f
HD
24112020-09-23 Hannes Domani <ssbssa@yahoo.de>
2412
2413 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
2414 in WOW64 processes as SIGINT.
2415 * nat/windows-nat.h: Make wow64_process a shared variable.
2416 * windows-nat.c: Remove static wow64_process variable.
2417
20a5fcbd
TT
24182020-09-23 Tom Tromey <tom@tromey.com>
2419
2420 PR symtab/25470:
2421 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
2422 offset and bit size.
2423 * printcmd.c (print_scalar_formatted): Handle zero-length
2424 integer.
2425 (print_scalar_formatted): Use bit_size_differs_p.
2426 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
2427 constant.
2428 (union type_specific): <int_stuff>: New member.
2429 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
2430 methods.
2431 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
2432 TYPE_SPECIFIC_FIELD.
2433 (recursive_dump_type, copy_type_recursive): Update.
2434 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
2435 DW_AT_data_bit_offset.
2436
bac51ab7
TT
24372020-09-23 Tom Tromey <tom@tromey.com>
2438
2439 * utils.h (class gdb_argv): Add move operators.
2440 <append>: New methods.
2441 * compile/compile.c (build_argc_argv): Remove.
2442 (compile_args_argc): Remove.
2443 (compile_args_argv): Change type.
2444 (set_compile_args): Simplify.
2445 (append_args): Remove.
2446 (filter_args): Remove argcp parameter.
2447 (get_args): Return gdb_argv. Simplify.
2448 (compile_to_object): Update.
2449
92677124
TT
24502020-09-23 Tom Tromey <tom@tromey.com>
2451
2452 * compile/compile-object-run.c (do_module_cleanup)
2453 <~do_module_cleanup> :Remove.
2454 (do_module_cleanup): Update.
2455 * compile/compile-object-load.h (struct munmap_list): Add move
2456 assignment operator.
2457 <source_file>: Now a std::string.
2458 <munmap_list>: Rename. No longer a pointer.
2459 * compile/compile-object-load.c (struct setup_sections_data): Add
2460 constructor.
2461 <setup_one_section>: Declare.
2462 <munmap_list>: Move earlier.
2463 <m_bfd>: New member.
2464 <m_last_size, m_last_section_first, m_last_prot,
2465 m_last_max_alignment>: Rename, add initializers where needed.
2466 (setup_sections_data::setup_one_section): Rename from
2467 setup_sections. Update.
2468 (compile_object_load): Update. Don't use bfd_map_over_sections.
2469
e616f60a
TT
24702020-09-23 Tom Tromey <tom@tromey.com>
2471
2472 * compile/compile-object-run.c (struct do_module_cleanup): Add
2473 parameters to constructor. Update destructor.
2474 <source_file, scope, scope_data, out_value_type, out_value_addr,
2475 munmap_list_head, objfile_name_string>: Remove.
2476 <module>: New member.
2477 (do_module_cleanup): Update.
2478 (compile_object_run): Update.
2479
e947a848
TT
24802020-09-23 Tom Tromey <tom@tromey.com>
2481
2482 * compile/compile.c (eval_compile_command): Update.
2483 * compile/compile-object-run.h (compile_object_run): Take a
2484 compile_module_up.
2485 * compile/compile-object-run.c (compile_object_run): Take a
2486 compile_module_up.
2487 * compile/compile-object-load.h (struct compile_module): Add
2488 constructor, destructor.
2489 (compile_module_up): New typedef.
2490 (compile_object_load): Return compile_object_up.
2491 * compile/compile-object-load.c (compile_object_load): Return
2492 compile_module_up.
2493
0dbf6ee6
TT
24942020-09-23 Tom Tromey <tom@tromey.com>
2495
2496 * compile/compile-object-run.c (struct do_module_cleanup): Add
2497 constructor, destructor.
2498 <objfile_name_string>: Don't use struct hack.
2499 (do_module_cleanup): Use delete.
2500 (compile_object_run): Use new.
2501
ebe824f5
TT
25022020-09-23 Tom Tromey <tom@tromey.com>
2503
2504 * compile/compile-cplus-types.c
2505 (compile_cplus_convert_struct_or_union): Use std::vector.
2506 (compile_cplus_convert_func): Likewise.
2507 * compile/compile-c-types.c (convert_func): Use std::vector.
2508
5dd918d9
TT
25092020-09-21 Tom Tromey <tromey@adacore.com>
2510
2511 * sparc-tdep.c (sparc32_skip_prologue): Use
2512 skip_prologue_using_sal.
2513
5486c517
TT
25142020-09-19 Tom Tromey <tom@tromey.com>
2515
2516 * symfile.c (add_section_size_callback): Remove.
2517 (load_one_section): Rename from load_section_callback. Change
2518 parameters.
2519 (generic_load): Use foreach.
2520
8a6bb1d1
TT
25212020-09-19 Tom Tromey <tom@tromey.com>
2522
2523 * exec.c (add_to_section_table): Remove.
2524 (build_section_table): Use foreach.
2525
08f93a1a
TT
25262020-09-19 Tom Tromey <tom@tromey.com>
2527
2528 * elfread.c (elf_locate_sections): Change parameters.
2529 (elf_symfile_read): Use foreach.
2530
03cd72b8
TT
25312020-09-19 Tom Tromey <tom@tromey.com>
2532
2533 * cli/cli-dump.c (struct callback_data): Remove.
2534 (restore_one_section): Rename from restore_section_callback.
2535 Change parameters.
2536 (restore_binary_file): Change parameters.
2537 (restore_command): Use foreach.
2538
f4f2b85f
TT
25392020-09-19 Tom Tromey <tom@tromey.com>
2540
2541 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
2542 (gcore_copy_callback): Likewise.
2543 (gcore_memory_sections): Use foreach.
2544
b35c1d1c
TT
25452020-09-19 Tom Tromey <tom@tromey.com>
2546
2547 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
2548 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
2549 parameters.
2550 (generic_elf_osabi_sniffer): Use foreach.
2551 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
2552 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
2553
5bb6e9dd
TT
25542020-09-19 Tom Tromey <tom@tromey.com>
2555
2556 * dwarf2/read.c (locate_dwz_sections): Change parameters.
2557 (dwarf2_get_dwz_file): Use foreach.
2558 (dwarf2_locate_dwo_sections): Change parameters.
2559 (open_and_init_dwo_file): Use foreach.
2560 (dwarf2_locate_common_dwp_sections): Change parameters.
2561 (open_and_init_dwp_file): Use foreach.
2562
ad7277da
TT
25632020-09-19 Tom Tromey <tom@tromey.com>
2564
2565 * symfile.h: (find_lowest_section): Don't declare.
2566 * symfile.c (find_lowest_section): Now static. Change
2567 parameters.
2568 (struct place_section_arg): Remove.
2569 (place_section): Change parameters.
2570 (addr_info_make_relative): Use foreach.
2571 (symfile_dummy_outputs): Remove.
2572 (default_symfile_relocate): Use foreach.
2573
cb814f2e
TT
25742020-09-19 Tom Tromey <tom@tromey.com>
2575
2576 * objfiles.c (add_to_objfile_sections): Rename from
2577 add_to_objfile_sections_full.
2578 (add_to_objfile_sections): Remove.
2579 (build_objfile_section_table): Use foreach.
2580
3cabfd26
TT
25812020-09-19 Tom Tromey <tom@tromey.com>
2582
2583 * stap-probe.c (get_stap_base_address_1): Remove.
2584 (get_stap_base_address): Use foreach.
2585
1ce51eb5
TT
25862020-09-19 Tom Tromey <tom@tromey.com>
2587
2588 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
2589 parameters.
2590 (gdb_bfd_close_or_warn): Use foreach.
2591
a190fabb
TT
25922020-09-19 Tom Tromey <tom@tromey.com>
2593
2594 * corelow.c (add_to_thread_list): Change parameters.
2595 (core_target_open): Use foreach.
2596
cafb0d81
TT
25972020-09-19 Tom Tromey <tom@tromey.com>
2598
2599 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
2600 existing function.
2601
c8d5abea
AB
26022020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2603
2604 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
2605 for arrays.
2606
6d816919
AB
26072020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2608
2609 * eval.c: Remove 'f-lang.h' include.
2610 (value_f90_subarray): Moved to f-lang.c.
2611 (eval_call): Renamed to...
2612 (evaluate_subexp_do_call): ...this, is no longer static, header
2613 comment moved into header file.
2614 (evaluate_funcall): Update call to eval_call.
2615 (skip_undetermined_arglist): Moved to f-lang.c.
2616 (fortran_value_subarray): Likewise.
2617 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
2618 moved to evaluate_subexp_f.
2619 (calc_f77_array_dims): Moved to f-lang.c
2620 * expprint.c (print_subexp_funcall): New function.
2621 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
2622 moved to print_subexp_f, OP_FUNCALL uses new function.
2623 (dump_subexp_body_funcall): New function.
2624 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
2625 moved to dump_subexp_f, OP_FUNCALL uses new function.
2626 * expression.h (evaluate_subexp_do_call): Declare.
2627 * f-lang.c (value_f90_subarray): Moved from eval.c.
2628 (skip_undetermined_arglist): Likewise.
2629 (calc_f77_array_dims): Likewise.
2630 (fortran_value_subarray): Likewise.
2631 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
2632 (operator_length_f): Likewise.
2633 (print_subexp_f): Likewise.
2634 (dump_subexp_body_f): Likewise.
2635 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
2636 declaration of this operation to here.
2637 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
2638 support moved to operator_length_f.
2639 * parser-defs.h (dump_subexp_body_funcall): Declare.
2640 (print_subexp_funcall): Declare.
2641 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
2642 fortran-operator.def.
2643
8c37706a
AB
26442020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2645
2646 * eval.c (fortran_value_subarray): New function, content is taken
2647 from...
2648 (evaluate_subexp_standard): ...here, in two places. Now arrays
2649 and strings both call the new function.
2650 (calc_f77_array_dims): Add header comment, handle strings.
2651
14f9473c
VC
26522020-09-18 Victor Collod <vcollod@nvidia.com>
2653
2654 PR gdb/26635
2655 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
2656 (i386_analyze_prologue): Call i386_skip_endbr.
2657
b60cea74
TT
26582020-09-18 Tom Tromey <tromey@adacore.com>
2659
2660 * windows-nat.c (struct windows_nat_target) <wait>: Update.
2661 (windows_nat_target::wait): Update.
2662 * target/wait.h (enum target_wait_flag): New. Use
2663 DEF_ENUM_FLAGS_TYPE.
2664 * target/target.h (target_wait): Change type of options.
2665 * target.h (target_options_to_string, default_target_wait):
2666 Update.
2667 (struct target_ops) <wait>: Change type of options.
2668 * target.c (target_wait, default_target_wait, do_option): Change
2669 type of "options".
2670 (target_options_to_string): Likewise.
2671 * target-delegates.c: Rebuild.
2672 * target-debug.h (target_debug_print_target_wait_flags): Rename
2673 from target_debug_print_options.
2674 * sol-thread.c (class sol_thread_target) <wait>: Update.
2675 (sol_thread_target::wait): Update.
2676 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
2677 (rs6000_nat_target::wait): Update.
2678 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
2679 Update.
2680 (remote_target::wait_ns, remote_target::wait_as): Change type of
2681 "options".
2682 (remote_target::wait): Update.
2683 * remote-sim.c (struct gdbsim_target) <wait>: Update.
2684 (gdbsim_target::wait): Update.
2685 * record-full.c (class record_full_base_target) <wait>: Update.
2686 (record_full_wait_1): Change type of "options".
2687 (record_full_base_target::wait): Update.
2688 * record-btrace.c (class record_btrace_target) <wait>: Update.
2689 (record_btrace_target::wait): Update.
2690 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
2691 Update.
2692 (ravenscar_thread_target::wait): Update.
2693 * procfs.c (class procfs_target) <wait>: Update.
2694 (procfs_target::wait): Update.
2695 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
2696 * obsd-nat.c (obsd_nat_target::wait): Update.
2697 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
2698 (nto_procfs_target::wait): Update.
2699 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
2700 * nbsd-nat.c (nbsd_wait): Change type of "options".
2701 (nbsd_nat_target::wait): Update.
2702 * linux-thread-db.c (class thread_db_target) <wait>: Update.
2703 (thread_db_target::wait): Update.
2704 * linux-nat.h (class linux_nat_target) <wait>: Update.
2705 * linux-nat.c (linux_nat_target::wait): Update.
2706 (linux_nat_wait_1): Update.
2707 * infrun.c (do_target_wait_1, do_target_wait): Change type of
2708 "options".
2709 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
2710 * inf-ptrace.c (inf_ptrace_target::wait): Update.
2711 * go32-nat.c (struct go32_nat_target) <wait>: Update.
2712 (go32_nat_target::wait): Update.
2713 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
2714 * gnu-nat.c (gnu_nat_target::wait): Update.
2715 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
2716 * fbsd-nat.c (fbsd_nat_target::wait): Update.
2717 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
2718 * darwin-nat.c (darwin_nat_target::wait): Update.
2719 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
2720 (bsd_uthread_target::wait): Update.
2721 * aix-thread.c (class aix_thread_target) <wait>: Update.
2722 (aix_thread_target::wait): Update.
2723
0295dde6
AB
27242020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
2725
2726 * compile/compile-object-run.c (create_copied_type_recursive): New
2727 function.
2728 (compile_object_run): Use new function.
2729
d3483b43
JT
27302020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
2731
2732 * NEWS: Mention x86_64 Cygwin core file support.
2733
e7d612ad
JT
27342020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2735
2736 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
2737 (core_process_module_section): Handle NOTE_INFO_MODULE64.
2738
aff9d387
JT
27392020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2740
62a5151b
JT
2741 * windows-tdep.h: Add prototypes.
2742 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
2743 (i386_windows_core_pid_to_str): Move and rename ...
2744 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
2745 (windows_core_pid_to_str): ... and here.
2746 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
2747
27482020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
2749 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
2750 (amd64_windows_init_abi_common): ... and register.
2751
7d155da3
JT
27522020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2753
2754 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
2755 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
2756
e8ef12b9
PA
27572020-09-18 Pedro Alves <pedro@palves.net>
2758
2759 PR gdb/26631
2760 * thread.c (thread_find_command): Switch inferior before calling
2761 target methods.
2762
c1e1314d
TT
27632020-09-17 Tom Tromey <tromey@adacore.com>
2764
2765 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
2766 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
2767 (tdesc_arch_data_up): New typedef.
2768 (tdesc_use_registers, tdesc_data_alloc): Update.
2769 (tdesc_data_cleanup): Don't declare.
2770 * target-descriptions.c (tdesc_data_alloc): Return a
2771 tdesc_arch_data_up.
2772 (tdesc_arch_data_deleter::operator()): Rename from
2773 tdesc_data_cleanup. Change argument type.
2774 (tdesc_use_registers): Change early_data to an rvalue reference.
2775 (tdesc_use_registers): Don't use delete.
2776 * sparc-tdep.c (sparc32_gdbarch_init): Update.
2777 * s390-tdep.c (s390_gdbarch_init): Update.
2778 * rx-tdep.c (rx_gdbarch_init): Update.
2779 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2780 * riscv-tdep.c (riscv_gdbarch_init): Update.
2781 * or1k-tdep.c (or1k_gdbarch_init): Update.
2782 * nios2-tdep.c (nios2_gdbarch_init): Update.
2783 * nds32-tdep.c (nds32_gdbarch_init): Update.
2784 * mips-tdep.c (mips_gdbarch_init): Update.
2785 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
2786 * m68k-tdep.c (m68k_gdbarch_init): Update.
2787 * i386-tdep.c (i386_gdbarch_init): Update.
2788 * arm-tdep.c (arm_gdbarch_init): Update.
2789 * arc-tdep.c (arc_tdesc_init): Update.
2790 (arc_gdbarch_init): Update.
2791 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
2792
0363df3d
HD
27932020-09-17 Hannes Domani <ssbssa@yahoo.de>
2794
2795 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
2796 for WOW64 processes.
2797
280a9412
TT
27982020-09-17 Tom Tromey <tom@tromey.com>
2799
2800 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
2801
6108fd18
TT
28022020-09-17 Tom Tromey <tom@tromey.com>
2803
2804 * value.c (preserve_values): Update.
2805 * python/py-type.c (save_objfile_types): Update.
2806 * guile/scm-type.c (save_objfile_types): Update.
2807 * gdbtypes.h (create_copied_types_hash): Return htab_up.
2808 * gdbtypes.c (create_copied_types_hash): Return htab_up.
2809 * compile/compile-object-run.c (compile_object_run): Update.
2810
fa9b1164
TT
28112020-09-17 Tom Tromey <tom@tromey.com>
2812
2813 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
2814 Remove.
2815 <m_table>: Now htab_up.
2816 * typeprint.c (typedef_hash_table::recursively_update)
2817 (typedef_hash_table::add_template_parameters)
2818 (typedef_hash_table::typedef_hash_table): Update.
2819 (typedef_hash_table::~typedef_hash_table): Remove.
2820 (typedef_hash_table::typedef_hash_table)
2821 (typedef_hash_table::find_global_typedef)
2822 (typedef_hash_table::find_typedef): Update.
2823
eb53f105
TT
28242020-09-17 Tom Tromey <tom@tromey.com>
2825
2826 * target-descriptions.c (tdesc_use_registers): Use htab_up.
2827
7a8a5d47
TT
28282020-09-17 Tom Tromey <tom@tromey.com>
2829
2830 * linespec.c (class decode_compound_collector)
2831 <~decode_compound_collector>: Remove.
2832 <m_unique_syms>: Now htab_up.
2833 (decode_compound_collector::operator ()): Update.
2834 (class symtab_collector) <~symtab_collector>: Remove.
2835 <m_symtab_table>: Now htab_up.
2836 (symtab_collector::operator ()): Update.
2837
99032cfc
TT
28382020-09-17 Tom Tromey <tom@tromey.com>
2839
2840 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
2841 (filename_seen_cache::clear): Update.
2842 (~filename_seen_cache): Remove.
2843 (filename_seen_cache::seen): Update.
2844 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
2845 htab_up.
2846 <~filename_seen_cache>: Remove.
2847 <traverse>: Update.
2848
32580f6d
TT
28492020-09-17 Tom Tromey <tom@tromey.com>
2850
2851 * completer.c (completion_tracker::discard_completions)
2852 (completion_tracker::~completion_tracker)
2853 (completion_tracker::maybe_add_completion)
2854 (completion_tracker::remove_completion)
2855 (completion_tracker::recompute_lowest_common_denominator)
2856 (completion_tracker::build_completion_result): Update.
2857 * completer.h (class completion_tracker) <have_completions>:
2858 Update.
2859 <m_entries_hash>: Now htab_up.
2860
c1fb9836
TT
28612020-09-17 Tom Tromey <tom@tromey.com>
2862
2863 * breakpoint.c (ambiguous_names_p): Use htab_up.
2864
88f07206
TT
28652020-09-17 Tom Tromey <tom@tromey.com>
2866
2867 * auto-load.c (struct auto_load_pspace_info)
2868 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
2869 <loaded_script_files, loaded_script_texts>: Change type to
2870 htab_up.
2871 (~auto_load_pspace_info) Remove.
2872 (init_loaded_scripts_info, maybe_add_script_file)
2873 (maybe_add_script_text, auto_load_info_scripts): Update.
2874
9519b2ee
TT
28752020-09-17 Tom Tromey <tromey@adacore.com>
2876
2877 * c-exp.y (name_obstack): Now static.
2878
d2cd4113
CC
28792020-09-17 Chungyi Chi <demonic@csie.io>
2880
2881 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
2882
b650a282
SM
28832020-09-16 Simon Marchi <simon.marchi@efficios.com>
2884
2885 * breakpoint.h (init_catchpoint): Change int parameter to bool.
2886 (add_solib_catchpoint): Likewise.
2887 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
2888 to bool.
2889 (add_solib_catchpoint): Change int parameter/variable to bool.
2890 (catch_load_or_unload): Likewise.
2891 (init_catchpoint): Likewise.
2892 (create_fork_vfork_event_catchpoint): Likewise.
2893 (catch_fork_command_1): Likewise.
2894 (catch_exec_command_1): Likewise.
2895
4d0bcfcf
SM
28962020-09-16 Simon Marchi <simon.marchi@efficios.com>
2897
2898 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
2899 Change instance_flags to m_instance_flags.
2900
fe830662
TT
29012020-09-16 Tom Tromey <tromey@adacore.com>
2902
2903 PR gdb/26598:
2904 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
2905
fe5ddfc3
JB
29062020-09-16 John Baldwin <jhb@FreeBSD.org>
2907
2908 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
2909 PL_FLAG_EXEC.
2910 (fbsd_nat_target::insert_exec_catchpoint)
2911 (fbsd_nat_target::remove_exec_catchpoint): Always define.
2912 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
2913 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
2914
e911c666
JB
29152020-09-16 John Baldwin <jhb@FreeBSD.org>
2916
2917 * configure.ac: Remove check for kinfo_getvmmap().
2918 * configure, config.in: Regenerate.
2919 * fbsd-nat.c (fbsd_read_mapping): Remove
2920 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
2921 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
2922 kinfo_get_vmmap() are always present.
2923
1f17d372
JB
29242020-09-16 John Baldwin <jhb@FreeBSD.org>
2925
2926 * fbsd-nat.c: Always include support for
2927 TARGET_OBJECT_SIGNAL_INFO.
2928
bcb1da7f
JB
29292020-09-16 John Baldwin <jhb@FreeBSD.org>
2930
2931 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
2932 sysctl and remove procfs fallback.
2933
5515f729
JB
29342020-09-16 John Baldwin <jhb@FreeBSD.org>
2935
2936 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
2937 * fbsd-nat.h: Likewise.
2938
da1df1db
TBA
29392020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2940
2941 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
2942 argument.
2943
0e25e767
AB
29442020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2945
2946 * ada-lang.c (ada_language_data): Delete.
2947 (ada_language): Remove references to ada_language_data.
2948 * c-lang.c (c_language_data): Delete.
2949 (c_language): Remove references to c_language_data.
2950 (cplus_language_data): Delete.
2951 (cplus_language): Remove references to cplus_language_data.
2952 (asm_language_data): Delete.
2953 (asm_language): Remove references to asm_language_data.
2954 (minimal_language_data): Delete.
2955 (minimal_language): Remove references to minimal_language_data.
2956 * d-lang.c (d_language_data): Delete.
2957 (d_language): Remove references to d_language_data.
2958 * f-lang.c (f_language_data): Delete.
2959 (f_language): Remove references to f_language_data.
2960 * go-lang.c (go_language_data): Delete.
2961 (go_language): Remove references to go_language_data.
2962 * language.c (unknown_language_data): Delete.
2963 (unknown_language): Remove references to unknown_language_data.
2964 (auto_language_data): Delete.
2965 (auto_language): Remove references to auto_language_data.
2966 * language.h (language_data): Delete struct.
2967 (language_defn): No longer inherit from language_data.
2968 * m2-lang.c (m2_language_data): Delete.
2969 (m2_language): Remove references to m2_language_data.
2970 * objc-lang.c (objc_language_data): Delete.
2971 (objc_language): Remove references to objc_language_data.
2972 * opencl-lang.c (opencl_language_data): Delete.
2973 (opencl_language): Remove references to opencl_language_data.
2974 * p-lang.c (pascal_language_data): Delete.
2975 (pascal_language): Remove references to pascal_language_data.
2976 * rust-lang.c (rust_language_data): Delete.
2977 (rust_language): Remove references to rust_language_data.
2978
b7c6e27d
AB
29792020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2980
2981 * ada-lang.c (ada_language_data): Remove la_op_print_tab
2982 initializer.
2983 (ada_language::opcode_print_table): New member function.
2984 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
2985 (c_language::opcode_print_table): New member function.
2986 (cplus_language_data): Remove la_op_print_tab initializer.
2987 (cplus_language::opcode_print_table): New member function.
2988 (asm_language_data): Remove la_op_print_tab initializer.
2989 (asm_language::opcode_print_table): New member function.
2990 (minimal_language_data): Remove la_op_print_tab initializer.
2991 (minimal_language::opcode_print_table): New member function.
2992 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
2993 (d_language::opcode_print_table): New member function.
2994 * expprint.c (print_subexp_standard): Update call to
2995 opcode_print_table.
2996 (op_string): Likewise.
2997 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
2998 (f_language::opcode_print_table): New member function.
2999 * go-lang.c (go_language_data): Remove la_op_print_tab
3000 initializer.
3001 (go_language::opcode_print_table): New member function.
3002 * language.c (unknown_language_data): Remove la_op_print_tab
3003 initializer.
3004 (unknown_language::opcode_print_table): New member function.
3005 (auto_language_data): Remove la_op_print_tab initializer.
3006 (auto_language::opcode_print_table): New member function.
3007 * language.h (language_data): Remove la_op_print_tab field.
3008 (language_defn::opcode_print_table): Declare new member function.
3009 * m2-lang.c (m2_language_data): Remove la_op_print_tab
3010 initializer.
3011 (m2_language::opcode_print_table): New member function.
3012 * objc-lang.c (objc_language_data): Remove la_op_print_tab
3013 initializer.
3014 (objc_language::opcode_print_table): New member function.
3015 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
3016 initializer.
3017 (opencl_language::opcode_print_table): New member function.
3018 * p-lang.c (pascal_language_data): Remove la_op_print_tab
3019 initializer.
3020 (pascal_language::opcode_print_table): New member function.
3021 * rust-lang.c (rust_language_data): Remove la_op_print_tab
3022 initializer.
3023 (rust_language::opcode_print_table): New member function.
3024
5aba6ebe
AB
30252020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3026
3027 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
3028 (ada_language::expression_ops): New member function.
3029 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
3030 (c_language::expression_ops): New member function.
3031 (cplus_language_data): Remove la_exp_desc initializer.
3032 (cplus_language::expression_ops): New member function.
3033 (asm_language_data): Remove la_exp_desc initializer.
3034 (asm_language::expression_ops): New member function.
3035 (minimal_language_data): Remove la_exp_desc initializer.
3036 (minimal_language::expression_ops): New member function.
3037 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
3038 (d_language::expression_ops): New member function.
3039 * eval.c (evaluate_subexp): Update call to expression_ops.
3040 * expprint.c (print_subexp): Likewise.
3041 (op_name): Likewise.
3042 (dump_subexp_body): Likewise.
3043 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
3044 (f_language::expression_ops): New member function.
3045 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
3046 (go_language::expression_ops): New member function.
3047 * language.c (language_defn::expression_ops): New function.
3048 (unknown_language_data): Remove la_exp_desc initializer.
3049 (auto_language_data): Likewise.
3050 * language.h (language_data): Remove la_exp_desc field.
3051 (language_defn::expression_ops): Declare new member function.
3052 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
3053 (m2_language::expression_ops): New member function.
3054 * objc-lang.c (objc_language_data): Remove la_exp_desc
3055 initializer.
3056 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
3057 initializer.
3058 (opencl_language::expression_ops): New member function.
3059 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
3060 * parse.c (operator_length): Update call to expression_ops.
3061 (exp_iterate): Likewise.
3062 * rust-lang.c (rust_language_data): Remove la_exp_desc
3063 initializer.
3064 (ruse_language::expression_ops): New member function.
3065
b63a3f3f
AB
30662020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3067
3068 * ada-lang.c (ada_language_data): Remove la_varobj_ops
3069 initializer.
3070 (ada_language::varobj_ops): New member function.
3071 * c-lang.c (c_language_data): Remove la_varobj_ops
3072 initializer.
3073 (cplus_language_data): Likewise.
3074 (cplus_language::varobj_ops): New member function.
3075 (asm_language_data): Remove la_varobj_ops initializer.
3076 (minimal_language_data): Likewise.
3077 * d-lang.c (d_language_data): Likewise.
3078 * f-lang.c (f_language_data): Likewise.
3079 * go-lang.c (go_language_data): Likewise.
3080 * language.c (language_defn::varobj_ops): New function.
3081 (unknown_language_data): Remove la_varobj_ops
3082 initializer.
3083 (auto_language_data): Likewise.
3084 * language.h (language_data): Remove la_varobj_ops field.
3085 (language_defn::varobj_ops): Declare new member function.
3086 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
3087 * objc-lang.c (objc_language_data): Likewise.
3088 * opencl-lang.c (opencl_language_data): Likewise.
3089 * p-lang.c (pascal_language_data): Likewise.
3090 * rust-lang.c (rust_language_data): Likewise.
3091 * varobj.c (varobj_create): Update call to varobj_ops.
3092 * varobj.h (default_varobj_ops): Delete define.
3093
1ac14a04
AB
30942020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3095
3096 * ada-lang.c (ada_language_data): Remove la_macro_expansion
3097 initializer.
3098 * c-lang.c (c_language_data): Likewise.
3099 (c_language::macro_expansion): New member function.
3100 (cplus_language_data): Likewise.
3101 (cplus_language::macro_expansion): New member function.
3102 (asm_language_data): Likewise.
3103 (asm_language::macro_expansion): New member function.
3104 (minimal_language_data): Likewise.
3105 (minimal_language::macro_expansion): New member function.
3106 * d-lang.c (d_language_data): Remove la_macro_expansion
3107 initializer.
3108 * f-lang.c (f_language_data): Likewise.
3109 * go-lang.c (go_language_data): Likewise.
3110 * language.c (unknown_language_data): Likewise.
3111 (auto_language_data): Likewise.
3112 * language.h (language_data): Remove la_macro_expansion field.
3113 (language_defn::macro_expansion): New member function.
3114 * m2-lang.c (m2_language_data): Remove la_macro_expansion
3115 initializer.
3116 * objc-lang.c (objc_language_data): Likewise.
3117 (objc_language::macro_expansion): New member function.
3118 * opencl-lang.c (opencl_language_data): Likewise.
3119 (opencl_language::macro_expansion): New member function.
3120 * p-lang.c (pascal_language_data): Remove la_macro_expansion
3121 initializer.
3122 * rust-lang.c (rust_language_data): Likewise.
3123 * symtab.c (default_collect_symbol_completion_matches_break_on):
3124 Update call to macro_expansion.
3125
3a3440fb
AB
31262020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3127
3128 * ada-lang.c (ada_language_data): Remove la_array_ordering
3129 initializer.
3130 * c-lang.c (c_language_data): Likewise.
3131 (cplus_language_data): Likewise.
3132 (asm_language_data): Likewise.
3133 (minimal_language_data): Likewise.
3134 * d-lang.c (d_language_data): Likewise.
3135 * dwarf2/read.c (read_array_order): Update for call to
3136 array_ordering.
3137 * f-lang.c (f_language_data): Remove la_array_ordering
3138 initializer.
3139 (f_language::array_ordering): New member function.
3140 * go-lang.c (go_language_data): Remove la_array_ordering
3141 initializer.
3142 * language.c (unknown_language_data): Likewise.
3143 (auto_language_data): Likewise.
3144 * language.h (language_data): Delete la_array_ordering field.
3145 (language_defn::array_ordering): New member function.
3146 * m2-lang.c (m2_language_data): Remove la_array_ordering
3147 initializer.
3148 * objc-lang.c (objc_language_data): Likewise.
3149 * opencl-lang.c (opencl_language_data): Likewise.
3150 * p-lang.c (pascal_language_data): Likewise.
3151 * rust-lang.c (rust_language_data): Likewise.
3152
0d201fa4
AB
31532020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3154
3155 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
3156 initializer.
3157 * c-lang.c (c_language_data): Likewise.
3158 (cplus_language_data): Likewise.
3159 (asm_language_data): Likewise.
3160 (minimal_language_data): Likewise.
3161 * d-lang.c (d_language_data): Likewise.
3162 * f-lang.c (f_language_data): Likewise.
3163 (f_language::case_sensitivity): New member function.
3164 * go-lang.c (go_language_data): Remove la_case_sensitivity
3165 initializer.
3166 * language.c (enum case_mode): Moved here from language.h.
3167 (case_mode): Make static.
3168 (show_case_command): Update for case_sensitivity being a method.
3169 (set_case_command): Likewise.
3170 (set_range_case): Likewise.
3171 (unknown_language_data): Remove la_case_sensitivity initializer.
3172 (auto_language_data): Likewise.
3173 * language.h (case_mode): Delete, move enum declaration to
3174 language.c.
3175 (language_data): Delete la_case_sensitivity field.
3176 (language_defn::case_sensitivity): New member function.
3177 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
3178 initializer.
3179 * objc-lang.c (objc_language_data): Likewise.
3180 * opencl-lang.c (opencl_language_data): Likewise.
3181 * p-lang.c (pascal_language_data): Likewise.
3182 * rust-lang.c (rust_language_data): Likewise.
3183
efdf6a73
AB
31842020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3185
3186 * ada-lang.c (ada_language_data): Remove la_range_check
3187 initializer.
3188 * c-lang.c (c_language_data): Likewise.
3189 (cplus_language_data): Likewise.
3190 (asm_language_data): Likewise.
3191 (minimal_language_data): Likewise.
3192 * d-lang.c (d_language_data): Likewise.
3193 * f-lang.c (f_language_data): Likewise.
3194 (f_language::range_checking_on_by_default): New member function.
3195 * go-lang.c (go_language_data): Remove la_range_check initializer.
3196 * language.c (enum range_mode): Moved here from language.h.
3197 (range_mode): Made static.
3198 (show_range_command): Update to use
3199 range_checking_on_by_default.
3200 (set_range_command): Likewise.
3201 (set_range_case): Likewise.
3202 (unknown_language_data): Remove la_range_check initializer.
3203 (auto_language_data): Likewise.
3204 * language.h (range_mode): Delete. Enum definition moved to
3205 language.c.
3206 (language_data): Remove la_range_check field.
3207 (language_defn::range_checking_on_by_default): New member
3208 function.
3209 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
3210 (m2_language::range_checking_on_by_default): New member function.
3211 * objc-lang.c (objc_language_data): Remove la_range_check
3212 initializer.
3213 * opencl-lang.c (opencl_language_data): Likewise.
3214 * p-lang.c (pascal_language_data): Likewise.
3215 (pascal_language::range_checking_on_by_default): New member
3216 function.
3217 * rust-lang.c (rust_language_data): Remove la_range_check
3218 initializer.
3219 (rust_language::range_checking_on_by_default): New member
3220 function.
3221
bf92aec5
AB
32222020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3223
3224 * dwarf2/read.c (dwarf2_physname): Remove special case for
3225 language_go.
3226 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
3227 member function.
3228
d3355e4d
AB
32292020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3230
3231 * ada-lang.c (ada_language_data): Remove
3232 la_store_sym_names_in_linkage_form_p initializer.
3233 (ada_language::store_sym_names_in_linkage_form_p): New member
3234 function.
3235 * c-lang.c (c_language_data): Remove
3236 la_store_sym_names_in_linkage_form_p initializer.
3237 (c_language::store_sym_names_in_linkage_form_p): New member
3238 function.
3239 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
3240 initializer.
3241 (asm_language_data): Likewise.
3242 (asm_language::store_sym_names_in_linkage_form_p): New member
3243 function.
3244 (minimal_language_data): Remove
3245 la_store_sym_names_in_linkage_form_p initializer.
3246 (minimal_language::store_sym_names_in_linkage_form_p): New member
3247 function.
3248 * d-lang.c (d_language_data): Remove
3249 la_store_sym_names_in_linkage_form_p initializer.
3250 * dwarf2/read.c (dwarf2_physname): Update call to
3251 store_sym_names_in_linkage_form_p.
3252 * f-lang.c (f_language_data): Remove
3253 la_store_sym_names_in_linkage_form_p initializer.
3254 * go-lang.c (go_language_data): Remove
3255 la_store_sym_names_in_linkage_form_p initializer.
3256 * language.c (unknown_language_data): Remove
3257 la_store_sym_names_in_linkage_form_p initializer.
3258 (unknown_language::store_sym_names_in_linkage_form_p): New member
3259 function.
3260 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
3261 initializer.
3262 (auto_language::store_sym_names_in_linkage_form_p): New member
3263 function.
3264 * language.h (language_data): Remove
3265 la_store_sym_names_in_linkage_form_p member variable.
3266 (language_defn::store_sym_names_in_linkage_form_p): New member
3267 function.
3268 * m2-lang.c (m2_language_data): Remove
3269 la_store_sym_names_in_linkage_form_p initializer.
3270 * objc-lang.c (objc_language_data): Likewise.
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
22c12a6c
AB
32752020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3276
3277 * ada-lang.c (ada_language_data): Remove string_lower_bound
3278 initializer.
3279 * c-lang.c (c_language_data): Likewise.
3280 (cplus_language_data): Likewise.
3281 (asm_language_data): Likewise.
3282 (minimal_language_data): Likewise.
3283 * d-lang.c (d_language_data): Likewise.
3284 * f-lang.c (f_language_data): Likewise.
3285 * go-lang.c (go_language_data): Likewise.
3286 * language.c (unknown_language_data): Likewise.
3287 (auto_language_data): Likewise.
3288 * language.h (language_data): Remove string_lower_bound field.
3289 (language_defn::string_lower_bound): New member function.
3290 * m2-lang.c (m2_language_data): Remove string_lower_bound
3291 initializer.
3292 (m2_language::string_lower_bound): New member function.
3293 * objc-lang.c (objc_language_data): Remove string_lower_bound
3294 initializer.
3295 * opencl-lang.c (opencl_language_data): Likewise.
3296 * p-lang.c (pascal_language_data): Likewise.
3297 * rust-lang.c (rust_language_data): Likewise.
3298 * valops.c (value_cstring): Update call to string_lower_bound.
3299 (value_string): Likewise.
3300 * value.c (allocate_repeated_value): Likewise.
3301
1c236ddd
AB
33022020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3303
3304 * valops.c (value_repeat): Fix incorrect argument name in comment.
3305
67bd3fd5
AB
33062020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3307
3308 * ada-lang.c (ada_language_data): Remove c_style_arrays
3309 initializer.
3310 (ada_language::c_style_arrays_p): New member fuction.
3311 * c-lang.c (c_language_data): Remove c_style_arrays
3312 initializer.
3313 (cplus_language_data): Likewise.
3314 (asm_language_data): Likewise.
3315 (minimal_language_data): Likewise.
3316 * d-lang.c (d_language_data): Likewise.
3317 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
3318 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
3319 (f_language::c_style_arrays_p): New member function.
3320 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
3321 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
3322 * language.c (unknown_language_data): Remove c_style_arrays
3323 initializer.
3324 (auto_language_data): Likewise.
3325 * language.h (language_data): Remove c_style_arrays field.
3326 (language_defn::c_style_arrays_p): New member function.
3327 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
3328 (m2_language::c_style_arrays_p): New member function.
3329 * objc-lang.c (objc_language_data): Remove c_style_arrays
3330 initializer.
3331 * opencl-lang.c (opencl_language_data): Likewise.
3332 * p-lang.c (pascal_language_data): Likewise.
3333 * rust-lang.c (rust_language_data): Likewise.
3334 * valarith.c (value_subscript): Update call to c_style_arrays_p,
3335 and update local variable to a bool.
3336 * valops.c (value_cast): Update call to c_style_arrays_p.
3337 (value_array): Likewise.
3338 * value.c (coerce_array): Likewise.
3339
85967615
AB
33402020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3341
3342 * ada-lang.c (ada_language_data): Remove la_language initializer.
3343 * c-lang.c (c_language_data): Likewise.
3344 (cplus_language_data): Likewise.
3345 (asm_language_data): Likewise.
3346 (minimal_language_data): Likewise.
3347 * d-lang.c (d_language_data): Likewise.
3348 * f-lang.c (f_language_data): Likewise.
3349 * go-lang.c (go_language_data): Likewise.
3350 * language.c (unknown_language_data): Likewise.
3351 (auto_language_data): Likewise.
3352 * language.h (language_data): Remove la_language field.
3353 (language_defn::language_defn): Initialise la_language field.
3354 (language_defn::la_language): New member variable.
3355 * m2-lang.c (m2_language_data): Remove la_language field.
3356 * objc-lang.c (objc_language_data): Likewise.
3357 * opencl-lang.c (opencl_language_data): Likewise.
3358 * p-lang.c (pascal_language_data): Likewise.
3359 * rust-lang.c (rust_language_data): Likewise.
3360
e171d6f1
AB
33612020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3362
3363 * ada-lang.c (ada_extensions): Delete, moved into
3364 ada_language::filename_extensions.
3365 (ada_language_data): Remove la_filename_extensions initializer.
3366 (ada_language::filename_extensions): New member function.
3367 * c-lang.c (c_extensions): Delete, moved into
3368 c_language::filename_extensions.
3369 (c_language_data): Remove la_filename_extensions initializer.
3370 (c_language::filename_extensions): New member function.
3371 (cplus_extensions): Delete, moved into
3372 cplus_language::filename_extensions.
3373 (cplus_language_data): Remove la_filename_extensions initializer.
3374 (cplus_language::filename_extensions): New member function.
3375 (asm_extensions): Delete, moved into
3376 asm_language::filename_extensions.
3377 (asm_language_data): Remove la_filename_extensions initializer.
3378 (asm_language::filename_extensions): New member function.
3379 (minimal_language_data): Remove la_filename_extensions
3380 initializer.
3381 * d-lang.c (d_extensions): Delete, moved into
3382 d_language::filename_extensions.
3383 (d_language_data): Remove la_filename_extensions initializer.
3384 (d_language::filename_extensions): New member function.
3385 * f-lang.c (f_extensions): Delete, moved into
3386 f_language::filename_extensions.
3387 (f_language_data): Remove la_filename_extensions initializer.
3388 (f_language::filename_extensions): New member function.
3389 * go-lang.c (go_language_data): Remove la_filename_extensions
3390 initializer.
3391 * language.c (add_set_language_command): Update now that
3392 filename_extensions returns a vector.
3393 (unknown_language_data): Remove la_filename_extensions
3394 initializer.
3395 (auto_language_data): Likewise.
3396 * language.h (language_data): Remove la_filename_extensions field.
3397 (language_defn::filename_extensions): New member function.
3398 * m2-lang.c (m2_language_data): Remove la_filename_extensions
3399 initializer.
3400 * objc-lang.c (objc_extensions): Delete, moved into
3401 objc_language::filename_extensions.
3402 (objc_language_data): Remove la_filename_extensions initializer.
3403 (objc_language::filename_extensions): New member function.
3404 * opencl-lang.c (opencl_language_data): Remove
3405 la_filename_extensions initializer.
3406 * p-lang.c (pascal_extensions): Delete, moved into
3407 pascal_language::filename_extensions.
3408 (pascal_language_data): Remove la_filename_extensions initializer.
3409 (pascal_language::filename_extensions): New member function.
3410 * rust-lang.c (rust_extensions): Delete, moved into
3411 rust_language::filename_extensions.
3412 (rust_language_data): Remove la_filename_extensions initializer.
3413 (rust_language::filename_extensions): New member function.
3414 * symfile.c (add_filename_language): Add new assert.
3415
6f7664a9
AB
34162020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3417
3418 * ada-lang.c (ada_language_data): Remove la_name and
3419 la_natural_name initializers.
3420 (ada_language::name): New member function.
3421 (ada_language::natural_name): New member function.
3422 * c-lang.c (c_language_data): Remove la_name and
3423 la_natural_name initializers.
3424 (c_language::name): New member function.
3425 (c_language::natural_name): New member function.
3426 (cplus_language_data): Remove la_name and
3427 la_natural_name initializers.
3428 (cplus_language::name): New member function.
3429 (cplus_language::natural_name): New member function.
3430 (asm_language_data): Remove la_name and
3431 la_natural_name initializers.
3432 (asm_language::name): New member function.
3433 (asm_language::natural_name): New member function.
3434 (minimal_language_data): Remove la_name and
3435 la_natural_name initializers.
3436 (minimal_language::name): New member function.
3437 (minimal_language::natural_name): New member function.
3438 * compile/compile.c (compile_to_object): Update call to
3439 lanugage_defn::name.
3440 * d-lang.c (d_language_data): Remove la_name and
3441 la_natural_name initializers.
3442 (d_language::name): New member function.
3443 (d_language::natural_name): New member function.
3444 * expprint.c (print_subexp_standard): Update call to
3445 language_defn::name.
3446 (dump_raw_expression): Likewise
3447 (dump_prefix_expression): Likewise.
3448 * f-lang.c (f_language_data): Remove la_name and
3449 la_natural_name initializers.
3450 (f_language::name): New member function.
3451 (f_language::natural_name): New member function.
3452 * go-lang.c (go_language_data): Remove la_name and
3453 la_natural_name initializers.
3454 (go_language::name): New member function.
3455 (go_language::natural_name): New member function.
3456 * language.c (show_language_command): Update call to
3457 language_defn::name.
3458 (set_language_command): Likewise.
3459 (language_enum): Likewise.
3460 (language_str): Likewise.
3461 (add_set_language_command): Likewise, use
3462 language_defn::natural_name in the doc string.
3463 (unknown_language_data): Remove la_name and
3464 la_natural_name initializers.
3465 (unknown_language::name): New member function.
3466 (unknown_language::natural_name): New member function.
3467 (auto_language_data): Remove la_name and
3468 la_natural_name initializers.
3469 (auto_language::name): New member function.
3470 (auto_language::natural_name): New member function.
3471 (language_lookup_primitive_type_as_symbol): Update call to
3472 language_defn::name.
3473 * language.h (language_data): Remove la_name and la_natural_name
3474 member variables.
3475 (language_defn::name): New member function.
3476 (language_defn::natural_name): New member function.
3477 * m2-lang.c (m2_language_data): Remove la_name and
3478 la_natural_name initializers.
3479 (m2_language::name): New member function.
3480 (m2_language::natural_name): New member function.
3481 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
3482 language_defn::natural_name.
3483 * objc-lang.c (objc_language_data): Remove la_name and
3484 la_natural_name initializers.
3485 (objc_language::name): New member function.
3486 (objc_language::natural_name): New member function.
3487 * opencl-lang.c (opencl_language_data): Remove la_name and
3488 la_natural_name initializers.
3489 (opencl_language::name): New member function.
3490 (opencl_language::natural_name): New member function.
3491 * p-lang.c (pascal_language_data): Remove la_name and
3492 la_natural_name initializers.
3493 (pascal_language::name): New member function.
3494 (pascal_language::natural_name): New member function.
3495 * rust-lang.c (rust_language_data): Remove la_name and
3496 la_natural_name initializers.
3497 (rust_language::name): New member function.
3498 (rust_language::natural_name): New member function.
3499 * symtab.c (lookup_language_this): Update call to
3500 language_defn::name.
3501
5bae7c4e
AB
35022020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3503
3504 * ada-lang.c (ada_language_data): Remove la_name_of_this
3505 initializer.
3506 * ax-gdb.c (gen_expr): Update call to name_of_this.
3507 * c-exp.y (classify_name): Likewise.
3508 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
3509 (cplus_language_data): Likewise.
3510 (cplus_language::name_of_this): New member function.
3511 (asm_language_data): Remove la_name_of_this initializer.
3512 (minimal_language_data): Likewise.
3513 * d-lang.c (d_language_data): Likewise.
3514 (d_language::name_of_this): New member function.
3515 * expprint.c (print_subexp_standard): Update call to name_of_this.
3516 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
3517 * go-lang.c (go_language_data): Likewise.
3518 * language.c (unknown_language_data): Likewise.
3519 (unknown_language::name_of_this): New member function.
3520 (auto_language_data): Remove la_name_of_this initializer.
3521 (auto_language::name_of_this): New member function.
3522 * language.h (language_data): Delete la_name_of_this member
3523 variable.
3524 (language_defn::name_of_this): New member function.
3525 * m2-lang.c (m2_language_data): Remove la_name_of_this
3526 initializer.
3527 * objc-lang.c (objc_language_data): Likewise.
3528 (objc_language::name_of_this): New member function.
3529 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
3530 initializer.
3531 * p-lang.c (pascal_language_data): Likewise.
3532 (pascal_language::name_of_this): New member function.
3533 * rust-lang.c (rust_language_data): Remove la_name_of_this
3534 initializer.
3535 * symtab.c (lookup_language_this): Update call to name_of_this.
3536 (lookup_symbol_aux): Likewise.
3537 * valops.c (value_of_this): Likewise.
3538
22e3f3ed
AB
35392020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3540
3541 * ada-lang.c (ada_language_data): Remove
3542 la_struct_too_deep_ellipsis initializer.
3543 (ada_language::struct_too_deep_ellipsis): New member function.
3544 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
3545 initializer.
3546 (cplus_language_data): Likewise.
3547 (asm_language_data): Likewise.
3548 (minimal_language_data): Likewise.
3549 * cp-valprint.c (cp_print_value): Update call to
3550 struct_too_deep_ellipsis.
3551 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
3552 initializer.
3553 * f-lang.c (f_language_data): Likewise.
3554 (f_language::struct_too_deep_ellipsis): New member function.
3555 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
3556 initializer.
3557 * language.c (unknown_language_data): Likewise.
3558 (auto_language_data): Likewise.
3559 * language.h (language_data): Delete la_struct_too_deep_ellipsis
3560 member variable.
3561 (language_defn::struct_too_deep_ellipsis): New member function.
3562 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
3563 initializer.Q
3564 * objc-lang.c (objc_language_data): Likewise.
3565 * opencl-lang.c (opencl_language_data): Likewise.
3566 * p-lang.c (pascal_language_data): Likewise.
3567 * rust-lang.c (rust_language_data): Likewise.
3568 * valprint.c (val_print_check_max_depth): Update call to
3569 struct_too_deep_ellipsis.
3570
ed29e1c7
FW
35712020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
3572
3573 * MAINTAINERS (Write After Approval): Add myself.
3574
12d8f940
TT
35752020-09-15 Tom Tromey <tom@tromey.com>
3576
3577 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
3578 Remove.
3579
6b5a7bc7
TT
35802020-09-15 Tom Tromey <tom@tromey.com>
3581
3582 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
3583 and TYPE_CODE_METHODPTR cases.
3584 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
3585 (c_value_print_inner): Update.
3586 * valprint.c (generic_value_print_memberptr): New function, from
3587 c_value_print_memberptr.
3588 (generic_value_print): Use it. Call cplus_print_method_ptr.
3589
47f0e2ff
TT
35902020-09-15 Tom Tromey <tromey@adacore.com>
3591
3592 * python/python-internal.h (PyInt_FromLong): Remove define.
3593 * python/py-value.c (convert_value_from_python): Use
3594 gdb_py_object_from_longest.
3595 * python/py-type.c (typy_get_code): Use
3596 gdb_py_object_from_longest.
3597 * python/py-symtab.c (salpy_get_line): Use
3598 gdb_py_object_from_longest.
3599 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
3600 gdb_py_object_from_longest.
3601 * python/py-record.c (recpy_gap_reason_code): Use
3602 gdb_py_object_from_longest.
3603 * python/py-record-btrace.c (recpy_bt_insn_size)
3604 (recpy_bt_func_level, btpy_list_count): Use
3605 gdb_py_object_from_longest.
3606 * python/py-infthread.c (gdbpy_create_ptid_object): Use
3607 gdb_py_object_from_longest. Fix error handling.
3608 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
3609 gdb_py_object_from_longest.
3610 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
3611 gdb_py_object_from_longest.
3612 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
3613 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
3614 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
3615
512116ce
TT
36162020-09-15 Tom Tromey <tromey@adacore.com>
3617
3618 * python/python.c (gdbpy_parameter_value): Use
3619 gdb_py_object_from_ulongest.
3620
4ab1029c
TT
36212020-09-15 Tom Tromey <tromey@adacore.com>
3622
3623 * python/py-infevents.c (create_register_changed_event_object):
3624 Use gdb_py_object_from_longest.
3625 * python/py-exitedevent.c (create_exited_event_object): Use
3626 gdb_py_object_from_longest.
3627
062534d4
TT
36282020-09-15 Tom Tromey <tromey@adacore.com>
3629
3630 * python/python.c (gdbpy_parameter_value): Use
3631 gdb_py_object_from_longest.
3632 * python/py-type.c (convert_field, typy_range): Use
3633 gdb_py_object_from_longest.
3634 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
3635 gdb_py_object_from_longest.
3636 * python/py-lazy-string.c (stpy_get_length): Use
3637 gdb_py_object_from_longest.
3638 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
3639 gdb_py_object_from_longest.
3640 * python/py-infevents.c (create_memory_changed_event_object): Use
3641 gdb_py_object_from_longest.
3642 * python/py-inferior.c (infpy_get_num): Use
3643 gdb_py_object_from_longest.
3644 (infpy_get_pid): Likewise.
3645
d1cab987
TT
36462020-09-15 Tom Tromey <tromey@adacore.com>
3647
3648 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
3649 defines.
3650 * python/py-value.c (valpy_long): Use
3651 gdb_py_object_from_ulongest.
3652 * python/py-symtab.c (salpy_get_pc): Use
3653 gdb_py_object_from_ulongest.
3654 (salpy_get_last): Likewise.
3655 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
3656 gdb_py_object_from_ulongest.
3657 * python/py-lazy-string.c (stpy_get_address): Use
3658 gdb_py_object_from_ulongest.
3659 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
3660 * python/py-arch.c (archpy_disassemble): Use
3661 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
3662 error handling.
3663
4bde49dc
TT
36642020-09-15 Tom Tromey <tromey@adacore.com>
3665
3666 * python/python-internal.h (gdb_py_long_from_longest): Remove
3667 defines.
3668 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
3669 * python/py-type.c (convert_field, typy_get_sizeof): Use
3670 gdb_py_object_from_longest.
3671 * python/py-record-btrace.c (btpy_list_index): Use
3672 gdb_py_object_from_longest.
3673
37431074
TT
36742020-09-15 Tom Tromey <tromey@adacore.com>
3675
3676 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
3677 * python/py-record.c (recpy_element_number): Use
3678 gdb_py_object_from_longest.
3679 (recpy_gap_number): Likewise.
3680
cbe25684
TT
36812020-09-15 Tom Tromey <tromey@adacore.com>
3682
3683 * top.c (ui::ui): Update.
3684 (highest_ui_num): Remove.
3685 * top.h (struct ui) <num>: Remove.
3686
db92ac45
TT
36872020-09-15 Tom Tromey <tromey@adacore.com>
3688
3689 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
3690 * ui-style.c (ansi_regex_text): Now array.
3691 * rust-exp.y (number_regex_text): Now array.
3692 * linespec.c (linespec_quote_characters): Now array.
3693 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
3694 Now arrays.
3695
d2b31b67
SM
36962020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3697
3698 * debuginfod-support.c (debuginfod_client_deleter): New.
3699 (debuginfod_client_up): New.
3700 (debuginfod_init): Return debuginfod_client_up.
3701 (debuginfod_source_query): Adjust.
3702 (debuginfod_debuginfo_query): Adjust.
3703
3246bd8e
SM
37042020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3705
3706 * debuginfod-support.c (debuginfod_source_query): Use
3707 make_unique_xstrdup.
3708
10242f36
SM
37092020-09-14 Simon Marchi <simon.marchi@efficios.com>
3710
3711 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
3712 with `type::instance_flags`.
3713
e1044e6a
MM
37142020-09-14 Michael Mullin <masmullin@gmail.com>
3715
3716 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
3717 Remove baton parameter.
3718
04902b09
PA
37192020-09-14 Pedro Alves <pedro@palves.net>
3720
3721 * Makefile.in (SELFTESTS_SRCS): Add
3722 unittests/enum-flags-selftests.c.
3723 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
3724 btrace_function_flags instead of enum btrace_function_flag.
3725 * compile/compile-c-types.c (convert_qualified): Use
3726 enum_flags::raw.
3727 * compile/compile-cplus-symbols.c (convert_one_symbol)
3728 (convert_symbol_bmsym):
3729 * compile/compile-cplus-types.c (compile_cplus_convert_method)
3730 (compile_cplus_convert_struct_or_union_methods)
3731 (compile_cplus_instance::convert_qualified_base):
3732 * go-exp.y (parse_string_or_char): Add cast to int.
3733 * unittests/enum-flags-selftests.c: New file.
3734 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
3735 type to btrace_thread_flags from btrace_thread_flag.
3736 (record_btrace_cancel_resume, record_btrace_step_thread): Change
3737 local's type to btrace_thread_flags from btrace_thread_flag. Add
3738 cast in DEBUG call.
3739
69896a2c
PA
37402020-09-14 Pedro Alves <pedro@palves.net>
3741
3742 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
3743 * gdbtypes.c (address_space_name_to_int): Rename to ...
3744 (address_space_name_to_type_instance_flags): ... this.
3745 (address_space_int_to_name): Rename to ...
3746 (address_space_type_instance_flags_to_name): ... this.
3747 * gdbtypes.h (address_space_name_to_int): Rename to ...
3748 (address_space_name_to_type_instance_flags): ... this.
3749 (address_space_int_to_name): Rename to ...
3750 (address_space_type_instance_flags_to_name): ... this.
3751 * type-stack.c (type_stack::insert): Adjust to rename.
3752 * type-stack.h (type_stack::insert): Likewise.
3753
314ad88d
PA
37542020-09-14 Pedro Alves <pedro@palves.net>
3755 Andrew Burgess <andrew.burgess@embecosm.com>
3756
3757 * avr-tdep.c (avr_address_class_type_flags): Return
3758 type_instance_flags.
3759 (avr_address_class_type_flags_to_name): Take a
3760 type_instance_flags.
3761 (avr_address_class_name_to_type_flags): Return bool and take a
3762 type_instance_flags.
3763 * d-lang.c (build_d_types): Use type::set_instance_flags.
3764 * ft32-tdep.c (ft32_address_class_type_flags): Return
3765 type_instance_flags.
3766 (ft32_address_class_type_flags_to_name): Take a
3767 type_instance_flags.
3768 (ft32_address_class_name_to_type_flags): Return bool and take a
3769 type_instance_flags.
3770 (ft32_gdbarch_init): Use type::set_instance_flags.
3771 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
3772 * gdbarch.h, gdbarch.c: Regenerate.
3773 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
3774 (address_class_name_to_type_flags): Use type_instance_flags and
3775 bool.
3776 * gdbtypes.c (address_space_name_to_int)
3777 (address_space_int_to_name, make_qualified_type): Use
3778 type_instance_flags.
3779 (make_qualified_type): Use type_instance_flags and
3780 type::set_instance_flags.
3781 (make_type_with_address_space, make_cv_type, make_vector_type)
3782 (check_typedef): Use type_instance_flags.
3783 (recursive_dump_type): Cast type_instance_flags to unsigned for
3784 printing.
3785 (copy_type_recursive): Use type::set_instance_flags.
3786 (gdbtypes_post_init): Use type::set_instance_flags.
3787 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
3788 <m_instance_flags>: ... this.
3789 <instance_flags, set_instance_flags>: New methods.
3790 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
3791 (SET_TYPE_INSTANCE_FLAGS): New.
3792 (address_space_name_to_int, address_space_int_to_name)
3793 (make_type_with_address_space): Pass flags using
3794 type_instance_flags instead of int.
3795 * stabsread.c (cleanup_undefined_types_noname): Use
3796 type::set_instance_flags.
3797 * s390-tdep.c (s390_address_class_type_flags): Return
3798 type_instance_flags.
3799 (s390_address_class_type_flags_to_name): Take a
3800 type_instance_flags.
3801 (s390_address_class_name_to_type_flags): Return bool and take a
3802 type_instance_flags.
3803 * type-stack.c (type_stack::follow_types): Use
3804 type_instance_flags.
3805 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
3806
27087b7f
TT
38072020-09-14 Tom Tromey <tromey@adacore.com>
3808
3809 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
3810 * x86-tdep.c (x86_is_thunk_register_name)
3811 (x86_in_indirect_branch_thunk): Update.
3812 * sparc64-tdep.c (sparc64_fpu_register_names)
3813 (sparc64_cp0_register_names, sparc64_register_names)
3814 (sparc64_pseudo_register_names): Now const.
3815 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
3816 cp0_registers_num>: Now const.
3817 * sparc-tdep.c (sparc_core_register_names)
3818 (sparc32_fpu_register_names, sparc32_cp0_register_names)
3819 (sparc32_pseudo_register_names): Now const.
3820 (validate_tdesc_registers): Update.
3821 * rust-lang.c (rust_extensions): Now const.
3822 * p-lang.c (p_extensions): Now const.
3823 * objc-lang.c (objc_extensions): Now const.
3824 * nto-tdep.c (nto_thread_state_str): Now const.
3825 * moxie-tdep.c (moxie_register_names): Now const.
3826 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
3827 Now const.
3828 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
3829 (mips_linux_reg_names): Now const.
3830 (mips_gdbarch_init): Update.
3831 * microblaze-tdep.c (microblaze_register_names): Now const.
3832 * m68k-tdep.c (m68k_register_names): Now const.
3833 * m32r-tdep.c (m32r_register_names): Now const.
3834 * ia64-tdep.c (ia64_register_names): Now const.
3835 * i386-tdep.h (struct gdbarch_tdep) <register_names,
3836 ymmh_register_names, ymm16h_regnum, mpx_register_names,
3837 k_register_names, zmmh_register_names, xmm_avx512_register_names,
3838 ymm_avx512_register_names, pkeys_register_names>: Now const.
3839 * i386-tdep.c (i386_register_names, i386_zmm_names)
3840 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
3841 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
3842 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
3843 * f-lang.c (f_extensions): Now const.
3844 * d-lang.c (d_extensions): Now const.
3845 * csky-tdep.c (csky_register_names): Now const.
3846 * charset.c (default_charset_names, charset_enum): Now const.
3847 (_initialize_charset): Update.
3848 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
3849 const.
3850 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
3851 (bsd_uthread_solib_loaded): Update.
3852 (bsd_uthread_state): Now const.
3853 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
3854 (amd64_ymm_avx512_names, amd64_ymmh_names)
3855 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
3856 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
3857 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
3858 (amd64_dword_names): Now const.
3859 * agent.c (can_use_agent_enum): Now const.
3860 * ada-tasks.c (task_states, long_task_states): Now const.
3861 * ada-lang.c (known_runtime_file_name_patterns)
3862 (known_auxiliary_function_name_patterns, attribute_names)
3863 (standard_exc, ada_extensions): Now const.
3864
89806626
SM
38652020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3866
3867 * bcache.h (struct bcache) <bcache>: Remove constructor.
3868 <m_hash_function, m_compare_function>: Remove.
3869 <~bcache>: Make virtual.
3870 <compare>: Remove static method, introduce virtual method.
3871 <default_hash>: Remove.
3872 <hash>: New virtual method.
3873 * bcache.c (bcache::expand_hash_table): Update.
3874 (bcache::insert): Update.
3875 (bcache::hash): New.
3876 (bcache::compare): Update comment and parameter names.
3877 * gdbtypes.c (types_deeply_equal): Update.
3878 * psymtab.h (struct psymbol_bcache): New struct.
3879 (class psymtab_storage) <psymtab_storage>: Make default.
3880 <psymbol_cache>: Change type to psymbol_bcache.
3881 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
3882 (psymbol_hash): Change to...
3883 (psymbol_bcache::hash): ... this.
3884 (psymbol_compare): Change to...
3885 (psymbol_bcache::compare): ... this.
3886
677c92fe
SM
38872020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3888
3889 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
3890 checking for initial lwp.
3891
3eba3a01
TT
38922020-09-14 Tom Tromey <tromey@adacore.com>
3893
3894 * m68k-tdep.c (m68k_extract_return_value): Use
3895 pointer_result_regnum.
3896 (m68k_store_return_value): Likewise.
3897 (m68k_reg_struct_return_p): Handle vectors and arrays.
3898 (m68k_return_value): Handle arrays.
3899 (m68k_svr4_return_value): Fix single-element aggregate handling.
3900 Handle long double. Adjust for embedded ABI.
3901 (m68k_svr4_init_abi): Set pointer_result_regnum.
3902 (m68k_embedded_init_abi): New function.
3903 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
3904 (m68k_osabi_sniffer): New function.
3905 (_initialize_m68k_tdep): Register osabi sniffer.
3906 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
3907 member.
3908
33f4dd48
SM
39092020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3910
3911 * xml-support.c (xml_fetch_content_from_file): Replace xfree
3912 with gdb::unique_xmalloc_ptr<char>.
3913
8400a90d
SM
39142020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3915
3916 * xml-support.h (xml_fetch_another): Change type to be a
3917 function_view.
3918 (xml_process_xincludes): Remove baton parameter.
3919 (xml_fetch_content_from_file): Change baton parameter to
3920 dirname.
3921 * xml-support.c (struct xinclude_parsing_data)
3922 <xinclude_parsing_data>: Remove baton parameter.
3923 <fetcher_baton>: Remove.
3924 (xinclude_start_include): Adjust.
3925 (xml_process_xincludes): Adjust.
3926 (xml_fetch_content_from_file): Replace baton parameter with
3927 dirname.
3928 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
3929 (xml_init_syscalls_info): Use a lambda.
3930 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
3931 (file_read_description_xml): Use a lambda.
3932 (fetch_available_features_from_target): Change baton parameter
3933 to target_ops.
3934 (target_read_description_xml): Use a lambda.
3935 (target_fetch_description_xml): Use a lambda.
3936 (string_read_description_xml): Update.
3937
04f5bab2
SM
39382020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3939
3940 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
3941 uses with type::endianity_is_not_default.
3942
db558e34
SM
39432020-09-14 Simon Marchi <simon.marchi@efficios.com>
3944
3945 * gdbtypes.h (struct type) <endianity_is_not_default,
3946 set_endianity_is_not_default>: New methods.
3947 (TYPE_ENDIANITY_NOT_DEFAULT): Use
3948 type::endianity_is_not_default, change all write call sites to
3949 use type::set_endianity_is_not_default.
3950
22c4c60c
SM
39512020-09-14 Simon Marchi <simon.marchi@efficios.com>
3952
3953 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
3954 uses with type::is_fixed_instance.
3955
9cdd0d12
SM
39562020-09-14 Simon Marchi <simon.marchi@efficios.com>
3957
3958 * gdbtypes.h (struct type) <is_fixed_instance,
3959 set_is_fixed_instance>: New methods.
3960 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
3961 write call sites to use type::set_is_fixed_instance.
3962
0becda7a
SM
39632020-09-14 Simon Marchi <simon.marchi@efficios.com>
3964
3965 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
3966 uses with type::is_gnu_ifunc.
3967
03cc7249
SM
39682020-09-14 Simon Marchi <simon.marchi@efficios.com>
3969
3970 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
3971 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
3972 use type::set_is_gnu_ifunc.
3973
3f46044c
SM
39742020-09-14 Simon Marchi <simon.marchi@efficios.com>
3975
3976 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
3977 uses with type::stub_is_supported.
3978
9baccff6
SM
39792020-09-14 Simon Marchi <simon.marchi@efficios.com>
3980
3981 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
3982 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
3983 use type::set_stub_is_supported.
3984
bd63c870
SM
39852020-09-14 Simon Marchi <simon.marchi@efficios.com>
3986
3987 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
3988 uses with type::is_vector.
3989
2062087b
SM
39902020-09-14 Simon Marchi <simon.marchi@efficios.com>
3991
3992 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
3993 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
3994 use type::set_is_vector.
3995
a409645d
SM
39962020-09-14 Simon Marchi <simon.marchi@efficios.com>
3997
3998 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
3999 uses with type::has_varargs.
4000
1d6286ed
SM
40012020-09-14 Simon Marchi <simon.marchi@efficios.com>
4002
4003 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
4004 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
4005 use type::set_has_varargs.
4006
7f9f399b
SM
40072020-09-14 Simon Marchi <simon.marchi@efficios.com>
4008
4009 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
4010 uses with type::is_prototyped.
4011
27e69b7a
SM
40122020-09-14 Simon Marchi <simon.marchi@efficios.com>
4013
4014 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
4015 New methods.
4016 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
4017 call sites to use type::set_is_prototyped.
4018
d2183968
SM
40192020-09-14 Simon Marchi <simon.marchi@efficios.com>
4020
4021 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
4022 uses with type::target_is_stub.
4023
8f53807e
SM
40242020-09-14 Simon Marchi <simon.marchi@efficios.com>
4025
4026 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
4027 New methods.
4028 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
4029 sites to use type::set_target_is_stub.
4030
e46d3488
SM
40312020-09-14 Simon Marchi <simon.marchi@efficios.com>
4032
4033 * gdbtypes.h (TYPE_STUB): Remove, replace all
4034 uses with type::is_stub.
4035
b4b73759
SM
40362020-09-14 Simon Marchi <simon.marchi@efficios.com>
4037
4038 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
4039 (TYPE_STUB): Use type::is_stub, change all write call sites to
4040 use type::set_is_stub.
4041
20ce4123
SM
40422020-09-14 Simon Marchi <simon.marchi@efficios.com>
4043
4044 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
4045 type::has_no_signedness.
4046
15152a54
SM
40472020-09-14 Simon Marchi <simon.marchi@efficios.com>
4048
4049 * gdbtypes.h (struct type) <has_no_signedness,
4050 set_has_no_signedness>: New methods.
4051 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
4052 call sites to use type::set_has_no_signedness.
4053
c6d940a9
SM
40542020-09-14 Simon Marchi <simon.marchi@efficios.com>
4055
4056 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
4057 type::is_unsigned.
4058
653223d3
SM
40592020-09-14 Simon Marchi <simon.marchi@efficios.com>
4060
4061 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
4062 methods.
4063 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
4064 sites to use type::set_is_unsigned.
4065
55ea94da 40662020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 4067 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 4068
e851246a
SM
4069 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
4070 pointer and stack frame offset when unwinding.
55ea94da 4071
6791b117
PA
40722020-09-13 Pedro Alves <pedro@palves.net>
4073
4074 * NEWS: Document "-break-insert --qualified".
4075 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
4076
77f2120b
PA
40772020-09-13 Pedro Alves <pedro@palves.net>
4078
4079 * linespec.c (classify_mtype, compare_msyms): Delete.
4080 (search_minsyms_for_name): Remove classification logic. Instead
4081 filter out trampoline symbols if we also found an external
4082 function of the same name.
4083
ed6a896c
JB
40842020-09-13 Joel Brobecker <brobecker@adacore.com>
4085
4086 * NEWS: Create a new section for the next release branch.
4087 Rename the section of the current branch, now that it has
4088 been cut.
4089
32aea73e
JB
40902020-09-13 Joel Brobecker <brobecker@adacore.com>
4091
4092 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
4093 * version.in: Bump version to 11.0.50.DATE-git.
4094
8087c3fa
JB
40952020-09-12 Joel Brobecker <brobecker@adacore.com>
4096
4097 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
4098
2a67f09d
FW
40992020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
4100 Felix Willgerodt <Felix.Willgerodt@intel.com>
4101
4102 * gdbarch.sh: Added bfloat16 type.
4103 * gdbarch.c: Regenerated.
4104 * gdbarch.h: Regenerated.
4105 * gdbtypes.c (floatformats_bfloat16): New struct.
4106 (gdbtypes_post_init): Add builtin_bfloat16.
4107 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
4108 (floatformats_bfloat16): New struct.
4109 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
4110 (i386_ymm_type): Add field "v16_bfloat16"
4111 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
4112 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
4113 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
4114 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
4115 * features/i386/64bit-avx512.xml: Add bfloat16 type.
4116 * features/i386/64bit-avx512.c: Regenerated.
4117 * features/i386/64bit-sse.xml: Add bfloat16 type.
4118 * features/i386/64bit-sse.c: Regenerated.
4119
1347d111
FW
41202020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
4121
4122 * i386-tdep.c (i386_zmm_type): Fix field names.
4123 (i386_ymm_type): Fix field names.
4124
7a4e8e7d
TBA
41252020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4126
4127 * breakpoint.c: Fix typo in the help message of the
4128 "set breakpoint condition-evaluation" command.
4129
cf4ac4be
KR
41302020-09-10 Kamil Rytarowski <n54@gmx.com>
4131
4132 * nbsd-nat.c: Include "nat/netbsd-nat.h".
4133 * (nbsd_nat_target::pid_to_exec_file)
4134 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
4135 (nbsd_nat_target::post_startup_inferior)
4136 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
4137 (nbsd_add_threads): Switch local code to common gdb/nat functions.
4138 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
4139 * (nbsd_thread_lister): Remove.
4140
f404573e
KR
41412020-09-10 Kamil Rytarowski <n54@gmx.com>
4142
4143 * fork-inferior.c (startup_inferior): Avoid double free.
4144
1ccb2c17
KR
41452020-09-10 Kamil Rytarowski <n54@gmx.com>
4146
4147 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
4148 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
4149
feedfcc7
KR
41502020-09-10 Kamil Rytarowski <n54@gmx.com>
4151
4152 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
4153 * netbsd-nat.c: Include <sys/ptrace.h>.
4154 * (netbsd_nat::enable_proc_events): Add.
4155
c489f8c6
KR
41562020-09-10 Kamil Rytarowski <n54@gmx.com>
4157
4158 * netbsd-nat.h: Include "gdbsupport/function-view.h".
4159 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4160 (netbsd_nat::for_each_thread): Add.
4161 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
4162 "gdbsupport/common-debug.h".
4163 * (netbsd_nat::netbsd_thread_lister)
4164 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4165 (netbsd_nat::for_each_thread): Add.
4166
330662f6
KR
41672020-09-10 Kamil Rytarowski <n54@gmx.com>
4168
4169 * netbsd-nat.h: Include <unistd.h>.
4170 * (netbsd_nat::pid_to_exec_file): Add.
4171 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
4172 * (netbsd_nat::pid_to_exec_file) Add.
4173
70b67307
KR
41742020-09-10 Kamil Rytarowski <n54@gmx.com>
4175
4176 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
4177
99cf6da6
KR
41782020-09-10 Kamil Rytarowski <n54@gmx.com>
4179
4180 * netbsd-nat.h: New file.
4181 * netbsd-nat.c: Likewise.
4182
1b788fb6
TT
41832020-09-09 Tom Tromey <tromey@adacore.com>
4184
4185 * ada-lang.c (remove_extra_symbols): Do not increment when
4186 removing an element
4187
03b0a45f
TT
41882020-09-08 Tom Tromey <tromey@adacore.com>
4189
4190 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
4191
3cae4447
TT
41922020-09-08 Tom Tromey <tromey@adacore.com>
4193
4194 PR win32/25302:
4195 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
4196 (gdb_bfd_init_data): New function.
4197 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
4198
7f08fd51
TBA
41992020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4200
4201 * infrun.c (fetch_inferior_event): Use
4202 `switch_to_target_no_thread` to switch the target.
4203
3e6ff933
TT
42042020-09-06 Tom Tromey <tom@tromey.com>
4205
4206 * symfile.h (dwarf2_free_objfile): Don't declare.
4207
e56798df
AKS
42082020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4209
4210 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
4211 to match 16 byte real/complex type generated by Flang compiler.
4212
8f5c6526
TV
42132020-09-03 Tom de Vries <tdevries@suse.de>
4214
4215 PR breakpoint/26546
4216 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
4217 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
4218
c5065df0
SM
42192020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
4220
4221 * maint.c (index_digits): New function.
4222 (struct maint_print_section_data): Remove.
4223 (print_bfd_section_info): Remove print_data parameter, add arg
4224 and index_digits.
4225 (print_objfile_section_info): Likewise.
4226 (print_bfd_section_info_maybe_relocated): Likewise (plus
4227 objfile).
4228 (maintenance_info_sections): Adjust calls.
4229
02c6f3f1
TT
42302020-09-02 Tom Tromey <tromey@adacore.com>
4231
4232 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
4233 for null pointers.
4234 (ada_varobj_adjust_for_child_access): Special-case null pointers.
4235
ef5e5b0b
SM
42362020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
4237
4238 * bcache.h (struct bcache) <insert>: Change type of `added` to
4239 pointer to bool.
4240 * bcache.c (bcache::insert): Likewise.
4241 * gdbtypes.c (check_types_worklist): Adjust.
4242 * psymtab.c (add_psymbol_to_bcache): Adjust.
4243
973695d6
KB
42442020-08-31 Kevin Buettner <kevinb@redhat.com>
4245
4246 * corelow.c (unordered_set): Include.
4247 (class core_target): Add field 'm_core_unavailable_mappings'.
4248 (core_target::build_file_mappings): Print only one warning
4249 per inaccessible file. Add unavailable/broken mappings
4250 to m_core_unavailable_mappings.
4251 (core_target::xfer_partial): Call...
4252 (core_target::xfer_memory_via_mappings): New method.
4253
264fc0e2
SM
42542020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4255
4256 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
4257 type to bool.
4258
2de01bdb
SM
42592020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4260
4261 * dwarf2/read.c (struct field_info): Fix indentation.
4262
f3bd50f1
SM
42632020-08-31 Simon Marchi <simon.marchi@efficios.com>
4264
4265 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
4266 ordering in comment.
4267 * frame.c (frame_id_eq): Fix indentation.
4268
22b9b4b0
SL
42692020-08-31 Scott Linder <scott@scottlinder.com>
4270 Simon Marchi <simon.marchi@efficios.com>
4271
4272 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
4273 inline frame ids in outer frame.
4274
84154d16
SM
42752020-08-31 Simon Marchi <simon.marchi@efficios.com>
4276
4277 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
4278 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
4279 (outer_frame_id): Use FID_STACK_OUTER instead of
4280 FID_STACK_INVALID.
4281 (frame_id_p): Don't check for outer_frame_id.
4282
8efaf6b3
SM
42832020-08-31 Simon Marchi <simon.marchi@efficios.com>
4284
4285 * frame-unwind.c (frame_unwind_got_optimized): Don't set
4286 regnum/frame in value. Call allocate_value_lazy.
4287 * frame.c (frame_unwind_register_value): Use
4288 val_print_not_saved.
4289
fe1fe7ea
SM
42902020-08-31 Simon Marchi <simon.marchi@efficios.com>
4291
4292 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
4293
f7c7700d
PA
42942020-08-29 Pedro Alves <pedro@palves.net>
4295
4296 * progspace.c (print_program_space): Use all_inferiors. Switch to
4297 the inferior before calling target_pid_to_str.
4298
e0814aae
TT
42992020-08-28 Tom Tromey <tom@tromey.com>
4300
4301 * xcoffread.c (xcoff_end_psymtab): Update comment.
4302 * dbxread.c (dbx_end_psymtab): Update comment.
4303
626d2320
TV
43042020-08-28 Tom de Vries <tdevries@suse.de>
4305
4306 PR breakpoint/26544
4307 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
4308 event_location.
4309 (create_breakpoint): Same.
4310 (base_breakpoint_decode_location): Same.
4311 (bkpt_create_sals_from_location): Same.
4312 (bkpt_decode_location): Same.
4313 (bkpt_probe_create_sals_from_location): Same.
4314 (bkpt_probe_decode_location): Same.
4315 (tracepoint_create_sals_from_location): Same.
4316 (tracepoint_decode_location): Same.
4317 (tracepoint_probe_decode_location): Same.
4318 (strace_marker_create_sals_from_location): Same.
4319 (strace_marker_decode_location): Same.
4320 (create_sals_from_location_default): Same.
4321 (decode_location_default): Same.
4322 * breakpoint.h (struct breakpoint_ops): Same.
4323 (create_breakpoint): Same.
4324 * linespec.h (decode_line_full): Same.
4325 * linespec.c (decode_line_full): Same. Throw error if
4326 result.size () == 0.
4327
df631783
PA
43282020-08-27 Pedro Alves <pedro@palves.net>
4329
4330 PR gdb/26524
4331 * breakpoint.c (until_break_fsm) <location_breakpoint,
4332 caller_breakpoint>: Delete fields.
4333 <breakpoints>: New field.
4334 <until_break_fsm>: Adjust to save a breakpoint vector instead of
4335 two individual breakpoints.
4336 (until_break_fsm::should_stop): Loop over breakpoints in the
4337 breakpoint vector.
4338 (until_break_fsm::clean_up): Adjust to clear the breakpoints
4339 vector.
4340 (until_break_command): Handle location expanding into multiple
4341 sals.
4342
b2b38aa4
PA
43432020-08-27 Pedro Alves <pedro@palves.net>
4344
4345 PR gdb/26523
4346 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
4347 bp_until breakpoints user-specified locations. Update intro
4348 comment.
4349
b886559f
SM
43502020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
4351
4352 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
4353 gdb_bfd_sections): New.
4354 * maint.c (print_bfd_section_info): Change param type to
4355 maint_print_section_data.
4356 (print_objfile_section_info): Likewise.
4357 (print_bfd_section_info_maybe_relocated): Likewise.
4358 (maintenance_info_sections): Use gdb_bfd_sections.
4359
4c6e63bf
SV
43602020-08-25 Shahab Vahedi <shahab@synopsys.com>
4361
4362 * MAINTAINERS: Add ARC target and maintainer.
4363
8d7f0635
AK
43642020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
4365
4366 * configure.tgt: ARC support for GNU/Linux.
4367 * Makefile.in (ALL_TARGET_OBJS): Likewise.
4368 * arc-linux-tdep.c: New file.
4369 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
4370 * arc-tdep.c (arc_write_pc): Use it.
4371
fdd8731b
SV
43722020-08-25 Shahab Vahedi <shahab@synopsys.com>
4373
4374 * arc-tdep.c (arc_check_for_hardware_loop): New.
4375 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
4376
22459524
SV
43772020-08-25 Shahab Vahedi <shahab@synopsys.com>
4378
4379 * arc-tdep.h: Include "gdbarch.h".
4380
995d3a19
SV
43812020-08-25 Shahab Vahedi <shahab@synopsys.com>
4382
4383 * arch/arc.h
4384 (arc_gdbarch_features): New class to stir the selection of target XML.
4385 (arc_create_target_description): Use FEATURES to choose XML target.
4386 (arc_lookup_target_description): Use arc_create_target_description
4387 to create _new_ target descriptions or return the already created
4388 ones if the FEATURES is the same.
4389 * arch/arc.c: Implementation of prototypes described above.
4390 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
4391 (arc_gdbarch_features_init): Initialize the FEATURES struct.
4392 * arc-tdep.c (*_feature_name): Make feature names consistent.
4393 (arc_register_feature): A new struct to hold information about
4394 registers of a particular target/feature.
4395 (arc_check_tdesc_feature): Check if XML provides registers in
4396 compliance with ARC_REGISTER_FEATURE structs.
4397 (arc_update_acc_reg_names): Add aliases for r58 and r59.
4398 (determine_*_reg_feature_set): Which feature name to look for.
4399 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
4400 (mach_type_to_arc_isa): Convert from a set of binutils machine types
4401 to expected ISA enums to be used in arc_gdbarch_features structs.
4402 * features/Makefile (FEATURE_XMLFILES): Add new files.
4403 * gdb/features/arc/v1-aux.c: New file.
4404 * gdb/features/arc/v1-aux.xml: Likewise.
4405 * gdb/features/arc/v1-core.c: Likewise.
4406 * gdb/features/arc/v1-core.xml: Likewise.
4407 * gdb/features/arc/v2-aux.c: Likewise.
4408 * gdb/features/arc/v2-aux.xml: Likewise.
4409 * gdb/features/arc/v2-core.c: Likewise.
4410 * gdb/features/arc/v2-core.xml: Likewise.
4411 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
4412
3945d2d7
GM
44132020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
4414 Andrew Burgess <andrew.burgess@embecosm.com>
4415
4416 PR m2/26372
fc5d6901 4417 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
4418 an assert. Remove single element array indexing pattern as the
4419 MULTI_SUBSCRIPT support will handle this case too.
4420
2677f2d3
SM
44212020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
4422
4423 * value.h (valprint_check_validity): Move declaration from
4424 here...
4425 * valprint.h (valprint_check_validity): ... to here.
4426
c426fddb
SM
44272020-08-24 Simon Marchi <simon.marchi@efficios.com>
4428
4429 * debug.h: New file.
4430 * debug.c (debug_prefixed_vprintf): New function.
4431 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
4432 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
4433
1eb8556f
SM
44342020-08-24 Simon Marchi <simon.marchi@efficios.com>
4435
4436 * infrun.h (infrun_debug_printf_1): New function declaration.
4437 (infrun_debug_printf): New macro.
4438 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
4439 throughout.
4440 (infrun_debug_printf): New function.
4441 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
4442 (handle_jit_event): Likewise.
4443
b8fff44e
MW
44442020-08-21 Mark Wielaard <mark@klomp.org>
4445
4446 * ada-lex.l: Extend register warnings diagnostics comment for g++.
4447
d19c3068
SM
44482020-08-22 Simon Marchi <simon.marchi@efficios.com>
4449
4450 * frame.c (enum class frame_id_status): New.
4451 (struct frame_info) <this_id::p>: Change type to frame_id_status.
4452 (fprintf_frame): Update.
4453 (compute_frame_id): Set frame id status to "computing" on entry.
4454 Set it back to "not_computed" on failure and to "computed" on
4455 success.
4456 (get_frame_id): Assert the frame id is not being computed.
4457 (create_sentinel_frame): Use frame_id_status::COMPUTED.
4458 (create_new_frame): Likewise.
4459 (frame_cleanup_after_sniffer): Update assert.
4460
b70e516e
SM
44612020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4462
4463 * regcache.c (pid_ptid_regcache_map): New type.
4464 (target_ptid_regcache_map): Remove.
4465 (target_pid_ptid_regcache_map): New type.
4466 (regcaches): Change type to target_pid_ptid_regcache_map.
4467 (get_thread_arch_aspace_regcache): Update.
4468 (regcache_thread_ptid_changed): Update, handle pid-like ptid
4469 case.
4470 (regcaches_size): Update.
4471 (regcache_count): Update.
4472 (registers_changed_ptid_target_pid_test): New.
4473 (_initialize_regcache): Register new test.
4474
cdd9148a
SM
44752020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4476
4477 * regcache.c (regcache_count): New.
4478 (struct regcache_test_data): New.
4479 (regcache_test_data_up): New.
4480 (populate_regcaches_for_test): New.
4481 (regcaches_test): Remove.
4482 (get_thread_arch_aspace_regcache_test): New.
4483 (registers_changed_ptid_all_test): New.
4484 (registers_changed_ptid_target_test): New.
4485 (registers_changed_ptid_target_ptid_test): New.
4486 (regcache_thread_ptid_changed): Remove regcache_count lambda.
4487 (_initialize_regcache): Register new tests.
4488
dd125343
SM
44892020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4490
4491 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
4492 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
4493 gdbarch and aspace parameter. Use current inferior's aspace.
4494 Validate regcache's arch value.
4495 (regcaches_test): Update.
4496
3ee93972
SM
44972020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4498
4499 * regcache.c (regcaches_test): Call registers_changed.
4500
33bf4c5c
TBA
45012020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4502
4503 * infrun.c (process_event_stop_test): Fix typo "breapoint".
4504
c2fd7fae
AKS
45052020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4506
4507 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
4508 to find the end of prologue for flang compiled binaries.
4509 * arm-tdep.c (arm_skip_prologue): Likewise.
4510 * i386-tdep.c (i386_skip_prologue): Likewise.
4511 * producer.c (producer_is_llvm): New function.
4512 (producer_parsing_tests): Added new tests for clang/flang.
4513 * producer.h (producer_is_llvm): New declaration.
4514
9327494e
SM
45152020-08-18 Simon Marchi <simon.marchi@efficios.com>
4516
4517 * linux-nat.c (linux_nat_debug_printf): New function.
4518 (linux_nat_debug_printf_1): New macro. Use throughout the file.
4519
d138725a
AM
45202020-08-18 Aaron Merey <amerey@redhat.com>
4521
4522 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
4523 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
4524 (CLIBS): Add DEBUGINFOD_LIBS.
4525
f9b11e6b
ST
45262020-08-17 Sergei Trofimovich <siarheit@google.com>
4527
4528 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
4529 'gdbarch_num_regs'.
4530
3ae7ab99
TT
45312020-08-17 Tom Tromey <tromey@adacore.com>
4532
4533 * ada-varobj.c (ada_varobj_decode_var): Handle case where
4534 ada_get_decoded_value returns NULL.
4535
b017825f
TT
45362020-08-17 Tom Tromey <tromey@adacore.com>
4537
4538 * python/py-inferior.c (infpy_search_memory): Use
4539 gdb_py_object_from_ulongest.
4540 * python/py-infevents.c (create_inferior_call_event_object)
4541 (create_memory_changed_event_object): Use
4542 gdb_py_object_from_ulongest.
4543 * python/py-linetable.c (ltpy_entry_get_pc): Use
4544 gdb_py_object_from_ulongest.
4545
7635cf79
SM
45462020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
4547
4548 * loc.c (class symbol_needs_eval_context): Fix indentation.
4549
f54be24b
SM
45502020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
4551
4552 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
4553 bool.
4554
53d5a2a5
TV
45552020-08-17 Tom de Vries <tdevries@suse.de>
4556
4557 PR gdb/26393
4558 * gdbtypes.c (dump_dynamic_prop): New function.
4559 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
4560
547ce8f0
TV
45612020-08-15 Tom de Vries <tdevries@suse.de>
4562
4563 PR backtrace/26390
4564 * stack.c (print_frame_args): Temporarily set the selected
4565 frame to FRAME while printing the frame's arguments.
4566
6ea815e7
PFC
45672020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4568
4569 PR breakpoints/26385
4570 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
4571 Always clear watchpoint with PTRACE_SET_DEBUGREG.
4572
6e562fa3
PFC
45732020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4574
4575 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
4576 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
4577 and >= to check return value instead of == -1 and != -1.
4578
d369b608
SM
45792020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
4580
4581 * utils.h (class gdb_argv) <as_array_view>: New method.
4582 * utils.c (gdb_argv_as_array_view_test): New.
4583 (_initialize_utils): Register selftest.
4584 * maint.c (maintenance_selftest): Use the new method.
4585
b31488a3
KR
45862020-08-13 Kamil Rytarowski <n54@gmx.com>
4587
4588 * target.h (supports_dumpcore, dumpcore): New
4589 function declarations.
4590 * target.c (supports_dumpcore, dumpcore): New
4591 functions.
4592 * target-delegates.c: Rebuild.
4593 * gcore.c (gcore_command): Use target_supports_dumpcore ()
4594 and target_dumpcore ().
4595
002a3166
AM
45962020-08-13 Aaron Merey <amerey@redhat.com>
4597
4598 * debuginfod-support.c: Replace global variables with user_data.
4599
ece5bc8a
SM
46002020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
4601
4602 * maint.c (maintenance_selftest): Split args and pass array_view
4603 to run_tests.
4604
6d8a0a5e
LM
46052020-08-12 Luis Machado <luis.machado@linaro.org>
4606
4607 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
4608 type's length.
4609 Use %s and pulongest to print the length.
4610
7cf663a9
PA
46112020-08-12 Pedro Alves <palves@redhat.com>
4612
4613 * NEWS: Move "Multi-target debugging support" item to the
4614 "Changes since GDB 9" section.
4615
27c7b875
PA
46162020-08-12 Pedro Alves <palves@redhat.com>
4617
4618 PR gdb/26336
4619 * progspace.c (program_space::remove_objfile): Invalidate the
4620 frame cache.
4621
1796a2a1
TV
46222020-08-11 Tom de Vries <tdevries@suse.de>
4623
4624 * MAINTAINERS: Mark ms1 as deleted.
4625
f8e3fe0d
LM
46262020-08-10 Luis Machado <luis.machado@linaro.org>
4627
4628 PR gdb/26310
4629
4630 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
4631 act accordingly.
4632 (aarch64_analyze_prologue_test): Add more unit tests to exercise
4633 movz/str/stur/stp skipping behavior.
4634
cc308722
LM
46352020-08-10 Luis Machado <luis.machado@linaro.org>
4636
4637 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
4638 struct user_sve_header instead of struct sve_context.
4639
041d9819
SM
46402020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
4641
4642 * read.h (dwarf2_fetch_die_loc_sect_off,
4643 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
4644 `void *` parameter with function_view.
4645 * read.c (dwarf2_fetch_die_loc_sect_off,
4646 dwarf2_fetch_die_loc_cu_off): Likewise.
4647 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
4648 (per_cu_dwarf_call): Adjust.
4649 (get_frame_address_in_block_wrapper): Remove.
4650 (indirect_synthetic_pointer): Adjust.
4651 (get_ax_pc): Remove.
4652 (dwarf2_compile_expr_to_ax): Adjust.
4653
38f8aa06
TV
46542020-08-08 Tom de Vries <tdevries@suse.de>
4655
4656 PR build/26344
4657 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
4658 constructor.
4659 * regcache.c (get_thread_arch_aspace_regcache): Same.
4660
a52b3ae2
TT
46612020-08-07 Tom Tromey <tromey@adacore.com>
4662
4663 * ravenscar-thread.c
4664 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
4665 New method.
4666 (ravenscar_thread_target::wait): Check
4667 runtime_initialized.
4668 (ravenscar_thread_target::prepare_to_store)
4669 (ravenscar_thread_target::stopped_by_sw_breakpoint)
4670 (ravenscar_thread_target::stopped_by_hw_breakpoint)
4671 (ravenscar_thread_target::stopped_by_watchpoint)
4672 (ravenscar_thread_target::stopped_data_address)
4673 (ravenscar_thread_target::core_of_thread): Use
4674 scoped_restore_current_thread and
4675 set_base_thread_from_ravenscar_task.
4676
0e29517d
TT
46772020-08-07 Tom Tromey <tromey@adacore.com>
4678
4679 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
4680
592f9bd7
TT
46812020-08-07 Tom Tromey <tromey@adacore.com>
4682
4683 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
4684 update_inferior_ptid before update_thread_list.
4685 (temporarily_change_regcache_ptid): New class.
4686 (ravenscar_thread_target::fetch_registers)
4687 (ravenscar_thread_target::store_registers)
4688 (ravenscar_thread_target::prepare_to_store): Use base thread when
4689 forwarding operation.
4690
39e2018a
TT
46912020-08-07 Tom Tromey <tromey@adacore.com>
4692
4693 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
4694 "is_pid" case.
4695
2080266b
TT
46962020-08-07 Tom Tromey <tromey@adacore.com>
4697
4698 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
4699 New methods.
4700 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
4701 first.
4702 (ravenscar_thread_target::add_thread): Rename from
4703 ravenscar_add_thread.
4704 (ravenscar_thread_target::update_thread_list): Use a lambda.
4705 (ravenscar_thread_target::xfer_partial): New method.
4706
78c02f21
TT
47072020-08-07 Tom Tromey <tromey@adacore.com>
4708
4709 * ada-lang.h (ada_task_list_iterator_ftype): Now a
4710 gdb::function_view.
4711 (iterate_over_live_ada_tasks): Change type of argument.
4712 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
4713 of argument.
4714
d5d833af
TT
47152020-08-07 Tom Tromey <tromey@adacore.com>
4716
4717 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
4718 Remove.
4719 (ravenscar_thread_target::extra_thread_info): Remove.
4720 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
4721 defer to target beneath for non-Ravenscar threads.
4722
a8ac85bb
TT
47232020-08-07 Tom Tromey <tromey@adacore.com>
4724
4725 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
4726 get_base_thread_from_ravenscar_task>: Now methods.
4727 <m_cpu_map>: New member.
4728 (ravenscar_thread_target::get_thread_base_cpu): Rename from
4729 ravenscar_get_thread_base_cpu. Check m_cpu_map.
4730 (ravenscar_thread_target::task_is_currently_active): Update.
4731 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
4732 Now a method.
4733 (ravenscar_thread_target::add_active_thread): Put initial thread
4734 into the m_cpu_map.
4735
550ab58d
TT
47362020-08-07 Tom Tromey <tromey@adacore.com>
4737
4738 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
4739 event_ptid.
4740
e9546579
TT
47412020-08-07 Tom Tromey <tromey@adacore.com>
4742
4743 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
4744 runtime_initialized.
4745
3d4470e5
TT
47462020-08-07 Tom Tromey <tromey@adacore.com>
4747
4748 * ravenscar-thread.c (ravenscar_thread_target): Don't call
4749 add_active_thread.
4750 (ravenscar_thread_target::add_active_thread): Now public.
4751 (ravenscar_inferior_created): Call add_active_thread after pushing
4752 the target.
4753
888bdb2b
SM
47542020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
4755
4756 * regcache.c (ptid_regcache_map): New type.
4757 (target_ptid_regcache_map): New type.
4758 (regcaches): Change type to target_ptid_regcache_map.
4759 (get_thread_arch_aspace_regcache): Update to regcaches' new
4760 type.
4761 (regcache_thread_ptid_changed): Likewise.
4762 (registers_changed_ptid): Likewise.
4763 (regcaches_size): Likewise.
4764 (regcaches_test): Update.
4765 (regcache_thread_ptid_changed): Update.
4766 * regcache.h (regcache_up): New type.
4767 * gdbsupport/ptid.h (hash_ptid): New struct.
4768
b161a60d
SM
47692020-08-07 Simon Marchi <simon.marchi@efficios.com>
4770
4771 * observable.h (thread_ptid_changed): Add parameter
4772 `process_stratum_target *`.
4773 * infrun.c (infrun_thread_ptid_changed): Add parameter
4774 `process_stratum_target *` and use it.
4775 (selftests): New namespace.
4776 (infrun_thread_ptid_changed): New function.
4777 (_initialize_infrun): Register selftest.
4778 * regcache.c (regcache_thread_ptid_changed): Add parameter
4779 `process_stratum_target *` and use it.
4780 (regcache_thread_ptid_changed): New function.
4781 (_initialize_regcache): Register selftest.
4782 * thread.c (thread_change_ptid): Pass target to
4783 thread_ptid_changed observable.
4784
d2854d8d
CT
47852020-08-06 Caroline Tice <cmtice@google.com>
4786
fe4c3d43
SM
4787 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
4788 (struct dwp_sections): Update field comments. Add loclists and
4789 rnglists fields.
4790 (struct virtual_v2_dwo_sections): Rename struct to
4791 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
4792 size & offset fields for loclists and rnglists.
4793 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
4794 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
4795 skipping dummy type units.
4796 (create_dwp_hash_table): Update the large comment above the function to
4797 discuss Version 5 DWP files as well, with references. Update all the
4798 version checks in the function to check for version 5 as well. Add new
4799 section at the end to create dwp hash table for version 5.
4800 (create_dwp_v2_section): Rename function to
4801 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
4802 Add V5 to error message text.
4803 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
4804 into calls to create_dwp_v2_or_v5_section.
4805 (create_dwo_unit_in_dwp_v5): New function.
4806 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
4807 check for version2; add else clause to handle version 5.
4808 (open_and_init_dwo_file): Add code to check dwarf version & only call
4809 create_debug_types_hash_table (with sections.types) if version is not 5;
4810 else call create_debug_type_hash_table, with sections.info.
4811 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
4812 version 5.
4813 (dwarf2_locate_v5_dwp_sections): New function.
4814 (open_and_init_dwp_file): Add else-if clause for version 5 to call
4815 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 4816
159ed7d9
SM
48172020-08-06 Simon Marchi <simon.marchi@efficios.com>
4818
4819 * regcache.h (class regcache): Remove friend
4820 registers_changed_ptid.
4821 <regcache_thread_ptid_changed>: Remove.
4822 <regcaches>: Remove.
4823 * regcache.c (regcache::regcaches): Rename to...
4824 (regcaches): ... this. Make static.
4825 (get_thread_arch_aspace_regcache): Update.
4826 (regcache::regcache_thread_ptid_changed): Rename to...
4827 (regcache_thread_ptid_changed): ... this. Update.
4828 (class regcache_access): Remove.
4829 (regcaches_test): Update.
4830 (_initialize_regcache): Update.
4831 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
4832 <forward_list>.
4833
174981ae
SM
48342020-08-06 Simon Marchi <simon.marchi@efficios.com>
4835
4836 * regcache.h (class regcache) <current_regcache>: Rename to...
4837 <regcaches>: ... this. Move doc here.
4838 * regcache.c (regcache::current_regcache) Rename to...
4839 (regcache::regcaches): ... this. Move doc to header.
4840 (get_thread_arch_aspace_regcache): Update.
4841 (regcache::regcache_thread_ptid_changed): Update.
4842 (registers_changed_ptid): Update.
4843 (class regcache_access) <current_regcache_size>: Rename to...
4844 <regcaches_size>: ... this.
4845 (current_regcache_test): Rename to...
4846 (regcaches_test): ... this.
4847 (_initialize_regcache): Update.
4848
ed908db6
VC
48492020-08-06 Victor Collod <vcollod@nvidia.com>
4850
4851 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
4852
b5582ab7
KB
48532020-08-05 Kevin Buettner <kevinb@redhat.com>
4854
4855 * corelow.c (core_target::build_file_mappings): Don't output
4856 null pathname in warning.
4857
ea946b86
SM
48582020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
4859
4860 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
4861 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
4862 gdb.dwarf2/dw2-single-line-discriminators.exp,
4863 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
4864
57d02173
TT
48652020-08-05 Tom Tromey <tromey@adacore.com>
4866
4867 PR rust/26197:
4868 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
4869 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
4870 Fix off-by-one and type size errors in ordinary case.
4871
5555c86d
TV
48722020-08-05 Tom de Vries <tdevries@suse.de>
4873
4874 * gdbtypes.c (type_not_allocated, type_not_associated): Use
4875 "prop->const_val () == 0" instead of "prop->const_val () != 0".
4876
97916bfe
SM
48772020-08-04 Simon Marchi <simon.marchi@efficios.com>
4878
4879 * frame.h (frame_id_p): Return bool.
4880 (frame_id_artificial_p): Return bool.
4881 (frame_id_eq): Return bool.
4882 (has_stack_frames): Return bool.
4883 (get_selected_frame): Fix typo in comment.
4884 (get_frame_pc_if_available): Return bool.
4885 (get_frame_address_in_block_if_available): Return bool.
4886 (get_frame_func_if_available): Return bool.
4887 (read_frame_register_unsigned): Return bool.
4888 (get_frame_register_bytes): Return bool.
4889 (safe_frame_unwind_memory): Return bool.
4890 (deprecated_frame_register_read): Return bool.
4891 (frame_unwinder_is): Return bool.
4892 * frame.c (struct frame_info) <prev_arch::p>: Change type to
4893 bool.
4894 <this_id::p>: Likewise.
4895 <prev_p>: Likewise.
4896 (frame_stash_add): Return bool.
4897 (get_frame_id): Use bool.
4898 (frame_id_build_special) Use bool.
4899 (frame_id_build_unavailable_stack): Use bool.
4900 (frame_id_build): Use bool.
4901 (frame_id_p): Return bool, use true/false instead of 1/0.
4902 (frame_id_artificial_p): Likewise.
4903 (frame_id_eq): Likewise.
4904 (frame_id_inner): Likewise.
4905 (get_frame_func_if_available): Likewise.
4906 (read_frame_register_unsigned): Likewise.
4907 (deprecated_frame_register_read): Likewise.
4908 (get_frame_register_bytes): Likewise.
4909 (has_stack_frames): Likewise.
4910 (inside_main_func): Likewise.
4911 (inside_entry_func): Likewise.
4912 (get_frame_pc_if_available): Likewise.
4913 (get_frame_address_in_block_if_available): Likewise.
4914 (frame_unwinder_is): Likewise.
4915 (safe_frame_unwind_memory): Likewise.
4916 (frame_unwind_arch): Likewise.
4917
fedfee88
SM
49182020-08-04 Simon Marchi <simon.marchi@efficios.com>
4919
4920 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
4921 type to cached_copy_status.
4922 (fprintf_frame): Adjust.
4923 (get_frame_func_if_available): Adjust.
4924 (frame_cleanup_after_sniffer): Adjust.
4925
6cfa9b59
MW
49262020-08-04 Mark Wielaard <mark@klomp.org>
4927
4928 * MAINTAINERS (Write After Approval): Update email address.
4929
66d6346b
SM
49302020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4931
4932 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
4933 dynamic_prop::const_val.
4934
8a6d5e35
SM
49352020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4936
4937 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
4938 dynamic_prop::kind.
4939
51d6067d
SM
49402020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4941
4942 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
4943
b26e2ae7
JM
49442020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
4945
4946 * configure.tgt: Set gdb_sim for bpf-*-* targets.
4947
39791af2
JM
49482020-08-04 Weimin Pan <weimin.pan@oracle.com>
4949 Jose E. Marchesi <jose.marchesi@oracle.com>
4950
4951 * configure.tgt: Add entry for bpf-*-*.
4952 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
4953 (ALLDEPFILES): Add bpf-tdep.c.
4954 * bpf-tdep.c: New file.
4955 * MAINTAINERS: Add bpf target and maintainer.
4956 * NEWS: Mention the support for the new target.
4957
521894aa
TV
49582020-08-04 Tom de Vries <tdevries@suse.de>
4959
4960 PR symtab/23270
4961 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
4962 Error.
4963
5d6356e9
JB
49642020-08-03 John Baldwin <jhb@FreeBSD.org>
4965
4966 * syscalls/freebsd.xml: Regenerate.
4967
0cf82b81
JB
49682020-08-03 John Baldwin <jhb@FreeBSD.org>
4969
4970 * syscalls/update-freebsd.sh: Fix usage and year range.
4971
8f34b746
TV
49722020-08-03 Tom de Vries <tdevries@suse.de>
4973
4974 PR symtab/26333
4975 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
4976 DW_LNE_lo_user/DW_LNE_hi_user range.
4977
5e500d33
SM
49782020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
4979
4980 PR ada/26318
4981 * ada-lang.c (ada_modulus): Return 0 if property is not of const
4982 kind.
4983
78319c15
TBA
49842020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4985
4986 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
4987
4c55e970
TBA
49882020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4989
4990 * breakpoint.c (set_breakpoint_condition): Update the condition
4991 expressions after checking that the input condition string parses
4992 successfully and does not contain junk at the end.
4993
1e620590
TBA
49942020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4995
4996 * breakpoint.c (set_breakpoint_condition): Update the
4997 condition string after parsing the new condition successfully.
4998
c8693053
RO
49992020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5000
5001 * proc-api.c (_STRUCTURED_PROC): Don't define.
5002 * proc-events.c: Likewise.
5003 * proc-flags.c: Likewise.
5004 * proc-why.c: Likewise.
5005 * procfs.c: Likewise.
5006
5007 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
5008 * configure, config.in: Regenerate.
5009
5a99adb8
TV
50102020-07-30 Tom de Vries <tdevries@suse.de>
5011
5012 PR build/26320
5013 * ui-style.h (struct ui_file_style::color): Wrap m_value and
5014 m_red/m_green/m_blue in a union.
5015
8ba83e91
TV
50162020-07-29 Tom de Vries <tdevries@suse.de>
5017
5018 PR tdep/26280
5019 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
5020
f75a0693
AB
50212020-07-28 Tom Tromey <tromey@adacore.com>
5022
5023 PR symtab/26270:
5024 * symtab.h (find_pc_partial_function_sym): Declare.
5025 * cli/cli-cmds.c (disassemble_command): Use
5026 find_pc_partial_function_sym. Check asm_demangle.
5027 * blockframe.c (cache_pc_function_sym): New global.
5028 (cache_pc_function_name): Remove.
5029 (clear_pc_function_cache): Update.
5030 (find_pc_partial_function_sym): New function, from
5031 find_pc_partial_function.
5032 (find_pc_partial_function): Rewrite using
5033 find_pc_partial_function_sym.
5034
16f3242c
TT
50352020-07-28 Tom Tromey <tromey@adacore.com>
5036
5037 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
5038 help. Add usage.
5039
4888741a
TT
50402020-07-28 Tom Tromey <tromey@adacore.com>
5041
5042 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
5043 <DW_OP_GNU_variable_value>: Cast to address type.
5044
4d46f402
KR
50452020-07-28 Kamil Rytarowski <n54@gmx.com>
5046
5047 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
5048 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
5049 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
5050 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
5051 (nbsd_get_siginfo_type): New.
5052 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
5053 (_initialize_nbsd_tdep): New.
5054
d70f978b
L
50552020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5056
5057 PR binutils/26301
5058 * configure: Regenerated.
5059
377170fa
L
50602020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5061
5062 PR binutils/26301
5063 * configure: Regenerated.
5064
43d5901d
AB
50652020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5066
5067 * python/py-frame.c: Remove 'user-regs.h' include.
5068 (frapy_read_register): Rewrite to make use of
5069 gdbpy_parse_register_id.
5070 * python/py-registers.c (gdbpy_parse_register_id): New function,
5071 moved here from python/py-unwind.c. Updated the return type, and
5072 also accepts register descriptor objects.
5073 * python/py-unwind.c: Remove 'user-regs.h' include.
5074 (pyuw_parse_register_id): Moved to python/py-registers.c.
5075 (unwind_infopy_add_saved_register): Update to use
5076 gdbpy_parse_register_id.
5077 (pending_framepy_read_register): Likewise.
5078 * python/python-internal.h (gdbpy_parse_register_id): Declare.
5079
14fa8fb3
AB
50802020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5081
5082 * python/py-registers.c: Add 'user-regs.h' include.
5083 (register_descriptor_iter_find): New function.
5084 (register_descriptor_iterator_object_methods): New static global
5085 methods array.
5086 (register_descriptor_iterator_object_type): Add pointer to methods
5087 array.
5088
ddce1758
JB
50892020-07-27 John Baldwin <jhb@FreeBSD.org>
5090
5091 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
5092 for all architectures on FreeBSD 11.3 and later.
5093
a4089f52
TT
50942020-07-27 Tom Tromey <tromey@adacore.com>
5095
5096 * gcore.h (load_corefile): Don't declare.
5097
95420d30
TV
50982020-07-27 Tom de Vries <tdevries@suse.de>
5099
5100 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
5101 * config.in: Regenerate.
5102 * configure: Regenerate.
5103
05a6b8c2
EZ
51042020-07-26 Eli Zaretskii <eliz@gnu.org>
5105
5106 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
5107 ws2tcpip.h. When checking whether socklen_t type is defined, use
5108 ws2tcpip.h if it is available and sys/socket.h isn't.
5109 * configure: Regenerate.
5110 * config.in: Regenerate.
5111
e79eb02f
AB
51122020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
5113
5114 PR fortran/23051
5115 PR fortran/26139
5116 * valops.c (value_ind): Pass address to
5117 readjust_indirect_value_type.
5118 * value.c (readjust_indirect_value_type): Make parameter
5119 non-const, and add extra address parameter. Resolve original type
5120 before using it.
5121 * value.h (readjust_indirect_value_type): Update function
5122 signature and comment.
5123
876518dd
TV
51242020-07-25 Tom de Vries <tdevries@suse.de>
5125
5126 PR symtab/26243
5127 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
5128 entries.
5129
f6720b1c
AM
51302020-07-24 Aaron Merey <amerey@redhat.com>
5131
5132 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
5133 * configure: Rebuild.
5134
513487e1
KB
51352020-07-23 Kevin Buettner <kevinb@redhat.com>
5136
5137 PR corefiles/26294
5138 * corelow.c (_initialize_corelow): Add period to help text
5139 for "maintenance print core-file-backed-mappings".
5140
e7bc9db8
PA
51412020-07-23 Pedro Alves <pedro@palves.net>
5142
5143 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
5144 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
5145 meanwhile.
5146 * frame.c (frame_cache_generation, get_frame_cache_generation):
5147 New.
5148 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
5149 (get_prev_frame_if_no_cycle): On exception, don't touch
5150 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
5151 * frame.h (get_frame_cache_generation): Declare.
5152
90fcc466
TV
51532020-07-23 Tom de Vries <tdevries@suse.de>
5154
5155 PR tui/26282
5156 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
5157 New default constructor.
5158
78344df7
AB
51592020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
5160
5161 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
5162 exclude non-statement entries.
5163
b089853a
KB
51642020-07-22 Kevin Buettner <kevinb@redhat.com>
5165
5166 * NEWS (New commands): Mention new command
5167 "maintenance print core-file-backed-mappings".
5168
09c2f5d4
KB
51692020-07-22 Kevin Buettner <kevinb@redhat.com>
5170
5171 * corelow.c (gdbcmd.h): Include.
5172 (core_target::info_proc_mappings): New method.
5173 (get_current_core_target): New function.
5174 (maintenance_print_core_file_backed_mappings): New function.
5175 (_initialize_corelow): Add core-file-backed-mappings to
5176 "maint print" commands.
5177
9c5ec5c2 51782020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 5179
9c5ec5c2
KB
5180 * linux-tdep.c (dump_note_entry_p): New function.
5181 (linux_dump_mapping_p_ftype): New typedef.
5182 (linux_find_memory_regions_full): Add new parameter,
5183 should_dump_mapping_p.
5184 (linux_find_memory_regions): Adjust call to
5185 linux_find_memory_regions_full.
5186 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
5187 call to linux_find_memory_regions_full.
5188
db082f59
KB
51892020-07-22 Kevin Buettner <kevinb@redhat.com>
5190
5191 * corelow.c (solist.h, unordered_map): Include.
5192 (class core_target): Add field m_core_file_mappings and
5193 method build_file_mappings.
5194 (core_target::core_target): Call build_file_mappings.
5195 (core_target::~core_target): Free memory associated with
5196 m_core_file_mappings.
5197 (core_target::build_file_mappings): New method.
5198 (core_target::xfer_partial): Use m_core_file_mappings
5199 for memory transfers.
5200 * linux-tdep.c (linux_read_core_file_mappings): New
5201 function.
5202 (linux_core_info_proc_mappings): Rewrite to use
5203 linux_read_core_file_mappings.
5204 (linux_init_abi): Register linux_read_core_file_mappings.
5205
7e183d27
KB
52062020-07-22 Kevin Buettner <kevinb@redhat.com>
5207
5208 * arch-utils.c (default_read_core_file_mappings): New function.
5209 * arch-utils.c (default_read_core_file_mappings): Declare.
5210 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
5211 * gdbarch.h, gdbarch.c: Regenerate.
5212
2735d421
KB
52132020-07-22 Kevin Buettner <kevinb@redhat.com>
5214
5215 PR corefiles/25631
5216 * corelow.c (core_target:xfer_partial): Revise
5217 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
5218 case after first checking the stratum beneath the core
5219 target.
5220 (has_all_memory): Return true.
5221 * target.c (raw_memory_xfer_partial): Revise comment
5222 regarding use of has_all_memory.
5223
e56cb451
KB
52242020-07-22 Kevin Buettner <kevinb@redhat.com>
5225
5226 * exec.h (section_table_xfer_memory): Revise declaration,
5227 replacing section name parameter with an optional callback
5228 predicate.
5229 * exec.c (section_table_xfer_memory): Likewise.
5230 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
5231 of section_table_xfer_memory.
5232
32fa152e
TT
52332020-07-22 Tom Tromey <tromey@adacore.com>
5234
5235 * mi/mi-cmd-stack.c (list_args_or_locals): Use
5236 lookup_symbol_search_name.
5237
a67a1c41
AB
52382020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5239
5240 * python/py-registers.c (gdbpy_register_object_data_init): Remove
5241 redundant local variable.
5242 (gdbpy_get_register_descriptor): Extract descriptor vector as a
5243 reference, not pointer, update code accordingly.
5244
a7b4ff4f
SM
52452020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5246 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5247
5248 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
5249 * jit.c (jit_breakpoint_re_set_internal): Use the
5250 `skip_jit_symbol_lookup` field.
5251
2340e834
SM
52522020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5253 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5254
5255 * jit.c (jit_read_descriptor): Define the descriptor address once,
5256 use twice.
5257 (jit_breakpoint_deleted): Move the declaration of the loop variable
5258 `iter` into the loop header.
5259 (jit_breakpoint_re_set_internal): Move the declaration of the local
5260 variable `objf_data` to the first point of definition.
5261 (jit_event_handler): Move the declaration of local variables
5262 `code_entry`, `entry_addr`, and `objf` to their first point of use.
5263 Rename `objf` to `jited`.
5264
c1072906
SM
52652020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5266
5267 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
5268 Remove.
5269 * jit.c (get_jiter_objfile_data): Update.
5270
c8474dc3
TBA
52712020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5272 Simon Marchi <simon.marchi@polymtl.ca>
5273
5274 * jit.c (struct jit_program_space_data): Remove.
5275 (jit_program_space_key): Remove.
5276 (jiter_objfile_data::~jiter_objfile_data): Remove program space
5277 stuff.
5278 (get_jit_program_space_data): Remove.
5279 (jit_breakpoint_deleted): Iterate on all of the program space's
5280 objfiles.
5281 (jit_inferior_init): Likewise.
5282 (jit_breakpoint_re_set_internal): Likewise. Also change return
5283 type to void.
5284 (jit_breakpoint_re_set): Pass current_program_space to
5285 jit_breakpoint_re_set_internal.
5286
77208eb7
SM
52872020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5288
5289 * jit.h (struct jiter_objfile_data) <cached_code_address,
5290 jit_breakpoint>: Move to here from ...
5291 * jit.c (jit_program_space_data): ... here.
5292 (jiter_objfile_data::~jiter_objfile_data): Update.
5293 (jit_breakpoint_deleted): Update.
5294 (jit_breakpoint_re_set_internal): Update.
5295
8c1c720f
SM
52962020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5297
5298 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
5299 checks.
5300 (jit_read_descriptor): Remove NULL check.
5301 (jit_event_handler): Add an assertion.
5302
0e74a041
SM
53032020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5304
5305 * jit.h (struct jit_objfile_data): Split into...
5306 (struct jiter_objfile_data): ... this ...
5307 (struct jited_objfile_data): ... and this.
5308 * objfiles.h (struct objfile) <jit_data>: Remove.
5309 <jiter_data, jited_data>: New fields.
5310 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
5311 (jiter_objfile_data::~jiter_objfile_data): ... this.
5312 (get_jit_objfile_data): Rename to ...
5313 (get_jiter_objfile_data): ... this.
5314 (add_objfile_entry): Update.
5315 (jit_read_descriptor): Use get_jiter_objfile_data.
5316 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
5317 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
5318 (jit_inferior_exit_hook): Use objfile's jited_data field.
5319
238b5c9f
SM
53202020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5321
5322 * jit.h: Forward-declare `struct minimal_symbol`.
5323 (struct jit_objfile_data): Migrate to here from jit.c; also add a
5324 constructor, destructor, and an objfile* field.
5325 * jit.c (jit_objfile_data): Remove.
5326 (struct jit_objfile_data): Migrate from here to jit.h.
5327 (jit_objfile_data::~jit_objfile_data): New destructor
5328 implementation with code moved from free_objfile_data.
5329 (free_objfile_data): Delete.
5330 (get_jit_objfile_data): Update to use the jit_data field of objfile.
5331 (jit_find_objf_with_entry_addr): Ditto.
5332 (jit_inferior_exit_hook): Ditto.
5333 (_initialize_jit): Remove the call to
5334 register_objfile_data_with_cleanup.
5335 * objfiles.h (struct objfile) <jit_data>: New field.
5336
fe053b9e
TBA
53372020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5338
5339 * jit.h: Forward-declare `struct objfile`.
5340 (jit_event_handler): Add a second parameter, the JITer objfile.
5341 * jit.c (jit_read_descriptor): Change the signature to take the
5342 JITer objfile as an argument instead of the jit_program_space_data.
5343 (jit_inferior_init): Update the call to jit_read_descriptor.
5344 (jit_event_handler): Use the new JITer objfile argument when calling
5345 jit_read_descriptor.
5346 * breakpoint.c (handle_jit_event): Update the call to
5347 jit_event_handler to pass the JITer objfile.
5348
4cec0c66
JB
53492020-07-21 John Baldwin <jhb@FreeBSD.org>
5350
5351 * gdbarch.c: Regenerate.
5352 * gdbarch.h: Regenerate.
5353 * gdbarch.sh (handle_segmentation_fault): Remove method.
5354 * infrun.c (handle_segmentation_fault): Remove.
5355 (print_signal_received_reason): Remove call to
5356 handle_segmentation_fault.
5357
0e42f66a
JB
53582020-07-21 John Baldwin <jhb@FreeBSD.org>
5359
5360 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
5361 Rename to sparc64_linux_report_signal_info and add siggnal
5362 argument.
5363 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
5364 instead of sparc64_linux_handle_segmentation_fault.
5365
77bdfeb2
JB
53662020-07-21 John Baldwin <jhb@FreeBSD.org>
5367
5368 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
5369 i386_linux_report_signal_info instead of
5370 i386_linux_handle_segmentation_fault.
5371 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
5372 to i386_linux_report_signal_info and add siggnal argument.
5373 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
5374 of i386_linux_handle_segmentation_fault.
5375 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
5376 to i386_linux_report_signal_info and add siggnal argument.
5377
ad97bfc5
JB
53782020-07-21 John Baldwin <jhb@FreeBSD.org>
5379
5380 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
5381 hook if present.
5382
272bb05c
JB
53832020-07-21 John Baldwin <jhb@FreeBSD.org>
5384
5385 * gdbarch.c: Regenerate.
5386 * gdbarch.h: Regenerate.
5387 * gdbarch.sh (report_signal_info): New method.
5388 * infrun.c (print_signal_received_reason): Invoke gdbarch
5389 report_signal_info hook if present.
5390
baf8791e
AB
53912020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
5392
5393 * python/py-registers.c : Add 'unordered_map' include.
5394 (gdbpy_new_reggroup): Renamed to...
5395 (gdbpy_get_reggroup): ...this. Update to only create register
5396 group descriptors when needed.
5397 (gdbpy_reggroup_iter_next): Update.
5398
f7306dac
AB
53992020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
5400
5401 * python/py-registers.c (gdbpy_register_object_data): New static
5402 global.
5403 (gdbpy_register_object_data_init): New function.
5404 (gdbpy_new_register_descriptor): Renamed to...
5405 (gdbpy_get_register_descriptor): ...this, and update to reuse
5406 existing register descriptors where possible.
5407 (gdbpy_register_descriptor_iter_next): Update.
5408 (gdbpy_initialize_registers): Register new gdbarch data.
5409
05c309a8
SM
54102020-07-21 Simon Marchi <simon.marchi@efficios.com>
5411
5412 * linux-nat.c (stopped_pids): Make static.
5413
d1fd641e
SM
54142020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
5415
5416 PR ada/26235
5417 * gdbtypes.c (ada_discrete_type_low_bound,
5418 ada_discrete_type_high_bound): Handle undefined bounds.
5419
1de14d77
KR
54202020-07-21 Kamil Rytarowski <n54@gmx.com>
5421
5422 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
5423 declaration.
5424 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
5425 function.
5426
ed810cc7
JB
54272020-07-20 John Baldwin <jhb@FreeBSD.org>
5428
5429 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
5430 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
5431 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
5432 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
5433 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
5434 method.
5435
ae5369e7
LC
54362020-07-20 Ludovic Courtès <ludo@gnu.org>
5437
5438 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
5439 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
5440 which are deprecated in Guile 3.0.
5441 * configure.ac (try_guile_versions): Add "guile-3.0".
5442 * configure (try_guile_versions): Regenerate.
5443 * NEWS: Update entry.
5444
68cf161c
LC
54452020-07-20 Ludovic Courtès <ludo@gnu.org>
5446 Doug Evans <dje@google.com>
5447
5448 PR gdb/21104
5449 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
5450 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
5451 USING_GUILE_BEFORE_2_2.
5452 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
5453 Change type to 'scm_t_port_type *'.
5454 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
5455 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
5456 parameter and honor it. Update callers.
5457 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
5458 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
5459 functions.
5460 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
5461 USING_GUILE_BEFORE_2_2.
5462 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
5463 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
5464 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
5465 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
5466 and 'SCM_PORT_TYPE'.
5467 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
5468 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
5469 (gdbscm_memory_port_read, gdbscm_memory_port_write)
5470 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
5471 [!USING_GUILE_BEFORE_2_2]: New functions.
5472 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
5473 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
5474 'gdbscm_memory_port_read'.
5475 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
5476 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
5477 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
5478 function.
5479 (ioscm_init_memory_port): Remove.
5480 (ioscm_init_memory_port_stream): New function
5481 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
5482 function.
5483 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
5484 Return scm_from_uint (0).
5485 (gdbscm_set_memory_port_read_buffer_size_x)
5486 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
5487 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
5488 Return scm_from_uint (0).
5489 (gdbscm_set_memory_port_write_buffer_size_x)
5490 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
5491 * configure.ac (try_guile_versions): Add "guile-2.2".
5492 * configure: Regenerate.
5493 * NEWS: Add entry.
5494
aee91db3
TT
54952020-07-18 Tom Tromey <tom@tromey.com>
5496
5497 * linux-nat.c (linux_multi_process): Remove.
5498 (linux_nat_target::supports_multi_process): Return true.
5499
0e267416
AB
55002020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
5501
5502 * arch/riscv.c (riscv_tdesc_cache): Change map type.
5503 (riscv_lookup_target_description): Return pointer out of
5504 unique_ptr.
5505 * target-descriptions.c (allocate_target_description): Add
5506 comment.
5507 (target_desc_deleter::operator()): Likewise.
5508 * target-descriptions.h (struct target_desc_deleter): Moved to
5509 gdbsupport/tdesc.h.
5510 (target_desc_up): Likewise.
5511
f80c8ec4
TT
55122020-07-17 Tom Tromey <tromey@adacore.com>
5513
5514 * linux-nat.c (linux_nat_target::supports_non_stop)
5515 (linux_nat_target::always_non_stop_p): Use "true".
5516 (linux_nat_target::supports_disable_randomization): Use "true" and
5517 "false".
5518
d0ce17d8
CT
55192020-07-16 Caroline Tice <cmtice@google.com>
5520
5521 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
5522 (RNGLIST_HEADER_SIZE64): New constant definition.
5523 (struct dwop_section_names): Add rnglists_dwo.
5524 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
5525 (struct loclist_header): Rename to 'loclists_rnglists_header'.
5526 (struct dwo_sections): Add rnglists field.
5527 (read_attribut_reprocess): Add tag parameter.
5528 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
5529 (cu_debug_rnglists_section): New function (decl & definition).
5530 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
5531 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
5532 die whose range is being checked; get rnglist section from
5533 cu_debug_rnglists_section, to get from either objfile or dwo file as
5534 appropriate. Add cases for DW_RLE_base_addressx,
5535 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
5536 the base address to DW_RLE_offset_pairs (not to all ranges), moving
5537 test inside if-condition and updating complaint message.
5538 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
5539 dwarf2_rnglists_process.
5540 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
5541 dwarf2_ranges_process.
5542 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
5543 need_ranges_base and update comment appropriately. Also pass die tag
5544 to dwarf2_ranges_read.
5545 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
5546 need_ranges_base and update comment appropriately. Also pass die tag
5547 to dwarf2_ranges_process.
5548 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
5549 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
5550 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
5551 need_ranges_base and update comment appropriately. Also pass die tag
5552 to read_attribute_reprocess and dwarf2_ranges_read.
5553 (read_loclist_header): Rename function to read_loclists_rnglists_header,
5554 and update function comment appropriately.
5555 (read_loclist_index): Call read_loclists_rnglists_header instead of
5556 read_loclist_header.
5557 (read_rnglist_index): New function.
5558 (read_attribute_reprocess): Add tag parameter. Add code for
5559 DW_FORM_rnglistx, passing tag to read_rnglist_index.
5560 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
5561
3dcc261c
AB
55622020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
5563
5564 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
5565 being resolved.
5566
ccb9eba6
AB
55672020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
5568
5569 * arch-utils.c (show_architecture): Update formatting of messages.
5570
cf88be68
SM
55712020-07-12 Simon Marchi <simon.marchi@efficios.com>
5572
5573 * gdbtypes.h (struct type) <bounds>: Handle array and string
5574 types.
5575 * ada-lang.c (assign_aggregate): Use type::bounds on
5576 array/string type.
5577 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
5578 * c-varobj.c (c_number_of_children): Likewise.
5579 (c_describe_child): Likewise.
5580 * eval.c (evaluate_subexp_for_sizeof): Likewise.
5581 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
5582 (f_type_print_base): Likewise.
5583 * f-valprint.c (f77_array_offset_tbl): Likewise.
5584 (f77_get_upperbound): Likewise.
5585 (f77_print_array_1): Likewise.
5586 * guile/scm-type.c (gdbscm_type_range): Likewise.
5587 * m2-typeprint.c (m2_array): Likewise.
5588 (m2_is_long_set_of_type): Likewise.
5589 * m2-valprint.c (get_long_set_bounds): Likewise.
5590 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
5591 * python/py-type.c (typy_range): Likewise.
5592 * rust-lang.c (rust_internal_print_type): Likewise.
5593 * type-stack.c (type_stack::follow_types): Likewise.
5594 * valarith.c (value_subscripted_rvalue): Likewise.
5595 * valops.c (value_cast): Likewise.
5596
509971ae
SM
55972020-07-12 Simon Marchi <simon.marchi@efficios.com>
5598
5599 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
5600 callers to use the equivalent accessor methods.
5601
107406b7
SM
56022020-07-12 Simon Marchi <simon.marchi@efficios.com>
5603
5604 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
5605 (struct type) <bit_stride>: New method.
5606 (TYPE_BIT_STRIDE): Remove.
5607 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
5608
bb789949
SM
56092020-07-12 Simon Marchi <simon.marchi@efficios.com>
5610
5611 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
5612 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
5613 callers to use the equivalent accessor methods instead.
5614
39498edb
SM
56152020-07-12 Simon Marchi <simon.marchi@efficios.com>
5616
5617 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
5618 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
5619 callers to use the equivalent accessor methods instead.
5620
3b606f38
SM
56212020-07-12 Simon Marchi <simon.marchi@efficios.com>
5622
5623 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
5624 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
5625 to use dynamic_prop::kind.
5626
064d9cb9
SM
56272020-07-12 Simon Marchi <simon.marchi@efficios.com>
5628
5629 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
5630 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
5631 to get the bound property's kind and check against
5632 PROP_UNDEFINED.
5633
5537ddd0
SM
56342020-07-12 Simon Marchi <simon.marchi@efficios.com>
5635
5636 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
5637 all callers to use type::range_bounds followed by
5638 dynamic_prop::{low,high}.
5639
8c2e4e06
SM
56402020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
5641
5642 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
5643 const_val, set_const_val, baton, set_locexpr, set_loclist,
5644 set_addr_offset, variant_parts, set_variant_parts,
5645 original_type, set_original_type>: New methods.
5646 <kind>: Rename to...
5647 <m_kind>: ... this. Update all users to use the new methods
5648 instead.
5649 <data>: Rename to...
5650 <m_data>: ... this. Update all users to use the new methods
5651 instead.
5652
7c6f2712
SM
56532020-07-12 Simon Marchi <simon.marchi@efficios.com>
5654
5655 * gdbtypes.c (get_discrete_bounds): Return failure if
5656 the range type's bounds are not both defined and constant
5657 values.
5658 (get_array_bounds): Update comment. Remove undefined bound check.
5659
599088e3
SM
56602020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
5661
5662 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
5663 the type::bounds method directly.
5664
c4dfcb36
SM
56652020-07-12 Simon Marchi <simon.marchi@efficios.com>
5666
5667 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
5668 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
5669 are used to set the range type's bounds to use set_bounds.
5670
0a278aa7
PW
56712020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5672
5673 * exec.c (_initialize_exec): Update exec-file-mismatch help.
5674
cce20f10
PA
56752020-07-10 Pedro Alves <pedro@palves.net>
5676
5677 * gdbthread.h (inferior_ref): Define.
5678 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
5679 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
5680 * thread.c
5681 (scoped_restore_current_thread::restore):
5682 Adjust to gdb::ref_ptr.
5683 (scoped_restore_current_thread::~scoped_restore_current_thread):
5684 Remove manual decref handling.
5685 (scoped_restore_current_thread::scoped_restore_current_thread):
5686 Adjust to use
5687 inferior_ref::new_reference/thread_info_ref::new_reference.
5688 Incref the thread before calling get_frame_id instead of after.
5689 Let TARGET_CLOSE_ERROR propagate.
5690
6d7aa592
PA
56912020-07-10 Pedro Alves <pedro@palves.net>
5692
5693 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
5694 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
5695 NOT_AVAILABLE_ERROR.
5696 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
5697 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
5698
b3e3a4c1
SM
56992020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5700 Pedro Alves <pedro@palves.net>
5701
5702 PR gdb/26199
5703 * infrun.c (threads_are_resumed_pending_p): Delete.
5704 (do_target_wait): Remove threads_are_executing and
5705 threads_are_resumed_pending_p checks from the inferior_matches
5706 lambda. Update comments.
5707
d6cc5d98
PA
57082020-07-10 Pedro Alves <pedro@palves.net>
5709
5710 PR gdb/26199
5711 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
5712 executing threads.
5713
7d3badc6
PA
57142020-07-10 Pedro Alves <pedro@palves.net>
5715
5716 PR gdb/26199
5717 * infrun.c (handle_no_resumed): Handle multiple targets.
5718
42bd97a6
PA
57192020-07-10 Pedro Alves <pedro@palves.net>
5720
5721 PR gdb/26199
5722 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
5723 target_is_async_p.
5724
43667cc6
PA
57252020-07-10 Pedro Alves <pedro@palves.net>
5726
5727 PR gdb/26199
5728 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
5729 threads, not all threads.
5730
96118d11
PA
57312020-07-10 Pedro Alves <pedro@palves.net>
5732
5733 PR gdb/26199
5734 * remote.c (remote_target::open_1): Pass remote target pointer as
5735 data to create_async_event_handler.
5736 (remote_async_inferior_event_handler): Mark async event handler
5737 before returning if the remote target still has either pending
5738 events or unacknowledged notifications.
5739
54904d81
JB
57402020-07-10 John Baldwin <jhb@FreeBSD.org>
5741
5742 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
5743 declaration.
5744 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
5745 function.
5746
f37e5866
JB
57472020-07-09 John Baldwin <jhb@FreeBSD.org>
5748
5749 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
5750 inferior_ptid.
5751
fc238d4a
JB
57522020-07-09 John Baldwin <jhb@FreeBSD.org>
5753
5754 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
5755 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
5756 AT_FREEBSD_PS_STRINGS.
5757
6e2469ff
HD
57582020-07-08 Hannes Domani <ssbssa@yahoo.de>
5759
5760 * auto-load.c (auto_load_objfile_script_1): Convert drive part
5761 of debugfile path on Windows.
5762
d1076c41
JB
57632020-07-08 John Baldwin <jhb@FreeBSD.org>
5764
5765 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
5766 argument to 'data'.
5767
15f3b077
TT
57682020-07-08 Tom Tromey <tromey@adacore.com>
5769
5770 * ada-lang.c (ada_exception_message_1): Use read_memory.
5771
9fc501fd
AB
57722020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5773
5774 PR python/22748
5775 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
5776 special handling for inline frames.
5777 * findvar.c (value_of_register_lazy): Skip inline frames when
5778 creating lazy register values.
5779 * frame.c (frame_id_computed_p): Delete definition.
5780 * frame.h (frame_id_computed_p): Delete declaration.
5781
64cb3757
AB
57822020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5783
5784 * NEWS: Mention additions to Python API.
5785 * python/py-arch.c (archpy_register_groups): New function.
5786 (arch_object_methods): Add 'register_groups' method.
5787 * python/py-registers.c (reggroup_iterator_object): New struct.
5788 (reggroup_object): New struct.
5789 (gdbpy_new_reggroup): New function.
5790 (gdbpy_reggroup_to_string): New function.
5791 (gdbpy_reggroup_name): New function.
5792 (gdbpy_reggroup_iter): New function.
5793 (gdbpy_reggroup_iter_next): New function.
5794 (gdbpy_new_reggroup_iterator): New function
5795 (gdbpy_initialize_registers): Register new types.
5796 (reggroup_iterator_object_type): Define new Python type.
5797 (gdbpy_reggroup_getset): New static global.
5798 (reggroup_object_type): Define new Python type.
5799 * python/python-internal.h
5800
0f767f94
AB
58012020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5802
5803 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
5804 * python/py-arch.c (archpy_registers): New function.
5805 (arch_object_methods): Add 'registers' method.
5806 * python/py-registers.c: New file.
5807 * python/python-internal.h
5808 (gdbpy_new_register_descriptor_iterator): Declare.
5809 (gdbpy_initialize_registers): Declare.
5810 * python/python.c (do_start_initialization): Call
5811 gdbpy_initialize_registers.
5812 * NEWS: Mention additions to the Python API.
5813
87dbc774
AB
58142020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5815
5816 * NEWS: Mention new Python API method.
5817 * python/py-unwind.c (pending_framepy_architecture): New function.
5818 (pending_frame_object_methods): Add architecture method.
5819
3bc98c0c
AB
58202020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5821
5822 * gdbarch.c: Regenerate.
5823 * gdbarch.h: Regenerate.
5824 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
5825 (gdbarch_data): Use internal_error for the case where
5826 deprecated_set_gdbarch_data was originally needed.
5827 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
5828 and use passed in obstack.
5829 (libunwind_frame_set_descr): Should no longer get back NULL from
5830 gdbarch_data.
5831 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
5832 type.
5833 * user-regs.c (user_regs_init): Update parameters, and use passed
5834 in obstack.
5835 (user_reg_add): Should no longer get back NULL from gdbarch_data.
5836 (_initialize_user_regs): Register as a pre-init gdbarch data type.
5837
d8cc8af6
TV
58382020-07-06 Tom de Vries <tdevries@suse.de>
5839
5840 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
5841 End-Of-Sequence in lte_is_less_than.
5842 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
5843 "gdb: Don't reorder line table entries too much when sorting".
5844
947f7597
TV
58452020-07-06 Tom de Vries <tdevries@suse.de>
5846
5847 PR tui/26205
5848 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
5849
1e7c1b22
TV
58502020-07-05 Tom de Vries <tdevries@suse.de>
5851
5852 PR build/26187
5853 * inferior.h (struct infcall_suspend_state_deleter): If available, use
5854 std::uncaught_exceptions instead of deprecated
5855 std::uncaught_exception.
5856
a36158ec
SM
58572020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5858
5859 * macroexp.h (macro_stringify): Return
5860 gdb::unique_xmalloc_ptr<char>.
5861 * macroexp.c (macro_stringify): Likewise.
5862 * macrotab.c (fixup_definition): Update.
5863
14d960c8
SM
58642020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5865
5866 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
5867 (lex_one_token): Update.
5868 * macroexp.c (struct macro_buffer) <release>: Return
5869 gdb::unique_xmalloc_ptr<char>.
5870 (macro_stringify): Update.
5871 (macro_expand): Update.
5872 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
5873 * macroexp.h (macro_expand_next): Likewise.
5874
211d5b1c
SM
58752020-07-02 Simon Marchi <simon.marchi@efficios.com>
5876
5877 * macroexp.h (macro_lookup_ftype): Remove.
5878 (macro_expand, macro_expand_once, macro_expand_next): Remove
5879 lookup function parameters, add scope parameter.
5880 * macroexp.c (scan, substitute_args, expand, maybe_expand,
5881 macro_expand, macro_expand_once, macro_expand_next): Likewise.
5882 * macroscope.h (standard_macro_lookup): Change parameter type
5883 to macro_scope.
5884 * macroscope.c (standard_macro_lookup): Likewise.
5885 * c-exp.y (lex_one_token): Update.
5886 * macrocmd.c (macro_expand_command): Likewise.
5887 (macro_expand_once_command): Likewise.
5888
b1a35af2
SM
58892020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5890
5891 * inf-loop.c (inferior_event_handler): Remove client_data param.
5892 * inf-loop.h (inferior_event_handler): Likewise.
5893 * infcmd.c (step_1): Adjust.
5894 * infrun.c (proceed): Adjust.
5895 (fetch_inferior_event): Remove client_data param.
5896 (infrun_async_inferior_event_handler): Adjust.
5897 * infrun.h (fetch_inferior_event): Remove `void *` param.
5898 * linux-nat.c (handle_target_event): Adjust.
5899 * record-btrace.c (record_btrace_handle_async_inferior_event):
5900 Adjust.
5901 * record-full.c (record_full_async_inferior_event_handler):
5902 Adjust.
5903 * remote.c (remote_async_inferior_event_handler): Adjust.
5904
1cdf9e33
TT
59052020-07-01 Tom Tromey <tom@tromey.com>
5906
5907 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
5908 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
5909
32c1e210
TT
59102020-07-01 Tom Tromey <tom@tromey.com>
5911
5912 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
5913 tui_gen_win_info.
5914 (tui_win_info::make_window): Merge with
5915 tui_gen_win_info::make_window.
5916 (tui_win_info::make_visible): Move from tui_gen_win_info.
5917 * tui/tui-win.c (tui_win_info::max_width): Move from
5918 tui_gen_win_info.
5919 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
5920 type.
5921 <window_factory>: Likewise.
5922 * tui/tui-layout.c (tui_win_info::resize): Move from
5923 tui_gen_win_info.
5924 (make_standard_window): Change return type.
5925 (get_locator_window, tui_get_window_by_name): Likewise.
5926 (tui_layout_window::apply): Remove a cast.
5927 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
5928 (struct tui_win_info): Merge with tui_gen_win_info.
5929 (struct tui_gen_win_info): Remove.
5930
a30cb6da
TT
59312020-07-01 Tom Tromey <tom@tromey.com>
5932
5933 * tui/tui-stack.h (struct tui_locator_window): Derive from
5934 tui_win_info.
5935 <do_scroll_horizontal, do_scroll_vertical>: New methods.
5936 <can_box>: New method.
5937
1eb2161f
TT
59382020-07-01 Tom Tromey <tom@tromey.com>
5939
5940 * tui/tui-stack.h (struct tui_locator_window): Remove body.
5941
7134f2eb
TT
59422020-07-01 Tom Tromey <tom@tromey.com>
5943
5944 * tui/tui-regs.c (tui_data_window::display_registers_from)
5945 (tui_data_window::display_registers_from)
5946 (tui_data_window::first_data_item_displayed)
5947 (tui_data_window::delete_data_content_windows): Update.
5948 (tui_data_window::refresh_window, tui_data_window::no_refresh):
5949 Remove.
5950 (tui_data_window::check_register_values): Update.
5951 (tui_data_item_window::rerender): Add parameters. Update.
5952 (tui_data_item_window::refresh_window): Remove.
5953 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
5954 virtual.
5955 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
5956 tui_gen_win_info.
5957 <refresh_window, max_height, min_height>: Remove.
5958 <rerender>: Add parameters.
5959 <x, y, visible>: New members.
5960 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
5961 <m_item_width>: New member.
5962
22b7b041
TT
59632020-07-01 Tom Tromey <tom@tromey.com>
5964
5965 * tui/tui-regs.c (tui_data_window::show_register_group)
5966 (tui_data_window::check_register_values): Update.
5967 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
5968 from item_no.
5969
c9753adb
TT
59702020-07-01 Tom Tromey <tom@tromey.com>
5971
5972 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
5973 useless "if".
5974
9ab26b4a
TT
59752020-07-01 Tom Tromey <tom@tromey.com>
5976
5977 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
5978 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
5979
e555083f
TT
59802020-07-01 Tom Tromey <tom@tromey.com>
5981
5982 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
5983 * tui/tui-winsource.h (enum tui_line_or_address_kind)
5984 (struct tui_line_or_address): Move from tui-data.h.
5985 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
5986 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
5987 (tui_cmd_window, tui_source_window_base, tui_source_window)
5988 (tui_disasm_window): Don't declare.
5989 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
5990 to tui-winsource.h.
5991 (SINGLE_KEY): Move to tui-stack.c.
5992
7a02bab7
TT
59932020-07-01 Tom Tromey <tom@tromey.com>
5994
5995 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
5996 std::string.
5997 * tui/tui-regs.c (class tab_expansion_file): New.
5998 (tab_expansion_file::write): New method.
5999 (tui_register_format): Change return type. Use
6000 tab_expansion_file.
6001 (tui_get_register, tui_data_window::display_registers_from)
6002 (tui_data_item_window::rerender): Update.
6003 * tui/tui-io.h (tui_expand_tabs): Don't declare.
6004 * tui/tui-io.c (tui_expand_tabs): Remove.
6005
ea68593b
TT
60062020-07-01 Tom Tromey <tom@tromey.com>
6007
6008 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
6009
a8caed5d
FS
60102020-07-01 Fangrui Song <maskray@google.com>
6011
6012 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
6013
9cdf9820
AKS
60142020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6015
6016 * dwarf2/read.c (set_die_type): Removed conditions to restrict
6017 forms for DW_AT_associated and DW_AT_allocated attributes,
6018 which is already checked in function attr_to_dynamic_prop.
6019
a1520ad8
TT
60202020-06-30 Tom Tromey <tromey@adacore.com>
6021
6022 * dwarf2/read.c (quirk_rust_enum): Correctly call
6023 alloc_rust_variant for default-less enum.
6024
5ac58899
TT
60252020-06-30 Tom Tromey <tromey@adacore.com>
6026
6027 PR build/26183:
6028 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
6029 gdb::to_string.
6030
19b187a9
SM
60312020-06-29 Simon Marchi <simon.marchi@efficios.com>
6032
6033 * gdbarch.sh (displaced_step_copy_insn): Update doc.
6034 * gdbarch.h: Re-generate.
6035
cd4c4c07
TT
60362020-06-28 Tom Tromey <tom@tromey.com>
6037
6038 * command.h (cmd_types): Remove.
6039 (cmd_type): Don't declare.
6040 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
6041 typedef.
6042 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
6043 * cli/cli-decode.c (cmd_type): Remove.
6044
05779d57
PA
60452020-06-27 Pedro Alves <palves@redhat.com>
6046
6047 * fork-child.c (prefork_hook): Adjust.
6048 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
6049 Delete.
6050 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
6051 * inferior.c (inferior::set_tty, inferior::tty): New methods.
6052 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
6053 Remove declarations.
6054 (struct inferior) <set_tty, tty>: New methods.
6055 (struct inferior) <terminal>: Rename to ...
6056 (struct inferior) <m_terminal>: ... this and make private.
6057 * main.c (captured_main_1): Adjust.
6058 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
6059 (mi_cmd_inferior_tty_show): Adjust.
6060 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
6061 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
6062
1776e3e5
NA
60632020-06-26 Nick Alcock <nick.alcock@oracle.com>
6064
6065 * configure.ac: Add --enable-libctf: handle --disable-static
6066 properly.
6067 * acinclude.m4: sinclude ../config/enable.m4.
6068 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
6069 (LIBCTF): Substitute in.
6070 (CTF_DEPS): New, likewise.
6071 (CLIBS): libctf needs symbols from libbfd: move earlier.
6072 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
6073 flags.
6074 * ctfread.c: Surround in ENABLE_LIBCTF.
6075 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
6076 * configure: Regenerate.
6077 * config.in: Likewise.
6078
58373b80
SM
60792020-06-25 Simon Marchi <simon.marchi@efficios.com>
6080
6081 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
6082
277474ee
SM
60832020-06-25 Simon Marchi <simon.marchi@efficios.com>
6084
6085 * inferior.h (struct inferior) <terminal>: Change type to
6086 gdb::unique_xmalloc_ptr<char>.
6087 * inferior.c (inferior::~inferior): Don't free inf->terminal.
6088 * infcmd.c (set_inferior_io_terminal): Don't free terminal
6089 field, adjust to unique pointer.
6090 (get_inferior_io_terminal): Adjust to unique pointer.
6091
6d74da72
AB
60922020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6093
6094 * riscv-tdep.c (riscv_print_registers_info): Loop over all
6095 registers, not just the known core set of registers.
6096
2e52d038
AB
60972020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6098
6099 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
6100 fflags, frm, and fcsr registers.
6101 (riscv_register_reggroup_p): Remove unknown CSRs from save and
6102 restore groups.
6103 (riscv_tdesc_unknown_reg): New function.
6104 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
6105 tdesc_use_registers.
6106 * riscv-tdep.h (struct gdbarch_tdep): Add
6107 unknown_csrs_first_regnum, unknown_csrs_count,
6108 duplicate_fflags_regnum, duplicate_frm_regnum, and
6109 duplicate_fcsr_regnum fields.
6110
be64fd07
AB
61112020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6112
6113 * target-descriptions.c (tdesc_use_registers): Add new parameter a
6114 callback, use the callback (when not null) to help number unknown
6115 registers.
6116 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
6117 (tdesc_use_registers): Add extra parameter to declaration.
6118
3b9fce96
AB
61192020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6120
6121 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
6122 in the file.
6123 (class riscv_pending_register_alias): Likewise.
6124 (riscv_register_feature::register_info): Change 'required_p' field
6125 to 'required', and change its type. Add 'check' member function.
6126 (riscv_register_feature::register_info::check): Define new member
6127 function.
6128 (riscv_xreg_feature): Change initialisation of 'required' field.
6129 (riscv_freg_feature): Likewise.
6130 (riscv_virtual_feature): Likewise.
6131 (riscv_csr_feature): Likewise.
6132 (riscv_check_tdesc_feature): Take extra parameter, the csr
6133 tdesc_feature, rewrite the function to use the new
6134 riscv_register_feature::register_info::check function.
6135 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
6136
865bad26
AB
61372020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6138
6139 * features/Makefile: Remove all references to the deleted files
6140 below.
6141 * features/riscv/32bit-csr.c: Deleted.
6142 * features/riscv/32bit-csr.xml: Deleted.
6143 * features/riscv/64bit-csr.c: Deleted.
6144 * features/riscv/64bit-csr.xml: Deleted.
6145 * features/riscv/rebuild-csr-xml.sh: Deleted.
6146
ed69cbc8
AB
61472020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6148
6149 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
6150 whitespace error for declaration of names member variable.
6151 (struct riscv_register_feature): Add new prefer_first_name member
6152 variable, and fix whitespace error in declaration of registers.
6153 (riscv_xreg_feature): Initialize prefer_first_name field.
6154 (riscv_freg_feature): Likewise.
6155 (riscv_virtual_feature): Likewise.
6156 (riscv_csr_feature): Likewise.
6157 (riscv_register_name): Expand on comments. Remove register name
6158 modifications for CSR and virtual registers.
6159
4445e8f5
AB
61602020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6161
6162 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
6163 errors.
6164
767a879e
AB
61652020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6166
6167 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
6168 riscv-opc.h.
6169 (class riscv_pending_register_alias): New class.
6170 (riscv_check_tdesc_feature): Take vector of pending aliases and
6171 populate it as appropriate.
6172 (riscv_setup_register_aliases): Delete.
6173 (riscv_gdbarch_init): Create vector of pending aliases and pass it
6174 to riscv_check_tdesc_feature in all cases. Use the vector to
6175 create the register aliases.
6176
bb6e55f3
RO
61772020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6178
6179 * sol2-tdep.c (sol2_static_transform_name): Remove.
6180 (sol2_init_abi): Don't register it.
6181 * gdbarch.sh (static_transform_name): Remove.
6182 * gdbarch.c, gdbarch.h: Regenerate.
6183
6184 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
6185 gdbarch_static_transform_name.
6186 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
6187 * stabsread.c (define_symbol) <'X'>: Remove.
6188 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
6189 handling.
6190 <'V'>: Likewise.
6191 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
6192 <'S'>: Remove call to gdbarch_static_transform_name.
6193
c6d36836
RO
61942020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6195
6196 * procfs.c (procfs_pre_trace): New function.
6197 (procfs_target::create_inferior): Pass it to fork_inferior.
6198
a7e6196b
RO
61992020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6200
6201 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
6202 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
6203 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
6204 sol2-tdep.o, sparc-sol2-tdep.o.
6205 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
6206 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
6207 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
6208 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
6209
d412e696
RO
62102020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6211
6212 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
6213 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
6214 Call sol2_init_abi.
6215 Remove calls to set_gdbarch_skip_solib_resolver,
6216 set_gdbarch_core_pid_to_str.
6217 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
6218 (i386_sol2_static_transform_name): Remove.
6219 (i386_sol2_init_abi): Call sol2_init_abi.
6220 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6221 set_gdbarch_static_transform_name,
6222 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6223 Use sol2_sigtramp_p.
6224 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
6225 (sol2_sigtramp_p): New function.
6226 (sol2_static_transform_name): New function.
6227 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
6228 (sol2_init_abi): New function.
6229 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
6230 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
6231 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
6232 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
6233 (sparc_sol2_static_transform_name): Remove.
6234 (sparc32_sol2_init_abi): Call sol2_init_abi.
6235 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6236 set_gdbarch_static_transform_name,
6237 set_gdbarch_skip_solib_resolver,
6238 set_gdbarch_core_pid_to_str.
6239 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
6240 (sparc_sol2_static_transform_name): Remove
6241 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
6242 call sol2_sigtramp_p.
6243 (sparc64_sol2_init_abi): Call sol2_init_abi.
6244 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6245 set_gdbarch_static_transform_name,
6246 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6247
a8654e7d
PW
62482020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6249
6250 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
6251 * exec.c (validate_exec_file): If from_tty, set both
6252 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
6253 * symfile.c (symbol_file_add_with_addrs): if always_confirm
6254 and from_tty, unconditionally ask a confirmation.
6255
caa7fd04
AB
62562020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6257
6258 * target-descriptions.c (tdesc_architecture_name): Protect against
6259 NULL pointer dereference.
6260 (maint_print_xml_tdesc_cmd): New function.
6261 (_initialize_target_descriptions): Register new 'maint print
6262 xml-tdesc' command and give it the filename completer.
6263 * NEWS: Mention new 'maint print xml-tdesc' command.
6264
fbf42f4e
AB
62652020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6266
6267 * target-descriptions.c (class tdesc_compatible_info): New class.
6268 (struct target_desc): Change type of compatible vector.
6269 (tdesc_compatible_p): Update for change in type of
6270 target_desc::compatible.
6271 (tdesc_compatible_info_list): New function.
6272 (tdesc_compatible_info_arch_name): New function.
6273 (tdesc_add_compatible): Update for change in type of
6274 target_desc::compatible.
6275 (print_c_tdesc::visit_pre): Likewise.
6276
20821f4e
AB
62772020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6278
6279 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
6280 whitespace to underscore.
6281 (maint_print_c_tdesc_cmd): Use fake filename for target
6282 descriptions that came from the target.
6283 (_initialize_target_descriptions): Add filename command completion
6284 for 'maint print c-tdesc'.
6285
1fb5ee62
SM
62862020-06-23 Simon Marchi <simon.marchi@efficios.com>
6287
6288 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
6289 lines.
6290
fc3ecb3e
SM
62912020-06-23 Simon Marchi <simon.marchi@efficios.com>
6292
6293 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
6294 lines.
6295 (dwarf2_find_location_expression): Likewise.
6296 (call_site_parameter_matches): Likewise.
6297 (dwarf2_compile_expr_to_ax): Likewise.
6298 (disassemble_dwarf_expression): Likewise.
6299 (loclist_describe_location): Likewise.
6300
236ef034
PA
63012020-06-23 Pedro Alves <palves@redhat.com>
6302
6303 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
6304 progspace-and-thread.h. Include scoped-mock-context.h instead.
6305 (register_to_value_test): Use scoped_mock_context.
6306 * regcache.c: Include "scoped-mock-context.h".
6307 (cooked_read_test): Don't error out if a target is already pushed.
6308 Use scoped_mock_context. Adjust.
6309 * scoped-mock-context.h: New file.
6310
39e7ecca
AB
63112020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6312
6313 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
6314 initializer.
6315 (ada_language::is_string_type_p): New member function.
6316 * c-lang.c (c_language_data): Delete la_is_string_type_p
6317 initializer.
6318 (cplus_language_data): Likewise.
6319 (asm_language_data): Likewise.
6320 (minimal_language_data): Likewise.
6321 * d-lang.c (d_language_data): Likewise.
6322 * f-lang.c (f_is_string_type_p): Delete function, implementation
6323 moved to f_language::is_string_type_p.
6324 (f_language_data): Delete la_is_string_type_p initializer.
6325 (f_language::is_string_type_p): New member function,
6326 implementation from f_is_string_type_p.
6327 * go-lang.c (go_is_string_type_p): Delete function, implementation
6328 moved to go_language::is_string_type_p.
6329 (go_language_data): Delete la_is_string_type_p initializer.
6330 (go_language::is_string_type_p): New member function,
6331 implementation from go_is_string_type_p.
6332 * language.c (language_defn::is_string_type_p): Define new member
6333 function.
6334 (default_is_string_type_p): Make static, add comment copied from
6335 header file.
6336 (unknown_language_data): Delete la_is_string_type_p initializer.
6337 (unknown_language::is_string_type_p): New member function.
6338 (auto_language_data): Delete la_is_string_type_p initializer.
6339 (auto_language::is_string_type_p): New member function.
6340 * language.h (language_data): Delete la_is_string_type_p field.
6341 (language_defn::is_string_type_p): Declare new function.
6342 (default_is_string_type_p): Delete desclaration, move comment to
6343 definition.
6344 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
6345 moved to m2_language::is_string_type_p.
6346 (m2_language_data): Delete la_is_string_type_p initializer.
6347 (m2_language::is_string_type_p): New member function,
6348 implementation from m2_is_string_type_p.
6349 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
6350 initializer.
6351 * opencl-lang.c (opencl_language_data): Likewise.
6352 * p-lang.c (pascal_is_string_type_p): Delete function,
6353 implementation moved to pascal_language::is_string_type_p.
6354 (pascal_language_data): Delete la_is_string_type_p initializer.
6355 (pascal_language::is_string_type_p): New member function,
6356 implementation from pascal_is_string_type_p.
6357 * rust-lang.c (rust_is_string_type_p): Delete function,
6358 implementation moved to rust_language::is_string_type_p.
6359 (rust_language_data): Delete la_is_string_type_p initializer.
6360 (rust_language::is_string_type_p): New member function,
6361 implementation from rust_is_string_type_p.
6362 * valprint.c (val_print_scalar_or_string_type_p): Update call to
6363 is_string_type_p.
6364
4ffc13fb
AB
63652020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6366
6367 * ada-lang.c (ada_language_data): Delete la_print_typedef
6368 initializer.
6369 (ada_language::print_typedef): New member function.
6370 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
6371 (cplus_language_data): Likewise.
6372 (asm_language_data): Likewise.
6373 (minimal_language_data): Likewise.
6374 * d-lang.c (d_language_data): Likewise.
6375 * f-lang.c (f_language_data): Likewise.
6376 (f_language::print_typedef): New member function.
6377 * go-lang.c (go_language_data): Delete la_print_typedef
6378 initializer.
6379 * language.c (language_defn::print_typedef): Define member
6380 function.
6381 (unknown_language_data): Delete la_print_typedef initializer.
6382 (unknown_language::print_typedef): New member function.
6383 (auto_language_data): Delete la_print_typedef initializer.
6384 (auto_language::print_typedef): New member function.
6385 * language.h (language_data): Delete la_print_typedef field.
6386 (language_defn::print_typedef): Declare new member function.
6387 (LA_PRINT_TYPEDEF): Update call to print_typedef.
6388 (default_print_typedef): Delete declaration.
6389 * m2-lang.c (m2_language_data): Delete la_print_typedef
6390 initializer.
6391 (m2_language::print_typedef): New member function.
6392 * objc-lang.c (objc_language_data): Delete la_print_typedef
6393 initializer.
6394 * opencl-lang.c (opencl_language_data): Likewise.
6395 * p-lang.c (pascal_language_data): Likewise.
6396 (pascal_language::print_typedef): New member function.
6397 * rust-lang.c (rust_print_typedef): Delete function,
6398 implementation moved to rust_language::print_typedef.
6399 (rust_language): Delete la_print_typedef initializer.
6400 (rust_language::print_typedef): New member function,
6401 implementation from rust_print_typedef.
6402 * typeprint.c (default_print_typedef): Delete.
6403
d711ee67
AB
64042020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6405
6406 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
6407 (ada_language::printstr): New member function.
6408 * c-lang.c (c_language_data): Delete la_printstr initializer.
6409 (cplus_language_data): Likewise.
6410 (asm_language_data): Likewise.
6411 (minimal_language_data): Likewise.
6412 * d-lang.c (d_language_data): Likewise.
6413 * f-lang.c (f_printstr): Rename to f_language::printstr.
6414 (f_language_data): Delete la_printstr initializer.
6415 (f_language::printstr): New member function, implementation from
6416 f_printstr.
6417 * go-lang.c (go_language_data): Delete la_printstr initializer.
6418 * language.c (language_defn::printstr): Define new member
6419 function.
6420 (unk_lang_printstr): Delete.
6421 (unknown_language_data): Delete la_printstr initializer.
6422 (unknown_language::printstr): New member function.
6423 (auto_language_data): Delete la_printstr initializer.
6424 (auto_language::printstr): New member function.
6425 * language.h (language_data): Delete la_printstr field.
6426 (language_defn::printstr): Declare new member function.
6427 (LA_PRINT_STRING): Update call to printstr.
6428 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
6429 (m2_language_data): Delete la_printstr initializer.
6430 (m2_language::printstr): New member function, implementation from
6431 m2_printstr.
6432 * objc-lang.c (objc_language_data): Delete la_printstr
6433 initializer.
6434 * opencl-lang.c (opencl_language_data): Likewise.
6435 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
6436 (pascal_language_data): Delete la_printstr initializer.
6437 (pascal_language::printstr): New member function, implementation
6438 from pascal_printstr.
6439 * p-lang.h (pascal_printstr): Delete declaration.
6440 * rust-lang.c (rust_printstr): Update header comment.
6441 (rust_language_data): Delete la_printstr initializer.
6442 (rust_language::printstr): New member function.
6443
52b50f2c
AB
64442020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6445
6446 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
6447 (ada_language::printchar): New member function.
6448 * c-lang.c (c_language_data): Delete la_printchar initializer.
6449 (cplus_language_data): Likewise.
6450 (asm_language_data): Likewise.
6451 (minimal_language_data): Likewise.
6452 * d-lang.c (d_language_data): Likewise.
6453 * f-lang.c (f_printchar): Rename to f_language::printchar.
6454 (f_language_data): Delete la_printchar initializer.
6455 (f_language::printchar): New member function, implementation from
6456 f_printchar.
6457 * go-lang.c (go_language_data): Delete la_printchar initializer.
6458 * language.c (unk_lang_printchar): Delete.
6459 (language_defn::printchar): Define new member function.
6460 (unknown_language_data): Delete la_printchar initializer.
6461 (unknown_language::printchar): New member function.
6462 (auto_language_data): Delete la_printchar initializer.
6463 (auto_language::printchar): New member function.
6464 * language.h (language_data): Delete la_printchar field.
6465 (language_defn::printchar): Declare new member function.
6466 (LA_PRINT_CHAR): Update call to printchar.
6467 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
6468 (m2_language::printchar): New member function.
6469 * objc-lang.c (objc_language_data): Delete la_printchar
6470 initializer.
6471 * opencl-lang.c (opencl_language_data): Likewise.
6472 * p-lang.c (pascal_language_data): Delete la_printchar
6473 initializer.
6474 (pascal_language::printchar): New member function.
6475 * rust-lang.c (rust_printchar): Rename to
6476 rust_language::printchar.
6477 (rust_language_data): Delete la_printchar initializer.
6478 (rust_language::printchar): New member function, implementation
6479 from rust_printchar.
6480
ec8cec5b
AB
64812020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6482
6483 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
6484 (ada_language_data): Delete la_emitchar initializer.
6485 (ada_language::emitchar): New member function, implementation from
6486 emit_char.
6487 * c-lang.c (c_language_data): Delete la_emitchar initializer.
6488 (cplus_language_data): Likewise.
6489 (asm_language_data): Likewise.
6490 (minimal_language_data): Likewise.
6491 * d-lang.c (d_language_data): Likewise.
6492 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
6493 (f_language_data): Delete la_emitchar initializer.
6494 (f_language::emitchar): New member function, implementation from
6495 f_emit_char.
6496 * go-lang.c (go_language_data): Delete la_emitchar initializer.
6497 * language.c (unk_lang_emit_char): Delete.
6498 (language_defn::emitchar): New member function definition.
6499 (unknown_language_data): Delete la_emitchar initializer.
6500 (unknown_language::emitchar): New member function.
6501 (auto_language_data): Delete la_emitchar initializer.
6502 (auto_language::emitchar): New member function.
6503 * language.h (language_data): Delete la_emitchar field.
6504 (language_defn::emitchar): New member field declaration.
6505 (LA_EMIT_CHAR): Update call to emitchar.
6506 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
6507 (m2_language_data): Delete la_emitchar initializer.
6508 (m2_language::emitchar): New member function, implementation from
6509 m2_emit_char.
6510 * objc-lang.c (objc_language_data): Delete la_emitchar
6511 initializer.
6512 * opencl-lang.c (opencl_language_data): Likewise.
6513 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
6514 (pascal_language_data): Delete la_emitchar initializer.
6515 (pascal_language::emitchar): New member function, implementation
6516 from pascal_emit_char.
6517 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
6518 (rust_language_data): Delete la_emitchar initializer.
6519 (rust_language::emitchar): New member function, implementation
6520 from rust_emitchar.
6521
1bf9c363
AB
65222020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6523
6524 * ada-lang.c (resolve): Rename to ada_language::post_parser.
6525 (ada_language_data): Delete la_post_parser initializer.
6526 (ada_language::post_parser): New member function.
6527 * c-lang.c (c_language_data): Delete la_post_parser initializer.
6528 (cplus_language_data): Likewise.
6529 (asm_language_data): Likewise.
6530 (minimal_language_data): Likewise.
6531 * d-lang.c (d_language_data): Likewise.
6532 * f-lang.c (f_language_data): Likewise.
6533 * go-lang.c (go_language_data): Likewise.
6534 * language.c (unknown_language_data): Likewise.
6535 (auto_language_data): Likewise.
6536 * language.h (language_data): Delete la_post_parser field.
6537 (language_defn::post_parser): New member function.
6538 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
6539 * objc-lang.c (objc_language_data): Likewise.
6540 * opencl-lang.c (opencl_language_data): Likewise.
6541 * p-lang.c (pascal_language_data): Likewise.
6542 * parse.c (parse_exp_in_context): Update call to post_parser.
6543 (null_post_parser): Delete definition.
6544 * parser-defs.h (null_post_parser): Delete declaration.
6545 * rust-lang.c (rust_language_data): Delete la_post_parser
6546 initializer.
6547
87afa652
AB
65482020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6549
6550 * ada-lang.c (parse): Rename to ada_language::parser.
6551 (ada_language_data): Delete la_parser initializer.
6552 (ada_language::parser): New member function, implementation from
6553 parse.
6554 * c-lang.c (c_language_data): Delete la_parser initializer.
6555 (cplus_language_data): Likewise.
6556 (asm_language_data): Likewise.
6557 (minimal_language_data): Likewise.
6558 * d-lang.c (d_language_data): Likewise.
6559 (d_language::parser): New member function.
6560 * f-lang.c (f_language_data): Delete la_parser initializer.
6561 (f_language::parser): New member function.
6562 * go-lang.c (go_language_data): Delete la_parser initializer.
6563 (go_language::parser): New member function.
6564 * language.c (unk_lang_parser): Delete.
6565 (language_defn::parser): Define new member function.
6566 (unknown_language_data): Delete la_parser initializer.
6567 (unknown_language::parser): New member function.
6568 (auto_language_data): Delete la_parser initializer.
6569 (auto_language::parser): New member function.
6570 * language.h (language_data): Delete la_parser field.
6571 (language_defn::parser): Declare new member function.
6572 * m2-lang.c (m2_language_data): Delete la_parser initializer.
6573 (m2_language::parser): New member function.
6574 * objc-lang.c (objc_language_data): Delete la_parser initializer.
6575 * opencl-lang.c (opencl_language_data): Likewise.
6576 * p-lang.c (pascal_language_data): Likewise.
6577 (pascal_language::parser): New member function.
6578 * parse.c (parse_exp_in_context): Update call to parser.
6579 * rust-lang.c (rust_language_data): Delete la_parser initializer.
6580 (rust_language::parser): New member function.
6581
37825800
AB
65822020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6583
6584 * top.c (print_gdb_configuration): Print --with-python-libdir
6585 configuration value.
6586
5b860c93
PW
65872020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6588
6589 * NEWS: Mention change to the alias command.
6590
cf00cd6f
PW
65912020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6592
6593 * cli/cli-cmds.c (lookup_cmd_for_default_args)
6594 (alias_command_completer)
6595 (make_alias_options_def_group): New functions.
6596 (alias_opts, alias_option_defs): New struct and array.
6597 (alias_usage_error): Update usage.
6598 (alias_command): Handles optional DEFAULT-ARGS... arguments.
6599 Use option framework.
6600 (_initialize_cli_cmds): Update alias command help.
6601 Update aliases command help.
6602 (show_user):
6603 Add NULL for new default_args lookup_cmd argument.
6604 (valid_command_p): Rename to validate_aliased_command.
6605 Add NULL for new default_args lookup_cmd argument. Verify that the
6606 aliased_command has no default args.
6607 * cli/cli-decode.c (help_cmd): Show aliases definitions.
6608 (lookup_cmd_1, lookup_cmd): New argument default_args.
6609 (add_alias_cmd):
6610 Add NULL for new default_args lookup_cmd argument.
6611 (print_help_for_command): Show default args under the layout
6612 alias some_alias = some_aliased_cmd some_alias_default_arg.
6613 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
6614 xfree default_args in destructor.
6615 * cli/cli-script.c (process_next_line, do_define_command):
6616 Add NULL for new default_args lookup_cmd argument.
6617 * command.h: Declare new default_args argument in lookup_cmd
6618 and lookup_cmd_1.
6619 * completer.c (complete_line_internal_1):
6620 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6621 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
6622 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
6623 Likewise.
6624 * infcmd.c (_initialize_infcmd): Likewise.
6625 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
6626 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
6627 * python/py-param.c (add_setshow_generic): Likewise.
6628 * remote.c (_initialize_remote): Likewise.
6629 * top.c (execute_command): Prepend default_args if command has some.
6630 (set_verbose):
6631 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6632 * tracepoint.c (validate_actionline, encode_actions_1):
6633 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6634
bd920864
TBA
66352020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6636
6637 * jit.c (jit_read_descriptor): Use bool as the return type.
6638 (jit_breakpoint_re_set_internal): Use bool as the return type.
6639 Invert the return value logic; return true if the jit breakpoint
6640 has been successfully initialized.
6641 (jit_inferior_init): Update the call to
6642 jit_breakpoint_re_set_internal.
6643
f8098322
PA
66442020-06-22 Pedro Alves <palves@redhat.com>
6645
6646 PR gdb/25939
6647 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
6648 Use the current inferior instead. Don't return
6649 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
6650 wait again.
6651 * sol-thread.c (sol_thread_target::wait): Don't reference
6652 inferior_ptid.
6653 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
6654 (sol_update_thread_list_callback): Use the current inferior's pid
6655 instead of inferior_ptid.
6656
196535a6
RO
66572020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6658
6659 * procfs.c: Cleanup many comments.
6660
6661 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
6662 (AFTER_WATCHFLAG): Replace by value.
6663
6664 (MAIN_PROC_NAME_FORMAT): Inline ...
6665 (create_procinfo): ... here.
6666
6667 (procfs_debug_inferior): Remove SYS_exec handling.
6668 (syscall_is_exec): Likewise.
6669 (procfs_set_exec_trap): Likewise.
6670
6671 (syscall_is_lwp_exit): Inline in callers.
6672 (syscall_is_exit): Likewise.
6673 (syscall_is_exec): Likewise.
6674 (syscall_is_lwp_create): Likewise.
6675
6676 (invalidate_cache): Remove #if 0 code.
6677
6678 (make_signal_thread_runnable): Remove.
6679 (procfs_target::resume): Remove #if 0 code.
6680
cf6f3e86
RO
66812020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6682
6683 PR gdb/25939
6684 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
6685 call ...
6686 (procfs_target::create_inferior): ... here.
6687
48e9cc84
PW
66882020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6689
6690 * exec.c (validate_exec_file): Ensure the build-id is up to
6691 date by calling reopen_exec_file (that checks file timestamp
6692 to decide to re-read the file).
6693
3922b302
PA
66942020-06-18 Pedro Alves <palves@redhat.com>
6695
6696 PR gdb/25412
6697 * gdbthread.h (delete_thread, delete_thread_silent)
6698 (find_thread_ptid): Update comments.
6699 * thread.c (current_thread_): New global.
6700 (is_current_thread): Move higher, and reimplement.
6701 (inferior_thread): Reimplement.
6702 (set_thread_exited): Use bool. Add assertions.
6703 (add_thread_silent): Simplify thread-reuse handling by always
6704 calling delete_thread.
6705 (delete_thread): Remove intro comment.
6706 (find_thread_ptid): Skip exited threads.
6707 (switch_to_thread_no_regs): Write to current_thread_.
6708 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
6709 INFERIOR_PTID. Clear current_thread_.
6710
6dbdab44
PA
67112020-06-18 Pedro Alves <palves@redhat.com>
6712
6713 * aix-thread.c (pd_update): Use switch_to_thread.
6714
2da4b788
PA
67152020-06-18 Pedro Alves <palves@redhat.com>
6716
6717 * ravenscar-thread.c (ravenscar_thread_target): Update.
6718 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
6719 (ravenscar_thread_target::add_active_thread): ... this. Don't
6720 set m_base_ptid here. Update to avoid referencing inferior_ptid.
6721 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
6722
50838d1b
PA
67232020-06-18 Pedro Alves <palves@redhat.com>
6724
6725 * nat/windows-nat.c (current_windows_thread): Remove.
6726 * nat/windows-nat.h (current_windows_thread): Remove.
6727 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
6728 Adjust.
6729 (display_selectors): Adjust to fetch the current
6730 windows_thread_info based on inferior_ptid.
6731 (fake_create_process): No longer write to current_windows_thread.
6732 (windows_nat_target::get_windows_debug_event):
6733 Don't set inferior_ptid or current_windows_thread.
6734 (windows_nat_target::wait): Adjust to not rely on
6735 current_windows_thread.
6736 (do_initial_windows_stuff): Now a method of windows_nat_target.
6737 Switch to the last_ptid thread.
6738 (windows_nat_target::attach): Adjust.
6739 (windows_nat_target::detach): Use switch_to_no_thread instead of
6740 writing to inferior_ptid directly.
6741 (windows_nat_target::create_inferior): Adjust.
6742
31ce04e9
PA
67432020-06-18 Pedro Alves <palves@redhat.com>
6744
6745 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
6746
1ee1a363
PA
67472020-06-18 Pedro Alves <palves@redhat.com>
6748
6749 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
6750 after creating it, instead of writing to inferior_ptid. Don't
6751 write to inferior_ptid.
6752
6d350754
PA
67532020-06-18 Pedro Alves <palves@redhat.com>
6754
6755 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
6756
5d971d48
PA
67572020-06-18 Pedro Alves <palves@redhat.com>
6758
6759 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
6760 it, instead of writing to inferior_ptid.
6761
86e57d1b
PA
67622020-06-18 Pedro Alves <palves@redhat.com>
6763
6764 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
6765 to inferior_ptid.
6766
f2e1c129
PA
67672020-06-18 Pedro Alves <palves@redhat.com>
6768
6769 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
6770 instead of writing to inferior_ptid directly.
6771
60db1b85
PA
67722020-06-18 Pedro Alves <palves@redhat.com>
6773
6774 * corelow.c (core_target::close): Use switch_to_no_thread instead
6775 of writing to inferior_ptid directly.
6776 (add_to_thread_list, core_target_open): Use switch_to_thread
6777 instead of writing to inferior_ptid directly.
6778
fe7d6a8d
PA
67792020-06-18 Pedro Alves <palves@redhat.com>
6780
6781 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
6782 inferior_ptid.
6783 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
6784 inferior_ptid.
6785 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
6786 inferior_ptid directly.
6787 (darwin_nat_target::init_thread_list): Switch to thread, instead
6788 of writing to inferior_ptid.
6789 (darwin_nat_target::attach): Don't write to inferior_ptid.
6790 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
6791
975f8708
PA
67922020-06-18 Pedro Alves <palves@redhat.com>
6793
6794 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
6795 thread.
6796 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
6797 Instead use switch_to_thread.
6798 (gnu_nat_target::detach): Use switch_to_no_thread
6799 instead of writing to inferior_ptid directly. Used passed-in
6800 inferior instead of looking up the inferior by pid.
6801
1a204730
PA
68022020-06-18 Pedro Alves <palves@redhat.com>
6803
6804 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
6805 inferior_ptid.
6806
ebe84f23
PA
68072020-06-18 Pedro Alves <palves@redhat.com>
6808
6809 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
6810 inferior_ptid.
6811 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
6812 thread.
6813 (nto_procfs_target::detach): Avoid referencing
6814 inferior_ptid. Use switch_to_no_thread instead of writing to
6815 inferior_ptid directly.
6816 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
6817 instead of writing to inferior_ptid directly.
6818 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
6819 to thread.
6820
191f02e5
PA
68212020-06-18 Pedro Alves <palves@redhat.com>
6822
6823 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
6824 after creating it, instead of writing to inferior_ptid.
6825 (gdbsim_target_open): Use switch_to_no_thread instead of writing
6826 to inferior_ptid directly.
6827 (gdbsim_target::wait): Don't write to inferior_ptid.
6828
0ac55310
PA
68292020-06-18 Pedro Alves <palves@redhat.com>
6830
6831 * remote.c (remote_target::remote_notice_new_inferior): Use
6832 switch_to_thread instead of writing to inferior_ptid directly.
6833 (remote_target::add_current_inferior_and_thread): Use
6834 switch_to_no_thread instead of writing to inferior_ptid directly.
6835 (extended_remote_target::attach): Use switch_to_inferior_no_thread
6836 and switch_to_thread instead of using set_current_inferior or
6837 writing to inferior_ptid directly.
6838
5233f39b
PA
68392020-06-18 Pedro Alves <palves@redhat.com>
6840
6841 * tracectf.c (ctf_target_open): Switch to added thread instead of
6842 writing to inferior_ptid directly.
6843 (ctf_target::close): Use switch_to_no_thread instead of writing to
6844 inferior_ptid directly.
6845
087e161b
PA
68462020-06-18 Pedro Alves <palves@redhat.com>
6847
6848 * tracefile-tfile.c (tfile_target_open): Don't write to
6849 inferior_ptid directly, instead switch to added thread.
6850 (tfile_target::close): Use switch_to_no_thread instead of writing
6851 to inferior_ptid directly.
6852
7fb43e53
PA
68532020-06-18 Pedro Alves <palves@redhat.com>
6854
6855 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
6856 (procfs_target::detach): Use switch_to_no_thread
6857 instead of writing to inferior_ptid directly.
6858 (do_attach): Change return type to void. Switch to the added
6859 thread.
6860 (procfs_target::create_inferior): Switch to the added thread.
6861 (procfs_do_thread_registers): Don't write to inferior_ptid.
6862
18493a00
PA
68632020-06-18 Pedro Alves <palves@redhat.com>
6864
6865 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
6866 of writing to inferior_ptid.
6867 (scoped_restore_exited_inferior): Delete.
6868 (handle_vfork_child_exec_or_exit): Simplify using
6869 scoped_restore_current_pspace_and_thread. Use switch_to_thread
6870 instead of writing to inferior_ptid.
6871 (THREAD_STOPPED_BY): Delete.
6872 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
6873 (thread_stopped_by_hw_breakpoint): Delete.
6874 (save_waitstatus): Use
6875 scoped_restore_current_thread+switch_to_thread, and call
6876 target_stopped_by_watchpoint instead of
6877 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
6878 instead of thread_stopped_by_sw_breakpoint, and
6879 target_stopped_by_hw_breakpoint instead of
6880 thread_stopped_by_hw_breakpoint.
6881 (handle_inferior_event)
6882 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
6883 inferior_ptid directly, nor
6884 set_current_inferior/set_current_program_space. Use
6885 switch_to_thread / switch_to_inferior_no_thread instead.
6886
a0776b13
PA
68872020-06-18 Pedro Alves <palves@redhat.com>
6888
6889 * target.c (generic_mourn_inferior): Use switch_to_no_thread
6890 instead of writing to inferior_ptid.
6891
6155c136
PA
68922020-06-18 Pedro Alves <palves@redhat.com>
6893
6894 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
6895 added thread.
6896 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
6897 to the added thread.
6898 (inf_ptrace_target::detach_success): Use switch_to_no_thread
6899 instead of writing to inferior_ptid.
6900
c5316fc6
PA
69012020-06-18 Pedro Alves <palves@redhat.com>
6902
6903 * gdbarch-selftests.c: Include "progspace-and-thread.h".
6904 (register_to_value_test): Mock a program_space too. Heap-allocate
6905 the address space. Don't write to inferior_ptid. Use
6906 switch_to_thread instead.
6907
8df01799
PA
69082020-06-18 Pedro Alves <palves@redhat.com>
6909
6910 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
6911 Delete.
6912 (find_signalled_thread()): New, factored out from
6913 linux_make_corefile_notes and adjusted to handle exited threads.
6914 (linux_make_corefile_notes): Adjust to use the new
6915 find_signalled_thread.
6916
41792d68
PA
69172020-06-18 Pedro Alves <palves@redhat.com>
6918
6919 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
6920 of saving/restoring inferior_ptid.
6921
612f258a
TT
69222020-06-17 Tom Tromey <tom@tromey.com>
6923
6924 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
6925 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
6926 declare.
6927 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
6928
efb763a5
SM
69292020-06-15 Simon Marchi <simon.marchi@efficios.com>
6930
6931 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
6932 of partial symtabs.
6933
2951f6c0
SM
69342020-06-17 Simon Marchi <simon.marchi@efficios.com>
6935
6936 * regformats/reg-arm.dat: Remove.
6937 * regformats/reg-bfin.dat: Remove.
6938 * regformats/reg-cris.dat: Remove.
6939 * regformats/reg-crisv32.dat: Remove.
6940 * regformats/reg-m32r.dat: Remove.
6941 * regformats/reg-tilegx.dat: Remove.
6942 * regformats/reg-tilegx32.dat: Remove.
6943
7d458ea5
SM
69442020-06-17 Simon Marchi <simon.marchi@efficios.com>
6945
6946 * features/Makefile (WHICH): Remove arm files.
6947 * regformats/arm/arm-with-iwmmxt.dat: Remove.
6948 * regformats/arm/arm-with-neon.dat: Remove.
6949 * regformats/arm/arm-with-vfpv2.dat: Remove.
6950 * regformats/arm/arm-with-vfpv3.dat: Remove.
6951
3af96c0d
SM
69522020-06-17 Simon Marchi <simon.marchi@efficios.com>
6953
6954 * features/Makefile (XMLTOC): Remove rx.xml.
6955
b25e22fd
PA
69562020-06-17 Pedro Alves <palves@redhat.com>
6957
6958 * gdbthread.h (thread_control_state) <trap_expected> Update
6959 comments.
6960
a78a19b1
AB
69612020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6962
6963 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
6964 ada_language::lookup_symbol_nonlocal.
6965 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
6966 (ada_language::lookup_symbol_nonlocal): New member function,
6967 implementation from ada_lookup_symbol_nonlocal.
6968 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
6969 initializer.
6970 (cplus_language_data): Delete la_lookup_symbol_nonlocal
6971 initializer.
6972 (cplus_language::lookup_symbol_nonlocal): New member function.
6973 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
6974 (minimal_language_data) Likewise.
6975 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
6976 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
6977 initializer.
6978 (d_language::lookup_symbol_nonlocal): New member function.
6979 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
6980 initializer.
6981 (f_language::lookup_symbol_nonlocal): New member function.
6982 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
6983 initializer.
6984 * language.c (unknown_language_data): Likewise.
6985 (auto_language_data): Likewise.
6986 * language.h (language_data): Delete la_lookup_symbol_nonlocal
6987 field.
6988 (language_defn::lookup_symbol_nonlocal): New member function.
6989 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
6990 initializer.
6991 * objc-lang.c (objc_language_data): Likewise.
6992 * opencl-lang.c (opencl_language_data): Likewise.
6993 * p-lang.c (pascal_language_data): Likewise.
6994 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
6995 rust_language::lookup_symbol_nonlocal.
6996 (rust_language_data): Delete la_lookup_symbol_nonlocal
6997 initializer.
6998 (rust_language::lookup_symbol_nonlocal): New member function,
6999 implementation from rust_lookup_symbol_nonlocal.
7000 * symtab.c (lookup_symbol_aux): Update call to
7001 lookup_symbol_nonlocal.
7002 (basic_lookup_symbol_nonlocal): Rename to...
7003 (language_defn::lookup_symbol_nonlocal): ...this, and update
7004 header comment. Remove language_defn parameter, and replace with
7005 uses of `this'.
7006 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
7007
ebe2334e
AB
70082020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7009
7010 * ada-lang.c (ada_language_data): Delete la_value_print_inner
7011 initializer.
7012 (ada_language::value_print_inner): New member function.
7013 * c-lang.c (c_language_data): Delete la_value_print_inner
7014 initializer.
7015 (cplus_language_data): Likewise.
7016 (asm_language_data): Likewise.
7017 (minimal_language_data): Likewise.
7018 * d-lang.c (d_language_data): Likewise.
7019 (d_language::value_print_inner): New member function.
7020 * f-lang.c (f_language_data): Delete la_value_print_inner
7021 initializer.
7022 (f_language::value_print_inner): New member function.
7023 * f-lang.h (f_value_print_innner): Rename to...
7024 (f_value_print_inner): ...this (note spelling of 'inner').
7025 * f-valprint.c (f_value_print_innner): Rename to...
7026 (f_value_print_inner): ...this (note spelling of 'inner').
7027 * go-lang.c (go_language_data): Delete la_value_print_inner
7028 initializer.
7029 (go_language::value_print_inner): New member function.
7030 * language.c (language_defn::value_print_inner): Define new member
7031 function.
7032 (unk_lang_value_print_inner): Delete.
7033 (unknown_language_data): Delete la_value_print_inner initializer.
7034 (unknown_language::value_print_inner): New member function.
7035 (auto_language_data): Delete la_value_print_inner initializer.
7036 (auto_language::value_print_inner): New member function.
7037 * language.h (language_data): Delete la_value_print_inner field.
7038 (language_defn::value_print_inner): Delcare new member function.
7039 * m2-lang.c (m2_language_data): Delete la_value_print_inner
7040 initializer.
7041 (m2_language::value_print_inner): New member function.
7042 * objc-lang.c (objc_language_data): Delete la_value_print_inner
7043 initializer.
7044 * opencl-lang.c (opencl_language_data): Likewise.
7045 * p-lang.c (pascal_language_data): Likewise.
7046 (pascal_language::value_print_inner): New member function.
7047 * rust-lang.c (rust_language_data): Delete la_value_print_inner
7048 initializer.
7049 (rust_language::value_print_inner): New member function.
7050 * valprint.c (do_val_print): Update call to value_print_inner.
7051
a1d1fa3e
AB
70522020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7053
7054 * ada-lang.c (ada_language_data): Delete la_value_print
7055 initializer.
7056 (ada_language::value_print): New member function.
7057 * c-lang.c (c_language_data): Delete la_value_print initializer.
7058 (cplus_language_data): Likewise.
7059 (asm_language_data): Likewise.
7060 (minimal_language_data): Likewise.
7061 * d-lang.c (d_language_data): Likewise.
7062 * f-lang.c (f_language_data): Likewise.
7063 * go-lang.c (go_language_data): Likewise.
7064 * language.c (unk_lang_value_print): Delete.
7065 (language_defn::value_print): Define new member function.
7066 (unknown_language_data): Delete la_value_print initializer.
7067 (unknown_language::value_print): New member function.
7068 (auto_language_data): Delete la_value_print initializer.
7069 (auto_language::value_print): New member function.
7070 * language.h (language_data): Delete la_value_print field.
7071 (language_defn::value_print): Declare new member function.
7072 (LA_VALUE_PRINT): Update call to value_print.
7073 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
7074 * objc-lang.c (objc_language_data): Likewise.
7075 * opencl-lang.c (opencl_language_data): Likewise.
7076 * p-lang.c (pascal_language_data): Likewise.
7077 (pascal_language::value_print): New member function.
7078 * rust-lang.c (rust_language_data): Delete la_value_print
7079 initializer.
7080
f16a9f57
AB
70812020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7082
7083 * ada-lang.c (ada_watch_location_expression): Rename to
7084 ada_language::watch_location_expression.
7085 (ada_language_data): Delete la_watch_location_expression
7086 initializer.
7087 (ada_language::watch_location_expression): New member function,
7088 implementation from ada_watch_location_expression.
7089 * breakpoint.c (watch_command_1): Update call to
7090 watch_location_expression.
7091 * c-lang.c (c_watch_location_expression): Rename to
7092 language_defn::watch_location_expression.
7093 (c_language_data): Delete la_watch_location_expression
7094 initializer.
7095 (cplus_language_data): Likewise.
7096 (asm_language_data): Likewise.
7097 (minimal_language_data): Likewise.
7098 * c-lang.h (c_watch_location_expression): Delete declaration.
7099 * d-lang.c (d_language_data): Delete la_watch_location_expression
7100 initializer.
7101 * f-lang.c (f_language_data): Likewise.
7102 * go-lang.c (go_language_data): Likewise.
7103 * language.c (language_defn::watch_location_expression): Member
7104 function implementation from c_watch_location_expression.
7105 (unknown_language_data): Delete la_watch_location_expression
7106 initializer.
7107 (auto_language_data): Likewise.
7108 * language.h (language_data): Delete la_watch_location_expression
7109 field.
7110 (language_defn::watch_location_expression): Declare new member
7111 function.
7112 * m2-lang.c (m2_language_data): Delete
7113 la_watch_location_expression initializer.
7114 * objc-lang.c (objc_language_data): Likewise.
7115 * opencl-lang.c (opencl_language_data): Likewise.
7116 * p-lang.c (pascal_language_data): Likewise.
7117 * rust-lang.c (rust_watch_location_expression): Rename to
7118 rust_language::watch_location_expression.
7119 (rust_language_data): Delete la_watch_location_expression
7120 initializer.
7121 (rust_language::watch_location_expression): New member function,
7122 implementation from rust_watch_location_expression.
7123
7e56227d
AB
71242020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7125
7126 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
7127 ada_language::collect_symbol_completion_matches.
7128 (ada_language_data): Delete la_collect_symbol_completion_matches
7129 initializer.
7130 (ada_language::collect_symbol_completion_matches): New member
7131 function, implementation from
7132 ada_collect_symbol_completion_matches.
7133 * c-lang.c (c_language_data): Delete
7134 la_collect_symbol_completion_matches initializer.
7135 (cplus_language_data): Likewise.
7136 (asm_language_data): Likewise.
7137 (minimal_language_data): Likewise.
7138 * d-lang.c (d_language_data): Likewise.
7139 * f-lang.c (f_collect_symbol_completion_matches): Rename to
7140 f_language::collect_symbol_completion_matches.
7141 (f_language_data): Delete la_collect_symbol_completion_matches
7142 initializer.
7143 (f_language::collect_symbol_completion_matches) New member
7144 function, implementation from f_collect_symbol_completion_matches.
7145 * go-lang.c (go_language_data): Delete
7146 la_collect_symbol_completion_matches initializer.
7147 * language.c (unknown_language_data): Likewise.
7148 (auto_language_data): Likewise.
7149 * language.h (language_data): Delete
7150 la_collect_symbol_completion_matches field.
7151 (language_defn::collect_symbol_completion_matches): New member
7152 function.
7153 * m2-lang.c (m2_language_data): Delete
7154 la_collect_symbol_completion_matches initializer.
7155 * objc-lang.c (objc_language_data): Likewise.
7156 * opencl-lang.c (opencl_language_data): Likewise.
7157 * p-lang.c (pascal_language_data): Likewise.
7158 * rust-lang.c (rust_language_data): Likewise.
7159 * symtab.c (default_collect_symbol_completion_matches): Delete.
7160 (collect_symbol_completion_matches): Update call to
7161 collect_symbol_completion_matches.
7162 (collect_symbol_completion_matches_type): Likewise.
7163 * symtab.h (default_collect_symbol_completion_matches): Delete
7164 declaration.
7165
53fc67f8
AB
71662020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7167
7168 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
7169 (ada_language_data): Delete la_word_break_characters initializer.
7170 (ada_language::word_break_characters): New member function.
7171 * c-lang.c (c_language_data): Delete la_word_break_characters
7172 initializer.
7173 (cplus_language_data): Likewise.
7174 (asm_language_data): Likewise.
7175 (minimal_language_data): Likewise.
7176 * completer.c: Update global comment.
7177 (advance_to_expression_complete_word_point): Update call to
7178 word_break_characters.
7179 (complete_files_symbols): Likewise.
7180 (complete_line_internal_1): Likewise.
7181 (default_completer_handle_brkchars): Likewise.
7182 (skip_quoted_chars): Likewise.
7183 * d-lang.c (d_language_data): Delete la_word_break_characters
7184 initializer.
7185 * f-lang.c (f_word_break_characters): Delete.
7186 (f_language_data): Delete la_word_break_characters initializer.
7187 (f_language::word_break_characters): New member function.
7188 * go-lang.c (go_language_data): Delete la_word_break_characters
7189 initializer.
7190 * language.c (unknown_language_data): Likewise.
7191 (auto_language_data): Likewise.
7192 * language.h (default_word_break_characters): Move declaration to
7193 earlier in the file.
7194 (language_data): Delete la_word_break_characters field.
7195 (language_defn::word_break_characters): New member function.
7196 * m2-lang.c (m2_language_data): Delete la_word_break_characters
7197 initializer.
7198 * objc-lang.c (objc_language_data): Likewise.
7199 * opencl-lang.c (opencl_language_data): Likewise.
7200 * p-lang.c (pascal_language_data): Likewise.
7201 * rust-lang.c (rust_language_data): Likewise.
7202
c9debfb9
AB
72032020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7204
7205 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
7206 (ada_language_data): Delete la_get_symbol_name_matcher
7207 initializer.
7208 (language_defn::get_symbol_name_matcher_inner): New member
7209 function.
7210 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
7211 initializer.
7212 (cplus_language_data): Likewise.
7213 (cplus_language::get_symbol_name_matcher_inner): New member
7214 function.
7215 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
7216 (minimal_language_data): Likewise.
7217 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
7218 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
7219 initializer.
7220 * dictionary.c (iter_match_first_hashed): Update call to
7221 get_symbol_name_matcher.
7222 (iter_match_next_hashed): Likewise.
7223 (iter_match_next_linear): Likewise.
7224 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
7225 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
7226 initializer.
7227 (f_language::get_symbol_name_matcher_inner): New member function.
7228 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
7229 initializer.
7230 * language.c (default_symbol_name_matcher): Update header comment,
7231 make static.
7232 (language_defn::get_symbol_name_matcher): New definition.
7233 (language_defn::get_symbol_name_matcher_inner): Likewise.
7234 (get_symbol_name_matcher): Delete.
7235 (unknown_language_data): Delete la_get_symbol_name_matcher
7236 initializer.
7237 (auto_language_data): Likewise.
7238 * language.h (language_data): Delete la_get_symbol_name_matcher
7239 field.
7240 (language_defn::get_symbol_name_matcher): New member function.
7241 (language_defn::get_symbol_name_matcher_inner): Likewise.
7242 (default_symbol_name_matcher): Delete declaration.
7243 * linespec.c (find_methods): Update call to
7244 get_symbol_name_matcher.
7245 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
7246 initializer.
7247 * minsyms.c (lookup_minimal_symbol): Update call to
7248 get_symbol_name_matcher.
7249 (iterate_over_minimal_symbols): Likewise.
7250 * objc-lang.c (objc_language_data): Delete
7251 la_get_symbol_name_matcher initializer.
7252 * opencl-lang.c (opencl_language_data): Likewise.
7253 * p-lang.c (pascal_language_data): Likewise.
7254 * psymtab.c (psymbol_name_matches): Update call to
7255 get_symbol_name_matcher.
7256 * rust-lang.c (rust_language_data): Delete
7257 la_get_symbol_name_matcher initializer.
7258 * symtab.c (symbol_matches_search_name): Update call to
7259 get_symbol_name_matcher.
7260 (compare_symbol_name): Likewise.
7261
9a49ad8c
AB
72622020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7263
7264 * ada-lang.c (ada_language_data): Delete la_compute_program
7265 initializer.
7266 * c-lang.c (c_language_data): Likewise.
7267 (c_language::compute_program): New member function.
7268 (cplus_language_data): Delete la_compute_program initializer.
7269 (cplus_language::compute_program): New member function.
7270 (asm_language_data): Delete la_compute_program initializer.
7271 (minimal_language_data): Likewise.
7272 * c-lang.h (c_compute_program): Update comment.
7273 (cplus_compute_program): Likewise.
7274 * compile/compile-c-support.c (c_compute_program): Likewise.
7275 (cplus_compute_program): Likewise.
7276 * compile/compile.c (compile_to_object): Update call to
7277 la_compute_program.
7278 * d-lang.c (d_language_data): Delete la_compute_program
7279 initializer.
7280 * f-lang.c (f_language_data): Likewise.
7281 * go-lang.c (go_language_data): Likewise.
7282 * language.c (unknown_language_data): Likewise.
7283 (auto_language_data): Likewise.
7284 * language.h (language_data): Delete la_compute_program field.
7285 (language_defn::compute_program): New member function.
7286 * m2-lang.c (m2_language_data): Delete la_compute_program
7287 initializer.
7288 * objc-lang.c (objc_language_data): Likewise.
7289 * opencl-lang.c (opencl_language_data): Likewise.
7290 * p-lang.c (pascal_language_data): Likewise.
7291 * rust-lang.c (rust_language_data): Likewise.
7292
eff93b4d
AB
72932020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7294
7295 * ada-lang.c (ada_language_data) Delete
7296 la_class_name_from_physname initializer.
7297 * c-lang.c (c_language_data): Likewise.
7298 (cplus_language_data): Likewise.
7299 (cplus_language::class_name_from_physname): New member function.
7300 (asm_language_data): Delete la_class_name_from_physname
7301 initializer.
7302 (minimal_language_data): Likewise.
7303 * d-lang.c (d_language_data): Likewise.
7304 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
7305 method on language_defn class.
7306 (guess_full_die_structure_name): Likewise.
7307 * f-lang.c (f_language_data): Delete la_class_name_from_physname
7308 initializer.
7309 * go-lang.c (go_language_data): Likewise.
7310 * language.c (language_class_name_from_physname): Delete.
7311 (unk_lang_class_name): Delete.
7312 (unknown_language_data): Delete la_class_name_from_physname
7313 initializer.
7314 (auto_language_data): Likewise.
7315 * language.h (language_data): Delete la_class_name_from_physname
7316 field.
7317 (language_defn::class_name_from_physname): New function.
7318 (language_class_name_from_physname): Delete declaration.
7319 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
7320 initializer.
7321 * objc-lang.c (objc_language_data): Likewise.
7322 * opencl-lang.c (opencl_language_data): Likewise.
7323 * p-lang.c (pascal_language_data): Likewise.
7324 * rust-lang.c (rust_language_data): Likewise.
7325
de543742
TT
73262020-06-16 Tom Tromey <tom@tromey.com>
7327
7328 * tui/tui-data.h (STATUS_NAME): New macro.
7329 * tui/tui-layout.c (tui_remove_some_windows)
7330 (initialize_known_windows, tui_register_window)
7331 (tui_layout_split::remove_windows, initialize_layouts)
7332 (tui_new_layout_command): Don't use hard-coded window names.
7333
a350efd4
TT
73342020-06-16 Tom Tromey <tom@tromey.com>
7335
7336 PR tui/25348:
7337 * tui/tui.c (tui_ensure_readline_initialized): Rename from
7338 tui_initialize_readline. Only run once. Call rl_initialize.
7339 * tui/tui.h (tui_ensure_readline_initialized): Rename from
7340 tui_initialize_readline.
7341 * tui/tui-io.c (tui_setup_io): Call
7342 tui_ensure_readline_initialized.
7343 * tui/tui-interp.c (tui_interp::init): Update.
7344
39ec0490
TT
73452020-06-16 Tom Tromey <tom@tromey.com>
7346
7347 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
7348 Also preserve the status window.
7349
d2d1ea20
TT
73502020-06-16 Tom Tromey <tom@tromey.com>
7351
7352 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
7353 where m_window==nullptr.
7354
66920317
TT
73552020-06-15 Tom Tromey <tromey@adacore.com>
7356
7357 * windows-nat.c (windows_nat::handle_output_debug_string):
7358 Update.
7359 (windows_nat::handle_ms_vc_exception): Update.
7360 * target.h (target_read_string): Change API.
7361 * target.c (target_read_string): Change API.
7362 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
7363 Update.
7364 * solib-frv.c (frv_current_sos): Update.
7365 * solib-dsbt.c (dsbt_current_sos): Update.
7366 * solib-darwin.c (darwin_current_sos): Update.
7367 * linux-thread-db.c (inferior_has_bug): Update.
7368 * expprint.c (print_subexp_standard): Update.
7369 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
7370 (ada_exception_message_1): Update.
7371
a5d871dd
TT
73722020-06-15 Tom Tromey <tromey@adacore.com>
7373
7374 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
7375
670e35fa
TT
73762020-06-15 Tom Tromey <tromey@adacore.com>
7377
7378 * valprint.c (read_string): Update comment.
7379 * target.c (MIN): Remove.
7380 (target_read_string): Rewrite.
7381
f5272a3b
TT
73822020-06-15 Tom Tromey <tromey@adacore.com>
7383
7384 * corefile.c (read_memory_string): Remove.
7385 * ada-valprint.c (ada_value_print_ptr): Update.
7386 * ada-lang.h (ada_tag_name): Change return type.
7387 * ada-lang.c (type_from_tag): Update.
7388 (ada_tag_name_from_tsd): Change return type. Use
7389 target_read_string.
7390 (ada_tag_name): Likewise.
7391 * gdbcore.h (read_memory_string): Don't declare.
7392
2c074f49
HD
73932020-06-14 Hannes Domani <ssbssa@yahoo.de>
7394
7395 * symtab.c (rbreak_command): Ignore Windows drive colon.
7396
6a17d503
SM
73972020-06-12 Simon Marchi <simon.marchi@efficios.com>
7398
7399 * NEWS: Mention removed GDBserver host support.
7400
453c733f
NC
74012020-06-12 Nelson Chu <nelson.chu@sifive.com>
7402
7403 * features/riscv/rebuild-csr-xml.sh: Updated.
7404
2b4e6a3f
TT
74052020-06-11 Tom Tromey <tom@tromey.com>
7406
7407 PR gdb/18318:
7408 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
7409
4412332f
JG
74102020-06-09 Jonny Grant <jg@jguk.org>
74112020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
7412
7413 * main.c (captured_main_1): Don't print new line after help.
7414 (print_gdb_help): add mailing list and IRC channel information
7415 to --help. Add new lines between items in the footer. Remove
7416 quotes around bug url.
7417
2f33032a
KS
74182020-06-11 Keith Seitz <keiths@redhat.com>
7419
7420 PR gdb/21356
7421 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
7422 Resolve typedefs for type length calculations.
7423
7ab96794
TV
74242020-06-10 Tom de Vries <tdevries@suse.de>
7425
7426 PR ada/24713
7427 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
7428 (write_psymbols): Enable .gdb_index for ada.
7429 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
7430 ada.
7431
e5f3ece2
TV
74322020-06-10 Tom de Vries <tdevries@suse.de>
7433
7434 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
7435 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
7436 namei" instead of "const char *name" argument.
7437 (dw2_map_matching_symbols): Use "offset_type namei" variant of
7438 dw2_symtab_iter_init.
7439
940da03e
SM
74402020-06-08 Simon Marchi <simon.marchi@efficios.com>
7441
7442 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
7443 to use type::field and field::type instead.
7444
b6cdac4b
SM
74452020-06-08 Simon Marchi <simon.marchi@efficios.com>
7446
7447 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
7448 to use field::type instead.
7449
5d14b6e5
SM
74502020-06-08 Simon Marchi <simon.marchi@efficios.com>
7451
7452 * gdbtypes.h (struct field) <type, set_type>: New methods.
7453 Rename `type` field to...
7454 <m_type>: ... this. Change references throughout to use type or
7455 set_type methods.
7456 (FIELD_TYPE): Use field::type. Change call sites that modify
7457 the field's type to use field::set_type instead.
7458
3d967001
SM
74592020-06-08 Simon Marchi <simon.marchi@efficios.com>
7460
7461 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
7462 to use type::index_type instead.
7463
262abc0d
SM
74642020-06-08 Simon Marchi <simon.marchi@efficios.com>
7465
7466 * gdbtypes.h (struct type) <index_type, set_index_type>: New
7467 methods.
7468 (TYPE_INDEX_TYPE): Use type::index_type.
7469 * gdbtypes.c (create_array_type_with_stride): Likewise.
7470
82836c92
TT
74712020-06-07 Tom Tromey <tom@tromey.com>
7472
7473 * valprint.c (generic_val_print_float): Remove "embedded_offset"
7474 parameter.
7475 (generic_value_print): Update.
7476
940dace9
AB
74772020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
7478
7479 Revert commit 982a38f60b0.
7480 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
7481
982a38f6
AB
74822020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
7483
7484 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
7485 avoid use after free.
7486
82f06518
TV
74872020-06-05 Tom de Vries <tdevries@suse.de>
7488
7489 * NEWS: Fix typos.
7490
f8c41851
SM
74912020-06-04 Simon Marchi <simon.marchi@efficios.com>
7492
7493 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
7494 the per_bfd object.
7495 (dwarf2_read_debug_names): Likewise.
7496 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
7497 object when re-using a per_bfd object with an index.
7498
f9b5d5ea
TV
74992020-06-03 Tom de Vries <tdevries@suse.de>
7500
7501 PR symtab/26046
7502 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
7503 children for C++.
7504 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
7505 DW_TAG_subprogram.
7506
f6eee2d0
AB
75072020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7508
7509 * ada-lang.c (ada_language_data): Delete skip_trampoline
7510 initializer.
7511 * c-lang.c (c_language_data): Likewise.
7512 (cplus_language_data): Likewise.
7513 (cplus_language::skip_trampoline): New member function.
7514 (asm_language_data): Delete skip_trampoline initializer.
7515 (minimal_language_data): Likewise.
7516 * d-lang.c (d_language_data): Likewise.
7517 * f-lang.c (f_language_data): Likewise.
7518 * go-lang.c (go_language_data): Likewise.
7519 * language.c (unk_lang_trampoline): Delete function.
7520 (skip_language_trampoline): Update.
7521 (unknown_language_data): Delete skip_trampoline initializer.
7522 (auto_language_data): Likewise.
7523 * language.h (language_data): Delete skip_trampoline field.
7524 (language_defn::skip_trampoline): New function.
7525 * m2-lang.c (m2_language_data): Delete skip_trampoline
7526 initializer.
7527 * objc-lang.c (objc_skip_trampoline): Delete function, move
7528 implementation to objc_language::skip_trampoline.
7529 (objc_language_data): Delete skip_trampoline initializer.
7530 (objc_language::skip_trampoline): New member function with
7531 implementation from objc_skip_trampoline.
7532 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
7533 initializer.
7534 * p-lang.c (pascal_language_data): Likewise.
7535 * rust-lang.c (rust_language_data): Likewise.
7536
0a50df5d
AB
75372020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7538
7539 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
7540 (ada_language::demangle): New member function.
7541 * c-lang.c (c_language_data): Delete la_demangle initializer.
7542 (cplus_language_data): Delete la_demangle initializer.
7543 (cplus_language::demangle): New member function.
7544 (asm_language_data): Delete la_demangle initializer.
7545 (minimal_language_data): Delete la_demangle initializer.
7546 * d-lang.c (d_language_data): Delete la_demangle initializer.
7547 (d_language::demangle): New member function.
7548 * f-lang.c (f_language_data): Delete la_demangle initializer.
7549 (f_language::demangle): New member function.
7550 * go-lang.c (go_language_data): Delete la_demangle initializer.
7551 (go_language::demangle): New member function.
7552 * language.c (language_demangle): Update.
7553 (unk_lang_demangle): Delete.
7554 (unknown_language_data): Delete la_demangle initializer.
7555 (unknown_language::demangle): New member function.
7556 (auto_language_data): Delete la_demangle initializer.
7557 (auto_language::demangle): New member function.
7558 * language.h (language_data): Delete la_demangle field.
7559 (language_defn::demangle): New function.
7560 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
7561 * objc-lang.c (objc_language_data): Delete la_demangle
7562 initializer.
7563 (objc_language::demangle): New member function.
7564 * opencl-lang.c (opencl_language_data): Delete la_demangle
7565 initializer.
7566 * p-lang.c (pascal_language_data): Likewise.
7567 * rust-lang.c (rust_language_data): Likewise.
7568 (rust_language::demangle): New member function.
7569
fbfb0a46
AB
75702020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7571
7572 * ada-lang.c (ada_language_data): Delete la_print_type
7573 initializer.
7574 (ada_language::print_type): New member function.
7575 * c-lang.c (c_language_data): Delete la_print_type initializer.
7576 (c_language::print_type): New member function.
7577 (cplus_language_data): Delete la_print_type initializer.
7578 (cplus_language::print_type): New member function.
7579 (asm_language_data): Delete la_print_type initializer.
7580 (asm_language::print_type): New member function.
7581 (minimal_language_data): Delete la_print_type initializer.
7582 (minimal_language::print_type): New member function.
7583 * d-lang.c (d_language_data): Delete la_print_type initializer.
7584 (d_language::print_type): New member function.
7585 * f-lang.c (f_language_data): Delete la_print_type initializer.
7586 (f_language::print_type): New member function.
7587 * go-lang.c (go_language_data): Delete la_print_type initializer.
7588 (go_language::print_type): New member function.
7589 * language.c (unk_lang_print_type): Delete.
7590 (unknown_language_data): Delete la_print_type initializer.
7591 (unknown_language::print_type): New member function.
7592 (auto_language_data): Delete la_print_type initializer.
7593 (auto_language::print_type): New member function.
7594 * language.h (language_data): Delete la_print_type field.
7595 (language_defn::print_type): New function.
7596 (LA_PRINT_TYPE): Update.
7597 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
7598 (m2_language::print_type): New member function.
7599 * objc-lang.c (objc_language_data): Delete la_print_type
7600 initializer.
7601 (objc_language::print_type): New member function.
7602 * opencl-lang.c (opencl_print_type): Delete, implementation moved
7603 to opencl_language::print_type.
7604 (opencl_language_data): Delete la_print_type initializer.
7605 (opencl_language::print_type): New member function, implementation
7606 from opencl_print_type.
7607 * p-lang.c (pascal_language_data): Delete la_print_type
7608 initializer.
7609 (pascal_language::print_type): New member function.
7610 * rust-lang.c (rust_print_type): Delete, implementation moved to
7611 rust_language::print_type.
7612 (rust_language_data): Delete la_print_type initializer.
7613 (rust_language::print_type): New member function, implementation
7614 from rust_print_type.
7615
6f827019
AB
76162020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7617
7618 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
7619 implementation moves to...
7620 (ada_language::sniff_from_mangled_name): ...here. Update return
7621 type.
7622 (ada_language_data): Delete la_sniff_from_mangled_name
7623 initializer.
7624 * c-lang.c (c_language_data): Likewise.
7625 (cplus_language_data): Likewise.
7626 (cplus_language::sniff_from_mangled_name): New member function,
7627 implementation taken from gdb_sniff_from_mangled_name.
7628 (asm_language_data): Delete la_sniff_from_mangled_name
7629 initializer.
7630 (minimal_language_data): Likewise.
7631 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
7632 implementation moves to cplus_language::sniff_from_mangled_name.
7633 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
7634 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
7635 moves to...
7636 (d_language::sniff_from_mangled_name): ...here.
7637 (d_language_data): Delete la_sniff_from_mangled_name initializer.
7638 * f-lang.c (f_language_data): Likewise.
7639 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
7640 moves to...
7641 (go_language::sniff_from_mangled_name): ...here.
7642 (go_language_data): Delete la_sniff_from_mangled_name initializer.
7643 * language.c (language_sniff_from_mangled_name): Delete.
7644 (unknown_language_data): Delete la_sniff_from_mangled_name
7645 initializer.
7646 (auto_language_data): Likewise.
7647 * language.h (language_data): Delete la_sniff_from_mangled_name
7648 field.
7649 (language_defn::sniff_from_mangled_name): New function.
7650 (language_sniff_from_mangled_name): Delete declaration.
7651 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
7652 field.
7653 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
7654 implementation moves to...
7655 (objc_language::sniff_from_mangled_name): ...here.
7656 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
7657 * opencl-lang.c (opencl_language_data): Likewise.
7658 * p-lang.c (pascal_language_data): Likewise.
7659 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
7660 implementation moves to...
7661 (rust_language::sniff_from_mangled_name): ...here.
7662 (rust_language_data): Delete la_sniff_from_mangled_name
7663 initializer.
7664 * symtab.c (symbol_find_demangled_name): Call
7665 sniff_from_mangled_name member function.
7666
fb8006fd
AB
76672020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7668
7669 * ada-lang.c (ada_language_data): Delete la_search_name_hash
7670 initializer.
7671 * c-lang.c (c_language_data): Likewise.
7672 (cplus_language_data): Likewise.
7673 (cplus_language::search_name_hash): New member function.
7674 (asm_language_data): Delete la_search_name_hash initializer.
7675 (minimal_language_data): Likewise.
7676 * d-lang.c (d_language_data): Likewise.
7677 * dictionary.c (default_search_name_hash): Rename to...
7678 (language_defn::search_name_hash): ...this.
7679 * f-lang.c (f_language_data): Likewise.
7680 (f_language::search_name_hash): New member function.
7681 * go-lang.c (go_language_data): Delete la_search_name_hash
7682 initializer.
7683 * language.c (unknown_language_data): Likewise.
7684 (auto_language_data): Likewise.
7685 * language.h (struct language_data): Delete la_search_name_hash
7686 field.
7687 (language_defn::search_name_hash): Declare new member function.
7688 (default_search_name_hash): Delete declaration.
7689 * m2-lang.c (m2_language_data): Delete la_search_name_hash
7690 initializer.
7691 * objc-lang.c (objc_language_data): Likewise.
7692 * opencl-lang.c (opencl_language_data): Likewise.
7693 * p-lang.c (pascal_language_data): Likewise.
7694 * rust-lang.c (rust_language_data): Likewise.
7695 * symtab.c (search_name_hash): Update call.
7696
8e25bafe
AB
76972020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7698
7699 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
7700 initializer.
7701 * c-lang.c (class compile_instance): Declare.
7702 (c_language_data): Delete la_get_compile_instance initializer.
7703 (c_language::get_compile_instance): New member function.
7704 (cplus_language_data): Delete la_get_compile_instance initializer.
7705 (cplus_language::get_compile_instance): New member function.
7706 (asm_language_data): Delete la_get_compile_instance initializer.
7707 (minimal_language_data): Likewise.
7708 * c-lang.h (c_get_compile_context): Update comment.
7709 (cplus_get_compile_context): Update comment.
7710 * compile/compile.c (compile_to_object): Update calls, don't rely
7711 on function pointer being NULL.
7712 * d-lang.c (d_language_data): Delete la_get_compile_instance
7713 initializer.
7714 * f-lang.c (f_language_data): Likewise.
7715 * go-lang.c (go_language_data): Likewise.
7716 * language.c (unknown_language_data): Likewise.
7717 (auto_language_data): Likewise.
7718 * language.h (language_data): Delete la_get_compile_instance field.
7719 (language_defn::get_compile_instance): New member function.
7720 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
7721 initializer.
7722 * objc-lang.c (objc_language_data): Likewise.
7723 * opencl-lang.c (opencl_language_data): Likewise.
7724 * p-lang.c (pascal_language_data): Likewise.
7725 * rust-lang.c (rust_language_data): Likewise.
7726
4009ee92
AB
77272020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7728
7729 * ada-lang.c (ada_add_all_symbols): Update comment.
7730 (ada_iterate_over_symbols): Delete, move implementation to...
7731 (ada_language::iterate_over_symbols): ...here, a new member
7732 function, rewrite to use range based for loop.
7733 (ada_language_data): Delete la_iterate_over_symbols initializer.
7734 * c-lang.c (c_language_data): Likewise.
7735 (cplus_language_data): Likewise.
7736 (asm_language_data): Likewise.
7737 (minimal_language_data): Likewise.
7738 * d-lang.c (d_language_data): Likewise.
7739 * f-lang.c (f_language_data): Likewise.
7740 * go-lang.c (go_language_data): Likewise.
7741 * language.c (unknown_language_data): Likewise.
7742 (auto_language_data): Likewise.
7743 * language.h (language_data): Delete la_iterate_over_symbols field.
7744 (language_defn::iterate_over_symbols): New member function.
7745 (LA_ITERATE_OVER_SYMBOLS): Update.
7746 * linespec.c (iterate_over_all_matching_symtabs): Update.
7747 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
7748 initializer.
7749 * objc-lang.c (objc_language_data): Likewise.
7750 * opencl-lang.c (opencl_language_data): Likewise.
7751 * p-lang.c (pascal_language_data): Likewise.
7752 * rust-lang.c (rust_language_data): Likewise.
7753
54f4ca46
AB
77542020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7755
7756 * ada-lang.c (ada_language_data): Delete
7757 la_lookup_transparent_type initializer.
7758 * c-lang.c (c_language_data): Likewise.
7759 (cplus_language_data): Likewise.
7760 (cplus_language::lookup_transparent_type): New member function.
7761 (asm_language_data): Delete la_lookup_transparent_type
7762 initializer.
7763 (minimal_language_data): Likewise.
7764 * d-lang.c (d_language_data): Likewise.
7765 * f-lang.c (f_language_data): Likewise.
7766 * go-lang.c (go_language_data): Likewise.
7767 * language.c (unknown_language_data): Likewise.
7768 (auto_language_data): Likewise.
7769 * language.h (struct language_data): Delete
7770 la_lookup_transparent_type field.
7771 (language_defn::lookup_transparent_type): New member function.
7772 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
7773 initializer.
7774 * objc-lang.c (objc_language_data): Likewise.
7775 * opencl-lang.c (opencl_language_data): Likewise.
7776 * p-lang.c (pascal_language_data): Likewise.
7777 * rust-lang.c (rust_language_data): Likewise.
7778 * symtab.c (symbol_matches_domain): Update call.
7779
1fb314aa
AB
77802020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7781
7782 * ada-lang.c (ada_language_arch_info): Delete function, move
7783 implementation to...
7784 (ada_language::language_arch_info): ...here, a new member
7785 function.
7786 (ada_language_data): Delete la_language_arch_info.
7787 * c-lang.c (c_language_data): Likewise.
7788 (c_language::language_arch_info): New member function.
7789 (cplus_language_arch_info): Delete function, move
7790 implementation to...
7791 (cplus_language::language_arch_info): ...here, a new member
7792 function.
7793 (cplus_language_data): Delete la_language_arch_info.
7794 (asm_language_data): Likewise.
7795 (asm_language::language_arch_info): New member function.
7796 (minimal_language_data): Delete la_language_arch_info.
7797 (minimal_language::language_arch_info): New member function.
7798 * d-lang.c (d_language_arch_info): Delete function, move
7799 implementation to...
7800 (d_language::language_arch_info): ...here, a new member
7801 function.
7802 (d_language_data): Delete la_language_arch_info.
7803 * f-lang.c (f_language_arch_info): Delete function, move
7804 implementation to...
7805 (f_language::language_arch_info): ...here, a new member
7806 function.
7807 (f_language_data): Delete la_language_arch_info.
7808 * go-lang.c (go_language_arch_info): Delete function, move
7809 implementation to...
7810 (go_language::language_arch_info): ...here, a new member
7811 function.
7812 (go_language_data): Delete la_language_arch_info.
7813 * language.c (unknown_language_data): Likewise.
7814 (unknown_language::language_arch_info): New member function.
7815 (auto_language_data): Delete la_language_arch_info.
7816 (auto_language::language_arch_info): New member function.
7817 (language_gdbarch_post_init): Update call to
7818 la_language_arch_info.
7819 * language.h (language_data): Delete la_language_arch_info
7820 function pointer.
7821 (language_defn::language_arch_info): New function.
7822 * m2-lang.c (m2_language_arch_info): Delete function, move
7823 implementation to...
7824 (m2_language::language_arch_info): ...here, a new member
7825 function.
7826 (m2_language_data): Delete la_language_arch_info.
7827 * objc-lang.c (objc_language_arch_info): Delete function, move
7828 implementation to...
7829 (objc_language::language_arch_info): ...here, a new member
7830 function.
7831 (objc_language_data): Delete la_language_arch_info.
7832 * opencl-lang.c (opencl_language_arch_info): Delete function, move
7833 implementation to...
7834 (opencl_language::language_arch_info): ...here, a new member
7835 function.
7836 (opencl_language_data): Delete la_language_arch_info.
7837 * p-lang.c (pascal_language_arch_info): Delete function, move
7838 implementation to...
7839 (pascal_language::language_arch_info): ...here, a new member
7840 function.
7841 (pascal_language_data): Delete la_language_arch_info.
7842 * rust-lang.c (rust_language_arch_info): Delete function, move
7843 implementation to...
7844 (rust_language::language_arch_info): ...here, a new member
7845 function.
7846 (rust_language_data): Delete la_language_arch_info.
7847
48448202
AB
78482020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7849
7850 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
7851 initializer.
7852 * c-lang.c (c_language_data): Likewise.
7853 (cplus_language_data): Likewise.
7854 (cplus_language::pass_by_reference_info): New method.
7855 (asm_language_data): Delete la_pass_by_reference initializer.
7856 (minimal_language_data): Likewise.
7857 * cp-abi.c (cp_pass_by_reference): Remove use of
7858 default_pass_by_reference.
7859 * d-lang.c (d_language_data): Likewise.
7860 * f-lang.c (f_language_data): Likewise.
7861 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
7862 default_pass_by_reference.
7863 * go-lang.c (go_language_data): Likewise.
7864 * language.c (language_pass_by_reference): Update.
7865 (default_pass_by_reference): Delete.
7866 (unknown_language_data): Delete la_pass_by_reference
7867 initializer.
7868 (auto_language_data): Likewise.
7869 * language.h (struct language_data): Delete la_pass_by_reference
7870 field.
7871 (language_defn::pass_by_reference_info): New member function.
7872 (default_pass_by_reference): Delete declaration.
7873 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
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
15e5fd35
AB
78802020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7881
7882 * ada-lang.c (ada_read_var_value): Delete function, move
7883 implementation to...
7884 (ada_language::read_var_value): ...here.
7885 (ada_language_data): Delete la_read_var_value initializer.
7886 * c-lang.c (c_language_data): Likewise.
7887 (cplus_language_data): Likewise.
7888 (minimal_language_data): Likewise.
7889 * d-lang.c (d_language_data): Likewise.
7890 * f-lang.c (f_language_data): Likewise.
7891 * findvar.c (default_read_var_value): Rename to...
7892 (language_defn::read_var_value): ...this.
7893 * findvar.c (read_var_value): Update header comment, and change to
7894 call member function instead of function pointer.
7895 * go-lang.c (go_language_data): Likewise.
7896 * language.c (unknown_language_data): Delete la_read_var_value
7897 initializer.
7898 (auto_language_data): Likewise.
7899 * language.h (struct language_data): Delete la_read_var_value
7900 field.
7901 (language_defn::read_var_value): New member function.
7902 (default_read_var_value): Delete declaration.
7903 * m2-lang.c (m2_language_data): Delete la_read_var_value
7904 initializer.
7905 * objc-lang.c (objc_language_data): Likewise.
7906 * opencl-lang.c (opencl_language_data): Likewise.
7907 * p-lang.c (pascal_language_data): Likewise.
7908 * rust-lang.c (rust_language_data): Likewise.
7909 * value.h (default_read_var_value): Delete declaration.
7910
5bd40f2a
AB
79112020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7912
7913 * ada-lang.c (ada_print_array_index): Delete function, move
7914 implementation to...
7915 (ada_language::print_array_index): ...here.
7916 (ada_language_data): Delete la_print_array_index initializer.
7917 * c-lang.c (c_language_data): Likewise.
7918 (cplus_language_data): Likewise.
7919 (minimal_language_data): Likewise.
7920 * d-lang.c (d_language_data): Likewise.
7921 * f-lang.c (f_language_data): Likewise.
7922 * go-lang.c (go_language_data): Likewise.
7923 * language.c (default_print_array_index): Delete function, move
7924 implementation to...
7925 (language_defn::print_array_index): ...here.
7926 (unknown_language_data): Delete la_print_array_index initializer.
7927 (auto_language_data): Likewise.
7928 * language.h (struct language_data): Delete la_print_array_index
7929 field.
7930 (language_defn::print_array_index): New member function.
7931 (LA_PRINT_ARRAY_INDEX): Update.
7932 (default_print_array_index): Delete declaration.
7933 * m2-lang.c (m2_language_data): Delete la_print_array_index
7934 initializer.
7935 * objc-lang.c (objc_language_data): Likewise.
7936 * opencl-lang.c (opencl_language_data): Likewise.
7937 * p-lang.c (pascal_language_data): Likewise.
7938 * rust-lang.c (rust_language_data): Likewise.
7939
0874fd07
AB
79402020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7941
7942 * gdb/ada-lang.c (ada_language_defn): Convert to...
7943 (ada_language_data): ...this.
7944 (class ada_language): New class.
7945 (ada_language_defn): New static global.
7946 * gdb/c-lang.c (c_language_defn): Convert to...
7947 (c_language_data): ...this.
7948 (class c_language): New class.
7949 (c_language_defn): New static global.
7950 (cplus_language_defn): Convert to...
7951 (cplus_language_data): ...this.
7952 (class cplus_language): New class.
7953 (cplus_language_defn): New static global.
7954 (asm_language_defn): Convert to...
7955 (asm_language_data): ...this.
7956 (class asm_language): New class.
7957 (asm_language_defn): New static global.
7958 (minimal_language_defn): Convert to...
7959 (minimal_language_data): ...this.
7960 (class minimal_language): New class.
7961 (minimal_language_defn): New static global.
7962 * gdb/d-lang.c (d_language_defn): Convert to...
7963 (d_language_data): ...this.
7964 (class d_language): New class.
7965 (d_language_defn): New static global.
7966 * gdb/f-lang.c (f_language_defn): Convert to...
7967 (f_language_data): ...this.
7968 (class f_language): New class.
7969 (f_language_defn): New static global.
7970 * gdb/go-lang.c (go_language_defn): Convert to...
7971 (go_language_data): ...this.
7972 (class go_language): New class.
7973 (go_language_defn): New static global.
7974 * gdb/language.c (unknown_language_defn): Remove declaration.
7975 (current_language): Initialize to nullptr, real initialization is
7976 moved to _initialize_language.
7977 (languages): Delete global.
7978 (language_defn::languages): Define.
7979 (set_language_command): Use language_defn::languages.
7980 (set_language): Likewise.
7981 (range_error): Likewise.
7982 (language_enum): Likewise.
7983 (language_def): Likewise.
7984 (add_set_language_command): Use language_def::languages for the
7985 language list, and language_def to lookup language pointers.
7986 (skip_language_trampoline): Use language_defn::languages.
7987 (unknown_language_defn): Convert to...
7988 (unknown_language_data): ...this.
7989 (class unknown_language): New class.
7990 (unknown_language_defn): New static global.
7991 (auto_language_defn): Convert to...
7992 (auto_language_data): ...this.
7993 (class auto_language): New class.
7994 (auto_language_defn): New static global.
7995 (language_gdbarch_post_init): Use language_defn::languages.
7996 (_initialize_language): Initialize current_language.
7997 * gdb/language.h (struct language_defn): Rename to...
7998 (struct language_data): ...this.
7999 (struct language_defn): New.
8000 (auto_language_defn): Delete.
8001 (unknown_language_defn): Delete.
8002 (minimal_language_defn): Delete.
8003 (ada_language_defn): Delete.
8004 (asm_language_defn): Delete.
8005 (c_language_defn): Delete.
8006 (cplus_language_defn): Delete.
8007 (d_language_defn): Delete.
8008 (f_language_defn): Delete.
8009 (go_language_defn): Delete.
8010 (m2_language_defn): Delete.
8011 (objc_language_defn): Delete.
8012 (opencl_language_defn): Delete.
8013 (pascal_language_defn): Delete.
8014 (rust_language_defn): Delete.
8015 * gdb/m2-lang.c (m2_language_defn): Convert to...
8016 (m2_language_data): ...this.
8017 (class m2_language): New class.
8018 (m2_language_defn): New static global.
8019 * gdb/objc-lang.c (objc_language_defn): Convert to...
8020 (objc_language_data): ...this.
8021 (class objc_language): New class.
8022 (objc_language_defn): New static global.
8023 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
8024 (opencl_language_data): ...this.
8025 (class opencl_language): New class.
8026 (opencl_language_defn): New static global.
8027 * gdb/p-lang.c (pascal_language_defn): Convert to...
8028 (pascal_language_data): ...this.
8029 (class pascal_language): New class.
8030 (pascal_language_defn): New static global.
8031 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
8032 language pointer, update comment format.
8033 * gdb/rust-lang.c (rust_language_defn): Convert to...
8034 (rust_language_data): ...this.
8035 (class rust_language): New class.
8036 (rust_language_defn): New static global.
8037
1313c56e
AB
80382020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
8039
8040 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
8041 member variable.
8042 <m_stmt_at_address>: New member variable.
8043 (lnp_state_machine::record_line): Don't record some lines, update
8044 tracking of is_stmt at the same address.
8045 (lnp_state_machine::lnp_state_machine): Initialise new member
8046 variables.
8047
b7ed9f3d
ST
80482020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
8049
8050 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
8051 "-include gnu-nat-mig.h".
8052 * gnu-nat-mig.h: New file.
8053 * gnu-nat.c: Include "gnu-nat-mig.h".
8054 (exc_server, msg_reply_server, notify_server,
8055 process_reply_server): Remove declarations.
8056
14a8ad62
ST
80572020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8058
8059 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
8060 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
8061 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
8062 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
8063 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
8064 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
8065 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
8066 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
8067 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
8068 to gnu_nat_target class.
8069 * gnu-nat.c: Likewise.
8070 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
8071 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
8072 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
8073 object.
8074 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
8075 instead of `gnu_target'.
8076
0af5e106
ST
80772020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8078
8079 * i386-gnu-tdep.c: Include "gdbcore.h"
8080 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
8081 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
8082 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
8083 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
8084 i386_gnu_sigcontext_addr): New functions
8085 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
8086 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
8087 tdep.
8088
078f2fc9
ST
80892020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8090
8091 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
8092 before fork_inferior call. Avoid calling it if target_is_pushed returns
8093 true.
8094
53dff92c
ST
80952020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8096
8097 * gnu-nat.h (gnu_target): New variable declaration.
8098 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
8099 gnu_target.
8100 * gnu-nat.c (gnu_target): New variable.
8101 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
8102 add_thread_silent, and add_thread calls.
8103 (gnu_nat_target::create_inferior): Pass gnu_target to
8104 add_thread_silent, thread_change_ptid call.
8105 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
8106 call.
8107
5a8b8627
ST
81082020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8109
8110 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
8111 (gnu_nat_target::find_memory_regions): Remove unused
8112 `old_address' variable.
8113
366f550a
ST
81142020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8115
8116 * gnu-nat.c: Include "gdbarch.h".
8117
f14871bf
ST
81182020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8119
8120 * reply_mig_hack.awk (Error return): Cast function through
8121 void *, to bypass compiler function call check.
8122
c6887cfb
ST
81232020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8124
8125 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
8126 $(srcdir)/reply_mig_hack.awk.
8127
6930bffe
ST
81282020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8129
8130 * gnu-nat.h (gnu_debug_flag): Set type to bool.
8131
112c22ed
JG
81322020-05-30 Jonny Grant <jg@jguk.org>
8133
8134 * configure.ac (ACX_BUGURL): change bug URL to https.
8135
f68f85b5
PA
81362020-05-30 Pedro Alves <palves@redhat.com>
8137
8138 * cp-support.c (replace_typedefs_template): New.
8139 (replace_typedefs_qualified_name): Handle
8140 DEMANGLE_COMPONENT_TEMPLATE.
8141
976ca316
SM
81422020-05-29 Simon Marchi <simon.marchi@efficios.com>
8143
8144 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
8145 dwarf2/index-cache.h, dwarf2/index-write.c,
8146 dwarf2/index-write.h, dwarf2/line-header.c,
8147 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
8148 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
8149 variables and fields from `dwarf2_per_objfile` to just
8150 `per_objfile` throughout.
8151
989ade05
SM
81522020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
8153
8154 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8155 <push_dwarf_reg_entry_value>: Add comment.
8156
c47bae85
KB
81572020-05-28 Kevin Buettner <kevinb@redhat.com>
8158 Keith Seitz <keiths@redhat.com>
8159
8160 * python/python.c (do_start_initialization): Call PyEval_SaveThread
8161 instead of PyEval_ReleaseLock.
8162 (class gdbpy_gil): Move to earlier in file.
8163 (finalize_python): Set gdb_python_initialized.
8164 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
8165 when not initialized.
8166
44486dcf
SM
81672020-05-28 Simon Marchi <simon.marchi@efficios.com>
8168
8169 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8170 <push_dwarf_reg_entry_value>: Remove assert. Override
8171 per_objfile with caller_per_objfile.
8172
f030440d
TV
81732020-05-28 Tom de Vries <tdevries@suse.de>
8174
8175 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
8176 PR gold/15646 workaround to symbol kind "type".
8177
f0fbb768
TT
81782020-05-27 Tom Tromey <tromey@adacore.com>
8179
8180 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
8181
af0b2a3e
TT
81822020-05-27 Tom Tromey <tromey@adacore.com>
8183
8184 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
8185 Use htab_find_with_hash.
8186 <add_abbrev>: Remove "abbrev_number" parameter.
8187 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
8188 "abbrev_number" parameter. Use htab_find_slot_with_hash.
8189 (hash_abbrev): Add comment.
8190 (abbrev_table::lookup_abbrev): Move to header file.
8191 (abbrev_table::read): Update.
8192
7d00ffec
TT
81932020-05-27 Tom Tromey <tromey@adacore.com>
8194
8195 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
8196 method.
8197 <canonical_name>: New member.
8198 <raw_name>: Rename from "name".
8199 (partial_die_info): Initialize canonical_name.
8200 (scan_partial_symbols): Check raw_name.
8201 (partial_die_parent_scope, partial_die_full_name)
8202 (add_partial_symbol, add_partial_subprogram)
8203 (add_partial_enumeration, load_partial_dies): Use "name" method.
8204 (partial_die_info::name): New method.
8205 (partial_die_info::read, guess_partial_die_structure_name)
8206 (partial_die_info::fixup): Update.
8207
697bba18
TT
82082020-05-27 Tom Tromey <tromey@adacore.com>
8209
8210 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
8211 <get_ref_die_offset>: Inline.
8212 <get_ref_die_offset_complaint>: New method.
8213 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
8214 (attribute::get_ref_die_offset_complaint): Rename from
8215 get_ref_die_offset. Just issue complaint.
8216
c17ace43
HD
82172020-05-27 Hannes Domani <ssbssa@yahoo.de>
8218
8219 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
8220
96445f0b
HD
82212020-05-27 Hannes Domani <ssbssa@yahoo.de>
8222
8223 * exec.c (exec_file_attach): Use errno value of first openp failure.
8224
ac637ec3
HD
82252020-05-27 Hannes Domani <ssbssa@yahoo.de>
8226
8227 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
8228 Don't close thread handle.
8229
17ee85fc
TT
82302020-05-27 Tom Tromey <tom@tromey.com>
8231 Simon Marchi <simon.marchi@efficios.com>
8232
8233 * objfiles.h (struct objfile) <partial_symtabs>: Now a
8234 shared_ptr.
8235 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
8236 member.
8237 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
8238 dwarf2_per_bfd_objfile_data_key>: New globals.
8239 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
8240 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
8241 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
8242 shared.
8243 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
8244 short-circuit when sharing.
8245 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
8246 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
8247
39b16f87
SM
82482020-05-27 Simon Marchi <simon.marchi@efficios.com>
8249
8250 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
8251 to...
8252 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
8253 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
8254
fcf23d5b
SM
82552020-05-27 Simon Marchi <simon.marchi@efficios.com>
8256
8257 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
8258 build_name_components, find_name_components_bounds>:
8259 Add per_objfile parameter.
8260 (struct mapped_index) <symbol_name_at>: Likewise.
8261 (struct mapped_debug_names): Remove constructor.
8262 <dwarf2_per_objfile>: Remove field.
8263 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
8264 (mapped_index_base::find_name_components_bounds,
8265 mapped_index_base::build_name_components,
8266 dw2_expand_symtabs_matching_symbol): Likewise.
8267 (class mock_mapped_index) <symbol_name_at>: Likewise.
8268 (check_match): Likewise.
8269 (check_find_bounds_finds): Likewise.
8270 (test_mapped_index_find_name_component_bounds): Update.
8271 (CHECK_MATCH): Update.
8272 (dw2_expand_symtabs_matching): Update.
8273 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
8274 per_objfile parameter.
8275 <find_vec_in_debug_names>: Likewise.
8276 <m_per_objfile>: New field.
8277 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
8278 parameter.
8279 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
8280 (dw2_debug_names_iterator::next): Update.
8281 (dw2_debug_names_lookup_symbol): Update.
8282 (dw2_debug_names_expand_symtabs_for_function): Update.
8283 (dw2_debug_names_map_matching_symbols): Update.
8284 (dw2_debug_names_expand_symtabs_matching): Update.
8285 (dwarf2_read_debug_names): Update.
8286
7188ed02
SM
82872020-05-27 Simon Marchi <simon.marchi@efficios.com>
8288
8289 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
8290 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
8291 move to dwarf2_per_objfile.
8292 <read_in_chain>: Remove.
8293 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
8294 remove_all_cus, age_comp_units>: New methods.
8295 <m_dwarf2_cus>: New member.
8296 (struct dwarf2_per_cu_data) <cu>: Remove.
8297 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
8298 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
8299 moved to methods of dwarf2_per_objfile.
8300 (dwarf2_clear_marks): Remove.
8301 (dwarf2_queue_item::~dwarf2_queue_item): Update.
8302 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
8303 (dwarf2_per_bfd::free_cached_comp_units): Remove.
8304 (dwarf2_per_objfile::remove_all_cus): New.
8305 (class free_cached_comp_units) <~free_cached_comp_units>:
8306 Update.
8307 (load_cu): Update.
8308 (dw2_do_instantiate_symtab): Adjust.
8309 (fill_in_sig_entry_from_dwo_entry): Adjust.
8310 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8311 (cutu_reader::cutu_reader): Likewise.
8312 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
8313 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
8314 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
8315 and dwarf2_per_objfile::age_comp_units.
8316 (load_partial_comp_unit): Update.
8317 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
8318 (process_queue): Likewise.
8319 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
8320 backlink.
8321 (dwarf2_read_addr_index): Likewise.
8322 (follow_die_offset): Likewise.
8323 (dwarf2_fetch_die_loc_sect_off): Likewise.
8324 (dwarf2_fetch_constant_bytes): Likewise.
8325 (dwarf2_fetch_die_type_sect_off): Likewise.
8326 (follow_die_sig_1): Likewise.
8327 (load_full_type_unit): Likewise.
8328 (read_signatured_type): Likewise.
8329 (dwarf2_cu::dwarf2_cu): Don't set cu field.
8330 (dwarf2_cu::~dwarf2_cu): Remove.
8331 (dwarf2_per_objfile::get_cu): New.
8332 (dwarf2_per_objfile::set_cu): New.
8333 (age_cached_comp_units): Rename to...
8334 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
8335 to std::unordered_map.
8336 (free_one_cached_comp_unit): Rename to...
8337 (dwarf2_per_objfile::remove_cu): ... this. Adjust
8338 to std::unordered_map.
8339 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
8340 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
8341 a dwarf2_per_objfile in data.
8342 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
8343 (dwarf2_clear_marks): Remove.
8344
2e671100
SM
83452020-05-27 Simon Marchi <simon.marchi@efficios.com>
8346
8347 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
8348 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
8349 (init_tu_and_read_dwo_dies): Likewise.
8350 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
8351 (cutu_reader::cutu_reader): Likewise.
8352 (load_partial_comp_unit): Likewise.
8353 (process_psymtab_comp_unit): Update.
8354 (build_type_psymtabs_1): Update.
8355 (process_skeletonless_type_unit): Update.
8356 (load_full_comp_unit): Update.
8357 (find_partial_die): Update.
8358 (dwarf2_read_addr_index): Update.
8359 (read_signatured_type): Update.
8360
2e6a9f79
SM
83612020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8362
8363 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
8364 m_header_read_in>: New fields.
8365 <get_header>: New method.
8366 * dwarf2/read.c (per_cu_header_read_in): Remove.
8367 (dwarf2_per_cu_data::get_header): New.
8368 (dwarf2_per_cu_data::addr_size): Update.
8369 (dwarf2_per_cu_data::offset_size): Update.
8370 (dwarf2_per_cu_data::ref_addr_size): Update.
8371
1b555f17
SM
83722020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8373
8374 * dwarf2/read.c (load_cu): Return dwarf2_cu.
8375 (dw2_do_instantiate_symtab): Update.
8376 (queue_and_load_all_dwo_tus): Change parameter from
8377 dwarf2_per_cu_data to dwarf2_cu.
8378 (dwarf2_fetch_die_loc_sect_off): Update.
8379 (dwarf2_fetch_constant_bytes): Update.
8380 (dwarf2_fetch_die_type_sect_off): Update.
8381
8fc0b21d
SM
83822020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8383
8384 * dwarf2/read.c (process_full_comp_unit,
8385 process_full_type_unit): Remove per_cu, per_objfile paramters.
8386 Add dwarf2_cu parameter.
8387 (process_queue): Update.
8388
168c9250
SM
83892020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8390
8391 * dwarf2/read.c (create_cu_from_index_list): Replace
8392 dwarf2_per_objfile parameter with dwarf2_per_bfd.
8393 (create_cus_from_index_list): Likewise.
8394 (create_cus_from_index): Likewise.
8395 (create_signatured_type_table_from_index): Likewise.
8396 (create_cus_from_debug_names_list): Likewise.
8397 (create_cus_from_debug_names): Likewise.
8398 (dwarf2_read_gdb_index): Update.
8399 (dwarf2_read_debug_names): Update.
8400
e286671b
TT
84012020-05-27 Tom Tromey <tom@tromey.com>
8402 Simon Marchi <simon.marchi@efficios.com>
8403
8404 * dwarf2/read.h (struct dwarf2_per_objfile)
8405 <get_type_for_signatured_type, set_type_for_signatured_type>:
8406 New methods.
8407 <m_type_map>: New member.
8408 (struct signatured_type) <type>: Remove.
8409 * dwarf2/read.c
8410 (dwarf2_per_objfile::get_type_for_signatured_type,
8411 dwarf2_per_objfile::set_type_for_signatured_type): New.
8412 (get_signatured_type): Use new methods.
8413
8adb8487
TT
84142020-05-27 Tom Tromey <tom@tromey.com>
8415 Simon Marchi <simon.marchi@efficios.com>
8416
8417 * dwarf2/read.h (struct type_unit_group_unshareable): New.
8418 (struct dwarf2_per_objfile) <type_units>: New member.
8419 <get_type_unit_group_unshareable>: New method.
8420 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
8421 num_symtabs, symtabs>: Remove; move to
8422 type_unit_group_unshareable.
8423 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
8424 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
8425 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
8426
127bbf4b
SM
84272020-05-27 Simon Marchi <simon.marchi@efficios.com>
8428
8429 * dwarf2/read.h (struct dwarf2_per_cu_data):
8430 <dwarf2_per_objfile>: Remove.
8431 * dwarf2/read.c (create_cu_from_index_list): Don't assign
8432 dwarf2_per_objfile.
8433 (create_signatured_type_table_from_index): Likewise.
8434 (create_signatured_type_table_from_debug_names): Likewise.
8435 (create_debug_type_hash_table): Likewise.
8436 (fill_in_sig_entry_from_dwo_entry): Likewise.
8437 (create_type_unit_group): Likewise.
8438 (read_comp_units_from_section): Likewise.
8439 (create_cus_hash_table): Likewise.
8440
f6e649dd
SM
84412020-05-27 Simon Marchi <simon.marchi@efficios.com>
8442
8443 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
8444 dwarf2_per_cu_data::dwarf2_per_objfile.
8445 (compute_compunit_symtab_includes): Likewise.
8446 (dwarf2_cu::start_symtab): Likewise.
8447
aa66c379
SM
84482020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8449
8450 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
8451 parameter.
8452 * dwarf2/read.c (get_die_type_at_offset): Likewise.
8453 (read_namespace_alias): Update.
8454 (lookup_die_type): Update.
8455 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
8456 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
8457 Update.
8458 (disassemble_dwarf_expression): Update.
8459
120ce1b5
SM
84602020-05-27 Simon Marchi <simon.marchi@efficios.com>
8461
8462 * dwarf2/read.h (struct dwarf2_queue_item): Add
8463 dwarf2_per_objfile parameter, assign new parameter.
8464 <per_objfile>: New field.
8465 * dwarf2/read.c (free_one_cached_comp_unit): Add
8466 dwarf2_per_objfile parameter.
8467 (queue_comp_unit): Likewise.
8468 (dw2_do_instantiate_symtab): Update.
8469 (process_psymtab_comp_unit): Update.
8470 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
8471 (process_imported_unit_die): Update.
8472 (queue_and_load_dwo_tu): Update.
8473 (follow_die_offset): Update.
8474 (follow_die_sig_1): Update.
8475
9f47c707
SM
84762020-05-27 Simon Marchi <simon.marchi@efficios.com>
8477
8478 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
8479 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
8480 (read_call_site_scope): Assign per_objfile.
8481 (dwarf2_per_cu_data::objfile): Remove.
8482 * gdbtypes.h (struct call_site) <per_objfile>: New member.
8483 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
8484 dwarf2_per_objfile parameter.
8485 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
8486 dwarf2_per_objfile parameter.
8487 (dwarf_expr_reg_to_entry_parameter): Add output
8488 dwarf2_per_objfile parameter.
8489 (locexpr_get_frame_base): Update.
8490 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
8491 <push_dwarf_reg_entry_value>: Update.
8492 <call_site_to_target_addr>: Update.
8493 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
8494 parameter.
8495 (value_of_dwarf_reg_entry): Update.
8496 (rw_pieced_value): Update.
8497 (indirect_synthetic_pointer): Update.
8498 (dwarf2_evaluate_property): Update.
8499 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
8500 parameter.
8501 (locexpr_read_variable): Update.
8502 (locexpr_get_symbol_read_needs): Update.
8503 (loclist_read_variable): Update.
8504
14095eb3
SM
85052020-05-27 Simon Marchi <simon.marchi@efficios.com>
8506
8507 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8508 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8509 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
8510 parameter.
8511 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8512 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8513 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
8514 parameter.
8515 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
8516 sect_variable_value): Add dwarf2_per_objfile parameter.
8517 (class dwarf_evaluate_loc_desc) <dwarf_call,
8518 dwarf_variable_value>: Update.
8519 (fetch_const_value_from_synthetic_pointer): Add
8520 dwarf2_per_objfile parameter.
8521 (fetch_const_value_from_synthetic_pointer): Update.
8522 (coerced_pieced_ref): Update.
8523 (class symbol_needs_eval_context) <dwarf_call,
8524 dwarf_variable_value>: Update.
8525 (dwarf2_compile_expr_to_ax): Update.
8526
3c3cd3d4
SM
85272020-05-27 Simon Marchi <simon.marchi@efficios.com>
8528
8529 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
8530 parameter.
8531 (dwarf2_evaluate_loc_desc_full): Update.
8532
82ca3f51
SM
85332020-05-27 Simon Marchi <simon.marchi@efficios.com>
8534
8535 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
8536 parameter.
8537 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
8538 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
8539 dwarf2_per_objfile parameter.
8540 (decode_debug_loc_dwo_addresses): Likewise.
8541 (dwarf2_find_location_expression): Update.
8542 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
8543 (locexpr_describe_location_piece): Add dwarf2_per_objfile
8544 parameter.
8545 (disassemble_dwarf_expression): Add dwarf2_per_objfile
8546 parameter.
8547 (locexpr_describe_location_1): Likewise.
8548 (locexpr_describe_location): Update.
8549
4b167ea1
SM
85502020-05-27 Simon Marchi <simon.marchi@efficios.com>
8551
8552 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
8553 Remove.
8554 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
8555 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
8556 (dwarf2_compile_property_to_c): Update.
8557 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
8558 use text offset from objfile.
8559 (locexpr_tracepoint_var_ref): Update.
8560 (locexpr_generate_c_location): Update.
8561 (loclist_describe_location): Update.
8562 (loclist_tracepoint_var_ref): Update.
8563 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
8564 dwarf2_per_objfile parameter.
8565 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
8566 use text offset from objfile.
8567 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
8568
89b07335
SM
85692020-05-27 Simon Marchi <simon.marchi@efficios.com>
8570
8571 * dwarf2/expr.h (struct dwarf_expr_context)
8572 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
8573 <offset>: Remove.
8574 <per_objfile>: New member.
8575 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
8576 dwarf2_per_objfile parameter. Don't set offset, set
8577 per_objfile.
8578 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
8579 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
8580 a dwarf2_per_objfile object instead of an offset.
8581 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
8582 constructor.
8583 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
8584 to dwarf2_expr_executor constructor. Don't set offset.
8585 (dwarf2_fetch_cfa_info): Update.
8586 (struct dwarf2_frame_cache) <text_offset>: Remove.
8587 <per_objfile>: New field.
8588 (dwarf2_frame_cache): Update.
8589 (dwarf2_frame_prev_register): Update.
8590 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8591 <dwarf_evaluate_loc_desc>: Add constructor.
8592 (dwarf2_evaluate_loc_desc_full): Update.
8593 (dwarf2_locexpr_baton_eval): Update.
8594 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
8595 Add constructor.
8596 (dwarf2_loc_desc_get_symbol_read_needs): Update.
8597
293e7e51
SM
85982020-05-27 Simon Marchi <simon.marchi@efficios.com>
8599
8600 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
8601 addr_sized_int_type>: Move to dwarf2_cu.
8602 <int_type>: Move to dwarf2_per_objfile.
8603 (struct dwarf2_per_objfile) <int_type>: Move here.
8604 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
8605 addr_sized_int_type>: Move here.
8606 (read_func_scope): Update.
8607 (read_array_type): Update.
8608 (read_tag_string_type): Update.
8609 (attr_to_dynamic_prop): Update.
8610 (dwarf2_per_cu_data::int_type): Rename to...
8611 (dwarf2_per_objfile::int_type): ... this.
8612 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
8613 (dwarf2_cu::addr_sized_int_type): ... this.
8614 (read_subrange_type): Update.
8615 (dwarf2_per_cu_data::addr_type): Rename to...
8616 (dwarf2_cu::addr_type): ... this.
8617 (set_die_type): Update.
8618
64874a40
SM
86192020-05-27 Simon Marchi <simon.marchi@efficios.com>
8620
8621 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
8622 data through per_cu->cu.
8623
4ab09049
SM
86242020-05-27 Simon Marchi <simon.marchi@efficios.com>
8625
8626 * dwarf2/read.c (lookup_dwo_comp_unit): Change
8627 dwarf2_per_cu_data parameter fo dwarf2_cu.
8628 (lookup_dwo_type_unit): Likewise.
8629 (read_cutu_die_from_dwo): Likewise.
8630 (lookup_dwo_unit): Likewise.
8631 (open_and_init_dwo_file): Likewise.
8632 (lookup_dwo_cutu): Likewise.
8633 (lookup_dwo_comp_unit): Likewise.
8634 (lookup_dwo_type_unit): Likewise.
8635 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8636 (cutu_reader::cutu_reader): Update.
8637
47b14e86
SM
86382020-05-27 Simon Marchi <simon.marchi@efficios.com>
8639
8640 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
8641 parameter.
8642 (process_full_type_unit): Likewise.
8643 (process_queue): Update.
8644
43182c09
SM
86452020-05-27 Simon Marchi <simon.marchi@efficios.com>
8646
8647 * dwarf2/read.c (recursively_compute_inclusions): Add
8648 dwarf2_per_objfile parameter.
8649 (compute_compunit_symtab_includes): Likewise.
8650 (process_cu_includes): Update.
8651
7aa104c4
SM
86522020-05-27 Simon Marchi <simon.marchi@efficios.com>
8653
8654 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
8655 parameter.
8656 (create_type_unit_group): Update.
8657 (process_psymtab_comp_unit_reader): Update.
8658 (build_type_psymtabs_reader): Update.
8659
e3beb21d
SM
86602020-05-27 Simon Marchi <simon.marchi@efficios.com>
8661
8662 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
8663 object through m_this_cu->cu.
8664
d460f660
SM
86652020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8666
8667 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
8668 the info parameter.
8669 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
8670
ab432490
SM
86712020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8672
8673 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
8674 per_objfile parameter.
8675 (load_full_type_unit): Add per_objfile parameter.
8676 (read_signatured_type): Likewise.
8677 (load_full_comp_unit): Likewise.
8678 (load_cu): Likewise.
8679 (dw2_do_instantiate_symtab): Likewise.
8680 (dw2_get_file_names): Likewise.
8681 (dw2_map_symtabs_matching_filename): Update.
8682 (dw_expand_symtabs_matching_file_matcher): Update.
8683 (dw2_map_symbol_filenames): Update.
8684 (process_psymtab_comp_unit): Add per_objfile parameter.
8685 (build_type_psymtabs_1): Update.
8686 (process_skeletonless_type_unit): Update.
8687 (dwarf2_build_psymtabs_hard): Update.
8688 (load_partial_comp_unit): Add per_objfile parameter.
8689 (scan_partial_symbols): Update.
8690 (load_full_comp_unit): Add per_objfile parameter.
8691 (process_imported_unit_die): Update.
8692 (create_cus_hash_table): Update.
8693 (find_partial_die): Update.
8694 (dwarf2_read_addr_index): Update.
8695 (follow_die_offset): Update.
8696 (dwarf2_fetch_die_loc_sect_off): Update.
8697 (dwarf2_fetch_constant_bytes): Update.
8698 (dwarf2_fetch_die_type_sect_off): Update.
8699 (follow_die_sig_1): Update.
8700 (load_full_type_unit): Add per_objfile parameter.
8701 (read_signatured_type): Likewise.
8702
313bad1b
SM
87032020-05-27 Simon Marchi <simon.marchi@efficios.com>
8704
8705 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
8706 of objfile_name.
8707
c3699833
SM
87082020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8709
8710 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
8711 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
8712 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
8713 field.
8714 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
8715 (create_cus_from_index): Update.
8716 (dwarf2_read_gdb_index): Update.
8717 (create_cus_from_debug_names): Update.
8718 (dwarf2_read_debug_names): Update.
8719 (get_abbrev_section_for_cu): Update.
8720 (create_all_comp_units): Update.
8721 (read_attribute_value): Update.
8722 (get_debug_line_section): Update.
8723 * dwarf2/index-cache.c (index_cache::store): Update.
8724 * dwarf2/index-write.c (save_gdb_index_command): Update.
8725 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
8726
1859c670
SM
87272020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8728
8729 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
8730 member.
8731 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
8732 dwarf2_per_cu_data::per_bfd.
8733 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
8734 (create_type_unit_group): Likewise.
8735 (queue_comp_unit): Remove reference to
8736 per_cu->dwarf2_per_objfile.
8737 (maybe_queue_comp_unit): Likewise.
8738 (fill_in_sig_entry_from_dwo_entry): Assign new field.
8739 (create_cus_hash_table): Assign new field.
8740
5e22e966
SM
87412020-05-27 Simon Marchi <simon.marchi@efficios.com>
8742
8743 * dwarf2/read.c: Replace
8744 dwarf2_cu->per_cu->dwarf2_per_objfile references with
8745 dwarf2_cu->per_objfile throughout.
8746
97a1449a
SM
87472020-05-27 Simon Marchi <simon.marchi@efficios.com>
8748
8749 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
8750 parameter, don't use per_cu->dwarf2_per_objfile.
8751 (dw2_instantiate_symtab): Likewise.
8752 (dw2_find_last_source_symtab): Update.
8753 (dw2_map_expand_apply): Update.
8754 (dw2_lookup_symbol): Update.
8755 (dw2_expand_symtabs_for_function): Update.
8756 (dw2_expand_all_symtabs): Update.
8757 (dw2_expand_symtabs_with_fullname): Update.
8758 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
8759 don't use per_cu->dwarf2_per_objfile.
8760 (dw2_expand_marked_cus): Update.
8761 (dw2_find_pc_sect_compunit_symtab): Update.
8762 (dw2_debug_names_lookup_symbol): Update.
8763 (dw2_debug_names_expand_symtabs_for_function): Update.
8764 (dw2_debug_names_map_matching_symbols): Update.
8765 (dwarf2_psymtab::expand_psymtab): Update.
8766
9e021579
SM
87672020-05-27 Simon Marchi <simon.marchi@efficios.com>
8768
8769 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
8770 <per_objfile>: New member.
8771 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
8772 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
8773 call to dwarf2_cu.
8774 (cutu_reader::cutu_reader): Update.
8775 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
8776
ae090bdb
SM
87772020-05-27 Simon Marchi <simon.marchi@efficios.com>
8778
8779 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
8780 struct dwarf2_per_objfile.
8781 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
8782 dwarf2_per_bfd.
8783 * dwarf2/read.c (set_die_type): Update.
8784 (get_die_type_at_offset): Update.
8785
af758d11
SM
87862020-05-27 Tom Tromey <tom@tromey.com>
8787 Simon Marchi <simon.marchi@efficios.com>
8788
8789 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
8790 method.
8791 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
8792 get_symtab, set_symtab>: New methods.
8793 <m_symtabs>: New field.
8794 (struct dwarf2_psymtab): Derive from partial_symtab.
8795 <readin_p, get_compunit_symtab>: Declare methods.
8796 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
8797 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
8798 New methods.
8799 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
8800 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
8801 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
8802 (dw2_symtab_iter_next, dw2_print_stats)
8803 (dw2_expand_symtabs_with_fullname)
8804 (dw2_expand_symtabs_matching_one)
8805 (dw_expand_symtabs_matching_file_matcher)
8806 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
8807 (dw2_debug_names_iterator::next)
8808 (dw2_debug_names_map_matching_symbols)
8809 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
8810 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
8811 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
8812 New methods.
8813 (get_compunit_symtab, process_full_comp_unit)
8814 (process_full_type_unit): Update.
8815 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
8816
5989a64e
SM
88172020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8818
8819 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
8820 then introduce a new dwarf2_per_objfile type.
8821 <read_line_string>: Move to the new dwarf2_per_objfile type.
8822 <objfile>: Likewise.
8823 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
8824 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
8825 dwarf2_per_objfile->per_bfd.
8826 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
8827 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
8828 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
8829 (dwarf2_per_bfd::free_cached_comp_units): ... this.
8830 (dwarf2_has_info): Allocate dwarf2_per_bfd.
8831 (dwarf2_per_objfile::locate_sections): Rename to...
8832 (dwarf2_per_bfd::locate_sections): ... this.
8833 (dwarf2_per_objfile::get_cutu): Rename to...
8834 (dwarf2_per_bfd::get_cutu): ... this.
8835 (dwarf2_per_objfile::get_cu): Rename to...
8836 (dwarf2_per_bfd::get_cu): ... this.
8837 (dwarf2_per_objfile::get_tu): Rename to...
8838 (dwarf2_per_bfd::get_tu): ... this.
8839 (dwarf2_per_objfile::allocate_per_cu): Rename to...
8840 (dwarf2_per_bfd::allocate_per_cu): ... this.
8841 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
8842 (dwarf2_per_bfd::allocate_signatured_type): ... this.
8843 (get_gdb_index_contents_ftype): Change parameter from
8844 dwarf2_per_objfile to dwarf2_per_bfd.
8845 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
8846 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
8847
a50264ba
TT
88482020-05-27 Tom Tromey <tom@tromey.com>
8849 Simon Marchi <simon.marchi@efficios.com>
8850
8851 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
8852 (allocate_piece_closure): Set "per_objfile" member.
8853 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
8854 (locexpr_describe_location, loclist_describe_location): Use new
8855 member.
8856 * dwarf2/read.c (read_call_site_scope)
8857 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
8858 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
8859 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
8860 handle_data_member_location): Set per_objfile member.
8861 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
8862 member.
8863 (struct dwarf2_loclist_baton) <per_objfile>: New member.
8864
d3473f0c
TT
88652020-05-27 Tom Tromey <tom@tromey.com>
8866
8867 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
8868 allocate_signatured_type>: Declare new methods.
8869 <m_num_psymtabs>: New member.
8870 (struct dwarf2_per_cu_data) <index>: New member.
8871 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
8872 (dwarf2_per_objfile::allocate_signatured_type): New methods.
8873 (create_cu_from_index_list): Use allocate_per_cu.
8874 (create_signatured_type_table_from_index)
8875 (create_signatured_type_table_from_debug_names)
8876 (create_debug_type_hash_table, add_type_unit)
8877 (read_comp_units_from_section): Use allocate_signatured_type.
8878
5717c425
TT
88792020-05-27 Tom Tromey <tom@tromey.com>
8880
8881 * psymtab.c (partial_map_expand_apply)
8882 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
8883 (psym_lookup_global_symbol_language)
8884 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
8885 (psym_print_stats, psym_expand_symtabs_for_function)
8886 (psym_map_symbol_filenames, psym_map_matching_symbols)
8887 (psym_expand_symtabs_matching)
8888 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
8889 (maintenance_check_psymtabs): Update.
8890 * psympriv.h (struct partial_symtab) <readin_p,
8891 get_compunit_symtab>: Add objfile parameter.
8892 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
8893 Likewise.
8894 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
8895 get_compunit_symtab>: Likewise.
8896 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
8897
45940949
TT
88982020-05-27 Tom Tromey <tom@tromey.com>
8899
8900 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
8901 member.
8902 * dwarf2/read.c (delete_file_name_entry): Fix comment.
8903 (create_cu_from_index_list)
8904 (create_signatured_type_table_from_index)
8905 (create_signatured_type_table_from_debug_names)
8906 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
8907 (dwarf2_create_include_psymtab)
8908 (create_debug_type_hash_table, add_type_unit)
8909 (create_type_unit_group, read_comp_units_from_section)
8910 (dwarf2_compute_name, create_cus_hash_table)
8911 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
8912 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
8913 obstack.
8914 (dw2_get_real_path): Likewise. Change argument to
8915 dwarf2_per_objfile.
8916
f8c6d152
LM
89172020-05-27 Luis Machado <luis.machado@linaro.org>
8918
8919 PR tdep/26000
8920 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
8921 for ldrd (immediate).
8922
e98d2e6d
PW
89232020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8924
8925 * command.h: Add comment giving the name of class_tui.
8926 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
8927 create the fake command for the help for class_tui.
8928
53a47a3e
TT
89292020-05-26 Tom Tromey <tromey@adacore.com>
8930
8931 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
8932 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
8933 (val_atr): New function.
8934 (value_val_atr): Use it.
8935 * ada-valprint.c (print_optional_low_bound): Change low bound
8936 handling for enums.
8937 (val_print_packed_array_elements): Don't call discrete_position.
8938 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
8939 discrete_position for enum types.
8940 * language.c (default_print_array_index): Change type.
8941 * language.h (struct language_defn) <la_print_array_index>: Add
8942 index_type parameter, change type of index_value.
8943 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
8944 (default_print_array_index): Update.
8945 * valprint.c (maybe_print_array_index): Don't call
8946 value_from_longest. Update.
8947 (value_print_array_elements): Don't call discrete_position.
8948
0bc2354b
TT
89492020-05-26 Tom Tromey <tromey@adacore.com>
8950
8951 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
8952 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
8953
1218a4bf
CDA
89542020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
8955
8956 PR gdb/13519
8957 * avr-tdep.c (avr_integer_to_address): Return data or code
8958 address accordingly to the second 'type' argument of the
8959 function.
8960
92651b1d
MW
89612020-05-25 Michael Weghorn <m.weghorn@posteo.de>
8962
8963 * infcmd.c, inferior.h: (construct_inferior_arguments):
8964 Moved function from here to gdbsupport/common-inferior.{h,cc}
8965
0a4f5f8c
TT
89662020-05-23 Tom Tromey <tom@tromey.com>
8967
8968 Revert commit eca1f90c:
8969 * NEWS: Remove entry for completion styling.
8970 * completer.c (_rl_completion_prefix_display_length): Move
8971 declaration later.
8972 (gdb_fnprint): Revert.
8973 (gdb_display_match_list_1): Likewise.
8974 * cli/cli-style.c (completion_prefix_style)
8975 (completion_difference_style, completion_suffix_style): Remove.
8976 (_initialize_cli_style): Revert.
8977 * cli/cli-style.h (completion_prefix_style)
8978 (completion_difference_style, completion_suffix_style): Don't
8979 declare.
8980
e08bd6c5
PA
89812020-05-24 Pedro Alves <palves@redhat.com>
8982
8983 * symtab.c (completion_list_add_name): Return boolean indication
8984 of whether the symbol matched.
8985 (completion_list_add_symbol): Don't try to remove C++ aliases if
8986 the symbol didn't match in the first place.
8987 * symtab.h (completion_list_add_name): Return bool.
8988
ceacbf6e
SM
89892020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
8990
8991 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
8992 type::field.
8993
26f16254
JB
89942020-05-23 Joel Brobecker <brobecker@adacore.com>
8995
8996 GDB 9.2 released.
8997
eca1f90c
TT
89982020-05-23 Tom Tromey <tom@tromey.com>
8999
9000 * NEWS: Add entry for completion styling.
9001 * completer.c (_rl_completion_prefix_display_length): Move
9002 declaration earlier.
9003 (gdb_fnprint): Use completion_style.
9004 (gdb_display_match_list_1): Likewise.
9005 * cli/cli-style.c (completion_prefix_style)
9006 (completion_difference_style, completion_suffix_style): New
9007 globals.
9008 (_initialize_cli_style): Register new globals.
9009 * cli/cli-style.h (completion_prefix_style)
9010 (completion_difference_style, completion_suffix_style): Declare.
9011
51e2cfa2
PA
90122020-05-23 Pedro Alves <palves@redhat.com>
9013
9014 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
9015 (parse_escape): Use ISDIGIT instead of isdigit.
9016 (puts_debug): Use gdb_isprint instead of isprint.
9017 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
9018 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
9019 ISSPACE instead of isspace.
9020 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
9021 instead of isspace.
9022 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
9023 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
9024 instead of isxdigit and ISDIGIT instead of isdigit.
9025
80fc5e77
SM
90262020-05-22 Simon Marchi <simon.marchi@efficios.com>
9027
9028 * gdbtypes.h (struct type) <field>: New method.
9029 (TYPE_FIELDS): Remove, replace all uses with either type::fields
9030 or type::field.
9031
3cabb6b0
SM
90322020-05-22 Simon Marchi <simon.marchi@efficios.com>
9033
9034 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
9035 (TYPE_FIELDS): Use type::fields. Change all call sites that
9036 modify the propery to use type::set_fields instead.
9037
1f704f76
SM
90382020-05-22 Simon Marchi <simon.marchi@efficios.com>
9039
9040 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
9041 type::num_fields instead.
9042
5e33d5f4
SM
90432020-05-22 Simon Marchi <simon.marchi@efficios.com>
9044
9045 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
9046 methods.
9047 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
9048 that modify the number of fields to use type::set_num_fields
9049 instead.
9050
9392ebb3
TT
90512020-05-22 Tom Tromey <tromey@adacore.com>
9052
9053 * compile/compile-object-load.h (munmap_list_free): Don't
9054 declare.
9055
7c13f4e8
AB
90562020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
9057
9058 * annotate.c (annotate_source_line): Update return type, add call
9059 to update current symtab and line.
9060 * annotate.h (annotate_source_line): Update return type, and
9061 extend header comment.
9062 * source.c (info_line_command): Check annotation_level before
9063 calling annotate_source_line.
9064 * stack.c (print_frame_info): If calling annotate_source_line
9065 returns true, then don't print any other source line information.
9066
aa370940
SM
90672020-05-21 Simon Marchi <simon.marchi@efficios.com>
9068
9069 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
9070
84d53fa9
SM
90712020-05-21 Simon Marchi <simon.marchi@efficios.com>
9072
9073 * coffread.c (patch_type): Remove NULL check before xfree.
9074 * corefile.c (set_gnutarget): Likewise.
9075 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
9076 * exec.c (build_section_table): Likewise.
9077 * remote.c (remote_target::pass_signals): Likewise.
9078 * utils.c (n_spaces): Likewise.
9079 * cli/cli-script.c (document_command): Likewise.
9080 * i386-windows-tdep.c (core_process_module_section): Likewise.
9081 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
9082
9d428aae
SM
90832020-05-20 Simon Marchi <simon.marchi@efficios.com>
9084
9085 * symfile.c (reread_symbols): Clear objfile's section_offsets
9086 vector and section indices, re-compute them by calling
9087 sym_offsets.
9088
250106a7
TT
90892020-05-20 Tom Tromey <tromey@adacore.com>
9090
9091 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 9092 (desc_one_bound, desc_index_type): Compute field name.
250106a7 9093
9a0bacfb
TV
90942020-05-20 Tom de Vries <tdevries@suse.de>
9095
9096 PR symtab/25833
9097 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
9098
7b958a48
AM
90992020-05-20 Alan Modra <amodra@gmail.com>
9100
9101 PR 25993
9102 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
9103 bfd_set_filename.
9104 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
9105 passed to bfd_set_filename.
9106 * symfile-mem.c (add_vsyscall_page): Likewise for string
9107 passed to symbol_file_add_from_memory.
9108 (symbol_file_add_from_memory): Make name param a const char* and
9109 don't strdup.
9110
c7e97679
AM
91112020-05-20 Alan Modra <amodra@gmail.com>
9112
9113 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
9114 rather than accessing bfd->filename directly.
9115 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
9116 and use bfd_section_name.
9117 * dwarf2/frame.c (decode_frame_entry): Likewise.
9118 * exec.c (exec_set_section_address): Likewise.
9119 * solib-aix.c (solib_aix_bfd_open): Likewise.
9120 * stap-probe.c (get_stap_base_address): Likewise.
9121 * symfile.c (reread_symbols): Likewise.
9122
563c591b
TT
91232020-05-19 Tom Tromey <tromey@adacore.com>
9124
9125 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
9126
f408d82c
SM
91272020-05-19 Simon Marchi <simon.marchi@efficios.com>
9128
9129 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
9130
98c59b52
PA
91312020-05-19 Pedro Alves <palves@redhat.com>
9132
9133 * NEWS (set exec-file-mismatch): Adjust entry.
9134 * exec.c: Include "build-id.h".
9135 (validate_exec_file): Try to match build IDs instead of filenames.
9136 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
9137 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
9138 and pass down 'warn_if_slow'.
9139 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
9140 gdb_bfd_open_closure to pass it down.
9141 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
9142
4111f652
PA
91432020-05-19 Pedro Alves <palves@redhat.com>
9144
9145 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
9146 * target.c (target_fileio_open_1): Rename to target_fileio_open
9147 and make extern. Use bool.
9148 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
9149 (target_fileio_read_alloc_1): Adjust.
9150 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
9151 (target_fileio_open_warn_if_slow): Delete declaration.
9152
ad80db5b
PA
91532020-05-19 Pedro Alves <palves@redhat.com>
9154
9155 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
9156 Adjust all callers.
9157
1d6ce4d3
YS
91582020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
9159
9160 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
9161 whether disp is negative.
9162
9005fbbb
SM
91632020-05-19 Simon Marchi <simon.marchi@efficios.com>
9164
9165 * symfile.h (struct symfile_segment_data)
9166 <~symfile_segment_data>: Remove.
9167 <segment_info>: Change to std::vector.
9168 * symfile.c (default_symfile_segments): Update.
9169 * elfread.c (elf_symfile_segments): Update.
9170
68b888ff
SM
91712020-05-19 Simon Marchi <simon.marchi@efficios.com>
9172
9173 * symfile.h (struct symfile_segment_data) <struct segment>: New.
9174 <segments>: New.
9175 <segment_bases, segment_sizes>: Remove.
9176 * symfile.c (default_symfile_segments): Update.
9177 * elfread.c (elf_symfile_segments): Update.
9178 * remote.c (remote_target::get_offsets): Update.
9179 * solib-target.c (solib_target_relocate_section_addresses):
9180 Update.
9181
62982abd
SM
91822020-05-19 Simon Marchi <simon.marchi@efficios.com>
9183
9184 * symfile.h (struct symfile_segment_data): Initialize fields.
9185 <~symfile_segment_data>: Add.
9186 (symfile_segment_data_up): New.
9187 (struct sym_fns) <sym_segments>: Return a
9188 symfile_segment_data_up.
9189 (default_symfile_segments): Return a symfile_segment_data_up.
9190 (free_symfile_segment_data): Remove.
9191 (get_symfile_segment_data): Return a symfile_segment_data_up.
9192 * symfile.c (default_symfile_segments): Likewise.
9193 (get_symfile_segment_data): Likewise.
9194 (free_symfile_segment_data): Remove.
9195 (symfile_find_segment_sections): Update.
9196 * elfread.c (elf_symfile_segments): Return a
9197 symfile_segment_data_up.
9198 * remote.c (remote_target::get_offsets): Update.
9199 * solib-target.c (solib_target_relocate_section_addresses):
9200 Update.
9201 * symfile-debug.c (debug_sym_segments): Return a
9202 symfile_segment_data_up.
9203
7f204339
RO
92042020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9205
e52a0f1b
RO
9206 PR build/25981
9207 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
9208 Hardcode register numbers.
9209
7f204339
RO
9210 PR build/25981
9211 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
9212 procfs_find_LDT_entry): Remove.
9213 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
9214 procfs_find_LDT_entry): Remove.
9215 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
9216 Remove.
9217
7f32a4d5
PA
92182020-05-17 Pedro Alves <palves@redhat.com>
9219 Andrew Burgess <andrew.burgess@embecosm.com>
9220 Keno Fischer <keno@juliacomputing.com>
9221
9222 PR gdb/25741
9223 * breakpoint.c (build_target_condition_list): Update comments.
9224 (build_target_command_list): Update comments and skip matching
9225 locations.
9226 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
9227 a separate function. Simplify "set breakpoint auto-hw off"
9228 handling.
9229 (insert_breakpoints): Update comment.
9230 (tracepoint_locations_match): New parameter. For breakpoints,
9231 compare location types too, if the caller wants to.
9232 (handle_automatic_hardware_breakpoints): New functions.
9233 (bp_location_is_less_than): Also sort by location type and
9234 hardware breakpoint length.
9235 (update_global_location_list): Handle "set breakpoint auto-hw on"
9236 here.
9237 (update_breakpoint_locations): Ask breakpoint_locations_match to
9238 ignore location types.
9239
7d93a1e0
SM
92402020-05-16 Simon Marchi <simon.marchi@efficios.com>
9241
9242 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
9243 type::name instead.
9244
d0e39ea2
SM
92452020-05-16 Simon Marchi <simon.marchi@efficios.com>
9246
9247 * gdbtypes.h (struct type) <name, set_name>: New methods.
9248 (TYPE_CODE): Use type::name. Change all call sites used to set
9249 the name to use type::set_name instead.
9250
2dab0c7b
TT
92512020-05-16 Tom Tromey <tom@tromey.com>
9252
9253 * top.c (quit_force): Update.
9254 * infrun.c (handle_no_resumed): Update.
9255 * top.h (all_uis): New function.
9256 (ALL_UIS): Remove.
9257
59f7bd8d
SM
92582020-05-16 Simon Marchi <simon.marchi@efficios.com>
9259
9260 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
9261
9bf058f0
PA
92622020-05-16 Pedro Alves <palves@redhat.com>
9263
9264 * ia64-linux-nat.c
9265 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
9266 Declare method.
9267 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
9268
8f86ae1a
SM
92692020-05-15 Simon Marchi <simon.marchi@efficios.com>
9270
9271 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
9272 (sparc64_adi_info): Likewise.
9273
d6bc0792
TT
92742020-05-15 Tom Tromey <tom@tromey.com>
9275
9276 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
9277 block_objfile.
9278 (lookup_objfile_from_block): Remove.
9279 (lookup_symbol_in_block, lookup_symbol_in_static_block)
9280 (lookup_global_symbol): Use block_objfile.
9281 * symtab.h (lookup_objfile_from_block): Don't declare.
9282 * printcmd.c (clear_dangling_display_expressions): Use
9283 block_objfile.
9284 * parse.c (operator_check_standard): Use block_objfile.
9285
8c14c3a3
TT
92862020-05-15 Tom Tromey <tom@tromey.com>
9287
9288 * language.c (language_alloc_type_symbol): Set
9289 SYMBOL_SECTION.
9290 * symtab.c (initialize_objfile_symbol): Remove.
9291 (allocate_symbol): Remove.
9292 (allocate_template_symbol): Remove.
9293 * dwarf2/read.c (fixup_go_packaging): Use "new".
9294 (new_symbol): Use "new".
9295 (read_variable): Don't call initialize_objfile_symbol. Use
9296 "new".
9297 (read_func_scope): Use "new".
9298 * xcoffread.c (process_xcoff_symbol): Don't call
9299 initialize_objfile_symbol.
9300 (SYMBOL_DUP): Remove.
9301 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
9302 "new".
9303 * symtab.h (allocate_symbol, initialize_objfile_symbol)
9304 (allocate_template_symbol): Don't declare.
9305 (struct symbol): Add copy constructor. Change defaults.
9306 * jit.c (finalize_symtab): Use "new".
9307 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
9308 Use "new".
9309 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
9310 (common_block_end): Use "new".
9311 * mdebugread.c (parse_symbol): Use "new".
9312 (new_symbol): Likewise.
9313
5b4a1a8d
PW
93142020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9315
9316 * NEWS: Mention changes to help and apropos.
9317
57b4f16e
PW
93182020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9319
9320 * command.h (enum command_class): Improve comments, document
9321 that class_alias is for user-defined aliases, give the class
9322 name for each class, remove unused class_xdb.
9323 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
9324 * breakpoint.c (_initialize_breakpoint): Replace class_alias
9325 by a precise class.
9326 * infcmd.c (_initialize_infcmd): Likewise.
9327 * reverse.c (_initialize_reverse): Likewise.
9328 * stack.c (_initialize_stack): Likewise.
9329 * symfile.c (_initialize_symfile): Likewise.
9330 * tracepoint.c (_initialize_tracepoint): Likewise.
9331
7c05caf7
PW
93322020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9333
9334 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
9335 when their aliased command is traversed.
9336 (help_cmd): Add fput_command_names_styled call to
9337 output command name and aliases when command has an alias.
9338
3b3aaacb
PW
93392020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9340
9341 * cli/cli-decode.h (help_cmd_list): Remove declaration.
9342 * cli/cli-decode.c (help_cmd_list): Declare as static,
9343 remove prefix argument, use bool for recurse arg, rework to show the aliases of
9344 a command together with the command.
9345 (fput_command_name_styled, fput_command_names_styled): New functions.
9346 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
9347 fput_command_name_styled.
9348 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
9349 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
9350
7aa1b46f
PW
93512020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9352
9353 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
9354 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
9355 * command.h (cmd_show_list): Likewise.
9356 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
9357 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
9358
89bcba74
PW
93592020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9360
9361 * unittests/command-def-selftests.c (traverse_command_structure):
9362 Verify all commands of a list have the same prefix command and
9363 that only the top cmdlist commands have a null prefix.
9364
3f4d92eb
PW
93652020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9366
9367 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
9368 as prefix, not one of its aliases.
9369 (set_cmd_prefix): Remove.
9370 (do_add_cmd): Centralize the setting of the prefix of a command, when
9371 command is defined after its full chain of prefix commands.
9372 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
9373 (add_setshow_cmd_full): Likewise.
9374 (update_prefix_field_of_prefixed_commands): New function.
9375 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
9376 update_prefix_field_of_prefixed_commands.
9377 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
9378 addresses of remote_set_cmdlist and remote_show_cmdlist given
9379 as argument, not the address of an argument.
9380 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
9381 * gdb/remote.c (_initialize_remote): Likewise.
9382
0605465f
PW
93832020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9384
9385 * cli/cli-cmds.c (alias_command): Check for an existing alias
9386 using lookup_cmd_composition, as valid_command_p is too strict
9387 and forbids aliases that are the prefix of an existing alias
9388 or command.
9389 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
9390 command is properly recognised as a valid command.
9391
58e6ac70
PW
93922020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9393
9394 * unittests/help-doc-selftests.c: Rename to
9395 unittests/command-def-selftests.c
9396 * unittests/command-def-selftests.c (help_doc_tests): Update some
9397 comments.
9398 (command_structure_tests, traverse_command_structure): New namespace
9399 and function.
9400 (command_structure_invariants_tests): New function.
9401 (_initialize_command_def_selftests) Renamed from
9402 _initialize_help_doc_selftests, register command_structure_invariants
9403 selftest.
9404
a7b9ceb8
PW
94052020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9406
9407 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
9408 an alias of 'show'.
9409
b2188a06
JB
94102020-05-15 Joel Brobecker <brobecker@adacore.com>
9411
9412 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
9413 ada_is_fixed_point_type. Update all callers.
9414 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
9415 all callers.
9416 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
9417 Update all callers.
9418 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
9419 print_fixed_point_type. Update all callers.
9420 * ada-valprint.c (ada_value_print_num): Replace call to
9421 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
9422
a51951c2
KB
94232020-05-14 Kevin Buettner <kevinb@redhat.com>
9424
9425 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
9426 processors.
9427 (cpu_supports_bts): Add CV_AMD case.
9428
29d6859f
LM
94292020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
9430 Simon Marchi <simon.marchi@efficios.com>
9431
9432 * infrun.c (stop_all_threads): Collect multiple wait events at
9433 each pass.
9434
78134374
SM
94352020-05-14 Simon Marchi <simon.marchi@efficios.com>
9436
9437 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
9438 type::code instead.
9439
67607e24
SM
94402020-05-14 Simon Marchi <simon.marchi@efficios.com>
9441
9442 * gdbtypes.h (struct type) <code, set_code>: New methods.
9443 (TYPE_CODE): Use type::code. Change all call sites used to set
9444 the code to use type::set_code instead.
9445
a05575d3
TBA
94462020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9447 Tom de Vries <tdevries@suse.de>
9448 Pedro Alves <palves@redhat.com>
9449
9450 PR threads/25478
9451 * infrun.c (stop_all_threads): Do NOT ignore
9452 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
9453 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
9454 received.
9455 (handle_no_resumed): Remove code handling a live inferior with no
9456 threads.
9457 * remote.c (has_single_non_exited_thread): New.
9458 (remote_target::update_thread_list): Do not delete a thread if is
9459 the last thread of the process.
9460 * thread.c (thread_select): Call delete_exited_threads instead of
9461 prune_threads.
9462
6ad82919
TBA
94632020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9464
9465 * infrun.c (stop_all_threads): Enable/disable thread events of all
9466 targets. Move a debug message denoting the end of the function
9467 into the SCOPED_EXIT block.
9468
d890404b
TBA
94692020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9470
9471 * process-stratum-target.h: Include <set>.
9472 (all_non_exited_process_targets, switch_to_target_no_thread): New
9473 function declarations.
9474 * process-stratum-target.c (all_non_exited_process_targets)
9475 (switch_to_target_no_thread): New function implementations.
9476
293b3ebc
TBA
94772020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9478
9479 * infrun.c (handle_inferior_event): Extract out a piece of code
9480 into...
9481 (mark_non_executing_threads): ...this new function.
9482
7ca9b62a
TBA
94832020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9484
9485 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
9486 use.
9487
fc75c28b
TBA
94882020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9489
9490 * regcache.c (regcache_read_pc_protected): New function
9491 implementation that returns 0 if the PC cannot read via
9492 'regcache_read_pc'.
9493 * infrun.c (proceed): Call 'regcache_read_pc_protected'
9494 instead of 'regcache_read_pc'.
9495 (keep_going_pass_signal): Ditto.
9496
a89febbd
TT
94972020-05-13 Tom Tromey <tromey@adacore.com>
9498
9499 * ada-lang.c (align_value): Remove.
9500 (ada_template_to_fixed_record_type_1): Use align_up.
9501
f7e23710
TBA
95022020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9503
9504 * async-event.c: Update the copyright year.
9505 * async-event.h: Update the copyright year.
9506
02ff80c2
SM
95072020-05-12 Simon Marchi <simon.marchi@efficios.com>
9508
9509 * objfiles.h (is_addr_in_objfile,
9510 shared_objfile_contains_address_p): Return bool.
9511 * objfile.c (is_addr_in_objfile,
9512 shared_objfile_contains_address_p): Return bool.
9513
4fd6c7e8
TT
95142020-05-11 Tom Tromey <tromey@adacore.com>
9515
9516 * cli/cli-cmds.c (info_command): Restore.
9517 (_initialize_cli_cmds): Use add_prefix_command for "info".
9518 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
9519
5eb68a39
TT
95202020-05-11 Tom Tromey <tromey@adacore.com>
9521
9522 * ada-lang.c (ada_value_primitive_field): Now public.
9523 * ada-lang.h (ada_value_primitive_field): Declare.
9524 * ada-valprint.c (print_field_values): Use
9525 ada_value_primitive_field for wrapper fields.
9526
7666722f
TV
95272020-05-11 Tom de Vries <tdevries@suse.de>
9528
9529 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
9530 MODULE_DOMAIN.
9531
3ee6bb11
TV
95322020-05-11 Tom de Vries <tdevries@suse.de>
9533
9534 PR symtab/25941
9535 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
9536 with length 0, if not gdb-produced.
9537 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
9538
43434996
TV
95392020-05-09 Tom de Vries <tdevries@suse.de>
9540
9541 PR gdb/25955
9542 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
9543 calculation.
9544
2f78cffc
TT
95452020-05-09 Tom Tromey <tom@tromey.com>
9546
9547 * top.c (server_command): Now bool.
9548 * top.h (server_command): Now bool.
9549
4f7bc5ed
TT
95502020-05-08 Tom Tromey <tromey@adacore.com>
9551
9552 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
9553 already being processed.
9554
8be4b118
TT
95552020-05-08 Tom Tromey <tom@tromey.com>
9556
9557 * printcmd.c (struct display) <next>: Remove.
9558 <display>: New constructor.
9559 <exp_string>: Now a std::string.
9560 <enabled_p>: Now a bool.
9561 (display_number): Move definition earlier.
9562 (displays): Rename from display_chain. Now a std::vector.
9563 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
9564 (display_command): Update.
9565 (do_one_display, disable_display)
9566 (enable_disable_display_command, do_enable_disable_display):
9567 Update.
9568 (free_display): Remove.
9569 (clear_displays): Rewrite.
9570 (delete_display): Update.
9571 (map_display_numbers): Use function_view. Remove "data"
9572 parameter. Update.
9573 (do_delete_display): Remove.
9574 (undisplay_command): Update.
9575 (do_one_display, do_displays, disable_display)
9576 (info_display_command): Update.
9577 (do_enable_disable_display): Remove.
9578 (enable_disable_display_command)
9579 (clear_dangling_display_expressions): Update.
9580
94c93c35
TT
95812020-05-08 Tom Tromey <tom@tromey.com>
9582
9583 * symtab.c (set_symbol_cache_size)
9584 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
9585 (maintenance_print_symbol_cache_statistics): Update.
9586 * symmisc.c (print_symbol_bcache_statistics)
9587 (print_objfile_statistics, maintenance_print_objfiles)
9588 (maintenance_info_symtabs, maintenance_check_symtabs)
9589 (maintenance_expand_symtabs, maintenance_info_line_tables):
9590 Update.
9591 * symfile-debug.c (set_debug_symfile): Update.
9592 * source.c (forget_cached_source_info): Update.
9593 * python/python.c (gdbpy_progspaces): Update.
9594 * psymtab.c (maintenance_info_psymtabs): Update.
9595 * probe.c (parse_probes): Update.
9596 * linespec.c (iterate_over_all_matching_symtabs)
9597 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
9598 * guile/scm-progspace.c (gdbscm_progspaces): Update.
9599 * exec.c (exec_target::close): Update.
9600 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
9601 * breakpoint.c (print_one_breakpoint_location)
9602 (create_longjmp_master_breakpoint)
9603 (create_std_terminate_master_breakpoint): Update.
9604 * progspace.c (program_spaces): Now a std::vector.
9605 (maybe_new_address_space): Update.
9606 (add_program_space): Remove.
9607 (program_space::program_space): Update.
9608 (remove_program_space): Update.
9609 (number_of_program_spaces): Remove.
9610 (print_program_space, update_address_spaces): Update.
9611 * progspace.h (program_spaces): Change type.
9612 (ALL_PSPACES): Remove.
9613 (number_of_program_spaces): Don't declare.
9614 (struct program_space) <next>: Remove.
9615
a1fd1ac9
TT
96162020-05-08 Tom Tromey <tom@tromey.com>
9617
9618 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
9619 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
9620 (enable_break): Update.
9621 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
9622 (frv_fdpic_find_canonical_descriptor): Update.
9623 (frv_fetch_objfile_link_map): Update.
9624 * progspace.c (program_space::free_all_objfiles): Update.
9625 (program_space::solibs): New method.
9626 * progspace.h (struct program_space) <solibs>: New method.
9627 * solist.h (master_so_list): Don't declare.
9628 (ALL_SO_LIBS): Remove.
9629 * solib.h (so_list_head): Remove.
9630 (update_solib_list): Update comment.
9631 * solib.c (master_so_list): Remove.
9632 (solib_used, update_solib_list, solib_add)
9633 (info_sharedlibrary_command, clear_solib)
9634 (reload_shared_libraries_1, remove_user_added_objfile): Update.
9635
38eae084
TT
96362020-05-08 Tom Tromey <tom@tromey.com>
9637
9638 * extension.c (extension_languages): Now a std::array.
9639 (ALL_EXTENSION_LANGUAGES): Remove.
9640 (get_ext_lang_defn, get_ext_lang_of_file)
9641 (eval_ext_lang_from_control_command): Update.
9642 (finish_ext_lang_initialization)
9643 (auto_load_ext_lang_scripts_for_objfile)
9644 (ext_lang_type_printers::ext_lang_type_printers)
9645 (apply_ext_lang_type_printers)
9646 (ext_lang_type_printers::~ext_lang_type_printers)
9647 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
9648 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
9649 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
9650 (get_matching_xmethod_workers, ext_lang_colorize)
9651 (ext_lang_before_prompt): Update.
9652 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
9653
596dc4ad
TT
96542020-05-08 Tom Tromey <tom@tromey.com>
9655
9656 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
9657 overload.
9658 <swap_string, m_string>: Remove.
9659 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
9660 Update.
9661 * stabsread.c (define_symbol, read_type): Update.
9662 * linespec.c (find_linespec_symbols): Update.
9663 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
9664 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
9665 * dbxread.c (read_dbx_symtab): Update.
9666 * cp-support.h (cp_canonicalize_string_full)
9667 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
9668 Return unique_xmalloc_ptr.
9669 * cp-support.c (inspect_type): Update.
9670 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
9671 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
9672 Likewise.
9673 * c-typeprint.c (print_name_maybe_canonical): Update.
9674 * break-catch-throw.c (check_status_exception_catchpoint):
9675 Update.
9676
bf4cb9be
TV
96772020-05-08 Tom de Vries <tdevries@suse.de>
9678
9679 * infrun.c (follow_fork): Copy current_line and current_symtab to
9680 child thread.
9681
a1b68f28
SM
96822020-05-07 Simon Marchi <simon.marchi@efficios.com>
9683
9684 * async-event.c (struct async_signal_handler, struct
9685 async_event_handler): Reformat, remove typedef.
9686
98d48915
SM
96872020-05-07 Simon Marchi <simon.marchi@efficios.com>
9688
9689 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
9690 access thistype->main_type->dyn_prop_list directly.
9691
7aa91313
SM
96922020-05-07 Simon Marchi <simon.marchi@efficios.com>
9693
9694 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
9695 (remove_dyn_prop): Remove. Update all users to use
9696 type::remove_dyn_prop.
9697 * gdbtypes.c (remove_dyn_prop): Rename to...
9698 (type::remove_dyn_prop): ... this.
9699
5c54719c
SM
97002020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
9701
9702 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
9703 (add_dyn_prop): Remove. Update all users to use
9704 type::add_dyn_prop.
9705 * gdbtypes.c (add_dyn_prop): Rename to...
9706 (type::add_dyn_prop): ... this.
9707
24e99c6c
SM
97082020-05-07 Simon Marchi <simon.marchi@efficios.com>
9709
9710 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
9711 (get_dyn_prop): Remove. Update all users to use
9712 type::dyn_prop.
9713 * gdbtypes.c (get_dyn_prop): Rename to...
9714 (type::dyn_prop): ... this.
9715
0d4bf016
SM
97162020-05-06 Simon Marchi <simon.marchi@efficios.com>
9717
9718 * gdbtypes.h (struct main_type) <flag_static>: Remove.
9719
ac4a4f1c
SM
97202020-05-06 Simon Marchi <simon.marchi@efficios.com>
9721
9722 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
9723 instruction, skip it if it's there.
9724
a3bbacc1
SM
97252020-05-05 Simon Marchi <simon.marchi@efficios.com>
9726
9727 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
9728
c3236f84
SM
97292020-05-04 Simon Marchi <simon.marchi@efficios.com>
9730
9731 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
9732 * gdbtypes.c (recursive_dump_type): Remove use of
9733 TYPE_INCOMPLETE.
9734
3b6acaee
TT
97352020-05-03 Tom Tromey <tom@tromey.com>
9736
9737 * breakpoint.c (catch_command, tcatch_command): Remove.
9738 (_initialize_breakpoint): Use add_basic_prefix_cmd,
9739 add_show_prefix_cmd.
9740 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
9741 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
9742 Remove.
9743 (add_internal_problem_command): Use add_basic_prefix_cmd,
9744 add_show_prefix_cmd.
9745 * mips-tdep.c (set_mipsfpu_command): Remove.
9746 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
9747 * dwarf2/index-cache.c (set_index_cache_command): Remove.
9748 (_initialize_index_cache): Use add_basic_prefix_cmd.
9749 * memattr.c (dummy_cmd): Remove.
9750 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
9751 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
9752 (_initialize_tui_win): Use add_basic_prefix_cmd,
9753 add_show_prefix_cmd.
9754 * cli/cli-logging.c (set_logging_command): Remove.
9755 (_initialize_cli_logging): Use add_basic_prefix_cmd,
9756 add_show_prefix_cmd.
9757 (show_logging_command): Remove.
9758 * target.c (target_command): Remove.
9759 (add_target): Use add_basic_prefix_cmd.
9760
a51119cd
HD
97612020-05-02 Hannes Domani <ssbssa@yahoo.de>
9762
9763 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
9764
652fc23a 97652020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 9766
652fc23a
PW
9767 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
9768 info_command.
9769
117539e6
KR
97702020-04-30 Kamil Rytarowski <n54@gmx.com>
9771
9772 * nbsd-nat.c (nbsd_enable_proc_events)
9773 (nbsd_nat_target::post_startup_inferior): Add.
9774 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
9775 (nbsd_nat_target::update_thread_list): Rewrite.
9776 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
9777 "PTRACE_LWP_CREATE".
9778 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
9779
102e38eb 97802020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 9781
102e38eb
PW
9782 * stack.c (_initialize_stack): Remove duplicated creation
9783 of "frame" command and "f" alias.
9784
ee9d1e5f
HD
97852020-04-30 Hannes Domani <ssbssa@yahoo.de>
9786
9787 PR gdb/18706
9788 * gdbtypes.c (check_typedef): Calculate size of array of
9789 stubbed type.
9790
627c7fb8
HD
97912020-04-30 Hannes Domani <ssbssa@yahoo.de>
9792
9793 PR gdb/15559
9794 * i386-tdep.c (i386_push_dummy_call): Call
9795 i386_thiscall_push_dummy_call.
9796 (i386_thiscall_push_dummy_call): New function.
9797 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
9798 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
9799 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
9800
ffc2844e
SM
98012020-04-29 Simon Marchi <simon.marchi@efficios.com>
9802
9803 * gdbarch.sh (do_read): Add shellcheck disable directive for
9804 warning SC2162.
9805
1207375d
SM
98062020-04-29 Simon Marchi <simon.marchi@efficios.com>
9807
9808 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
9809 "referenced but not assigned" warning.
9810
9fdb2916
SM
98112020-04-29 Simon Marchi <simon.marchi@efficios.com>
9812
9813 * gdbarch.sh: Remove code that sets fallbackdefault.
9814
759cea5e
SM
98152020-04-29 Simon Marchi <simon.marchi@efficios.com>
9816
9817 * gdbarch.sh: Use shell operators && and || instead of
9818 -a and -o.
9819
cb02ab24
SM
98202020-04-29 Simon Marchi <simon.marchi@efficios.com>
9821
9822 * gdbarch.sh: Use $(...) instead of `...`.
9823
a6fc5ffc
SM
98242020-04-29 Simon Marchi <simon.marchi@efficios.com>
9825
9826 * gdbarch.sh: Use double quotes around variables.
9827
8d113d13
SM
98282020-04-29 Simon Marchi <simon.marchi@efficios.com>
9829
9830 * gdbarch.sh: Use %s with printf, instead of variables in the
9831 format string.
9832
ed6acedd
TT
98332020-04-29 Tom Tromey <tromey@adacore.com>
9834
9835 PR ada/25875:
9836 * dwarf2/read.c (update_enumeration_type_from_children): Compute
9837 type fields here.
9838 (read_enumeration_type): Call
9839 update_enumeration_type_from_children later. Update comments.
9840 (process_enumeration_scope): Don't create type fields.
9841
b68b1b58
KR
98422020-04-29 Kamil Rytarowski <n54@gmx.com>
9843
9844 * nbsd-tdep.c: Include "xml-syscall.h".
9845 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
9846
f94b2e03
KR
98472020-04-29 Kamil Rytarowski <n54@gmx.com>
9848
9849 * nbsd-nat.c: Include "sys/wait.h".
9850 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
9851 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
9852 (nbsd_nat_target::remove_exec_catchpoint)
9853 (nbsd_nat_target::set_syscall_catchpoint): Add.
9854 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
9855 (nbsd_nat_target::insert_exec_catchpoint)
9856 (nbsd_nat_target::remove_exec_catchpoint)
9857 (nbsd_nat_target::set_syscall_catchpoint): Add.
9858 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
9859 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
9860 `nbsd_get_syscall_number'.
9861
fc49bc72
TT
98622020-04-29 Tom Tromey <tom@tromey.com>
9863
9864 * stack.c (print_block_frame_labels): Remove.
9865
d642b692
HD
98662020-04-29 Hannes Domani <ssbssa@yahoo.de>
9867
9868 PR gdb/17320
9869 * ada-valprint.c (val_print_packed_array_elements): Move array
9870 end bracket to new line.
9871 (ada_val_print_string): Remove extra spaces before first array
9872 element.
9873 * c-valprint.c (c_value_print_array): Likewise.
9874 * m2-valprint.c (m2_print_array_contents): Likewise.
9875 (m2_value_print_inner): Likewise.
9876 * p-valprint.c (pascal_value_print_inner): Likewise.
9877 * valprint.c (generic_val_print_array): Likewise.
9878 (value_print_array_elements): Move first array element and array
9879 end bracket to new line.
9880
ea90f227
TV
98812020-04-29 Tom de Vries <tdevries@suse.de>
9882
9883 PR symtab/25889
9884 * linespec.c (find_method): Fix ix calculation.
9885
4498ef4f
KR
98862020-04-28 Kamil Rytarowski <n54@gmx.com>
9887
9888 * syscalls/update-netbsd.sh: New file.
9889 * syscalls/netbsd.xml: Regenerate.
9890 * data-directory/Makefile.in: Register `netbsd.xml' in
9891 `SYSCALLS_FILES'.
9892
a55e30b5
SM
98932020-04-28 Simon Marchi <simon.marchi@efficios.com>
9894
9895 * syscalls/update-freebsd.sh: Add double quotes.
9896
2b2fbab8
TT
98972020-04-28 Tom Tromey <tom@tromey.com>
9898
9899 * NEWS: Update.
9900 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
9901 (cmdpy_init): Allow class_tui.
9902
a65189c9
TV
99032020-04-28 Mark Williams <mark@myosotissp.com>
9904
9905 PR gdb/24480
9906 * dwarf2read.c: Add missing assingments to list_in_scope when
9907 start_symtab was already called.
9908
1b95cdb7
SM
99092020-04-28 Simon Marchi <simon.marchi@efficios.com>
9910
9911 PR gdb/25881
9912 * dwarf2/read.c (offset_map_type): Use
9913 gdb:hash_enum<sect_offset> as hash function.
9914
15cd93d0
TV
99152020-04-28 Tom de Vries <tdevries@suse.de>
9916
9917 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
9918 with DW_AT_signature.
9919
1eb39914
SM
99202020-04-27 Simon Marchi <simon.marchi@efficios.com>
9921
9922 * configure.ac: Remove check for fs_base/gs_base in
9923 user_regs_struct.
9924 * configure: Re-generate.
9925 * config.in: Re-generate.
9926 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
9927 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
9928 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
9929
991a3e2e
LM
99302020-04-27 Luis Machado <luis.machado@linaro.org>
9931
9932 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
9933 problematic inline frame unwinding situation.
9934 * frame.c (frame_id_computed_p): New function.
9935 * frame.h (frame_id_computed_p): New prototype.
9936
361ba0e8
TT
99372020-04-26 Tom Tromey <tom@tromey.com>
9938
9939 * command.h (enum command_class) <class_pseudo>: Remove.
9940
bc3609fd
PW
99412020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9942
9943 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
9944 and whitespace.
9945
b9771db7
KR
99462020-04-25 Kamil Rytarowski <n54@gmx.com>
9947
ec16513e
SM
9948 * inf-ptrace.c (inf_ptrace_target::wait): Remove
9949 `PT_GET_PROCESS_STATE' block.
b9771db7 9950
7151c1af
TT
99512020-04-24 Tom Tromey <tom@tromey.com>
9952
9953 * symtab.h (symbol_get_demangled_name): Don't declare.
9954 * symtab.c (symbol_get_demangled_name): Remove.
9955 (general_symbol_info::natural_name)
9956 (general_symbol_info::demangled_name): Update.
9957
906bb4c5
TT
99582020-04-24 Tom Tromey <tom@tromey.com>
9959
9960 PR rust/25025:
9961 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
9962
bcfe6157
TT
99632020-04-24 Tom Tromey <tom@tromey.com>
9964
9965 PR symtab/12707:
9966 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
9967 exists.
9968 (new_symbol): Likewise.
9969 * compile/compile-object-load.c (get_out_value_type): Use
9970 symbol_matches_search_name.
9971
f049a313
TT
99722020-04-24 Tom Tromey <tom@tromey.com>
9973
9974 * dwarf2/read.c (add_partial_symbol): Do not call
9975 compute_and_set_names.
9976
76e288d1
TT
99772020-04-24 Tom Tromey <tom@tromey.com>
9978
9979 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
9980 overload.
9981
2467f4f6
TT
99822020-04-24 Tom Tromey <tom@tromey.com>
9983
9984 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
9985 (add_psymbol_to_list): New overload. Make old overload call new
9986 one.
9987 * psympriv.h (add_psymbol_to_list): New overload.
9988
e61108c9
TT
99892020-04-24 Tom Tromey <tom@tromey.com>
9990
9991 * dwarf2/read.c (partial_die_info::read) <case
9992 DW_AT_linkage_name>: Use value_as_string.
9993 (dwarf2_string_attr): Use value_as_string.
9994 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
9995 method.
9996 * dwarf2/attribute.c (attribute::value_as_string): New method.
9997
8c87a452
TT
99982020-04-24 Tom Tromey <tom@tromey.com>
9999
10000 * symtab.c (general_symbol_info::natural_name)
10001 (general_symbol_info::demangled_name): Check for language_rust.
10002
787de330
TT
100032020-04-24 Tom Tromey <tom@tromey.com>
10004
10005 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
10006 (dwarf2_physname): ... from here.
10007 (partial_die_info::read): Add Rust "{" hack.
10008
ff985671
TT
100092020-04-24 Tom Tromey <tom@tromey.com>
10010
10011 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
10012 method.
10013 (symbol_set_demangled_name): Don't declare.
10014 * symtab.c (general_symbol_info::set_demangled_name): Rename from
10015 symbol_set_demangled_name.
10016 (general_symbol_info::set_language)
10017 (general_symbol_info::compute_and_set_names): Update.
10018 * minsyms.c (minimal_symbol_reader::install): Update.
10019 * dwarf2/read.c (new_symbol): Update.
10020
1acda803
TT
100212020-04-24 Tom Tromey <tromey@adacore.com>
10022
10023 PR python/23662:
10024 * python/py-type.c (convert_field): Handle
10025 FIELD_LOC_KIND_DWARF_BLOCK.
10026 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
10027 (typy_get_dynamic): Nw function.
10028 (type_object_getset): Add "dynamic".
10029 * NEWS: Add entry.
10030
d656f129
TT
100312020-04-24 Tom Tromey <tromey@adacore.com>
10032
10033 * ada-typeprint.c (print_choices, print_variant_part)
10034 (print_record_field_types_dynamic): New functions.
10035 (print_record_field_types): Use print_record_field_types_dynamic.
10036
7d79de9a
TT
100372020-04-24 Tom Tromey <tromey@adacore.com>
10038
10039 * dwarf2/read.c (handle_data_member_location): New overload.
10040 (dwarf2_add_field): Use it.
10041 (decode_locdesc): Add "computed" parameter. Update comment.
10042 * gdbtypes.c (is_dynamic_type_internal): Also look for
10043 FIELD_LOC_KIND_DWARF_BLOCK.
10044 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
10045 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
10046 virtual base classes.
10047 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
10048 FIELD_LOC_KIND_DWARF_BLOCK.
10049
f8e89861
TT
100502020-04-24 Tom Tromey <tromey@adacore.com>
10051
10052 * dwarf2/read.c (read_structure_type): Handle dynamic length.
10053 * gdbtypes.c (is_dynamic_type_internal): Check
10054 TYPE_HAS_DYNAMIC_LENGTH.
10055 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
10056 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
10057 New macros.
10058 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
10059 constant.
10060
9c6a1327
TT
100612020-04-24 Tom Tromey <tromey@adacore.com>
10062
10063 * dwarf2/read.c (struct variant_field): Rewrite.
10064 (struct variant_part_builder): New.
10065 (struct nextfield): Remove "variant" field. Add "offset".
10066 (struct field_info): Add "current_variant_part" and
10067 "variant_parts".
10068 (alloc_discriminant_info): Remove.
10069 (alloc_rust_variant): New function.
10070 (quirk_rust_enum): Update.
10071 (dwarf2_add_field): Set "offset" member. Don't handle
10072 DW_TAG_variant_part.
10073 (offset_map_type): New typedef.
10074 (convert_variant_range, create_one_variant)
10075 (create_one_variant_part, create_variant_parts)
10076 (add_variant_property): New functions.
10077 (dwarf2_attach_fields_to_type): Call add_variant_property.
10078 (read_structure_type): Don't handle DW_TAG_variant_part.
10079 (handle_variant_part, handle_variant): New functions.
10080 (handle_struct_member_die): Use them.
10081 (process_structure_scope): Don't handle variant parts.
10082 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
10083 (struct discriminant_info): Remove.
10084 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
10085 (struct main_type) <flag_discriminated_union>: Remove.
10086 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
10087 (rust_enum_variant): Return int. Remove "contents". Rewrite.
10088 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
10089 Update.
10090 * valops.c (value_union_variant): Remove.
10091 * value.h (value_union_variant): Don't declare.
10092
b249d2c2
TT
100932020-04-24 Tom Tromey <tromey@adacore.com>
10094
10095 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
10096 (ada_value_primitive_packed_val): Update.
10097 * ada-valprint.c (ada_value_print_1): Update.
10098 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
10099 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
10100 just an address. Use evaluate_for_locexpr_baton.
10101 (dwarf2_evaluate_property): Update.
10102 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
10103 array_view.
10104 * findvar.c (default_read_var_value): Update.
10105 * gdbtypes.c (compute_variant_fields_inner)
10106 (resolve_dynamic_type_internal): Update.
10107 (resolve_dynamic_type): Change type of valaddr parameter.
10108 * gdbtypes.h (resolve_dynamic_type): Update.
10109 * valarith.c (value_subscripted_rvalue): Update.
10110 * value.c (value_from_contents_and_address): Update.
10111
61122aa9
TT
101122020-04-24 Tom Tromey <tromey@adacore.com>
10113
10114 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
10115 "push_initial_value" parameter.
10116 (dwarf2_evaluate_property): Likewise.
10117 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
10118
ef83a141
TT
101192020-04-24 Tom Tromey <tromey@adacore.com>
10120
10121 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
10122 (variant::matches, compute_variant_fields_recurse)
10123 (compute_variant_fields_inner, compute_variant_fields): New
10124 functions.
10125 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
10126 Use resolved_type after type is made.
10127 (operator==): Add new cases.
10128 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
10129 (struct discriminant_range, struct variant, struct variant_part):
10130 New.
10131 (union dynamic_prop_data) <variant_parts, original_type>: New
10132 members.
10133 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
10134 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
10135 constants.
10136 * value.c (unpack_bits_as_long): Now public.
10137 * value.h (unpack_bits_as_long): Declare.
10138
675127ec
TT
101392020-04-24 Tom Tromey <tromey@adacore.com>
10140
10141 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
10142 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
10143
9852ceef
HD
101442020-04-24 Hannes Domani <ssbssa@yahoo.de>
10145
10146 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
10147
7632c6ce
KR
101482020-04-24 Kamil Rytarowski <n54@gmx.com>
10149
10150 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
10151 (remove_fork_catchpoint, post_startup_inferior)
10152 (post_attach): Move...
10153 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
10154 (remove_fork_catchpoint, post_startup_inferior)
10155 (post_attach): ...here.
10156 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
10157 (remove_fork_catchpoint, post_startup_inferior)
10158 (post_attach): Move...
10159 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
10160 (remove_fork_catchpoint, post_startup_inferior)
10161 (post_attach): ...here.
10162
7be2bb4f
TT
101632020-04-24 Tom Tromey <tromey@adacore.com>
10164
10165 * nat/windows-nat.h (struct windows_thread_info)
10166 <pc_adjusted>: New member.
10167 * windows-nat.c (windows_fetch_one_register): Check
10168 pc_adjusted.
10169 (windows_nat_target::get_windows_debug_event)
10170 (windows_nat_target::wait): Set pc_adjusted.
10171
f80cb3b4
TV
101722020-04-24 Tom de Vries <tdevries@suse.de>
10173
10174 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
10175 Run gdb-add-index inside temp dir.
10176
29514b87
TT
101772020-04-23 Tom Tromey <tromey@adacore.com>
10178
10179 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
10180 in loop.
10181
5939967b
LM
101822020-04-23 Luis Machado <luis.machado@linaro.org>
10183
10184 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10185 get_frame_register instead of gdbarch_unwind_pc.
10186
70bc38f5
TV
101872020-04-23 Tom de Vries <tdevries@suse.de>
10188
10189 * symtab.c (lookup_global_symbol): Prefer def over decl.
10190
de82891c
TV
101912020-04-23 Tom de Vries <tdevries@suse.de>
10192
10193 PR symtab/25807
10194 * block.c (best_symbol, better_symbol): Promote to external.
10195 * block.h (best_symbol, better_symbol): Declare.
10196 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
10197 decl.
10198
ecc6c606
TT
101992020-04-23 Tom Tromey <tromey@adacore.com>
10200
10201 PR ada/25837:
10202 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
10203 "const char *", not a "const std::string &".
10204 <name_and_matcher::operator==>: Update.
10205 * unittests/lookup_name_info-selftests.c: Change type of
10206 "result".
10207
740480b8
TT
102082020-04-23 Tom Tromey <tom@tromey.com>
10209
10210 * inferior.h (iterate_over_inferiors): Don't declare.
10211 * inferior.c (iterate_over_inferiors): Remove.
10212 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
10213 Remove.
10214 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
10215 use iterate_over_inferiors.
10216 (darwin_resume_inferior_it)
10217 (struct resume_inferior_threads_param)
10218 (darwin_resume_inferior_threads_it): Remove.
10219 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
10220
ae3ab1f0
TV
102212020-04-23 Tom de Vries <tdevries@suse.de>
10222
10223 * blockframe.c (find_pc_partial_function): Use
10224 find_pc_sect_compunit_symtab rather than
10225 objfile->sf->qf->find_pc_sect_compunit_symtab.
10226
317d2668
TV
102272020-04-22 Tom de Vries <tdevries@suse.de>
10228
10229 PR symtab/25764
10230 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
10231 in psymtabs.
10232
eea9e357
TV
102332020-04-22 Tom de Vries <tdevries@suse.de>
10234
10235 PR symtab/25801
10236 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
10237 symtabs.
10238
3d5afab3
TV
102392020-04-22 Tom de Vries <tdevries@suse.de>
10240
10241 PR symtab/25700
10242 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
10243 CU if already created.
10244
d43b7a2d
TBA
102452020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10246
10247 * infrun.c (displaced_step_fixup): Switch to the event_thread
10248 before calling displaced_step_restore, not after.
10249
d89edf9b
MM
102502020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10251
10252 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
10253 its inferior is not recorded by us.
10254 (record_btrace_target_open): Replace call to
10255 all_non_exited_threads () with call to current_inferior
10256 ()->non_exited_threads ().
10257 (record_btrace_target::stop_recording): Likewise.
10258 (record_btrace_target::close): Likewise.
10259 (record_btrace_target::wait): Likewise.
10260 (record_btrace_target::record_stop_replaying): Likewise.
10261
5897fd49
MM
102622020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10263
10264 * btrace.c (btrace_enable): Throw an error on double enables and
10265 when enabling recording fails.
10266 (btrace_disable): Throw an error if the thread is not recorded.
10267
1a476b6d
MM
102682020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10269
10270 * record-btrace.c (record_btrace_target::fetch_registers): Forward
10271 request if we do not have a thread_info.
10272
4778a5f8
TV
102732020-04-21 Tom de Vries <tdevries@suse.de>
10274
10275 PR gdb/25471
10276 * thread.c
10277 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
10278 exception in get_frame_id.
10279
0fa7617d
TT
102802020-04-20 Tom Tromey <tromey@adacore.com>
10281
10282 * python/python.c (struct gdbpy_event): Mark move constructor as
10283 noexcept.
10284 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
10285 constructor as noexcept.
10286 * completer.h (struct completion_result): Mark move constructor as
10287 noexcept.
10288 * completer.c (completion_result::completion_result): Use
10289 initialization style. Don't call reset_match_list.
10290
ad23bda0
MS
102912020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
10292
10293 * MAINTAINERS (Write After Approval): Add myself.
10294
45e1f031
TT
102952020-04-18 Tom Tromey <tom@tromey.com>
10296
10297 * windows-tdep.c (init_w32_command_list)
10298 (w32_prefix_command_valid): Restore.
10299 (_initialize_windows_tdep): Call init_w32_command_list.
10300
08feed99
TT
103012020-04-18 Tom Tromey <tom@tromey.com>
10302
10303 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
10304 * value.c (value_fn_field): Update.
10305 * valops.c (find_function_in_inferior)
10306 (value_allocate_space_in_inferior): Update.
10307 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10308 Update.
10309 * tui/tui-source.c (tui_source_window::set_contents): Update.
10310 * symtab.c (lookup_global_or_static_symbol)
10311 (find_function_start_sal_1, skip_prologue_sal)
10312 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
10313 * symmisc.c (dump_msymbols, dump_symtab_1)
10314 (maintenance_print_one_line_table): Update.
10315 * symfile.c (init_entry_point_info, section_is_mapped)
10316 (list_overlays_command, simple_read_overlay_table)
10317 (simple_overlay_update_1): Update.
10318 * stap-probe.c (handle_stap_probe): Update.
10319 * stabsread.c (dbx_init_float_type, define_symbol)
10320 (read_one_struct_field, read_enum_type, read_range_type): Update.
10321 * source.c (info_line_command): Update.
10322 * python/python.c (gdbpy_source_objfile_script)
10323 (gdbpy_execute_objfile_script): Update.
10324 * python/py-type.c (save_objfile_types): Update.
10325 * python/py-objfile.c (py_free_objfile): Update.
10326 * python/py-inferior.c (python_new_objfile): Update.
10327 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
10328 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
10329 (maintenance_check_psymtabs): Update.
10330 * printcmd.c (info_address_command): Update.
10331 * objfiles.h (struct objfile) <arch>: New method, from
10332 get_objfile_arch.
10333 (get_objfile_arch): Don't declare.
10334 * objfiles.c (get_objfile_arch): Remove.
10335 (filter_overlapping_sections): Update.
10336 * minsyms.c (msymbol_is_function): Update.
10337 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
10338 (output_nondebug_symbol): Update.
10339 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
10340 (mdebug_expand_psymtab): Update.
10341 * machoread.c (macho_add_oso_symfile): Update.
10342 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
10343 Update.
10344 * linux-fork.c (checkpoint_command): Update.
10345 * linespec.c (convert_linespec_to_sals): Update.
10346 * jit.c (finalize_symtab): Update.
10347 * infrun.c (insert_exception_resume_from_probe): Update.
10348 * ia64-tdep.c (ia64_find_unwind_table): Update.
10349 * hppa-tdep.c (internalize_unwinds): Update.
10350 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
10351 Update.
10352 * gcore.c (call_target_sbrk): Update.
10353 * elfread.c (record_minimal_symbol, elf_symtab_read)
10354 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
10355 (elf_gnu_ifunc_resolve_by_got): Update.
10356 * dwarf2/read.c (create_addrmap_from_index)
10357 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10358 (read_debug_names_from_section)
10359 (process_psymtab_comp_unit_reader, add_partial_symbol)
10360 (add_partial_subprogram, process_full_comp_unit)
10361 (read_file_scope, read_func_scope, read_lexical_block_scope)
10362 (read_call_site_scope, dwarf2_ranges_read)
10363 (dwarf2_record_block_ranges, dwarf2_add_field)
10364 (mark_common_block_symbol_computed, read_tag_pointer_type)
10365 (read_tag_string_type, dwarf2_init_float_type)
10366 (dwarf2_init_complex_target_type, read_base_type)
10367 (partial_die_info::read, partial_die_info::read)
10368 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
10369 (dwarf2_fetch_die_loc_sect_off): Update.
10370 * dwarf2/loc.c (dwarf2_find_location_expression)
10371 (class dwarf_evaluate_loc_desc, rw_pieced_value)
10372 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
10373 (dwarf2_loc_desc_get_symbol_read_needs)
10374 (locexpr_describe_location_piece, locexpr_describe_location_1)
10375 (loclist_describe_location): Update.
10376 * dwarf2/index-write.c (write_debug_names): Update.
10377 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
10378 * dtrace-probe.c (dtrace_process_dof): Update.
10379 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
10380 (process_one_symbol): Update.
10381 * ctfread.c (ctf_init_float_type, read_base_type): Update.
10382 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
10383 (coff_read_enum_type): Update.
10384 * cli/cli-cmds.c (edit_command, list_command): Update.
10385 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
10386 * breakpoint.c (create_overlay_event_breakpoint)
10387 (create_longjmp_master_breakpoint)
10388 (create_std_terminate_master_breakpoint)
10389 (create_exception_master_breakpoint, get_sal_arch): Update.
10390 * block.c (block_gdbarch): Update.
10391 * annotate.c (annotate_source_line): Update.
10392
0743fc83
TT
103932020-04-17 Tom Tromey <tromey@adacore.com>
10394
10395 * auto-load.c (show_auto_load_cmd): Remove.
10396 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
10397 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
10398 (maintenance_print_arc_command): Remove.
10399 * tui/tui-win.c (tui_command): Remove.
10400 (tui_get_cmd_list): Use add_basic_prefix_cmd.
10401 * tui/tui-layout.c (tui_layout_command): Remove.
10402 (_initialize_tui_layout): Use add_basic_prefix_cmd.
10403 * python/python.c (user_set_python, user_show_python): Remove.
10404 (_initialize_python): Use add_basic_prefix_cmd,
10405 add_show_prefix_cmd.
10406 * guile/guile.c (set_guile_command, show_guile_command): Remove.
10407 (install_gdb_commands): Use add_basic_prefix_cmd,
10408 add_show_prefix_cmd.
10409 (info_guile_command): Remove.
10410 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
10411 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
10412 add_show_prefix_cmd.
10413 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
10414 Remove do_set and do_show parameters.
10415 * cli/cli-style.c (set_style, show_style): Remove.
10416 (_initialize_cli_style): Use add_basic_prefix_cmd,
10417 add_show_prefix_cmd.
10418 (cli_style_option::add_setshow_commands): Remove do_set and
10419 do_show parameters.
10420 (cli_style_option::add_setshow_commands): Use
10421 add_basic_prefix_cmd, add_show_prefix_cmd.
10422 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
10423 (set_style_name): Remove.
10424 * cli/cli-dump.c (dump_command, append_command): Remove.
10425 (srec_dump_command, ihex_dump_command, verilog_dump_command)
10426 (tekhex_dump_command, binary_dump_command)
10427 (binary_append_command): Remove.
10428 (_initialize_cli_dump): Use add_basic_prefix_cmd.
10429 * windows-tdep.c (w32_prefix_command_valid): Remove global.
10430 (init_w32_command_list): Remove; move into ...
10431 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
10432 * valprint.c (set_print, show_print, set_print_raw)
10433 (show_print_raw): Remove.
10434 (_initialize_valprint): Use add_basic_prefix_cmd,
10435 add_show_prefix_cmd.
10436 * typeprint.c (set_print_type, show_print_type): Remove.
10437 (_initialize_typeprint): Use add_basic_prefix_cmd,
10438 add_show_prefix_cmd.
10439 * record.c (set_record_command, show_record_command): Remove.
10440 (_initialize_record): Use add_basic_prefix_cmd,
10441 add_show_prefix_cmd.
10442 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
10443 add_show_prefix_cmd.
10444 (info_command, show_command, set_debug, show_debug): Remove.
10445 * top.h (set_history, show_history): Don't declare.
10446 * top.c (set_history, show_history): Remove.
10447 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
10448 (unset_tdesc_cmd): Remove.
10449 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
10450 add_show_prefix_cmd.
10451 * symtab.c (info_module_command): Remove.
10452 (_initialize_symtab): Use add_basic_prefix_cmd.
10453 * symfile.c (overlay_command): Remove.
10454 (_initialize_symfile): Use add_basic_prefix_cmd.
10455 * sparc64-tdep.c (info_adi_command): Remove.
10456 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
10457 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
10458 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
10459 add_show_prefix_cmd.
10460 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
10461 (_initialize_serial): Use add_basic_prefix_cmd,
10462 add_show_prefix_cmd.
10463 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
10464 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
10465 add_show_prefix_cmd.
10466 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
10467 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
10468 add_show_prefix_cmd.
10469 * riscv-tdep.c (show_riscv_command, set_riscv_command)
10470 (show_debug_riscv_command, set_debug_riscv_command): Remove.
10471 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
10472 add_show_prefix_cmd.
10473 * remote.c (remote_command, set_remote_cmd): Remove.
10474 (_initialize_remote): Use add_basic_prefix_cmd.
10475 * record-full.c (set_record_full_command)
10476 (show_record_full_command): Remove.
10477 (_initialize_record_full): Use add_basic_prefix_cmd,
10478 add_show_prefix_cmd.
10479 * record-btrace.c (cmd_set_record_btrace)
10480 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
10481 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
10482 (cmd_show_record_btrace_pt): Remove.
10483 (_initialize_record_btrace): Use add_basic_prefix_cmd,
10484 add_show_prefix_cmd.
10485 * ravenscar-thread.c (set_ravenscar_command)
10486 (show_ravenscar_command): Remove.
10487 (_initialize_ravenscar): Use add_basic_prefix_cmd,
10488 add_show_prefix_cmd.
10489 * mips-tdep.c (show_mips_command, set_mips_command)
10490 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
10491 add_show_prefix_cmd.
10492 * maint.c (maintenance_command, maintenance_info_command)
10493 (maintenance_check_command, maintenance_print_command)
10494 (maintenance_set_cmd, maintenance_show_cmd): Remove.
10495 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
10496 add_show_prefix_cmd.
10497 (show_per_command_cmd): Remove.
10498 * maint-test-settings.c (maintenance_set_test_settings_cmd):
10499 Remove.
10500 (maintenance_show_test_settings_cmd): Remove.
10501 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
10502 add_show_prefix_cmd.
10503 * maint-test-options.c (maintenance_test_options_command):
10504 Remove.
10505 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
10506 * macrocmd.c (macro_command): Remove
10507 (_initialize_macrocmd): Use add_basic_prefix_cmd.
10508 * language.c (set_check, show_check): Remove.
10509 (_initialize_language): Use add_basic_prefix_cmd,
10510 add_show_prefix_cmd.
10511 * infcmd.c (unset_command): Remove.
10512 (_initialize_infcmd): Use add_basic_prefix_cmd.
10513 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
10514 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
10515 add_show_prefix_cmd.
10516 * go32-nat.c (go32_info_dos_command): Remove.
10517 (_initialize_go32_nat): Use add_basic_prefix_cmd.
10518 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
10519 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
10520 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
10521 (_initialize_frame): Use add_basic_prefix_cmd,
10522 add_show_prefix_cmd.
10523 * dcache.c (set_dcache_command, show_dcache_command): Remove.
10524 (_initialize_dcache): Use add_basic_prefix_cmd,
10525 add_show_prefix_cmd.
10526 * cp-support.c (maint_cplus_command): Remove.
10527 (_initialize_cp_support): Use add_basic_prefix_cmd.
10528 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
10529 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
10530 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
10531 add_basic_prefix_cmd, add_show_prefix_cmd.
10532 * breakpoint.c (save_command): Remove.
10533 (_initialize_breakpoint): Use add_basic_prefix_cmd.
10534 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
10535 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
10536 add_show_prefix_cmd.
10537 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
10538 (set_ada_command, show_ada_command): Remove.
10539 (_initialize_ada_language): Use add_basic_prefix_cmd,
10540 add_show_prefix_cmd.
10541 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
10542
3557f442
KR
105432020-04-16 Kamil Rytarowski <n54@gmx.com>
10544
10545 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
10546 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
10547
16197208
SM
105482020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
10549
10550 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
10551 warning messages.
10552
00ac85d3
SM
105532020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
10554
10555 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
10556 import table is not at beginning of .idata section.
10557
381ce63f
PA
105582020-04-16 Pedro Alves <palves@redhat.com>
10559
10560 * inferior.c (delete_inferior): Use delete operator directly
10561 instead of delete_program_space.
10562 * progspace.c (add_program_space): New, factored out from
10563 program_space::program_space.
10564 (remove_program_space): New, factored out from
10565 delete_program_space.
10566 (program_space::program_space): Remove intro comment. Rewrite.
10567 (program_space::~program_space): Remove intro comment. Call
10568 remove_program_space.
10569 (delete_program_space): Delete.
10570 * progspace.h (program_space::program_space): Make explicit. Move
10571 intro comment here, adjusted.
10572 (program_space::~program_space): Move intro comment here,
10573 adjusted.
10574 (delete_program_space): Remove.
10575
a010605f
TT
105762020-04-16 Tom Tromey <tromey@adacore.com>
10577
10578 * windows-nat.c (windows_nat::handle_access_violation): New
10579 function.
10580 * nat/windows-nat.h (handle_access_violation): Declare.
10581 * nat/windows-nat.c (handle_exception): Move Cygwin code to
10582 windows-nat.c. Call handle_access_violation.
10583
efba5c23
TV
105842020-04-16 Tom de Vries <tdevries@suse.de>
10585
10586 PR symtab/25791
10587 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
10588 CUs without psymtab.
10589
97ed802d
KB
105902020-04-16 Kevin Buettner <kevinb@redhat.com>
10591
10592 * python/python.c (do_start_initialization): Don't call
10593 PyEval_InitThreads for Python 3.9 and beyond.
10594
c7d64809
KR
105952020-04-15 Kamil Rytarowski <n54@gmx.com>
10596
10597 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
10598 thread functions.
10599 (obsd_nat_target::wait): Likewise.
10600
ce127a96
TT
106012020-04-15 Tom Tromey <tromey@adacore.com>
10602
10603 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
10604 (DEBUG_EXCEPT): Use debug_printf.
10605
99f1bc6a
AB
106062020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
10607
10608 * completer.c (class completion_tracker::completion_hash_entry)
10609 <hash_name>: New member function.
10610 (completion_tracker::discard_completions): New callback to hash a
10611 completion_hash_entry, pass this to htab_create_alloc.
10612
a0e9b532
JT
106132016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
10614
10615 * windows-nat.c (windows_make_so): Warn rather than stopping with
10616 an error if realpath() fails.
10617
06ca5dd4
KR
106182020-04-14 Kamil Rytarowski <n54@gmx.com>
10619
10620 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
10621 (nbsd_nat_target::info_proc): Add do_status.
10622
194d088f
TV
106232020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
10624 Tom de Vries <tdevries@suse.de>
10625
10626 PR symtab/25718
10627 * psympriv.h (struct partial_symtab::read_symtab)
10628 (struct partial_symtab::expand_psymtab)
10629 (struct partial_symtab::read_dependencies): Update comments.
10630 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
10631 read_symtab for includer.
10632 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
10633 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
10634 (struct dwarf2_include_psymtab::m_readin): Remove.
10635 (struct dwarf2_include_psymtab::includer): New member function.
10636 (dwarf2_psymtab::expand_psymtab): Assert !readin.
10637
c1a66c06
TV
106382020-04-14 Tom de Vries <tdevries@suse.de>
10639
10640 PR symtab/25720
10641 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
10642 with NULL symbol_matcher and lookup_name.
10643 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
10644 and lookup_name.
10645 * dwarf2/read.c (dw2_expand_symtabs_matching)
10646 (dw2_debug_names_expand_symtabs_matching): Same.
10647 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
10648 Make lookup_name a pointer. Update comment.
10649 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
10650 lookup_name being a pointer.
10651 * symfile.c (expand_symtabs_matching): Same.
10652 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
10653 * linespec.c (iterate_over_all_matching_symtabs): Same.
10654
400b5eca
TT
106552020-04-13 Tom Tromey <tom@tromey.com>
10656
10657 * run-on-main-thread.c: Update include.
10658 * unittests/main-thread-selftests.c: Update include.
10659 * tui/tui-win.c: Update include.
10660 * tui/tui-io.c: Update include.
10661 * tui/tui-interp.c: Update include.
10662 * tui/tui-hooks.c: Update include.
10663 * top.h: Update include.
10664 * top.c: Update include.
10665 * ser-base.c: Update include.
10666 * remote.c: Update include.
10667 * remote-notif.c: Update include.
10668 * remote-fileio.c: Update include.
10669 * record-full.c: Update include.
10670 * record-btrace.c: Update include.
10671 * python/python.c: Update include.
10672 * posix-hdep.c: Update include.
10673 * mingw-hdep.c: Update include.
10674 * mi/mi-main.c: Update include.
10675 * mi/mi-interp.c: Update include.
10676 * main.c: Update include.
10677 * linux-nat.c: Update include.
10678 * interps.c: Update include.
10679 * infrun.c: Update include.
10680 * inf-loop.c: Update include.
10681 * event-top.c: Update include.
10682 * event-loop.c: Move to ../gdbsupport/.
10683 * event-loop.h: Move to ../gdbsupport/.
10684 * async-event.h: Update include.
10685 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
10686
93b54c8e
TT
106872020-04-13 Tom Tromey <tom@tromey.com>
10688
10689 * tui/tui-win.c: Include async-event.h.
10690 * remote.c: Include async-event.h.
10691 * remote-notif.c: Include async-event.h.
10692 * record-full.c: Include async-event.h.
10693 * record-btrace.c: Include async-event.h.
10694 * infrun.c: Include async-event.h.
10695 * event-top.c: Include async-event.h.
10696 * event-loop.h: Move some declarations to async-event.h.
10697 * event-loop.c: Don't include ser-event.h or top.h. Move some
10698 code to async-event.c.
10699 * async-event.h: New file.
10700 * async-event.c: New file.
10701 * Makefile.in (COMMON_SFILES): Add async-event.c.
10702 (HFILES_NO_SRCDIR): Add async-event.h.
10703
c1cd3163
TT
107042020-04-13 Tom Tromey <tom@tromey.com>
10705
10706 * utils.c (flush_streams): New function.
10707 * event-loop.c (gdb_wait_for_event): Call flush_streams.
10708
29f2bf4f
TT
107092020-04-13 Tom Tromey <tom@tromey.com>
10710
10711 * event-loop.c (handle_file_event): Use warning, not
10712 printf_unfiltered.
10713
98029d02
TT
107142020-04-13 Tom Tromey <tom@tromey.com>
10715
10716 * event-loop.c: Include <chrono>.
10717
06cc9596
TT
107182020-04-13 Tom Tromey <tom@tromey.com>
10719
10720 * gdb_select.h: Move to ../gdbsupport/.
10721 * event-loop.c: Update include path.
10722 * top.c: Update include path.
10723 * ser-base.c: Update include path.
10724 * ui-file.c: Update include path.
10725 * ser-tcp.c: Update include path.
10726 * guile/scm-ports.c: Update include path.
10727 * posix-hdep.c: Update include path.
10728 * ser-unix.c: Update include path.
10729 * gdb_usleep.c: Update include path.
10730 * mingw-hdep.c: Update include path.
10731 * inflow.c: Update include path.
10732 * infrun.c: Update include path.
10733 * event-top.c: Update include path.
10734
8ae8e197
TT
107352020-04-13 Tom Tromey <tom@tromey.com>
10736
10737 * configure: Rebuild.
10738 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
10739
58cf28e8
TT
107402020-04-13 Tom Tromey <tom@tromey.com>
10741
10742 * event-loop.h (start_event_loop): Don't declare.
10743 * event-loop.c (start_event_loop): Move...
10744 * main.c (start_event_loop): ...here. Now static.
10745
b7f999ae
SDJ
107462020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
10747
10748 * MAINTAINERS: Update my email address.
10749
1085dfd4
KR
107502020-04-12 Kamil Rytarowski <n54@gmx.com>
10751
10752 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
10753 IP_ALL.
10754
49d1d1f5
KR
107552020-04-12 Kamil Rytarowski <n54@gmx.com>
10756
10757 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 10758 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 10759
b4848d2a
KR
107602020-04-12 Kamil Rytarowski <n54@gmx.com>
10761
10762 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 10763 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 10764
51c133d5
KR
107652020-04-12 Kamil Rytarowski <n54@gmx.com>
10766
10767 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
10768
54b8cbd0
KR
107692020-04-11 Kamil Rytarowski <n54@gmx.com>
10770
10771 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
10772 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
10773 (nbsd_nat_target::info_proc): New functions.
10774 * nbsd-nat.c (kinfo_get_vmmap): New function.
10775 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
10776 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
10777 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
10778 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
10779 functions.
10780 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
10781 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
10782 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
10783 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
10784 (KINFO_VME_FLAG_GROWS_DOWN): New.
10785
cf83625d
AS
107862020-04-10 Artur Shepilko <nomadbyte@gmail.com>
10787
10788 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
10789 bit shift.
10790
0c4311ab
TT
107912020-04-10 Tom Tromey <tromey@adacore.com>
10792
10793 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
10794
3e65b3e9
TT
107952020-04-10 Tom Tromey <tromey@adacore.com>
10796
10797 * symtab.c (get_symbol_address, get_msymbol_address): Skip
10798 separate debug files.
10799
13302e95
HD
108002020-04-10 Hannes Domani <ssbssa@yahoo.de>
10801
10802 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
10803 Move to...
10804 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
10805 ... here.
10806 * windows-nat.c (windows_nat_target::get_windows_debug_event):
10807 Check for STATUS_WX86_BREAKPOINT.
10808 (windows_nat_target::wait): Same.
10809
bdfc1e8a
TV
108102020-04-10 Tom de Vries <tdevries@suse.de>
10811
10812 PR cli/25808
10813 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
10814
f4460aec
SM
108152020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10816
10817 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
10818 (Write After Approval): Remove Tom de Vries.
10819
a25198bb
BE
108202020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
10821
10822 revert partially:
10823 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10824
aac66a4c
SM
10825 * buildsym.c (record_line): Fix undefined behavior and preserve
10826 lines at eof.
a25198bb 10827
206c98a6
KR
108282020-04-09 Kamil Rytarowski <n54@gmx.com>
10829
10830 * auxv.h (svr4_auxv_parse): New.
10831 * auxv.c (default_auxv_parse): Split into default_auxv_parse
10832 and generic_auxv_parse.
10833 (svr4_auxv_parse): Add.
10834 * obsd-tdep.c: Include "auxv.h".
10835 (obsd_auxv_parse): Remove.
10836 (obsd_init_abi): Remove comment.
10837 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
10838 from `obsd_auxv_parse' to `svr4_auxv_parse'.
10839 * nbsd-tdep.c: Include "auxv.h".
10840 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
10841
71fbdbaf
TT
108422020-04-08 Tom Tromey <tromey@adacore.com>
10843
10844 * nat/windows-nat.h (last_wait_event): Don't declare.
10845 (wait_for_debug_event): Update comment.
10846 * nat/windows-nat.c (last_wait_event): Now static.
10847
2c1d95e8
TT
108482020-04-08 Tom Tromey <tromey@adacore.com>
10849
10850 * windows-nat.c (wait_for_debug_event): Move to
10851 nat/windows-nat.c.
10852 * nat/windows-nat.h (wait_for_debug_event): Declare.
10853 * nat/windows-nat.c (wait_for_debug_event): Move from
10854 windows-nat.c. No longer static.
10855
d2977bc4
TT
108562020-04-08 Tom Tromey <tromey@adacore.com>
10857
10858 * windows-nat.c (get_windows_debug_event): Use
10859 fetch_pending_stop.
10860 * nat/windows-nat.h (fetch_pending_stop): Declare.
10861 * nat/windows-nat.c (fetch_pending_stop): New function.
10862
e758e19c
TT
108632020-04-08 Tom Tromey <tromey@adacore.com>
10864
10865 * windows-nat.c (windows_continue): Use matching_pending_stop and
10866 continue_last_debug_event.
10867 * nat/windows-nat.h (matching_pending_stop)
10868 (continue_last_debug_event): Declare.
10869 * nat/windows-nat.c (DEBUG_EVENTS): New define.
10870 (matching_pending_stop, continue_last_debug_event): New
10871 functions.
10872
8d30e395
TT
108732020-04-08 Tom Tromey <tromey@adacore.com>
10874
10875 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
10876 (handle_exception_result): Move to nat/windows-nat.h.
10877 (DEBUG_EXCEPTION_SIMPLE): Remove.
10878 (windows_nat::handle_ms_vc_exception): New function.
10879 (handle_exception): Move to nat/windows-nat.c.
10880 (get_windows_debug_event): Update.
10881 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
10882 nat/windows-nat.c.
10883 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
10884 (handle_exception_result): Move from windows-nat.c.
10885 (handle_exception): Declare.
10886 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
10887 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
10888 windows-nat.c.
10889
29de418d
TT
108902020-04-08 Tom Tromey <tromey@adacore.com>
10891
10892 * windows-nat.c (exception_count, event_count): Remove.
10893 (handle_exception, get_windows_debug_event)
10894 (do_initial_windows_stuff): Update.
10895
a816ba18
TT
108962020-04-08 Tom Tromey <tromey@adacore.com>
10897
10898 * windows-nat.c (windows_nat::handle_load_dll)
10899 (windows_nat::handle_unload_dll): Rename. No longer static.
10900 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
10901 Declare.
10902
a00caa12
TT
109032020-04-08 Tom Tromey <tromey@adacore.com>
10904
10905 * complaints.h (stop_whining): Declare at top-level.
10906 (complaint): Don't declare stop_whining.
10907
d41b524f
TT
109082020-04-08 Tom Tromey <tromey@adacore.com>
10909
10910 * windows-nat.c (windows_nat::handle_output_debug_string):
10911 Rename. No longer static.
10912 * nat/windows-nat.h (handle_output_debug_string): Declare.
10913
3c76026d
TT
109142020-04-08 Tom Tromey <tromey@adacore.com>
10915
10916 * windows-nat.c (current_process_handle, current_process_id)
10917 (main_thread_id, last_sig, current_event, last_wait_event)
10918 (current_windows_thread, desired_stop_thread_id, pending_stops)
10919 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
10920 (display_selectors, fake_create_process)
10921 (get_windows_debug_event): Update.
10922 * nat/windows-nat.h (current_process_handle, current_process_id)
10923 (main_thread_id, last_sig, current_event, last_wait_event)
10924 (current_windows_thread, desired_stop_thread_id, pending_stops)
10925 (struct pending_stop, siginfo_er): Move from windows-nat.c.
10926 * nat/windows-nat.c (current_process_handle, current_process_id)
10927 (main_thread_id, last_sig, current_event, last_wait_event)
10928 (current_windows_thread, desired_stop_thread_id, pending_stops)
10929 (siginfo_er): New globals. Move from windows-nat.c.
10930
9d8679cc
TT
109312020-04-08 Tom Tromey <tromey@adacore.com>
10932
10933 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
10934 (handle_load_dll): Update.
10935 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
10936
28688adf
TT
109372020-04-08 Tom Tromey <tromey@adacore.com>
10938
10939 * windows-nat.c (enum thread_disposition_type): Move to
10940 nat/windows-nat.h.
10941 (windows_nat::thread_rec): Rename from thread_rec. No longer
10942 static.
10943 (windows_add_thread, windows_nat_target::fetch_registers)
10944 (windows_nat_target::store_registers, handle_exception)
10945 (windows_nat_target::resume, get_windows_debug_event)
10946 (windows_nat_target::get_tib_address)
10947 (windows_nat_target::thread_name)
10948 (windows_nat_target::thread_alive): Update.
10949 * nat/windows-nat.h (enum thread_disposition_type): Move from
10950 windows-nat.c.
10951 (thread_rec): Declare.
10952
4834dad0
TT
109532020-04-08 Tom Tromey <tromey@adacore.com>
10954
10955 * windows-nat.c: Add "using namespace".
10956 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
10957 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
10958
65bafd5b
TT
109592020-04-08 Tom Tromey <tromey@adacore.com>
10960
10961 * nat/windows-nat.h (struct windows_thread_info): Declare
10962 destructor.
10963 * nat/windows-nat.c (~windows_thread_info): New.
10964
0a4afda3
TT
109652020-04-08 Tom Tromey <tromey@adacore.com>
10966
10967 PR gdb/22992
10968 * windows-nat.c (current_event): Update comment.
10969 (last_wait_event, desired_stop_thread_id): New globals.
10970 (struct pending_stop): New.
10971 (pending_stops): New global.
10972 (windows_nat_target) <stopped_by_sw_breakpoint>
10973 <supports_stopped_by_sw_breakpoint>: New methods.
10974 (windows_fetch_one_register): Add assertions. Adjust PC.
10975 (windows_continue): Handle pending stops. Suspend other threads
10976 when stepping. Use last_wait_event
10977 (wait_for_debug_event): New function.
10978 (get_windows_debug_event): Use wait_for_debug_event. Handle
10979 pending stops. Queue spurious stops.
10980 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
10981 (windows_nat_target::kill): Use wait_for_debug_event.
10982 * nat/windows-nat.h (struct windows_thread_info)
10983 <stopped_at_software_breakpoint>: New field.
10984 * nat/windows-nat.c (windows_thread_info::resume): Clear
10985 stopped_at_software_breakpoint.
10986
8e61ebec
TT
109872020-04-08 Tom Tromey <tromey@adacore.com>
10988
10989 * windows-nat.c (enum thread_disposition_type): New.
10990 (thread_rec): Replace "get_context" parameter with "disposition";
10991 change type.
10992 (windows_add_thread, windows_nat_target::fetch_registers)
10993 (windows_nat_target::store_registers, handle_exception)
10994 (windows_nat_target::resume, get_windows_debug_event)
10995 (windows_nat_target::get_tib_address)
10996 (windows_nat_target::thread_name)
10997 (windows_nat_target::thread_alive): Update.
10998
98a03287
TT
109992020-04-08 Tom Tromey <tromey@adacore.com>
11000
11001 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
11002 (windows_continue): Use windows_continue::resume.
11003 * nat/windows-nat.h (struct windows_thread_info) <suspend,
11004 resume>: Declare new methods.
11005 * nat/windows-nat.c: New file.
11006 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
11007
7c7411bc
TT
110082020-04-08 Tom Tromey <tromey@adacore.com>
11009
11010 * windows-nat.c (windows_add_thread, windows_delete_thread)
11011 (windows_nat_target::fetch_registers)
11012 (windows_nat_target::store_registers, fake_create_process)
11013 (windows_nat_target::resume, windows_nat_target::resume)
11014 (get_windows_debug_event, windows_nat_target::wait)
11015 (windows_nat_target::pid_to_str)
11016 (windows_nat_target::get_tib_address)
11017 (windows_nat_target::get_ada_task_ptid)
11018 (windows_nat_target::thread_name)
11019 (windows_nat_target::thread_alive): Use lwp, not tid.
11020
2950fdf7
TT
110212020-04-08 Tom Tromey <tromey@adacore.com>
11022
11023 * windows-nat.c (handle_exception)
11024 (windows_nat_target::thread_name): Update.
11025 * nat/windows-nat.h (windows_thread_info): Remove destructor.
11026 <name>: Now unique_xmalloc_ptr.
11027
62fe396b
TT
110282020-04-08 Tom Tromey <tromey@adacore.com>
11029
11030 * windows-nat.c (thread_rec)
11031 (windows_nat_target::fetch_registers): Update.
11032 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
11033 Update comment.
11034 <debug_registers_changed, reload_context>: Now bool.
11035
e9534bd2
TT
110362020-04-08 Tom Tromey <tromey@adacore.com>
11037
11038 * windows-nat.c (windows_add_thread): Use new.
11039 (windows_init_thread_list, windows_delete_thread): Use delete.
11040 (get_windows_debug_event): Update.
11041 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
11042 destructor, and initializers.
11043
ae1f8880
TT
110442020-04-08 Tom Tromey <tromey@adacore.com>
11045
11046 * windows-nat.c (struct windows_thread_info): Remove.
11047 * nat/windows-nat.h: New file.
11048
55a1e039
TT
110492020-04-08 Tom Tromey <tromey@adacore.com>
11050
11051 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
11052 (thread_rec, windows_add_thread, windows_delete_thread)
11053 (windows_continue): Update.
11054
93366324
TT
110552020-04-08 Tom Tromey <tromey@adacore.com>
11056
11057 * windows-nat.c (struct windows_thread_info): Remove typedef.
11058 (thread_head): Remove.
11059 (thread_list): New global.
11060 (thread_rec, windows_add_thread, windows_init_thread_list)
11061 (windows_delete_thread, windows_continue): Update.
11062
0f2265e2
SM
110632020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11064
11065 * windows-tdep.h (windows_init_abi): Add comment.
11066 (cygwin_init_abi): New declaration.
11067 * windows-tdep.c: Split signal enumeration in two, one for
11068 Windows and one for Cygwin.
11069 (windows_gdb_signal_to_target): Only deal with signal of the
11070 Windows OS ABI.
11071 (cygwin_gdb_signal_to_target): New function.
11072 (windows_init_abi): Rename to windows_init_abi_common, don't set
11073 gdb_signal_to_target gdbarch method. Add new new function with
11074 this name.
11075 (cygwin_init_abi): New function.
11076 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
11077 comment. Don't call windows_init_abi.
11078 (amd64_windows_init_abi): Add comment, call windows_init_abi.
11079 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
11080 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
11081 i386_windows_init_abi_common, don't call windows_init_abi. Add
11082 a new function of this name.
11083 (i386_cygwin_init_abi): New function.
11084 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
11085 OS ABI Cygwin.
11086
3810f182
SM
110872020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11088
11089 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
11090 parameter.c.
11091 (dwarf2_read_gdb_index): Update.
11092
063f8e80
KR
110932020-04-07 Kamil Rytarowski <n54@gmx.com>
11094
11095 * nbsd-tdep.c: Include "objfiles.h".
11096 (nbsd_skip_solib_resolver): New.
11097 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
11098
85a9510c 110992020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11100
11101 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
11102 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
11103 with DW_LLE_base_addressx are being emitted in DWARFv5.
11104 Add the newly added kind DW_LOC_OFFSET_PAIR also.
11105 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
11106 unsigned integer.
11107
9fc3eaae 111082020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11109
11110 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
11111 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
11112 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
11113 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
11114 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
11115 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
11116 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
11117
11118
41144253 111192020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11120
11121 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
11122 (read_loclist_index): New function definition.
11123 (lookup_loclist_base): New function definition.
11124 (read_loclist_header): New function definition.
11125 (dwarf2_cu): Add loclist_base and loclist_header field.
11126 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
11127 (read_full_die_1): Read the value of DW_AT_loclists_base.
11128 (read_attribute_reprocess): Handle DW_FORM_loclistx.
11129 (read_attribute_value): Handle DW_FORM_loclistx.
11130 (skip_one_die): Handle DW_FORM_loclistx.
11131 (loclist_header): New structure declaration.
11132 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
11133
9f4e76a4
SM
111342020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11135
11136 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
11137 constructor. Remove `addr` parameter from other constructor and
11138 add `per_cu` parameter.
11139 * dwarf2/read.c (create_partial_symtab): Update.
11140
25c11aca
TV
111412020-04-07 Tom de Vries <tdevries@suse.de>
11142
11143 PR symtab/25796
11144 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
11145 (partial_die_info::fixup): Inherit has_const_value.
11146
5707e24b
TV
111472020-04-07 Tom de Vries <tdevries@suse.de>
11148
11149 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
11150 symbols without address.
11151
05f00e22
KR
111522020-04-06 Kamil Rytarowski <n54@gmx.com>
11153
11154 * nbsd-nat.h (struct thread_info): Add forward declaration.
11155 (nbsd_nat_target::thread_alive): Add.
11156 (nbsd_nat_target::thread_name): Likewise.
11157 (nbsd_nat_target::update_thread_list): Likewise.
11158 (update_thread_list::post_attach): Likewise.
11159 (post_attach::pid_to_str): Likewise.
11160 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
11161 (nbsd_thread_lister): Add.
11162 (nbsd_nat_target::thread_alive): Likewise.
11163 (nbsd_nat_target::thread_name): Likewise.
11164 (nbsd_add_threads): Likewise.
11165 (update_thread_list::post_attach): Likewise.
11166 (nbsd_nat_target::update_thread_list): Likewise.
11167 (post_attach::pid_to_str): Likewise.
11168
6ee448cc
TT
111692020-04-06 Tom Tromey <tromey@adacore.com>
11170
11171 * ada-valprint.c (print_variant_part): Extract the variant field.
11172 (print_field_values): Use the field as the outer value when
11173 recursing.
11174
dea34e8c
TT
111752020-04-06 Tom Tromey <tromey@adacore.com>
11176
11177 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
11178 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
11179 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
11180 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
11181 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
11182
93689ce9
TT
111832020-04-06 Tom Tromey <tromey@adacore.com>
11184
11185 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
11186 TYPE_CODE_ERROR.
11187
79743962
KR
111882020-04-06 Kamil Rytarowski <n54@gmx.com>
11189
11190 * nbsd-tdep.c: Include "gdbarch.h".
11191 Define enum with NetBSD signal numbers.
11192 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
11193 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
11194 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
11195 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
11196 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
11197 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
11198 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
11199 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11200 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
11201 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
11202 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
11203 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
11204
9e7c9a03
HD
112052020-04-03 Hannes Domani <ssbssa@yahoo.de>
11206
11207 PR gdb/25325
11208 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
11209
d9e49b61
TT
112102020-04-03 Tom Tromey <tromey@adacore.com>
11211
11212 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
11213 Read constant block.
11214
e0fc5c3f
SM
112152020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11216
11217 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
11218 (gdb_bfd_get_full_section_contents): New declaration.
11219 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
11220 * windows-tdep.c (is_linked_with_cygwin_dll): Use
11221 gdb_bfd_get_full_section_contents.
11222
e2ff18a0
SM
112232020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11224
11225 * exec.c (build_section_table): Replace internal_error with
11226 gdb_assert.
11227 (section_table_xfer_memory_partial): Likewise.
11228 * mdebugread.c (parse_partial_symbols): Likewise.
11229 * psymtab.c (lookup_partial_symbol): Likewise.
11230 * utils.c (wrap_here): Likewise.
11231
0830d301
TT
112322020-04-02 Tom Tromey <tromey@adacore.com>
11233
11234 * f-lang.c (build_fortran_types): Use arch_type to initialize
11235 builtin_complex_s32 in the TYPE_CODE_ERROR case.
11236
e7da7f8f
TT
112372020-04-02 Tom Tromey <tromey@adacore.com>
11238
11239 * dwarf2/read.c (partial_die_info::read): Do not create a vector
11240 of attributes.
11241
c90d28ac
AB
112422020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
11243 Bernd Edlinger <bernd.edlinger@hotmail.de>
11244 Tom Tromey <tromey@adacore.com>
11245
11246 * buildsym.c (buildsym_compunit::record_line): Remove
11247 deduplication code.
11248
1aa98955
TV
112492020-04-02 Tom de Vries <tdevries@suse.de>
11250
11251 PR ada/24671
11252 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
11253
d3214198
TV
112542020-04-02 Tom de Vries <tdevries@suse.de>
11255
11256 * dwarf2/read.c (dwarf2_gdb_index_functions,
11257 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
11258 NULL.
11259 * psymtab.c (psym_lookup_global_symbol_language): New function.
11260 (psym_functions): Init psym_lookup_global_symbol_language with
11261 psym_lookup_global_symbol_language.
11262 * symfile-debug.c (debug_sym_quick_functions): Init
11263 lookup_global_symbol_language with NULL.
11264 * symfile.c (set_initial_language): Remove fixme comment.
11265 * symfile.h (struct quick_symbol_functions): Add
11266 lookup_global_symbol_language.
11267 * symtab.c (find_quick_global_symbol_language): New function.
11268 (find_main_name): Use find_quick_global_symbol_language.
11269
2836752f
SM
112702020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
11271
11272 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
11273
64dc2d4b
BE
112742020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11275
11276 * buildsym.c (record_line): Fix undefined behavior and preserve
11277 lines at eof.
11278
bbe3dc41
BE
112792020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11280
11281 * buildsym.c (record_line): Fix the resizing condition.
11282
6b4a335b
TT
112832020-04-01 Tom Tromey <tom@tromey.com>
11284
11285 * value.h (value_literal_complex): Add comment.
11286 * valops.c (value_literal_complex): Refer to value.h.
11287
3638a098
TT
112882020-04-01 Tom Tromey <tom@tromey.com>
11289
11290 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
11291 (scalar_type): New rule, from typebase.
11292 (typebase): Use scalar_type. Recognize complex types.
11293 (field_name): Handle FLOAT_KEYWORD.
11294 (ident_tokens): Add _Complex and __complex__.
11295
c34e8714
TT
112962020-04-01 Tom Tromey <tom@tromey.com>
11297
11298 PR exp/25299:
11299 * valarith.c (promotion_type, complex_binop): New functions.
11300 (scalar_binop): Handle complex numbers. Use promotion_type.
11301 (value_pos, value_neg, value_complement): Handle complex numbers.
11302
fa649bb7
TT
113032020-04-01 Tom Tromey <tom@tromey.com>
11304
11305 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
11306 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
11307 (parse_number): Handle complex numbers.
11308
981c08ce
TT
113092020-04-01 Tom Tromey <tom@tromey.com>
11310
11311 * c-valprint.c (c_decorations): Change complex suffix to "i".
11312
4c99290d
TT
113132020-04-01 Tom Tromey <tom@tromey.com>
11314
11315 * valprint.c (generic_value_print_complex): Use accessors.
11316 * value.h (value_real_part, value_imaginary_part): Declare.
11317 * valops.c (value_real_part, value_imaginary_part): New
11318 functions.
11319 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
11320
5b930b45
TT
113212020-04-01 Tom Tromey <tom@tromey.com>
11322
11323 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
11324 (read_range_type): Update.
11325 * mdebugread.c (basic_type): Update.
11326 * go-lang.c (build_go_types): Use init_complex_type.
11327 * gdbtypes.h (struct main_type) <complex_type>: New member.
11328 (init_complex_type): Update.
11329 (arch_complex_type): Don't declare.
11330 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
11331 Make name if none given. Use alloc_type_copy. Look for cached
11332 complex type.
11333 (arch_complex_type): Remove.
11334 (gdbtypes_post_init): Use init_complex_type.
11335 * f-lang.c (build_fortran_types): Use init_complex_type.
11336 * dwarf2/read.c (read_base_type): Update.
11337 * d-lang.c (build_d_types): Use init_complex_type.
11338 * ctfread.c (read_base_type): Update.
11339
53cccef1
TBA
113402020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11341
11342 * infrun.c (stop_all_threads): Update assertion, plus when
11343 stopping threads, take into account that we might be trying
11344 to stop an all-stop target.
11345 (stop_waiting): Call 'stop_all_threads' if there exists a
11346 non-stop target.
11347
a0714d30
TBA
113482020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11349
11350 * target.h (exists_non_stop_target): New function declaration.
11351 * target.c (exists_non_stop_target): New function.
11352
60e22c1e
HD
113532020-04-01 Hannes Domani <ssbssa@yahoo.de>
11354
11355 PR gdb/24789
11356 * eval.c (is_integral_or_integral_reference): New function.
11357 (evaluate_subexp_standard): Allow integer references in
11358 pointer arithmetic.
11359
e139a727
TBA
113602020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11361
11362 * remote.c (remote_target::remote_parse_stop_reply): Remove the
11363 check for no ptid in the stop reply when the target is non-stop.
11364
e0802d59
TT
113652020-04-01 Tom Tromey <tromey@adacore.com>
11366
11367 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
11368 "name" parameter to rvalue reference. Initialize m_name_holder.
11369 <lookup_name_info>: New overloads.
11370 <name>: Return gdb::string_view.
11371 <c_str>: New method.
11372 <make_ignore_params>: Update.
11373 <search_name_hash>: Update.
11374 <language_lookup_name>: Return const char *.
11375 <m_name>: Change type.
11376 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
11377 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
11378 (lookup_name_info::match_any): Update.
11379 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
11380 Update.
11381 * minsyms.c (linkage_name_str): Update.
11382 * language.c (default_symbol_name_matcher): Update.
11383 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
11384 Update.
11385 * ada-lang.c (ada_fold_name): Change parameter to string_view.
11386 (ada_lookup_name_info::ada_lookup_name_info): Update.
11387 (literal_symbol_name_matcher): Update.
11388
8c072cb6
TT
113892020-04-01 Tom Tromey <tromey@adacore.com>
11390
11391 * psymtab.c (psymtab_search_name): Remove function.
11392 (psym_lookup_symbol): Create search name and lookup name here.
11393 (lookup_partial_symbol): Remove "name" parameter; add
11394 lookup_name.
11395 (psym_expand_symtabs_for_function): Update.
11396
6f29a534
TT
113972020-03-31 Joel Jones <joelkevinjones@gmail.com>
11398
11399 PR tui/25597:
11400 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
11401
af62665e
TT
114022020-03-31 Tom Tromey <tromey@adacore.com>
11403
11404 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
11405 memcpy.
11406
d1a89da5
NC
114072020-03-30 Nelson Chu <nelson.chu@sifive.com>
11408
11409 * features/riscv/32bit-csr.xml: Regenerated.
11410 * features/riscv/64bit-csr.xml: Regenerated.
11411
d8af9068
TT
114122020-03-30 Tom Tromey <tromey@adacore.com>
11413
11414 * ada-valprint.c (print_variant_part): Update.
11415 * ada-lang.h (ada_which_variant_applies): Update.
11416 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
11417 outer_valaddr parameters; replace with "outer" value parameter.
11418 (to_fixed_variant_branch_type): Update.
11419
227c0bf4
PFC
114202020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11421
11422 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
11423 <list>. Remove inclusion of observable.h.
11424 (PPC_DEBUG_CURRENT_VERSION): Move up define.
11425 (struct arch_lwp_info): New struct.
11426 (class ppc_linux_dreg_interface): New class.
11427 (struct ppc_linux_process_info): New struct.
11428 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
11429 <low_new_clone, low_forget_process, low_prepare_to_resume>
11430 <copy_thread_dreg_state, mark_thread_stale>
11431 <mark_debug_registers_changed, register_hw_breakpoint>
11432 <clear_hw_breakpoint, register_wp, clear_wp>
11433 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
11434 <num_memory_accesses, get_trigger_type>
11435 <create_watchpoint_request, hwdebug_point_cmp>
11436 <init_arch_lwp_info, get_arch_lwp_info>
11437 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
11438 methods.
11439 <struct ptid_hash>: New inner struct.
11440 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
11441 members.
11442 (saved_dabr_value, hwdebug_info, max_slots_number)
11443 (struct hw_break_tuple, struct thread_points, ppc_threads)
11444 (have_ptrace_hwdebug_interface)
11445 (hwdebug_find_thread_points_by_tid)
11446 (hwdebug_insert_point, hwdebug_remove_point): Remove.
11447 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
11448 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
11449 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
11450 use m_dreg_interface.
11451 (hwdebug_point_cmp): Change to...
11452 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
11453 reference arguments instead of pointers.
11454 (ppc_linux_nat_target::ranged_break_num_registers): Use
11455 m_dreg_interface.
11456 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
11457 m_dreg_interface. Call register_hw_breakpoint.
11458 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
11459 m_dreg_interface. Call clear_hw_breakpoint.
11460 (get_trigger_type): Change to...
11461 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
11462 comment.
11463 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
11464 use m_dreg_interface. Call register_hw_breakpoint.
11465 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
11466 use m_dreg_interface. Call clear_hw_breakpoint.
11467 (can_use_watchpoint_cond_accel): Change to...
11468 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
11469 method. Update comment, use m_dreg_interface and
11470 m_process_info.
11471 (calculate_dvc): Change to...
11472 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
11473 m_dreg_interface.
11474 (num_memory_accesses): Change to...
11475 (ppc_linux_nat_target::num_memory_accesses): ...this method.
11476 (check_condition): Change to...
11477 (ppc_linux_nat_target::check_condition): ...this method.
11478 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
11479 comment, use m_dreg_interface.
11480 (create_watchpoint_request): Change to...
11481 (ppc_linux_nat_target::create_watchpoint_request): ...this
11482 method. Use m_dreg_interface.
11483 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
11484 m_dreg_interface. Call register_hw_breakpoint or register_wp.
11485 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
11486 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
11487 (ppc_linux_nat_target::low_forget_process)
11488 (ppc_linux_nat_target::low_new_fork)
11489 (ppc_linux_nat_target::low_new_clone)
11490 (ppc_linux_nat_target::low_delete_thread)
11491 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
11492 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
11493 only call mark_thread_stale.
11494 (ppc_linux_thread_exit): Remove.
11495 (ppc_linux_nat_target::stopped_data_address): Change to...
11496 (ppc_linux_nat_target::low_stopped_data_address): This. Add
11497 comment, use m_dreg_interface and m_thread_hw_breakpoints.
11498 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
11499 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
11500 comment. Call low_stopped_data_address.
11501 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
11502 m_dreg_interface.
11503 (ppc_linux_nat_target::masked_watch_num_registers): Use
11504 m_dreg_interface.
11505 (ppc_linux_nat_target::copy_thread_dreg_state)
11506 (ppc_linux_nat_target::mark_thread_stale)
11507 (ppc_linux_nat_target::mark_debug_registers_changed)
11508 (ppc_linux_nat_target::register_hw_breakpoint)
11509 (ppc_linux_nat_target::clear_hw_breakpoint)
11510 (ppc_linux_nat_target::register_wp)
11511 (ppc_linux_nat_target::clear_wp)
11512 (ppc_linux_nat_target::init_arch_lwp_info)
11513 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
11514 (_initialize_ppc_linux_nat): Remove observer callback.
11515
4db10d8f
PFC
115162020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11517
11518 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
11519 (ppc_linux_nat_target::auxv_parse)
11520 (ppc_linux_nat_target::read_description)
11521 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
11522 Move up.
11523
1310c1b0
PFC
115242020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11525
11526 * linux-nat.h (low_new_clone): New method.
11527 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
11528
69b037c3
SM
115292020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
11530
11531 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
11532 (dbx_expand_psymtab): ... this.
11533 (start_psymtab): Update.
11534 * mdebugread.c (psymtab_to_symtab_1): Rename to...
11535 (mdebug_expand_psymtab): ... this.
11536 (parse_partial_symbols): Update.
11537 (new_psymtab): Update.
11538 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
11539 (xcoff_expand_psymtab): ... this.
11540 (xcoff_start_psymtab): Update.
11541
48993951
SM
115422020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
11543
11544 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
11545 <expand_dependencies>: ... this.
11546 * psymtab.c (partial_symtab::read_dependencies): Rename to...
11547 (partial_symtab::expand_dependencies): ... this.
11548 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
11549 Update.
11550 (dwarf2_psymtab::expand_psymtab): Update.
11551 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
11552 * mdebugread.c (psymtab_to_symtab_1): Update.
11553 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
11554
3ad83046
SM
115552020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
11556
11557 * psympriv.h (discard_psymtab): Remove.
11558 * dbxread.c (dbx_end_psymtab): Update.
11559 * xcoffread.c (xcoff_end_psymtab): Update.
11560
4d1b9ab6
TT
115612020-03-28 Tom Tromey <tom@tromey.com>
11562
11563 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
11564 comment.
11565
f1749218
TT
115662020-03-28 Tom Tromey <tom@tromey.com>
11567
11568 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
11569
ebea7626
HD
115702020-03-27 Hannes Domani <ssbssa@yahoo.de>
11571
11572 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
11573
a879b4d5
JB
115742020-03-26 John Baldwin <jhb@FreeBSD.org>
11575
11576 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
11577
0826b30a
TT
115782020-03-26 Tom Tromey <tom@tromey.com>
11579
11580 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
11581 (mark_common_block_symbol_computed, read_tag_string_type)
11582 (attr_to_dynamic_prop, read_subrange_type): Update.
11583 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
11584 to be methods on struct attribute.
11585 (skip_one_die, process_imported_unit_die, read_namespace_alias)
11586 (read_call_site_scope, partial_die_info::read)
11587 (partial_die_info::read, lookup_die_type, follow_die_ref):
11588 Update.
11589 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
11590 from dwarf2_get_ref_die_offset.
11591 (attribute::constant_value): New method, from
11592 dwarf2_get_attr_constant_value.
11593 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
11594 Declare method.
11595 <constant_value>: New method.
11596
2b2558bf
TT
115972020-03-26 Tom Tromey <tom@tromey.com>
11598
11599 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
11600 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
11601 (dwarf_type_encoding_name): Move to stringify.c.
11602 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
11603 * dwarf2/stringify.c: New file.
11604 * dwarf2/stringify.h: New file.
11605
eeb64781
TT
116062020-03-26 Tom Tromey <tom@tromey.com>
11607
11608 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
11609 Rewrite.
11610
a39fdb41
TT
116112020-03-26 Tom Tromey <tom@tromey.com>
11612
11613 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
11614 methods.
11615 * dwarf2/read.c (lookup_addr_base): Move to die.h.
11616 (lookup_ranges_base): Likewise.
11617 (read_cutu_die_from_dwo, read_full_die_1): Update.
11618
436c571c
TT
116192020-03-26 Tom Tromey <tom@tromey.com>
11620
11621 * dwarf2/read.c (read_import_statement, read_file_scope)
11622 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
11623 (read_lexical_block_scope, read_call_site_scope)
11624 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
11625 (handle_struct_member_die, process_structure_scope)
11626 (update_enumeration_type_from_children)
11627 (process_enumeration_scope, read_array_type, read_common_block)
11628 (read_namespace, read_module, read_subroutine_type): Update.
11629 (sibling_die): Remove.
11630
052c8bb8
TT
116312020-03-26 Tom Tromey <tom@tromey.com>
11632
11633 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
11634 (build_type_psymtabs_reader, read_structure_type)
11635 (read_enumeration_type, read_full_die_1): Update.
11636 (dwarf2_attr_no_follow): Move to die.h.
11637 * dwarf2/die.h (struct die_info) <attr>: New method.
11638
2b24b6e4
TT
116392020-03-26 Tom Tromey <tom@tromey.com>
11640
11641 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
11642 <base_address>: Now an optional.
11643 (dwarf2_find_base_address, dwarf2_rnglists_process)
11644 (dwarf2_ranges_process, fill_in_loclist_baton)
11645 (dwarf2_symbol_mark_computed): Update.
11646
c2d50fd0
TT
116472020-03-26 Tom Tromey <tom@tromey.com>
11648
11649 * dwarf2/read.c (struct die_info): Move to die.h.
11650 * dwarf2/die.h: New file.
11651
0df7ad3a
TT
116522020-03-26 Tom Tromey <tom@tromey.com>
11653
11654 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
11655 * dwarf2/read.c
11656 (dwarf2_statement_list_fits_in_line_number_section_complaint):
11657 Move to line-header.c.
11658 (read_checked_initial_length_and_offset, read_formatted_entries):
11659 Likewise.
11660 (dwarf_decode_line_header): Split into two.
11661 * dwarf2/line-header.c
11662 (dwarf2_statement_list_fits_in_line_number_section_complaint):
11663 Move from read.c.
11664 (read_checked_initial_length_and_offset, read_formatted_entries):
11665 Likewise.
11666 (dwarf_decode_line_header): New function, split from read.c.
11667
86c0bb4c
TT
116682020-03-26 Tom Tromey <tom@tromey.com>
11669
11670 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
11671 Declare method.
11672 * dwarf2/read.c (read_attribute_value): Update.
11673 (dwarf2_per_objfile::read_line_string): Rename from
11674 read_indirect_line_string.
11675 (read_formatted_entries): Update.
11676
2ef46c2f
TT
116772020-03-26 Tom Tromey <tom@tromey.com>
11678
11679 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
11680 variable.
11681
4f9c1eda
TT
116822020-03-26 Tom Tromey <tom@tromey.com>
11683
11684 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
11685 const.
11686 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
11687 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
11688 parameter const.
11689
5a0e026f
TT
116902020-03-26 Tom Tromey <tom@tromey.com>
11691
11692 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
11693 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
11694 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
11695 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
11696
8844c11b
TT
116972020-03-26 Tom Tromey <tom@tromey.com>
11698
11699 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
11700 file_names_size, file_full_name, file_file_name>: Use const.
11701 <file_name_at, file_names>: Add const overload.
11702 * dwarf2/line-header.c (line_header::file_file_name)
11703 (line_header::file_full_name): Update.
11704
c90ec28a
TT
117052020-03-26 Tom Tromey <tom@tromey.com>
11706
11707 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
11708 (macro_start_file, consume_improper_spaces)
11709 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
11710 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
11711 (dwarf_decode_macros): Move to macro.c.
11712 * dwarf2/macro.c: New file.
11713 * dwarf2/macro.h: New file.
11714 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
11715
4f44ae6c
TT
117162020-03-26 Tom Tromey <tom@tromey.com>
11717
11718 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
11719 method.
11720 * dwarf2/section.c: New method. From
11721 read_indirect_string_at_offset_from.
11722 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
11723 (read_indirect_string_at_offset_from): Move to section.c.
11724 (read_indirect_string_at_offset): Rewrite.
11725 (read_indirect_line_string_at_offset): Remove.
11726 (read_indirect_string, read_indirect_line_string)
11727 (dwarf_decode_macro_bytes): Update.
11728
a0194fa8
TT
117292020-03-26 Tom Tromey <tom@tromey.com>
11730
11731 * dwarf2/section.h (struct dwarf2_section_info)
11732 <overload_complaint>: Declare.
11733 (dwarf2_section_buffer_overflow_complaint): Don't declare.
11734 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
11735 Rename from dwarf2_section_buffer_overflow_complaint.
11736 * dwarf2/read.c (skip_one_die, partial_die_info::read)
11737 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
11738
3d27bbdb
TT
117392020-03-26 Tom Tromey <tom@tromey.com>
11740
11741 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
11742 Declare.
11743 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
11744 Move from read.c.
11745 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
11746 to section.c.
11747
9eac9650
TT
117482020-03-26 Tom Tromey <tom@tromey.com>
11749
11750 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
11751
bf80d710
TT
117522020-03-26 Tom Tromey <tom@tromey.com>
11753
11754 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
11755 "builder".
11756 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
11757 parameter.
11758 (dwarf_decode_macros): Update.
11759
0314b390
TT
117602020-03-26 Tom Tromey <tom@tromey.com>
11761
11762 * dwarf2/read.c (read_attribute_value): Update.
11763 (read_indirect_string_from_dwz): Move to dwz.c; change into
11764 method.
11765 (dwarf_decode_macro_bytes): Update.
11766 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
11767 * dwarf2/dwz.c: New file.
11768 * Makefile.in (COMMON_SFILES): Add dwz.c.
11769
9fda78b6
TT
117702020-03-26 Tom Tromey <tom@tromey.com>
11771
11772 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
11773 * dwarf2/read.c: Add include.
11774 * dwarf2/index-write.c: Add include.
11775 * dwarf2/index-cache.c: Add include.
11776 * dwarf2/dwz.h: New file.
11777
33aa3c10
TT
117782020-03-25 Tom Tromey <tom@tromey.com>
11779
11780 * compile/compile-object-load.c (get_out_value_type): Mention
11781 correct symbol name in error message.
11782
d503b685
HD
117832020-03-25 Hannes Domani <ssbssa@yahoo.de>
11784
11785 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
11786
7b1eff95
TV
117872020-03-25 Tom de Vries <tdevries@suse.de>
11788
11789 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
11790 * symmisc.c (dump_symtab_1): Print user and includes fields.
11791 (maintenance_info_symtabs): Same.
11792
dd895392
AB
117932020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
11794
11795 PR gdb/25534
11796 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
11797 (riscv_regcache_cooked_write): New function.
11798 (riscv_push_dummy_call): Use new function.
11799 (riscv_return_value): Likewise.
11800
5ab2fbf1
SM
118012020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
11802
11803 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
11804 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
11805 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
11806 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
11807 * infrun.c (follow_fork): Likewise.
11808 (follow_fork_inferior): Likewise.
11809 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
11810 * linux-nat.h (class linux_nat_target): Likewise.
11811 * remote.c (class remote_target) <follow_fork>: Likewise.
11812 (remote_target::follow_fork): Likewise.
11813 * target-delegates.c: Re-generate.
11814 * target.c (default_follow_fork): Likewise.
11815 (target_follow_fork): Likewise.
11816 * target.h (struct target_ops) <follow_fork>: Likewise.
11817 (target_follow_fork): Likewise.
11818
a64fafb5
TV
118192020-03-24 Tom de Vries <tdevries@suse.de>
11820
11821 * psymtab.c (maintenance_info_psymtabs): Print user field.
11822
fe26d3a3
TT
118232020-03-20 Tom Tromey <tromey@adacore.com>
11824
11825 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
11826 const.
11827 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
11828 const.
11829
c884cc46
SM
118302020-03-20 Simon Marchi <simon.marchi@efficios.com>
11831
11832 * ptrace.m4: Don't check for ptrace declaration.
11833 * config.in: Re-generate.
11834 * configure: Re-generate.
11835 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
11836 not defined.
11837
1ff700c2
KR
118382020-03-20 Kamil Rytarowski <n54@gmx.com>
11839
11840 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
11841 `PTRACE_TYPE_RET'.
11842 * i386-bsd-nat.c (gdb_ptrace): Likewise.
11843 * sparc-nat.c (gdb_ptrace): Likewise.
11844 * x86-bsd-nat.c (gdb_ptrace): Likewise.
11845
f7d4f0b1
TT
118462020-03-20 Tom Tromey <tromey@adacore.com>
11847
11848 * c-exp.y (lex_one_token): Fix assert.
11849
f67210ff
TT
118502020-03-20 Tom Tromey <tromey@adacore.com>
11851
11852 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
11853 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
11854 strncpy call.
11855
1773be9e
TT
118562020-03-20 Tom Tromey <tromey@adacore.com>
11857
11858 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
11859
70304be9
TT
118602020-03-20 Tom Tromey <tromey@adacore.com>
11861
11862 * ada-valprint.c (print_variant_part): Remove parameters; switch
11863 to value-based API.
11864 (print_field_values): Likewise.
11865 (ada_val_print_struct_union): Likewise.
11866 (ada_value_print_1): Update.
11867
9faa006d
KR
118682020-03-20 Kamil Rytarowski <n54@gmx.com>
11869
11870 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
11871 nbsd_nat_target instead of inf_ptrace_target.
11872 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11873 nbsd_nat_target.
11874
4a90f062
KR
118752020-03-20 Kamil Rytarowski <n54@gmx.com>
11876
11877 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
11878 it to the ptrace call.
11879 * (store_registers): Likewise.
11880
118812020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
11882
11883 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
11884 it to the ptrace call.
11885 * (store_registers): Likewise.
11886
2d07da27
LM
118872020-03-19 Luis Machado <luis.machado@linaro.org>
11888
11889 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
11890 valid, fetch vg value from ptrace.
11891
f09db380
KR
118922020-03-19 Kamil Rytarowski <n54@gmx.com>
11893 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
11894 * inf-ptrace.c: Likewise.
11895 * (gdb_ptrace): Add.
11896 * (inf_ptrace_target::resume): Update.
11897 * (inf_ptrace_target::xfer_partial): Likewise.
11898 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
11899 * (inf_ptrace_peek_poke): Update.
11900
fcc7376e
KR
119012020-03-19 Kamil Rytarowski <n54@gmx.com>
11902
11903 * x86-bsd-nat.c (gdb_ptrace): New.
11904 * (x86bsd_dr_set): Add new argument `ptid'.
11905 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
11906 x86bsd_dr_set_addr): Update.
11907
cada5fc9
AB
119082020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
11909
11910 * remote.c (remote_target::process_stop_reply): Handle events for
11911 all threads differently.
11912
19a2740f
AB
119132020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
11914
11915 * completer.c (completion_tracker::remove_completion): Define new
11916 function.
11917 * completer.h (completion_tracker::remove_completion): Declare new
11918 function.
11919 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
11920 when adding a C++ function symbol.
11921
724fd9ba
AB
119222020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
11923
11924 * completer.c (completion_tracker::completion_hash_entry): Define
11925 new class.
11926 (advance_to_filename_complete_word_point): Call
11927 recompute_lowest_common_denominator.
11928 (completion_tracker::completion_tracker): Call discard_completions
11929 to setup the hash table.
11930 (completion_tracker::discard_completions): Allow for being called
11931 from the constructor, pass new equal function, and element deleter
11932 when constructing the hash table. Initialise new class member
11933 variables.
11934 (completion_tracker::maybe_add_completion): Remove use of
11935 m_entries_vec, and store more information into m_entries_hash.
11936 (completion_tracker::recompute_lcd_visitor): New function, most
11937 content taken from...
11938 (completion_tracker::recompute_lowest_common_denominator):
11939 ...here, this now just visits each item in the hash calling the
11940 above visitor.
11941 (completion_tracker::build_completion_result): Remove use of
11942 m_entries_vec, call recompute_lowest_common_denominator.
11943 * completer.h (completion_tracker::have_completions): Remove use
11944 of m_entries_vec.
11945 (completion_tracker::completion_hash_entry): Declare new class.
11946 (completion_tracker::recompute_lowest_common_denominator): Change
11947 function signature.
11948 (completion_tracker::recompute_lcd_visitor): Declare new function.
11949 (completion_tracker::m_entries_vec): Delete.
11950 (completion_tracker::m_entries_hash): Initialize to NULL.
11951 (completion_tracker::m_lowest_common_denominator_valid): New
11952 member variable.
11953 (completion_tracker::m_lowest_common_denominator_max_length): New
11954 member variable.
11955
5a82b8a1
KR
119562020-03-17 Kamil Rytarowski <n54@gmx.com>
11957
11958 * regformats/regdef.h: Put reg in gdb namespace.
11959
fb516a69
KR
119602020-03-17 Kamil Rytarowski <n54@gmx.com>
11961
11962 * i386-bsd-nat.c (gdb_ptrace): New.
11963 * (i386bsd_fetch_inferior_registers,
11964 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
11965 * (i386bsd_fetch_inferior_registers,
11966 i386bsd_store_inferior_registers) Use gdb_ptrace.
11967
1c0aa1fb
KR
119682020-03-17 Kamil Rytarowski <n54@gmx.com>
11969
11970 * amd64-bsd-nat.c (gdb_ptrace): New.
11971 * (amd64bsd_fetch_inferior_registers,
11972 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
11973 * (amd64bsd_fetch_inferior_registers,
11974 amd64bsd_store_inferior_registers) Use gdb_ptrace.
11975
5ccd2fb7
KR
119762020-03-17 Kamil Rytarowski <n54@gmx.com>
11977
11978 * user-regs.c (user_reg::read): Rename to...
11979 (user_reg::xread): ...this.
11980 * (append_user_reg): Rename argument `read' to `xread'.
11981 * (user_reg_add_builtin): Likewise.
11982 * (user_reg_add): Likewise.
11983 * (value_of_user_reg): Likewise.
11984
2108a63a
KR
119852020-03-17 Kamil Rytarowski <n54@gmx.com>
11986
11987 * sparc-nat.c (gdb_ptrace): New.
11988 * sparc-nat.c (sparc_fetch_inferior_registers)
11989 (sparc_store_inferior_registers) Remove obsolete comment.
11990 * sparc-nat.c (sparc_fetch_inferior_registers)
11991 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
11992 * sparc-nat.c (sparc_fetch_inferior_registers)
11993 (sparc_store_inferior_registers) Use gdb_ptrace.
11994
a225c9a8
KR
119952020-03-17 Kamil Rytarowski <n54@gmx.com>
11996
11997 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
11998 it to the ptrace call.
11999 * sh-nbsd-nat.c (store_registers): Likewise.
12000
98097623
KR
120012020-03-17 Kamil Rytarowski <n54@gmx.com>
12002
12003 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
12004 nbsd_nat_target instead of inf_ptrace_target.
12005 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12006 nbsd_nat_target.
12007
9e38d619
KR
120082020-03-17 Kamil Rytarowski <n54@gmx.com>
12009
12010 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
12011
a2ecbe9f
KR
120122020-03-17 Kamil Rytarowski <n54@gmx.com>
12013
12014 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
12015 <sys/sysctl.h>.
12016 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
12017
58990295
TV
120182020-03-17 Tom de Vries <tdevries@suse.de>
12019
12020 PR gdb/23710
12021 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
12022 fields.
12023 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
12024 fields.
12025 (process_imported_unit_die): Skip import of c++ CUs.
12026
771dd3a8
TT
120272020-03-16 Tom Tromey <tom@tromey.com>
12028
12029 * p-valprint.c (pascal_object_print_value): Initialize
12030 base_value.
12031
817a7585
AK
120322020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
12033 Shahab Vahedi <shahab@synopsys.com>
12034
12035 * Makefile.in: Add arch/arc.o
12036 * configure.tgt: Likewise.
12037 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
12038 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 12039 (arc_read_description): New function to cache target descriptions.
817a7585
AK
12040 * arc-tdep.h (arc_read_description): Add proto type.
12041 * arch/arc.c: New file.
12042 * arch/arc.h: Likewise.
12043 * features/Makefile: Replace old target descriptions with new.
12044 * features/arc-arcompact.c: Remove.
12045 * features/arc-arcompact.xml: Likewise.
12046 * features/arc-v2.c: Likewise
12047 * features/arc-v2.xml: Likewise
12048 * features/arc/aux-arcompact.xml: New file.
12049 * features/arc/aux-v2.xml: Likewise.
12050 * features/arc/core-arcompact.xml: Likewise.
12051 * features/arc/core-v2.xml: Likewise.
12052 * features/arc/aux-arcompact.c: Generate.
12053 * features/arc/aux-v2.c: Likewise.
12054 * features/arc/core-arcompact.c: Likewise.
12055 * features/arc/core-v2.c: Likewise.
12056 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
12057
67430cd0
TT
120582020-03-16 Tom Tromey <tromey@adacore.com>
12059
12060 PR gdb/25663:
12061 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
12062 putting value into bcache.
12063
30efb6c7
SM
120642020-03-16 Simon Marchi <simon.marchi@efficios.com>
12065
12066 PR gdb/21500
12067 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
12068 to...
12069 (amd64_windows_init_abi_common): ... this. Don't set size of
12070 long type.
12071 (amd64_windows_init_abi): New function.
12072 (amd64_cygwin_init_abi): New function.
12073 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
12074 the Cygwin OS ABI.
12075 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
12076 comment.
12077
8db52437
SM
120782020-03-16 Simon Marchi <simon.marchi@efficios.com>
12079
12080 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
12081 * windows-tdep.c (CYGWIN_DLL_NAME): New.
12082 (pe_import_directory_entry): New struct type.
12083 (is_linked_with_cygwin_dll): New function.
12084 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
12085 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
12086 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
12087
5982a56a
SM
120882020-03-16 Simon Marchi <simon.marchi@efficios.com>
12089
12090 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
12091 i386_cygwin_core_osabi_sniffer.
12092
7a1998df
SM
120932020-03-16 Simon Marchi <simon.marchi@efficios.com>
12094
12095 * i386-cygwin-tdep.c: Rename to...
12096 * i386-windows-tdep.c: ... this.
12097 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
12098 i386-windows-tdep.c.
12099 * configure.tgt: Likewise.
12100
053205cc
SM
121012020-03-16 Simon Marchi <simon.marchi@efficios.com>
12102
12103 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
12104 * osabi.c (gdb_osabi_names): Add "Windows".
12105 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
12106 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
12107 (i386_cygwin_core_osabi_sniffer): New function, extracted from
12108 i386_cygwin_osabi_sniffer.
12109 (_initialize_i386_cygwin_tdep): Register OS ABI
12110 GDB_OSABI_WINDOWS for i386.
12111 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
12112 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
12113 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
12114 for x86-64.
12115 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
12116 when the target matches '*-*-mingw*'.
12117
fe4b2ee6
SM
121182020-03-16 Simon Marchi <simon.marchi@efficios.com>
12119
12120 * defs.h (enum gdb_osabi): Move to...
12121 * osabi.h (enum gdb_osabi): ... here.
12122 * gdbarch.sh: Include osabi.h in gdbarch.h.
12123 * gdbarch.h: Re-generate.
12124
cb9b645d
SM
121252020-03-16 Simon Marchi <simon.marchi@efficios.com>
12126
12127 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
12128 function.
12129 (_initialize_amd64_windows_tdep): Register osabi sniffer.
12130
3293bbaf
TT
121312020-03-14 Tom Tromey <tom@tromey.com>
12132
12133 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
12134 for C++.
12135 (c_type_print_modifier): Likewise. Add "language" parameter.
12136 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
12137 (c_type_print_base_1): Update.
12138 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
12139 constants.
12140 * type-stack.c (type_stack::insert): Handle tp_atomic and
12141 tp_restrict.
12142 (type_stack::follow_type_instance_flags): Likewise.
12143 (type_stack::follow_types): Likewise. Merge type-following code.
12144 * c-exp.y (RESTRICT, ATOMIC): New tokens.
12145 (space_identifier, cv_with_space_id)
12146 (const_or_volatile_or_space_identifier_noopt)
12147 (const_or_volatile_or_space_identifier): Remove.
12148 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
12149 rules.
12150 (ptr_operator, typebase): Update.
12151 (enum token_flag) <FLAG_C>: New constant.
12152 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
12153 "_Atomic".
12154 (lex_one_token): Handle FLAG_C.
12155
154151a6
KR
121562020-03-14 Kamil Rytarowski <n54@gmx.com>
12157
12158 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
12159 it to the ptrace call.
12160 * m68k-bsd-nat.c (store_registers): Likewise.
12161
bc107784
KR
121622020-03-14 Kamil Rytarowski <n54@gmx.com>
12163
12164 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
12165 gdb_byte *.
12166 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
12167 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
12168 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
12169
01a80117
KR
121702020-03-14 Kamil Rytarowski <n54@gmx.com>
12171
12172 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
12173 nbsd_nat_target instead of inf_ptrace_target.
12174 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12175 nbsd_nat_target.
12176
f90280ca
KR
121772020-03-14 Kamil Rytarowski <n54@gmx.com>
12178
12179 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
12180 register_t.
12181
6def66f1
KR
121822020-03-14 Kamil Rytarowski <n54@gmx.com>
12183
12184 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
12185 it to the ptrace call.
12186 * alpha-bsd-nat.c (store_registers): Likewise.
12187
66eaca97
KR
121882020-03-14 Kamil Rytarowski <n54@gmx.com>
12189
12190 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
12191 includes.
12192 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
12193 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
12194 fill_fpregset): Likewise.
12195
4fed520b
KR
121962020-03-14 Kamil Rytarowski <n54@gmx.com>
12197
12198 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
12199 nbsd_nat_target instead of inf_ptrace_target.
12200 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12201 nbsd_nat_target.
12202
2190cf06
KR
122032020-03-14 Kamil Rytarowski <n54@gmx.com>
12204
12205 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
12206 register_t.
12207
75c56d3d
KR
122082020-03-14 Kamil Rytarowski <n54@gmx.com>
12209
12210 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
12211 it to the ptrace call.
12212 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
12213 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
12214 * arm-nbsd-nat.c (store_register): Likewise.
12215 * arm-nbsd-nat.c (store_regs): Likewise.
12216 * arm-nbsd-nat.c (store_fp_register): Likewise.
12217 * arm-nbsd-nat.c (store_fp_regs): Likewise.
12218
6018d381
KR
122192020-03-14 Kamil Rytarowski <n54@gmx.com>
12220
12221 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
12222 nbsd_nat_target instead of inf_ptrace_target.
12223 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12224 nbsd_nat_target.
12225
013f99f0
KR
122262020-03-14 Kamil Rytarowski <n54@gmx.com>
12227
12228 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
12229 it to the ptrace call.
12230 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
12231
12753073
KR
122322020-03-14 Kamil Rytarowski <n54@gmx.com>
12233
6227b330
KR
12234 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
12235 it to the ptrace call.
12236 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
12237
122382020-03-14 Kamil Rytarowski <n54@gmx.com>
12239
12240 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
12241 gdb_byte *.
12753073
KR
12242 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
12243
d5be5fa4
KR
122442020-03-14 Kamil Rytarowski <n54@gmx.com>
12245
12246 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
12247 instead of inf_ptrace_target.
12248 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12249 nbsd_nat_target.
12250
8110f842
KR
122512020-03-14 Kamil Rytarowski <n54@gmx.com>
12252
12253 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12254 register_t.
12255
52feded7
KR
122562020-03-14 Kamil Rytarowski <n54@gmx.com>
12257
12258 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12259 register_t.
12260
25567eee
KR
122612020-03-14 Kamil Rytarowski <n54@gmx.com>
12262
12263 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
12264 register_t.
12265
426a9c18
TT
122662020-03-13 Tom Tromey <tom@tromey.com>
12267
12268 * value.h (val_print): Don't declare.
12269 * valprint.h (val_print_array_elements)
12270 (val_print_scalar_formatted, generic_val_print): Don't declare.
12271 * valprint.c (generic_val_print_array): Take a struct value.
12272 (generic_val_print_ptr, generic_val_print_memberptr)
12273 (generic_val_print_bool, generic_val_print_int)
12274 (generic_val_print_char, generic_val_print_complex)
12275 (generic_val_print): Remove.
12276 (generic_value_print): Update.
12277 (do_val_print): Remove unused parameters. Don't call
12278 la_val_print.
12279 (val_print): Remove.
12280 (common_val_print): Update. Don't call value_check_printable.
12281 (val_print_scalar_formatted, val_print_array_elements): Remove.
12282 * rust-lang.c (rust_val_print): Remove.
12283 (rust_language_defn): Update.
12284 * p-valprint.c (pascal_val_print): Remove.
12285 (pascal_value_print_inner): Update.
12286 (pascal_object_print_val_fields, pascal_object_print_val):
12287 Remove.
12288 (pascal_object_print_static_field): Update.
12289 * p-lang.h (pascal_val_print): Don't declare.
12290 * p-lang.c (pascal_language_defn): Update.
12291 * opencl-lang.c (opencl_language_defn): Update.
12292 * objc-lang.c (objc_language_defn): Update.
12293 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
12294 * m2-lang.h (m2_val_print): Don't declare.
12295 * m2-lang.c (m2_language_defn): Update.
12296 * language.h (struct language_defn) <la_val_print>: Remove.
12297 * language.c (unk_lang_value_print_inner): Rename. Change
12298 argument types.
12299 (unknown_language_defn, auto_language_defn): Update.
12300 * go-valprint.c (go_val_print): Remove.
12301 * go-lang.h (go_val_print): Don't declare.
12302 * go-lang.c (go_language_defn): Update.
12303 * f-valprint.c (f_val_print): Remove.
12304 * f-lang.h (f_value_print): Don't declare.
12305 * f-lang.c (f_language_defn): Update.
12306 * d-valprint.c (d_val_print): Remove.
12307 * d-lang.h (d_value_print): Don't declare.
12308 * d-lang.c (d_language_defn): Update.
12309 * cp-valprint.c (cp_print_value_fields)
12310 (cp_print_value_fields_rtti, cp_print_value): Remove.
12311 (cp_print_static_field): Update.
12312 * c-valprint.c (c_val_print_array, c_val_print_ptr)
12313 (c_val_print_struct, c_val_print_union, c_val_print_int)
12314 (c_val_print_memberptr, c_val_print): Remove.
12315 * c-lang.h (c_val_print_array, cp_print_value_fields)
12316 (cp_print_value_fields_rtti): Don't declare.
12317 * c-lang.c (c_language_defn, cplus_language_defn)
12318 (asm_language_defn, minimal_language_defn): Update.
12319 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
12320 (ada_val_print_enum): Take a struct value.
12321 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
12322 (ada_val_print): Remove.
12323 (ada_value_print_1): Update.
12324 (printable_val_type): Remove.
12325 * ada-lang.h (ada_val_print): Don't declare.
12326 * ada-lang.c (ada_language_defn): Update.
12327
42331a1e
TT
123282020-03-13 Tom Tromey <tom@tromey.com>
12329
12330 * valprint.c (do_val_print): Update.
12331 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
12332 a struct value.
12333 (value_to_value_object_no_release): Declare.
12334 * python/py-value.c (value_to_value_object_no_release): New
12335 function.
12336 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
12337 struct value.
12338 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
12339 function.
12340 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
12341 a struct value.
12342 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
12343 Declare.
12344 (gdbscm_apply_val_pretty_printer): Take a struct value.
12345 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
12346 value.
12347 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
12348 value.
12349 * extension-priv.h (struct extension_language_ops)
12350 <apply_val_pretty_printer>: Take a struct value.
12351 * cp-valprint.c (cp_print_value): Create a struct value.
12352 (cp_print_value): Update.
12353
3a916a97
TT
123542020-03-13 Tom Tromey <tom@tromey.com>
12355
12356 * ada-valprint.c (print_field_values): Call common_val_print.
12357
b59eac37
TT
123582020-03-13 Tom Tromey <tom@tromey.com>
12359
12360 * ada-valprint.c (val_print_packed_array_elements): Remove
12361 bitoffset and val parameters. Call common_val_print.
12362 (ada_val_print_string): Remove offset, address, and original_value
12363 parameters.
12364 (ada_val_print_array): Update.
12365 (ada_value_print_array): New function.
12366 (ada_value_print_1): Call it.
12367
03371129
TT
123682020-03-13 Tom Tromey <tom@tromey.com>
12369
12370 * ada-valprint.c (ada_value_print): Use common_val_print.
12371
2e088f8b
TT
123722020-03-13 Tom Tromey <tom@tromey.com>
12373
12374 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
12375
39ef85a8
TT
123762020-03-13 Tom Tromey <tom@tromey.com>
12377
12378 * ada-valprint.c (ada_value_print_num): New function.
12379 (ada_value_print_1): Use it.
12380
b9fa6e07
TT
123812020-03-13 Tom Tromey <tom@tromey.com>
12382
12383 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
12384
416595d6
TT
123852020-03-13 Tom Tromey <tom@tromey.com>
12386
12387 * ada-valprint.c (ada_value_print_ptr): New function.
12388 (ada_value_print_1): Use it.
12389
5b5e15ec
TT
123902020-03-13 Tom Tromey <tom@tromey.com>
12391
12392 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
12393 call common_val_print.
12394 (ada_val_print_1): Update.
12395 (ada_value_print_1): New function.
12396 (ada_value_print_inner): Rewrite.
12397
fbf54e75
TT
123982020-03-13 Tom Tromey <tom@tromey.com>
12399
12400 * cp-valprint.c (cp_print_value_fields): Update.
12401 (cp_print_value): New function.
12402
64b653ca
TT
124032020-03-13 Tom Tromey <tom@tromey.com>
12404
12405 * m2-valprint.c (m2_value_print_inner): Use
12406 cp_print_value_fields.
12407 * cp-valprint.c (cp_print_value_fields): New function.
12408 * c-valprint.c (c_value_print_struct): New function.
12409 (c_value_print_inner): Use c_value_print_struct.
12410 * c-lang.h (cp_print_value_fields): Declare.
12411
6999f067
TT
124122020-03-13 Tom Tromey <tom@tromey.com>
12413
12414 * c-valprint.c (c_value_print_array): New function.
12415 (c_value_print_inner): Use it.
12416
ce80b8bd
TT
124172020-03-13 Tom Tromey <tom@tromey.com>
12418
12419 * c-valprint.c (c_value_print_memberptr): New function.
12420 (c_value_print_inner): Use it.
12421
2faac269
TT
124222020-03-13 Tom Tromey <tom@tromey.com>
12423
12424 * c-valprint.c (c_value_print_int): New function.
12425 (c_value_print_inner): Use it.
12426
da3e2c29
TT
124272020-03-13 Tom Tromey <tom@tromey.com>
12428
12429 * c-valprint.c (c_value_print_ptr): New function.
12430 (c_value_print_inner): Use it.
12431
50836231
TT
124322020-03-13 Tom Tromey <tom@tromey.com>
12433
12434 * c-valprint.c (c_value_print_inner): Rewrite.
12435
4f412b6e
TT
124362020-03-13 Tom Tromey <tom@tromey.com>
12437
12438 * valprint.c (generic_value_print_complex): New function.
12439 (generic_value_print): Use it.
12440
f5354008
TT
124412020-03-13 Tom Tromey <tom@tromey.com>
12442
12443 * valprint.c (generic_val_print_float): Don't call
12444 val_print_scalar_formatted.
12445 (generic_val_print, generic_value_print): Update.
12446
3eec3b05
TT
124472020-03-13 Tom Tromey <tom@tromey.com>
12448
12449 * valprint.c (generic_value_print_char): New function
12450 (generic_value_print): Use it.
12451
fdddfccb
TT
124522020-03-13 Tom Tromey <tom@tromey.com>
12453
12454 * valprint.c (generic_value_print_int): New function.
12455 (generic_value_print): Use it.
12456
6dde7521
TT
124572020-03-13 Tom Tromey <tom@tromey.com>
12458
12459 * valprint.c (generic_value_print_bool): New function.
12460 (generic_value_print): Use it.
12461
4112d2e6
TT
124622020-03-13 Tom Tromey <tom@tromey.com>
12463
12464 * valprint.c (generic_val_print_func): Simplify.
12465 (generic_val_print, generic_value_print): Update.
12466
65786af6
TT
124672020-03-13 Tom Tromey <tom@tromey.com>
12468
12469 * valprint.c (generic_val_print_flags): Remove.
12470 (generic_val_print, generic_value_print): Update.
12471 (val_print_type_code_flags): Add original_value parameter.
12472
40f3ce18
TT
124732020-03-13 Tom Tromey <tom@tromey.com>
12474
12475 * valprint.c (generic_val_print): Update.
12476 (generic_value_print): Update.
12477 * valprint.c (generic_val_print_enum): Don't call
12478 val_print_scalar_formatted.
12479
2a5b130b
TT
124802020-03-13 Tom Tromey <tom@tromey.com>
12481
12482 * valprint.c (generic_value_print): Call generic_value_print_ptr.
12483 * valprint.c (generic_value_print_ptr): New function.
12484
abc66ce9
TT
124852020-03-13 Tom Tromey <tom@tromey.com>
12486
12487 * valprint.c (generic_value_print): Rewrite.
12488
07a32858
TT
124892020-03-13 Tom Tromey <tom@tromey.com>
12490
12491 * p-valprint.c (pascal_object_print_value_fields)
12492 (pascal_object_print_value): New functions.
12493
64d64d3a
TT
124942020-03-13 Tom Tromey <tom@tromey.com>
12495
12496 * p-valprint.c (pascal_value_print_inner): Rewrite.
12497
6a95a1f5
TT
124982020-03-13 Tom Tromey <tom@tromey.com>
12499
12500 * f-valprint.c (f_value_print_innner): Rewrite.
12501
59fcdac6
TT
125022020-03-13 Tom Tromey <tom@tromey.com>
12503
12504 * m2-valprint.c (m2_print_unbounded_array): New overload.
12505 (m2_print_unbounded_array): Update.
12506 (m2_print_array_contents): Take a struct value.
12507 (m2_value_print_inner): Rewrite.
12508
d133c3e1
TT
125092020-03-13 Tom Tromey <tom@tromey.com>
12510
12511 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
12512 (d_value_print_inner): New function.
12513 * d-lang.h (d_value_print_inner): Declare.
12514 * d-lang.c (d_language_defn): Use d_value_print_inner.
12515
23b0f06b
TT
125162020-03-13 Tom Tromey <tom@tromey.com>
12517
12518 * go-valprint.c (go_value_print_inner): New function.
12519 * go-lang.h (go_value_print_inner): Declare.
12520 * go-lang.c (go_language_defn): Use go_value_print_inner.
12521
5f56f7cb
TT
125222020-03-13 Tom Tromey <tom@tromey.com>
12523
12524 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
12525 API.
12526 (rust_val_print): Rewrite.
12527 (rust_value_print_inner): New function, from rust_val_print.
12528 (rust_language_defn): Use rust_value_print_inner.
12529
26792ee0
TT
125302020-03-13 Tom Tromey <tom@tromey.com>
12531
12532 * ada-valprint.c (ada_value_print_inner): New function.
12533 * ada-lang.h (ada_value_print_inner): Declare.
12534 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
12535
24051bbe
TT
125362020-03-13 Tom Tromey <tom@tromey.com>
12537
12538 * f-valprint.c (f_value_print_innner): New function.
12539 * f-lang.h (f_value_print_innner): Declare.
12540 * f-lang.c (f_language_defn): Use f_value_print_innner.
12541
c0941be6
TT
125422020-03-13 Tom Tromey <tom@tromey.com>
12543
12544 * p-valprint.c (pascal_value_print_inner): New function.
12545 * p-lang.h (pascal_value_print_inner): Declare.
12546 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
12547
62c4663d
TT
125482020-03-13 Tom Tromey <tom@tromey.com>
12549
12550 * m2-valprint.c (m2_value_print_inner): New function.
12551 * m2-lang.h (m2_value_print_inner): Declare.
12552 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
12553
62182190
TT
125542020-03-13 Tom Tromey <tom@tromey.com>
12555
12556 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
12557 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
12558 * c-valprint.c (c_value_print_inner): New function.
12559 * c-lang.h (c_value_print_inner): Declare.
12560 * c-lang.c (c_language_defn, cplus_language_defn)
12561 (asm_language_defn, minimal_language_defn): Use
12562 c_value_print_inner.
12563
1e592a8a
TT
125642020-03-13 Tom Tromey <tom@tromey.com>
12565
12566 * p-valprint.c (pascal_object_print_value_fields): Now static.
12567 * p-lang.h (pascal_object_print_value_fields): Don't declare.
12568
7fe471e9
TT
125692020-03-13 Tom Tromey <tom@tromey.com>
12570
12571 * c-valprint.c (c_val_print_array): Simplify.
12572
d121c6ce
TT
125732020-03-13 Tom Tromey <tom@tromey.com>
12574
12575 * valprint.c (value_print_array_elements): New function.
12576 * valprint.h (value_print_array_elements): Declare.
12577
4dba70ee
TT
125782020-03-13 Tom Tromey <tom@tromey.com>
12579
12580 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
12581 * mips-tdep.c (mips_print_register): Use
12582 value_print_scalar_formatted.
12583
4f9ae810
TT
125842020-03-13 Tom Tromey <tom@tromey.com>
12585
12586 * valprint.h (value_print_scalar_formatted): Declare.
12587 * valprint.c (value_print_scalar_formatted): New function.
12588
156bfec9
TT
125892020-03-13 Tom Tromey <tom@tromey.com>
12590
12591 * valprint.h (generic_value_print): Declare.
12592 * valprint.c (generic_value_print): New function.
12593
2b4e573d
TT
125942020-03-13 Tom Tromey <tom@tromey.com>
12595
12596 * valprint.c (do_val_print): Call la_value_print_inner, if
12597 available.
12598 * rust-lang.c (rust_language_defn): Update.
12599 * p-lang.c (pascal_language_defn): Update.
12600 * opencl-lang.c (opencl_language_defn): Update.
12601 * objc-lang.c (objc_language_defn): Update.
12602 * m2-lang.c (m2_language_defn): Update.
12603 * language.h (struct language_defn) <la_value_print_inner>: New
12604 member.
12605 * language.c (unknown_language_defn, auto_language_defn): Update.
12606 * go-lang.c (go_language_defn): Update.
12607 * f-lang.c (f_language_defn): Update.
12608 * d-lang.c (d_language_defn): Update.
12609 * c-lang.c (c_language_defn, cplus_language_defn)
12610 (asm_language_defn, minimal_language_defn): Update.
12611 * ada-lang.c (ada_language_defn): Update.
12612
a1f6a07c
TT
126132020-03-13 Tom Tromey <tom@tromey.com>
12614
12615 * c-valprint.c (c_value_print): Use common_val_print.
12616
410cf315
TT
126172020-03-13 Tom Tromey <tom@tromey.com>
12618
12619 * cp-valprint.c (cp_print_static_field): Use common_val_print.
12620
72a45c93
TT
126212020-03-13 Tom Tromey <tom@tromey.com>
12622
12623 * f-valprint.c (f77_print_array_1, f_val_print): Use
12624 common_val_print.
12625
040f66bd
TT
126262020-03-13 Tom Tromey <tom@tromey.com>
12627
12628 * riscv-tdep.c (riscv_print_one_register_info): Use
12629 common_val_print.
12630
a6e05a6c
TT
126312020-03-13 Tom Tromey <tom@tromey.com>
12632
12633 * mi/mi-main.c (output_register): Use common_val_print.
12634
3444c526
TT
126352020-03-13 Tom Tromey <tom@tromey.com>
12636
12637 * infcmd.c (default_print_one_register_info): Use
12638 common_val_print.
12639
c2a44efe
TT
126402020-03-13 Tom Tromey <tom@tromey.com>
12641
12642 * valprint.h (common_val_print_checked): Declare.
12643 * valprint.c (common_val_print_checked): New function.
12644 * stack.c (print_frame_arg): Use common_val_print_checked.
12645
b0c26e99
TT
126462020-03-13 Tom Tromey <tom@tromey.com>
12647
12648 * valprint.c (do_val_print): New function, from val_print.
12649 (val_print): Use do_val_print.
12650 (common_val_print): Use do_val_print.
12651
ce3acbe9
TT
126522020-03-13 Tom Tromey <tom@tromey.com>
12653
12654 * valprint.c (value_print): Use scoped_value_mark.
12655
96c7f873
TV
126562020-03-13 Tom de Vries <tdevries@suse.de>
12657
12658 PR symtab/25646
12659 * psymtab.c (partial_symtab::partial_symtab): Don't set
12660 globals_offset and statics_offset. Push element onto
12661 current_global_psymbols and current_static_psymbols stacks.
12662 (concat): New function.
12663 (end_psymtab_common): Set globals_offset and statics_offset. Pop
12664 element from current_global_psymbols and current_static_psymbols
12665 stacks. Concat popped elements to global_psymbols and
12666 static_symbols.
12667 (add_psymbol_to_list): Use current_global_psymbols and
12668 current_static_psymbols stacks.
12669 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
12670 current_static_psymbols fields.
12671
6ba0a321
CB
126722020-03-12 Christian Biesinger <cbiesinger@google.com>
12673
12674 * corelow.c (sniff_core_bfd): Remove.
12675 (class core_target) <m_core_vec>: Remove.
12676 (core_target::core_target): Update.
12677 (core_file_fns): Remove.
12678 (deprecated_add_core_fns): Remove.
12679 (default_core_sniffer): Remove.
12680 (sniff_core_bfd): Remove.
12681 (default_check_format): Remove.
12682 (gdb_check_format): Remove.
12683 (core_target_open): Update.
12684 (core_target::get_core_register_section): Update.
12685 (get_core_registers_cb): Update.
12686 (core_target::fetch_registers): Update.
12687 * gdbcore.h (struct core_fns): Remove.
12688 (deprecated_add_core_fns): Remove.
12689 (default_core_sniffer): Remove.
12690 (default_check_format): Remove.
12691
227031b2
TT
126922020-03-12 Tom Tromey <tom@tromey.com>
12693
12694 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
12695 CORE_ADDR.
12696 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
12697
53807e9f
TT
126982020-03-12 Tom Tromey <tom@tromey.com>
12699
12700 * remote.c (remote_target::download_tracepoint)
12701 (remote_target::enable_tracepoint)
12702 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
12703 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
12704 sprintf_vma.
12705
64f25102
TT
127062020-03-12 Tom Tromey <tom@tromey.com>
12707
12708 * symfile-mem.c: Update CORE_ADDR size assert.
12709
272cd5a3
SM
127102020-03-12 Simon Marchi <simon.marchi@efficios.com>
12711
12712 * selftest.m4: Move to gdbsupport/.
12713 * acinclude.m4: Update path to selftest.m4.
12714
74cd3f9d
SM
127152020-03-12 Simon Marchi <simon.marchi@efficios.com>
12716
12717 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
12718 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
12719 gdbarch-selfselftests.c and selftest-arch.c.
12720 (SUBDIR_UNITTESTS_OBS): Rename to...
12721 (SELFTESTS_OBS): ... this.
12722 (COMMON_SFILES): Remove disasm-selftests.c and
12723 gdbarch-selftests.c.
12724 * configure.ac: Don't add selftest-arch.{c,o} to
12725 CONFIG_{SRCS,OBS}.
12726 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
12727 preprocessor conditions.
12728
db6878ac
SM
127292020-03-12 Simon Marchi <simon.marchi@efficios.com>
12730
12731 * configure.ac: Don't source bfd/development.sh.
12732 * selftest.m4: Modify comment.
12733 * configure: Re-generate.
12734
4d696a5c
SM
127352020-03-12 Simon Marchi <simon.marchi@efficios.com>
12736
12737 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
12738 not "true" or "false".
12739 * configure: Re-generate.
12740
8dd8e1c7
CB
127412020-03-12 Christian Biesinger <cbiesinger@google.com>
12742
12743 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
12744 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
12745 renamed to arm_nbsd_supply_gregset.
12746 (fetch_register): Update to call arm_nbsd_supply_gregset.
12747 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
12748 (arm_netbsd_nat_target::fetch_registers): Update.
12749 (fetch_elfcore_registers): Removed.
12750 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
12751 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
12752 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
12753 not require NetBSD system headers.
12754 (arm_nbsd_regset): New struct.
12755 (arm_nbsd_iterate_over_regset_sections): New function.
12756 (arm_netbsd_init_abi_common): Updated to call
12757 set_gdbarch_iterate_over_regset_sections.
12758 * arm-nbsd-tdep.h: New file.
12759
dd69bf7a
KB
127602020-03-11 Kevin Buettner <kevinb@redhat.com>
12761
12762 * symtab.c (find_pc_sect_line): Add check which prevents infinite
12763 recursion.
12764
a0761e34
SM
127652020-03-11 Simon Marchi <simon.marchi@efficios.com>
12766
12767 * configure: Re-generate.
12768
e7a82140
TT
127692020-03-11 Tom Tromey <tromey@adacore.com>
12770
12771 * ada-typeprint.c (print_choices): Fix comment.
12772
dcc050c8
AB
127732020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
12774
12775 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
12776 previous item in the list, when the list has no items.
12777
1c33af77
TV
127782020-03-11 Tom de Vries <tdevries@suse.de>
12779
12780 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
12781 PROP_LOCLIST handling code.
12782
8c95582d
AB
127832020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
12784
12785 * buildsym-legacy.c (record_line): Pass extra parameter to
12786 record_line.
12787 * buildsym.c (buildsym_compunit::record_line): Take an extra
12788 parameter, reduce duplication in the line table, and record the
12789 is_stmt flag in the line table.
12790 * buildsym.h (buildsym_compunit::record_line): Add extra
12791 parameter.
12792 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
12793 non-statement lines.
12794 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
12795 this to the symtab builder.
12796 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
12797 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
12798 through to dwarf_record_line_1.
12799 * infrun.c (process_event_stop_test): When stepping, don't stop at
12800 a non-statement instruction, and only refresh the step info when
12801 we land in the middle of a line's range. Also add an extra
12802 comment.
12803 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
12804 field.
12805 * record-btrace.c (btrace_find_line_range): Only record lines
12806 marked as is-statement.
12807 * stack.c (frame_show_address): Show the frame address if we are
12808 in a non-statement sal.
12809 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
12810 (maintenance_print_one_line_table): Print a header for the is_stmt
12811 column, and include is_stmt information in the output.
12812 * symtab.c (find_pc_sect_line): Find lines marked as statements in
12813 preference to non-statements.
12814 (find_pcs_for_symtab_line): Prefer is-statement entries.
12815 (find_line_common): Likewise.
12816 * symtab.h (struct linetable_entry): Add is_stmt field.
12817 (struct symtab_and_line): Likewise.
12818 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
12819 arranging the line table.
12820
e4003a34
TV
128212020-03-07 Tom de Vries <tdevries@suse.de>
12822
12823 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
12824 DIE.
12825
e8932576
TT
128262020-03-07 Tom Tromey <tom@tromey.com>
12827
12828 * valops.c (value_literal_complex): Remove obsolete comment.
12829 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
12830 comment.
12831
29734269
SM
128322020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
12833
12834 * infrun.h: Forward-declare thread_info.
12835 (set_step_info): Add thread_info parameter, add doc.
12836 * infrun.c (set_step_info): Add thread_info parameter, move doc
12837 to header.
12838 * infrun.c (process_event_stop_test): Pass thread to
12839 set_step_info call.
12840 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
12841 set_step_info.
12842 (prepare_one_step): Add thread_info parameter, pass it to
12843 set_step_frame and prepare_one_step (recursive) call.
12844 (step_1): Pass thread to prepare_one_step call.
12845 (step_command_fsm::should_stop): Pass thread to
12846 prepare_one_step.
12847 (until_next_fsm): Pass thread to set_step_frame call.
12848 (finish_command): Pass thread to set_step_info call.
12849
b7d64b29
HD
128502020-03-06 Hannes Domani <ssbssa@yahoo.de>
12851
12852 * windows-tdep.c (windows_solib_create_inferior_hook):
12853 Check if inferior is running.
12854
09f2921c
TV
128552020-03-06 Tom de Vries <tdevries@suse.de>
12856
12857 * NEWS: Fix "the the".
12858 * ctfread.c: Same.
12859
fd760e79
TV
128602020-03-06 Tom de Vries <tdevries@suse.de>
12861
12862 * psymtab.c (psymtab_to_symtab): Don't print "done.".
12863
20ea4a60
AB
128642020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12865
12866 * .dir-locals.el: Add a comment referencing the other copies of
12867 this file.
12868
0afbabf0
JB
128692020-03-05 John Baldwin <jhb@FreeBSD.org>
12870
12871 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
12872 psargs.
12873
842806cb
TBA
128742020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12875
12876 * .gitattributes: New file.
12877
be1e3d3e
TT
128782020-03-04 Tom Tromey <tom@tromey.com>
12879
12880 * symmisc.c (print_symbol_bcache_statistics)
12881 (print_objfile_statistics): Update.
12882 * symfile.c (allocate_symtab): Use intern.
12883 * psymtab.c (partial_symtab::partial_symtab): Use intern.
12884 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
12885 macro_cache>: Remove.
12886 <string_cache>: New member.
12887 (struct objfile) <intern>: New methods.
12888 * elfread.c (elf_symtab_read): Use intern.
12889 * dwarf2/read.c (fixup_go_packaging): Intern package name.
12890 (dwarf2_compute_name, dwarf2_physname)
12891 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
12892 names.
12893 (guess_partial_die_structure_name): Update.
12894 (partial_die_info::fixup): Intern name.
12895 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
12896 name.
12897 (dwarf2_name): Intern name. Update.
12898 * buildsym.c (buildsym_compunit::get_macro_table): Use
12899 string_cache.
12900
4e7625fd
TT
129012020-03-04 Tom Tromey <tom@tromey.com>
12902
12903 * jit.c (bfd_open_from_target_memory): Make "target" const.
12904 * corefile.c (gnutarget): Now const.
12905 * gdbcore.h (gnutarget): Now const.
12906
46f9f931
HD
129072020-03-04 Hannes Domani <ssbssa@yahoo.de>
12908
12909 * NEWS: Mention support for WOW64 processes.
12910 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
12911 (amd64_windows_segment_register_p): Remove static.
12912 (_initialize_amd64_windows_nat): Update.
12913 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
12914 * i386-windows-nat.c (context_offset): Update.
12915 (i386_mappings): Rename and remove static.
12916 (i386_windows_segment_register_p): Remove static.
12917 (_initialize_i386_windows_nat): Update.
12918 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
12919 (STATUS_WX86_SINGLE_STEP): New macro.
12920 (EnumProcessModulesEx): New macro.
12921 (Wow64SuspendThread): New macro.
12922 (Wow64GetThreadContext): New macro.
12923 (Wow64SetThreadContext): New macro.
12924 (Wow64GetThreadSelectorEntry): New macro.
12925 (windows_set_context_register_offsets): Add static.
12926 (windows_set_segment_register_p): Likewise.
12927 (windows_add_thread): Adapt for WOW64 processes.
12928 (windows_fetch_one_register): Likewise.
12929 (windows_nat_target::fetch_registers): Likewise.
12930 (windows_store_one_register): Likewise.
12931 (display_selector): Likewise.
12932 (display_selectors): Likewise.
12933 (handle_exception): Likewise.
12934 (windows_continue): Likewise.
12935 (windows_nat_target::resume): Likewise.
12936 (windows_add_all_dlls): Likewise.
12937 (do_initial_windows_stuff): Likewise.
12938 (windows_nat_target::attach): Likewise.
12939 (windows_get_exec_module_filename): Likewise.
12940 (windows_nat_target::create_inferior): Likewise.
12941 (windows_xfer_siginfo): Likewise.
12942 (_initialize_loadable): Initialize Wow64SuspendThread,
12943 Wow64GetThreadContext, Wow64SetThreadContext,
12944 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
12945 * windows-nat.h (windows_set_context_register_offsets):
12946 Remove declaration.
12947 (windows_set_segment_register_p): Likewise.
12948 (i386_windows_segment_register_p): Add declaration.
12949 (amd64_windows_segment_register_p): Likewise.
12950
440cf44e
LM
129512020-03-04 Luis Machado <luis.machado@linaro.org>
12952
12953 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
12954 in "info registers" for AArch64/ARM.
12955
12956 The change caused "info registers" to not print GPR's.
12957
12958 gdb/ChangeLog:
12959
12960 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
12961
12962 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
12963 when reg->group is empty and reggroup is not.
12964
1009d92f
TT
129652020-03-03 Tom Tromey <tromey@adacore.com>
12966
12967 * dwarf2/frame.c (struct dwarf2_frame_cache)
12968 <checked_tailcall_bottom, entry_cfa_sp_offset,
12969 entry_cfa_sp_offset_p>: Remove members.
12970 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
12971 (dwarf2_frame_prev_register): Don't call
12972 dwarf2_tailcall_sniffer_first.
12973 (dwarf2_append_unwinders): Don't append tailcall unwinder.
12974 * frame-unwind.c (add_unwinder): New fuction.
12975 (frame_unwind_init): Use it. Add tailcall unwinder.
12976
5e5d66b6
AB
129772020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
12978 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12979
12980 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
12981 value should be printed as true.
12982
584cf46d
HD
129832020-03-03 Hannes Domani <ssbssa@yahoo.de>
12984
12985 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
12986 (windows_init_abi): Set and use windows_so_ops.
12987
7b973adc
SDJ
129882020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
12989
12990 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
12991 when verifying if dealing with a convenience variable.
12992
bb7b70ab
LM
129932020-03-03 Luis Machado <luis.machado@linaro.org>
12994
12995 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
12996
9822cb57
SM
129972020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12998
12999 * infrun.c (gdbarch_supports_displaced_stepping): New.
13000 (use_displaced_stepping): Break up conditions in smaller pieces.
13001 Use gdbarch_supports_displaced_stepping.
13002 (displaced_step_prepare_throw): Use
13003 gdbarch_supports_displaced_stepping.
13004
63e163f2
AB
130052020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13006
13007 * NEWS: Mention new behaviour of the history filename.
13008 * top.c (write_history_p): Add comment.
13009 (show_write_history_p): Add header comment, give a different
13010 message when history writing is on, but the history filename is
13011 empty.
13012 (history_filename): Add comment.
13013 (history_filename_empty): New function.
13014 (show_history_filename): Add header comment, give a different
13015 message when the filename is empty.
13016 (init_history): Compare history_filename against nullptr, and only
13017 read history if the filename is not empty.
13018 (set_history_filename): Add header comment, and only make
13019 non-empty filenames absolute.
13020 (init_main): Make the filename argument to 'set history filename'
13021 optional.
13022
81b86b97
CB
130232020-03-02 Christian Biesinger <cbiesinger@google.com>
13024
13025 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
13026 (arm_supply_vfpregset): ...this, and update to use VFP registers.
13027 (fetch_fp_register): Update.
13028 (fetch_fp_regs): Update.
13029 (store_fp_register): Update.
13030 (store_fp_regs): Update.
13031 (arm_netbsd_nat_target::read_description): New function.
13032 (fetch_elfcore_registers): Update.
13033
24ed6739
AB
130342020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13035
13036 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
13037 general_thread if the stop reply is missing a thread-id.
13038 (remote_target::process_stop_reply): Use the first non-exited
13039 thread if the target didn't pass a thread-id.
13040 * infrun.c (do_target_wait): Move call to
13041 switch_to_inferior_no_thread to ....
13042 (do_target_wait_1): ... here.
13043
a84bb2a0
JT
130442020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
13045
13046 * debuginfod-support.c: Include defs.h first.
13047
658dadf0
TV
130482020-02-28 Tom de Vries <tdevries@suse.de>
13049
13050 * symfile.c (set_initial_language): Use default language for lookup.
13051
4ebe4877
SM
130522020-02-28 Simon Marchi <simon.marchi@efficios.com>
13053
13054 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
13055 reader variable, pass `this` to read_cutu_die_from_dwo.
13056
e5da1139
AM
130572020-02-27 Aaron Merey <amerey@redhat.com>
13058
13059 * source.c (open_source_file): Check for nullptr when computing
13060 srcpath.
13061
317f7127
TT
130622020-02-27 Tom Tromey <tromey@adacore.com>
13063
13064 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
13065 member.
13066 (dwarf2_add_field): Don't update nfields.
13067 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
13068
3104d9ee
AB
130692020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13070
13071 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
13072 abs.
13073
b83470bf
TT
130742020-02-26 Tom Tromey <tom@tromey.com>
13075
13076 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
13077 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
13078 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
13079 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
13080 per_cu_data.
13081
edfe0a0c
TT
130822020-02-26 Tom Tromey <tom@tromey.com>
13083
13084 * dwarf2/index-write.c (psym_index_map): Change type.
13085 (add_address_entry_worker, write_one_signatured_type)
13086 (recursively_count_psymbols, recursively_write_psymbols)
13087 (class debug_names, psyms_seen_size, write_gdbindex)
13088 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
13089
0d79cdc4
AM
130902020-02-26 Aaron Merey <amerey@redhat.com>
13091
13092 * Makefile.in: Handle optional debuginfod support.
13093 * NEWS: Update.
13094 * README: Add --with-debuginfod summary.
13095 * config.in: Regenerate.
13096 * configure: Regenerate.
13097 * configure.ac: Handle optional debuginfod support.
13098 * debuginfod-support.c: debuginfod helper functions.
13099 * debuginfod-support.h: Ditto.
13100 * doc/gdb.texinfo: Add --with-debuginfod to configure options
13101 summary.
13102 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
13103 when a dwz file cannot be found.
13104 * elfread.c (elf_symfile_read): Query debuginfod servers when a
13105 debuginfo file cannot be found.
13106 * source.c (open_source_file): Query debuginfod servers when a
13107 source file cannot be found.
13108 * top.c (print_gdb_configuration): Include
13109 --{with,without}-debuginfod in the output.
13110
b65ce565
JG
131112020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
13112
13113 * thread.c (thr_try_catch_cmd): Print thread name.
13114
d4c9a4f8
SM
131152020-02-26 Simon Marchi <simon.marchi@efficios.com>
13116
13117 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
13118 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13119 dwarf2_fetch_die_type_sect_off): Move to...
13120 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
13121 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13122 dwarf2_fetch_die_type_sect_off): ... here.
13123 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
13124 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13125 dwarf2_fetch_die_type_sect_off): Move doc to header file.
13126
0dce4280
TV
131272020-02-26 Tom de Vries <tdevries@suse.de>
13128
13129 PR gdb/25603
13130 * symfile.c (set_initial_language): Exit-early if
13131 language_mode == language_mode_manual.
13132
450a1bfc
SM
131332020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13134
13135 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
13136 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
13137 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
13138
9e80cfa1
AB
131392020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
13140
13141 * gdbtypes.c (create_array_type_with_stride): Handle negative
13142 array strides.
13143 * valarith.c (value_subscripted_rvalue): Likewise.
13144
09624f1f
LM
131452020-02-25 Luis Machado <luis.machado@linaro.org>
13146
13147 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
13148
8cb5117c
SM
131492020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13150
13151 * loc.h (dwarf2_get_die_type): Move to...
13152 * read.h (dwarf2_get_die_type): ... here.
13153 * read.c (dwarf2_get_die_type): Move doc to header.
13154
c325c44e
JB
131552020-02-25 Joel Brobecker <brobecker@adacore.com>
13156
13157 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
13158 'gnulib/Makefile.in' to the list.
13159
4ac93832
TT
131602020-02-24 Tom Tromey <tom@tromey.com>
13161
13162 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
13163 Remove.
13164 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
13165 XOBNEWVEC.
13166
197400e8
TT
131672020-02-24 Tom Tromey <tom@tromey.com>
13168
13169 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
13170 New method.
13171 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
13172 (dw2_do_instantiate_symtab, dw2_get_file_names)
13173 (build_type_psymtab_dependencies, load_full_type_unit): Update.
13174
76935768
TT
131752020-02-24 Tom Tromey <tom@tromey.com>
13176
13177 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
13178 make_scoped_restore.
13179 (dwarf2_psymtab::read_symtab): Don't clear
13180 reading_partial_symbols.
13181
a88ef40d
TV
131822020-02-24 Tom de Vries <tdevries@suse.de>
13183
13184 PR gdb/25592
13185 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
13186
c9af6521
TV
131872020-02-24 Tom de Vries <tdevries@suse.de>
13188
13189 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
13190 commands layout next/prev/regs.
13191
5707a07a
TT
131922020-02-22 Tom Tromey <tom@tromey.com>
13193
13194 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
13195 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
13196
3b0fb49e
TT
131972020-02-22 Tom Tromey <tom@tromey.com>
13198
13199 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
13200
283be8bf
TT
132012020-02-22 Tom Tromey <tom@tromey.com>
13202
13203 * tui/tui-win.c (_initialize_tui_win): Add usage text.
13204 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
13205 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
13206 * tui/tui.c (_initialize_tui): Add usage text.
13207
ca793b96
TT
132082020-02-22 Tom Tromey <tom@tromey.com>
13209
13210 * tui/tui-win.c (tui_set_focus_command)
13211 (tui_set_win_height_command): Use error_no_arg.
13212 (_initialize_tui_win): Update help text.
13213 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
13214
432b5c40
TT
132152020-02-22 Tom Tromey <tom@tromey.com>
13216
13217 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
13218 * tui/tui-disasm.h (struct tui_disasm_window)
13219 <display_start_addr>: Declare.
13220 * tui/tui-source.h (struct tui_source_window)
13221 <display_start_addr>: Declare.
13222 * tui/tui-winsource.h (struct tui_source_window_base)
13223 <show_source_line, display_start_addr>: New methods.
13224 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
13225 Rename and move to protected section.
13226 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
13227 (tui_source_window_base::do_erase_source_content): Update.
13228 (tui_source_window_base::show_source_line): Now a method.
13229 (tui_source_window_base::show_source_content)
13230 (tui_source_window_base::tui_source_window_base)
13231 (tui_source_window_base::rerender)
13232 (tui_source_window_base::refill)
13233 (tui_source_window_base::do_scroll_horizontal)
13234 (tui_source_window_base::set_is_exec_point_at)
13235 (tui_source_window_base::update_breakpoint_info)
13236 (tui_source_window_base::update_exec_info): Update.
13237 * tui/tui-source.c (tui_source_window::set_contents)
13238 (tui_source_window::showing_source_p)
13239 (tui_source_window::do_scroll_vertical)
13240 (tui_source_window::location_matches_p)
13241 (tui_source_window::line_is_displayed): Update.
13242 (tui_source_window::display_start_addr): New method.
13243 * tui/tui-disasm.c (tui_disasm_window::set_contents)
13244 (tui_disasm_window::do_scroll_vertical)
13245 (tui_disasm_window::location_matches_p): Update.
13246 (tui_disasm_window::display_start_addr): New method.
13247
01b1af32
TT
132482020-02-22 Tom Tromey <tom@tromey.com>
13249
13250 * NEWS: Add entry for gdb.register_window_type.
13251 * tui/tui-layout.h (window_factory): New typedef.
13252 (tui_register_window): Declare.
13253 * tui/tui-layout.c (saved_tui_windows): New global.
13254 (tui_apply_current_layout): Use it.
13255 (tui_register_window): New function.
13256 * python/python.c (do_start_initialization): Call
13257 gdbpy_initialize_tui.
13258 (python_GdbMethods): Add "register_window_type" function.
13259 * python/python-internal.h (gdbpy_register_tui_window)
13260 (gdbpy_initialize_tui): Declare.
13261 * python/py-tui.c: New file.
13262 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
13263
fc96d20b
TT
132642020-02-22 Tom Tromey <tom@tromey.com>
13265
13266 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
13267
935c78c0
TT
132682020-02-22 Tom Tromey <tom@tromey.com>
13269
13270 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
13271 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
13272 * tui/tui-data.c (tui_set_win_with_focus): Remove.
13273 (tui_set_win_focus_to): Move from tui-win.c.
13274
0240c8f1
TT
132752020-02-22 Tom Tromey <tom@tromey.com>
13276
13277 * tui/tui-layout.c (make_standard_window, get_locator_window): New
13278 functions.
13279 (known_window_types): New global.
13280 (tui_get_window_by_name): Reimplement.
13281 (initialize_known_windows): New function.
13282 (validate_window_name): Rewrite.
13283 (_initialize_tui_layout): Call initialize_known_windows.
13284
fdb01f0c
TT
132852020-02-22 Tom Tromey <tom@tromey.com>
13286
13287 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
13288 Remove constants.
13289 * tui/tui-winsource.h (struct tui_source_window_base)
13290 <tui_source_window_base>: Remove parameter.
13291 * tui/tui-winsource.c
13292 (tui_source_window_base::tui_source_window_base): Remove
13293 parameter.
13294 (tui_source_window_base::refill): Update.
13295 * tui/tui-stack.h (struct tui_locator_window)
13296 <tui_locator_window>: Update.
13297 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
13298 Default the constructor.
13299 * tui/tui-regs.h (struct tui_data_item_window)
13300 <tui_data_item_window>: Default the constructor.
13301 (struct tui_data_window) <tui_data_window>: Likewise.
13302 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
13303 Default the constructor.
13304 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
13305 Default the constructor.
13306 <type>: Remove.
13307 (struct tui_win_info) <tui_win_info>: Default the constructor.
13308 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
13309 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
13310 Default the constructor.
13311
865a5aec
TT
133122020-02-22 Tom Tromey <tom@tromey.com>
13313
13314 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
13315 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
13316 * tui/tui-win.c (tui_resize_all): Don't call
13317 tui_delete_invisible_windows.
13318 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
13319 done.
13320 (tui_set_layout): Update.
13321 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
13322 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
13323 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
13324
e098d18c
TT
133252020-02-22 Tom Tromey <tom@tromey.com>
13326
13327 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
13328 correctly.
13329
eb9c8874
TT
133302020-02-22 Tom Tromey <tom@tromey.com>
13331
13332 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
13333
7eed1a8e
TT
133342020-02-22 Tom Tromey <tom@tromey.com>
13335
13336 * tui/tui-winsource.h (struct tui_source_window_iterator)
13337 <inner_iterator>: New etytypedef.
13338 <tui_source_window_iterator>: Take "end" parameter.
13339 <tui_source_window_iterator>: Take iterator.
13340 <operator*, advance>: Update.
13341 <m_iter>: Change type.
13342 <m_end>: New field.
13343 (struct tui_source_windows) <begin, end>: Update.
13344 * tui/tui-layout.c (tui_windows): New global.
13345 (tui_apply_current_layout): Clear tui_windows.
13346 (tui_layout_window::apply): Update tui_windows.
13347 * tui/tui-data.h (tui_windows): Declare.
13348 (all_tui_windows): Now inline function.
13349 (class tui_window_iterator, struct all_tui_windows): Remove.
13350
7c043ba6
TT
133512020-02-22 Tom Tromey <tom@tromey.com>
13352
13353 PR tui/17850:
13354 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
13355 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
13356 "height" argument.
13357 (class tui_layout_window) <get_sizes>: Likewise.
13358 (class tui_layout_split) <tui_layout_split>: Add "vertical"
13359 argument.
13360 <get_sizes>: Add "height" argument.
13361 <m_vertical>: New field.
13362 * tui/tui-layout.c (tui_layout_split::clone): Update.
13363 (tui_layout_split::get_sizes): Add "height" argument.
13364 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
13365 (tui_new_layout_command): Parse "-horizontal".
13366 (_initialize_tui_layout): Update help string.
13367 (tui_layout_split::specification): Add "-horizontal" when needed.
13368 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
13369 argument.
13370 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
13371 New methods.
13372
6bc56648
TT
133732020-02-22 Tom Tromey <tom@tromey.com>
13374
13375 * tui/tui-layout.h (enum tui_adjust_result): New.
13376 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
13377 (class tui_layout_window) <adjust_size>: Return
13378 tui_adjust_result. Rewrite.
13379 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
13380 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
13381
c22fef7e
TT
133822020-02-22 Tom Tromey <tom@tromey.com>
13383
13384 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
13385 parameter and return types.
13386 (class tui_layout_base) <specification>: Add "depth".
13387 (class tui_layout_window) <specification>: Add "depth".
13388 (class tui_layout_split) <specification>: Add "depth".
13389 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
13390 and return types.
13391 (tui_new_layout_command): Parse sub-layouts.
13392 (_initialize_tui_layout): Update help string.
13393 (tui_layout_window::specification): Add "depth".
13394 (add_layout_command): Update.
13395
ee325b61
TT
133962020-02-22 Tom Tromey <tom@tromey.com>
13397
13398 * NEWS: Add "tui new-layout" item.
13399 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
13400 Add new-layout command to help text.
13401 (validate_window_name): New function.
13402 (tui_new_layout_command): New function.
13403 (_initialize_tui_layout): Register "new-layout".
13404 (tui_layout_window::specification): New method.
13405 (tui_layout_window::specification): New method.
13406 * tui/tui-layout.h (class tui_layout_base) <specification>: New
13407 method.
13408 (class tui_layout_window) <specification>: New method.
13409 (class tui_layout_split) <specification>: New method.
13410
416eb92d
TT
134112020-02-22 Tom Tromey <tom@tromey.com>
13412
13413 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
13414 * tui/tui-win.c (window_name_completer): Update comment.
13415 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
13416 Declare method.
13417 (class tui_layout_window) <replace_window>: Likewise.
13418 (class tui_layout_split) <replace_window>: Likewise.
13419 (tui_set_layout): Don't declare.
13420 (tui_set_initial_layout): Declare function.
13421 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
13422 (asm_regs_layout): New globals.
13423 (tui_current_layout, show_layout): Remove.
13424 (tui_set_layout, tui_add_win_to_layout): Rewrite.
13425 (find_layout, tui_apply_layout): New function.
13426 (layout_completer): Remove.
13427 (tui_next_layout): Reimplement.
13428 (tui_next_layout_command): New function.
13429 (tui_set_initial_layout, tui_prev_layout_command): New functions.
13430 (tui_regs_layout): Reimplement.
13431 (tui_regs_layout_command): New function.
13432 (extract_display_start_addr): Rewrite.
13433 (next_layout, prev_layout): Remove.
13434 (tui_layout_window::replace_window): New method.
13435 (tui_layout_split::replace_window): New method.
13436 (destroy_layout): New function.
13437 (layout_list): New global.
13438 (add_layout_command): New function.
13439 (initialize_layouts): Update.
13440 (tui_layout_command): New function.
13441 (_initialize_tui_layout): Install "layout" commands.
13442 * tui/tui-data.h (enum tui_layout_type): Remove.
13443 (tui_current_layout): Don't declare.
13444
0dbc2fc7
TT
134452020-02-22 Tom Tromey <tom@tromey.com>
13446
13447 * tui/tui-regs.c (tui_reg_layout): Remove.
13448 (tui_reg_command): Use tui_regs_layout.
13449 * tui/tui-layout.h (tui_reg_command): Declare.
13450 * tui/tui-layout.c (tui_reg_command): New function.
13451
5afe342e
TT
134522020-02-22 Tom Tromey <tom@tromey.com>
13453
13454 * tui/tui.c (tui_rl_delete_other_windows): Call
13455 tui_remove_some_windows.
13456 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
13457 Declare method.
13458 (class tui_layout_window) <remove_windows>: New method.
13459 (class tui_layout_split) <remove_windows>: Declare.
13460 (tui_remove_some_windows): Declare.
13461 * tui/tui-layout.c (tui_remove_some_windows): New function.
13462 (tui_layout_split::remove_windows): New method.
13463
427326a8
TT
134642020-02-22 Tom Tromey <tom@tromey.com>
13465
13466 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
13467 * tui/tui-layout.h (tui_next_layout): Declare.
13468 * tui/tui-layout.c (tui_next_layout): New function.
13469
3fe12b6d
TT
134702020-02-22 Tom Tromey <tom@tromey.com>
13471
13472 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
13473 correct coordinates.
13474
59b8b5d2
TT
134752020-02-22 Tom Tromey <tom@tromey.com>
13476
13477 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
13478 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
13479 DATA_WIN case.
13480
2a3d458b
TT
134812020-02-22 Tom Tromey <tom@tromey.com>
13482
13483 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
13484 TUI_DISASM_WIN, not tui_win_list.
13485
3f0cbb04
TT
134862020-02-22 Tom Tromey <tom@tromey.com>
13487
13488 * valprint.c (generic_val_print_enum_1)
13489 (val_print_type_code_flags): Style member names.
13490 * rust-lang.c (val_print_struct, rust_print_enum)
13491 (rust_print_struct_def, rust_internal_print_type): Style member
13492 names.
13493 * p-valprint.c (pascal_object_print_value_fields): Style member
13494 names. Only call fprintf_symbol_filtered for static members.
13495 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
13496 * f-valprint.c (f_val_print): Style member names.
13497 * f-typeprint.c (f_type_print_base): Style member names.
13498 * cp-valprint.c (cp_print_value_fields): Style member names. Only
13499 call fprintf_symbol_filtered for static members.
13500 (cp_print_class_member): Style member names.
13501 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
13502 member names.
13503 * ada-valprint.c (ada_print_scalar): Style enum names.
13504 (ada_val_print_enum): Likewise.
13505 * ada-typeprint.c (print_enum_type): Style enum names.
13506
d4d947ae
TT
135072020-02-21 Tom Tromey <tom@tromey.com>
13508
13509 * psympriv.h (struct partial_symtab): Update comment.
13510
e94e944b
TT
135112020-02-21 Tom Tromey <tromey@adacore.com>
13512
13513 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
13514 type is CORE_ADDR.
13515
1eb73179
TV
135162020-02-21 Tom de Vries <tdevries@suse.de>
13517
13518 PR gdb/25534
13519 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
13520 if dependencies[i]->user != NULL.
13521
4f180d53
AT
135222020-02-21 Ali Tamur <tamur@google.com>
13523
13524 * dwarf2/read.c (dwarf2_name): Add null check.
13525
22b6cd70
TT
135262020-02-20 Tom Tromey <tom@tromey.com>
13527
13528 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
13529 ">=", in binary search.
13530 (dwarf2_find_containing_comp_unit): New overload.
13531 (run_test): New self-test.
13532 (_initialize_dwarf2_read): Register new test.
13533
bd0cf5a6
NC
135342020-02-20 Nelson Chu <nelson.chu@sifive.com>
13535
13536 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
13537 * riscv-tdep.h: Likewise.
13538 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
13539 rv32-only CSR.
13540 * features/riscv/64bit-csr.xml: Regenerated.
13541
3f702acd
SDJ
135422020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
13543 Tom Tromey <tom@tromey.com>
13544
13545 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
13546 of 'fputc_unfiltered'.
13547 (putchar_unfiltered): Call 'fputc_unfiltered'.
13548 (fputc_unfiltered): Call 'fputs_unfiltered'.
13549
d13c7322
AB
135502020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
13551
13552 * config.in: Regenerate.
13553 * configure: Regenerate.
13554 * configure.ac: Add --with-python-libdir option.
13555 * main.c: Use WITH_PYTHON_LIBDIR.
13556
869d8950
TT
135572020-02-19 Tom Tromey <tom@tromey.com>
13558
13559 * symtab.c (general_symbol_info::compute_and_set_names): Use
13560 obstack_strndup. Simplify call to symbol_set_demangled_name.
13561
298e9637
SM
135622020-02-19 Simon Marchi <simon.marchi@efficios.com>
13563
13564 * dwarf2/read.c (allocate_signatured_type_table,
13565 allocate_dwo_unit_table, allocate_type_unit_groups_table,
13566 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
13567 Remove objfile parameter, update all callers.
13568
08410482
DE
135692020-02-19 Doug Evans <dje@google.com>
13570
13571 PR rust/25535
13572 * rust-lang.c (rust_print_enum): Apply embedded_offset to
13573 rust_enum_variant calculation.
13574
dfdeeca1
TT
135752020-02-19 Tom Tromey <tromey@adacore.com>
13576
13577 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
13578
2ef5453b
TT
135792020-02-19 Tom Tromey <tromey@adacore.com>
13580
13581 * ada-lang.c (cache_symbol): Use obstack_strdup.
13582
9f1528a1
AB
135832020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
13584
13585 * configure: Regenerate.
13586
d3c22fa8
TT
135872020-02-19 Tom Tromey <tromey@adacore.com>
13588
13589 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
13590 NULL check.
13591
bf84f706
MR
135922020-02-19 Maciej W. Rozycki <macro@wdc.com>
13593
13594 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
13595
d1c9b20f
AB
135962020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
13597
13598 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
13599 if GDBSERVER is not defined.
13600 (riscv_tdesc_cache): Likewise, also store const target_desc.
13601 (STATIC_IN_GDB): Define.
13602 (riscv_create_target_description): Update declaration with
13603 STATIC_IN_GDB.
13604 (riscv_lookup_target_description): New function, only define if
13605 GDBSERVER is not defined.
13606 * arch/riscv.h (riscv_create_target_description): Declare only
13607 when GDBSERVER is defined.
13608 (riscv_lookup_target_description): New declaration when GDBSERVER
13609 is not defined.
13610 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
13611 (riscv_linux_read_features): ...this, and return
13612 riscv_gdbarch_features instead of target_desc.
13613 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
13614 (riscv_linux_read_description): Rename to...
13615 (riscv_linux_read_features): ...this.
13616 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
13617 Update to use riscv_gdbarch_features and
13618 riscv_lookup_target_description.
13619 * riscv-tdep.c (riscv_find_default_target_description): Use
13620 riscv_lookup_target_description instead of
13621 riscv_create_target_description.
13622
373d7ac0
SM
136232020-02-18 Simon Marchi <simon.marchi@efficios.com>
13624
13625 * valprint.c (generic_val_print_enum_1): When printing a flag
13626 enum with value 0 and there is no enumerator with value 0, print
13627 just "0" instead of "(unknown: 0x0)".
13628
b29a2df0
SM
136292020-02-18 Simon Marchi <simon.marchi@efficios.com>
13630
13631 * valprint.c (generic_val_print_enum_1): Print unknown part of
13632 flag enum in hex.
13633
6740f0cc
SM
136342020-02-18 Simon Marchi <simon.marchi@efficios.com>
13635
13636 * dwarf2/read.c (update_enumeration_type_from_children): Allow
13637 flag enums to contain duplicate enumerators.
13638 * valprint.c (generic_val_print_enum_1): Update comment.
13639
edd45eb0
SM
136402020-02-18 Simon Marchi <simon.marchi@efficios.com>
13641
13642 * dwarf2/read.c: Include "count-one-bits.h".
13643 (update_enumeration_type_from_children): If an enumerator has
13644 multiple bits set, don't treat the enumeration as a "flag enum".
13645 * valprint.c (generic_val_print_enum_1): Assert that enumerators
13646 of flag enums have 0 or 1 bit set.
13647
6d0cf446
BE
136482020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
13649
13650 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
13651 conversion.
13652 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13653 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
13654 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13655 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
13656 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13657
7001c1b7
SM
136582020-02-18 Simon Marchi <simon.marchi@efficios.com>
13659
13660 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
13661
fdb61c6c
SM
136622020-02-14 Simon Marchi <simon.marchi@efficios.com>
13663
13664 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
13665 displaced_step_closure_up.
13666 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
13667 (struct displaced_step_closure_up):
13668 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13669 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
13670 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
13671 Likewise.
13672 * gdbarch.sh (displaced_step_copy_insn): Likewise.
13673 * gdbarch.c, gdbarch.h: Re-generate.
13674 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
13675 displaced_step_closure_up.
13676 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13677 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
13678 * infrun.h (displaced_step_closure_up): New type alias.
13679 (struct displaced_step_inferior_state) <step_closure>: Change
13680 type to displaced_step_closure_up.
13681 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
13682 displaced_step_closure_up.
13683 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13684
a4a38eb4
TT
136852020-02-14 Tom Tromey <tom@tromey.com>
13686
13687 * minidebug.c (gnu_debug_key): New global.
13688 (find_separate_debug_file_in_section): Use it.
13689
e8217e61
SM
136902020-02-14 Simon Marchi <simon.marchi@efficios.com>
13691
13692 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
13693 std::unique_ptr.
13694 * gdbarch.c: Re-generate.
13695 * gdbarch.h: Re-generate.
13696 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
13697 change.
13698 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
13699 type to std::unique_ptr.
13700 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
13701 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13702 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
13703 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
13704 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
13705 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13706 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
13707 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
13708 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13709
d8d83535
SM
137102020-02-14 Simon Marchi <simon.marchi@efficios.com>
13711
13712 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
13713 std::unique_ptr.
13714 (displaced_step_clear): Rename to...
13715 (displaced_step_reset): ... this. Just call displaced->reset ().
13716 (displaced_step_clear_cleanup): Rename to...
13717 (displaced_step_reset_cleanup): ... this.
13718 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
13719 (displaced_step_fixup): Likewise.
13720 (resume_1): Likewise.
13721 (handle_inferior_event): Restore child's memory before calling
13722 displaced_step_fixup on the parent.
13723 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
13724 to std::unique_ptr.
13725 <step_closure>: Change type to std::unique_ptr.
13726
5f661e03
SM
137272020-02-14 Simon Marchi <simon.marchi@efficios.com>
13728
13729 * arm-tdep.c: Include count-one-bits.h.
13730 (cleanup_block_store_pc): Use count_one_bits.
13731 (cleanup_block_load_pc): Use count_one_bits.
13732 (arm_copy_block_xfer): Use count_one_bits.
13733 (thumb2_copy_block_xfer): Use count_one_bits.
13734 (thumb_copy_pop_pc_16bit): Use count_one_bits.
13735 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
13736 (thumb_get_next_pcs_raw): Use count_one_bits.
13737 (arm_get_next_pcs_raw): Use count_one_bits_l.
13738 * arch/arm.c (bitcount): Remove.
13739 * arch/arm.h (bitcount): Remove.
13740
8084e579
TT
137412020-02-14 Tom Tromey <tromey@adacore.com>
13742
13743 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
13744 Update.
13745 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
13746 * dwarf2/loc.c (call_site_find_chain_1): Return
13747 unique_xmalloc_ptr.
13748 (call_site_find_chain): Likewise.
13749
258bf0ee
RB
137502020-02-14 Richard Biener <rguenther@suse.de>
13751
13752 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
13753 on expression with division operators.
13754
f98a8458
AKS
137552020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13756
13757 * MAINTAINERS (Write After Approval): Adding myself.
13758
d1437c0e
TT
137592020-02-12 Tom Tromey <tom@tromey.com>
13760
13761 * event-loop.c (event_data, gdb_event, event_handler_func):
13762 Remove.
13763
3d4560f7
TT
137642020-02-12 Tom Tromey <tom@tromey.com>
13765
13766 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
13767 (dwarf2_frame_objfile_data): Add comment.
13768 (find_comp_unit, set_comp_unit): New functions.
13769 (dwarf2_frame_find_fde): Use find_comp_unit.
13770 (dwarf2_build_frame_info): Use set_comp_unit.
13771
21982304
TT
137722020-02-12 Tom Tromey <tom@tromey.com>
13773
13774 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
13775 (comp_unit): Don't initialize objfile.
13776 (execute_cfa_program): Add text_offset parameter.
13777 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
13778 (dwarf2_frame_cache): Update.
13779 (dwarf2_build_frame_info): Don't set "objfile" member.
13780
4debb237
TT
137812020-02-12 Tom Tromey <tom@tromey.com>
13782
13783 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
13784 (decode_frame_entry): Likewise.
13785 (dwarf2_build_frame_info): Update.
13786
0d404d44
TT
137872020-02-12 Tom Tromey <tom@tromey.com>
13788
13789 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
13790 (decode_frame_entry_1): Use the comp_unit obstack.
13791
a7a3ae5c
TT
137922020-02-12 Tom Tromey <tom@tromey.com>
13793
13794 * dwarf2/frame.c (struct comp_unit): Add initializers and
13795 constructor.
13796 (dwarf2_frame_objfile_data): Store a comp_unit.
13797 (dwarf2_frame_find_fde): Update.
13798 (dwarf2_build_frame_info): Use "new".
13799
a9d65418
TT
138002020-02-12 Tom Tromey <tom@tromey.com>
13801
13802 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
13803 (dwarf2_fde_table): Typedef for std::vector.
13804 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
13805 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
13806 (decode_frame_entry): Update.
13807 (dwarf2_build_frame_info): Use "new".
13808
7559c217
CB
138092020-02-12 Christian Biesinger <cbiesinger@google.com>
13810
13811 * arm-tdep.c (arm_gdbarch_init): Update.
13812 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
13813 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
13814 have_neon, is_m>: Change to bool.
13815
aeefc73c
CB
138162020-02-12 Christian Biesinger <cbiesinger@google.com>
13817
13818 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
13819
d27b8e5f
TT
138202020-02-12 Tom Tromey <tom@tromey.com>
13821
13822 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
13823
cd5900f3
HD
138242020-02-12 Hannes Domani <ssbssa@yahoo.de>
13825
13826 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
13827 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
13828
f056b22b
TT
138292020-02-11 Tom Tromey <tom@tromey.com>
13830
13831 * psymtab.h: Update comment.
13832
f92ff6b5
TT
138332020-02-11 Tom Tromey <tom@tromey.com>
13834
13835 * gdb_obstack.h (struct auto_obstack): Use
13836 DISABLE_COPY_AND_ASSIGN.
13837
3fd6912b
TT
138382020-02-11 Tom Tromey <tom@tromey.com>
13839
13840 * dwarf2/frame.h (struct objfile): Don't forward declare.
13841
69ed9b74
CB
138422020-02-11 Christian Biesinger <cbiesinger@google.com>
13843
13844 * cris-tdep.c (cris_supply_gregset): Change signature to match
13845 what struct regset expects.
13846 (cris_regset): New struct.
13847 (fetch_core_registers): Remove.
13848 (cris_iterate_over_regset_sections): New function.
13849 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
13850 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
13851
bda874f6
CB
138522020-02-11 Christian Biesinger <cbiesinger@google.com>
13853
13854 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
13855 registers.
13856
754e1564
CB
138572020-02-11 Christian Biesinger <cbiesinger@google.com>
13858
13859 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
13860
8ddd8e0e
SM
138612020-02-11 Simon Marchi <simon.marchi@efficios.com>
13862
13863 * configure: Re-generate.
13864
898e7f60
SM
138652020-02-11 Simon Marchi <simon.marchi@efficios.com>
13866
13867 * configure: Re-generate.
13868
58df732b
SM
138692020-02-11 Simon Marchi <simon.marchi@efficios.com>
13870
13871 * acinclude: Update warning.m4 path.
13872 * warning.m4: Move to gdbsupport.
13873
da5bd37e
TT
138742020-02-11 Tom Tromey <tromey@adacore.com>
13875
13876 * remote.c (remote_console_output): Update.
13877 * printcmd.c (printf_command): Update.
13878 * event-loop.c (gdb_wait_for_event): Update.
13879 * linux-nat.c (sigchld_handler): Update.
13880 * remote-sim.c (gdb_os_write_stdout): Update.
13881 (gdb_os_flush_stdout): Update.
13882 (gdb_os_flush_stderr): Update.
13883 (gdb_os_write_stderr): Update.
13884 * exceptions.c (print_exception): Update.
13885 * remote-fileio.c (remote_fileio_func_read): Update.
13886 (remote_fileio_func_write): Update.
13887 * tui/tui.c (tui_enable): Update.
13888 * tui/tui-interp.c (tui_interp::init): Update.
13889 * utils.c (init_page_info): Update.
13890 (putchar_unfiltered, fputc_unfiltered): Update.
13891 (gdb_flush): Update.
13892 (emit_style_escape): Update.
13893 (flush_wrap_buffer, fputs_maybe_filtered): Update.
13894 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
13895 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
13896 (stderr_file::write): Update.
13897 (stderr_file::puts): Update.
13898 * ui-file.h (ui_file_isatty, ui_file_write)
13899 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
13900 (ui_file_puts): Don't declare.
13901
85f0dd3c
TV
139022020-02-10 Tom de Vries <tdevries@suse.de>
13903
13904 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
13905 sentinel to char *.
13906
2e927613
TV
139072020-02-09 Tom de Vries <tdevries@suse.de>
13908
13909 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
13910 filename if it matches "<artificial>".
13911
6bafc845
HD
139122020-02-09 Hannes Domani <ssbssa@yahoo.de>
13913
13914 * windows-tdep.c (struct enum_value_name): New struct.
13915 (create_enum): New function.
13916 (windows_get_siginfo_type): Create and use enum types.
13917
7928d571
HD
139182020-02-09 Hannes Domani <ssbssa@yahoo.de>
13919
13920 * NEWS: Mention $_siginfo support for Windows.
13921 * windows-nat.c (handle_exception): Set siginfo_er.
13922 (windows_nat_target::mourn_inferior): Reset siginfo_er.
13923 (windows_xfer_siginfo): New function.
13924 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
13925 * windows-tdep.c (struct windows_gdbarch_data): New struct.
13926 (init_windows_gdbarch_data): New function.
13927 (get_windows_gdbarch_data): New function.
13928 (windows_get_siginfo_type): New function.
13929 (windows_init_abi): Register windows_get_siginfo_type.
13930 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
13931
6751ebae
TT
139322020-02-08 Tom Tromey <tom@tromey.com>
13933
13934 * dwarf2/read.c (class cutu_reader) <cutu_reader,
13935 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
13936 <keep>: Declare method.
13937 <m_keep>: Remove member.
13938 <~cutu_reader>: Remove.
13939 (cutu_reader::init_tu_and_read_dwo_dies): Update.
13940 (cutu_reader::cutu_reader): Update.
13941 (cutu_reader::keep): Rename from ~cutu_reader.
13942 (process_psymtab_comp_unit, build_type_psymtabs_1)
13943 (process_skeletonless_type_unit, load_partial_comp_unit)
13944 (load_full_comp_unit, dwarf2_read_addr_index)
13945 (read_signatured_type): Update.
13946
135f5437
TT
139472020-02-08 Tom Tromey <tom@tromey.com>
13948
13949 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
13950 "want_partial_unit" parameter.
13951 (process_psymtab_comp_unit): Change want_partial_unit to bool.
13952 Inline check for DW_TAG_partial_unit.
13953 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
13954
9f66ff1c
TT
139552020-02-08 Tom Tromey <tom@tromey.com>
13956
13957 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
13958 read.c.
13959 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
13960 read.c.
13961
c8a7a66f
TT
139622020-02-08 Tom Tromey <tom@tromey.com>
13963
13964 * dwarf2/read.c (read_address): Move to comp-unit.c.
13965 (dwarf2_rnglists_process, dwarf2_ranges_process)
13966 (read_attribute_value, dwarf_decode_lines_1)
13967 (var_decode_location, decode_locdesc): Update.
13968 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
13969 read.c. Remove "cu" parameter.
13970 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
13971 method.
13972
8266302d
TT
139732020-02-08 Tom Tromey <tom@tromey.com>
13974
13975 * dwarf2/read.c (read_attribute_value, read_indirect_string)
13976 (read_indirect_line_string): Update.
13977 * dwarf2/comp-unit.c (read_offset): Remove.
13978 (read_comp_unit_head): Update.
13979 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
13980 method.
13981 (read_offset): Don't declare.
13982
4057dfde
TT
139832020-02-08 Tom Tromey <tom@tromey.com>
13984
13985 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
13986 * dwarf2/read.c (struct comp_unit_head): Move to
13987 dwarf2/comp-unit.h.
13988 (enum class rcuh_kind): Move to comp-unit.h.
13989 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
13990 (read_comp_unit_head, error_check_comp_unit_head)
13991 (read_and_check_comp_unit_head): Move to comp-unit.c.
13992 (read_offset, dwarf_unit_type_name): Likewise.
13993 (create_debug_type_hash_table, read_cutu_die_from_dwo)
13994 (cutu_reader::cutu_reader, read_call_site_scope)
13995 (find_partial_die, follow_die_offset): Update.
13996 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
13997
24aa364d
TT
139982020-02-08 Tom Tromey <tom@tromey.com>
13999
14000 * dwarf2/read.c (read_offset_1): Move to leb.c.
14001 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
14002 (dwarf_decode_macro_bytes): Update.
14003 * dwarf2/leb.c (read_offset): Rename; move from read.c.
14004 * dwarf2/leb.h (read_offset): Declare.
14005
2c7d5afc
TT
140062020-02-08 Tom Tromey <tom@tromey.com>
14007
14008 * dwarf2/read.c (dwarf2_section_size): Remove.
14009 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
14010 Update.
14011 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
14012
4075cb26
TT
140132020-02-08 Tom Tromey <tom@tromey.com>
14014
14015 * dwarf2/read.c (read_initial_length): Move to leb.c.
14016 * dwarf2/leb.h (read_initial_length): Declare.
14017 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
14018 handle_nonstd parameter.
14019 * dwarf2/frame.c (read_initial_length): Remove.
14020 (decode_frame_entry_1): Update.
14021
09ba997f
TT
140222020-02-08 Tom Tromey <tom@tromey.com>
14023
14024 * dwarf2/loc.c (dwarf2_find_location_expression)
14025 (dwarf_evaluate_loc_desc::get_tls_address)
14026 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
14027 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
14028 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
14029 (dwarf2_compile_property_to_c)
14030 (dwarf2_loc_desc_get_symbol_read_needs)
14031 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
14032 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
14033 (loclist_describe_location, loclist_tracepoint_var_ref)
14034 (loclist_generate_c_location): Update.
14035 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
14036 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
14037 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
14038 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
14039 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
14040 (dwarf2_per_cu_data::addr_size)
14041 (dwarf2_per_cu_data::ref_addr_size)
14042 (dwarf2_per_cu_data::text_offset)
14043 (dwarf2_per_cu_data::addr_type): Now methods.
14044 (per_cu_header_read_in): Make per_cu "const".
14045 (dwarf2_version): Remove.
14046 (dwarf2_per_cu_data::int_type): Now a method.
14047 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
14048 (set_die_type, read_array_type, read_subrange_index_type)
14049 (read_tag_string_type, read_subrange_type): Update.
14050 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
14051 offset_size, ref_addr_size, text_offset, addr_type, version,
14052 objfile, int_type, addr_sized_int_type>: Declare methods.
14053
96c738c0
TT
140542020-02-08 Tom Tromey <tom@tromey.com>
14055
14056 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
14057 Move earlier.
14058
8fdd972c
TT
140592020-02-08 Tom Tromey <tom@tromey.com>
14060
14061 * dwarf2/read.h (dwarf_line_debug): Declare.
14062 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
14063 * dwarf2/read.c: Move line_header code to new files.
14064 (dwarf_line_debug): No longer static.
14065 * dwarf2/line-header.c: New file.
14066 * dwarf2/line-header.h: New file.
14067
03075812
TT
140682020-02-08 Tom Tromey <tom@tromey.com>
14069
14070 * dwarf2/read.c (struct line_header) <file_full_name,
14071 file_file_name>: Return unique_xmalloc_ptr.
14072 (line_header::file_file_name): Update.
14073 (line_header::file_full_name): Update.
14074 (dw2_get_file_names_reader): Update.
14075 (macro_start_file): Update.
14076
bb822404
TT
140772020-02-08 Tom Tromey <tom@tromey.com>
14078
14079 * dwarf2/read.c (struct line_header) <file_full_name,
14080 file_file_name>: Declare methods.
14081 (dw2_get_file_names_reader): Update.
14082 (file_file_name): Now a method.
14083 (file_full_name): Likewise.
14084 (macro_start_file): Update.
14085
009b64fc
TT
140862020-02-08 Tom Tromey <tom@tromey.com>
14087
14088 * dwarf2/read.c (dwarf_always_disassemble)
14089 (show_dwarf_always_disassemble): Move to loc.c.
14090 (_initialize_dwarf2_read): Move "always-disassemble" registration
14091 to loc.c.
14092 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
14093 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
14094 static.
14095 (show_dwarf_always_disassemble): Move from read.c.
14096 (_initialize_dwarf2loc): Move always-disassemble from read.c.
14097
5895093f
TT
140982020-02-08 Tom Tromey <tom@tromey.com>
14099
14100 * dwarf2/read.c (~dwarf2_per_objfile): Update.
14101 (create_quick_file_names_table): Return htab_up.
14102 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
14103 Update.
14104 * dwarf2/read.h (struct dwarf2_per_objfile)
14105 <quick_file_names_table>: Now htab_up.
14106
b3b32279
TT
141072020-02-08 Tom Tromey <tom@tromey.com>
14108
14109 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
14110
1d33d811
TT
141112020-02-08 Tom Tromey <tom@tromey.com>
14112
14113 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
14114 Rewrite.
14115 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
14116 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
14117 (abbrev_table::abbrev_table): No longer inline.
14118 (ABBREV_HASH_SIZE): Remove.
14119 (abbrev_table::m_abbrevs): Now an htab_up.
14120
86de1d91
TT
141212020-02-08 Tom Tromey <tom@tromey.com>
14122
14123 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
14124 (cutu_reader): Update.
14125 (build_type_psymtabs_1): Update.
14126 * dwarf2/abbrev.c (abbrev_table::read): Rename.
14127 (abbrev_table::alloc_abbrev): Update.
14128 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
14129 (abbrev_table::read): New static method, renamed from
14130 abbrev_table_read_table.
14131 (abbrev_table::alloc_abbrev)
14132 (abbrev_table::add_abbrev): Now private.
14133 (abbrev_table::abbrev_table): Now private.
14134 (abbrev_table::m_abbrev_obstack): Now private. Rename.
14135
0335378b
TT
141362020-02-08 Tom Tromey <tom@tromey.com>
14137
14138 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
14139 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
14140 htab_up.
14141
48b490f2
TT
141422020-02-08 Tom Tromey <tom@tromey.com>
14143
14144 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
14145 htab_up.
14146 (lookup_dwo_unit_in_dwp): Update.
14147 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
14148 on obstack.
14149
bc68fb19
TT
141502020-02-08 Tom Tromey <tom@tromey.com>
14151
14152 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
14153 obstack.
14154
d15acc42
TT
141552020-02-08 Tom Tromey <tom@tromey.com>
14156
14157 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
14158 line_header_hash.
14159 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
14160 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
14161 Change type to htab_up.
14162
eaa5fa8b
TT
141632020-02-08 Tom Tromey <tom@tromey.com>
14164
14165 * dwarf2/read.c (allocate_type_unit_groups_table): Return
14166 htab_up. Don't allocate on obstack.
14167 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
14168 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
14169 Change type to htab_up.
14170
b0b6a987
TT
141712020-02-08 Tom Tromey <tom@tromey.com>
14172
14173 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
14174 Change type to htab_up.
14175 * dwarf2/read.c (create_signatured_type_table_from_index)
14176 (create_signatured_type_table_from_debug_names)
14177 (create_all_type_units, add_type_unit)
14178 (lookup_dwo_signatured_type, lookup_signatured_type)
14179 (process_skeletonless_type_unit): Update.
14180 (create_debug_type_hash_table, create_debug_types_hash_table):
14181 Change type of types_htab.
14182 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
14183 htab_up. Don't allocate on obstack.
14184 (create_cus_hash_table): Change type of cus_htab parameter.
14185 (struct dwo_file) <cus, tus>: Now htab_up.
14186 (lookup_dwo_signatured_type, lookup_dwo_cutu)
14187 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
14188 (queue_and_load_all_dwo_tus): Update.
14189 * dwarf2/index-write.c (write_gdbindex): Update.
14190 (write_debug_names): Update.
14191
39856def
TT
141922020-02-08 Tom Tromey <tom@tromey.com>
14193
14194 * dwarf2/read.h (struct dwarf2_queue_item): Move from
14195 dwarf2/read.c. Remove "next" member. Add constructor ntad
14196 destructor.
14197 (struct dwarf2_per_objfile) <queue>: New member.
14198 * dwarf2/read.c (struct dwarf2_queue_item): Move to
14199 dwarf2/read.h.
14200 (dwarf2_queue, dwarf2_queue_tail): Remove.
14201 (class dwarf2_queue_guard): Add parameter to constructor. Use
14202 DISABLE_COPY_AND_ASSIGN.
14203 <m_per_objfile>: New member.
14204 <~dwarf2_queue_guard>: Rewrite.
14205 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
14206 Update.
14207 (~dwarf2_queue_item): New.
14208
3e225074
TT
142092020-02-08 Tom Tromey <tom@tromey.com>
14210
14211 * dwarf2/read.c (struct die_info) <has_children>: New member.
14212 (dw2_get_file_names_reader): Remove has_children.
14213 (dw2_get_file_names): Update.
14214 (read_cutu_die_from_dwo): Remove has_children.
14215 (cutu_reader::init_tu_and_read_dwo_dies)
14216 (cutu_reader::cutu_reader): Update.
14217 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
14218 Remove has_children.
14219 (build_type_psymtabs_1, process_skeletonless_type_unit)
14220 (load_partial_comp_unit, load_full_comp_unit): Update.
14221 (create_dwo_cu_reader): Remove has_children.
14222 (create_cus_hash_table, read_die_and_children): Update.
14223 (read_full_die_1,read_full_die): Remove has_children.
14224 (read_signatured_type): Update.
14225 (class cutu_reader) <has_children>: Remove.
14226
82ca8957
TT
142272020-02-08 Tom Tromey <tom@tromey.com>
14228
14229 * dwarf2/expr.c: Rename from dwarf2expr.c.
14230 * dwarf2/expr.h: Rename from dwarf2expr.h.
14231 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
14232 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
14233 * dwarf2/frame.c: Rename from dwarf2-frame.c.
14234 * dwarf2/frame.h: Rename from dwarf2-frame.h.
14235 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
14236 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
14237 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
14238 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
14239 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
14240 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
14241 * dwarf2/loc.c: Rename from dwarf2loc.c.
14242 * dwarf2/loc.h: Rename from dwarf2loc.h.
14243 * dwarf2/read.c: Rename from dwarf2read.c.
14244 * dwarf2/read.h: Rename from dwarf2read.h.
14245 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
14246 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
14247 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
14248 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
14249 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
14250 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
14251 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
14252 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
14253 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
14254 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
14255 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
14256 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
14257 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
14258 Update.
14259 * Makefile.in (COMMON_SFILES): Update.
14260 (HFILES_NO_SRCDIR): Update.
14261
9e35d499
TT
142622020-02-08 Tom Tromey <tom@tromey.com>
14263
14264 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
14265 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
14266
1eba2311
TT
142672020-02-08 Tom Tromey <tom@tromey.com>
14268
14269 * dwarf2read.h (struct die_info): Don't declare.
14270
e41c2da2
TT
142712020-02-08 Tom Tromey <tom@tromey.com>
14272
14273 * dwarf2read.h (die_info_ptr): Remove typedef.
14274
4fc6c0d5
TT
142752020-02-08 Tom Tromey <tom@tromey.com>
14276
14277 * dwarf2read.c (read_call_site_scope)
14278 (handle_data_member_location, dwarf2_add_member_fn)
14279 (mark_common_block_symbol_computed, read_common_block)
14280 (attr_to_dynamic_prop, partial_die_info::read)
14281 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
14282 (dwarf2_symbol_mark_computed, set_die_type): Update.
14283 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
14284 method.
14285 (attr_form_is_block): Don't declare.
14286 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
14287
cd6c91b4
TT
142882020-02-08 Tom Tromey <tom@tromey.com>
14289
14290 * dwarf2read.c (dwarf2_find_base_address, )
14291 (read_call_site_scope, rust_containing_type)
14292 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
14293 (handle_data_member_location, dwarf2_add_member_fn)
14294 (get_alignment, read_structure_type, process_structure_scope)
14295 (mark_common_block_symbol_computed, read_common_block)
14296 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
14297 (partial_die_info::read, read_attribute_value, new_symbol)
14298 (lookup_die_type, dwarf2_get_ref_die_offset)
14299 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
14300 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
14301 (dwarf2_symbol_mark_computed): Update.
14302 * dwarf2/attribute.h (struct attribute) <value_as_address,
14303 form_is_section_offset, form_is_constant, form_is_ref>: Declare
14304 methods.
14305 (value_as_address, attr_form_is_section_offset)
14306 (attr_form_is_constant, attr_form_is_ref): Don't declare.
14307 * dwarf2/attribute.c (attribute::value_as_address)
14308 (attribute::form_is_section_offset, attribute::form_is_constant)
14309 (attribute::form_is_ref): Now methods.
14310
162dce55
TT
143112020-02-08 Tom Tromey <tom@tromey.com>
14312
14313 * dwarf2read.c (struct attribute, DW_STRING)
14314 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
14315 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
14316 (attr_form_is_block, attr_form_is_section_offset)
14317 (attr_form_is_constant, attr_form_is_ref): Move.
14318 * dwarf2/attribute.h: New file.
14319 * dwarf2/attribute.c: New file, from dwarf2read.c.
14320 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
14321
3054dd54
TT
143222020-02-08 Tom Tromey <tom@tromey.com>
14323
14324 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
14325 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
14326 Move.
14327 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
14328 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
14329 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
14330 abbrev.c.
14331 * dwarf2/abbrev.h: New file.
14332 * dwarf2/abbrev.c: New file, from dwarf2read.c.
14333 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
14334
96b79293
TT
143352020-02-08 Tom Tromey <tom@tromey.com>
14336
14337 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
14338 (dwarf2_section_size, dwarf2_get_section_info)
14339 (create_signatured_type_table_from_debug_names)
14340 (create_addrmap_from_aranges, read_debug_names_from_section)
14341 (get_gdb_index_contents_from_section, read_comp_unit_head)
14342 (error_check_comp_unit_head, read_abbrev_offset)
14343 (create_debug_type_hash_table, init_cu_die_reader)
14344 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
14345 (read_comp_units_from_section, create_cus_hash_table)
14346 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
14347 (create_dwp_v2_section, dwarf2_rnglists_process)
14348 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
14349 (abbrev_table_read_table, read_indirect_string_at_offset_from)
14350 (read_indirect_string_from_dwz, read_addr_index_1)
14351 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
14352 (dwarf_decode_macro_bytes, dwarf_decode_macros)
14353 (fill_in_loclist_baton): Update.
14354 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
14355 get_containing_section, get_bfd_owner, get_bfd_section,
14356 get_file_name, get_id, get_flags, empty, read>: Declare methods.
14357 (dwarf2_read_section, get_section_name, get_section_file_name)
14358 (get_containing_section, get_section_bfd_owner)
14359 (get_section_bfd_section, get_section_name, get_section_file_name)
14360 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
14361 declare.
14362 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
14363 (dwarf2_section_info::get_bfd_owner)
14364 (dwarf2_section_info::get_bfd_section)
14365 (dwarf2_section_info::get_name)
14366 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
14367 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
14368 (dwarf2_section_info::read): Now methods.
14369 * dwarf-index-write.c (class debug_names): Update.
14370
2c86cff9
TT
143712020-02-08 Tom Tromey <tom@tromey.com>
14372
14373 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
14374 Move to dwarf2/section.h.
14375 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
14376 (get_section_bfd_section, get_section_name)
14377 (get_section_file_name, get_section_id, get_section_flags)
14378 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
14379 dwarf2/section.c.
14380 * dwarf2/section.h: New file.
14381 * dwarf2/section.c: New file, from dwarf2read.c.
14382 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
14383
f4382c45
TT
143842020-02-08 Tom Tromey <tom@tromey.com>
14385
14386 * dwarf2read.h (read_unsigned_leb128): Don't declare.
14387 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
14388 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
14389 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
14390 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
14391 * dwarf2/leb.h: New file, from dwarf2read.c.
14392 * dwarf2/leb.c: New file, from dwarf2read.c.
14393 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
14394 Remove.
14395 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
14396 (COMMON_SFILES): Add dwarf2/leb.c.
14397
01840b7a
JB
143982020-02-08 Joel Brobecker <brobecker@adacore.com>
14399
14400 GDB 9.1 released.
14401
dfcb27e4
IB
144022020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
14403
14404 PR gdb/25190:
aac66a4c
SM
14405 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
14406 * gdb/remote.c (remote_console_output): Update.
14407 * gdb/ui-file.c (fputs_unfiltered): Rename to...
14408 (ui_file_puts): ...this.
14409 * gdb/ui-file.h (ui_file_puts): Add declaration.
14410 * gdb/utils.c (emit_style_escape): Update.
14411 (flush_wrap_buffer): Update.
14412 (fputs_maybe_filtered): Update.
14413 (fputs_unfiltered): Add function.
dfcb27e4 14414
faa17681
IB
144152020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
14416
aac66a4c
SM
14417 * gdb/event-loop.c (gdb_wait_for_event): Update.
14418 * gdb/printcmd.c (printf_command): Update.
14419 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
14420 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
14421 (gdb_os_flush_stderr): Update.
14422 * gdb/remote.c (remote_console_output): Update.
14423 * gdb/ui-file.c (gdb_flush): Rename to...
14424 (ui_file_flush): ...this.
14425 (stderr_file::write): Update.
14426 (stderr_file::puts): Update.
14427 * gdb/ui-file.h (gdb_flush): Rename to...
14428 (ui_file_flush): ...this.
14429 * gdb/utils.c (gdb_flush): Add function.
14430 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 14431
5abbbe1d
TT
144322020-02-07 Tom Tromey <tromey@adacore.com>
14433
14434 PR breakpoints/24915:
14435 * source.c (find_and_open_source): Do not check basenames_may_differ.
14436
919adfe8
TT
144372020-02-07 Tom Tromey <tom@tromey.com>
14438
14439 * README: Update gdbserver documentation.
14440 * gdbserver: Move to top level.
14441 * configure.tgt (build_gdbserver): Remove.
14442 * configure.ac: Remove --enable-gdbserver.
14443 * configure: Rebuild.
14444 * Makefile.in (distclean): Don't mention gdbserver.
14445
1d5d29e7
SV
144462020-02-06 Shahab Vahedi <shahab@synopsys.com>
14447
14448 * source-cache.c (source_cache::ensure): Surround
14449 get_plain_source_lines with a try/catch.
14450 (source_cache::get_line_charpos): Get rid of try/catch
14451 and only check for the return value of "ensure".
14452 * tui/tui-source.c (tui_source_window::set_contents):
14453 Simplify "nlines" calculation.
14454
6eb1129c
SV
144552020-02-06 Shahab Vahedi <shahab@synopsys.com>
14456
14457 * MAINTAINERS (Write After Approval): Add myself.
14458
c6a42d11
CB
144592020-02-05 Christian Biesinger <cbiesinger@google.com>
14460
14461 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
14462 function call.
14463
c8ecdda6
CB
144642020-02-05 Christian Biesinger <cbiesinger@google.com>
14465
14466 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
14467
f6480e70
MR
144682020-02-05 Maciej W. Rozycki <macro@wdc.com>
14469
14470 * nat/riscv-linux-tdesc.h: New file.
14471 * nat/riscv-linux-tdesc.c: New file, taking code from...
14472 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
14473 ... here.
14474 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
14475 NATDEPFILES.
14476
dcc9fbc6
AB
144772020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
14478
14479 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
14480 we don't set the fake simulator ptid to the null_ptid.
14481
719546c4
SM
144822020-02-03 Simon Marchi <simon.marchi@efficios.com>
14483
14484 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
14485 * gdbthread.h (class thread_info) <resumed>: Likewise.
14486 * infrun.c (resume_1): Likewise.
14487 (proceed): Likewise.
14488 (infrun_thread_stop_requested): Likewise.
14489 (stop_all_threads): Likewise.
14490 (handle_inferior_event): Likewise.
14491 (restart_threads): Likewise.
14492 (finish_step_over): Likewise.
14493 (keep_going_stepped_thread): Likewise.
14494 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
14495 (linux_handle_extended_wait): Likewise.
14496 * record-btrace.c (get_thread_current_frame_id): Likewise.
14497 * record-full.c (record_full_wait_1): Likewise.
14498 * remote.c (remote_target::process_initial_stop_replies): Likewise.
14499 * target.c (target_resume): Likewise.
14500 * thread.c (set_running_thread): Likewise.
14501
e409c542
AKS
145022020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14503
14504 * f-valprint.c (f77_print_array_1): Changed datatype of index
14505 variable to LONGEST from int to enable it to contain bound
14506 values correctly.
14507
ee98c0da
MR
145082020-02-03 Maciej W. Rozycki <macro@wdc.com>
14509
14510 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
14511 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
14512 offsets according to FLEN determined.
14513 (riscv_linux_nat_target::read_description): Determine FLEN
14514 dynamically.
14515 (riscv_linux_nat_target::fetch_registers): Size regset buffer
14516 according to FLEN determined.
14517 (riscv_linux_nat_target::store_registers): Likewise.
14518
aa66aac4
SV
145192020-02-01 Shahab Vahedi <shahab@synopsys.com>
14520
14521 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
14522 when reg->group is empty and reggroup is not.
14523
fd9faca8
TT
145242020-01-31 Tom Tromey <tromey@adacore.com>
14525
14526 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
14527 Call beneath target's mourn_inferior after unpushing.
14528
42330a68
AB
145292020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
14530
14531 PR tui/9765
14532 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
14533 have enough lines to fill the screen, still return the lowest
14534 address we found.
14535
7a27a45b
AB
145362020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
14537
14538 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
14539 '-', '<', and '>' commands.
14540
c47f70e2
PA
145412020-01-29 Pedro Alves <palves@redhat.com>
14542 Sergio Durigan Junior <sergiodj@redhat.com>
14543
14544 * infcmd.c (construct_inferior_arguments): Assert that
14545 'argc' is greater than 0.
14546
5133a315
LM
145472020-01-29 Luis Machado <luis.machado@linaro.org>
14548
14549 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
14550 (BRK_INSN_MASK): Define to 0xd4200000.
14551 (aarch64_program_breakpoint_here_p): New function.
14552 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
14553 * arch-utils.c (default_program_breakpoint_here_p): Moved from
14554 breakpoint.c.
14555 * arch-utils.h (default_program_breakpoint_here_p): Moved from
14556 breakpoint.h
14557 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
14558 call gdbarch_program_breakpoint_here_p.
14559 (program_breakpoint_here): Moved to arch-utils.c, renamed to
14560 default_program_breakpoint_here_p, changed return type to bool and
14561 simplified.
14562 * breakpoint.h (program_breakpoint_here): Moved prototype to
14563 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
14564 return type to bool.
14565 * gdbarch.c: Regenerate.
14566 * gdbarch.h: Regenerate.
14567 * gdbarch.sh (program_breakpoint_here_p): New method.
14568 * infrun.c (handle_signal_stop): Call
14569 gdbarch_program_breakpoint_here_p.
14570
168f8c6b
TT
145712020-01-26 Tom Tromey <tom@tromey.com>
14572
14573 * ctfread.c (struct ctf_fp_info): Reindent.
14574 (_initialize_ctfread): Remove.
14575
128a391f
TT
145762020-01-26 Tom Tromey <tom@tromey.com>
14577
14578 * psymtab.c (partial_map_expand_apply)
14579 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
14580 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
14581 (psym_print_stats, psym_expand_symtabs_for_function)
14582 (psym_map_symbol_filenames, psym_map_matching_symbols)
14583 (psym_expand_symtabs_matching)
14584 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
14585 (maintenance_check_psymtabs): Use new methods.
14586 * psympriv.h (struct partial_symtab) <readin_p,
14587 get_compunit_symtab>: New methods.
14588 <readin, compunit_symtab>: Remove members.
14589 (struct standard_psymtab): New.
14590 (struct legacy_psymtab): Derive from standard_psymtab.
14591 * dwarf2read.h (struct dwarf2_psymtab): Derive from
14592 standard_psymtab.
14593 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
14594
0494dbec
TT
145952020-01-26 Tom Tromey <tom@tromey.com>
14596
14597 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
14598 read_dependencies. Add assert.
14599 * psymtab.c (partial_symtab::read_dependencies): New method.
14600 * psympriv.h (struct partial_symtab) <read_dependencies>: New
14601 method.
14602 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
14603 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
14604 read_dependencies.
14605 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
14606 Add assert.
14607
8566b89b
TT
146082020-01-26 Tom Tromey <tom@tromey.com>
14609
14610 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
14611 Call expand_psymtab.
14612 (xcoff_read_symtab): Call expand_psymtab.
14613 (xcoff_start_psymtab, xcoff_end_psymtab): Set
14614 legacy_expand_psymtab.
14615 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
14616 method.
14617 (struct legacy_psymtab) <expand_psymtab>: Implement.
14618 <legacy_expand_psymtab>: New member.
14619 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
14620 (parse_partial_symbols): Set legacy_expand_psymtab.
14621 (psymtab_to_symtab_1): Change argument order. Call
14622 expand_psymtab.
14623 (new_psymtab): Set legacy_expand_psymtab.
14624 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
14625 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
14626 expand_psymtab.
14627 (dwarf2_psymtab::expand_psymtab): Rename from
14628 psymtab_to_symtab_1. Call expand_psymtab.
14629 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
14630 (dbx_end_psymtab): Likewise.
14631 (dbx_psymtab_to_symtab_1): Change argument order. Call
14632 expand_psymtab.
14633 (dbx_read_symtab): Call expand_psymtab.
14634 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
14635 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
14636 (ctf_psymtab::read_symtab): Call expand_psymtab.
14637
077cbab2
TT
146382020-01-26 Tom Tromey <tom@tromey.com>
14639
14640 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
14641 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
14642 messages.
14643 * mdebugread.c (mdebug_read_symtab): Remove prints.
14644 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
14645 assert.
14646 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
14647
891813be
TT
146482020-01-26 Tom Tromey <tom@tromey.com>
14649
14650 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
14651 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
14652 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
14653 legacy_symtab.
14654 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
14655 * psymtab.c (psymtab_to_symtab): Call method.
14656 (dump_psymtab): Update.
14657 * psympriv.h (struct partial_symtab): Add virtual destructor.
14658 <read_symtab>: New method.
14659 (struct legacy_symtab): New.
14660 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
14661 (struct pst_map) <pst>: Now a legacy_psymtab.
14662 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
14663 (new_psymtab): Use legacy_psymtab.
14664 * dwarf2read.h (struct dwarf2_psymtab): New.
14665 (struct dwarf2_per_cu_data) <psymtab>: Use it.
14666 * dwarf2read.c (dwarf2_create_include_psymtab)
14667 (dwarf2_build_include_psymtabs, create_type_unit_group)
14668 (create_partial_symtab, process_psymtab_comp_unit_reader)
14669 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
14670 (set_partial_user): Use dwarf2_psymtab.
14671 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
14672 (psymtab_to_symtab_1, process_full_comp_unit)
14673 (process_full_type_unit, dwarf2_ranges_read)
14674 (dwarf2_get_pc_bounds, psymtab_include_file_name)
14675 (dwarf_decode_lines): Use dwarf2_psymtab.
14676 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
14677 (add_address_entry_worker, write_one_signatured_type)
14678 (recursively_count_psymbols, recursively_write_psymbols)
14679 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
14680 (write_debug_names): Likewise.
14681 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
14682 <pst>: Now a legacy_psymtab.
14683 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
14684 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
14685 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
14686 * ctfread.c (struct ctf_psymtab): New.
14687 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
14688 ctf_psymtab.
14689 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
14690 (create_partial_symtab): Return a ctf_psymtab.
14691 (scan_partial_symbols): Update.
14692
c3693a1d
TT
146932020-01-26 Tom Tromey <tom@tromey.com>
14694
14695 * xcoffread.c (xcoff_start_psymtab): Use new.
14696 * psymtab.c (partial_symtab::partial_symtab): New constructor,
14697 renamed from start_psymtab_common.
14698 * psympriv.h (struct partial_symtab): Add new constructor.
14699 (start_psymtab_common): Don't declare.
14700 * mdebugread.c (parse_partial_symbols): Use new.
14701 * dwarf2read.c (create_partial_symtab): Use new.
14702 * dbxread.c (start_psymtab): Use new.
14703 * ctfread.c (create_partial_symtab): Use new.
14704
32caafd0
TT
147052020-01-26 Tom Tromey <tom@tromey.com>
14706
14707 * xcoffread.c (xcoff_end_psymtab): Use new.
14708 * psymtab.c (start_psymtab_common): Use new.
14709 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
14710 Update.
14711 * psympriv.h (struct partial_symtab): Add parameters to
14712 constructor. Don't inline.
14713 (allocate_psymtab): Don't declare.
14714 * mdebugread.c (new_psymtab): Use new.
14715 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
14716 * dbxread.c (dbx_end_psymtab): Use new.
14717
abaa2f23
TT
147182020-01-26 Tom Tromey <tom@tromey.com>
14719
14720 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
14721 allocate_psymtab. Update documentation.
14722 * psymtab.c (psymtab_storage::install_psymtab): Rename from
14723 allocate_psymtab. Do not use new.
14724 (allocate_psymtab): Use new. Update.
14725
6d94535f
TT
147262020-01-26 Tom Tromey <tom@tromey.com>
14727
14728 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
14729 * psymtab.c (psym_print_stats): Update.
14730 * psympriv.h (struct partial_symtab) <readin,
14731 psymtabs_addrmap_supported, anonymous>: Now bool.
14732 * mdebugread.c (psymtab_to_symtab_1): Update.
14733 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
14734 (build_type_psymtabs_reader, psymtab_to_symtab_1)
14735 (process_full_comp_unit, process_full_type_unit): Update.
14736 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
14737 * ctfread.c (psymtab_to_symtab): Update.
14738
6f17252b
TT
147392020-01-26 Tom Tromey <tom@tromey.com>
14740
14741 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
14742 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
14743 * psymtab.c (psymtab_storage): Delete psymtabs.
14744 (psymtab_storage::allocate_psymtab): Use new.
14745 (psymtab_storage::discard_psymtab): Use delete.
14746 * psympriv.h (struct partial_symtab): Add constructor and
14747 initializers.
14748
f6f1cebc
TT
147492020-01-26 Tom Tromey <tom@tromey.com>
14750
14751 * machoread.c: Do not include psympriv.h.
14752
e47e48f6
PW
147532020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14754
14755 * NEWS: Mention the new option and the set/show commands.
14756
a2fedca9
PW
147572020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14758
14759 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
14760 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
14761 (validate_exec_file): New variables, enums, functions.
14762 (exec_file_locate_attach, print_section_info): Style the filenames.
14763 (_initialize_exec): Install show_exec_file_mismatch_command and
14764 set_exec_file_mismatch_command.
14765 * gdbcore.h (validate_exec_file): Declare.
14766 * infcmd.c (attach_command): Call validate_exec_file.
14767 * remote.c ( remote_target::remote_add_inferior): Likewise.
14768
7ffa82e1
AB
147692020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14770
14771 * frame.c (find_frame_sal): Move call to get_next_frame into more
14772 inner scope.
14773 * inline-frame.c (inilne_state) <inline_state>: Update argument
14774 types.
14775 (inilne_state) <skipped_symbol>: Rename to...
14776 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
14777 (skip_inline_frames): Build vector of skipped symbols and use this
14778 to reate the inline_state.
14779 (inline_skipped_symbol): Add a comment and some assertions, fetch
14780 skipped symbol from the list.
14781
3d92a3e3
AB
147822020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14783
14784 * buildsym.c (lte_is_less_than): Delete.
14785 (buildsym_compunit::end_symtab_with_blockvector): Create local
14786 lambda function to sort line table entries, and use
14787 std::stable_sort instead of std::sort.
14788 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
14789 markers when looking for a previous line.
14790
94a72be7
AB
147912020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14792
14793 * dwarf2read.c (lnp_state_machine::record_line): Include
14794 end_sequence parameter in debug print out. Record the line if we
14795 are at an end_sequence marker even if it's not the start of a
14796 statement.
14797 * symmisc.c (maintenance_print_one_line_table): Print end of
14798 sequence markers with 'END' not '0'.
14799
53af73bf
PA
148002020-01-24 Pedro Alves <palves@redhat.com>
14801
14802 PR gdb/25410
14803 * thread.c (scoped_restore_current_thread::restore): Use
14804 switch_to_inferior_no_thread.
14805 * exec.c: Include "progspace-and-thread.h".
14806 (add_target_sections, remove_target_sections):
14807 scoped_restore_current_pspace_and_thread instead of
14808 scoped_restore_current_thread.
14809 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
14810 and aspace to the inferior before calling clone_program_space.
14811 Remove stale comment.
14812
3050c6f4
CB
148132020-01-24 Christian Biesinger <cbiesinger@google.com>
14814
14815 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
14816 (arm_netbsd_nat_target::fetch_registers): ...this.
14817 (arm_nbsd_nat_target::store_registers): Rename to...
14818 (arm_netbsd_nat_target::store_registers): ...this.
14819
73685c7e
CB
148202020-01-24 Christian Biesinger <cbiesinger@google.com>
14821
14822 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
14823 register_t.
14824
89203d40
CB
148252020-01-24 Christian Biesinger <cbiesinger@google.com>
14826
14827 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
14828 Update comment.
14829 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
14830 Likewise.
14831 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
14832 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
14833 the correct replacement (iterate_over_regset_sections).
14834 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
14835 Update comment.
14836
1ba1ac88
AB
148372020-01-24 Graham Markall <graham.markall@embecosm.com>
14838
14839 PR gdb/23718
14840 * gdb/python/python.c (execute_gdb_command): Call
14841 async_enable_stdin in catch block.
14842
f3364a6d
AB
148432020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14844
14845 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
14846 SWITCH_THRU_ALL_UIS.
14847
733d0a67
AB
148482020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14849
14850 PR tui/9765
14851 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
14852 comment, add extra parameter, and update to store previous symbol
14853 when appropriate.
14854 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
14855 add extra parameter.
14856 * tui/tui-disasm.c (tui_disassemble): Update header comment,
14857 remove unneeded parameter, add try/catch around gdb_print_insn,
14858 rewrite to add items to asm_lines vector.
14859 (tui_find_backward_disassembly_start_address): New function.
14860 (tui_find_disassembly_address): Updated throughout.
14861 (tui_disasm_window::set_contents): Update for changes to
14862 tui_disassemble.
14863 (tui_disasm_window::do_scroll_vertical): No need to adjust the
14864 number of lines to scroll.
14865
b3b3bada
SM
148662020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
14867
14868 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
14869 (SECT_OFF_DATA): Likewise.
14870 (SECT_OFF_RODATA): Likewise.
14871 (SECT_OFF_TEXT): Likewise.
14872 (SECT_OFF_BSS): Likewise.
14873 (struct objfile) <text_section_offset, data_section_offset>: New
14874 methods.
14875 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
14876 objfile::text_section_offset.
14877 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
14878 * coffread.c (coff_symtab_read): Likewise.
14879 (enter_linenos): Likewise.
14880 (process_coff_symbol): Likewise.
14881 * ctfread.c (get_objfile_text_range): Likewise.
14882 * dtrace-probe.c (dtrace_probe::get_relocated_address):
14883 Use objfile::data_section_offset.
14884 * dwarf2-frame.c (execute_cfa_program): Use
14885 objfile::text_section_offset.
14886 (dwarf2_frame_find_fde): Likewise.
14887 * dwarf2read.c (create_addrmap_from_index): Likewise.
14888 (create_addrmap_from_aranges): Likewise.
14889 (dw2_find_pc_sect_compunit_symtab): Likewise.
14890 (process_psymtab_comp_unit_reader): Likewise.
14891 (add_partial_symbol): Likewise.
14892 (add_partial_subprogram): Likewise.
14893 (process_full_comp_unit): Likewise.
14894 (read_file_scope): Likewise.
14895 (read_func_scope): Likewise.
14896 (read_lexical_block_scope): Likewise.
14897 (read_call_site_scope): Likewise.
14898 (dwarf2_rnglists_process): Likewise.
14899 (dwarf2_ranges_process): Likewise.
14900 (dwarf2_ranges_read): Likewise.
14901 (dwarf_decode_lines_1): Likewise.
14902 (new_symbol): Likewise.
14903 (dwarf2_fetch_die_loc_sect_off): Likewise.
14904 (dwarf2_per_cu_text_offset): Likewise.
14905 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
14906 * hppa-tdep.c (read_unwind_info): Likewise.
14907 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
14908 * psympriv.h (struct partial_symtab): Likewise.
14909 * psymtab.c (find_pc_sect_psymtab): Likewise.
14910 * solib-svr4.c (enable_break): Likewise.
14911 * stap-probe.c (relocate_address): Use
14912 objfile::data_section_offset.
14913 * xcoffread.c (enter_line_range): Use
14914 objfile::text_section_offset.
14915 (read_xcoff_symtab): Likewise.
14916
ab53f382
SM
149172020-01-23 Simon Marchi <simon.marchi@efficios.com>
14918
14919 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
14920 declaration to narrower scopes.
14921
e7eee665
SM
149222020-01-23 Simon Marchi <simon.marchi@efficios.com>
14923
14924 * darwin-nat.h (struct darwin_exception_msg, enum
14925 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
14926 Move up.
14927 (class darwin_nat_target) <wait_1, check_new_threads,
14928 decode_exception_message, decode_message, stop_inferior,
14929 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
14930 * darwin-nat.c (darwin_check_new_threads): Rename to...
14931 (darwin_nat_target::check_new_threads): ... this.
14932 (darwin_suspend_inferior_it): Remove.
14933 (darwin_decode_exception_message): Rename to...
14934 (darwin_nat_target::decode_exception_message): ... this.
14935 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
14936 (darwin_decode_message): Rename to...
14937 (darwin_nat_target::decode_message): ... this.
14938 (cancel_breakpoint): Rename to...
14939 (darwin_nat_target::cancel_breakpoint): ... this.
14940 (darwin_wait): Rename to...
14941 (darwin_nat_target::wait_1): ... this. Use range-based for loop
14942 instead of iterate_over_inferiors.
14943 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
14944 (darwin_stop_inferior): Rename to...
14945 (darwin_nat_target::stop_inferior): ... this.
14946 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
14947 (darwin_init_thread_list): Rename to...
14948 (darwin_nat_target::init_thread_list): ... this.
14949 (darwin_ptrace_him): Rename to...
14950 (darwin_nat_target::ptrace_him): ... this.
14951 (darwin_nat_target::create_inferior): Pass lambda function to
14952 fork_inferior.
14953 (darwin_nat_target::detach): Call stop_inferior instead of
14954 darwin_stop_inferior.
14955 * fork-inferior.h (fork_inferior): Change init_trace_fun
14956 parameter to gdb::function_view.
14957 * fork-inferior.c (fork_inferior): Likewise.
14958
c162ed3e
HD
149592020-01-23 Hannes Domani <ssbssa@yahoo.de>
14960
14961 * i386-cygwin-tdep.c (core_process_module_section): Update.
14962 * windows-nat.c (struct lm_info_windows): Add text_offset.
14963 (windows_xfer_shared_libraries): Update.
14964 * windows-tdep.c (windows_xfer_shared_library):
14965 Add text_offset_cached argument.
14966 * windows-tdep.h (windows_xfer_shared_library): Update.
14967
a1237872
SM
149682020-01-21 Simon Marchi <simon.marchi@efficios.com>
14969
14970 * gdbarch.sh: Add declaration for _initialize_gdbarch.
14971
b3ee6dd9
SM
149722020-01-21 Simon Marchi <simon.marchi@efficios.com>
14973
14974 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
14975 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
14976 replace with range-based for.
14977 (gdbsim_interrupt_inferior): Remove.
14978 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
14979 with a range-based for. Inline code from
14980 gdbsim_interrupt_inferior.
14981
f9fac3c8
SM
149822020-01-21 Simon Marchi <simon.marchi@efficios.com>
14983
14984 * infrun.c (proceed): Fix indentation.
14985
f6474de9
TT
149862020-01-21 Tom Tromey <tromey@adacore.com>
14987
14988 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
14989 * python/python.c (python_extension_ops): Update.
14990 (gdbpy_colorize): New function.
14991 * python/lib/gdb/__init__.py (colorize): New function.
14992 * extension.h (ext_lang_colorize): Declare.
14993 * extension.c (ext_lang_colorize): New function.
14994 * extension-priv.h (struct extension_language_ops) <colorize>: New
14995 member.
14996 * cli/cli-style.c (_initialize_cli_style): Update help text.
14997
f0c702d4
LM
149982020-01-21 Luis Machado <luis.machado@linaro.org>
14999
15000 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
15001 <cond>: Change type to bool.
15002 (aarch64_displaced_step_b_cond): Update cond to use bool type.
15003 (aarch64_displaced_step_cb): Likewise.
15004 (aarch64_displaced_step_tb): Likewise.
15005
1ab139e5
LM
150062020-01-21 Luis Machado <luis.machado@linaro.org>
15007
15008 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
15009 output.
15010
0c271889
LM
150112020-01-21 Luis Machado <luis.machado@linaro.org>
15012
15013 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
15014 <pc_adjust>: Adjust the documentation.
15015 (aarch64_displaced_step_fixup): Check if PC really moved before
15016 adjusting it.
15017
4d89c1c7
TT
150182020-01-19 Tom Tromey <tom@tromey.com>
15019
15020 * disasm.c (~gdb_disassembler): New destructor.
15021 (gdb_buffered_insn_length): Call disassemble_free_target.
15022 * disasm.h (class gdb_disassembler): Declare destructor. Use
15023 DISABLE_COPY_AND_ASSIGN.
15024
c0ab21c2
TT
150252020-01-19 Tom Tromey <tom@tromey.com>
15026
15027 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
15028 (die_reader_func_ftype): Remove.
15029 (cutu_reader): New class.
15030 (dw2_get_file_names_reader): Remove "data" parameter.
15031 (dw2_get_file_names): Use cutu_reader.
15032 (create_debug_type_hash_table): Update.
15033 (read_cutu_die_from_dwo): Update comment.
15034 (lookup_dwo_unit): Add dwo_name parameter.
15035 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
15036 die_reader_func_ftype and data parameters.
15037 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
15038 Remove die_reader_func_ftype and data parameters.
15039 (~cutu_reader): New; from init_cutu_and_read_dies.
15040 (cutu_reader::cutu_reader): Rename from
15041 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
15042 and data parameters.
15043 (init_cutu_and_read_dies_simple): Remove.
15044 (struct process_psymtab_comp_unit_data): Remove.
15045 (process_psymtab_comp_unit_reader): Remove data parameter; add
15046 want_partial_unit and pretend_language parameters.
15047 (process_psymtab_comp_unit): Use cutu_reader.
15048 (build_type_psymtabs_reader): Remove data parameter.
15049 (build_type_psymtabs_1): Use cutu_reader.
15050 (process_skeletonless_type_unit): Likewise.
15051 (load_partial_comp_unit_reader): Remove.
15052 (load_partial_comp_unit): Use cutu_reader.
15053 (load_full_comp_unit_reader): Remove.
15054 (load_full_comp_unit): Use cutu_reader.
15055 (struct create_dwo_cu_data): Remove.
15056 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
15057 dwo_unit parameters.
15058 (create_cus_hash_table): Use cutu_reader.
15059 (struct dwarf2_read_addr_index_data): Remove.
15060 (dwarf2_read_addr_index_reader): Remove.
15061 (dwarf2_read_addr_index): Use cutu_reader.
15062 (read_signatured_type_reader): Remove.
15063 (read_signatured_type): Use cutu_reader.
15064
45bbae5c
TT
150652020-01-19 Tom Tromey <tom@tromey.com>
15066
15067 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
15068 * tui/tui-wingeneral.h (class tui_suppress_output): New.
15069 (tui_wrefresh): Declare.
15070 * tui/tui-wingeneral.c (suppress_output): New global.
15071 (tui_suppress_output, ~tui_suppress_output): New constructor and
15072 destructor.
15073 (tui_wrefresh): New function.
15074 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
15075 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
15076 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
15077 method.
15078 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
15079 tui_wrefresh.
15080 (tui_data_window::no_refresh): New method.
15081 (tui_data_item_window::refresh_window): Call tui_wrefresh.
15082 (tui_reg_command): Use tui_suppress_output
15083 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
15084 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
15085 method.
15086 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
15087
4f13c1c0
TT
150882020-01-19 Tom Tromey <tom@tromey.com>
15089
15090 * tui/tui-winsource.c (tui_update_source_windows_with_line):
15091 Handle case where symtab is null.
15092
fa47e446
SM
150932020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
15094
15095 * linux-fork.c (one_fork_p): Simplify.
15096
26f42329
SM
150972020-01-17 Simon Marchi <simon.marchi@efficios.com>
15098
15099 * top.c (struct qt_args): Remove.
15100 (kill_or_detach): Change return type to void, replace `void *`
15101 parameter with a proper one.
15102 (print_inferior_quit_action): Likewise.
15103 (quit_confirm): Use range-based for loop to iterate over inferiors.
15104 (quit_force): Likewise.
15105
a9ac81b1
SM
151062020-01-17 Simon Marchi <simon.marchi@efficios.com>
15107
15108 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
15109 `void *` parameter with proper parameters.
15110 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
15111 (print_one_inferior): Change return type to void, replace `void *`
15112 parameter with proper parameters.
15113 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
15114 inferiors.
15115 (get_other_inferior): Remove.
15116 (mi_cmd_remove_inferior): Use range-based loop to iterate over
15117 inferiors.
15118
788eca49
SM
151192020-01-17 Simon Marchi <simon.marchi@efficios.com>
15120
15121 * mi/mi-interp.c (report_initial_inferior): Remove.
15122 (mi_interp::init): Use range-based for to iterate over inferiors.
15123
d9bc85b6
SM
151242020-01-17 Simon Marchi <simon.marchi@efficios.com>
15125
15126 * python/py-inferior.c (build_inferior_list): Remove.
15127 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
15128
40c94099
CB
151292020-01-16 Christian Biesinger <cbiesinger@google.com>
15130
15131 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
15132 (btrace_stitch_trace): Likewise.
15133 * charset.c (intermediate_encoding): Likewise (vaild).
15134 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
15135 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
15136 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
15137
e0cdfe3c
HD
151382020-01-16 Hannes Domani <ssbssa@yahoo.de>
15139
15140 * windows-tdep.c (windows_get_tlb_type):
15141 Add rtl_user_process_parameters type.
15142
790f1718 151432020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 15144 Norbert Lange <nolange79@gmail.com>
790f1718
PA
15145
15146 PR build/24805
15147 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
15148 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
15149 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
15150 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
15151 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
15152 (ps_plog): Redeclare exported functions with default visibility.
15153
3112ed97
NA
151542020-01-16 Nitika Achra <Nitika.Achra@amd.com>
15155
15156 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
15157 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
15158
8dc3273e
SM
151592020-01-15 Simon Marchi <simon.marchi@efficios.com>
15160
15161 * infcmd.c (post_create_inferior): Use get_thread_regcache
15162 instead of get_current_regcache.
15163
ff47f4f0
TT
151642020-01-14 Tom Tromey <tom@tromey.com>
15165
15166 PR symtab/12535:
15167 * python/python.c (gdbpy_decode_line): Treat empty string the same
15168 as no argument.
15169
975f45b7
TT
151702020-01-14 Tom Tromey <tom@tromey.com>
15171
15172 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
15173
25e57356
TT
151742020-01-14 Tom Tromey <tom@tromey.com>
15175
15176 * nat/linux-btrace.c: Don't include <config.h>.
15177 * nat/linux-ptrace.c: Don't include <config.h>.
15178 * nat/x86-linux-dregs.c: Don't include <config.h>.
15179
05ea2a05
TT
151802020-01-14 Tom Tromey <tom@tromey.com>
15181
15182 * configure: Rebuild.
15183 * configure.ac: Move many checks to ../gdbsupport/common.m4.
15184
01027315
TT
151852020-01-14 Tom Tromey <tom@tromey.com>
15186
15187 * nat/x86-linux-dregs.c: Include configh.h.
15188 * nat/linux-ptrace.c: Include configh.h.
15189 * nat/linux-btrace.c: Include configh.h.
15190 * defs.h: Include config.h, bfd.h.
15191 * configure.ac: Don't source common.host.
15192 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
15193 * configure: Rebuild.
15194 * acinclude.m4: Update path.
15195 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
15196 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
15197 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
15198 (CLIBS): Add LIBSUPPORT.
15199 (CDEPS): Likewise.
15200 (COMMON_SFILES): Remove gdbsupport files.
15201 (HFILES_NO_SRCDIR): Likewise.
15202 (stamp-version): Update path to create-version.sh.
15203 (ALLDEPFILES): Remove gdbsupport files.
15204
b2ceabe8
TT
152052020-01-14 Tom Tromey <tom@tromey.com>
15206
15207 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
15208 USE_WIN32API when needed.
15209 * configure.ac (USE_WIN32API): Don't define.
15210 (WIN32LIBS): Use WIN32APILIBS.
15211 * configure: Rebuild.
15212
25c51f71
TT
152132020-01-14 Tom Tromey <tom@tromey.com>
15214
15215 * configure: Rebuild.
15216 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
15217
717c684d
BE
152182020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
15219
15220 * skip.c (skip_function_command): Make skip w/o arguments use the
15221 name of the inlined function if pc is inside any inlined function.
15222
7da6a5b9
LM
152232020-01-14 Luis Machado <luis.machado@linaro.org>
15224
15225 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
15226 * infrun.c (resume_1): Likewise.
15227 (handle_inferior_event): Remove stale comment.
15228 * linux-nat.c (linux_nat_target::resume): Update comments.
15229 (save_stop_reason): Likewise.
15230 (linux_nat_filter_event): Likewise.
15231 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
15232
44e4c775
AB
152332020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15234
15235 * elfread.c (record_minimal_symbol): Set section index to 0 for
15236 non-allocatable sections.
15237
18a8505e
AT
15238
152392020-01-13 Ali Tamur <tamur@google.com>
15240
15241 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
15242 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
15243 to gdb::optional. Update comments.
15244 (dwo_file): Update comments.
15245 (read_attribute): Update API to take an additional out parameter,
15246 need_reprocess. This is used to mark attributes that need other
15247 attributes (e.g. str_offsets_base) for correct computation which may not
15248 have been read yet.
15249 (read_attribute_reprocess): New function declaration.
15250 (read_addr_index): Likewise.
15251 (read_dwo_str_index): Likewise.
15252 (read_stub_str_index): Likewise.
15253 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
15254 (lookup_addr_base): New function definition.
15255 (lookup_ranges_base): Likewise.
15256 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
15257 lookup_ranges_base.
15258 (init_cutu_and_read_dies): Update comments.
15259 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
15260 unit. This is used to inherit parent's str_offsets_base and addr_base.
15261 Update comments.
15262 (init_cutu_and_read_dies_simple): Reflect API changes.
15263 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
15264 (create_cus_hash_table): Change API to take parent compile unit.
15265 Reflect API changes.
15266 (open_and_init_dwo_file): Reflect API changes.
15267 (dwarf2_get_pc_bounds): Update comments.
15268 (dwarf2_record_block_ranges): Likewise.
15269 (read_full_die_1): Change implementation to reprocess attributes that
15270 need str_offsets_base and addr_base.
15271 (partial_die_info::read): Likewise.
15272 (read_attribute_reprocess): New function definition.
15273 (read_attribute_value): Change API to take an additional out parameter,
15274 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
15275 when a non-dwo compile unit has index based attributes.
15276 (read_attribute): Reflect API changes.
15277 (read_addr_index_1): Reflect API changes. Update comments.
15278 (dwarf2_read_addr_index_data): Reflect API changes.
15279 (dwarf2_read_addr_index): Likewise.
15280 (read_str_index): Change API and implementation. This becomes a helper
15281 to be used by the new string index related methods. Update error
15282 message and comments.
15283 (read_dwo_str_index): New function definition.
15284 (read_stub_str_index): Likewise.
15285 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
15286 * symfile.h (dwarf2_debug_sections): Likewise.
15287 * xcoffread.c (dwarf2_debug_sections): Likewise.
15288
0cac9354
SM
152892020-01-13 Simon Marchi <simon.marchi@efficios.com>
15290
15291 * gdbcore.h (struct core_fns) <core_read_registers>: Change
15292 core_reg_sect type to gdb_byte *.
15293 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
15294 * cris-tdep.c (fetch_core_registers): Likewise.
15295 * corelow.c (core_target::get_core_register_section): Change
15296 type of `contents` to gdb::byte_vector.
15297
9a6d629c
AB
152982020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15299
15300 * tui/tui-wingeneral.c (box_win): Position the title in the center
15301 of the border.
15302
d8b2f9e3
SM
153032020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15304
15305 * corelow.c (core_target::get_core_register_section): Use
15306 std::vector instead of alloca.
15307
bb564c58
SM
153082020-01-13 Simon Marchi <simon.marchi@efficios.com>
15309
15310 * warning.m4: Add -Wmissing-declarations to build_warnings.
15311 * configure: Re-generate.
15312
6b366111
SM
153132020-01-13 Simon Marchi <simon.marchi@efficios.com>
15314
15315 * python/python.c (init__gdb_module): Add declaration.
15316
6c265988
SM
153172020-01-13 Simon Marchi <simon.marchi@efficios.com>
15318
15319 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
15320 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
15321 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
15322 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
15323 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
15324 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
15325 * ada-exp.y (_initialize_ada_exp): Add declaration.
15326 * ada-lang.c (_initialize_ada_language): Add declaration.
15327 * ada-tasks.c (_initialize_tasks): Add declaration.
15328 * agent.c (_initialize_agent): Add declaration.
15329 * aix-thread.c (_initialize_aix_thread): Add declaration.
15330 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
15331 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
15332 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
15333 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
15334 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
15335 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
15336 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
15337 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
15338 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
15339 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
15340 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
15341 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
15342 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
15343 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
15344 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
15345 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
15346 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
15347 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
15348 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
15349 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
15350 * annotate.c (_initialize_annotate): Add declaration.
15351 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
15352 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
15353 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
15354 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
15355 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
15356 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
15357 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
15358 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
15359 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
15360 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
15361 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
15362 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
15363 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
15364 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
15365 * auto-load.c (_initialize_auto_load): Add declaration.
15366 * auxv.c (_initialize_auxv): Add declaration.
15367 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
15368 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
15369 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
15370 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
15371 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
15372 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
15373 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
15374 * breakpoint.c (_initialize_breakpoint): Add declaration.
15375 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
15376 * btrace.c (_initialize_btrace): Add declaration.
15377 * charset.c (_initialize_charset): Add declaration.
15378 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
15379 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
15380 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
15381 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
15382 * cli/cli-script.c (_initialize_cli_script): Add declaration.
15383 * cli/cli-style.c (_initialize_cli_style): Add declaration.
15384 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
15385 * coffread.c (_initialize_coffread): Add declaration.
15386 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
15387 * compile/compile.c (_initialize_compile): Add declaration.
15388 * complaints.c (_initialize_complaints): Add declaration.
15389 * completer.c (_initialize_completer): Add declaration.
15390 * copying.c (_initialize_copying): Add declaration.
15391 * corefile.c (_initialize_core): Add declaration.
15392 * corelow.c (_initialize_corelow): Add declaration.
15393 * cp-abi.c (_initialize_cp_abi): Add declaration.
15394 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
15395 * cp-support.c (_initialize_cp_support): Add declaration.
15396 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
15397 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
15398 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
15399 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
15400 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
15401 * ctfread.c (_initialize_ctfread): Add declaration.
15402 * d-lang.c (_initialize_d_language): Add declaration.
15403 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
15404 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
15405 * dbxread.c (_initialize_dbxread): Add declaration.
15406 * dcache.c (_initialize_dcache): Add declaration.
15407 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
15408 * disasm.c (_initialize_disasm): Add declaration.
15409 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
15410 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
15411 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
15412 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
15413 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
15414 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
15415 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
15416 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
15417 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
15418 * elfread.c (_initialize_elfread): Add declaration.
15419 * exec.c (_initialize_exec): Add declaration.
15420 * extension.c (_initialize_extension): Add declaration.
15421 * f-lang.c (_initialize_f_language): Add declaration.
15422 * f-valprint.c (_initialize_f_valprint): Add declaration.
15423 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
15424 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
15425 * filesystem.c (_initialize_filesystem): Add declaration.
15426 * findcmd.c (_initialize_mem_search): Add declaration.
15427 * findvar.c (_initialize_findvar): Add declaration.
15428 * fork-child.c (_initialize_fork_child): Add declaration.
15429 * frame-base.c (_initialize_frame_base): Add declaration.
15430 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
15431 * frame.c (_initialize_frame): Add declaration.
15432 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
15433 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
15434 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
15435 * gcore.c (_initialize_gcore): Add declaration.
15436 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
15437 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
15438 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
15439 * gdbarch.c (_initialize_gdbarch): Add declaration.
15440 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
15441 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
15442 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
15443 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
15444 * go-lang.c (_initialize_go_language): Add declaration.
15445 * go32-nat.c (_initialize_go32_nat): Add declaration.
15446 * guile/guile.c (_initialize_guile): Add declaration.
15447 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
15448 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
15449 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
15450 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
15451 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
15452 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
15453 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
15454 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
15455 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
15456 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
15457 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
15458 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
15459 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
15460 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
15461 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
15462 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
15463 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
15464 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
15465 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
15466 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
15467 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
15468 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
15469 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
15470 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
15471 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
15472 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
15473 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
15474 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
15475 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
15476 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
15477 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
15478 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
15479 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
15480 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
15481 * infcall.c (_initialize_infcall): Add declaration.
15482 * infcmd.c (_initialize_infcmd): Add declaration.
15483 * inflow.c (_initialize_inflow): Add declaration.
15484 * infrun.c (_initialize_infrun): Add declaration.
15485 * interps.c (_initialize_interpreter): Add declaration.
15486 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
15487 * jit.c (_initialize_jit): Add declaration.
15488 * language.c (_initialize_language): Add declaration.
15489 * linux-fork.c (_initialize_linux_fork): Add declaration.
15490 * linux-nat.c (_initialize_linux_nat): Add declaration.
15491 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
15492 * linux-thread-db.c (_initialize_thread_db): Add declaration.
15493 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
15494 * m2-lang.c (_initialize_m2_language): Add declaration.
15495 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
15496 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
15497 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
15498 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
15499 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
15500 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
15501 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
15502 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
15503 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
15504 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
15505 * machoread.c (_initialize_machoread): Add declaration.
15506 * macrocmd.c (_initialize_macrocmd): Add declaration.
15507 * macroscope.c (_initialize_macroscope): Add declaration.
15508 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
15509 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
15510 * maint.c (_initialize_maint_cmds): Add declaration.
15511 * mdebugread.c (_initialize_mdebugread): Add declaration.
15512 * memattr.c (_initialize_mem): Add declaration.
15513 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
15514 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
15515 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
15516 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
15517 * mi/mi-main.c (_initialize_mi_main): Add declaration.
15518 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
15519 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
15520 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
15521 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
15522 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
15523 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
15524 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
15525 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
15526 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
15527 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
15528 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
15529 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
15530 * mipsread.c (_initialize_mipsread): Add declaration.
15531 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
15532 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
15533 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
15534 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
15535 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
15536 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
15537 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
15538 * nto-procfs.c (_initialize_procfs): Add declaration.
15539 * objc-lang.c (_initialize_objc_language): Add declaration.
15540 * observable.c (_initialize_observer): Add declaration.
15541 * opencl-lang.c (_initialize_opencl_language): Add declaration.
15542 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
15543 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
15544 * osabi.c (_initialize_gdb_osabi): Add declaration.
15545 * osdata.c (_initialize_osdata): Add declaration.
15546 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
15547 * parse.c (_initialize_parse): Add declaration.
15548 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
15549 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
15550 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
15551 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
15552 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
15553 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
15554 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
15555 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
15556 * printcmd.c (_initialize_printcmd): Add declaration.
15557 * probe.c (_initialize_probe): Add declaration.
15558 * proc-api.c (_initialize_proc_api): Add declaration.
15559 * proc-events.c (_initialize_proc_events): Add declaration.
15560 * proc-service.c (_initialize_proc_service): Add declaration.
15561 * procfs.c (_initialize_procfs): Add declaration.
15562 * producer.c (_initialize_producer): Add declaration.
15563 * psymtab.c (_initialize_psymtab): Add declaration.
15564 * python/python.c (_initialize_python): Add declaration.
15565 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
15566 * record-btrace.c (_initialize_record_btrace): Add declaration.
15567 * record-full.c (_initialize_record_full): Add declaration.
15568 * record.c (_initialize_record): Add declaration.
15569 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
15570 * regcache.c (_initialize_regcache): Add declaration.
15571 * reggroups.c (_initialize_reggroup): Add declaration.
15572 * remote-notif.c (_initialize_notif): Add declaration.
15573 * remote-sim.c (_initialize_remote_sim): Add declaration.
15574 * remote.c (_initialize_remote): Add declaration.
15575 * reverse.c (_initialize_reverse): Add declaration.
15576 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
15577 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
15578 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
15579 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
15580 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
15581 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
15582 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
15583 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
15584 Add declaration.
15585 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
15586 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
15587 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
15588 * rust-exp.y (_initialize_rust_exp): Add declaration.
15589 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
15590 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
15591 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
15592 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
15593 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
15594 * score-tdep.c (_initialize_score_tdep): Add declaration.
15595 * ser-go32.c (_initialize_ser_dos): Add declaration.
15596 * ser-mingw.c (_initialize_ser_windows): Add declaration.
15597 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
15598 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
15599 * ser-uds.c (_initialize_ser_socket): Add declaration.
15600 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
15601 * serial.c (_initialize_serial): Add declaration.
15602 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
15603 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
15604 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
15605 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
15606 * skip.c (_initialize_step_skip): Add declaration.
15607 * sol-thread.c (_initialize_sol_thread): Add declaration.
15608 * solib-aix.c (_initialize_solib_aix): Add declaration.
15609 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
15610 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
15611 * solib-frv.c (_initialize_frv_solib): Add declaration.
15612 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
15613 * solib-target.c (_initialize_solib_target): Add declaration.
15614 * solib.c (_initialize_solib): Add declaration.
15615 * source-cache.c (_initialize_source_cache): Add declaration.
15616 * source.c (_initialize_source): Add declaration.
15617 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
15618 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
15619 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
15620 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
15621 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
15622 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
15623 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
15624 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
15625 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
15626 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
15627 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
15628 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
15629 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
15630 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
15631 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
15632 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
15633 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
15634 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
15635 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
15636 * stabsread.c (_initialize_stabsread): Add declaration.
15637 * stack.c (_initialize_stack): Add declaration.
15638 * stap-probe.c (_initialize_stap_probe): Add declaration.
15639 * std-regs.c (_initialize_frame_reg): Add declaration.
15640 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
15641 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
15642 * symfile.c (_initialize_symfile): Add declaration.
15643 * symmisc.c (_initialize_symmisc): Add declaration.
15644 * symtab.c (_initialize_symtab): Add declaration.
15645 * target.c (_initialize_target): Add declaration.
15646 * target-connection.c (_initialize_target_connection): Add
15647 declaration.
15648 * target-dcache.c (_initialize_target_dcache): Add declaration.
15649 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
15650 * thread.c (_initialize_thread): Add declaration.
15651 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
15652 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
15653 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
15654 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
15655 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
15656 * tracectf.c (_initialize_ctf): Add declaration.
15657 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
15658 * tracefile.c (_initialize_tracefile): Add declaration.
15659 * tracepoint.c (_initialize_tracepoint): Add declaration.
15660 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
15661 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
15662 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
15663 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
15664 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
15665 * tui/tui-win.c (_initialize_tui_win): Add declaration.
15666 * tui/tui.c (_initialize_tui): Add declaration.
15667 * typeprint.c (_initialize_typeprint): Add declaration.
15668 * ui-style.c (_initialize_ui_style): Add declaration.
15669 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
15670 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
15671 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
15672 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
15673 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
15674 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
15675 * unittests/filtered_iterator-selftests.c
15676 (_initialize_filtered_iterator_selftests): Add declaration.
15677 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
15678 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
15679 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
15680 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
15681 * unittests/main-thread-selftests.c
15682 (_initialize_main_thread_selftests): Add declaration.
15683 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
15684 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
15685 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
15686 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
15687 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
15688 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
15689 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
15690 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
15691 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
15692 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
15693 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
15694 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
15695 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
15696 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
15697 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
15698 declaration.
15699 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
15700 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
15701 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
15702 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
15703 * user-regs.c (_initialize_user_regs): Add declaration.
15704 * utils.c (_initialize_utils): Add declaration.
15705 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
15706 * valops.c (_initialize_valops): Add declaration.
15707 * valprint.c (_initialize_valprint): Add declaration.
15708 * value.c (_initialize_values): Add declaration.
15709 * varobj.c (_initialize_varobj): Add declaration.
15710 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
15711 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
15712 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
15713 * windows-nat.c (_initialize_windows_nat): Add declaration.
15714 (_initialize_check_for_gdb_ini): Add declaration.
15715 (_initialize_loadable): Add declaration.
15716 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
15717 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
15718 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
15719 * xcoffread.c (_initialize_xcoffread): Add declaration.
15720 * xml-support.c (_initialize_xml_support): Add declaration.
15721 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
15722 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
15723 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
15724 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
15725
e2de1eec
SM
157262020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15727
15728 * regformats/regdat.sh: Generate declaration for init function.
15729
e0037b4c
SM
157302020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15731
15732 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
15733 up.
15734 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
15735 close_one_inferior>: New methods.
15736 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
15737 pass down target to find_inferior_pid.
15738 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
15739 Pass down target to find_inferior_ptid.
15740 (gdbsim_target::create_inferior): Pass down target to
15741 add_thread_silent.
15742 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
15743 target down to find_inferior_ptid and switch_to_thread.
15744 (gdbsim_target::close): Update to call close_one_inferior.
15745 (struct resume_data): Remove.
15746 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
15747 directly, rather than through a void pointer.
15748 (gdbsim_target::resume): Update to call resume_one_inferior.
15749
58920b5b
SM
157502020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
15751
15752 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
15753
4ec89149
PA
157542020-01-12 Pedro Alves <palves@redhat.com>
15755
15756 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
15757 directly for the current inferior instead of
15758 discard_all_inferiors.
15759 (discard_all_inferiors): Delete.
15760
7c392d1d
TT
157612020-01-11 Tom Tromey <tom@tromey.com>
15762
15763 * tui/tui-wingeneral.c (box_win): Check cli_styling.
15764 * tui/tui-winsource.c (tui_source_window_base::refill): Use
15765 deprecated_safe_get_selected_frame.
15766
d9ebdab7
TBA
157672020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
15768
15769 * inferior.c (print_inferior): Switch inferior before printing it.
15770
f3c469b9
PA
157712020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
15772 Pedro Alves <palves@redhat.com>
15773
15774 * progspace-and-thread.c (switch_to_program_space_and_thread):
15775 Assert there's an inferior for PSPACE. Use
15776 switch_to_inferior_no_thread to switch the inferior too.
15777 * progspace.c (program_space::~program_space): Call
15778 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
15779 (program_space::free_all_objfiles): Don't call clear_symtab_users
15780 here.
15781 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
15782
65c574f6
PA
157832020-01-10 Pedro Alves <palves@redhat.com>
15784
15785 * NEWS: Mention multi-target debugging, "info connections", and
15786 "add-inferior -no-connection".
15787
2f4fcf00
PA
157882020-01-10 Pedro Alves <palves@redhat.com>
15789
15790 * infrun.c: Include "target-connection.h".
15791 (check_multi_target_resumption): New.
15792 (proceed): Call it.
15793 * target-connection.c (make_target_connection_string): Make
15794 extern.
15795 * target-connection.h (make_target_connection_string): Declare.
15796
121b3efd
PA
157972020-01-10 Pedro Alves <palves@redhat.com>
15798
15799 * Makefile.in (COMMON_SFILES): Add target-connection.c.
15800 * inferior.c (uiout_field_connection): New function.
15801 (print_inferior): Add new "connection-id" column.
15802 (add_inferior_command): Show connection number/string of added
15803 inferior.
15804 * process-stratum-target.h
15805 (process_stratum_target::connection_string): New virtual method.
15806 (process_stratum_target::connection_number): New field.
15807 * remote.c (remote_target::connection_string): New override.
15808 * target-connection.c: New file.
15809 * target-connection.h: New file.
15810 * target.c (decref_target): Remove process_stratum targets from
15811 the connection list.
15812 (target_stack::push): Add process_stratum targets to the
15813 connection list.
15814
4f837581
PA
158152020-01-10 Pedro Alves <palves@redhat.com>
15816
15817 Revert:
15818 2016-04-12 Pedro Alves <palves@redhat.com>
15819 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
15820 Remove references to name.
15821 * serial.h (struct serial) <name>: Delete.
15822
f4ec508e
PA
158232020-01-10 Pedro Alves <palves@redhat.com>
15824
15825 * gdbarch-selftests.c (register_to_value_test): Remove "target
15826 already pushed" check.
15827
5b6d1e4f
PA
158282020-01-10 Pedro Alves <palves@redhat.com>
15829 John Baldwin <jhb@FreeBSD.org>
15830
15831 * aarch64-linux-nat.c
15832 (aarch64_linux_nat_target::thread_architecture): Adjust.
15833 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
15834 (task_command_1): Likewise.
15835 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
15836 (aix_thread_target::wait, aix_thread_target::fetch_registers)
15837 (aix_thread_target::store_registers)
15838 (aix_thread_target::thread_alive): Adjust.
15839 * amd64-fbsd-tdep.c: Include "inferior.h".
15840 (amd64fbsd_get_thread_local_address): Pass down target.
15841 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
15842 thread's gdbarch instead of target_gdbarch.
15843 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
15844 get_last_target_status.
15845 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
15846 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
15847 inferiors.
15848 (update_inserted_breakpoint_locations): Skip if inferiors with no
15849 execution.
15850 (update_global_location_list): When handling moribund locations,
15851 find representative inferior for location's pspace, and use thread
15852 count of its process_stratum target.
15853 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
15854 * bsd-uthread.c (bsd_uthread_target::wait): Use
15855 as_process_stratum_target and adjust thread_change_ptid and
15856 add_thread calls.
15857 (bsd_uthread_target::update_thread_list): Use
15858 as_process_stratum_target and adjust find_thread_ptid,
15859 thread_change_ptid and add_thread calls.
15860 * btrace.c (maint_btrace_packet_history_cmd): Adjust
15861 find_thread_ptid call.
15862 * corelow.c (add_to_thread_list): Adjust add_thread call.
15863 (core_target_open): Adjust add_thread_silent and thread_count
15864 calls.
15865 (core_target::pid_to_str): Adjust find_inferior_ptid call.
15866 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
15867 * event-top.c (async_disconnect): Pop targets from all inferiors.
15868 * exec.c (add_target_sections): Push exec target on all inferiors
15869 sharing the program space.
15870 (remove_target_sections): Remove the exec target from all
15871 inferiors sharing the program space.
15872 (exec_on_vfork): New.
15873 * exec.h (exec_on_vfork): Declare.
15874 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
15875 Pass it down.
15876 (fbsd_nat_target::update_thread_list): Adjust.
15877 (fbsd_nat_target::resume): Adjust.
15878 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
15879 down.
15880 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
15881 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
15882 get_thread_arch_regcache call.
15883 * fork-child.c (gdb_startup_inferior): Pass target down to
15884 startup_inferior and set_executing.
15885 * gdbthread.h (struct process_stratum_target): Forward declare.
15886 (add_thread, add_thread_silent, add_thread_with_info)
15887 (in_thread_list): Add process_stratum_target parameter.
15888 (find_thread_ptid(inferior*, ptid_t)): New overload.
15889 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
15890 parameter.
15891 (all_threads()): Delete overload.
15892 (all_threads, all_non_exited_threads): Add process_stratum_target
15893 parameter.
15894 (all_threads_safe): Use brace initialization.
15895 (thread_count): Add process_stratum_target parameter.
15896 (set_resumed, set_running, set_stop_requested, set_executing)
15897 (threads_are_executing, finish_thread_state): Add
15898 process_stratum_target parameter.
15899 (switch_to_thread): Use is_current_thread.
15900 * i386-fbsd-tdep.c: Include "inferior.h".
15901 (i386fbsd_get_thread_local_address): Pass down target.
15902 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
15903 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
15904 have_inferiors check.
15905 * inf-ptrace.c (inf_ptrace_target::create_inferior)
15906 (inf_ptrace_target::attach): Adjust.
15907 * infcall.c (run_inferior_call): Adjust.
15908 * infcmd.c (run_command_1): Pass target to
15909 scoped_finish_thread_state.
15910 (proceed_thread_callback): Skip inferiors with no execution.
15911 (continue_command): Rename 'all_threads' local to avoid hiding
15912 'all_threads' function. Adjust get_last_target_status call.
15913 (prepare_one_step): Adjust set_running call.
15914 (signal_command): Use user_visible_resume_target. Compare thread
15915 pointers instead of inferior_ptid.
15916 (info_program_command): Adjust to pass down target.
15917 (attach_command): Mark target's 'thread_executing' flag.
15918 (stop_current_target_threads_ns): New, factored out from ...
15919 (interrupt_target_1): ... this. Switch inferior before making
15920 target calls.
15921 * inferior-iter.h
15922 (struct all_inferiors_iterator, struct all_inferiors_range)
15923 (struct all_inferiors_safe_range)
15924 (struct all_non_exited_inferiors_range): Filter on
15925 process_stratum_target too. Remove explicit.
15926 * inferior.c (inferior::inferior): Push dummy target on target
15927 stack.
15928 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
15929 Add process_stratum_target parameter, and pass it down.
15930 (have_live_inferiors): Adjust.
15931 (switch_to_inferior_and_push_target): New.
15932 (add_inferior_command, clone_inferior_command): Handle
15933 "-no-connection" parameter. Use
15934 switch_to_inferior_and_push_target.
15935 (_initialize_inferior): Mention "-no-connection" option in
15936 the help of "add-inferior" and "clone-inferior" commands.
15937 * inferior.h: Include "process-stratum-target.h".
15938 (interrupt_target_1): Use bool.
15939 (struct inferior) <push_target, unpush_target, target_is_pushed,
15940 find_target_beneath, top_target, process_target, target_at,
15941 m_stack>: New.
15942 (discard_all_inferiors): Delete.
15943 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
15944 (all_inferiors, all_non_exited_inferiors): Add
15945 process_stratum_target parameter.
15946 * infrun.c: Include "gdb_select.h" and <unordered_map>.
15947 (target_last_proc_target): New global.
15948 (follow_fork_inferior): Push target on new inferior. Pass target
15949 to add_thread_silent. Call exec_on_vfork. Handle target's
15950 reference count.
15951 (follow_fork): Adjust get_last_target_status call. Also consider
15952 target.
15953 (follow_exec): Push target on new inferior.
15954 (struct execution_control_state) <target>: New field.
15955 (user_visible_resume_target): New.
15956 (do_target_resume): Call target_async.
15957 (resume_1): Set target's threads_executing flag. Consider resume
15958 target.
15959 (commit_resume_all_targets): New.
15960 (proceed): Also consider resume target. Skip threads of inferiors
15961 with no execution. Commit resumtion in all targets.
15962 (start_remote): Pass current inferior to wait_for_inferior.
15963 (infrun_thread_stop_requested): Consider target as well. Pass
15964 thread_info pointer to clear_inline_frame_state instead of ptid.
15965 (infrun_thread_thread_exit): Consider target as well.
15966 (random_pending_event_thread): New inferior parameter. Use it.
15967 (do_target_wait): Rename to ...
15968 (do_target_wait_1): ... this. Add inferior parameter, and pass it
15969 down.
15970 (threads_are_resumed_pending_p, do_target_wait): New.
15971 (prepare_for_detach): Adjust calls.
15972 (wait_for_inferior): New inferior parameter. Handle it. Use
15973 do_target_wait_1 instead of do_target_wait.
15974 (fetch_inferior_event): Adjust. Switch to representative
15975 inferior. Pass target down.
15976 (set_last_target_status): Add process_stratum_target parameter.
15977 Save target in global.
15978 (get_last_target_status): Add process_stratum_target parameter and
15979 handle it.
15980 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
15981 (context_switch): Check inferior_ptid == null_ptid before calling
15982 inferior_thread().
15983 (get_inferior_stop_soon): Pass down target.
15984 (wait_one): Rename to ...
15985 (poll_one_curr_target): ... this.
15986 (struct wait_one_event): New.
15987 (wait_one): New.
15988 (stop_all_threads): Adjust.
15989 (handle_no_resumed, handle_inferior_event): Adjust to consider the
15990 event's target.
15991 (switch_back_to_stepped_thread): Also consider target.
15992 (print_stop_event): Update.
15993 (normal_stop): Update. Also consider the resume target.
15994 * infrun.h (wait_for_inferior): Remove declaration.
15995 (user_visible_resume_target): New declaration.
15996 (get_last_target_status, set_last_target_status): New
15997 process_stratum_target parameter.
15998 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
15999 process_stratum_target parameter, and use it.
16000 (clear_inline_frame_state (thread_info*)): New.
16001 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16002 process_stratum_target parameter.
16003 (clear_inline_frame_state (thread_info*)): Declare.
16004 * linux-fork.c (delete_checkpoint_command): Pass target down to
16005 find_thread_ptid.
16006 (checkpoint_command): Adjust.
16007 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
16008 instead of just tweaking inferior_ptid.
16009 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
16010 (exit_lwp): Pass target down to find_thread_ptid.
16011 (attach_proc_task_lwp_callback): Pass target down to
16012 add_thread/set_running/set_executing.
16013 (linux_nat_target::attach): Pass target down to
16014 thread_change_ptid.
16015 (get_detach_signal): Pass target down to find_thread_ptid.
16016 Consider last target status's target.
16017 (linux_resume_one_lwp_throw, resume_lwp)
16018 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
16019 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
16020 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
16021 (linux_nat_target::async_wait_fd): New.
16022 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
16023 target down.
16024 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
16025 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
16026 * linux-thread-db.c (struct thread_db_info::process_target): New
16027 field.
16028 (add_thread_db_info): Save target.
16029 (get_thread_db_info): New process_stratum_target parameter. Also
16030 match target.
16031 (delete_thread_db_info): New process_stratum_target parameter.
16032 Also match target.
16033 (thread_from_lwp): Adjust to pass down target.
16034 (thread_db_notice_clone): Pass down target.
16035 (check_thread_db_callback): Pass down target.
16036 (try_thread_db_load_1): Always push the thread_db target.
16037 (try_thread_db_load, record_thread): Pass target down.
16038 (thread_db_target::detach): Pass target down. Always unpush the
16039 thread_db target.
16040 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
16041 target down. Always unpush the thread_db target.
16042 (find_new_threads_callback, thread_db_find_new_threads_2)
16043 (thread_db_target::update_thread_list): Pass target down.
16044 (thread_db_target::pid_to_str): Pass current inferior down.
16045 (thread_db_target::get_thread_local_address): Pass target down.
16046 (thread_db_target::resume, maintenance_check_libthread_db): Pass
16047 target down.
16048 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
16049 * procfs.c (procfs_target::procfs_init_inferior): Declare.
16050 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
16051 (procfs_init_inferior): Rename to ...
16052 (procfs_target::procfs_init_inferior): ... this and adjust.
16053 (procfs_target::create_inferior, procfs_notice_thread)
16054 (procfs_do_thread_registers): Adjust.
16055 * ppc-fbsd-tdep.c: Include "inferior.h".
16056 (ppcfbsd_get_thread_local_address): Pass down target.
16057 * proc-service.c (ps_xfer_memory): Switch current inferior and
16058 program space as well.
16059 (get_ps_regcache): Pass target down.
16060 * process-stratum-target.c
16061 (process_stratum_target::thread_address_space)
16062 (process_stratum_target::thread_architecture): Pass target down.
16063 * process-stratum-target.h
16064 (process_stratum_target::threads_executing): New field.
16065 (as_process_stratum_target): New.
16066 * ravenscar-thread.c
16067 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
16068 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
16069 down.
16070 * record-btrace.c (record_btrace_target::info_record): Adjust.
16071 (record_btrace_target::record_method)
16072 (record_btrace_target::record_is_replaying)
16073 (record_btrace_target::fetch_registers)
16074 (get_thread_current_frame_id, record_btrace_target::resume)
16075 (record_btrace_target::wait, record_btrace_target::stop): Pass
16076 target down.
16077 * record-full.c (record_full_wait_1): Switch to event thread.
16078 Pass target down.
16079 * regcache.c (regcache::regcache)
16080 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
16081 process_stratum_target parameter and handle it.
16082 (current_thread_target): New global.
16083 (get_thread_regcache): Add process_stratum_target parameter and
16084 handle it. Switch inferior before calling target method.
16085 (get_thread_regcache): Pass target down.
16086 (get_thread_regcache_for_ptid): Pass target down.
16087 (registers_changed_ptid): Add process_stratum_target parameter and
16088 handle it.
16089 (registers_changed_thread, registers_changed): Pass target down.
16090 (test_get_thread_arch_aspace_regcache): New.
16091 (current_regcache_test): Define a couple local test_target_ops
16092 instances and use them for testing.
16093 (readwrite_regcache): Pass process_stratum_target parameter.
16094 (cooked_read_test, cooked_write_test): Pass mock_target down.
16095 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
16096 (get_thread_arch_aspace_regcache): Add process_stratum_target
16097 parameter.
16098 (regcache::target): New method.
16099 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
16100 (regcache::registers_changed_ptid): Add process_stratum_target
16101 parameter.
16102 (regcache::m_target): New field.
16103 (registers_changed_ptid): Add process_stratum_target parameter.
16104 * remote.c (remote_state::supports_vCont_probed): New field.
16105 (remote_target::async_wait_fd): New method.
16106 (remote_unpush_and_throw): Add remote_target parameter.
16107 (get_current_remote_target): Adjust.
16108 (remote_target::remote_add_inferior): Push target.
16109 (remote_target::remote_add_thread)
16110 (remote_target::remote_notice_new_inferior)
16111 (get_remote_thread_info): Pass target down.
16112 (remote_target::update_thread_list): Skip threads of inferiors
16113 bound to other targets. (remote_target::close): Don't discard
16114 inferiors. (remote_target::add_current_inferior_and_thread)
16115 (remote_target::process_initial_stop_replies)
16116 (remote_target::start_remote)
16117 (remote_target::remote_serial_quit_handler): Pass down target.
16118 (remote_target::remote_unpush_target): New remote_target
16119 parameter. Unpush the target from all inferiors.
16120 (remote_target::remote_unpush_and_throw): New remote_target
16121 parameter. Pass it down.
16122 (remote_target::open_1): Check whether the current inferior has
16123 execution instead of checking whether any inferior is live. Pass
16124 target down.
16125 (remote_target::remote_detach_1): Pass down target. Use
16126 remote_unpush_target.
16127 (extended_remote_target::attach): Pass down target.
16128 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
16129 (remote_target::append_resumption): Pass down target.
16130 (remote_target::append_pending_thread_resumptions)
16131 (remote_target::remote_resume_with_hc, remote_target::resume)
16132 (remote_target::commit_resume): Pass down target.
16133 (remote_target::remote_stop_ns): Check supports_vCont_probed.
16134 (remote_target::interrupt_query)
16135 (remote_target::remove_new_fork_children)
16136 (remote_target::check_pending_events_prevent_wildcard_vcont)
16137 (remote_target::remote_parse_stop_reply)
16138 (remote_target::process_stop_reply): Pass down target.
16139 (first_remote_resumed_thread): New remote_target parameter. Pass
16140 it down.
16141 (remote_target::wait_as): Pass down target.
16142 (unpush_and_perror): New remote_target parameter. Pass it down.
16143 (remote_target::readchar, remote_target::remote_serial_write)
16144 (remote_target::getpkt_or_notif_sane_1)
16145 (remote_target::kill_new_fork_children, remote_target::kill): Pass
16146 down target.
16147 (remote_target::mourn_inferior): Pass down target. Use
16148 remote_unpush_target.
16149 (remote_target::core_of_thread)
16150 (remote_target::remote_btrace_maybe_reopen): Pass down target.
16151 (remote_target::pid_to_exec_file)
16152 (remote_target::thread_handle_to_thread_info): Pass down target.
16153 (remote_target::async_wait_fd): New.
16154 * riscv-fbsd-tdep.c: Include "inferior.h".
16155 (riscv_fbsd_get_thread_local_address): Pass down target.
16156 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
16157 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
16158 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
16159 Adjust.
16160 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
16161 * solib-svr4.c (enable_break): Pass down target.
16162 * spu-multiarch.c (parse_spufs_run): Pass down target.
16163 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
16164 * target-delegates.c: Regenerate.
16165 * target.c (g_target_stack): Delete.
16166 (current_top_target): Return the current inferior's top target.
16167 (target_has_execution_1): Refer to the passed-in inferior's top
16168 target.
16169 (target_supports_terminal_ours): Check whether the initial
16170 inferior was already created.
16171 (decref_target): New.
16172 (target_stack::push): Incref/decref the target.
16173 (push_target, push_target, unpush_target): Adjust.
16174 (target_stack::unpush): Defref target.
16175 (target_is_pushed): Return bool. Adjust to refer to the current
16176 inferior's target stack.
16177 (dispose_inferior): Delete, and inline parts ...
16178 (target_preopen): ... here. Only dispose of the current inferior.
16179 (target_detach): Hold strong target reference while detaching.
16180 Pass target down.
16181 (target_thread_name): Add assertion.
16182 (target_resume): Pass down target.
16183 (target_ops::beneath, find_target_at): Adjust to refer to the
16184 current inferior's target stack.
16185 (get_dummy_target): New.
16186 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
16187 has a thread running.
16188 (initialize_targets): Rename to ...
16189 (_initialize_target): ... this.
16190 * target.h: Include "gdbsupport/refcounted-object.h".
16191 (struct target_ops): Inherit refcounted_object.
16192 (target_ops::shortname, target_ops::longname): Make const.
16193 (target_ops::async_wait_fd): New method.
16194 (decref_target): Declare.
16195 (struct target_ops_ref_policy): New.
16196 (target_ops_ref): New typedef.
16197 (get_dummy_target): Declare function.
16198 (target_is_pushed): Return bool.
16199 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
16200 (all_matching_threads_iterator::all_matching_threads_iterator):
16201 Handle filter target.
16202 * thread-iter.h (struct all_matching_threads_iterator, struct
16203 all_matching_threads_range, class all_non_exited_threads_range):
16204 Filter by target too. Remove explicit.
16205 * thread.c (threads_executing): Delete.
16206 (inferior_thread): Pass down current inferior.
16207 (clear_thread_inferior_resources): Pass down thread pointer
16208 instead of ptid_t.
16209 (add_thread_silent, add_thread_with_info, add_thread): Add
16210 process_stratum_target parameter. Use it for thread and inferior
16211 searches.
16212 (is_current_thread): New.
16213 (thread_info::deletable): Use it.
16214 (find_thread_ptid, thread_count, in_thread_list)
16215 (thread_change_ptid, set_resumed, set_running): New
16216 process_stratum_target parameter. Pass it down.
16217 (set_executing): New process_stratum_target parameter. Pass it
16218 down. Adjust reference to 'threads_executing'.
16219 (threads_are_executing): New process_stratum_target parameter.
16220 Adjust reference to 'threads_executing'.
16221 (set_stop_requested, finish_thread_state): New
16222 process_stratum_target parameter. Pass it down.
16223 (switch_to_thread): Also match inferior.
16224 (switch_to_thread): New process_stratum_target parameter. Pass it
16225 down.
16226 (update_threads_executing): Reimplement.
16227 * top.c (quit_force): Pop targets from all inferior.
16228 (gdb_init): Don't call initialize_targets.
16229 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
16230 Declare.
16231 (windows_add_thread, windows_delete_thread): Adjust.
16232 (get_windows_debug_event): Rename to ...
16233 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
16234 * tracefile-tfile.c (tfile_target_open): Pass down target.
16235 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
16236 Forward declare.
16237 (switch_to_thread): Add process_stratum_target parameter.
16238 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
16239 parameter. Use it.
16240 (mi_on_resume): Pass target down.
16241 * nat/fork-inferior.c (startup_inferior): Add
16242 process_stratum_target parameter. Pass it down.
16243 * nat/fork-inferior.h (startup_inferior): Add
16244 process_stratum_target parameter.
16245 * python/py-threadevent.c (py_get_event_thread): Pass target down.
16246
75c6c844
PA
162472020-01-10 Pedro Alves <palves@redhat.com>
16248
16249 * remote.c (remote_target::start_remote): Don't set inferior_ptid
16250 directly. Instead find the first thread in the thread list and
16251 use switch_to_thread.
16252
78f2c40a
PA
162532020-01-10 Pedro Alves <palves@redhat.com>
16254
16255 * remote.c (remote_target::remote_add_inferior): Don't bind a
16256 process to the current inferior if the current inferior is already
16257 bound to a process.
16258
e7af6c70
TBA
162592020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16260 Pedro Alves <palves@redhat.com>
16261
16262 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
16263 If no process is specified, return null_ptid instead of
16264 inferior_ptid.
16265 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
16266 TARGET_WAITKIND_SIGNALLED with no pid.
16267
31ba933e
PA
162682020-01-10 Pedro Alves <palves@redhat.com>
16269
16270 * remote.c (first_remote_resumed_thread): New.
16271 (remote_target::wait_as): Use it as default event_ptid instead of
16272 inferior_ptid.
16273
735fc2ca
PA
162742020-01-10 Pedro Alves <palves@redhat.com>
16275
16276 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
16277
c17e02e1
PA
162782020-01-10 Pedro Alves <palves@redhat.com>
16279
16280 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
16281 not -1.
16282
ab1ddbcf
PA
162832020-01-10 Pedro Alves <palves@redhat.com>
16284
16285 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
16286 ptid to get_last_target_status.
16287 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
16288 ptid to get_last_target_status.
16289 * infcmd.c (continue_command): Don't pass a target_waitstatus to
16290 get_last_target_status.
16291 (info_program_command): Don't pass a target_waitstatus to
16292 get_last_target_status.
16293 * infrun.c (init_wait_for_inferior): Use
16294 nullify_last_target_wait_ptid.
16295 (get_last_target_status): Handle nullptr arguments.
16296 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
16297 (print_stop_event): Don't pass a ptid to get_last_target_status.
16298 (normal_stop): Don't pass a ptid to get_last_target_status.
16299 * infrun.h (get_last_target_status, set_last_target_status): Move
16300 comments here and update.
16301 (nullify_last_target_wait_ptid): Declare.
16302 * linux-fork.c (fork_load_infrun_state): Remove local extern
16303 declaration of nullify_last_target_wait_ptid.
16304 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
16305 to get_last_target_status.
16306
f3f8ece4
PA
163072020-01-10 Pedro Alves <palves@redhat.com>
16308
16309 * gdbthread.h (scoped_restore_current_thread)
16310 <dont_restore, restore, m_dont_restore>: Declare.
16311 * thread.c (thread_alive): Add assertion. Return bool.
16312 (switch_to_thread_if_alive): New.
16313 (prune_threads): Switch inferior/thread.
16314 (print_thread_info_1): Switch thread before calling target methods.
16315 (scoped_restore_current_thread::restore): New, factored out from
16316 ...
16317 (scoped_restore_current_thread::~scoped_restore_current_thread):
16318 ... this.
16319 (scoped_restore_current_thread::scoped_restore_current_thread):
16320 Add assertion.
16321 (thread_apply_all_command, thread_select): Use
16322 switch_to_thread_if_alive.
16323 * infrun.c (proceed, restart_threads, handle_signal_stop)
16324 (switch_back_to_stepped_thread): Switch current thread before
16325 calling target methods.
16326
db2d40f7
PA
163272020-01-10 Pedro Alves <palves@redhat.com>
16328
16329 * inferior.c (switch_to_inferior_no_thread): New function,
16330 factored out from ...
16331 (inferior_command): ... here.
16332 * inferior.h (switch_to_inferior_no_thread): Declare.
16333 * mi/mi-main.c (run_one_inferior): Use
16334 switch_to_inferior_no_thread.
16335
bd420a2d
PA
163362020-01-10 Pedro Alves <palves@redhat.com>
16337
16338 * infcmd.c (kill_command): Remove dead code.
16339
ddf5db90
PA
163402020-01-10 Pedro Alves <palves@redhat.com>
16341
16342 * remote.c (remote_target::mourn_inferior): No longer check
16343 whether the target is running.
16344
5018ce90
PA
163452020-01-10 Pedro Alves <palves@redhat.com>
16346
16347 * corelow.c (core_target::has_execution): Change parameter type to
16348 inferior pointer.
16349 * inferior.c (number_of_live_inferiors): Use
16350 inferior::has_execution instead of target_has_execution_1.
16351 * inferior.h (inferior::has_execution): New.
16352 * linux-thread-db.c (thread_db_target::update_thread_list): Use
16353 inferior::has_execution instead of target_has_execution_1.
16354 * process-stratum-target.c
16355 (process_stratum_target::has_execution): Change parameter type to
16356 inferior pointer. Check the inferior's PID instead of
16357 inferior_ptid.
16358 * process-stratum-target.h
16359 (process_stratum_target::has_execution): Change parameter type to
16360 inferior pointer.
16361 * record-full.c (record_full_core_target::has_execution): Change
16362 parameter type to inferior pointer.
16363 * target.c (target_has_execution_1): Change parameter type to
16364 inferior pointer.
16365 (target_has_execution_current): Adjust.
16366 * target.h (target_ops::has_execution): Change parameter type to
16367 inferior pointer.
16368 (target_has_execution_1): Change parameter type to inferior
16369 pointer. Change return type to bool.
16370 * tracefile.h (tracefile_target::has_execution): Change parameter
16371 type to inferior pointer.
16372
74375d18
PA
163732020-01-10 Pedro Alves <palves@redhat.com>
16374
16375 * exceptions.c (print_flush): Remove current_top_target() check.
16376
acdf84a6
PA
163772020-01-10 Pedro Alves <palves@redhat.com>
16378
16379 * remote.c (show_remote_exec_file): Show the current inferior's
16380 exec-file instead of the command variable's value.
16381
ec506636
PA
163822020-01-10 Pedro Alves <palves@redhat.com>
16383
16384 * record-full.c (record_full_resume_ptid): New global.
16385 (record_full_target::resume): Set it.
16386 (record_full_wait_1): Use record_full_resume_ptid instead of
16387 inferior_ptid.
16388
873657b9
PA
163892020-01-10 Pedro Alves <palves@redhat.com>
16390
16391 * gdbthread.h (scoped_restore_current_thread)
16392 <dont_restore, restore, m_dont_restore>: Declare.
16393 * thread.c (thread_alive): Add assertion. Return bool.
16394 (switch_to_thread_if_alive): New.
16395 (prune_threads): Switch inferior/thread.
16396 (print_thread_info_1): Switch thread before calling target methods.
16397 (scoped_restore_current_thread::restore): New, factored out from
16398 ...
16399 (scoped_restore_current_thread::~scoped_restore_current_thread):
16400 ... this.
16401 (scoped_restore_current_thread::scoped_restore_current_thread):
16402 Add assertion.
16403 (thread_apply_all_command, thread_select): Use
16404 switch_to_thread_if_alive.
16405
7f0ae84c
GB
164062020-01-10 George Barrett <bob@bob131.so>
16407
16408 * stap-probe.c (stap_modify_semaphore): Don't check for null
16409 semaphores.
16410 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
16411 for null semaphores.
16412
f5a7c406
AB
164132020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16414
16415 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
16416 all source windows, and maintain horizontal scroll status while
16417 doing so.
16418
9ae6bf64
TT
164192020-01-09 Tom Tromey <tom@tromey.com>
16420
16421 PR tui/18932:
16422 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
16423 update_source_window, not print_source_lines.
16424
b2efe70c
AB
164252020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16426
16427 * tui/tui.c (tui_enable): Register tui hooks after calling
16428 tui_display_main.
16429
5f23a082
CB
164302020-01-09 Christian Biesinger <cbiesinger@google.com>
16431
16432 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
16433
3061113b
SM
164342020-01-08 Simon Marchi <simon.marchi@efficios.com>
16435
16436 * thread.c (print_thread_info_1): Fix indentation.
16437
57d75002
CB
164382020-01-09 Christian Biesinger <cbiesinger@google.com>
16439
16440 * symtab.c (general_symbol_info::compute_and_set_names): Move the
16441 unique_xmalloc_ptr outside the if to always free the demangled name.
16442
6a053cb1
TT
164432020-01-08 Tom Tromey <tromey@adacore.com>
16444
16445 * xcoffread.c (enter_line_range, read_xcoff_symtab)
16446 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
16447 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
16448 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
16449 Remove.
16450 (section_offsets): New typedef.
16451 * symtab.c (fixup_section, get_msymbol_address): Update.
16452 * symmisc.c (dump_msymbols): Update.
16453 * symfile.h (relative_addr_info_to_section_offsets)
16454 (symfile_map_offsets_to_segments): Update.
16455 * symfile.c (build_section_addr_info_from_objfile)
16456 (init_objfile_sect_indices): Update.
16457 (struct place_section_arg): Change type of "offsets".
16458 (place_section): Update.
16459 (relative_addr_info_to_section_offsets): Change type of
16460 "section_offsets". Remove "num_sections" parameter.
16461 (default_symfile_offsets, syms_from_objfile_1)
16462 (set_objfile_default_section_offset): Update.
16463 (reread_symbols): No need to preserve section offsets by hand.
16464 (symfile_map_offsets_to_segments): Change type of "offsets".
16465 * stap-probe.c (relocate_address): Update.
16466 * stabsread.h (process_one_symbol): Update.
16467 * solib-target.c (struct lm_info_target) <offsets>: Change type.
16468 (solib_target_relocate_section_addresses): Update.
16469 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
16470 Update.
16471 * solib-frv.c (frv_relocate_main_executable): Update.
16472 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
16473 * solib-aix.c (solib_aix_get_section_offsets): Change return
16474 type.
16475 (solib_aix_solib_create_inferior_hook): Update.
16476 * remote.c (remote_target::get_offsets): Update.
16477 * psymtab.c (find_pc_sect_psymtab): Update.
16478 * psympriv.h (struct partial_symbol) <address, text_low,
16479 text_high>: Update.
16480 * objfiles.h (obj_section_offset): Update.
16481 (struct objfile) <section_offsets>: Change type.
16482 <num_sections>: Remove.
16483 (objfile_relocate): Update.
16484 * objfiles.c (entry_point_address_query): Update
16485 (relocate_one_symbol): Change type of "section_offsets".
16486 (objfile_relocate1, objfile_relocate1): Change type of
16487 "new_offsets".
16488 (objfile_rebase1): Update.
16489 * mipsread.c (mipscoff_symfile_read): Update.
16490 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
16491 parameter.
16492 * mdebugread.c (parse_symbol): Change type of "section_offsets".
16493 (parse_external, psymtab_to_symtab_1): Update.
16494 * machoread.c (macho_symfile_offsets): Update.
16495 * ia64-tdep.c (ia64_find_unwind_table): Update.
16496 * hppa-tdep.c (read_unwind_info): Update.
16497 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
16498 * dwarf2read.c (create_addrmap_from_index)
16499 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
16500 (process_psymtab_comp_unit_reader, add_partial_symbol)
16501 (add_partial_subprogram, process_full_comp_unit)
16502 (read_file_scope, read_func_scope, read_lexical_block_scope)
16503 (read_call_site_scope, dwarf2_rnglists_process)
16504 (dwarf2_ranges_process, dwarf2_ranges_read)
16505 (dwarf_decode_lines_1, var_decode_location, new_symbol)
16506 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
16507 Update.
16508 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
16509 Update.
16510 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
16511 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
16512 (process_one_symbol): Change type of "section_offsets".
16513 * ctfread.c (get_objfile_text_range): Update.
16514 * coffread.c (coff_symtab_read, enter_linenos)
16515 (process_coff_symbol): Update.
16516 * coff-pe-read.c (add_pe_forwarded_sym): Update.
16517 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
16518
456e800a
TT
165192020-01-08 Tom Tromey <tromey@adacore.com>
16520
16521 * dwarf2read.c (parse_macro_definition): Use std::string.
16522 (parse_macro_definition): Likewise.
16523
6dfa2fc2
TT
165242020-01-08 Tom Tromey <tromey@adacore.com>
16525
16526 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
16527 (ATTR_ALLOC_CHUNK): Remove.
16528
421d1616
TT
165292020-01-08 Tom Tromey <tromey@adacore.com>
16530
16531 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
16532
43816ebc
TT
165332020-01-08 Tom Tromey <tromey@adacore.com>
16534
16535 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
16536 (dwarf2_compute_name, open_dwo_file): Likewise.
16537 (process_enumeration_scope): Use std::vector.
16538 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
16539 (partial_die_info::fixup, dwarf2_start_subfile)
16540 (guess_full_die_structure_name, dwarf2_name): Likewise.
16541 (determine_prefix): Update.
16542 (guess_full_die_structure_name): Make return type const.
16543 (partial_die_full_name): Return unique_xmalloc_ptr.
16544 (DW_FIELD_ALLOC_CHUNK): Remove.
16545
4212d509
TT
165462020-01-07 Tom Tromey <tromey@adacore.com>
16547
16548 PR build/24937:
16549 * stap-probe.c (class stap_static_probe_ops): Add constructor.
16550
06a6207a
JT
165512020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
16552
16553 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
16554
153d79c4
AB
165552020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
16556
16557 * stack.c (print_frame_info): Move disassemble_next_line code
16558 inside source_print block.
16559
66182876
EZ
165602020-01-06 Eli Zaretskii <eliz@gnu.org>
16561
16562 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
16563 gdb/signals.h, as we are now using native signal symbols.
16564
cbfa8581
SV
165652020-01-06 Shahab Vahedi <shahab@synopsys.com>
16566
16567 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
16568 overflow by an early check of content vs threshold.
aac66a4c 16569 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
16570 Likewise.
16571
3f602821
EZ
165722020-01-06 Eli Zaretskii <eliz@gnu.org>
16573
16574 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
16575
a08c904d
JT
165762020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
16577
16578 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
16579 export table if no section contains it's RVA.
16580
89a65580
EZ
165812020-01-06 Eli Zaretskii <eliz@gnu.org>
16582
16583 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
16584
8b7fcda2
HD
165852020-01-06 Hannes Domani <ssbssa@yahoo.de>
16586
16587 * source.c (print_source_lines_base): Set last_line_listed.
16588
a61b4f69
SV
165892020-01-06 Shahab Vahedi <shahab@synopsys.com>
16590
16591 * tui/tui-disasm.c: Remove trailing spaces.
16592
559e7e50
EZ
165932020-01-06 Eli Zaretskii <eliz@gnu.org>
16594 Pedro Alves <palves@redhat.com>
16595
16596 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
16597 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
16598 (windows_gdb_signal_to_target): New function, uses the above
16599 enumeration to convert GDB internal signal codes to equivalent
16600 Windows codes.
16601 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
16602 * windows-nat.c: Include "gdb_wait.h".
16603 (get_windows_debug_event): Extract the fatal exception from the
16604 exit status and convert to the equivalent Posix signal number.
16605 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
16606 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
16607 * gdbsupport/gdb_wait.c: New file, implements
16608 windows_status_to_termsig.
16609 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
16610 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
16611
f2302a34
AB
166122020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
16613
16614 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
16615 show_layout.
16616
6a5206eb
LM
166172020-01-05 Luis Machado <luis.machado@linaro.org>
16618
16619 * aarch64-linux-nat.c
16620 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
16621 and bfd_mach_aarch64.
16622
6ec1d75e
PW
166232020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16624
16625 * ui-file.c (stdio_file::can_emit_style_escape)
16626 (tee_file::can_emit_style_escape): Ensure style is used also on
16627 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
16628 to gdb_stdout.
16629 * main.c (set_gdb_data_directory): Use file style to output the
16630 warning that the given pathname is not a directory.
16631 * top.c (show_history_filename, gdb_safe_append_history)
16632 (show_gdb_datadir): Use file style.
16633
44f81a76
HD
166342020-01-03 Hannes Domani <ssbssa@yahoo.de>
16635
16636 * solib-target.c (struct lm_info_target):
16637 Change offsets to be a unique_xmalloc_ptr.
16638 (solib_target_relocate_section_addresses): Update.
16639
25057eb0
HD
166402020-01-03 Hannes Domani <ssbssa@yahoo.de>
16641
16642 * windows-nat.c (windows_clear_solib): Free so_list linked list.
16643
6e2118f5
BE
166442020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
16645
16646 * MAINTAINERS (Write After Approval): Add myself.
16647
8133c7dc
LM
166482020-01-02 Luis Machado <luis.machado@linaro.org>
16649
16650 * proc-service.c (get_ps_regcache): Remove reference to obsolete
16651 Cell BE architecture.
16652 * target.h (struct target_ops) <thread_architecture>: Likewise.
16653
48189bec
HD
166542020-01-01 Hannes Domani <ssbssa@yahoo.de>
16655
16656 * Makefile.in: Use INSTALL_PROGRAM_ENV.
16657
ead1063b
HD
166582020-01-01 Hannes Domani <ssbssa@yahoo.de>
16659
16660 * MAINTAINERS (Write After Approval): Add myself.
16661
e5d78223
JB
166622020-01-01 Joel Brobecker <brobecker@adacore.com>
16663
16664 * gdbarch.sh: Update copyright year range of generated files.
16665
b811d2c2
JB
166662020-01-01 Joel Brobecker <brobecker@adacore.com>
16667
16668 Update copyright year range in all GDB files.
16669
5f4def5c
JB
166702020-01-01 Joel Brobecker <brobecker@adacore.com>
16671
16672 * copyright.py: Convert to Python 3.
16673
51fd4002
JB
166742020-01-01 Joel Brobecker <brobecker@adacore.com>
16675
16676 * copyright.py: Adapt after move of gnulib directory from gdb
16677 directory to toplevel directory.
16678
5fb651f2
JB
166792020-01-01 Joel Brobecker <brobecker@adacore.com>
16680
16681 * copyright.py (main): Exit if run from the wrong directory.
16682
5dd8bf88
JB
166832020-01-01 Joel Brobecker <brobecker@adacore.com>
16684
16685 * top.c (print_gdb_version): Change copyright year to 2020.
16686
9f71dacb 166872020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 16688
9f71dacb 16689 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 16690
9f71dacb 16691For older changes see ChangeLog-2019.
c906108c
SS
16692\f
16693Local Variables:
16694mode: change-log
16695left-margin: 8
16696fill-column: 74
16697version-control: never
57da7796 16698coding: utf-8
c906108c 16699End: