Only use stride for final element type
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
10f6a3ad
TT
12020-11-04 Tom Tromey <tromey@adacore.com>
2
3 * dwarf2/read.c (read_array_type): Only apply stride to innermost
4 array.
5
b72795a8
TT
62020-11-04 Tom Tromey <tromey@adacore.com>
7
8 * gdbtypes.c (update_static_array_size): Handle bit stride.
9
24aa1b02
TT
102020-11-04 Tom Tromey <tromey@adacore.com>
11
12 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
13
c9a28cbe
TT
142020-11-04 Tom Tromey <tromey@adacore.com>
15
16 * ada-lang.c (ada_is_any_packed_array_type): New function.
17 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
18
57567375
TT
192020-11-04 Tom Tromey <tromey@adacore.com>
20
21 * dwarf2/read.c (recognize_bound_expression)
22 (quirk_ada_thick_pointer): New functions.
23 (read_array_type): Call quirk_ada_thick_pointer.
24 (set_die_type): Add "skip_data_location" parameter.
25 (quirk_ada_thick_pointer): New function.
26 (process_structure_scope): Call quirk_ada_thick_pointer.
27 * ada-lang.c (ada_is_unconstrained_packed_array_type)
28 (decode_packed_array_bitsize): Handle thick pointers without
29 parallel types.
30 (ada_is_gnat_encoded_packed_array_type): Rename from
31 ada_is_packed_array_type.
32 (ada_is_constrained_packed_array_type): Update.
33 * ada-valprint.c (ada_val_print_gnat_array): Remove.
34 (ada_value_print_1): Use ada_get_decoded_value.
35
a7400e44
TT
362020-11-04 Tom Tromey <tromey@adacore.com>
37
38 * ada-lang.c (recursively_update_array_bitsize): New function.
39 (decode_constrained_packed_array_type): Call it.
40
75fd6a26
TT
412020-11-04 Tom Tromey <tromey@adacore.com>
42
43 * ada-lang.c (to_fixed_array_type): Error if
44 decode_constrained_packed_array_type returns NULL.
45
93f9561e
TT
462020-11-04 Tom Tromey <tromey@adacore.com>
47
48 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
49
257e02d8
TT
502020-11-02 Tom Tromey <tromey@adacore.com>
51
52 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
53 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
54 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
55 * amd64-ravenscar-thread.c: New file.
56 * amd64-ravenscar-thread.h: New file.
57 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
58 * configure.tgt (amd64_tobjs): Add ravenscar objects.
59
74d877e5
AB
602020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
61
62 * main.c (execute_cmdargs): New function.
63 (captured_main_1): Make use of execute_cmdargs.
64
64aaad63
AB
652020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
66
67 * NEWS: Mention changes to config file search path.
68 * main.c
69
5b3d3560
TT
702020-11-02 Tom Tromey <tromey@adacore.com>
71
72 * python/python.c: Consolidate two HAVE_PYTHON blocks.
73 (python_GdbModuleDef): Move earlier. Now static.
74 (do_start_initialization): Consolidate some IS_PY3K blocks.
75
dda83cd7
SM
762020-11-02 Simon Marchi <simon.marchi@efficios.com>
77
78 * aarch64-linux-tdep.c: Fix indentation.
79 * aarch64-ravenscar-thread.c: Fix indentation.
80 * aarch64-tdep.c: Fix indentation.
81 * aarch64-tdep.h: Fix indentation.
82 * ada-lang.c: Fix indentation.
83 * ada-lang.h: Fix indentation.
84 * ada-tasks.c: Fix indentation.
85 * ada-typeprint.c: Fix indentation.
86 * ada-valprint.c: Fix indentation.
87 * ada-varobj.c: Fix indentation.
88 * addrmap.c: Fix indentation.
89 * addrmap.h: Fix indentation.
90 * agent.c: Fix indentation.
91 * aix-thread.c: Fix indentation.
92 * alpha-bsd-nat.c: Fix indentation.
93 * alpha-linux-tdep.c: Fix indentation.
94 * alpha-mdebug-tdep.c: Fix indentation.
95 * alpha-nbsd-tdep.c: Fix indentation.
96 * alpha-obsd-tdep.c: Fix indentation.
97 * alpha-tdep.c: Fix indentation.
98 * amd64-bsd-nat.c: Fix indentation.
99 * amd64-darwin-tdep.c: Fix indentation.
100 * amd64-linux-nat.c: Fix indentation.
101 * amd64-linux-tdep.c: Fix indentation.
102 * amd64-nat.c: Fix indentation.
103 * amd64-obsd-tdep.c: Fix indentation.
104 * amd64-tdep.c: Fix indentation.
105 * amd64-windows-tdep.c: Fix indentation.
106 * annotate.c: Fix indentation.
107 * arc-tdep.c: Fix indentation.
108 * arch-utils.c: Fix indentation.
109 * arch/arm-get-next-pcs.c: Fix indentation.
110 * arch/arm.c: Fix indentation.
111 * arm-linux-nat.c: Fix indentation.
112 * arm-linux-tdep.c: Fix indentation.
113 * arm-nbsd-tdep.c: Fix indentation.
114 * arm-pikeos-tdep.c: Fix indentation.
115 * arm-tdep.c: Fix indentation.
116 * arm-tdep.h: Fix indentation.
117 * arm-wince-tdep.c: Fix indentation.
118 * auto-load.c: Fix indentation.
119 * auxv.c: Fix indentation.
120 * avr-tdep.c: Fix indentation.
121 * ax-gdb.c: Fix indentation.
122 * ax-general.c: Fix indentation.
123 * bfin-linux-tdep.c: Fix indentation.
124 * block.c: Fix indentation.
125 * block.h: Fix indentation.
126 * blockframe.c: Fix indentation.
127 * bpf-tdep.c: Fix indentation.
128 * break-catch-sig.c: Fix indentation.
129 * break-catch-syscall.c: Fix indentation.
130 * break-catch-throw.c: Fix indentation.
131 * breakpoint.c: Fix indentation.
132 * breakpoint.h: Fix indentation.
133 * bsd-uthread.c: Fix indentation.
134 * btrace.c: Fix indentation.
135 * build-id.c: Fix indentation.
136 * buildsym-legacy.h: Fix indentation.
137 * buildsym.c: Fix indentation.
138 * c-typeprint.c: Fix indentation.
139 * c-valprint.c: Fix indentation.
140 * c-varobj.c: Fix indentation.
141 * charset.c: Fix indentation.
142 * cli/cli-cmds.c: Fix indentation.
143 * cli/cli-decode.c: Fix indentation.
144 * cli/cli-decode.h: Fix indentation.
145 * cli/cli-script.c: Fix indentation.
146 * cli/cli-setshow.c: Fix indentation.
147 * coff-pe-read.c: Fix indentation.
148 * coffread.c: Fix indentation.
149 * compile/compile-cplus-types.c: Fix indentation.
150 * compile/compile-object-load.c: Fix indentation.
151 * compile/compile-object-run.c: Fix indentation.
152 * completer.c: Fix indentation.
153 * corefile.c: Fix indentation.
154 * corelow.c: Fix indentation.
155 * cp-abi.h: Fix indentation.
156 * cp-namespace.c: Fix indentation.
157 * cp-support.c: Fix indentation.
158 * cp-valprint.c: Fix indentation.
159 * cris-linux-tdep.c: Fix indentation.
160 * cris-tdep.c: Fix indentation.
161 * darwin-nat-info.c: Fix indentation.
162 * darwin-nat.c: Fix indentation.
163 * darwin-nat.h: Fix indentation.
164 * dbxread.c: Fix indentation.
165 * dcache.c: Fix indentation.
166 * disasm.c: Fix indentation.
167 * dtrace-probe.c: Fix indentation.
168 * dwarf2/abbrev.c: Fix indentation.
169 * dwarf2/attribute.c: Fix indentation.
170 * dwarf2/expr.c: Fix indentation.
171 * dwarf2/frame.c: Fix indentation.
172 * dwarf2/index-cache.c: Fix indentation.
173 * dwarf2/index-write.c: Fix indentation.
174 * dwarf2/line-header.c: Fix indentation.
175 * dwarf2/loc.c: Fix indentation.
176 * dwarf2/macro.c: Fix indentation.
177 * dwarf2/read.c: Fix indentation.
178 * dwarf2/read.h: Fix indentation.
179 * elfread.c: Fix indentation.
180 * eval.c: Fix indentation.
181 * event-top.c: Fix indentation.
182 * exec.c: Fix indentation.
183 * exec.h: Fix indentation.
184 * expprint.c: Fix indentation.
185 * f-lang.c: Fix indentation.
186 * f-typeprint.c: Fix indentation.
187 * f-valprint.c: Fix indentation.
188 * fbsd-nat.c: Fix indentation.
189 * fbsd-tdep.c: Fix indentation.
190 * findvar.c: Fix indentation.
191 * fork-child.c: Fix indentation.
192 * frame-unwind.c: Fix indentation.
193 * frame-unwind.h: Fix indentation.
194 * frame.c: Fix indentation.
195 * frv-linux-tdep.c: Fix indentation.
196 * frv-tdep.c: Fix indentation.
197 * frv-tdep.h: Fix indentation.
198 * ft32-tdep.c: Fix indentation.
199 * gcore.c: Fix indentation.
200 * gdb_bfd.c: Fix indentation.
201 * gdbarch.sh: Fix indentation.
202 * gdbarch.c: Re-generate
203 * gdbarch.h: Re-generate.
204 * gdbcore.h: Fix indentation.
205 * gdbthread.h: Fix indentation.
206 * gdbtypes.c: Fix indentation.
207 * gdbtypes.h: Fix indentation.
208 * glibc-tdep.c: Fix indentation.
209 * gnu-nat.c: Fix indentation.
210 * gnu-nat.h: Fix indentation.
211 * gnu-v2-abi.c: Fix indentation.
212 * gnu-v3-abi.c: Fix indentation.
213 * go32-nat.c: Fix indentation.
214 * guile/guile-internal.h: Fix indentation.
215 * guile/scm-cmd.c: Fix indentation.
216 * guile/scm-frame.c: Fix indentation.
217 * guile/scm-iterator.c: Fix indentation.
218 * guile/scm-math.c: Fix indentation.
219 * guile/scm-ports.c: Fix indentation.
220 * guile/scm-pretty-print.c: Fix indentation.
221 * guile/scm-value.c: Fix indentation.
222 * h8300-tdep.c: Fix indentation.
223 * hppa-linux-nat.c: Fix indentation.
224 * hppa-linux-tdep.c: Fix indentation.
225 * hppa-nbsd-nat.c: Fix indentation.
226 * hppa-nbsd-tdep.c: Fix indentation.
227 * hppa-obsd-nat.c: Fix indentation.
228 * hppa-tdep.c: Fix indentation.
229 * hppa-tdep.h: Fix indentation.
230 * i386-bsd-nat.c: Fix indentation.
231 * i386-darwin-nat.c: Fix indentation.
232 * i386-darwin-tdep.c: Fix indentation.
233 * i386-dicos-tdep.c: Fix indentation.
234 * i386-gnu-nat.c: Fix indentation.
235 * i386-linux-nat.c: Fix indentation.
236 * i386-linux-tdep.c: Fix indentation.
237 * i386-nto-tdep.c: Fix indentation.
238 * i386-obsd-tdep.c: Fix indentation.
239 * i386-sol2-nat.c: Fix indentation.
240 * i386-tdep.c: Fix indentation.
241 * i386-tdep.h: Fix indentation.
242 * i386-windows-tdep.c: Fix indentation.
243 * i387-tdep.c: Fix indentation.
244 * i387-tdep.h: Fix indentation.
245 * ia64-libunwind-tdep.c: Fix indentation.
246 * ia64-libunwind-tdep.h: Fix indentation.
247 * ia64-linux-nat.c: Fix indentation.
248 * ia64-linux-tdep.c: Fix indentation.
249 * ia64-tdep.c: Fix indentation.
250 * ia64-tdep.h: Fix indentation.
251 * ia64-vms-tdep.c: Fix indentation.
252 * infcall.c: Fix indentation.
253 * infcmd.c: Fix indentation.
254 * inferior.c: Fix indentation.
255 * infrun.c: Fix indentation.
256 * iq2000-tdep.c: Fix indentation.
257 * language.c: Fix indentation.
258 * linespec.c: Fix indentation.
259 * linux-fork.c: Fix indentation.
260 * linux-nat.c: Fix indentation.
261 * linux-tdep.c: Fix indentation.
262 * linux-thread-db.c: Fix indentation.
263 * lm32-tdep.c: Fix indentation.
264 * m2-lang.c: Fix indentation.
265 * m2-typeprint.c: Fix indentation.
266 * m2-valprint.c: Fix indentation.
267 * m32c-tdep.c: Fix indentation.
268 * m32r-linux-tdep.c: Fix indentation.
269 * m32r-tdep.c: Fix indentation.
270 * m68hc11-tdep.c: Fix indentation.
271 * m68k-bsd-nat.c: Fix indentation.
272 * m68k-linux-nat.c: Fix indentation.
273 * m68k-linux-tdep.c: Fix indentation.
274 * m68k-tdep.c: Fix indentation.
275 * machoread.c: Fix indentation.
276 * macrocmd.c: Fix indentation.
277 * macroexp.c: Fix indentation.
278 * macroscope.c: Fix indentation.
279 * macrotab.c: Fix indentation.
280 * macrotab.h: Fix indentation.
281 * main.c: Fix indentation.
282 * mdebugread.c: Fix indentation.
283 * mep-tdep.c: Fix indentation.
284 * mi/mi-cmd-catch.c: Fix indentation.
285 * mi/mi-cmd-disas.c: Fix indentation.
286 * mi/mi-cmd-env.c: Fix indentation.
287 * mi/mi-cmd-stack.c: Fix indentation.
288 * mi/mi-cmd-var.c: Fix indentation.
289 * mi/mi-cmds.c: Fix indentation.
290 * mi/mi-main.c: Fix indentation.
291 * mi/mi-parse.c: Fix indentation.
292 * microblaze-tdep.c: Fix indentation.
293 * minidebug.c: Fix indentation.
294 * minsyms.c: Fix indentation.
295 * mips-linux-nat.c: Fix indentation.
296 * mips-linux-tdep.c: Fix indentation.
297 * mips-nbsd-tdep.c: Fix indentation.
298 * mips-tdep.c: Fix indentation.
299 * mn10300-linux-tdep.c: Fix indentation.
300 * mn10300-tdep.c: Fix indentation.
301 * moxie-tdep.c: Fix indentation.
302 * msp430-tdep.c: Fix indentation.
303 * namespace.h: Fix indentation.
304 * nat/fork-inferior.c: Fix indentation.
305 * nat/gdb_ptrace.h: Fix indentation.
306 * nat/linux-namespaces.c: Fix indentation.
307 * nat/linux-osdata.c: Fix indentation.
308 * nat/netbsd-nat.c: Fix indentation.
309 * nat/x86-dregs.c: Fix indentation.
310 * nbsd-nat.c: Fix indentation.
311 * nbsd-tdep.c: Fix indentation.
312 * nios2-linux-tdep.c: Fix indentation.
313 * nios2-tdep.c: Fix indentation.
314 * nto-procfs.c: Fix indentation.
315 * nto-tdep.c: Fix indentation.
316 * objfiles.c: Fix indentation.
317 * objfiles.h: Fix indentation.
318 * opencl-lang.c: Fix indentation.
319 * or1k-tdep.c: Fix indentation.
320 * osabi.c: Fix indentation.
321 * osabi.h: Fix indentation.
322 * osdata.c: Fix indentation.
323 * p-lang.c: Fix indentation.
324 * p-typeprint.c: Fix indentation.
325 * p-valprint.c: Fix indentation.
326 * parse.c: Fix indentation.
327 * ppc-linux-nat.c: Fix indentation.
328 * ppc-linux-tdep.c: Fix indentation.
329 * ppc-nbsd-nat.c: Fix indentation.
330 * ppc-nbsd-tdep.c: Fix indentation.
331 * ppc-obsd-nat.c: Fix indentation.
332 * ppc-ravenscar-thread.c: Fix indentation.
333 * ppc-sysv-tdep.c: Fix indentation.
334 * ppc64-tdep.c: Fix indentation.
335 * printcmd.c: Fix indentation.
336 * proc-api.c: Fix indentation.
337 * producer.c: Fix indentation.
338 * producer.h: Fix indentation.
339 * prologue-value.c: Fix indentation.
340 * prologue-value.h: Fix indentation.
341 * psymtab.c: Fix indentation.
342 * python/py-arch.c: Fix indentation.
343 * python/py-bpevent.c: Fix indentation.
344 * python/py-event.c: Fix indentation.
345 * python/py-event.h: Fix indentation.
346 * python/py-finishbreakpoint.c: Fix indentation.
347 * python/py-frame.c: Fix indentation.
348 * python/py-framefilter.c: Fix indentation.
349 * python/py-inferior.c: Fix indentation.
350 * python/py-infthread.c: Fix indentation.
351 * python/py-objfile.c: Fix indentation.
352 * python/py-prettyprint.c: Fix indentation.
353 * python/py-registers.c: Fix indentation.
354 * python/py-signalevent.c: Fix indentation.
355 * python/py-stopevent.c: Fix indentation.
356 * python/py-stopevent.h: Fix indentation.
357 * python/py-threadevent.c: Fix indentation.
358 * python/py-tui.c: Fix indentation.
359 * python/py-unwind.c: Fix indentation.
360 * python/py-value.c: Fix indentation.
361 * python/py-xmethods.c: Fix indentation.
362 * python/python-internal.h: Fix indentation.
363 * python/python.c: Fix indentation.
364 * ravenscar-thread.c: Fix indentation.
365 * record-btrace.c: Fix indentation.
366 * record-full.c: Fix indentation.
367 * record.c: Fix indentation.
368 * reggroups.c: Fix indentation.
369 * regset.h: Fix indentation.
370 * remote-fileio.c: Fix indentation.
371 * remote.c: Fix indentation.
372 * reverse.c: Fix indentation.
373 * riscv-linux-tdep.c: Fix indentation.
374 * riscv-ravenscar-thread.c: Fix indentation.
375 * riscv-tdep.c: Fix indentation.
376 * rl78-tdep.c: Fix indentation.
377 * rs6000-aix-tdep.c: Fix indentation.
378 * rs6000-lynx178-tdep.c: Fix indentation.
379 * rs6000-nat.c: Fix indentation.
380 * rs6000-tdep.c: Fix indentation.
381 * rust-lang.c: Fix indentation.
382 * rx-tdep.c: Fix indentation.
383 * s12z-tdep.c: Fix indentation.
384 * s390-linux-tdep.c: Fix indentation.
385 * score-tdep.c: Fix indentation.
386 * ser-base.c: Fix indentation.
387 * ser-mingw.c: Fix indentation.
388 * ser-uds.c: Fix indentation.
389 * ser-unix.c: Fix indentation.
390 * serial.c: Fix indentation.
391 * sh-linux-tdep.c: Fix indentation.
392 * sh-nbsd-tdep.c: Fix indentation.
393 * sh-tdep.c: Fix indentation.
394 * skip.c: Fix indentation.
395 * sol-thread.c: Fix indentation.
396 * solib-aix.c: Fix indentation.
397 * solib-darwin.c: Fix indentation.
398 * solib-frv.c: Fix indentation.
399 * solib-svr4.c: Fix indentation.
400 * solib.c: Fix indentation.
401 * source.c: Fix indentation.
402 * sparc-linux-tdep.c: Fix indentation.
403 * sparc-nbsd-tdep.c: Fix indentation.
404 * sparc-obsd-tdep.c: Fix indentation.
405 * sparc-ravenscar-thread.c: Fix indentation.
406 * sparc-tdep.c: Fix indentation.
407 * sparc64-linux-tdep.c: Fix indentation.
408 * sparc64-nbsd-tdep.c: Fix indentation.
409 * sparc64-obsd-tdep.c: Fix indentation.
410 * sparc64-tdep.c: Fix indentation.
411 * stabsread.c: Fix indentation.
412 * stack.c: Fix indentation.
413 * stap-probe.c: Fix indentation.
414 * stubs/ia64vms-stub.c: Fix indentation.
415 * stubs/m32r-stub.c: Fix indentation.
416 * stubs/m68k-stub.c: Fix indentation.
417 * stubs/sh-stub.c: Fix indentation.
418 * stubs/sparc-stub.c: Fix indentation.
419 * symfile-mem.c: Fix indentation.
420 * symfile.c: Fix indentation.
421 * symfile.h: Fix indentation.
422 * symmisc.c: Fix indentation.
423 * symtab.c: Fix indentation.
424 * symtab.h: Fix indentation.
425 * target-float.c: Fix indentation.
426 * target.c: Fix indentation.
427 * target.h: Fix indentation.
428 * tic6x-tdep.c: Fix indentation.
429 * tilegx-linux-tdep.c: Fix indentation.
430 * tilegx-tdep.c: Fix indentation.
431 * top.c: Fix indentation.
432 * tracefile-tfile.c: Fix indentation.
433 * tracepoint.c: Fix indentation.
434 * tui/tui-disasm.c: Fix indentation.
435 * tui/tui-io.c: Fix indentation.
436 * tui/tui-regs.c: Fix indentation.
437 * tui/tui-stack.c: Fix indentation.
438 * tui/tui-win.c: Fix indentation.
439 * tui/tui-winsource.c: Fix indentation.
440 * tui/tui.c: Fix indentation.
441 * typeprint.c: Fix indentation.
442 * ui-out.h: Fix indentation.
443 * unittests/copy_bitwise-selftests.c: Fix indentation.
444 * unittests/memory-map-selftests.c: Fix indentation.
445 * utils.c: Fix indentation.
446 * v850-tdep.c: Fix indentation.
447 * valarith.c: Fix indentation.
448 * valops.c: Fix indentation.
449 * valprint.c: Fix indentation.
450 * valprint.h: Fix indentation.
451 * value.c: Fix indentation.
452 * value.h: Fix indentation.
453 * varobj.c: Fix indentation.
454 * vax-tdep.c: Fix indentation.
455 * windows-nat.c: Fix indentation.
456 * windows-tdep.c: Fix indentation.
457 * xcoffread.c: Fix indentation.
458 * xml-syscall.c: Fix indentation.
459 * xml-tdesc.c: Fix indentation.
460 * xstormy16-tdep.c: Fix indentation.
461 * xtensa-config.c: Fix indentation.
462 * xtensa-linux-nat.c: Fix indentation.
463 * xtensa-linux-tdep.c: Fix indentation.
464 * xtensa-tdep.c: Fix indentation.
465
e1f57067
AB
4662020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
467 Craig Blackmore <craig.blackmore@embecosm.com>
468
469 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
470 as an unsigned value.
471
ae7754b2
TT
4722020-11-01 Tom Tromey <tom@tromey.com>
473
474 * dbxread.c (dbx_end_psymtab): Update.
475 * dwarf2/read.c (process_psymtab_comp_unit_reader)
476 (build_type_psymtabs_reader): Update.
477 * xcoffread.c (xcoff_end_psymtab): Update.
478 * ctfread.c (scan_partial_symbols): Update.
479 * psymtab.c (sort_pst_symbols): Remove.
480 (partial_symtab::end): Rename from end_psymtab_common. Inline
481 sort_pst_symbols.
482 * psympriv.h (struct partial_symtab) <end>: New method.
483 (end_psymtab_common): Don't declare.
484
0684bb51
TT
4852020-11-01 Tom Tromey <tom@tromey.com>
486
487 * symmisc.c (count_psyms): New function.
488 (print_objfile_statistics): Use it.
489 * psymtab.c (append_psymbol_to_list): Remove.
490 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
491 * objfiles.h (struct objstats) <n_psyms>: Remove.
492
089002bb
TT
4932020-11-01 Tom Tromey <tom@tromey.com>
494
495 * dbxread.c (dbx_end_psymtab): Update.
496 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
497 (build_type_psymtabs_reader): Update.
498 * xcoffread.c (xcoff_end_psymtab): Update.
499 * ctfread.c (scan_partial_symbols): Update.
500 * psympriv.h (end_psymtab_common): Update.
501 * psymtab.c (end_psymtab_common): Remove objfile parameter.
502 (sort_pst_symbols): Likewise.
503
525454d6
TT
5042020-11-01 Tom Tromey <tom@tromey.com>
505
506 * dbxread.c (dbx_symfile_read): Update.
507 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
508 * xcoffread.c (xcoff_initial_scan): Update.
509 * psympriv.h (init_psymbol_list): Don't declare.
510 * psymtab.c (init_psymbol_list): Remove.
511
60bd1d53
JB
5122020-11-01 Joel Brobecker <brobecker@adacore.com>
513
514 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
515 gnat_encoded_fixed_type_info. Update all callers.
516
db99d0d0
JB
5172020-11-01 Joel Brobecker <brobecker@adacore.com>
518
519 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
520 line too long.
521
75f24e86
JB
5222020-11-01 Joel Brobecker <brobecker@adacore.com>
523
524 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
525 cast_from_fixed. Update all callers.
526 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
527 Update all callers.
528 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
529 Update all callers.
530 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
531 ada_scaling_factor.
532 * ada-typeprint.c: Replace call to ada_scaling_factor by call
533 to print_gnat_encoded_fixed_point_type.
534 * ada-valprint.c: Likewise.
535
4f0469cd
AB
5362020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
537
538 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
539 (debug_prefixed_printf): Add check of debug_displaced flag.
540 * linux-nat.c (linux_nat_debug_printf): Add check of
541 debug_linux_nat flag.
542
17417fb0
SM
5432020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
544
545 * infrun.c (infrun_debug_printf_1): Remove.
546 (displaced_debug_printf_1): Remove.
547 (stop_all_threads): Use debug_prefixed_printf.
548 * infrun.h (infrun_debug_printf_1): Remove.
549 (infrun_debug_printf): Use debug_prefixed_printf.
550 (displaced_debug_printf_1): Remove.
551 (displaced_debug_printf): Use debug_prefixed_printf.
552 * linux-nat.c (linux_nat_debug_printf_1): Remove.
553 (linux_nat_debug_printf): Use debug_prefixed_printf.
554
ad6dba1c
SM
5552020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
556
557 * configure: Re-generate.
558 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
559 AC_LANG_PROGRAM.
560
b6fb30ed
SM
5612020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
562
563 * configure: Re-generate.
564
5164c117
SM
5652020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
566
567 * configure: Re-generate.
568
864ca435
SM
5692020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
570
571 * configure: Re-generate.
572
b9442ec1
SM
5732020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
574
575 * configure: Re-generate.
576
294f2697
SM
5772020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
578
579 * acinclude.m4: Modernize.
580 * configure: Re-generate.
581
5593a99a
SM
5822020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
583
584 * configure.ac: Modernize.
585 * configure: Re-generate.
586
e41fda1d
SM
5872020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
588
589 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
590 * configure: Re-generate.
591 * configure.ac: Remove AM_PROG_CC_STDC.
592
91e1a0ed
SM
5932020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
594
595 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
596 AC_CANONICAL_SYSTEM.
597 * configure: Re-generate.
598
136821d9
SM
5992020-10-30 Simon Marchi <simon.marchi@efficios.com>
600
601 * infrun.h (displaced_debug_printf): New macro. Replace
602 displaced debug prints throughout to use it.
603 (displaced_debug_printf_1): New declaration.
604 (displaced_step_dump_bytes): Return string, remove ui_file
605 parameter, update all callers.
606 * infrun.c (displaced_debug_printf_1): New function.
607 (displaced_step_dump_bytes): Return string, remove ui_file
608 parameter
609
aa2045e7
SM
6102020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
611
612 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
613
b1ec2735
TT
6142020-10-30 Tom Tromey <tromey@adacore.com>
615
616 * Makefile.in (stamp-init): Depend on config.status.
617
b78b3a29
TBA
6182020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
619
620 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
621
d70bdd3c
PA
6222020-10-30 Pedro Alves <pedro@palves.net>
623
624 * thread.c (lookup_selected_frame): Move ...
625 * frame.c (lookup_selected_frame): ... here.
626
79952e69
PA
6272020-10-30 Pedro Alves <pedro@palves.net>
628
629 * blockframe.c (block_innermost_frame): Use get_selected_frame.
630 * frame.c
631 (scoped_restore_selected_frame::scoped_restore_selected_frame):
632 Use save_selected_frame. Save language as well.
633 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
634 Use restore_selected_frame, and restore language as well.
635 (selected_frame_id, selected_frame_level): New.
636 (selected_frame): Update comments.
637 (save_selected_frame, restore_selected_frame): New.
638 (get_selected_frame): Use lookup_selected_frame.
639 (get_selected_frame_if_set): Delete.
640 (select_frame): Record selected_frame_level and selected_frame_id.
641 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
642 fields.
643 (get_selected_frame): Make 'message' parameter optional.
644 (get_selected_frame_if_set): Delete declaration.
645 (select_frame): Update comments.
646 (save_selected_frame, restore_selected_frame)
647 (lookup_selected_frame): Declare.
648 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
649 * infrun.c (struct infcall_control_state) <selected_frame_level>:
650 New field.
651 (save_infcall_control_state): Use save_selected_frame.
652 (restore_selected_frame): Delete.
653 (restore_infcall_control_state): Use restore_selected_frame.
654 * stack.c (select_frame_command_core, frame_command_core): Use
655 get_selected_frame.
656 * thread.c (restore_selected_frame): Rename to ...
657 (lookup_selected_frame): ... this and make extern. Select the
658 current frame if the frame level is -1.
659 (scoped_restore_current_thread::restore): Also restore the
660 language.
661 (scoped_restore_current_thread::~scoped_restore_current_thread):
662 Don't try/catch.
663 (scoped_restore_current_thread::scoped_restore_current_thread):
664 Save the language as well. Use save_selected_frame.
665
58103c33
SM
6662020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
667
668 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
669 documentation.
670 * gdbarch.h: Re-generate.
671
40a53766
SM
6722020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
673
674 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
675 parameter.
676 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
677 Likewise.
678 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
679 Likewise.
680 * arch-utils.c (default_displaced_step_hw_singlestep):
681 Likewise.
682 * arch-utils.h (default_displaced_step_hw_singlestep):
683 Likewise.
684 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
685 Likewise.
686 * s390-tdep.c (s390_displaced_step_hw_singlestep):
687 Likewise.
688 * gdbarch.c: Re-generate.
689 * gdbarch.h: Re-generate.
690 * infrun.c (resume_1): Adjust.
691
8407f91b
TT
6922020-10-29 Tom Tromey <tom@tromey.com>
693
694 * progspace.c (program_space::~program_space): Don't call
695 exec_close.
696
5008b3b2
TT
6972020-10-29 Tom Tromey <tom@tromey.com>
698
699 * exec.c (exec_target::close): Don't change current program
700 space.
701
d9eebde0
TT
7022020-10-29 Tom Tromey <tom@tromey.com>
703
704 * symfile.c (add_symbol_file_command): Update.
705 * exec.c (program_space::add_target_sections): Rename.
706 * symfile-mem.c (symbol_file_add_from_memory): Update.
707 * progspace.h (struct program_space) <add_target_sections>:
708 Declare new overload.
709 * exec.h (add_target_sections_of_objfile): Don't declare.
710
3769e227
TT
7112020-10-29 Tom Tromey <tom@tromey.com>
712
713 * solib.c (solib_map_sections): Update.
714 * exec.c (program_space::add_target_sections): Now a method.
715 (exec_file_attach): Update.
716 * exec.h (add_target_sections): Don't declare.
717 * progspace.h (struct program_space) <add_target_sections>:
718 Declare.
719
2a3f84af
TT
7202020-10-29 Tom Tromey <tom@tromey.com>
721
722 * progspace.h (struct program_space) <remove_target_sections>:
723 Declare.
724 * exec.c (program_space::remove_target_sections): Now a method.
725 * exec.h (remove_target_sections): Don't declare.
726
004eecfd
TT
7272020-10-29 Tom Tromey <tom@tromey.com>
728
729 * inferior.c (delete_inferior): Update.
730 * progspace.c (program_space::empty): Rename from
731 program_space_empty_p. Return bool.
732 * progspace.h (struct program_space) <empty>: New method.
733 (program_space_empty_p): Don't declare.
734
e39fb971
TT
7352020-10-29 Tom Tromey <tom@tromey.com>
736
737 * progspace.c (program_space::~program_space): Don't call
738 clear_program_space_solib_cache.
739 (program_space::clear_solib_cache): Rename from
740 clear_solib_cache.
741 * solib.c (handle_solib_event): Update.
742 * progspace.h (struct program_space) <clear_solib_cache>: New
743 method.
744 (clear_program_space_solib_cache): Don't declare.
745
a42d7dd8
TT
7462020-10-29 Tom Tromey <tom@tromey.com>
747
748 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
749 * target.c (info_target_command): Update.
750 * symfile.c (syms_from_objfile_1, finish_new_objfile)
751 (symbol_file_clear, reread_symbols): Update.
752 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
753 * stabsread.c (scan_file_globals): Update.
754 * solib.c (update_solib_list): Update.
755 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
756 (svr4_fetch_objfile_link_map, enable_break)
757 (svr4_relocate_main_executable)
758 (svr4_iterate_over_objfiles_in_search_order): Update.
759 * solib-frv.c (lm_base, enable_break)
760 (frv_relocate_main_executable): Update.
761 (main_got, frv_fdpic_find_canonical_descriptor): Update.
762 (frv_fetch_objfile_link_map): Update.
763 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
764 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
765 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
766 * remote.c (remote_target::get_offsets): Update.
767 (remote_target::start_remote)
768 (extended_remote_target::post_attach): Update.
769 * objfiles.c (entry_point_address_query): Update.
770 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
771 * minsyms.c (get_symbol_leading_char): Update.
772 * frame.c (inside_main_func): Update.
773 * progspace.h (symfile_objfile): Remove macro.
774
19f6550e
TT
7752020-10-29 Tom Tromey <tom@tromey.com>
776
777 * exec.c (exec_file_attach): Update.
778 * progspace.c (program_space::exec_close): Update.
779 * progspace.h (struct program_space) <ebfd>: Now a
780 gdb_bfd_ref_ptr.
781 <set_exec_bfd>: Change argument type.
782 <exec_bfd>: Update.
783
7e10abd1
TT
7842020-10-29 Tom Tromey <tom@tromey.com>
785
786 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
787 * symfile.c (reread_symbols): Update.
788 * symfile-mem.c (add_symbol_file_from_memory_command)
789 (add_vsyscall_page): Update.
790 * source-cache.c (source_cache::get_plain_source_lines): Update.
791 * solib-svr4.c (find_program_interpreter, elf_locate_base)
792 (svr4_current_sos_direct, svr4_exec_displacement)
793 (svr4_relocate_main_executable): Update.
794 (svr4_iterate_over_objfiles_in_search_order): Update.
795 * solib-frv.c (enable_break2, enable_break): Update.
796 * solib-dsbt.c (lm_base, enable_break): Update.
797 * solib-darwin.c (find_program_interpreter)
798 (darwin_solib_create_inferior_hook): Update.
799 * sol-thread.c (rw_common, ps_pdmodel): Update.
800 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
801 * remote.c (compare_sections_command)
802 (remote_target::trace_set_readonly_regions): Update.
803 * remote-sim.c (get_sim_inferior_data)
804 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
805 (gdbsim_target_open, gdbsim_target::files_info): Update.
806 * exec.h (exec_bfd): Remove macro.
807 * progspace.c (initialize_progspace): Update.
808 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
809 Update.
810 * nto-procfs.c (nto_procfs_target::post_attach)
811 (nto_procfs_target::create_inferior): Update.
812 * maint.c (maintenance_info_sections): Update.
813 * linux-thread-db.c (thread_db_target::get_thread_local_address):
814 Update.
815 * infcmd.c (post_create_inferior): Update.
816 * gcore.c (default_gcore_arch, default_gcore_target): Update.
817 (objfile_find_memory_regions): Update.
818 * exec.c (validate_exec_file, exec_file_attach)
819 (exec_read_partial_read_only, print_section_info): Update.
820 * corelow.c (core_target_open): Update.
821 * corefile.c (reopen_exec_file, validate_files): Update.
822 * arm-tdep.c (gdb_print_insn_arm): Update.
823 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
824 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
825 methods.
826
b55221ab
TT
8272020-10-29 Tom Tromey <tom@tromey.com>
828
829 * progspace.h (current_target_sections): Remove macro.
830 * solib-svr4.c (scan_dyntag): Update.
831 * solib-dsbt.c (scan_dyntag): Update.
832 * exec.c (exec_target::close): Update.
833 (add_target_sections, add_target_sections_of_objfile)
834 (remove_target_sections, exec_target::get_section_table)
835 (exec_target::files_info, set_section_command)
836 (exec_set_section_address, exec_target::has_memory)
837 (exec_target::has_memory): Update.
838
5a36e715
TT
8392020-10-29 Tom Tromey <tom@tromey.com>
840
841 * source-cache.c (source_cache::get_plain_source_lines): Use
842 current_program_space.
843 * corefile.c (reopen_exec_file): Use current_program_space.
844 * exec.c (exec_file_attach): Use current_program_space.
845 * exec.h (exec_bfd_mtime): Remove.
846
784c8592
TT
8472020-10-29 Tom Tromey <tom@tromey.com>
848
849 * gcore.c (default_gcore_mach): Remove.
850 (create_gcore_bfd): Update.
851
8a4f1402
TT
8522020-10-29 Tom Tromey <tom@tromey.com>
853
854 * progspace.c (program_space::exec_close): New method, from
855 exec_close in exec.c.
856 * exec.c (exec_close): Move to progspace.c.
857 (exec_target::close, exec_file_attach): Update.
858 * progspace.h (struct program_space) <exec_close>: Declare
859 method.
860
c20cb686
TT
8612020-10-29 Tom Tromey <tom@tromey.com>
862
863 * progspace.h (struct program_space) <exec_filename>: Rename from
864 pspace_exec_filename. Now a unique_xmalloc_ptr.
865 * inferior.c (print_selected_inferior): Update.
866 (print_inferior): Update.
867 * mi/mi-main.c (print_one_inferior): Update.
868 * exec.h (exec_filename): Remove macro.
869 * corefile.c (get_exec_file): Update.
870 * exec.c (exec_close): Update.
871 (exec_file_attach): Update.
872 * progspace.c (clone_program_space): Update.
873 (print_program_space): Update.
874
6be2a9ab
TT
8752020-10-29 Tom Tromey <tom@tromey.com>
876
877 * target-section.h (struct target_section): Add constructor.
878 * exec.c (build_section_table, add_target_sections_of_objfile):
879 Update.
880 * corelow.c (core_target::build_file_mappings): Update.
881
cfaa8f76
TBA
8822020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
883
884 PR gdb/19318
885 * inferior.c (detach_inferior_command): Restore the current thread.
886 (kill_inferior_command): Ditto.
887
1b00ef06
TV
8882020-10-28 Tom de Vries <tdevries@suse.de>
889
890 PR symtab/26772
891 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
892 map, check it in the "best match" loop.
893
7f40ce1a
SM
8942020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
895
896 * m32c-tdep.c: Remove unused includes.
897
5eb9e3f5
SM
8982020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
899
900 * xtensa-tdep.c: Remove includes.
901
b1d4d8d1
TBA
9022020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
903
904 * breakpoint.c (struct condition_command_opts): New struct.
905 (condition_command_option_defs): New static global.
906 (make_condition_command_options_def_group): New function.
907 (condition_completer): Update to consider the '-force' flag.
908 (condition_command): Use gdb::option for the '-force' flag.
909
bd24c5d6
TV
9102020-10-27 Tom de Vries <tdevries@suse.de>
911
912 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
913 symbols in section check.
914
61eb46a4
TV
9152020-10-27 Tom de Vries <tdevries@suse.de>
916
917 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
918
733d554a
TBA
9192020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
920
921 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
922 * breakpoint.c: Update the help text of the 'condition' and 'break'
923 commands.
924 (set_breakpoint_condition): Take a new bool parameter
925 to control whether condition definition should be forced even when
926 the condition expression is invalid in all of the current locations.
927 (condition_command): Update the call to 'set_breakpoint_condition'.
928 (find_condition_and_thread): Take the "-force-condition" flag into
929 account.
930 * linespec.c (linespec_keywords): Add "-force-condition" as an
931 element.
932 (FORCE_KEYWORD_INDEX): New #define.
933 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
934 as a keyword.
935 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
936 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
937 * python/py-breakpoint.c (bppy_set_condition): Ditto.
938 * NEWS: Mention the changes to the 'break' and 'condition' commands.
939
b5fa468f
TBA
9402020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
941
942 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
943 * breakpoint.c (set_breakpoint_location_condition): New function.
944 (set_breakpoint_condition): Disable a breakpoint location if parsing
945 the condition string gives an error.
946 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
947 (build_target_condition_list): Ditto.
948 (build_target_command_list): Ditto.
949 (build_bpstat_chain): Ditto.
950 (print_one_breakpoint_location): Ditto.
951 (print_one_breakpoint): Ditto.
952 (breakpoint_1): Ditto.
953 (bp_location::bp_location): Ditto.
954 (locations_are_equal): Ditto.
955 (update_breakpoint_locations): Ditto.
956 (enable_disable_bp_num_loc): Ditto.
957 (init_breakpoint_sal): Use set_breakpoint_location_condition.
958 (find_condition_and_thread_for_sals): New static function.
959 (create_breakpoint): Call find_condition_and_thread_for_sals.
960 (location_to_sals): Call find_condition_and_thread_for_sals instead
961 of find_condition_and_thread.
962
1c47ec3e
TV
9632020-10-26 Tom de Vries <tdevries@suse.de>
964
965 * dwarf2/read.c (process_full_comp_unit): Call
966 dwarf2_find_base_address.
967
6390859c
TT
9682020-10-26 Tom Tromey <tromey@adacore.com>
969
970 * gdbtypes.c (create_range_type): Revert previous patch. Add
971 comment.
972
d744f0f9
PA
9732020-10-26 Pedro Alves <pedro@palves.net>
974
975 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
976 (my_waitpid): Use gdb::handle_eintr.
977
006811bc
SM
9782020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
979
980 * acinclude.m4: Update ptrace.m4 path.
981 * ptrace.m4: Moved to gdbsupport.
982
c75e31a1
SM
9832020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
984
985 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
986 instead of target_gdbarch.
987
32495661
SM
9882020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
989
990 * jit.c (jit_reader_load_command): Pass current inferior.
991 (jit_inferior_init): Change parameter type to inferior, use it.
992 (jit_inferior_created): Remove.
993 (jit_inferior_created_hook): Pass inferior parameter down.
994 (_initialize_jit): Use jit_inferior_created_hook instead of
995 jit_inferior_created.
996 * jit.h (jit_inferior_created_hook): Add inferior parameter.
997 * infrun.c (follow_exec): Pass inferior to
998 jit_inferior_created_hook.
999
3f66685e
SM
10002020-10-24 Simon Marchi <simon.marchi@efficios.com>
1001
1002 * linux-thread-db.c (check_pid_namespace_match): Add inferior
1003 parameter and use it.
1004 (thread_db_inferior_created): Pass inferior argument.
1005
a0ff652f
SM
10062020-10-24 Simon Marchi <simon.marchi@efficios.com>
1007
1008 * aix-thread.c (aix_thread_inferior_created): Add inferior
1009 parameter.
1010 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
1011 * dummy-frame.c (cleanup_dummy_frames): Likewise.
1012 * jit.c (jit_inferior_created): Likewise.
1013 * linux-thread-db.c (thread_db_inferior_created): Likewise.
1014 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
1015 * observable.h (inferior_created): Likewise.
1016 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
1017 * symfile-mem.c (add_vsyscall_page): Likewise.
1018 * infcmd.c (post_create_inferior): Pass inferior argument.
1019
3c67532c
JB
10202020-10-24 Joel Brobecker <brobecker@adacore.com>
1021
1022 GDB 10.1 released.
1023
8747316e
JB
10242020-10-23 Joel Brobecker <brobecker@adacore.com>
1025
1026 * ada-typeprint.c (ada_print_type): Remove superfluous second call
1027 to ada_check_typedef.
1028
1a0ea399
AB
10292020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1030
1031 * f-exp.y (f_parse): Rename to...
1032 (f_language::parser): ...this.
1033 * f-lang.c (f_get_encoding): Rename to...
1034 (f_language::get_encoding): ...this.
1035 (f_op_print_tab): Rename to...
1036 (f_language::op_print_tab): ...this.
1037 (exp_descriptor_f): Rename to...
1038 (f_language::exp_descriptor_tab): ...this.
1039 (class f_language): Moved to f-lang.h.
1040 (f_language::language_arch_info): New function, moved out of class
1041 declaration.
1042 (f_language::search_name_hash): Likewise.
1043 (f_language::lookup_symbol_nonlocal): Likewise.
1044 (f_language::get_symbol_name_matcher_inner): Likewise.
1045 * f-lang.h: Add 'valprint.h' include.
1046 (class f_language): Moved here from f-lang.c.
1047 * f-typeprint.c (f_type_print_args): Delete commented out
1048 declaration.
1049 (f_print_typedef): Rename to...
1050 (f_language::print_typedef): ...this.
1051 (f_print_type): Rename to...
1052 (f_language::print_type): ...this.
1053 (f_type_print_varspec_prefix): Delete declaration and rename to...
1054 (f_language::f_type_print_varspec_prefix): ...this.
1055 (f_type_print_varspec_suffix): Delete declaration and rename to...
1056 (f_language::f_type_print_varspec_suffix): ...this.
1057 (f_type_print_base): Delete declaration and rename to...
1058 (f_language::f_type_print_base): ...this.
1059 * f-valprint.c (f_value_print_inner): Rename to...
1060 (f_language::value_print_inner): ...this.
1061 * parse.c: Delete 'f-lang.h' include.
1062
88cefd9b
AB
10632020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1064
1065 * language.h (language_defn::print_type): Add variable names in
1066 declaration, and update header comment.
1067
5399db93
AB
10682020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1069
1070 * ada-lang.c (ada_language::demangle): Rename to...
1071 (ada_language::demangle_symbol): ...this.
1072 * c-lang.c (cplus_language::demangle): Rename to...
1073 (cplus_language::demangle_symbol): ...this.
1074 * d-lang.c (d_language::demangle): Rename to...
1075 (d_language::demangle_symbol): ...this.
1076 * f-lang.c (f_language::demangle): Rename to...
1077 (f_language::demangle_symbol): ...this.
1078 * go-lang.c (go_language::demangle): Rename to...
1079 (go_language::demangle_symbol): ...this.
1080 * language.c (language_demangle): Update call to demangle_symbol.
1081 (auto_or_unknown_language::demangle): Rename to...
1082 (auto_or_unknown_language::demangle_symbol): ...this.
1083 * language.h (language_defn::demangle): Rename to...
1084 (language_defn::demangle_symbol): ...this.
1085 * objc-lang.c (objc_language::demangle): Rename to...
1086 (objc_language::demangle_symbol): ...this.
1087 * rust-lang.c (rust_language::demangle): Rename to...
1088 (rust_language::demangle_symbol): ...this.
1089
4b2f86ef
AB
10902020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1091
1092 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
1093 (iterate_over_file_blocks): Replace use of macro with the macros
1094 definition.
1095
e74b39de
AB
10962020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1097
1098 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
1099 * valprint.c (maybe_print_array_index): Replace use of macro with
1100 the macros definition.
1101
00c696a6
AB
11022020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1103
1104 * ada-lang.c (ada_language::print_array_index): Call value_print
1105 directly.
1106 * language.c (language_defn::print_array_index): Likewise.
1107 * language.h (LA_VALUE_PRINT): Delete.
1108 * valprint.c (value_print): Call value_print on the
1109 current_language directly.
1110
d3b67c56
AB
11112020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1112
1113 * language.h (LA_PRINT_TYPEDEF): Delete.
1114 * typeprint.c (typedef_print): Call print_typedef directly on the
1115 current_language object.
1116
790e2a12
AB
11172020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1118
1119 * m2-exp.y (m2_parse): Rename to...
1120 (m2_language::parser): ...this. Update function signature.
1121 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
1122 (m2_op_print): Rename to...
1123 (m2_language::op_print_tab): ...this, and make const.
1124 (exp_descriptor_modula2): Rename to...
1125 (m2_language::exp_descriptor_modula2): ...this.
1126 (class m2_language): Move to m2-lang.h.
1127 (m2_language::language_arch_info): New function, moved out of
1128 class declaration.
1129 (m2_language::printchar): New function, body from m2_printchar.
1130 (m2_language::printstr): New function, moved out of class
1131 declaration.
1132 (m2_language::emitchar): Likewise.
1133 * m2-lang.h (m2_parse): Delete declaration.
1134 (m2_print_typedef): Delete declaration.
1135 (m2_value_print_inner): Delete declaration.
1136 (class m2_language): Class declaration moved from m2-lang.c,
1137 larger functions are left in m2-lang.c.
1138 * m2-typeprint.c (m2_print_typedef): Rename to...
1139 (m2_language::print_typedef): ...this, and update function
1140 signature.
1141 * m2-valprint.c (m2_value_print_inner): Rename to...
1142 (m2_language::value_print_inner): ...this, replace use of
1143 LA_PRINT_STRING with a direct call to printstr member function,
1144 and update recursive call.
1145
b01175fc
AB
11462020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1147
1148 * language.c (default_is_string_type_p): Delete, implementation
1149 moved into auto_or_unknown_language::is_string_type_p.
1150 (unk_op_print_tab): Moved into
1151 auto_or_unknown_language::opcode_print_table.
1152 (unknown_language_arch_info): Delete, implementation moved into
1153 auto_or_unknown_language::language_arch_info.
1154 (class auto_or_unknown_language): New class, member functions
1155 copied from unknown_language class, with some updates.
1156 (class unknown_language): Most member functions moved into
1157 auto_or_unknown_language class. Inherit from
1158 auto_or_unknown_language class.
1159 (class auto_language): Inherit from auto_or_unknown_language.
1160 Delete most member functions.
1161
1a97fe8c
HD
11622020-10-22 Hannes Domani <ssbssa@yahoo.de>
1163
1164 * stabsread.c (read_member_functions): Remove gdb_assert.
1165
6b9d0dfd
HD
11662020-10-22 Hannes Domani <ssbssa@yahoo.de>
1167
1168 * gdbtypes.c (init_complex_type): Check target type name.
1169
4b4bb603
SM
11702020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1171
1172 * target-debug.h (target_debug_print_struct_target_ops_p):
1173 Remove.
1174 (target_debug_print_async_callback_ftype_p): Remove.
1175 (target_debug_print_struct_trace_state_variable_p): Remove.
1176 (target_debug_print_struct_traceframe_info_p): Remove.
1177 (target_debug_print_VEC__btrace_block_s__pp): Remove.
1178 (target_debug_print_enum_btrace_format): Remove.
1179 (target_debug_print_enum_info_proc_what): Remove.
1180 (target_debug_print_thread_info_pp): Remove.
1181
24f5300a
SM
11822020-10-22 Simon Marchi <simon.marchi@efficios.com>
1183
1184 * target.h (struct target_ops) <make_corefile_notes>:
1185 Change return type to unique pointer.
1186 * target.c (dummy_make_corefile_notes): Likewise.
1187 * exec.c (struct exec_target) <make_corefile_notes>:
1188 Likewise.
1189 (exec_target::make_corefile_notes): Likewise.
1190 * procfs.c (class procfs_target) <make_corefile_notes>:
1191 Likewise.
1192 (procfs_do_thread_registers): Adjust to unique pointer.
1193 (struct procfs_corefile_thread_data): Add constructor.
1194 <note_data>: Change type to unique pointer.
1195 (procfs_corefile_thread_callback): Adjust to unique pointer.
1196 (procfs_target::make_corefile_notes): Change return type to
1197 unique pointer.
1198 * target-delegates.c: Re-generate.
1199 * gcore.c (write_gcore_file_1): Adjust.
1200 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
1201 New.
1202
5fb4027f
TV
12032020-10-22 Tom de Vries <tdevries@suse.de>
1204
1205 * block.c (find_block_in_blockvector): Make sure the returned block
1206 contains pc.
1207
4a636814
SM
12082020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1209
1210 PR gdb/26693
1211 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
1212 parameter.
1213 (load_cu): Pass existing CU.
1214 (process_imported_unit_die): Likewise.
1215 (follow_die_offset): Likewise.
1216
1bd57575
LM
12172020-10-22 Luis Machado <luis.machado@linaro.org>
1218
1219 * corelow.c (core_target::xfer_partial): Also check for an empty
1220 m_core_unavailable_mappings vector.
1221
6b4c676c
AB
12222020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1223
1224 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
1225 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
1226 * f-exp.y (arglist): Allow for a series of subranges.
1227 (subrange): Add cases for subranges with strides.
1228 * f-lang.c (value_f90_subarray): Catch use of array strides and
1229 throw an error.
1230 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
1231
f2d8e4c5
AB
12322020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1233
1234 * expprint.c (print_subexp_standard): Change enum range_type to
1235 range_flag and rename variables to match.
1236 (dump_subexp_body_standard): Likewise.
1237 * expression.h (enum range_type): Rename to...
1238 (enum range_flag): ...this.
1239 (range_types): Rename to...
1240 (range_flags): ...this.
1241 * f-lang.c (value_f90_subarray): Change enum range_type to
1242 range_flag and rename variables to match.
1243 * parse.c (operator_length_standard): Likewise.
1244 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
1245 range_type to range_flag.
1246 * rust-lang.c (rust_evaluate_funcall): Likewise.
1247 (rust_range): Likewise.
1248 (rust_compute_range): Likewise.
1249 (rust_subscript): Likewise.
1250
2f1b18db
AB
12512020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1252
1253 * expprint.c (print_subexp_standard): Update to reflect changes to
1254 enum range_type.
1255 (dump_subexp_body_standard): Likewise.
1256 * expression.h (enum range_type): Convert to a bit field enum, and
1257 make the enum unsigned.
1258 * f-exp.y (subrange): Update to reflect changes to enum
1259 range_type.
1260 * f-lang.c (value_f90_subarray): Likewise.
1261 * parse.c (operator_length_standard): Likewise.
1262 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
1263 * rust-lang.c (rust_range): Likewise.
1264 (rust_compute_range): Likewise.
1265 (rust_subscript): Likewise.
1266
a46d1843
SM
12672020-10-21 Simon Marchi <simon.marchi@efficios.com>
1268
1269 * infrun.c (displaced_step_in_progress_thread): Fix comment.
1270 (displaced_step_in_progress): Fix comment.
1271
c21f37a8
SM
12722020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
1273
1274 * gdbarch.sh (make_corefile_notes): Return unique pointer.
1275 * gdbarch.c: Re-generate.
1276 * gdbarch.h: Re-generate.
1277 * gcore.c (write_gcore_file_1): Adjust.
1278 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
1279 constructor.
1280 <note_data>: Change type to unique pointer.
1281 <abort_iteration>: Change type to bool.
1282 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
1283 (fbsd_collect_thread_registers): Return void, adjust.
1284 (struct fbsd_corefile_thread_data): Add construtor.
1285 <note_data>: Change type to unique pointer.
1286 (fbsd_corefile_thread): Adjust.
1287 (fbsd_make_corefile_notes): Return unique pointer, adjust.
1288 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
1289 to unique pointer, adjust.
1290 (struct linux_collect_regset_section_cb_data): Add constructor.
1291 <note_data>: Change type to unique pointer.
1292 <abort_iteration>: Change type to bool.
1293 (linux_collect_thread_registers): Return void, adjust.
1294 (struct linux_corefile_thread_data): Add constructor.
1295 <note_data>: Change type to unique pointer.
1296 (linux_corefile_thread): Adjust.
1297 (linux_make_corefile_notes): Return unique pointer, adjust.
1298
07fbbd01
SM
12992020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1300
1301 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
1302 * gdbarch.c: Re-generate.
1303 * gdbarch.h: Re-generate.
1304 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
1305 bool.
1306 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1307 Likewise.
1308 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
1309 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
1310 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
1311 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
1312
39535193
SM
13132020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1314
1315 * gdbarch.sh: Make generated predicates return bool.
1316 * gdbarch.c: Re-generate.
1317 * gdbarch.h: Re-generate.
1318
ad523d01
TT
13192020-10-20 Tom Tromey <tom@tromey.com>
1320
1321 * varobj-iter.h (struct varobj_item): Remove typedef.
1322
c4464ade
SM
13232020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1324
1325 * infrun.c (currently_stepping): Change int to bool
1326 (maybe_software_singlestep): Likewise.
1327 (show_stop_on_solib_events): Likewise.
1328 (stepping_past_nonsteppable_watchpoint): Likewise.
1329 (displaced_step_in_progress_any_inferior): Likewise.
1330 (displaced_step_in_progress_thread): Likewise.
1331 (keep_going_stepped_thread): Likewise.
1332 (thread_still_needs_step_over): Likewise.
1333 (start_step_over): Likewise.
1334 (do_target_resume): Likewise.
1335 (resume_1): Likewise.
1336 (clear_proceed_status): Likewise.
1337 (thread_still_needs_step_over_bp): Likewise.
1338 (proceed): Likewise.
1339 (switch_back_to_stepped_thread): Likewise.
1340 (adjust_pc_after_break): Likewise.
1341 (stepped_in_from): Likewise.
1342 (handle_stop_requested): Likewise.
1343 (handle_syscall_event): Likewise.
1344 (handle_no_resumed): Likewise.
1345 (handle_inferior_event): Likewise.
1346 (finish_step_over): Likewise.
1347 (handle_signal_stop): Likewise.
1348 (process_event_stop_test): Likewise.
1349
2eb20436
SM
13502020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1351
1352 * infrun.c (get_displaced_stepping_state): Fix comment.
1353
e0c45ded
AS
13542020-10-20 Andreas Schwab <schwab@linux-m68k.org>
1355
1356 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
1357
22cc388e
TT
13582020-10-19 Tom Tromey <tromey@adacore.com>
1359
1360 PR tui/26719
1361 * tui/tui-winsource.h (struct tui_source_window_base)
1362 <refresh_window>: Rename from refresh_pad.
1363 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
1364 Rename from refresh_pad.
1365 (tui_source_window_base::show_source_content)
1366 (tui_source_window_base::do_scroll_horizontal): Update.
1367
3c6eb4d4
TBA
13682020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1369
1370 * thread.c (_initialize_thread): Fine-tune the help text of
1371 'info threads'.
1372
26703721
TBA
13732020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1374
1375 * frame.c: Remove the unused 'uinteger_option_def' type alias.
1376
61c26be8
MS
13772020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
1378
1379 * breakpoint.c (handle_jit_event): Add an argument, change how
1380 `jit_event_handler` is called.
1381
932539d7
TT
13822020-10-17 Tom Tromey <tom@tromey.com>
1383
1384 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
1385 (scan_xcoff_symtab): Update.
1386 * psymtab.h (class psymtab_storage) <global_psymbols,
1387 static_psymbols, current_global_psymbols,
1388 current_static_psymbols>: Remove.
1389 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
1390 (match_partial_symbol, lookup_partial_symbol): Update.
1391 (print_partial_symbols): Change parameters.
1392 (dump_psymtab, recursively_search_psymtabs)
1393 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
1394 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
1395 (concat): Remove.
1396 (end_psymtab_common): Simplify.
1397 (append_psymbol_to_list): Change parameters.
1398 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
1399 (init_psymbol_list): Simplify.
1400 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
1401 * psympriv.h (struct partial_symtab) <empty>: New method.
1402 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
1403 Remove.
1404 <global_psymbols, static_psymbols>: New members.
1405 <add_psymbol>: New methods.
1406 (add_psymbol_to_list): Don't declare.
1407 (psymbol_placement): Move earlier.
1408 * mdebugread.c (parse_partial_symbols): Update.
1409 (handle_psymbol_enumerators): Change parameters.
1410 (mdebug_expand_psymtab): Update.
1411 * dwarf2/read.c (process_psymtab_comp_unit_reader)
1412 (add_partial_symbol): Update.
1413 * dwarf2/index-write.c (write_psymbols): Change parameters.
1414 (write_one_signatured_type): Update.
1415 (recursively_count_psymbols): Update.
1416 (recursively_write_psymbols): Update.
1417 (class debug_names) <recursively_write_psymbols>: Update.
1418 <write_psymbols>: Change parameters.
1419 <write_one_signatured_type>: Update.
1420 * dbxread.c (read_dbx_symtab): Update.
1421 (dbx_end_psymtab): Use partial_symtab::empty.
1422 * ctfread.c (struct ctf_context) <pst>: New member.
1423 (create_partial_symtab): Set it.
1424 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
1425 (scan_partial_symbols): Use the psymtab's context. Update.
1426
cfabbd35
TT
14272020-10-17 Tom Tromey <tom@tromey.com>
1428
1429 * valprint.c (generic_value_print): Remove comment.
1430 * m2-valprint.c (m2_value_print_inner): Remove comment.
1431 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
1432 type.
1433
520596f2
TV
14342020-10-17 Tom de Vries <tdevries@suse.de>
1435
1436 PR symtab/26317
1437 * source.c (select_source_symtab): Handling sal.symtab == NULL for
1438 symbol main.
1439
76547ab3
TV
14402020-10-14 Tom de Vries <tdevries@suse.de>
1441
1442 PR gdb/26733
1443 * solib.c (solib_contains_address_p): Handle
1444 'solib->sections == nullptr'.
1445
d3a07122
SM
14462020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
1447
1448 PR gdb/26642
1449 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
1450 target can't do async.
1451 * target.c (target_wait): Assert that we don't pass
1452 TARGET_WNOHANG to a target that can't async.
1453
1b71cfcf
KR
14542020-10-13 Kamil Rytarowski <n54@gmx.com>
1455
1456 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
1457 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
1458 * alpha-bsd-nat.c: Adjust include.
1459 * alpha-bsd-tdep.h: Adjust comment.
1460 * alpha-nbsd-tdep.c: Rename to ...
1461 * alpha-netbsd-tdep.c: ... this, adjust include.
1462 * amd64-nbsd-nat.c: Rename to ...
1463 * amd64-netbsd-nat.c: ... this, adjust include.
1464 * amd64-nbsd-tdep.c: Rename to ...
1465 * amd64-netbsd-tdep.c: ... this, adjust include.
1466 * amd64-tdep.h: Adjust include.
1467 * arm-nbsd-nat.c: Rename to ...
1468 * arm-netbsd-nat.c: ... this, adjust include.
1469 * arm-nbsd-tdep.c: Rename to ...
1470 * arm-netbsd-tdep.c: ... this, adjust include.
1471 * arm-nbsd-tdep.h: Rename to ...
1472 * arm-netbsd-tdep.h: ... this, adjust include.
1473 * configure.nat: Adjust file lists.
1474 * configure.tgt: Likewise.
1475 * hppa-nbsd-nat.c: Rename to ...
1476 * hppa-netbsd-nat.c: ... this, adjust include.
1477 * hppa-nbsd-tdep.c: Rename to ...
1478 * hppa-netbsd-tdep.c: ... this, adjust include.
1479 * i386-nbsd-nat.c: Rename to ...
1480 * i386-netbsd-nat.c: ... this, adjust include.
1481 * i386-nbsd-tdep.c: Rename to ...
1482 * i386-netbsd-tdep.c: ... this, adjust include.
1483 * m68k-bsd-nat.c: Adjust include.
1484 * mips-nbsd-nat.c: Rename to ...
1485 * mips-netbsd-nat.c: ... this, adjust include.
1486 * mips-nbsd-tdep.c: Rename to ...
1487 * mips-netbsd-tdep.c: ... this, adjust include.
1488 * mips-nbsd-tdep.h: Rename to ...
1489 * mips-netbsd-tdep.h: ... this.
1490 * nbsd-nat.c: Rename to ...
1491 * netbsd-nat.c: ... this, adjust include.
1492 * nbsd-nat.h: Rename to ...
1493 * netbsd-nat.h: ... this, adjust include.
1494 * nbsd-tdep.c: Rename to ...
1495 * netbsd-tdep.c: ... this, adjust include.
1496 * nbsd-tdep.h: Rename to ...
1497 * netbsd-tdep.h: ... this.
1498 * ppc-nbsd-nat.c: Rename to ...
1499 * ppc-netbsd-nat.c: ... this, adjust include.
1500 * ppc-nbsd-tdep.c: Rename to ...
1501 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
1502 * ppc-nbsd-tdep.h: Rename to ...
1503 * ppc-netbsd-tdep.h: ... this.
1504 * sh-nbsd-nat.c: Rename to ...
1505 * sh-netbsd-nat.c: ... this, adjust include.
1506 * sh-nbsd-tdep.c: Rename to ...
1507 * sh-netbsd-tdep.c: ... this, adjust include.
1508 * sparc-nbsd-nat.c: Rename to ...
1509 * sparc-netbsd-nat.c: ... this.
1510 * sparc-nbsd-tdep.c: Rename to ...
1511 * sparc-netbsd-tdep.c: ... this, adjust include.
1512 * sparc64-nbsd-nat.c: Rename to ...
1513 * sparc64-netbsd-nat.c: ... this.
1514 * sparc64-nbsd-tdep.c: Rename to ...
1515 * sparc64-netbsd-tdep.c: ... this, adjust include.
1516 * sparc64-tdep.h: Adjust comment.
1517 * vax-bsd-nat.c: Adjust include.
1518 * vax-nbsd-tdep.c: Rename to ...
1519 * vax-netbsd-tdep.c: ... this, adjust include.
1520
d7a78e5c
TT
15212020-10-12 Tom Tromey <tom@tromey.com>
1522
1523 * target.h (struct target_ops) <get_section_table>: Update.
1524 (target_get_section_table): Update.
1525 * target.c (target_get_section_table, target_section_by_addr)
1526 (memory_xfer_partial_1): Update.
1527 * target-section.h (target_section_table): Now an alias.
1528 * target-delegates.c: Rebuild.
1529 * target-debug.h (target_debug_print_target_section_table_p):
1530 Rename from target_debug_print_struct_target_section_table_p.
1531 * symfile.c (build_section_addr_info_from_section_table): Update.
1532 * solib.c (solib_map_sections, solib_contains_address_p): Update.
1533 * solib-svr4.c (scan_dyntag): Update.
1534 * solib-dsbt.c (scan_dyntag): Update.
1535 * remote.c (remote_target::remote_xfer_live_readonly_partial):
1536 Update.
1537 * record-full.c (record_full_core_target::xfer_partial): Update.
1538 * progspace.h (struct program_space) <target_sections>: Update.
1539 * exec.h (print_section_info): Update.
1540 * exec.c (exec_target::close, build_section_table)
1541 (add_target_sections, add_target_sections_of_objfile)
1542 (remove_target_sections, exec_on_vfork)
1543 (section_table_available_memory)
1544 (section_table_xfer_memory_partial)
1545 (exec_target::get_section_table, exec_target::xfer_partial)
1546 (print_section_info, set_section_command)
1547 (exec_set_section_address, exec_target::has_memory): Update.
1548 * corelow.c (core_target::build_file_mappings)
1549 (core_target::xfer_partial, core_target::info_proc_mappings)
1550 (core_target::info_proc_mappings): Update.
1551 * bfd-target.c (class target_bfd): Update
1552
eda214ce
TT
15532020-10-12 Tom Tromey <tom@tromey.com>
1554
1555 * progspace.c (program_space::~program_space): Don't call
1556 clear_section_table.
1557 * exec.h (clear_section_table): Don't declare.
1558 * exec.c (exec_target::close): Update.
1559 (clear_section_table): Remove.
1560
91840ee3
TT
15612020-10-12 Tom Tromey <tom@tromey.com>
1562
1563 * exec.c (add_target_sections_of_objfile): Simplify.
1564
2d128614
TT
15652020-10-12 Tom Tromey <tom@tromey.com>
1566
1567 * solib.c (solib_map_sections): Update.
1568 * record-full.c (record_full_core_open_1): Update.
1569 * exec.h (build_section_table): Return a target_section_table.
1570 * exec.c (exec_file_attach): Update.
1571 (build_section_table): Return a target_section_table.
1572 * corelow.c (core_target::core_target): Update.
1573 * bfd-target.c (target_bfd::target_bfd): Update.
1574
bb2a6777
TT
15752020-10-12 Tom Tromey <tom@tromey.com>
1576
1577 * target.c (target_section_by_addr, memory_xfer_partial_1):
1578 Update.
1579 * target-section.h (struct target_section_table): Use
1580 std::vector.
1581 * symfile.h (build_section_addr_info_from_section_table): Take a
1582 target_section_table.
1583 * symfile.c (build_section_addr_info_from_section_table): Take a
1584 target_section_table.
1585 * solist.h (struct so_list) <sections>: Change type.
1586 <sections_end>: Remove.
1587 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
1588 (solib_contains_address_p): Update.
1589 * solib-svr4.c (scan_dyntag): Update.
1590 * solib-dsbt.c (scan_dyntag): Update.
1591 * remote.c (remote_target::remote_xfer_live_readonly_partial):
1592 Update.
1593 * record-full.c (record_full_core_start, record_full_core_end):
1594 Remove.
1595 (record_full_core_sections): New global.
1596 (record_full_core_open_1, record_full_core_target::xfer_partial):
1597 Update.
1598 * exec.h (build_section_table, section_table_xfer_memory_partial)
1599 (add_target_sections): Take a target_section_table.
1600 * exec.c (exec_file_attach, clear_section_table): Update.
1601 (resize_section_table): Remove.
1602 (build_section_table, add_target_sections): Take a
1603 target_section_table.
1604 (add_target_sections_of_objfile, remove_target_sections)
1605 (exec_on_vfork): Update.
1606 (section_table_available_memory): Take a target_section_table.
1607 (section_table_read_available_memory): Update.
1608 (section_table_xfer_memory_partial): Take a target_section_table.
1609 (print_section_info, set_section_command)
1610 (exec_set_section_address, exec_target::has_memory): Update.
1611 * corelow.c (class core_target) <m_core_section_table,
1612 m_core_file_mappings>: Remove braces.
1613 <~core_target>: Remove.
1614 (core_target::core_target): Update.
1615 (core_target::~core_target): Remove.
1616 (core_target::build_file_mappings)
1617 (core_target::xfer_memory_via_mappings)
1618 (core_target::xfer_partial, core_target::info_proc_mappings):
1619 Update.
1620 * bfd-target.c (target_bfd::xfer_partial): Update.
1621 (target_bfd::target_bfd): Update.
1622 (target_bfd::~target_bfd): Remove.
1623
7b466b10
TT
16242020-10-12 Tom Tromey <tom@tromey.com>
1625
1626 * target.h (struct target_section, struct target_section_table):
1627 Move to target-section.h.
1628 * target-section.h: New file.
1629
87a37e5e
PA
16302020-10-12 Pedro Alves <pedro@palves.net>
1631
1632 PR exp/26602
1633 * valops.c (struct struct_field_searcher): New.
1634 (update_search_result): Rename to ...
1635 (struct_field_searcher::update_result): ... this. Simplify
1636 prototype. Record all found fields.
1637 (do_search_struct_field): Rename to ...
1638 (struct_field_searcher::search): ... this. Simplify prototype.
1639 Maintain stack of visited baseclass path. Call update_result for
1640 fields too. Keep searching fields in baseclasses instead of
1641 stopping at the first found field.
1642 (search_struct_field): Use struct_field_searcher. When looking
1643 for fields, report ambiguous access attempts.
1644
9370fd51
AB
16452020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
1646
1647 * frame.c (inside_main_func): Check full symbols as well as
1648 minimal symbols.
1649
59c8a30b
JB
16502020-10-09 Joel Brobecker <brobecker@adacore.com>
1651
1652 * ada-lang.c (advance_wild_match): Rewrite the function's
1653 description. Change the type of target0, t0 and t1 to char.
1654
7c184d33
TT
16552020-10-09 Tom Tromey <tromey@adacore.com>
1656
1657 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
1658
5c4258f4
TT
16592020-10-09 Tom Tromey <tromey@adacore.com>
1660
1661 * ada-lang.h (ada_encode): Return std::string.
1662 * ada-lang.c (ada_encode_1): Return std::string.
1663 (ada_encode): Likewise.
1664 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
1665 Update.
1666 * ada-exp.y (block_lookup, write_var_or_type): Update.
1667
3d87245c
HD
16682020-10-09 Hannes Domani <ssbssa@yahoo.de>
1669
1670 PR exp/26714
1671 * printcmd.c (print_formatted): Handle void results as
1672 unformatted prints.
1673
bbb826f5
AB
16742020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
1675
1676 * arch/aarch32.c (aarch32_create_target_description): Release the
1677 target_desc_up as late as possible.
1678 * arch/aarch64.c (aarch64_create_target_description): Likewise.
1679 * arch/amd64.c (amd64_create_target_description): Likewise.
1680 * arch/arc.c (arc_create_target_description): Return a
1681 target_desc_up, don't release it.
1682 * arch/arc.h (arc_create_target_description): Update declaration.
1683 (arc_lookup_target_description): Move target_desc_up into the
1684 cache, and return a borrowed pointer.
1685 * arch/arm.c (arm_create_target_description): Release the
1686 target_desc_up as late as possible.
1687 * arch/i386.c (i386_create_target_description): Likewise.
1688 * arch/riscv.h (riscv_create_target_description): Update
1689 declaration to match definition.
1690 * arch/tic6x.c (tic6x_create_target_description): Release the
1691 target_desc_up as late as possible.
1692
361cb219
AB
16932020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
1694
1695 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
1696 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
1697
f5c4b229
JV
16982020-10-09 Jan Vrany <jan.vrany@labware.com>
1699
1700 * source.c (directory_command): Notify observers that "directories"
1701 parameter has changed.
1702
b2701685
TT
17032020-10-08 Tom Tromey <tom@tromey.com>
1704
1705 * cli/cli-cmds.c (print_disassembly): Style function name and
1706 addresses. Add _() wrappers.
1707
ada508b6
SV
17082020-10-08 Shahab Vahedi <shahab@synopsys.com>
1709
1710 * NEWS: Mention ARC support in GDBserver.
1711
51a948fd
AB
17122020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
1713
1714 * arch/aarch32.c (aarch32_create_target_description): Release
1715 unique_ptr returned from allocate_target_description.
1716 * arch/aarch64.c (aarch64_create_target_description): Likewise.
1717 * arch/amd64.c (amd64_create_target_description): Likewise.
1718 * arch/arc.c (arc_create_target_description): Likewise.
1719 * arch/arm.c (arm_create_target_description): Likewise.
1720 * arch/i386.c (i386_create_target_description): Likewise.
1721 * arch/riscv.c (riscv_create_target_description): Update return
1722 type. Handle allocate_target_description returning a unique_ptr.
1723 (riscv_lookup_target_description): Update to handle unique_ptr.
1724 * arch/tic6x.c (tic6x_create_target_description): Release
1725 unique_ptr returned from allocate_target_description.
1726 * features/microblaze-with-stack-protect.c: Regenerate.
1727 * features/microblaze.c: Regenerate.
1728 * features/mips-dsp-linux.c: Regenerate.
1729 * features/mips-linux.c: Regenerate.
1730 * features/mips64-dsp-linux.c: Regenerate.
1731 * features/mips64-linux.c: Regenerate.
1732 * features/nds32.c: Regenerate.
1733 * features/nios2.c: Regenerate.
1734 * features/or1k.c: Regenerate.
1735 * features/rs6000/powerpc-32.c: Regenerate.
1736 * features/rs6000/powerpc-32l.c: Regenerate.
1737 * features/rs6000/powerpc-403.c: Regenerate.
1738 * features/rs6000/powerpc-403gc.c: Regenerate.
1739 * features/rs6000/powerpc-405.c: Regenerate.
1740 * features/rs6000/powerpc-505.c: Regenerate.
1741 * features/rs6000/powerpc-601.c: Regenerate.
1742 * features/rs6000/powerpc-602.c: Regenerate.
1743 * features/rs6000/powerpc-603.c: Regenerate.
1744 * features/rs6000/powerpc-604.c: Regenerate.
1745 * features/rs6000/powerpc-64.c: Regenerate.
1746 * features/rs6000/powerpc-64l.c: Regenerate.
1747 * features/rs6000/powerpc-7400.c: Regenerate.
1748 * features/rs6000/powerpc-750.c: Regenerate.
1749 * features/rs6000/powerpc-860.c: Regenerate.
1750 * features/rs6000/powerpc-altivec32.c: Regenerate.
1751 * features/rs6000/powerpc-altivec32l.c: Regenerate.
1752 * features/rs6000/powerpc-altivec64.c: Regenerate.
1753 * features/rs6000/powerpc-altivec64l.c: Regenerate.
1754 * features/rs6000/powerpc-e500.c: Regenerate.
1755 * features/rs6000/powerpc-e500l.c: Regenerate.
1756 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
1757 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
1758 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
1759 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
1760 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
1761 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
1762 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
1763 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
1764 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
1765 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
1766 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
1767 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
1768 * features/rs6000/powerpc-vsx32.c: Regenerate.
1769 * features/rs6000/powerpc-vsx32l.c: Regenerate.
1770 * features/rs6000/powerpc-vsx64.c: Regenerate.
1771 * features/rs6000/powerpc-vsx64l.c: Regenerate.
1772 * features/rs6000/rs6000.c: Regenerate.
1773 * features/rx.c: Regenerate.
1774 * features/s390-gs-linux64.c: Regenerate.
1775 * features/s390-linux32.c: Regenerate.
1776 * features/s390-linux32v1.c: Regenerate.
1777 * features/s390-linux32v2.c: Regenerate.
1778 * features/s390-linux64.c: Regenerate.
1779 * features/s390-linux64v1.c: Regenerate.
1780 * features/s390-linux64v2.c: Regenerate.
1781 * features/s390-te-linux64.c: Regenerate.
1782 * features/s390-tevx-linux64.c: Regenerate.
1783 * features/s390-vx-linux64.c: Regenerate.
1784 * features/s390x-gs-linux64.c: Regenerate.
1785 * features/s390x-linux64.c: Regenerate.
1786 * features/s390x-linux64v1.c: Regenerate.
1787 * features/s390x-linux64v2.c: Regenerate.
1788 * features/s390x-te-linux64.c: Regenerate.
1789 * features/s390x-tevx-linux64.c: Regenerate.
1790 * features/s390x-vx-linux64.c: Regenerate.
1791 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
1792 from allocate_target_description.
1793 * target-descriptions.c (allocate_target_description): Update
1794 return type.
1795 (print_c_tdesc::visit_pre): Release unique_ptr returned from
1796 allocate_target_description.
1797
485c47e5
TT
17982020-10-07 Tom Tromey <tromey@adacore.com>
1799
1800 * unittests/search-memory-selftests.c: New file.
1801 * Makefile.in (SELFTESTS_SRCS): Add
1802 unittests/search-memory-selftests.c.
1803
3a135a91
TT
18042020-10-07 Tom Tromey <tromey@adacore.com>
1805
1806 PR gdb/16930:
1807 * findcmd.c (_initialize_mem_search): Mention that the range is
1808 inclusive.
1809
4a72de73
TT
18102020-10-07 Tom Tromey <tromey@adacore.com>
1811
1812 * target.h (simple_search_memory): Don't declare.
1813 * target.c (simple_search_memory): Move to gdbsupport.
1814 (default_search_memory): Update.
1815 * remote.c (remote_target::search_memory): Update.
1816
a038ffd8
SM
18172020-10-07 Simon Marchi <simon.marchi@efficios.com>
1818
1819 * Makefile.in (COMPILE): Add CXXFLAGS.
1820 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
1821 (check-headers): Add CXXFLAGS.
1822
cc463201
AK
18232020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
1824
1825 * arc-linux-tdep.h: New file.
1826 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
1827 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
1828 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
1829 arc_linux_gregset, arc_linux_v2_regset,
1830 arc_linux_iterate_over_regset_sections,
1831 arc_linux_core_read_description): Implement.
1832 (arc_linux_init_osabi): Set iterate_over_regset_sections.
1833 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
1834 (arc_gdbarch_features_create): Add.
1835 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
1836
e4bd363f
SV
18372020-10-07 Shahab Vahedi <shahab@synopsys.com>
1838
1839 * arch/arc.h: Rename "arc_gdbarch_features" to
1840 "arc_arch_features".
1841 * arc-tdep.h: Likewise.
1842 * arc-tdep.c: Likewise.
1843
b68bef99
TBA
18442020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1845
1846 * infcmd.c (attach_command): Remove the redundant call to
1847 `clear_proceed_status`.
1848
4641551a
KR
18492020-10-07 Kamil Rytarowski <n54@gmx.com>
1850
1851 * nat/netbsd-nat.c (write_memory, read_memory): Update.
1852
91e5e8db
KR
18532020-10-07 Kamil Rytarowski <n54@gmx.com>
1854
1855 * nat/netbsd-nat.c (write_memory, read_memory): Add.
1856 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
1857 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
1858
64c03bdb
SM
18592020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
1860
1861 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
1862 (_initialize_break_catch_sig): Don't allocate array.
1863
31a8f60f
AB
18642020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
1865
1866 * symtab.c (find_pc_line): Return unmapped addresses when the
1867 requested address is also unmapped.
1868
9e6dbd8b
SM
18692020-10-05 Simon Marchi <simon.marchi@efficios.com>
1870
1871 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
1872 tui/tui-out.h.
1873
a1d217e8
SM
18742020-10-05 Simon Marchi <simon.marchi@efficios.com>
1875
1876 * amd64-windows-tdep.c (amd64_windows_return_value): Use
1877 type::is_vector instead of TYPE_VECTOR.
1878
7d144117
SM
18792020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
1880
1881 * auto-load.c (auto_load_objfile_script_1): Don't use
1882 debugfile_holder as temporary variable when stripping drive
1883 letter.
1884
cd096ec8
HD
18852020-10-05 Hannes Domani <ssbssa@yahoo.de>
1886
1887 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
1888 Add TYPE_CODE_COMPLEX.
1889 (amd64_windows_return_value): Fix types returned via XMM0.
1890
b58e7f72
AH
18912020-10-05 Alan Hayward <alan.hayward@arm.com>
1892
1893 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
1894 AArch64/ARM maintainers.
1895
8d378f27
SM
18962020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
1897
1898 * NEWS: Mention set/show debug event-loop.
1899
d5519913
TT
19002020-10-02 Tom Tromey <tromey@adacore.com>
1901
1902 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
1903 REG_EXTENDED.
1904
18b67edc
SM
19052020-10-02 Simon Marchi <simon.marchi@efficios.com>
1906
1907 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
1908 * procfs.c (procfs_inferior_created): Remove.
1909 (_initialize_procfs): Don't register procfs_inferior_created.
1910
6b01403b
SM
19112020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1912
1913 * async-event.c (invoke_async_signal_handlers): Add debug
1914 print.
1915 (check_async_event_handlers): Likewise.
1916 * event-top.c (show_debug_event_loop): New function.
1917 (_initialize_event_top): Register "set debug event-loop"
1918 setting.
1919
ba988419
SM
19202020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1921
1922 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
1923 * debug.h: Remove.
1924 * infrun.c: Include gdbsupport/common-debug.h.
1925 * linux-nat.c: Likewise.
1926
db20ebdf
SM
19272020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1928
1929 * async-event.h (create_async_signal_handler): Add name
1930 parameter.
1931 (create_async_event_handler): Likewise.
1932 * async-event.c (struct async_signal_handler) <name>: New field.
1933 (struct async_event_handler) <name>: New field.
1934 (create_async_signal_handler): Assign name.
1935 (create_async_event_handler): Assign name.
1936 * event-top.c (async_init_signals): Pass name when creating
1937 handler.
1938 * infrun.c (_initialize_infrun): Likewise.
1939 * record-btrace.c (record_btrace_push_target): Likewise.
1940 * record-full.c (record_full_open): Likewise.
1941 * remote-notif.c (remote_notif_state_allocate): Likewise.
1942 * remote.c (remote_target::open_1): Likewise.
1943 * tui/tui-win.c (tui_initialize_win): Likewise.
1944
2554f6f5
SM
19452020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1946
1947 * async-event.c (initialize_async_signal_handlers): Pass name to
1948 add_file_handler
1949 * event-top.c (ui_register_input_event_handler): Likewise.
1950 * linux-nat.c (linux_nat_target::async): Likewise.
1951 * run-on-main-thread.c (_initialize_run_on_main_thread):
1952 Likewise
1953 * ser-base.c (reschedule): Likewise.
1954 (ser_base_async): Likewise.
1955 * tui/tui-io.c: Likewise.
1956 * top.h (struct ui) <num>: New field.
1957 * top.c (highest_ui_num): New variable.
1958 (ui::ui): Initialize num.
1959
a7aba266
SM
19602020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1961
1962 * observable.h <inferior_created>: Remove parameters. Update all
1963 listeners.
1964 * inferior.h (post_create_inferior): Remove target parameter.
1965 Update all callers.
1966
048fde1e 19672020-10-02 Nitika Achra <Nitika.Achra@amd.com>
1968
1969 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
1970 and DW_MACRO_undef_strx.
1971 (dwarf_decode_macros): Likewise
1972 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
1973 which is the value of DW_AT_str_offsets_base.
1974 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
1975 str_offsets_base.
1976
064280be
KR
19772020-10-01 Kamil Rytarowski <n54@gmx.com>
1978
1979 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
1980
6ff33035
KR
19812020-10-01 Kamil Rytarowski <n54@gmx.com>
1982
1983 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
1984 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
1985
1eb6eb79
KR
19862020-10-01 Kamil Rytarowski <n54@gmx.com>
1987
1988 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
1989
95eb9e54
TV
19902020-09-30 Tom de Vries <tdevries@suse.de>
1991
1992 PR symtab/26683
1993 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
1994
cae21f8e
TT
19952020-09-30 Tom Tromey <tromey@adacore.com>
1996
1997 * dwarf2/read.c (handle_variant): Use constant_value.
1998
529908cb
TT
19992020-09-29 Tom Tromey <tom@tromey.com>
2000
2001 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
2002 (read_file_scope, dwarf2_get_pc_bounds)
2003 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
2004 (read_structure_type, handle_struct_member_die)
2005 (read_enumeration_type, read_array_type, read_set_type)
2006 (read_tag_pointer_type, read_tag_reference_type)
2007 (read_subroutine_type, read_base_type, read_subrange_type)
2008 (read_full_die_1, partial_die_info::read)
2009 (partial_die_info::read, by, new_symbol)
2010 (dwarf2_const_value_data, dwarf2_const_value_attr)
2011 (dump_die_shallow, dwarf2_fetch_constant_bytes)
2012 (prepare_one_comp_unit): Update.
2013 * dwarf2/attribute.h (DW_UNSND): Remove.
2014
c45bc3f8
TT
20152020-09-29 Tom Tromey <tom@tromey.com>
2016
2017 * dwarf2/read.c (read_func_scope, prototyped_function_p)
2018 (read_subroutine_type, partial_die_info::read)
2019 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
2020 (dwarf2_add_member_fn): Update.
2021 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
2022 * dwarf2/attribute.c (attribute::as_boolean): New method.
2023
23dca5c3
TT
20242020-09-29 Tom Tromey <tom@tromey.com>
2025
2026 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
2027 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
2028 method.
2029 * dwarf2/attribute.c (attribute::as_virtuality): New method.
2030
52c14d11
TT
20312020-09-29 Tom Tromey <tom@tromey.com>
2032
2033 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
2034 the attribute's form.
2035
e8e5c158
TT
20362020-09-29 Tom Tromey <tom@tromey.com>
2037
2038 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
2039 (dwarf2_add_member_fn): Update.
2040 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
2041 * dwarf2/attribute.c (attribute::defaulted): New method, from
2042 is_valid_DW_AT_defaulted.
2043
d4df075e
TT
20442020-09-29 Tom Tromey <tom@tromey.com>
2045
2046 * dwarf2/read.c (dw2_get_file_names_reader)
2047 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
2048 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
2049 (dwarf2_symbol_mark_computed): Use as_unsigned.
2050 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
2051 method.
2052 <form_is_section_offset>: Update comment.
2053
bf23a268
TT
20542020-09-29 Tom Tromey <tom@tromey.com>
2055
2056 * dwarf2/read.c (dwarf2_access_attribute): Rename from
2057 dwarf2_default_access_attribute. Look up attribute.
2058 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
2059 Update.
2060
7a5f294d
TT
20612020-09-29 Tom Tromey <tom@tromey.com>
2062
2063 * dwarf2/read.c (skip_one_die): Update.
2064 (read_full_die_1): Change how reprocessing is done.
2065 (partial_die_info::read): Update.
2066 (read_attribute_value): Remove need_reprocess parameter.
2067 (read_attribute): Likewise.
2068 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
2069 New method.
2070
36d378cf
TT
20712020-09-29 Tom Tromey <tom@tromey.com>
2072
2073 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
2074 (dwarf2_const_value_attr, dump_die_shallow)
2075 (dwarf2_fetch_constant_bytes): Update.
2076 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
2077 comment.
2078 <set_address>: New method.
2079 (DW_ADDR): Remove.
2080 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
2081 (attribute::as_string, attribute::as_address): Add assert.
2082
fe56917a
TT
20832020-09-29 Tom Tromey <tom@tromey.com>
2084
2085 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
2086 (read_attribute_reprocess, read_attribute_value): Update.
2087 (read_attribute): Clear requires_reprocessing.
2088 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
2089 form_requires_reprocessing>: New methods.
2090 <string_init>: Clear requires_reprocessing.
2091 <set_unsigned_reprocess>: New method.
2092 <name>: Shrink by one bit.
2093 <requires_reprocessing>: New member.
2094 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
2095 method.
2096
414ad644
TT
20972020-09-29 Tom Tromey <tom@tromey.com>
2098
2099 * dwarf2/read.c (read_attribute_value): Update.
2100 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
2101 set_unsigned>: New methods.
2102 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
2103
1bc397c5
TT
21042020-09-29 Tom Tromey <tom@tromey.com>
2105
2106 * dwarf2/read.c (get_alignment, read_array_order)
2107 (read_attribute_value, dwarf2_const_value_attr)
2108 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
2109 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
2110 New methods.
2111 (DW_SND): Remove.
2112
630ed6b9
TT
21132020-09-29 Tom Tromey <tom@tromey.com>
2114
2115 * dwarf2/read.c (read_attribute_value, lookup_die_type)
2116 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
2117 Update.
2118 * dwarf2/attribute.h (struct attribute) <as_signature,
2119 set_signature>: New methods.
2120 (DW_SIGNATURE): Remove.
2121
9d2246fc
TT
21222020-09-29 Tom Tromey <tom@tromey.com>
2123
2124 * dwarf2/read.c (read_call_site_scope)
2125 (handle_data_member_location, dwarf2_add_member_fn)
2126 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
2127 (partial_die_info::read, read_attribute_value)
2128 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
2129 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
2130 (dwarf2_symbol_mark_computed): Update.
2131 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
2132 methods.
2133 (DW_BLOCK): Remove.
2134 * dwarf2/attribute.c (attribute::form_is_block): Add
2135 DW_FORM_data16.
2136
c6481205
TT
21372020-09-29 Tom Tromey <tom@tromey.com>
2138
2139 * dwarf2/read.c (read_cutu_die_from_dwo)
2140 (read_attribute_reprocess, read_attribute_value, read_attribute)
2141 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
2142 (dwarf2_fetch_constant_bytes): Update.
2143 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
2144 <set_string_noncanonical, set_string_canonical>: New methods.
2145 <string_is_canonical>: Update comment.
2146 <canonical_string_p>: Add assert.
2147 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
2148 * dwarf2/attribute.c (attribute::form_is_string): New method.
2149 (attribute::string): Use it.
2150
3b64bf15
TT
21512020-09-29 Tom Tromey <tom@tromey.com>
2152
2153 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
2154 (dump_die_shallow): Use canonical_string_p.
2155 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
2156 method.
2157
2c830f54
TT
21582020-09-29 Tom Tromey <tom@tromey.com>
2159
2160 * dwarf2/read.c (partial_die_info::read)
2161 (dwarf2_const_value_attr, anonymous_struct_prefix, )
2162 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
2163 attribute::as_string.
2164
6c412691
TT
21652020-09-29 Tom Tromey <tom@tromey.com>
2166
2167 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
2168 DW_ADDR.
2169 (attribute::string): Don't use DW_STRING.
2170 (attribute::get_ref_die_offset): Don't use DW_UNSND.
2171 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
2172
95f982e5
TT
21732020-09-29 Tom Tromey <tom@tromey.com>
2174
2175 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
2176 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
2177 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
2178 * dwarf2/attribute.h (struct attribute): Rename methods.
2179 * dwarf2/attribute.c (attribute::as_address): Rename from
2180 value_as_address.
2181 (attribute::as_string): Rename from value_as_string.
2182
f800b00e
TT
21832020-09-29 Tom Tromey <tom@tromey.com>
2184
2185 * dwarf2/read.c (partial_die_info::read) <case
2186 DW_AT_linkage_name>: Use value_as_string.
2187 (dwarf2_string_attr): Use value_as_string.
2188 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
2189 method.
2190 * dwarf2/attribute.c (attribute::value_as_string): New method.
2191
de38d64a
PA
21922020-09-29 Pedro Alves <pedro@palves.net>
2193
2194 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
2195 defined before using '#pragma GCC diagnostic' instead of checking
2196 __clang__.
2197
9aed480c
TT
21982020-09-28 Tom Tromey <tom@tromey.com>
2199
2200 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
2201 (handle_signal_stop): Update.
2202 * procfs.c (procfs_target::insert_watchpoint): Update.
2203 * target.h (target_have_steppable_watchpoint): Now a function.
2204
8a3ecb79
TT
22052020-09-28 Tom Tromey <tom@tromey.com>
2206
2207 * infrun.c (set_schedlock_func): Update.
2208 * target.h (target_can_lock_scheduler): Now a function.
2209
55f6301a
TT
22102020-09-28 Tom Tromey <tom@tromey.com>
2211
2212 * inferior.h (class inferior) <has_execution>: Update.
2213 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2214 * valops.c (find_function_in_inferior)
2215 (value_allocate_space_in_inferior): Update.
2216 * top.c (kill_or_detach): Update.
2217 * target.c (target_preopen, set_target_permissions): Update.
2218 (target_has_execution_current): Remove.
2219 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
2220 Update.
2221 * solib.c (update_solib_list, reload_shared_libraries): Update.
2222 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
2223 * solib-dsbt.c (enable_break): Update.
2224 * score-tdep.c (score7_fetch_inst): Update.
2225 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
2226 Update.
2227 * remote.c (remote_target::start_remote)
2228 (remote_target::remote_check_symbols, remote_target::open_1)
2229 (remote_target::remote_detach_1, remote_target::verify_memory)
2230 (remote_target::xfer_partial, remote_target::read_description)
2231 (remote_target::get_min_fast_tracepoint_insn_len): Update.
2232 * record-full.c (record_full_open_1): Update.
2233 * record-btrace.c (record_btrace_target_open): Update.
2234 * objc-lang.c (lookup_objc_class, lookup_child_selector)
2235 (value_nsstring): Update.
2236 * linux-thread-db.c (add_thread_db_info)
2237 (thread_db_find_new_threads_silently, check_thread_db_callback)
2238 (try_thread_db_load_1, record_thread): Update.
2239 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
2240 Update.
2241 * linux-fork.c (checkpoint_command): Update.
2242 * infrun.c (set_non_stop, set_observer_mode)
2243 (check_multi_target_resumption, for_each_just_stopped_thread)
2244 (maybe_remove_breakpoints, normal_stop)
2245 (class infcall_suspend_state): Update.
2246 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
2247 (info_program_command, attach_command): Update.
2248 * infcall.c (call_function_by_hand_dummy): Update.
2249 * inf-loop.c (inferior_event_handler): Update.
2250 * gcore.c (gcore_command, derive_heap_segment): Update.
2251 * exec.c (exec_file_command): Update.
2252 * eval.c (evaluate_subexp): Update.
2253 * compile/compile.c (compile_to_object): Update.
2254 * cli/cli-dump.c (restore_command): Update.
2255 * breakpoint.c (update_watchpoint)
2256 (update_inserted_breakpoint_locations)
2257 (insert_breakpoint_locations, get_bpstat_thread): Update.
2258 * target.h (target_has_execution): Remove macro.
2259 (target_has_execution_current): Don't declare.
2260 (target_has_execution): Rename from target_has_execution_1. Add
2261 argument default.
2262
05374cfd
TT
22632020-09-28 Tom Tromey <tom@tromey.com>
2264
2265 * mi/mi-main.c (exec_reverse_continue)
2266 (mi_cmd_list_target_features): Update.
2267 * infrun.c (set_exec_direction_func): Update.
2268 * target.c (default_execution_direction): Update.
2269 * reverse.c (exec_reverse_once): Update.
2270 * target.h (target_can_execute_reverse): Now a function.
2271
9dccd06e
TT
22722020-09-28 Tom Tromey <tom@tromey.com>
2273
2274 * tui/tui-regs.c (tui_get_register)
2275 (tui_data_window::show_registers): Update.
2276 * thread.c (scoped_restore_current_thread::restore)
2277 (scoped_restore_current_thread::scoped_restore_current_thread):
2278 Update.
2279 * regcache-dump.c (regcache_print): Update.
2280 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2281 Update.
2282 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
2283 * mep-tdep.c (current_me_module, current_options): Update.
2284 * linux-thread-db.c (thread_db_load): Update.
2285 * infcmd.c (registers_info, info_vector_command)
2286 (info_float_command): Update.
2287 * ia64-tdep.c (ia64_frame_prev_register)
2288 (ia64_sigtramp_frame_prev_register): Update.
2289 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
2290 * gcore.c (derive_stack_segment): Update.
2291 * frame.c (get_current_frame, has_stack_frames): Update.
2292 * findvar.c (language_defn::read_var_value): Update.
2293 * arm-tdep.c (arm_pc_is_thumb): Update.
2294 * target.c (target_has_registers): Rename from
2295 target_has_registers_1.
2296 * target.h (target_has_registers): Remove macro.
2297 (target_has_registers): Rename from target_has_registers_1.
2298
841de120
TT
22992020-09-28 Tom Tromey <tom@tromey.com>
2300
2301 * windows-tdep.c (tlb_make_value): Update.
2302 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2303 * thread.c (scoped_restore_current_thread::restore)
2304 (scoped_restore_current_thread::scoped_restore_current_thread)
2305 (thread_command): Update.
2306 * stack.c (backtrace_command_1, frame_apply_level_command)
2307 (frame_apply_all_command, frame_apply_command): Update.
2308 * infrun.c (siginfo_make_value, restore_infcall_control_state):
2309 Update.
2310 * gcore.c (derive_stack_segment): Update.
2311 * frame.c (get_current_frame, has_stack_frames): Update.
2312 * auxv.c (info_auxv_command): Update.
2313 * ada-tasks.c (ada_build_task_list): Update.
2314 * target.c (target_has_stack): Rename from target_has_stack_1.
2315 * target.h (target_has_stack): Remove macro.
2316 (target_has_stack): Rename from target_has_stack_1.
2317
a739972c
TT
23182020-09-28 Tom Tromey <tom@tromey.com>
2319
2320 * target.c (target_has_memory): Rename from target_has_memory_1.
2321 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2322 * thread.c (scoped_restore_current_thread::restore)
2323 (scoped_restore_current_thread::scoped_restore_current_thread):
2324 Update.
2325 * frame.c (get_current_frame, has_stack_frames): Update.
2326 * target.h (target_has_memory): Remove macro.
2327 (target_has_memory): Rename from target_has_memory_1.
2328
5b8a4776
TT
23292020-09-28 Tom Tromey <tom@tromey.com>
2330
2331 * target.c (target_has_all_memory_1): Remove.
2332 * target.h (target_has_all_memory): Remove define.
2333 (target_has_all_memory_1): Don't declare.
2334
bd356ec6
SM
23352020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
2336
2337 * ser-base.c: Adjust comments formatting.
2338
2c72d5e5
TT
23392020-09-27 Tom Tromey <tom@tromey.com>
2340
2341 PR tui/25342:
2342 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
2343
35a98237
TT
23442020-09-27 Tom Tromey <tom@tromey.com>
2345
2346 PR tui/25342:
2347 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
2348
9e820dec
TT
23492020-09-27 Tom Tromey <tom@tromey.com>
2350
2351 * unittests/tui-selftests.c: Update.
2352 * tui/tui-winsource.h (struct tui_source_window_base)
2353 <extra_margin, show_line_number, refresh_pad>: New methods.
2354 <m_max_length, m_pad>: New members.
2355 (tui_copy_source_line): Update.
2356 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
2357 first_col, line_width, ndigits parameters. Add length.
2358 (tui_source_window_base::show_source_line): Write to pad. Line
2359 number now 0-based.
2360 (tui_source_window_base::refresh_pad): New method.
2361 (tui_source_window_base::show_source_content): Write to pad. Call
2362 refresh_pad.
2363 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
2364 not refill.
2365 (tui_source_window_base::update_exec_info): Call
2366 show_line_number.
2367 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
2368 method.
2369 <m_digits>: New member.
2370 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
2371 and m_max_length.
2372 (tui_source_window::show_line_number): New method.
2373 * tui/tui-io.h (tui_puts): Fix comment.
2374 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
2375 m_max_length.
2376
c15c15c8
TT
23772020-09-27 Tom Tromey <tom@tromey.com>
2378
2379 * tui/tui-winsource.c
2380 (tui_source_window_base::set_is_exec_point_at): Don't call
2381 show_source_line.
2382
149830c1
TT
23832020-09-27 Tom Tromey <tom@tromey.com>
2384
2385 * python/py-tui.c (class tui_py_window) <refresh_window>: New
2386 method.
2387 <erase>: Update.
2388 <cursor_x, cursor_y>: Remove.
2389 <m_inner_window>: New member.
2390 (tui_py_window::rerender): Create inner window.
2391 (tui_py_window::output): Write to inner window.
2392
8f9929bb
GR
23932020-09-26 Gareth Rees <grees@undo.io> (tiny change)
2394
2395 PR python/26586
2396 * cli/cli-script.c (execute_control_commands): don't set
2397 instream to nullptr here as this breaks the from_tty argument
2398 to gdb.execute in Python.
2399 (execute_user_command): set instream to nullptr here instead.
2400
956bdb59
SM
24012020-09-25 Simon Marchi <simon.marchi@efficios.com>
2402
2403 * infrun.h (infrun_debug_printf): Fix formatting.
2404 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
2405
3b93626b
SJ
24062020-09-25 Saagar Jha <saagar@saagarjha.com>
2407
2408 * compile/compile-object-load.h (struct munmap_list): Add
2409 explicitly-defined move constructor.
2410
b551a89f
TT
24112020-09-24 Tom Tromey <tromey@adacore.com>
2412
2413 PR tui/26638:
2414 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
2415 method.
2416 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
2417 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
2418 (tui_prev_win): Rewrite.
2419
99bb393f
HD
24202020-09-23 Hannes Domani <ssbssa@yahoo.de>
2421
2422 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
2423 in WOW64 processes as SIGINT.
2424 * nat/windows-nat.h: Make wow64_process a shared variable.
2425 * windows-nat.c: Remove static wow64_process variable.
2426
20a5fcbd
TT
24272020-09-23 Tom Tromey <tom@tromey.com>
2428
2429 PR symtab/25470:
2430 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
2431 offset and bit size.
2432 * printcmd.c (print_scalar_formatted): Handle zero-length
2433 integer.
2434 (print_scalar_formatted): Use bit_size_differs_p.
2435 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
2436 constant.
2437 (union type_specific): <int_stuff>: New member.
2438 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
2439 methods.
2440 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
2441 TYPE_SPECIFIC_FIELD.
2442 (recursive_dump_type, copy_type_recursive): Update.
2443 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
2444 DW_AT_data_bit_offset.
2445
bac51ab7
TT
24462020-09-23 Tom Tromey <tom@tromey.com>
2447
2448 * utils.h (class gdb_argv): Add move operators.
2449 <append>: New methods.
2450 * compile/compile.c (build_argc_argv): Remove.
2451 (compile_args_argc): Remove.
2452 (compile_args_argv): Change type.
2453 (set_compile_args): Simplify.
2454 (append_args): Remove.
2455 (filter_args): Remove argcp parameter.
2456 (get_args): Return gdb_argv. Simplify.
2457 (compile_to_object): Update.
2458
92677124
TT
24592020-09-23 Tom Tromey <tom@tromey.com>
2460
2461 * compile/compile-object-run.c (do_module_cleanup)
2462 <~do_module_cleanup> :Remove.
2463 (do_module_cleanup): Update.
2464 * compile/compile-object-load.h (struct munmap_list): Add move
2465 assignment operator.
2466 <source_file>: Now a std::string.
2467 <munmap_list>: Rename. No longer a pointer.
2468 * compile/compile-object-load.c (struct setup_sections_data): Add
2469 constructor.
2470 <setup_one_section>: Declare.
2471 <munmap_list>: Move earlier.
2472 <m_bfd>: New member.
2473 <m_last_size, m_last_section_first, m_last_prot,
2474 m_last_max_alignment>: Rename, add initializers where needed.
2475 (setup_sections_data::setup_one_section): Rename from
2476 setup_sections. Update.
2477 (compile_object_load): Update. Don't use bfd_map_over_sections.
2478
e616f60a
TT
24792020-09-23 Tom Tromey <tom@tromey.com>
2480
2481 * compile/compile-object-run.c (struct do_module_cleanup): Add
2482 parameters to constructor. Update destructor.
2483 <source_file, scope, scope_data, out_value_type, out_value_addr,
2484 munmap_list_head, objfile_name_string>: Remove.
2485 <module>: New member.
2486 (do_module_cleanup): Update.
2487 (compile_object_run): Update.
2488
e947a848
TT
24892020-09-23 Tom Tromey <tom@tromey.com>
2490
2491 * compile/compile.c (eval_compile_command): Update.
2492 * compile/compile-object-run.h (compile_object_run): Take a
2493 compile_module_up.
2494 * compile/compile-object-run.c (compile_object_run): Take a
2495 compile_module_up.
2496 * compile/compile-object-load.h (struct compile_module): Add
2497 constructor, destructor.
2498 (compile_module_up): New typedef.
2499 (compile_object_load): Return compile_object_up.
2500 * compile/compile-object-load.c (compile_object_load): Return
2501 compile_module_up.
2502
0dbf6ee6
TT
25032020-09-23 Tom Tromey <tom@tromey.com>
2504
2505 * compile/compile-object-run.c (struct do_module_cleanup): Add
2506 constructor, destructor.
2507 <objfile_name_string>: Don't use struct hack.
2508 (do_module_cleanup): Use delete.
2509 (compile_object_run): Use new.
2510
ebe824f5
TT
25112020-09-23 Tom Tromey <tom@tromey.com>
2512
2513 * compile/compile-cplus-types.c
2514 (compile_cplus_convert_struct_or_union): Use std::vector.
2515 (compile_cplus_convert_func): Likewise.
2516 * compile/compile-c-types.c (convert_func): Use std::vector.
2517
5dd918d9
TT
25182020-09-21 Tom Tromey <tromey@adacore.com>
2519
2520 * sparc-tdep.c (sparc32_skip_prologue): Use
2521 skip_prologue_using_sal.
2522
5486c517
TT
25232020-09-19 Tom Tromey <tom@tromey.com>
2524
2525 * symfile.c (add_section_size_callback): Remove.
2526 (load_one_section): Rename from load_section_callback. Change
2527 parameters.
2528 (generic_load): Use foreach.
2529
8a6bb1d1
TT
25302020-09-19 Tom Tromey <tom@tromey.com>
2531
2532 * exec.c (add_to_section_table): Remove.
2533 (build_section_table): Use foreach.
2534
08f93a1a
TT
25352020-09-19 Tom Tromey <tom@tromey.com>
2536
2537 * elfread.c (elf_locate_sections): Change parameters.
2538 (elf_symfile_read): Use foreach.
2539
03cd72b8
TT
25402020-09-19 Tom Tromey <tom@tromey.com>
2541
2542 * cli/cli-dump.c (struct callback_data): Remove.
2543 (restore_one_section): Rename from restore_section_callback.
2544 Change parameters.
2545 (restore_binary_file): Change parameters.
2546 (restore_command): Use foreach.
2547
f4f2b85f
TT
25482020-09-19 Tom Tromey <tom@tromey.com>
2549
2550 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
2551 (gcore_copy_callback): Likewise.
2552 (gcore_memory_sections): Use foreach.
2553
b35c1d1c
TT
25542020-09-19 Tom Tromey <tom@tromey.com>
2555
2556 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
2557 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
2558 parameters.
2559 (generic_elf_osabi_sniffer): Use foreach.
2560 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
2561 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
2562
5bb6e9dd
TT
25632020-09-19 Tom Tromey <tom@tromey.com>
2564
2565 * dwarf2/read.c (locate_dwz_sections): Change parameters.
2566 (dwarf2_get_dwz_file): Use foreach.
2567 (dwarf2_locate_dwo_sections): Change parameters.
2568 (open_and_init_dwo_file): Use foreach.
2569 (dwarf2_locate_common_dwp_sections): Change parameters.
2570 (open_and_init_dwp_file): Use foreach.
2571
ad7277da
TT
25722020-09-19 Tom Tromey <tom@tromey.com>
2573
2574 * symfile.h: (find_lowest_section): Don't declare.
2575 * symfile.c (find_lowest_section): Now static. Change
2576 parameters.
2577 (struct place_section_arg): Remove.
2578 (place_section): Change parameters.
2579 (addr_info_make_relative): Use foreach.
2580 (symfile_dummy_outputs): Remove.
2581 (default_symfile_relocate): Use foreach.
2582
cb814f2e
TT
25832020-09-19 Tom Tromey <tom@tromey.com>
2584
2585 * objfiles.c (add_to_objfile_sections): Rename from
2586 add_to_objfile_sections_full.
2587 (add_to_objfile_sections): Remove.
2588 (build_objfile_section_table): Use foreach.
2589
3cabfd26
TT
25902020-09-19 Tom Tromey <tom@tromey.com>
2591
2592 * stap-probe.c (get_stap_base_address_1): Remove.
2593 (get_stap_base_address): Use foreach.
2594
1ce51eb5
TT
25952020-09-19 Tom Tromey <tom@tromey.com>
2596
2597 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
2598 parameters.
2599 (gdb_bfd_close_or_warn): Use foreach.
2600
a190fabb
TT
26012020-09-19 Tom Tromey <tom@tromey.com>
2602
2603 * corelow.c (add_to_thread_list): Change parameters.
2604 (core_target_open): Use foreach.
2605
cafb0d81
TT
26062020-09-19 Tom Tromey <tom@tromey.com>
2607
2608 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
2609 existing function.
2610
c8d5abea
AB
26112020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2612
2613 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
2614 for arrays.
2615
6d816919
AB
26162020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2617
2618 * eval.c: Remove 'f-lang.h' include.
2619 (value_f90_subarray): Moved to f-lang.c.
2620 (eval_call): Renamed to...
2621 (evaluate_subexp_do_call): ...this, is no longer static, header
2622 comment moved into header file.
2623 (evaluate_funcall): Update call to eval_call.
2624 (skip_undetermined_arglist): Moved to f-lang.c.
2625 (fortran_value_subarray): Likewise.
2626 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
2627 moved to evaluate_subexp_f.
2628 (calc_f77_array_dims): Moved to f-lang.c
2629 * expprint.c (print_subexp_funcall): New function.
2630 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
2631 moved to print_subexp_f, OP_FUNCALL uses new function.
2632 (dump_subexp_body_funcall): New function.
2633 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
2634 moved to dump_subexp_f, OP_FUNCALL uses new function.
2635 * expression.h (evaluate_subexp_do_call): Declare.
2636 * f-lang.c (value_f90_subarray): Moved from eval.c.
2637 (skip_undetermined_arglist): Likewise.
2638 (calc_f77_array_dims): Likewise.
2639 (fortran_value_subarray): Likewise.
2640 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
2641 (operator_length_f): Likewise.
2642 (print_subexp_f): Likewise.
2643 (dump_subexp_body_f): Likewise.
2644 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
2645 declaration of this operation to here.
2646 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
2647 support moved to operator_length_f.
2648 * parser-defs.h (dump_subexp_body_funcall): Declare.
2649 (print_subexp_funcall): Declare.
2650 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
2651 fortran-operator.def.
2652
8c37706a
AB
26532020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2654
2655 * eval.c (fortran_value_subarray): New function, content is taken
2656 from...
2657 (evaluate_subexp_standard): ...here, in two places. Now arrays
2658 and strings both call the new function.
2659 (calc_f77_array_dims): Add header comment, handle strings.
2660
14f9473c
VC
26612020-09-18 Victor Collod <vcollod@nvidia.com>
2662
2663 PR gdb/26635
2664 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
2665 (i386_analyze_prologue): Call i386_skip_endbr.
2666
b60cea74
TT
26672020-09-18 Tom Tromey <tromey@adacore.com>
2668
2669 * windows-nat.c (struct windows_nat_target) <wait>: Update.
2670 (windows_nat_target::wait): Update.
2671 * target/wait.h (enum target_wait_flag): New. Use
2672 DEF_ENUM_FLAGS_TYPE.
2673 * target/target.h (target_wait): Change type of options.
2674 * target.h (target_options_to_string, default_target_wait):
2675 Update.
2676 (struct target_ops) <wait>: Change type of options.
2677 * target.c (target_wait, default_target_wait, do_option): Change
2678 type of "options".
2679 (target_options_to_string): Likewise.
2680 * target-delegates.c: Rebuild.
2681 * target-debug.h (target_debug_print_target_wait_flags): Rename
2682 from target_debug_print_options.
2683 * sol-thread.c (class sol_thread_target) <wait>: Update.
2684 (sol_thread_target::wait): Update.
2685 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
2686 (rs6000_nat_target::wait): Update.
2687 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
2688 Update.
2689 (remote_target::wait_ns, remote_target::wait_as): Change type of
2690 "options".
2691 (remote_target::wait): Update.
2692 * remote-sim.c (struct gdbsim_target) <wait>: Update.
2693 (gdbsim_target::wait): Update.
2694 * record-full.c (class record_full_base_target) <wait>: Update.
2695 (record_full_wait_1): Change type of "options".
2696 (record_full_base_target::wait): Update.
2697 * record-btrace.c (class record_btrace_target) <wait>: Update.
2698 (record_btrace_target::wait): Update.
2699 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
2700 Update.
2701 (ravenscar_thread_target::wait): Update.
2702 * procfs.c (class procfs_target) <wait>: Update.
2703 (procfs_target::wait): Update.
2704 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
2705 * obsd-nat.c (obsd_nat_target::wait): Update.
2706 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
2707 (nto_procfs_target::wait): Update.
2708 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
2709 * nbsd-nat.c (nbsd_wait): Change type of "options".
2710 (nbsd_nat_target::wait): Update.
2711 * linux-thread-db.c (class thread_db_target) <wait>: Update.
2712 (thread_db_target::wait): Update.
2713 * linux-nat.h (class linux_nat_target) <wait>: Update.
2714 * linux-nat.c (linux_nat_target::wait): Update.
2715 (linux_nat_wait_1): Update.
2716 * infrun.c (do_target_wait_1, do_target_wait): Change type of
2717 "options".
2718 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
2719 * inf-ptrace.c (inf_ptrace_target::wait): Update.
2720 * go32-nat.c (struct go32_nat_target) <wait>: Update.
2721 (go32_nat_target::wait): Update.
2722 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
2723 * gnu-nat.c (gnu_nat_target::wait): Update.
2724 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
2725 * fbsd-nat.c (fbsd_nat_target::wait): Update.
2726 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
2727 * darwin-nat.c (darwin_nat_target::wait): Update.
2728 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
2729 (bsd_uthread_target::wait): Update.
2730 * aix-thread.c (class aix_thread_target) <wait>: Update.
2731 (aix_thread_target::wait): Update.
2732
0295dde6
AB
27332020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
2734
2735 * compile/compile-object-run.c (create_copied_type_recursive): New
2736 function.
2737 (compile_object_run): Use new function.
2738
d3483b43
JT
27392020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
2740
2741 * NEWS: Mention x86_64 Cygwin core file support.
2742
e7d612ad
JT
27432020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2744
2745 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
2746 (core_process_module_section): Handle NOTE_INFO_MODULE64.
2747
aff9d387
JT
27482020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2749
62a5151b
JT
2750 * windows-tdep.h: Add prototypes.
2751 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
2752 (i386_windows_core_pid_to_str): Move and rename ...
2753 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
2754 (windows_core_pid_to_str): ... and here.
2755 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
2756
27572020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
2758 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
2759 (amd64_windows_init_abi_common): ... and register.
2760
7d155da3
JT
27612020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2762
2763 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
2764 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
2765
e8ef12b9
PA
27662020-09-18 Pedro Alves <pedro@palves.net>
2767
2768 PR gdb/26631
2769 * thread.c (thread_find_command): Switch inferior before calling
2770 target methods.
2771
c1e1314d
TT
27722020-09-17 Tom Tromey <tromey@adacore.com>
2773
2774 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
2775 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
2776 (tdesc_arch_data_up): New typedef.
2777 (tdesc_use_registers, tdesc_data_alloc): Update.
2778 (tdesc_data_cleanup): Don't declare.
2779 * target-descriptions.c (tdesc_data_alloc): Return a
2780 tdesc_arch_data_up.
2781 (tdesc_arch_data_deleter::operator()): Rename from
2782 tdesc_data_cleanup. Change argument type.
2783 (tdesc_use_registers): Change early_data to an rvalue reference.
2784 (tdesc_use_registers): Don't use delete.
2785 * sparc-tdep.c (sparc32_gdbarch_init): Update.
2786 * s390-tdep.c (s390_gdbarch_init): Update.
2787 * rx-tdep.c (rx_gdbarch_init): Update.
2788 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2789 * riscv-tdep.c (riscv_gdbarch_init): Update.
2790 * or1k-tdep.c (or1k_gdbarch_init): Update.
2791 * nios2-tdep.c (nios2_gdbarch_init): Update.
2792 * nds32-tdep.c (nds32_gdbarch_init): Update.
2793 * mips-tdep.c (mips_gdbarch_init): Update.
2794 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
2795 * m68k-tdep.c (m68k_gdbarch_init): Update.
2796 * i386-tdep.c (i386_gdbarch_init): Update.
2797 * arm-tdep.c (arm_gdbarch_init): Update.
2798 * arc-tdep.c (arc_tdesc_init): Update.
2799 (arc_gdbarch_init): Update.
2800 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
2801
0363df3d
HD
28022020-09-17 Hannes Domani <ssbssa@yahoo.de>
2803
2804 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
2805 for WOW64 processes.
2806
280a9412
TT
28072020-09-17 Tom Tromey <tom@tromey.com>
2808
2809 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
2810
6108fd18
TT
28112020-09-17 Tom Tromey <tom@tromey.com>
2812
2813 * value.c (preserve_values): Update.
2814 * python/py-type.c (save_objfile_types): Update.
2815 * guile/scm-type.c (save_objfile_types): Update.
2816 * gdbtypes.h (create_copied_types_hash): Return htab_up.
2817 * gdbtypes.c (create_copied_types_hash): Return htab_up.
2818 * compile/compile-object-run.c (compile_object_run): Update.
2819
fa9b1164
TT
28202020-09-17 Tom Tromey <tom@tromey.com>
2821
2822 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
2823 Remove.
2824 <m_table>: Now htab_up.
2825 * typeprint.c (typedef_hash_table::recursively_update)
2826 (typedef_hash_table::add_template_parameters)
2827 (typedef_hash_table::typedef_hash_table): Update.
2828 (typedef_hash_table::~typedef_hash_table): Remove.
2829 (typedef_hash_table::typedef_hash_table)
2830 (typedef_hash_table::find_global_typedef)
2831 (typedef_hash_table::find_typedef): Update.
2832
eb53f105
TT
28332020-09-17 Tom Tromey <tom@tromey.com>
2834
2835 * target-descriptions.c (tdesc_use_registers): Use htab_up.
2836
7a8a5d47
TT
28372020-09-17 Tom Tromey <tom@tromey.com>
2838
2839 * linespec.c (class decode_compound_collector)
2840 <~decode_compound_collector>: Remove.
2841 <m_unique_syms>: Now htab_up.
2842 (decode_compound_collector::operator ()): Update.
2843 (class symtab_collector) <~symtab_collector>: Remove.
2844 <m_symtab_table>: Now htab_up.
2845 (symtab_collector::operator ()): Update.
2846
99032cfc
TT
28472020-09-17 Tom Tromey <tom@tromey.com>
2848
2849 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
2850 (filename_seen_cache::clear): Update.
2851 (~filename_seen_cache): Remove.
2852 (filename_seen_cache::seen): Update.
2853 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
2854 htab_up.
2855 <~filename_seen_cache>: Remove.
2856 <traverse>: Update.
2857
32580f6d
TT
28582020-09-17 Tom Tromey <tom@tromey.com>
2859
2860 * completer.c (completion_tracker::discard_completions)
2861 (completion_tracker::~completion_tracker)
2862 (completion_tracker::maybe_add_completion)
2863 (completion_tracker::remove_completion)
2864 (completion_tracker::recompute_lowest_common_denominator)
2865 (completion_tracker::build_completion_result): Update.
2866 * completer.h (class completion_tracker) <have_completions>:
2867 Update.
2868 <m_entries_hash>: Now htab_up.
2869
c1fb9836
TT
28702020-09-17 Tom Tromey <tom@tromey.com>
2871
2872 * breakpoint.c (ambiguous_names_p): Use htab_up.
2873
88f07206
TT
28742020-09-17 Tom Tromey <tom@tromey.com>
2875
2876 * auto-load.c (struct auto_load_pspace_info)
2877 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
2878 <loaded_script_files, loaded_script_texts>: Change type to
2879 htab_up.
2880 (~auto_load_pspace_info) Remove.
2881 (init_loaded_scripts_info, maybe_add_script_file)
2882 (maybe_add_script_text, auto_load_info_scripts): Update.
2883
9519b2ee
TT
28842020-09-17 Tom Tromey <tromey@adacore.com>
2885
2886 * c-exp.y (name_obstack): Now static.
2887
d2cd4113
CC
28882020-09-17 Chungyi Chi <demonic@csie.io>
2889
2890 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
2891
b650a282
SM
28922020-09-16 Simon Marchi <simon.marchi@efficios.com>
2893
2894 * breakpoint.h (init_catchpoint): Change int parameter to bool.
2895 (add_solib_catchpoint): Likewise.
2896 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
2897 to bool.
2898 (add_solib_catchpoint): Change int parameter/variable to bool.
2899 (catch_load_or_unload): Likewise.
2900 (init_catchpoint): Likewise.
2901 (create_fork_vfork_event_catchpoint): Likewise.
2902 (catch_fork_command_1): Likewise.
2903 (catch_exec_command_1): Likewise.
2904
4d0bcfcf
SM
29052020-09-16 Simon Marchi <simon.marchi@efficios.com>
2906
2907 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
2908 Change instance_flags to m_instance_flags.
2909
fe830662
TT
29102020-09-16 Tom Tromey <tromey@adacore.com>
2911
2912 PR gdb/26598:
2913 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
2914
fe5ddfc3
JB
29152020-09-16 John Baldwin <jhb@FreeBSD.org>
2916
2917 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
2918 PL_FLAG_EXEC.
2919 (fbsd_nat_target::insert_exec_catchpoint)
2920 (fbsd_nat_target::remove_exec_catchpoint): Always define.
2921 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
2922 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
2923
e911c666
JB
29242020-09-16 John Baldwin <jhb@FreeBSD.org>
2925
2926 * configure.ac: Remove check for kinfo_getvmmap().
2927 * configure, config.in: Regenerate.
2928 * fbsd-nat.c (fbsd_read_mapping): Remove
2929 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
2930 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
2931 kinfo_get_vmmap() are always present.
2932
1f17d372
JB
29332020-09-16 John Baldwin <jhb@FreeBSD.org>
2934
2935 * fbsd-nat.c: Always include support for
2936 TARGET_OBJECT_SIGNAL_INFO.
2937
bcb1da7f
JB
29382020-09-16 John Baldwin <jhb@FreeBSD.org>
2939
2940 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
2941 sysctl and remove procfs fallback.
2942
5515f729
JB
29432020-09-16 John Baldwin <jhb@FreeBSD.org>
2944
2945 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
2946 * fbsd-nat.h: Likewise.
2947
da1df1db
TBA
29482020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2949
2950 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
2951 argument.
2952
0e25e767
AB
29532020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2954
2955 * ada-lang.c (ada_language_data): Delete.
2956 (ada_language): Remove references to ada_language_data.
2957 * c-lang.c (c_language_data): Delete.
2958 (c_language): Remove references to c_language_data.
2959 (cplus_language_data): Delete.
2960 (cplus_language): Remove references to cplus_language_data.
2961 (asm_language_data): Delete.
2962 (asm_language): Remove references to asm_language_data.
2963 (minimal_language_data): Delete.
2964 (minimal_language): Remove references to minimal_language_data.
2965 * d-lang.c (d_language_data): Delete.
2966 (d_language): Remove references to d_language_data.
2967 * f-lang.c (f_language_data): Delete.
2968 (f_language): Remove references to f_language_data.
2969 * go-lang.c (go_language_data): Delete.
2970 (go_language): Remove references to go_language_data.
2971 * language.c (unknown_language_data): Delete.
2972 (unknown_language): Remove references to unknown_language_data.
2973 (auto_language_data): Delete.
2974 (auto_language): Remove references to auto_language_data.
2975 * language.h (language_data): Delete struct.
2976 (language_defn): No longer inherit from language_data.
2977 * m2-lang.c (m2_language_data): Delete.
2978 (m2_language): Remove references to m2_language_data.
2979 * objc-lang.c (objc_language_data): Delete.
2980 (objc_language): Remove references to objc_language_data.
2981 * opencl-lang.c (opencl_language_data): Delete.
2982 (opencl_language): Remove references to opencl_language_data.
2983 * p-lang.c (pascal_language_data): Delete.
2984 (pascal_language): Remove references to pascal_language_data.
2985 * rust-lang.c (rust_language_data): Delete.
2986 (rust_language): Remove references to rust_language_data.
2987
b7c6e27d
AB
29882020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2989
2990 * ada-lang.c (ada_language_data): Remove la_op_print_tab
2991 initializer.
2992 (ada_language::opcode_print_table): New member function.
2993 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
2994 (c_language::opcode_print_table): New member function.
2995 (cplus_language_data): Remove la_op_print_tab initializer.
2996 (cplus_language::opcode_print_table): New member function.
2997 (asm_language_data): Remove la_op_print_tab initializer.
2998 (asm_language::opcode_print_table): New member function.
2999 (minimal_language_data): Remove la_op_print_tab initializer.
3000 (minimal_language::opcode_print_table): New member function.
3001 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
3002 (d_language::opcode_print_table): New member function.
3003 * expprint.c (print_subexp_standard): Update call to
3004 opcode_print_table.
3005 (op_string): Likewise.
3006 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
3007 (f_language::opcode_print_table): New member function.
3008 * go-lang.c (go_language_data): Remove la_op_print_tab
3009 initializer.
3010 (go_language::opcode_print_table): New member function.
3011 * language.c (unknown_language_data): Remove la_op_print_tab
3012 initializer.
3013 (unknown_language::opcode_print_table): New member function.
3014 (auto_language_data): Remove la_op_print_tab initializer.
3015 (auto_language::opcode_print_table): New member function.
3016 * language.h (language_data): Remove la_op_print_tab field.
3017 (language_defn::opcode_print_table): Declare new member function.
3018 * m2-lang.c (m2_language_data): Remove la_op_print_tab
3019 initializer.
3020 (m2_language::opcode_print_table): New member function.
3021 * objc-lang.c (objc_language_data): Remove la_op_print_tab
3022 initializer.
3023 (objc_language::opcode_print_table): New member function.
3024 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
3025 initializer.
3026 (opencl_language::opcode_print_table): New member function.
3027 * p-lang.c (pascal_language_data): Remove la_op_print_tab
3028 initializer.
3029 (pascal_language::opcode_print_table): New member function.
3030 * rust-lang.c (rust_language_data): Remove la_op_print_tab
3031 initializer.
3032 (rust_language::opcode_print_table): New member function.
3033
5aba6ebe
AB
30342020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3035
3036 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
3037 (ada_language::expression_ops): New member function.
3038 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
3039 (c_language::expression_ops): New member function.
3040 (cplus_language_data): Remove la_exp_desc initializer.
3041 (cplus_language::expression_ops): New member function.
3042 (asm_language_data): Remove la_exp_desc initializer.
3043 (asm_language::expression_ops): New member function.
3044 (minimal_language_data): Remove la_exp_desc initializer.
3045 (minimal_language::expression_ops): New member function.
3046 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
3047 (d_language::expression_ops): New member function.
3048 * eval.c (evaluate_subexp): Update call to expression_ops.
3049 * expprint.c (print_subexp): Likewise.
3050 (op_name): Likewise.
3051 (dump_subexp_body): Likewise.
3052 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
3053 (f_language::expression_ops): New member function.
3054 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
3055 (go_language::expression_ops): New member function.
3056 * language.c (language_defn::expression_ops): New function.
3057 (unknown_language_data): Remove la_exp_desc initializer.
3058 (auto_language_data): Likewise.
3059 * language.h (language_data): Remove la_exp_desc field.
3060 (language_defn::expression_ops): Declare new member function.
3061 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
3062 (m2_language::expression_ops): New member function.
3063 * objc-lang.c (objc_language_data): Remove la_exp_desc
3064 initializer.
3065 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
3066 initializer.
3067 (opencl_language::expression_ops): New member function.
3068 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
3069 * parse.c (operator_length): Update call to expression_ops.
3070 (exp_iterate): Likewise.
3071 * rust-lang.c (rust_language_data): Remove la_exp_desc
3072 initializer.
3073 (ruse_language::expression_ops): New member function.
3074
b63a3f3f
AB
30752020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3076
3077 * ada-lang.c (ada_language_data): Remove la_varobj_ops
3078 initializer.
3079 (ada_language::varobj_ops): New member function.
3080 * c-lang.c (c_language_data): Remove la_varobj_ops
3081 initializer.
3082 (cplus_language_data): Likewise.
3083 (cplus_language::varobj_ops): New member function.
3084 (asm_language_data): Remove la_varobj_ops initializer.
3085 (minimal_language_data): Likewise.
3086 * d-lang.c (d_language_data): Likewise.
3087 * f-lang.c (f_language_data): Likewise.
3088 * go-lang.c (go_language_data): Likewise.
3089 * language.c (language_defn::varobj_ops): New function.
3090 (unknown_language_data): Remove la_varobj_ops
3091 initializer.
3092 (auto_language_data): Likewise.
3093 * language.h (language_data): Remove la_varobj_ops field.
3094 (language_defn::varobj_ops): Declare new member function.
3095 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
3096 * objc-lang.c (objc_language_data): Likewise.
3097 * opencl-lang.c (opencl_language_data): Likewise.
3098 * p-lang.c (pascal_language_data): Likewise.
3099 * rust-lang.c (rust_language_data): Likewise.
3100 * varobj.c (varobj_create): Update call to varobj_ops.
3101 * varobj.h (default_varobj_ops): Delete define.
3102
1ac14a04
AB
31032020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3104
3105 * ada-lang.c (ada_language_data): Remove la_macro_expansion
3106 initializer.
3107 * c-lang.c (c_language_data): Likewise.
3108 (c_language::macro_expansion): New member function.
3109 (cplus_language_data): Likewise.
3110 (cplus_language::macro_expansion): New member function.
3111 (asm_language_data): Likewise.
3112 (asm_language::macro_expansion): New member function.
3113 (minimal_language_data): Likewise.
3114 (minimal_language::macro_expansion): New member function.
3115 * d-lang.c (d_language_data): Remove la_macro_expansion
3116 initializer.
3117 * f-lang.c (f_language_data): Likewise.
3118 * go-lang.c (go_language_data): Likewise.
3119 * language.c (unknown_language_data): Likewise.
3120 (auto_language_data): Likewise.
3121 * language.h (language_data): Remove la_macro_expansion field.
3122 (language_defn::macro_expansion): New member function.
3123 * m2-lang.c (m2_language_data): Remove la_macro_expansion
3124 initializer.
3125 * objc-lang.c (objc_language_data): Likewise.
3126 (objc_language::macro_expansion): New member function.
3127 * opencl-lang.c (opencl_language_data): Likewise.
3128 (opencl_language::macro_expansion): New member function.
3129 * p-lang.c (pascal_language_data): Remove la_macro_expansion
3130 initializer.
3131 * rust-lang.c (rust_language_data): Likewise.
3132 * symtab.c (default_collect_symbol_completion_matches_break_on):
3133 Update call to macro_expansion.
3134
3a3440fb
AB
31352020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3136
3137 * ada-lang.c (ada_language_data): Remove la_array_ordering
3138 initializer.
3139 * c-lang.c (c_language_data): Likewise.
3140 (cplus_language_data): Likewise.
3141 (asm_language_data): Likewise.
3142 (minimal_language_data): Likewise.
3143 * d-lang.c (d_language_data): Likewise.
3144 * dwarf2/read.c (read_array_order): Update for call to
3145 array_ordering.
3146 * f-lang.c (f_language_data): Remove la_array_ordering
3147 initializer.
3148 (f_language::array_ordering): New member function.
3149 * go-lang.c (go_language_data): Remove la_array_ordering
3150 initializer.
3151 * language.c (unknown_language_data): Likewise.
3152 (auto_language_data): Likewise.
3153 * language.h (language_data): Delete la_array_ordering field.
3154 (language_defn::array_ordering): New member function.
3155 * m2-lang.c (m2_language_data): Remove la_array_ordering
3156 initializer.
3157 * objc-lang.c (objc_language_data): Likewise.
3158 * opencl-lang.c (opencl_language_data): Likewise.
3159 * p-lang.c (pascal_language_data): Likewise.
3160 * rust-lang.c (rust_language_data): Likewise.
3161
0d201fa4
AB
31622020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3163
3164 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
3165 initializer.
3166 * c-lang.c (c_language_data): Likewise.
3167 (cplus_language_data): Likewise.
3168 (asm_language_data): Likewise.
3169 (minimal_language_data): Likewise.
3170 * d-lang.c (d_language_data): Likewise.
3171 * f-lang.c (f_language_data): Likewise.
3172 (f_language::case_sensitivity): New member function.
3173 * go-lang.c (go_language_data): Remove la_case_sensitivity
3174 initializer.
3175 * language.c (enum case_mode): Moved here from language.h.
3176 (case_mode): Make static.
3177 (show_case_command): Update for case_sensitivity being a method.
3178 (set_case_command): Likewise.
3179 (set_range_case): Likewise.
3180 (unknown_language_data): Remove la_case_sensitivity initializer.
3181 (auto_language_data): Likewise.
3182 * language.h (case_mode): Delete, move enum declaration to
3183 language.c.
3184 (language_data): Delete la_case_sensitivity field.
3185 (language_defn::case_sensitivity): New member function.
3186 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
3187 initializer.
3188 * objc-lang.c (objc_language_data): Likewise.
3189 * opencl-lang.c (opencl_language_data): Likewise.
3190 * p-lang.c (pascal_language_data): Likewise.
3191 * rust-lang.c (rust_language_data): Likewise.
3192
efdf6a73
AB
31932020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3194
3195 * ada-lang.c (ada_language_data): Remove la_range_check
3196 initializer.
3197 * c-lang.c (c_language_data): Likewise.
3198 (cplus_language_data): Likewise.
3199 (asm_language_data): Likewise.
3200 (minimal_language_data): Likewise.
3201 * d-lang.c (d_language_data): Likewise.
3202 * f-lang.c (f_language_data): Likewise.
3203 (f_language::range_checking_on_by_default): New member function.
3204 * go-lang.c (go_language_data): Remove la_range_check initializer.
3205 * language.c (enum range_mode): Moved here from language.h.
3206 (range_mode): Made static.
3207 (show_range_command): Update to use
3208 range_checking_on_by_default.
3209 (set_range_command): Likewise.
3210 (set_range_case): Likewise.
3211 (unknown_language_data): Remove la_range_check initializer.
3212 (auto_language_data): Likewise.
3213 * language.h (range_mode): Delete. Enum definition moved to
3214 language.c.
3215 (language_data): Remove la_range_check field.
3216 (language_defn::range_checking_on_by_default): New member
3217 function.
3218 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
3219 (m2_language::range_checking_on_by_default): New member function.
3220 * objc-lang.c (objc_language_data): Remove la_range_check
3221 initializer.
3222 * opencl-lang.c (opencl_language_data): Likewise.
3223 * p-lang.c (pascal_language_data): Likewise.
3224 (pascal_language::range_checking_on_by_default): New member
3225 function.
3226 * rust-lang.c (rust_language_data): Remove la_range_check
3227 initializer.
3228 (rust_language::range_checking_on_by_default): New member
3229 function.
3230
bf92aec5
AB
32312020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3232
3233 * dwarf2/read.c (dwarf2_physname): Remove special case for
3234 language_go.
3235 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
3236 member function.
3237
d3355e4d
AB
32382020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3239
3240 * ada-lang.c (ada_language_data): Remove
3241 la_store_sym_names_in_linkage_form_p initializer.
3242 (ada_language::store_sym_names_in_linkage_form_p): New member
3243 function.
3244 * c-lang.c (c_language_data): Remove
3245 la_store_sym_names_in_linkage_form_p initializer.
3246 (c_language::store_sym_names_in_linkage_form_p): New member
3247 function.
3248 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
3249 initializer.
3250 (asm_language_data): Likewise.
3251 (asm_language::store_sym_names_in_linkage_form_p): New member
3252 function.
3253 (minimal_language_data): Remove
3254 la_store_sym_names_in_linkage_form_p initializer.
3255 (minimal_language::store_sym_names_in_linkage_form_p): New member
3256 function.
3257 * d-lang.c (d_language_data): Remove
3258 la_store_sym_names_in_linkage_form_p initializer.
3259 * dwarf2/read.c (dwarf2_physname): Update call to
3260 store_sym_names_in_linkage_form_p.
3261 * f-lang.c (f_language_data): Remove
3262 la_store_sym_names_in_linkage_form_p initializer.
3263 * go-lang.c (go_language_data): Remove
3264 la_store_sym_names_in_linkage_form_p initializer.
3265 * language.c (unknown_language_data): Remove
3266 la_store_sym_names_in_linkage_form_p initializer.
3267 (unknown_language::store_sym_names_in_linkage_form_p): New member
3268 function.
3269 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
3270 initializer.
3271 (auto_language::store_sym_names_in_linkage_form_p): New member
3272 function.
3273 * language.h (language_data): Remove
3274 la_store_sym_names_in_linkage_form_p member variable.
3275 (language_defn::store_sym_names_in_linkage_form_p): New member
3276 function.
3277 * m2-lang.c (m2_language_data): Remove
3278 la_store_sym_names_in_linkage_form_p initializer.
3279 * objc-lang.c (objc_language_data): Likewise.
3280 * opencl-lang.c (opencl_language_data): Likewise.
3281 * p-lang.c (pascal_language_data): Likewise.
3282 * rust-lang.c (rust_language_data): Likewise.
3283
22c12a6c
AB
32842020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3285
3286 * ada-lang.c (ada_language_data): Remove string_lower_bound
3287 initializer.
3288 * c-lang.c (c_language_data): Likewise.
3289 (cplus_language_data): Likewise.
3290 (asm_language_data): Likewise.
3291 (minimal_language_data): Likewise.
3292 * d-lang.c (d_language_data): Likewise.
3293 * f-lang.c (f_language_data): Likewise.
3294 * go-lang.c (go_language_data): Likewise.
3295 * language.c (unknown_language_data): Likewise.
3296 (auto_language_data): Likewise.
3297 * language.h (language_data): Remove string_lower_bound field.
3298 (language_defn::string_lower_bound): New member function.
3299 * m2-lang.c (m2_language_data): Remove string_lower_bound
3300 initializer.
3301 (m2_language::string_lower_bound): New member function.
3302 * objc-lang.c (objc_language_data): Remove string_lower_bound
3303 initializer.
3304 * opencl-lang.c (opencl_language_data): Likewise.
3305 * p-lang.c (pascal_language_data): Likewise.
3306 * rust-lang.c (rust_language_data): Likewise.
3307 * valops.c (value_cstring): Update call to string_lower_bound.
3308 (value_string): Likewise.
3309 * value.c (allocate_repeated_value): Likewise.
3310
1c236ddd
AB
33112020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3312
3313 * valops.c (value_repeat): Fix incorrect argument name in comment.
3314
67bd3fd5
AB
33152020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3316
3317 * ada-lang.c (ada_language_data): Remove c_style_arrays
3318 initializer.
3319 (ada_language::c_style_arrays_p): New member fuction.
3320 * c-lang.c (c_language_data): Remove c_style_arrays
3321 initializer.
3322 (cplus_language_data): Likewise.
3323 (asm_language_data): Likewise.
3324 (minimal_language_data): Likewise.
3325 * d-lang.c (d_language_data): Likewise.
3326 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
3327 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
3328 (f_language::c_style_arrays_p): New member function.
3329 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
3330 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
3331 * language.c (unknown_language_data): Remove c_style_arrays
3332 initializer.
3333 (auto_language_data): Likewise.
3334 * language.h (language_data): Remove c_style_arrays field.
3335 (language_defn::c_style_arrays_p): New member function.
3336 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
3337 (m2_language::c_style_arrays_p): New member function.
3338 * objc-lang.c (objc_language_data): Remove c_style_arrays
3339 initializer.
3340 * opencl-lang.c (opencl_language_data): Likewise.
3341 * p-lang.c (pascal_language_data): Likewise.
3342 * rust-lang.c (rust_language_data): Likewise.
3343 * valarith.c (value_subscript): Update call to c_style_arrays_p,
3344 and update local variable to a bool.
3345 * valops.c (value_cast): Update call to c_style_arrays_p.
3346 (value_array): Likewise.
3347 * value.c (coerce_array): Likewise.
3348
85967615
AB
33492020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3350
3351 * ada-lang.c (ada_language_data): Remove la_language initializer.
3352 * c-lang.c (c_language_data): Likewise.
3353 (cplus_language_data): Likewise.
3354 (asm_language_data): Likewise.
3355 (minimal_language_data): Likewise.
3356 * d-lang.c (d_language_data): Likewise.
3357 * f-lang.c (f_language_data): Likewise.
3358 * go-lang.c (go_language_data): Likewise.
3359 * language.c (unknown_language_data): Likewise.
3360 (auto_language_data): Likewise.
3361 * language.h (language_data): Remove la_language field.
3362 (language_defn::language_defn): Initialise la_language field.
3363 (language_defn::la_language): New member variable.
3364 * m2-lang.c (m2_language_data): Remove la_language field.
3365 * objc-lang.c (objc_language_data): Likewise.
3366 * opencl-lang.c (opencl_language_data): Likewise.
3367 * p-lang.c (pascal_language_data): Likewise.
3368 * rust-lang.c (rust_language_data): Likewise.
3369
e171d6f1
AB
33702020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3371
3372 * ada-lang.c (ada_extensions): Delete, moved into
3373 ada_language::filename_extensions.
3374 (ada_language_data): Remove la_filename_extensions initializer.
3375 (ada_language::filename_extensions): New member function.
3376 * c-lang.c (c_extensions): Delete, moved into
3377 c_language::filename_extensions.
3378 (c_language_data): Remove la_filename_extensions initializer.
3379 (c_language::filename_extensions): New member function.
3380 (cplus_extensions): Delete, moved into
3381 cplus_language::filename_extensions.
3382 (cplus_language_data): Remove la_filename_extensions initializer.
3383 (cplus_language::filename_extensions): New member function.
3384 (asm_extensions): Delete, moved into
3385 asm_language::filename_extensions.
3386 (asm_language_data): Remove la_filename_extensions initializer.
3387 (asm_language::filename_extensions): New member function.
3388 (minimal_language_data): Remove la_filename_extensions
3389 initializer.
3390 * d-lang.c (d_extensions): Delete, moved into
3391 d_language::filename_extensions.
3392 (d_language_data): Remove la_filename_extensions initializer.
3393 (d_language::filename_extensions): New member function.
3394 * f-lang.c (f_extensions): Delete, moved into
3395 f_language::filename_extensions.
3396 (f_language_data): Remove la_filename_extensions initializer.
3397 (f_language::filename_extensions): New member function.
3398 * go-lang.c (go_language_data): Remove la_filename_extensions
3399 initializer.
3400 * language.c (add_set_language_command): Update now that
3401 filename_extensions returns a vector.
3402 (unknown_language_data): Remove la_filename_extensions
3403 initializer.
3404 (auto_language_data): Likewise.
3405 * language.h (language_data): Remove la_filename_extensions field.
3406 (language_defn::filename_extensions): New member function.
3407 * m2-lang.c (m2_language_data): Remove la_filename_extensions
3408 initializer.
3409 * objc-lang.c (objc_extensions): Delete, moved into
3410 objc_language::filename_extensions.
3411 (objc_language_data): Remove la_filename_extensions initializer.
3412 (objc_language::filename_extensions): New member function.
3413 * opencl-lang.c (opencl_language_data): Remove
3414 la_filename_extensions initializer.
3415 * p-lang.c (pascal_extensions): Delete, moved into
3416 pascal_language::filename_extensions.
3417 (pascal_language_data): Remove la_filename_extensions initializer.
3418 (pascal_language::filename_extensions): New member function.
3419 * rust-lang.c (rust_extensions): Delete, moved into
3420 rust_language::filename_extensions.
3421 (rust_language_data): Remove la_filename_extensions initializer.
3422 (rust_language::filename_extensions): New member function.
3423 * symfile.c (add_filename_language): Add new assert.
3424
6f7664a9
AB
34252020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3426
3427 * ada-lang.c (ada_language_data): Remove la_name and
3428 la_natural_name initializers.
3429 (ada_language::name): New member function.
3430 (ada_language::natural_name): New member function.
3431 * c-lang.c (c_language_data): Remove la_name and
3432 la_natural_name initializers.
3433 (c_language::name): New member function.
3434 (c_language::natural_name): New member function.
3435 (cplus_language_data): Remove la_name and
3436 la_natural_name initializers.
3437 (cplus_language::name): New member function.
3438 (cplus_language::natural_name): New member function.
3439 (asm_language_data): Remove la_name and
3440 la_natural_name initializers.
3441 (asm_language::name): New member function.
3442 (asm_language::natural_name): New member function.
3443 (minimal_language_data): Remove la_name and
3444 la_natural_name initializers.
3445 (minimal_language::name): New member function.
3446 (minimal_language::natural_name): New member function.
3447 * compile/compile.c (compile_to_object): Update call to
3448 lanugage_defn::name.
3449 * d-lang.c (d_language_data): Remove la_name and
3450 la_natural_name initializers.
3451 (d_language::name): New member function.
3452 (d_language::natural_name): New member function.
3453 * expprint.c (print_subexp_standard): Update call to
3454 language_defn::name.
3455 (dump_raw_expression): Likewise
3456 (dump_prefix_expression): Likewise.
3457 * f-lang.c (f_language_data): Remove la_name and
3458 la_natural_name initializers.
3459 (f_language::name): New member function.
3460 (f_language::natural_name): New member function.
3461 * go-lang.c (go_language_data): Remove la_name and
3462 la_natural_name initializers.
3463 (go_language::name): New member function.
3464 (go_language::natural_name): New member function.
3465 * language.c (show_language_command): Update call to
3466 language_defn::name.
3467 (set_language_command): Likewise.
3468 (language_enum): Likewise.
3469 (language_str): Likewise.
3470 (add_set_language_command): Likewise, use
3471 language_defn::natural_name in the doc string.
3472 (unknown_language_data): Remove la_name and
3473 la_natural_name initializers.
3474 (unknown_language::name): New member function.
3475 (unknown_language::natural_name): New member function.
3476 (auto_language_data): Remove la_name and
3477 la_natural_name initializers.
3478 (auto_language::name): New member function.
3479 (auto_language::natural_name): New member function.
3480 (language_lookup_primitive_type_as_symbol): Update call to
3481 language_defn::name.
3482 * language.h (language_data): Remove la_name and la_natural_name
3483 member variables.
3484 (language_defn::name): New member function.
3485 (language_defn::natural_name): New member function.
3486 * m2-lang.c (m2_language_data): Remove la_name and
3487 la_natural_name initializers.
3488 (m2_language::name): New member function.
3489 (m2_language::natural_name): New member function.
3490 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
3491 language_defn::natural_name.
3492 * objc-lang.c (objc_language_data): Remove la_name and
3493 la_natural_name initializers.
3494 (objc_language::name): New member function.
3495 (objc_language::natural_name): New member function.
3496 * opencl-lang.c (opencl_language_data): Remove la_name and
3497 la_natural_name initializers.
3498 (opencl_language::name): New member function.
3499 (opencl_language::natural_name): New member function.
3500 * p-lang.c (pascal_language_data): Remove la_name and
3501 la_natural_name initializers.
3502 (pascal_language::name): New member function.
3503 (pascal_language::natural_name): New member function.
3504 * rust-lang.c (rust_language_data): Remove la_name and
3505 la_natural_name initializers.
3506 (rust_language::name): New member function.
3507 (rust_language::natural_name): New member function.
3508 * symtab.c (lookup_language_this): Update call to
3509 language_defn::name.
3510
5bae7c4e
AB
35112020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3512
3513 * ada-lang.c (ada_language_data): Remove la_name_of_this
3514 initializer.
3515 * ax-gdb.c (gen_expr): Update call to name_of_this.
3516 * c-exp.y (classify_name): Likewise.
3517 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
3518 (cplus_language_data): Likewise.
3519 (cplus_language::name_of_this): New member function.
3520 (asm_language_data): Remove la_name_of_this initializer.
3521 (minimal_language_data): Likewise.
3522 * d-lang.c (d_language_data): Likewise.
3523 (d_language::name_of_this): New member function.
3524 * expprint.c (print_subexp_standard): Update call to name_of_this.
3525 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
3526 * go-lang.c (go_language_data): Likewise.
3527 * language.c (unknown_language_data): Likewise.
3528 (unknown_language::name_of_this): New member function.
3529 (auto_language_data): Remove la_name_of_this initializer.
3530 (auto_language::name_of_this): New member function.
3531 * language.h (language_data): Delete la_name_of_this member
3532 variable.
3533 (language_defn::name_of_this): New member function.
3534 * m2-lang.c (m2_language_data): Remove la_name_of_this
3535 initializer.
3536 * objc-lang.c (objc_language_data): Likewise.
3537 (objc_language::name_of_this): New member function.
3538 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
3539 initializer.
3540 * p-lang.c (pascal_language_data): Likewise.
3541 (pascal_language::name_of_this): New member function.
3542 * rust-lang.c (rust_language_data): Remove la_name_of_this
3543 initializer.
3544 * symtab.c (lookup_language_this): Update call to name_of_this.
3545 (lookup_symbol_aux): Likewise.
3546 * valops.c (value_of_this): Likewise.
3547
22e3f3ed
AB
35482020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3549
3550 * ada-lang.c (ada_language_data): Remove
3551 la_struct_too_deep_ellipsis initializer.
3552 (ada_language::struct_too_deep_ellipsis): New member function.
3553 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
3554 initializer.
3555 (cplus_language_data): Likewise.
3556 (asm_language_data): Likewise.
3557 (minimal_language_data): Likewise.
3558 * cp-valprint.c (cp_print_value): Update call to
3559 struct_too_deep_ellipsis.
3560 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
3561 initializer.
3562 * f-lang.c (f_language_data): Likewise.
3563 (f_language::struct_too_deep_ellipsis): New member function.
3564 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
3565 initializer.
3566 * language.c (unknown_language_data): Likewise.
3567 (auto_language_data): Likewise.
3568 * language.h (language_data): Delete la_struct_too_deep_ellipsis
3569 member variable.
3570 (language_defn::struct_too_deep_ellipsis): New member function.
3571 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
3572 initializer.Q
3573 * objc-lang.c (objc_language_data): Likewise.
3574 * opencl-lang.c (opencl_language_data): Likewise.
3575 * p-lang.c (pascal_language_data): Likewise.
3576 * rust-lang.c (rust_language_data): Likewise.
3577 * valprint.c (val_print_check_max_depth): Update call to
3578 struct_too_deep_ellipsis.
3579
ed29e1c7
FW
35802020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
3581
3582 * MAINTAINERS (Write After Approval): Add myself.
3583
12d8f940
TT
35842020-09-15 Tom Tromey <tom@tromey.com>
3585
3586 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
3587 Remove.
3588
6b5a7bc7
TT
35892020-09-15 Tom Tromey <tom@tromey.com>
3590
3591 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
3592 and TYPE_CODE_METHODPTR cases.
3593 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
3594 (c_value_print_inner): Update.
3595 * valprint.c (generic_value_print_memberptr): New function, from
3596 c_value_print_memberptr.
3597 (generic_value_print): Use it. Call cplus_print_method_ptr.
3598
47f0e2ff
TT
35992020-09-15 Tom Tromey <tromey@adacore.com>
3600
3601 * python/python-internal.h (PyInt_FromLong): Remove define.
3602 * python/py-value.c (convert_value_from_python): Use
3603 gdb_py_object_from_longest.
3604 * python/py-type.c (typy_get_code): Use
3605 gdb_py_object_from_longest.
3606 * python/py-symtab.c (salpy_get_line): Use
3607 gdb_py_object_from_longest.
3608 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
3609 gdb_py_object_from_longest.
3610 * python/py-record.c (recpy_gap_reason_code): Use
3611 gdb_py_object_from_longest.
3612 * python/py-record-btrace.c (recpy_bt_insn_size)
3613 (recpy_bt_func_level, btpy_list_count): Use
3614 gdb_py_object_from_longest.
3615 * python/py-infthread.c (gdbpy_create_ptid_object): Use
3616 gdb_py_object_from_longest. Fix error handling.
3617 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
3618 gdb_py_object_from_longest.
3619 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
3620 gdb_py_object_from_longest.
3621 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
3622 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
3623 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
3624
512116ce
TT
36252020-09-15 Tom Tromey <tromey@adacore.com>
3626
3627 * python/python.c (gdbpy_parameter_value): Use
3628 gdb_py_object_from_ulongest.
3629
4ab1029c
TT
36302020-09-15 Tom Tromey <tromey@adacore.com>
3631
3632 * python/py-infevents.c (create_register_changed_event_object):
3633 Use gdb_py_object_from_longest.
3634 * python/py-exitedevent.c (create_exited_event_object): Use
3635 gdb_py_object_from_longest.
3636
062534d4
TT
36372020-09-15 Tom Tromey <tromey@adacore.com>
3638
3639 * python/python.c (gdbpy_parameter_value): Use
3640 gdb_py_object_from_longest.
3641 * python/py-type.c (convert_field, typy_range): Use
3642 gdb_py_object_from_longest.
3643 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
3644 gdb_py_object_from_longest.
3645 * python/py-lazy-string.c (stpy_get_length): Use
3646 gdb_py_object_from_longest.
3647 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
3648 gdb_py_object_from_longest.
3649 * python/py-infevents.c (create_memory_changed_event_object): Use
3650 gdb_py_object_from_longest.
3651 * python/py-inferior.c (infpy_get_num): Use
3652 gdb_py_object_from_longest.
3653 (infpy_get_pid): Likewise.
3654
d1cab987
TT
36552020-09-15 Tom Tromey <tromey@adacore.com>
3656
3657 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
3658 defines.
3659 * python/py-value.c (valpy_long): Use
3660 gdb_py_object_from_ulongest.
3661 * python/py-symtab.c (salpy_get_pc): Use
3662 gdb_py_object_from_ulongest.
3663 (salpy_get_last): Likewise.
3664 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
3665 gdb_py_object_from_ulongest.
3666 * python/py-lazy-string.c (stpy_get_address): Use
3667 gdb_py_object_from_ulongest.
3668 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
3669 * python/py-arch.c (archpy_disassemble): Use
3670 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
3671 error handling.
3672
4bde49dc
TT
36732020-09-15 Tom Tromey <tromey@adacore.com>
3674
3675 * python/python-internal.h (gdb_py_long_from_longest): Remove
3676 defines.
3677 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
3678 * python/py-type.c (convert_field, typy_get_sizeof): Use
3679 gdb_py_object_from_longest.
3680 * python/py-record-btrace.c (btpy_list_index): Use
3681 gdb_py_object_from_longest.
3682
37431074
TT
36832020-09-15 Tom Tromey <tromey@adacore.com>
3684
3685 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
3686 * python/py-record.c (recpy_element_number): Use
3687 gdb_py_object_from_longest.
3688 (recpy_gap_number): Likewise.
3689
cbe25684
TT
36902020-09-15 Tom Tromey <tromey@adacore.com>
3691
3692 * top.c (ui::ui): Update.
3693 (highest_ui_num): Remove.
3694 * top.h (struct ui) <num>: Remove.
3695
db92ac45
TT
36962020-09-15 Tom Tromey <tromey@adacore.com>
3697
3698 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
3699 * ui-style.c (ansi_regex_text): Now array.
3700 * rust-exp.y (number_regex_text): Now array.
3701 * linespec.c (linespec_quote_characters): Now array.
3702 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
3703 Now arrays.
3704
d2b31b67
SM
37052020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3706
3707 * debuginfod-support.c (debuginfod_client_deleter): New.
3708 (debuginfod_client_up): New.
3709 (debuginfod_init): Return debuginfod_client_up.
3710 (debuginfod_source_query): Adjust.
3711 (debuginfod_debuginfo_query): Adjust.
3712
3246bd8e
SM
37132020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3714
3715 * debuginfod-support.c (debuginfod_source_query): Use
3716 make_unique_xstrdup.
3717
10242f36
SM
37182020-09-14 Simon Marchi <simon.marchi@efficios.com>
3719
3720 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
3721 with `type::instance_flags`.
3722
e1044e6a
MM
37232020-09-14 Michael Mullin <masmullin@gmail.com>
3724
3725 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
3726 Remove baton parameter.
3727
04902b09
PA
37282020-09-14 Pedro Alves <pedro@palves.net>
3729
3730 * Makefile.in (SELFTESTS_SRCS): Add
3731 unittests/enum-flags-selftests.c.
3732 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
3733 btrace_function_flags instead of enum btrace_function_flag.
3734 * compile/compile-c-types.c (convert_qualified): Use
3735 enum_flags::raw.
3736 * compile/compile-cplus-symbols.c (convert_one_symbol)
3737 (convert_symbol_bmsym):
3738 * compile/compile-cplus-types.c (compile_cplus_convert_method)
3739 (compile_cplus_convert_struct_or_union_methods)
3740 (compile_cplus_instance::convert_qualified_base):
3741 * go-exp.y (parse_string_or_char): Add cast to int.
3742 * unittests/enum-flags-selftests.c: New file.
3743 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
3744 type to btrace_thread_flags from btrace_thread_flag.
3745 (record_btrace_cancel_resume, record_btrace_step_thread): Change
3746 local's type to btrace_thread_flags from btrace_thread_flag. Add
3747 cast in DEBUG call.
3748
69896a2c
PA
37492020-09-14 Pedro Alves <pedro@palves.net>
3750
3751 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
3752 * gdbtypes.c (address_space_name_to_int): Rename to ...
3753 (address_space_name_to_type_instance_flags): ... this.
3754 (address_space_int_to_name): Rename to ...
3755 (address_space_type_instance_flags_to_name): ... this.
3756 * gdbtypes.h (address_space_name_to_int): Rename to ...
3757 (address_space_name_to_type_instance_flags): ... this.
3758 (address_space_int_to_name): Rename to ...
3759 (address_space_type_instance_flags_to_name): ... this.
3760 * type-stack.c (type_stack::insert): Adjust to rename.
3761 * type-stack.h (type_stack::insert): Likewise.
3762
314ad88d
PA
37632020-09-14 Pedro Alves <pedro@palves.net>
3764 Andrew Burgess <andrew.burgess@embecosm.com>
3765
3766 * avr-tdep.c (avr_address_class_type_flags): Return
3767 type_instance_flags.
3768 (avr_address_class_type_flags_to_name): Take a
3769 type_instance_flags.
3770 (avr_address_class_name_to_type_flags): Return bool and take a
3771 type_instance_flags.
3772 * d-lang.c (build_d_types): Use type::set_instance_flags.
3773 * ft32-tdep.c (ft32_address_class_type_flags): Return
3774 type_instance_flags.
3775 (ft32_address_class_type_flags_to_name): Take a
3776 type_instance_flags.
3777 (ft32_address_class_name_to_type_flags): Return bool and take a
3778 type_instance_flags.
3779 (ft32_gdbarch_init): Use type::set_instance_flags.
3780 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
3781 * gdbarch.h, gdbarch.c: Regenerate.
3782 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
3783 (address_class_name_to_type_flags): Use type_instance_flags and
3784 bool.
3785 * gdbtypes.c (address_space_name_to_int)
3786 (address_space_int_to_name, make_qualified_type): Use
3787 type_instance_flags.
3788 (make_qualified_type): Use type_instance_flags and
3789 type::set_instance_flags.
3790 (make_type_with_address_space, make_cv_type, make_vector_type)
3791 (check_typedef): Use type_instance_flags.
3792 (recursive_dump_type): Cast type_instance_flags to unsigned for
3793 printing.
3794 (copy_type_recursive): Use type::set_instance_flags.
3795 (gdbtypes_post_init): Use type::set_instance_flags.
3796 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
3797 <m_instance_flags>: ... this.
3798 <instance_flags, set_instance_flags>: New methods.
3799 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
3800 (SET_TYPE_INSTANCE_FLAGS): New.
3801 (address_space_name_to_int, address_space_int_to_name)
3802 (make_type_with_address_space): Pass flags using
3803 type_instance_flags instead of int.
3804 * stabsread.c (cleanup_undefined_types_noname): Use
3805 type::set_instance_flags.
3806 * s390-tdep.c (s390_address_class_type_flags): Return
3807 type_instance_flags.
3808 (s390_address_class_type_flags_to_name): Take a
3809 type_instance_flags.
3810 (s390_address_class_name_to_type_flags): Return bool and take a
3811 type_instance_flags.
3812 * type-stack.c (type_stack::follow_types): Use
3813 type_instance_flags.
3814 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
3815
27087b7f
TT
38162020-09-14 Tom Tromey <tromey@adacore.com>
3817
3818 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
3819 * x86-tdep.c (x86_is_thunk_register_name)
3820 (x86_in_indirect_branch_thunk): Update.
3821 * sparc64-tdep.c (sparc64_fpu_register_names)
3822 (sparc64_cp0_register_names, sparc64_register_names)
3823 (sparc64_pseudo_register_names): Now const.
3824 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
3825 cp0_registers_num>: Now const.
3826 * sparc-tdep.c (sparc_core_register_names)
3827 (sparc32_fpu_register_names, sparc32_cp0_register_names)
3828 (sparc32_pseudo_register_names): Now const.
3829 (validate_tdesc_registers): Update.
3830 * rust-lang.c (rust_extensions): Now const.
3831 * p-lang.c (p_extensions): Now const.
3832 * objc-lang.c (objc_extensions): Now const.
3833 * nto-tdep.c (nto_thread_state_str): Now const.
3834 * moxie-tdep.c (moxie_register_names): Now const.
3835 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
3836 Now const.
3837 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
3838 (mips_linux_reg_names): Now const.
3839 (mips_gdbarch_init): Update.
3840 * microblaze-tdep.c (microblaze_register_names): Now const.
3841 * m68k-tdep.c (m68k_register_names): Now const.
3842 * m32r-tdep.c (m32r_register_names): Now const.
3843 * ia64-tdep.c (ia64_register_names): Now const.
3844 * i386-tdep.h (struct gdbarch_tdep) <register_names,
3845 ymmh_register_names, ymm16h_regnum, mpx_register_names,
3846 k_register_names, zmmh_register_names, xmm_avx512_register_names,
3847 ymm_avx512_register_names, pkeys_register_names>: Now const.
3848 * i386-tdep.c (i386_register_names, i386_zmm_names)
3849 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
3850 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
3851 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
3852 * f-lang.c (f_extensions): Now const.
3853 * d-lang.c (d_extensions): Now const.
3854 * csky-tdep.c (csky_register_names): Now const.
3855 * charset.c (default_charset_names, charset_enum): Now const.
3856 (_initialize_charset): Update.
3857 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
3858 const.
3859 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
3860 (bsd_uthread_solib_loaded): Update.
3861 (bsd_uthread_state): Now const.
3862 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
3863 (amd64_ymm_avx512_names, amd64_ymmh_names)
3864 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
3865 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
3866 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
3867 (amd64_dword_names): Now const.
3868 * agent.c (can_use_agent_enum): Now const.
3869 * ada-tasks.c (task_states, long_task_states): Now const.
3870 * ada-lang.c (known_runtime_file_name_patterns)
3871 (known_auxiliary_function_name_patterns, attribute_names)
3872 (standard_exc, ada_extensions): Now const.
3873
89806626
SM
38742020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3875
3876 * bcache.h (struct bcache) <bcache>: Remove constructor.
3877 <m_hash_function, m_compare_function>: Remove.
3878 <~bcache>: Make virtual.
3879 <compare>: Remove static method, introduce virtual method.
3880 <default_hash>: Remove.
3881 <hash>: New virtual method.
3882 * bcache.c (bcache::expand_hash_table): Update.
3883 (bcache::insert): Update.
3884 (bcache::hash): New.
3885 (bcache::compare): Update comment and parameter names.
3886 * gdbtypes.c (types_deeply_equal): Update.
3887 * psymtab.h (struct psymbol_bcache): New struct.
3888 (class psymtab_storage) <psymtab_storage>: Make default.
3889 <psymbol_cache>: Change type to psymbol_bcache.
3890 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
3891 (psymbol_hash): Change to...
3892 (psymbol_bcache::hash): ... this.
3893 (psymbol_compare): Change to...
3894 (psymbol_bcache::compare): ... this.
3895
677c92fe
SM
38962020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3897
3898 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
3899 checking for initial lwp.
3900
3eba3a01
TT
39012020-09-14 Tom Tromey <tromey@adacore.com>
3902
3903 * m68k-tdep.c (m68k_extract_return_value): Use
3904 pointer_result_regnum.
3905 (m68k_store_return_value): Likewise.
3906 (m68k_reg_struct_return_p): Handle vectors and arrays.
3907 (m68k_return_value): Handle arrays.
3908 (m68k_svr4_return_value): Fix single-element aggregate handling.
3909 Handle long double. Adjust for embedded ABI.
3910 (m68k_svr4_init_abi): Set pointer_result_regnum.
3911 (m68k_embedded_init_abi): New function.
3912 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
3913 (m68k_osabi_sniffer): New function.
3914 (_initialize_m68k_tdep): Register osabi sniffer.
3915 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
3916 member.
3917
33f4dd48
SM
39182020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3919
3920 * xml-support.c (xml_fetch_content_from_file): Replace xfree
3921 with gdb::unique_xmalloc_ptr<char>.
3922
8400a90d
SM
39232020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3924
3925 * xml-support.h (xml_fetch_another): Change type to be a
3926 function_view.
3927 (xml_process_xincludes): Remove baton parameter.
3928 (xml_fetch_content_from_file): Change baton parameter to
3929 dirname.
3930 * xml-support.c (struct xinclude_parsing_data)
3931 <xinclude_parsing_data>: Remove baton parameter.
3932 <fetcher_baton>: Remove.
3933 (xinclude_start_include): Adjust.
3934 (xml_process_xincludes): Adjust.
3935 (xml_fetch_content_from_file): Replace baton parameter with
3936 dirname.
3937 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
3938 (xml_init_syscalls_info): Use a lambda.
3939 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
3940 (file_read_description_xml): Use a lambda.
3941 (fetch_available_features_from_target): Change baton parameter
3942 to target_ops.
3943 (target_read_description_xml): Use a lambda.
3944 (target_fetch_description_xml): Use a lambda.
3945 (string_read_description_xml): Update.
3946
04f5bab2
SM
39472020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3948
3949 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
3950 uses with type::endianity_is_not_default.
3951
db558e34
SM
39522020-09-14 Simon Marchi <simon.marchi@efficios.com>
3953
3954 * gdbtypes.h (struct type) <endianity_is_not_default,
3955 set_endianity_is_not_default>: New methods.
3956 (TYPE_ENDIANITY_NOT_DEFAULT): Use
3957 type::endianity_is_not_default, change all write call sites to
3958 use type::set_endianity_is_not_default.
3959
22c4c60c
SM
39602020-09-14 Simon Marchi <simon.marchi@efficios.com>
3961
3962 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
3963 uses with type::is_fixed_instance.
3964
9cdd0d12
SM
39652020-09-14 Simon Marchi <simon.marchi@efficios.com>
3966
3967 * gdbtypes.h (struct type) <is_fixed_instance,
3968 set_is_fixed_instance>: New methods.
3969 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
3970 write call sites to use type::set_is_fixed_instance.
3971
0becda7a
SM
39722020-09-14 Simon Marchi <simon.marchi@efficios.com>
3973
3974 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
3975 uses with type::is_gnu_ifunc.
3976
03cc7249
SM
39772020-09-14 Simon Marchi <simon.marchi@efficios.com>
3978
3979 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
3980 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
3981 use type::set_is_gnu_ifunc.
3982
3f46044c
SM
39832020-09-14 Simon Marchi <simon.marchi@efficios.com>
3984
3985 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
3986 uses with type::stub_is_supported.
3987
9baccff6
SM
39882020-09-14 Simon Marchi <simon.marchi@efficios.com>
3989
3990 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
3991 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
3992 use type::set_stub_is_supported.
3993
bd63c870
SM
39942020-09-14 Simon Marchi <simon.marchi@efficios.com>
3995
3996 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
3997 uses with type::is_vector.
3998
2062087b
SM
39992020-09-14 Simon Marchi <simon.marchi@efficios.com>
4000
4001 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
4002 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
4003 use type::set_is_vector.
4004
a409645d
SM
40052020-09-14 Simon Marchi <simon.marchi@efficios.com>
4006
4007 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
4008 uses with type::has_varargs.
4009
1d6286ed
SM
40102020-09-14 Simon Marchi <simon.marchi@efficios.com>
4011
4012 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
4013 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
4014 use type::set_has_varargs.
4015
7f9f399b
SM
40162020-09-14 Simon Marchi <simon.marchi@efficios.com>
4017
4018 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
4019 uses with type::is_prototyped.
4020
27e69b7a
SM
40212020-09-14 Simon Marchi <simon.marchi@efficios.com>
4022
4023 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
4024 New methods.
4025 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
4026 call sites to use type::set_is_prototyped.
4027
d2183968
SM
40282020-09-14 Simon Marchi <simon.marchi@efficios.com>
4029
4030 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
4031 uses with type::target_is_stub.
4032
8f53807e
SM
40332020-09-14 Simon Marchi <simon.marchi@efficios.com>
4034
4035 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
4036 New methods.
4037 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
4038 sites to use type::set_target_is_stub.
4039
e46d3488
SM
40402020-09-14 Simon Marchi <simon.marchi@efficios.com>
4041
4042 * gdbtypes.h (TYPE_STUB): Remove, replace all
4043 uses with type::is_stub.
4044
b4b73759
SM
40452020-09-14 Simon Marchi <simon.marchi@efficios.com>
4046
4047 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
4048 (TYPE_STUB): Use type::is_stub, change all write call sites to
4049 use type::set_is_stub.
4050
20ce4123
SM
40512020-09-14 Simon Marchi <simon.marchi@efficios.com>
4052
4053 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
4054 type::has_no_signedness.
4055
15152a54
SM
40562020-09-14 Simon Marchi <simon.marchi@efficios.com>
4057
4058 * gdbtypes.h (struct type) <has_no_signedness,
4059 set_has_no_signedness>: New methods.
4060 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
4061 call sites to use type::set_has_no_signedness.
4062
c6d940a9
SM
40632020-09-14 Simon Marchi <simon.marchi@efficios.com>
4064
4065 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
4066 type::is_unsigned.
4067
653223d3
SM
40682020-09-14 Simon Marchi <simon.marchi@efficios.com>
4069
4070 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
4071 methods.
4072 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
4073 sites to use type::set_is_unsigned.
4074
55ea94da 40752020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 4076 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 4077
e851246a
SM
4078 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
4079 pointer and stack frame offset when unwinding.
55ea94da 4080
6791b117
PA
40812020-09-13 Pedro Alves <pedro@palves.net>
4082
4083 * NEWS: Document "-break-insert --qualified".
4084 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
4085
77f2120b
PA
40862020-09-13 Pedro Alves <pedro@palves.net>
4087
4088 * linespec.c (classify_mtype, compare_msyms): Delete.
4089 (search_minsyms_for_name): Remove classification logic. Instead
4090 filter out trampoline symbols if we also found an external
4091 function of the same name.
4092
ed6a896c
JB
40932020-09-13 Joel Brobecker <brobecker@adacore.com>
4094
4095 * NEWS: Create a new section for the next release branch.
4096 Rename the section of the current branch, now that it has
4097 been cut.
4098
32aea73e
JB
40992020-09-13 Joel Brobecker <brobecker@adacore.com>
4100
4101 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
4102 * version.in: Bump version to 11.0.50.DATE-git.
4103
8087c3fa
JB
41042020-09-12 Joel Brobecker <brobecker@adacore.com>
4105
4106 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
4107
2a67f09d
FW
41082020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
4109 Felix Willgerodt <Felix.Willgerodt@intel.com>
4110
4111 * gdbarch.sh: Added bfloat16 type.
4112 * gdbarch.c: Regenerated.
4113 * gdbarch.h: Regenerated.
4114 * gdbtypes.c (floatformats_bfloat16): New struct.
4115 (gdbtypes_post_init): Add builtin_bfloat16.
4116 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
4117 (floatformats_bfloat16): New struct.
4118 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
4119 (i386_ymm_type): Add field "v16_bfloat16"
4120 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
4121 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
4122 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
4123 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
4124 * features/i386/64bit-avx512.xml: Add bfloat16 type.
4125 * features/i386/64bit-avx512.c: Regenerated.
4126 * features/i386/64bit-sse.xml: Add bfloat16 type.
4127 * features/i386/64bit-sse.c: Regenerated.
4128
1347d111
FW
41292020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
4130
4131 * i386-tdep.c (i386_zmm_type): Fix field names.
4132 (i386_ymm_type): Fix field names.
4133
7a4e8e7d
TBA
41342020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4135
4136 * breakpoint.c: Fix typo in the help message of the
4137 "set breakpoint condition-evaluation" command.
4138
cf4ac4be
KR
41392020-09-10 Kamil Rytarowski <n54@gmx.com>
4140
4141 * nbsd-nat.c: Include "nat/netbsd-nat.h".
4142 * (nbsd_nat_target::pid_to_exec_file)
4143 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
4144 (nbsd_nat_target::post_startup_inferior)
4145 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
4146 (nbsd_add_threads): Switch local code to common gdb/nat functions.
4147 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
4148 * (nbsd_thread_lister): Remove.
4149
f404573e
KR
41502020-09-10 Kamil Rytarowski <n54@gmx.com>
4151
4152 * fork-inferior.c (startup_inferior): Avoid double free.
4153
1ccb2c17
KR
41542020-09-10 Kamil Rytarowski <n54@gmx.com>
4155
4156 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
4157 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
4158
feedfcc7
KR
41592020-09-10 Kamil Rytarowski <n54@gmx.com>
4160
4161 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
4162 * netbsd-nat.c: Include <sys/ptrace.h>.
4163 * (netbsd_nat::enable_proc_events): Add.
4164
c489f8c6
KR
41652020-09-10 Kamil Rytarowski <n54@gmx.com>
4166
4167 * netbsd-nat.h: Include "gdbsupport/function-view.h".
4168 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4169 (netbsd_nat::for_each_thread): Add.
4170 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
4171 "gdbsupport/common-debug.h".
4172 * (netbsd_nat::netbsd_thread_lister)
4173 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4174 (netbsd_nat::for_each_thread): Add.
4175
330662f6
KR
41762020-09-10 Kamil Rytarowski <n54@gmx.com>
4177
4178 * netbsd-nat.h: Include <unistd.h>.
4179 * (netbsd_nat::pid_to_exec_file): Add.
4180 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
4181 * (netbsd_nat::pid_to_exec_file) Add.
4182
70b67307
KR
41832020-09-10 Kamil Rytarowski <n54@gmx.com>
4184
4185 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
4186
99cf6da6
KR
41872020-09-10 Kamil Rytarowski <n54@gmx.com>
4188
4189 * netbsd-nat.h: New file.
4190 * netbsd-nat.c: Likewise.
4191
1b788fb6
TT
41922020-09-09 Tom Tromey <tromey@adacore.com>
4193
4194 * ada-lang.c (remove_extra_symbols): Do not increment when
4195 removing an element
4196
03b0a45f
TT
41972020-09-08 Tom Tromey <tromey@adacore.com>
4198
4199 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
4200
3cae4447
TT
42012020-09-08 Tom Tromey <tromey@adacore.com>
4202
4203 PR win32/25302:
4204 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
4205 (gdb_bfd_init_data): New function.
4206 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
4207
7f08fd51
TBA
42082020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4209
4210 * infrun.c (fetch_inferior_event): Use
4211 `switch_to_target_no_thread` to switch the target.
4212
3e6ff933
TT
42132020-09-06 Tom Tromey <tom@tromey.com>
4214
4215 * symfile.h (dwarf2_free_objfile): Don't declare.
4216
e56798df
AKS
42172020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4218
4219 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
4220 to match 16 byte real/complex type generated by Flang compiler.
4221
8f5c6526
TV
42222020-09-03 Tom de Vries <tdevries@suse.de>
4223
4224 PR breakpoint/26546
4225 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
4226 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
4227
c5065df0
SM
42282020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
4229
4230 * maint.c (index_digits): New function.
4231 (struct maint_print_section_data): Remove.
4232 (print_bfd_section_info): Remove print_data parameter, add arg
4233 and index_digits.
4234 (print_objfile_section_info): Likewise.
4235 (print_bfd_section_info_maybe_relocated): Likewise (plus
4236 objfile).
4237 (maintenance_info_sections): Adjust calls.
4238
02c6f3f1
TT
42392020-09-02 Tom Tromey <tromey@adacore.com>
4240
4241 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
4242 for null pointers.
4243 (ada_varobj_adjust_for_child_access): Special-case null pointers.
4244
ef5e5b0b
SM
42452020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
4246
4247 * bcache.h (struct bcache) <insert>: Change type of `added` to
4248 pointer to bool.
4249 * bcache.c (bcache::insert): Likewise.
4250 * gdbtypes.c (check_types_worklist): Adjust.
4251 * psymtab.c (add_psymbol_to_bcache): Adjust.
4252
973695d6
KB
42532020-08-31 Kevin Buettner <kevinb@redhat.com>
4254
4255 * corelow.c (unordered_set): Include.
4256 (class core_target): Add field 'm_core_unavailable_mappings'.
4257 (core_target::build_file_mappings): Print only one warning
4258 per inaccessible file. Add unavailable/broken mappings
4259 to m_core_unavailable_mappings.
4260 (core_target::xfer_partial): Call...
4261 (core_target::xfer_memory_via_mappings): New method.
4262
264fc0e2
SM
42632020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4264
4265 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
4266 type to bool.
4267
2de01bdb
SM
42682020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4269
4270 * dwarf2/read.c (struct field_info): Fix indentation.
4271
f3bd50f1
SM
42722020-08-31 Simon Marchi <simon.marchi@efficios.com>
4273
4274 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
4275 ordering in comment.
4276 * frame.c (frame_id_eq): Fix indentation.
4277
22b9b4b0
SL
42782020-08-31 Scott Linder <scott@scottlinder.com>
4279 Simon Marchi <simon.marchi@efficios.com>
4280
4281 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
4282 inline frame ids in outer frame.
4283
84154d16
SM
42842020-08-31 Simon Marchi <simon.marchi@efficios.com>
4285
4286 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
4287 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
4288 (outer_frame_id): Use FID_STACK_OUTER instead of
4289 FID_STACK_INVALID.
4290 (frame_id_p): Don't check for outer_frame_id.
4291
8efaf6b3
SM
42922020-08-31 Simon Marchi <simon.marchi@efficios.com>
4293
4294 * frame-unwind.c (frame_unwind_got_optimized): Don't set
4295 regnum/frame in value. Call allocate_value_lazy.
4296 * frame.c (frame_unwind_register_value): Use
4297 val_print_not_saved.
4298
fe1fe7ea
SM
42992020-08-31 Simon Marchi <simon.marchi@efficios.com>
4300
4301 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
4302
f7c7700d
PA
43032020-08-29 Pedro Alves <pedro@palves.net>
4304
4305 * progspace.c (print_program_space): Use all_inferiors. Switch to
4306 the inferior before calling target_pid_to_str.
4307
e0814aae
TT
43082020-08-28 Tom Tromey <tom@tromey.com>
4309
4310 * xcoffread.c (xcoff_end_psymtab): Update comment.
4311 * dbxread.c (dbx_end_psymtab): Update comment.
4312
626d2320
TV
43132020-08-28 Tom de Vries <tdevries@suse.de>
4314
4315 PR breakpoint/26544
4316 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
4317 event_location.
4318 (create_breakpoint): Same.
4319 (base_breakpoint_decode_location): Same.
4320 (bkpt_create_sals_from_location): Same.
4321 (bkpt_decode_location): Same.
4322 (bkpt_probe_create_sals_from_location): Same.
4323 (bkpt_probe_decode_location): Same.
4324 (tracepoint_create_sals_from_location): Same.
4325 (tracepoint_decode_location): Same.
4326 (tracepoint_probe_decode_location): Same.
4327 (strace_marker_create_sals_from_location): Same.
4328 (strace_marker_decode_location): Same.
4329 (create_sals_from_location_default): Same.
4330 (decode_location_default): Same.
4331 * breakpoint.h (struct breakpoint_ops): Same.
4332 (create_breakpoint): Same.
4333 * linespec.h (decode_line_full): Same.
4334 * linespec.c (decode_line_full): Same. Throw error if
4335 result.size () == 0.
4336
df631783
PA
43372020-08-27 Pedro Alves <pedro@palves.net>
4338
4339 PR gdb/26524
4340 * breakpoint.c (until_break_fsm) <location_breakpoint,
4341 caller_breakpoint>: Delete fields.
4342 <breakpoints>: New field.
4343 <until_break_fsm>: Adjust to save a breakpoint vector instead of
4344 two individual breakpoints.
4345 (until_break_fsm::should_stop): Loop over breakpoints in the
4346 breakpoint vector.
4347 (until_break_fsm::clean_up): Adjust to clear the breakpoints
4348 vector.
4349 (until_break_command): Handle location expanding into multiple
4350 sals.
4351
b2b38aa4
PA
43522020-08-27 Pedro Alves <pedro@palves.net>
4353
4354 PR gdb/26523
4355 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
4356 bp_until breakpoints user-specified locations. Update intro
4357 comment.
4358
b886559f
SM
43592020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
4360
4361 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
4362 gdb_bfd_sections): New.
4363 * maint.c (print_bfd_section_info): Change param type to
4364 maint_print_section_data.
4365 (print_objfile_section_info): Likewise.
4366 (print_bfd_section_info_maybe_relocated): Likewise.
4367 (maintenance_info_sections): Use gdb_bfd_sections.
4368
4c6e63bf
SV
43692020-08-25 Shahab Vahedi <shahab@synopsys.com>
4370
4371 * MAINTAINERS: Add ARC target and maintainer.
4372
8d7f0635
AK
43732020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
4374
4375 * configure.tgt: ARC support for GNU/Linux.
4376 * Makefile.in (ALL_TARGET_OBJS): Likewise.
4377 * arc-linux-tdep.c: New file.
4378 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
4379 * arc-tdep.c (arc_write_pc): Use it.
4380
fdd8731b
SV
43812020-08-25 Shahab Vahedi <shahab@synopsys.com>
4382
4383 * arc-tdep.c (arc_check_for_hardware_loop): New.
4384 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
4385
22459524
SV
43862020-08-25 Shahab Vahedi <shahab@synopsys.com>
4387
4388 * arc-tdep.h: Include "gdbarch.h".
4389
995d3a19
SV
43902020-08-25 Shahab Vahedi <shahab@synopsys.com>
4391
4392 * arch/arc.h
4393 (arc_gdbarch_features): New class to stir the selection of target XML.
4394 (arc_create_target_description): Use FEATURES to choose XML target.
4395 (arc_lookup_target_description): Use arc_create_target_description
4396 to create _new_ target descriptions or return the already created
4397 ones if the FEATURES is the same.
4398 * arch/arc.c: Implementation of prototypes described above.
4399 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
4400 (arc_gdbarch_features_init): Initialize the FEATURES struct.
4401 * arc-tdep.c (*_feature_name): Make feature names consistent.
4402 (arc_register_feature): A new struct to hold information about
4403 registers of a particular target/feature.
4404 (arc_check_tdesc_feature): Check if XML provides registers in
4405 compliance with ARC_REGISTER_FEATURE structs.
4406 (arc_update_acc_reg_names): Add aliases for r58 and r59.
4407 (determine_*_reg_feature_set): Which feature name to look for.
4408 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
4409 (mach_type_to_arc_isa): Convert from a set of binutils machine types
4410 to expected ISA enums to be used in arc_gdbarch_features structs.
4411 * features/Makefile (FEATURE_XMLFILES): Add new files.
4412 * gdb/features/arc/v1-aux.c: New file.
4413 * gdb/features/arc/v1-aux.xml: Likewise.
4414 * gdb/features/arc/v1-core.c: Likewise.
4415 * gdb/features/arc/v1-core.xml: Likewise.
4416 * gdb/features/arc/v2-aux.c: Likewise.
4417 * gdb/features/arc/v2-aux.xml: Likewise.
4418 * gdb/features/arc/v2-core.c: Likewise.
4419 * gdb/features/arc/v2-core.xml: Likewise.
4420 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
4421
3945d2d7
GM
44222020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
4423 Andrew Burgess <andrew.burgess@embecosm.com>
4424
4425 PR m2/26372
fc5d6901 4426 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
4427 an assert. Remove single element array indexing pattern as the
4428 MULTI_SUBSCRIPT support will handle this case too.
4429
2677f2d3
SM
44302020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
4431
4432 * value.h (valprint_check_validity): Move declaration from
4433 here...
4434 * valprint.h (valprint_check_validity): ... to here.
4435
c426fddb
SM
44362020-08-24 Simon Marchi <simon.marchi@efficios.com>
4437
4438 * debug.h: New file.
4439 * debug.c (debug_prefixed_vprintf): New function.
4440 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
4441 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
4442
1eb8556f
SM
44432020-08-24 Simon Marchi <simon.marchi@efficios.com>
4444
4445 * infrun.h (infrun_debug_printf_1): New function declaration.
4446 (infrun_debug_printf): New macro.
4447 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
4448 throughout.
4449 (infrun_debug_printf): New function.
4450 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
4451 (handle_jit_event): Likewise.
4452
b8fff44e
MW
44532020-08-21 Mark Wielaard <mark@klomp.org>
4454
4455 * ada-lex.l: Extend register warnings diagnostics comment for g++.
4456
d19c3068
SM
44572020-08-22 Simon Marchi <simon.marchi@efficios.com>
4458
4459 * frame.c (enum class frame_id_status): New.
4460 (struct frame_info) <this_id::p>: Change type to frame_id_status.
4461 (fprintf_frame): Update.
4462 (compute_frame_id): Set frame id status to "computing" on entry.
4463 Set it back to "not_computed" on failure and to "computed" on
4464 success.
4465 (get_frame_id): Assert the frame id is not being computed.
4466 (create_sentinel_frame): Use frame_id_status::COMPUTED.
4467 (create_new_frame): Likewise.
4468 (frame_cleanup_after_sniffer): Update assert.
4469
b70e516e
SM
44702020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4471
4472 * regcache.c (pid_ptid_regcache_map): New type.
4473 (target_ptid_regcache_map): Remove.
4474 (target_pid_ptid_regcache_map): New type.
4475 (regcaches): Change type to target_pid_ptid_regcache_map.
4476 (get_thread_arch_aspace_regcache): Update.
4477 (regcache_thread_ptid_changed): Update, handle pid-like ptid
4478 case.
4479 (regcaches_size): Update.
4480 (regcache_count): Update.
4481 (registers_changed_ptid_target_pid_test): New.
4482 (_initialize_regcache): Register new test.
4483
cdd9148a
SM
44842020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4485
4486 * regcache.c (regcache_count): New.
4487 (struct regcache_test_data): New.
4488 (regcache_test_data_up): New.
4489 (populate_regcaches_for_test): New.
4490 (regcaches_test): Remove.
4491 (get_thread_arch_aspace_regcache_test): New.
4492 (registers_changed_ptid_all_test): New.
4493 (registers_changed_ptid_target_test): New.
4494 (registers_changed_ptid_target_ptid_test): New.
4495 (regcache_thread_ptid_changed): Remove regcache_count lambda.
4496 (_initialize_regcache): Register new tests.
4497
dd125343
SM
44982020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4499
4500 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
4501 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
4502 gdbarch and aspace parameter. Use current inferior's aspace.
4503 Validate regcache's arch value.
4504 (regcaches_test): Update.
4505
3ee93972
SM
45062020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4507
4508 * regcache.c (regcaches_test): Call registers_changed.
4509
33bf4c5c
TBA
45102020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4511
4512 * infrun.c (process_event_stop_test): Fix typo "breapoint".
4513
c2fd7fae
AKS
45142020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4515
4516 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
4517 to find the end of prologue for flang compiled binaries.
4518 * arm-tdep.c (arm_skip_prologue): Likewise.
4519 * i386-tdep.c (i386_skip_prologue): Likewise.
4520 * producer.c (producer_is_llvm): New function.
4521 (producer_parsing_tests): Added new tests for clang/flang.
4522 * producer.h (producer_is_llvm): New declaration.
4523
9327494e
SM
45242020-08-18 Simon Marchi <simon.marchi@efficios.com>
4525
4526 * linux-nat.c (linux_nat_debug_printf): New function.
4527 (linux_nat_debug_printf_1): New macro. Use throughout the file.
4528
d138725a
AM
45292020-08-18 Aaron Merey <amerey@redhat.com>
4530
4531 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
4532 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
4533 (CLIBS): Add DEBUGINFOD_LIBS.
4534
f9b11e6b
ST
45352020-08-17 Sergei Trofimovich <siarheit@google.com>
4536
4537 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
4538 'gdbarch_num_regs'.
4539
3ae7ab99
TT
45402020-08-17 Tom Tromey <tromey@adacore.com>
4541
4542 * ada-varobj.c (ada_varobj_decode_var): Handle case where
4543 ada_get_decoded_value returns NULL.
4544
b017825f
TT
45452020-08-17 Tom Tromey <tromey@adacore.com>
4546
4547 * python/py-inferior.c (infpy_search_memory): Use
4548 gdb_py_object_from_ulongest.
4549 * python/py-infevents.c (create_inferior_call_event_object)
4550 (create_memory_changed_event_object): Use
4551 gdb_py_object_from_ulongest.
4552 * python/py-linetable.c (ltpy_entry_get_pc): Use
4553 gdb_py_object_from_ulongest.
4554
7635cf79
SM
45552020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
4556
4557 * loc.c (class symbol_needs_eval_context): Fix indentation.
4558
f54be24b
SM
45592020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
4560
4561 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
4562 bool.
4563
53d5a2a5
TV
45642020-08-17 Tom de Vries <tdevries@suse.de>
4565
4566 PR gdb/26393
4567 * gdbtypes.c (dump_dynamic_prop): New function.
4568 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
4569
547ce8f0
TV
45702020-08-15 Tom de Vries <tdevries@suse.de>
4571
4572 PR backtrace/26390
4573 * stack.c (print_frame_args): Temporarily set the selected
4574 frame to FRAME while printing the frame's arguments.
4575
6ea815e7
PFC
45762020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4577
4578 PR breakpoints/26385
4579 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
4580 Always clear watchpoint with PTRACE_SET_DEBUGREG.
4581
6e562fa3
PFC
45822020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4583
4584 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
4585 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
4586 and >= to check return value instead of == -1 and != -1.
4587
d369b608
SM
45882020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
4589
4590 * utils.h (class gdb_argv) <as_array_view>: New method.
4591 * utils.c (gdb_argv_as_array_view_test): New.
4592 (_initialize_utils): Register selftest.
4593 * maint.c (maintenance_selftest): Use the new method.
4594
b31488a3
KR
45952020-08-13 Kamil Rytarowski <n54@gmx.com>
4596
4597 * target.h (supports_dumpcore, dumpcore): New
4598 function declarations.
4599 * target.c (supports_dumpcore, dumpcore): New
4600 functions.
4601 * target-delegates.c: Rebuild.
4602 * gcore.c (gcore_command): Use target_supports_dumpcore ()
4603 and target_dumpcore ().
4604
002a3166
AM
46052020-08-13 Aaron Merey <amerey@redhat.com>
4606
4607 * debuginfod-support.c: Replace global variables with user_data.
4608
ece5bc8a
SM
46092020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
4610
4611 * maint.c (maintenance_selftest): Split args and pass array_view
4612 to run_tests.
4613
6d8a0a5e
LM
46142020-08-12 Luis Machado <luis.machado@linaro.org>
4615
4616 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
4617 type's length.
4618 Use %s and pulongest to print the length.
4619
7cf663a9
PA
46202020-08-12 Pedro Alves <palves@redhat.com>
4621
4622 * NEWS: Move "Multi-target debugging support" item to the
4623 "Changes since GDB 9" section.
4624
27c7b875
PA
46252020-08-12 Pedro Alves <palves@redhat.com>
4626
4627 PR gdb/26336
4628 * progspace.c (program_space::remove_objfile): Invalidate the
4629 frame cache.
4630
1796a2a1
TV
46312020-08-11 Tom de Vries <tdevries@suse.de>
4632
4633 * MAINTAINERS: Mark ms1 as deleted.
4634
f8e3fe0d
LM
46352020-08-10 Luis Machado <luis.machado@linaro.org>
4636
4637 PR gdb/26310
4638
4639 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
4640 act accordingly.
4641 (aarch64_analyze_prologue_test): Add more unit tests to exercise
4642 movz/str/stur/stp skipping behavior.
4643
cc308722
LM
46442020-08-10 Luis Machado <luis.machado@linaro.org>
4645
4646 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
4647 struct user_sve_header instead of struct sve_context.
4648
041d9819
SM
46492020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
4650
4651 * read.h (dwarf2_fetch_die_loc_sect_off,
4652 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
4653 `void *` parameter with function_view.
4654 * read.c (dwarf2_fetch_die_loc_sect_off,
4655 dwarf2_fetch_die_loc_cu_off): Likewise.
4656 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
4657 (per_cu_dwarf_call): Adjust.
4658 (get_frame_address_in_block_wrapper): Remove.
4659 (indirect_synthetic_pointer): Adjust.
4660 (get_ax_pc): Remove.
4661 (dwarf2_compile_expr_to_ax): Adjust.
4662
38f8aa06
TV
46632020-08-08 Tom de Vries <tdevries@suse.de>
4664
4665 PR build/26344
4666 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
4667 constructor.
4668 * regcache.c (get_thread_arch_aspace_regcache): Same.
4669
a52b3ae2
TT
46702020-08-07 Tom Tromey <tromey@adacore.com>
4671
4672 * ravenscar-thread.c
4673 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
4674 New method.
4675 (ravenscar_thread_target::wait): Check
4676 runtime_initialized.
4677 (ravenscar_thread_target::prepare_to_store)
4678 (ravenscar_thread_target::stopped_by_sw_breakpoint)
4679 (ravenscar_thread_target::stopped_by_hw_breakpoint)
4680 (ravenscar_thread_target::stopped_by_watchpoint)
4681 (ravenscar_thread_target::stopped_data_address)
4682 (ravenscar_thread_target::core_of_thread): Use
4683 scoped_restore_current_thread and
4684 set_base_thread_from_ravenscar_task.
4685
0e29517d
TT
46862020-08-07 Tom Tromey <tromey@adacore.com>
4687
4688 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
4689
592f9bd7
TT
46902020-08-07 Tom Tromey <tromey@adacore.com>
4691
4692 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
4693 update_inferior_ptid before update_thread_list.
4694 (temporarily_change_regcache_ptid): New class.
4695 (ravenscar_thread_target::fetch_registers)
4696 (ravenscar_thread_target::store_registers)
4697 (ravenscar_thread_target::prepare_to_store): Use base thread when
4698 forwarding operation.
4699
39e2018a
TT
47002020-08-07 Tom Tromey <tromey@adacore.com>
4701
4702 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
4703 "is_pid" case.
4704
2080266b
TT
47052020-08-07 Tom Tromey <tromey@adacore.com>
4706
4707 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
4708 New methods.
4709 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
4710 first.
4711 (ravenscar_thread_target::add_thread): Rename from
4712 ravenscar_add_thread.
4713 (ravenscar_thread_target::update_thread_list): Use a lambda.
4714 (ravenscar_thread_target::xfer_partial): New method.
4715
78c02f21
TT
47162020-08-07 Tom Tromey <tromey@adacore.com>
4717
4718 * ada-lang.h (ada_task_list_iterator_ftype): Now a
4719 gdb::function_view.
4720 (iterate_over_live_ada_tasks): Change type of argument.
4721 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
4722 of argument.
4723
d5d833af
TT
47242020-08-07 Tom Tromey <tromey@adacore.com>
4725
4726 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
4727 Remove.
4728 (ravenscar_thread_target::extra_thread_info): Remove.
4729 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
4730 defer to target beneath for non-Ravenscar threads.
4731
a8ac85bb
TT
47322020-08-07 Tom Tromey <tromey@adacore.com>
4733
4734 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
4735 get_base_thread_from_ravenscar_task>: Now methods.
4736 <m_cpu_map>: New member.
4737 (ravenscar_thread_target::get_thread_base_cpu): Rename from
4738 ravenscar_get_thread_base_cpu. Check m_cpu_map.
4739 (ravenscar_thread_target::task_is_currently_active): Update.
4740 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
4741 Now a method.
4742 (ravenscar_thread_target::add_active_thread): Put initial thread
4743 into the m_cpu_map.
4744
550ab58d
TT
47452020-08-07 Tom Tromey <tromey@adacore.com>
4746
4747 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
4748 event_ptid.
4749
e9546579
TT
47502020-08-07 Tom Tromey <tromey@adacore.com>
4751
4752 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
4753 runtime_initialized.
4754
3d4470e5
TT
47552020-08-07 Tom Tromey <tromey@adacore.com>
4756
4757 * ravenscar-thread.c (ravenscar_thread_target): Don't call
4758 add_active_thread.
4759 (ravenscar_thread_target::add_active_thread): Now public.
4760 (ravenscar_inferior_created): Call add_active_thread after pushing
4761 the target.
4762
888bdb2b
SM
47632020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
4764
4765 * regcache.c (ptid_regcache_map): New type.
4766 (target_ptid_regcache_map): New type.
4767 (regcaches): Change type to target_ptid_regcache_map.
4768 (get_thread_arch_aspace_regcache): Update to regcaches' new
4769 type.
4770 (regcache_thread_ptid_changed): Likewise.
4771 (registers_changed_ptid): Likewise.
4772 (regcaches_size): Likewise.
4773 (regcaches_test): Update.
4774 (regcache_thread_ptid_changed): Update.
4775 * regcache.h (regcache_up): New type.
4776 * gdbsupport/ptid.h (hash_ptid): New struct.
4777
b161a60d
SM
47782020-08-07 Simon Marchi <simon.marchi@efficios.com>
4779
4780 * observable.h (thread_ptid_changed): Add parameter
4781 `process_stratum_target *`.
4782 * infrun.c (infrun_thread_ptid_changed): Add parameter
4783 `process_stratum_target *` and use it.
4784 (selftests): New namespace.
4785 (infrun_thread_ptid_changed): New function.
4786 (_initialize_infrun): Register selftest.
4787 * regcache.c (regcache_thread_ptid_changed): Add parameter
4788 `process_stratum_target *` and use it.
4789 (regcache_thread_ptid_changed): New function.
4790 (_initialize_regcache): Register selftest.
4791 * thread.c (thread_change_ptid): Pass target to
4792 thread_ptid_changed observable.
4793
d2854d8d
CT
47942020-08-06 Caroline Tice <cmtice@google.com>
4795
fe4c3d43
SM
4796 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
4797 (struct dwp_sections): Update field comments. Add loclists and
4798 rnglists fields.
4799 (struct virtual_v2_dwo_sections): Rename struct to
4800 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
4801 size & offset fields for loclists and rnglists.
4802 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
4803 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
4804 skipping dummy type units.
4805 (create_dwp_hash_table): Update the large comment above the function to
4806 discuss Version 5 DWP files as well, with references. Update all the
4807 version checks in the function to check for version 5 as well. Add new
4808 section at the end to create dwp hash table for version 5.
4809 (create_dwp_v2_section): Rename function to
4810 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
4811 Add V5 to error message text.
4812 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
4813 into calls to create_dwp_v2_or_v5_section.
4814 (create_dwo_unit_in_dwp_v5): New function.
4815 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
4816 check for version2; add else clause to handle version 5.
4817 (open_and_init_dwo_file): Add code to check dwarf version & only call
4818 create_debug_types_hash_table (with sections.types) if version is not 5;
4819 else call create_debug_type_hash_table, with sections.info.
4820 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
4821 version 5.
4822 (dwarf2_locate_v5_dwp_sections): New function.
4823 (open_and_init_dwp_file): Add else-if clause for version 5 to call
4824 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 4825
159ed7d9
SM
48262020-08-06 Simon Marchi <simon.marchi@efficios.com>
4827
4828 * regcache.h (class regcache): Remove friend
4829 registers_changed_ptid.
4830 <regcache_thread_ptid_changed>: Remove.
4831 <regcaches>: Remove.
4832 * regcache.c (regcache::regcaches): Rename to...
4833 (regcaches): ... this. Make static.
4834 (get_thread_arch_aspace_regcache): Update.
4835 (regcache::regcache_thread_ptid_changed): Rename to...
4836 (regcache_thread_ptid_changed): ... this. Update.
4837 (class regcache_access): Remove.
4838 (regcaches_test): Update.
4839 (_initialize_regcache): Update.
4840 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
4841 <forward_list>.
4842
174981ae
SM
48432020-08-06 Simon Marchi <simon.marchi@efficios.com>
4844
4845 * regcache.h (class regcache) <current_regcache>: Rename to...
4846 <regcaches>: ... this. Move doc here.
4847 * regcache.c (regcache::current_regcache) Rename to...
4848 (regcache::regcaches): ... this. Move doc to header.
4849 (get_thread_arch_aspace_regcache): Update.
4850 (regcache::regcache_thread_ptid_changed): Update.
4851 (registers_changed_ptid): Update.
4852 (class regcache_access) <current_regcache_size>: Rename to...
4853 <regcaches_size>: ... this.
4854 (current_regcache_test): Rename to...
4855 (regcaches_test): ... this.
4856 (_initialize_regcache): Update.
4857
ed908db6
VC
48582020-08-06 Victor Collod <vcollod@nvidia.com>
4859
4860 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
4861
b5582ab7
KB
48622020-08-05 Kevin Buettner <kevinb@redhat.com>
4863
4864 * corelow.c (core_target::build_file_mappings): Don't output
4865 null pathname in warning.
4866
ea946b86
SM
48672020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
4868
4869 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
4870 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
4871 gdb.dwarf2/dw2-single-line-discriminators.exp,
4872 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
4873
57d02173
TT
48742020-08-05 Tom Tromey <tromey@adacore.com>
4875
4876 PR rust/26197:
4877 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
4878 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
4879 Fix off-by-one and type size errors in ordinary case.
4880
5555c86d
TV
48812020-08-05 Tom de Vries <tdevries@suse.de>
4882
4883 * gdbtypes.c (type_not_allocated, type_not_associated): Use
4884 "prop->const_val () == 0" instead of "prop->const_val () != 0".
4885
97916bfe
SM
48862020-08-04 Simon Marchi <simon.marchi@efficios.com>
4887
4888 * frame.h (frame_id_p): Return bool.
4889 (frame_id_artificial_p): Return bool.
4890 (frame_id_eq): Return bool.
4891 (has_stack_frames): Return bool.
4892 (get_selected_frame): Fix typo in comment.
4893 (get_frame_pc_if_available): Return bool.
4894 (get_frame_address_in_block_if_available): Return bool.
4895 (get_frame_func_if_available): Return bool.
4896 (read_frame_register_unsigned): Return bool.
4897 (get_frame_register_bytes): Return bool.
4898 (safe_frame_unwind_memory): Return bool.
4899 (deprecated_frame_register_read): Return bool.
4900 (frame_unwinder_is): Return bool.
4901 * frame.c (struct frame_info) <prev_arch::p>: Change type to
4902 bool.
4903 <this_id::p>: Likewise.
4904 <prev_p>: Likewise.
4905 (frame_stash_add): Return bool.
4906 (get_frame_id): Use bool.
4907 (frame_id_build_special) Use bool.
4908 (frame_id_build_unavailable_stack): Use bool.
4909 (frame_id_build): Use bool.
4910 (frame_id_p): Return bool, use true/false instead of 1/0.
4911 (frame_id_artificial_p): Likewise.
4912 (frame_id_eq): Likewise.
4913 (frame_id_inner): Likewise.
4914 (get_frame_func_if_available): Likewise.
4915 (read_frame_register_unsigned): Likewise.
4916 (deprecated_frame_register_read): Likewise.
4917 (get_frame_register_bytes): Likewise.
4918 (has_stack_frames): Likewise.
4919 (inside_main_func): Likewise.
4920 (inside_entry_func): Likewise.
4921 (get_frame_pc_if_available): Likewise.
4922 (get_frame_address_in_block_if_available): Likewise.
4923 (frame_unwinder_is): Likewise.
4924 (safe_frame_unwind_memory): Likewise.
4925 (frame_unwind_arch): Likewise.
4926
fedfee88
SM
49272020-08-04 Simon Marchi <simon.marchi@efficios.com>
4928
4929 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
4930 type to cached_copy_status.
4931 (fprintf_frame): Adjust.
4932 (get_frame_func_if_available): Adjust.
4933 (frame_cleanup_after_sniffer): Adjust.
4934
6cfa9b59
MW
49352020-08-04 Mark Wielaard <mark@klomp.org>
4936
4937 * MAINTAINERS (Write After Approval): Update email address.
4938
66d6346b
SM
49392020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4940
4941 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
4942 dynamic_prop::const_val.
4943
8a6d5e35
SM
49442020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4945
4946 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
4947 dynamic_prop::kind.
4948
51d6067d
SM
49492020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4950
4951 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
4952
b26e2ae7
JM
49532020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
4954
4955 * configure.tgt: Set gdb_sim for bpf-*-* targets.
4956
39791af2
JM
49572020-08-04 Weimin Pan <weimin.pan@oracle.com>
4958 Jose E. Marchesi <jose.marchesi@oracle.com>
4959
4960 * configure.tgt: Add entry for bpf-*-*.
4961 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
4962 (ALLDEPFILES): Add bpf-tdep.c.
4963 * bpf-tdep.c: New file.
4964 * MAINTAINERS: Add bpf target and maintainer.
4965 * NEWS: Mention the support for the new target.
4966
521894aa
TV
49672020-08-04 Tom de Vries <tdevries@suse.de>
4968
4969 PR symtab/23270
4970 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
4971 Error.
4972
5d6356e9
JB
49732020-08-03 John Baldwin <jhb@FreeBSD.org>
4974
4975 * syscalls/freebsd.xml: Regenerate.
4976
0cf82b81
JB
49772020-08-03 John Baldwin <jhb@FreeBSD.org>
4978
4979 * syscalls/update-freebsd.sh: Fix usage and year range.
4980
8f34b746
TV
49812020-08-03 Tom de Vries <tdevries@suse.de>
4982
4983 PR symtab/26333
4984 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
4985 DW_LNE_lo_user/DW_LNE_hi_user range.
4986
5e500d33
SM
49872020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
4988
4989 PR ada/26318
4990 * ada-lang.c (ada_modulus): Return 0 if property is not of const
4991 kind.
4992
78319c15
TBA
49932020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4994
4995 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
4996
4c55e970
TBA
49972020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4998
4999 * breakpoint.c (set_breakpoint_condition): Update the condition
5000 expressions after checking that the input condition string parses
5001 successfully and does not contain junk at the end.
5002
1e620590
TBA
50032020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5004
5005 * breakpoint.c (set_breakpoint_condition): Update the
5006 condition string after parsing the new condition successfully.
5007
c8693053
RO
50082020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5009
5010 * proc-api.c (_STRUCTURED_PROC): Don't define.
5011 * proc-events.c: Likewise.
5012 * proc-flags.c: Likewise.
5013 * proc-why.c: Likewise.
5014 * procfs.c: Likewise.
5015
5016 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
5017 * configure, config.in: Regenerate.
5018
5a99adb8
TV
50192020-07-30 Tom de Vries <tdevries@suse.de>
5020
5021 PR build/26320
5022 * ui-style.h (struct ui_file_style::color): Wrap m_value and
5023 m_red/m_green/m_blue in a union.
5024
8ba83e91
TV
50252020-07-29 Tom de Vries <tdevries@suse.de>
5026
5027 PR tdep/26280
5028 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
5029
f75a0693
AB
50302020-07-28 Tom Tromey <tromey@adacore.com>
5031
5032 PR symtab/26270:
5033 * symtab.h (find_pc_partial_function_sym): Declare.
5034 * cli/cli-cmds.c (disassemble_command): Use
5035 find_pc_partial_function_sym. Check asm_demangle.
5036 * blockframe.c (cache_pc_function_sym): New global.
5037 (cache_pc_function_name): Remove.
5038 (clear_pc_function_cache): Update.
5039 (find_pc_partial_function_sym): New function, from
5040 find_pc_partial_function.
5041 (find_pc_partial_function): Rewrite using
5042 find_pc_partial_function_sym.
5043
16f3242c
TT
50442020-07-28 Tom Tromey <tromey@adacore.com>
5045
5046 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
5047 help. Add usage.
5048
4888741a
TT
50492020-07-28 Tom Tromey <tromey@adacore.com>
5050
5051 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
5052 <DW_OP_GNU_variable_value>: Cast to address type.
5053
4d46f402
KR
50542020-07-28 Kamil Rytarowski <n54@gmx.com>
5055
5056 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
5057 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
5058 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
5059 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
5060 (nbsd_get_siginfo_type): New.
5061 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
5062 (_initialize_nbsd_tdep): New.
5063
d70f978b
L
50642020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5065
5066 PR binutils/26301
5067 * configure: Regenerated.
5068
377170fa
L
50692020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5070
5071 PR binutils/26301
5072 * configure: Regenerated.
5073
43d5901d
AB
50742020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5075
5076 * python/py-frame.c: Remove 'user-regs.h' include.
5077 (frapy_read_register): Rewrite to make use of
5078 gdbpy_parse_register_id.
5079 * python/py-registers.c (gdbpy_parse_register_id): New function,
5080 moved here from python/py-unwind.c. Updated the return type, and
5081 also accepts register descriptor objects.
5082 * python/py-unwind.c: Remove 'user-regs.h' include.
5083 (pyuw_parse_register_id): Moved to python/py-registers.c.
5084 (unwind_infopy_add_saved_register): Update to use
5085 gdbpy_parse_register_id.
5086 (pending_framepy_read_register): Likewise.
5087 * python/python-internal.h (gdbpy_parse_register_id): Declare.
5088
14fa8fb3
AB
50892020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5090
5091 * python/py-registers.c: Add 'user-regs.h' include.
5092 (register_descriptor_iter_find): New function.
5093 (register_descriptor_iterator_object_methods): New static global
5094 methods array.
5095 (register_descriptor_iterator_object_type): Add pointer to methods
5096 array.
5097
ddce1758
JB
50982020-07-27 John Baldwin <jhb@FreeBSD.org>
5099
5100 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
5101 for all architectures on FreeBSD 11.3 and later.
5102
a4089f52
TT
51032020-07-27 Tom Tromey <tromey@adacore.com>
5104
5105 * gcore.h (load_corefile): Don't declare.
5106
95420d30
TV
51072020-07-27 Tom de Vries <tdevries@suse.de>
5108
5109 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
5110 * config.in: Regenerate.
5111 * configure: Regenerate.
5112
05a6b8c2
EZ
51132020-07-26 Eli Zaretskii <eliz@gnu.org>
5114
5115 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
5116 ws2tcpip.h. When checking whether socklen_t type is defined, use
5117 ws2tcpip.h if it is available and sys/socket.h isn't.
5118 * configure: Regenerate.
5119 * config.in: Regenerate.
5120
e79eb02f
AB
51212020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
5122
5123 PR fortran/23051
5124 PR fortran/26139
5125 * valops.c (value_ind): Pass address to
5126 readjust_indirect_value_type.
5127 * value.c (readjust_indirect_value_type): Make parameter
5128 non-const, and add extra address parameter. Resolve original type
5129 before using it.
5130 * value.h (readjust_indirect_value_type): Update function
5131 signature and comment.
5132
876518dd
TV
51332020-07-25 Tom de Vries <tdevries@suse.de>
5134
5135 PR symtab/26243
5136 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
5137 entries.
5138
f6720b1c
AM
51392020-07-24 Aaron Merey <amerey@redhat.com>
5140
5141 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
5142 * configure: Rebuild.
5143
513487e1
KB
51442020-07-23 Kevin Buettner <kevinb@redhat.com>
5145
5146 PR corefiles/26294
5147 * corelow.c (_initialize_corelow): Add period to help text
5148 for "maintenance print core-file-backed-mappings".
5149
e7bc9db8
PA
51502020-07-23 Pedro Alves <pedro@palves.net>
5151
5152 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
5153 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
5154 meanwhile.
5155 * frame.c (frame_cache_generation, get_frame_cache_generation):
5156 New.
5157 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
5158 (get_prev_frame_if_no_cycle): On exception, don't touch
5159 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
5160 * frame.h (get_frame_cache_generation): Declare.
5161
90fcc466
TV
51622020-07-23 Tom de Vries <tdevries@suse.de>
5163
5164 PR tui/26282
5165 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
5166 New default constructor.
5167
78344df7
AB
51682020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
5169
5170 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
5171 exclude non-statement entries.
5172
b089853a
KB
51732020-07-22 Kevin Buettner <kevinb@redhat.com>
5174
5175 * NEWS (New commands): Mention new command
5176 "maintenance print core-file-backed-mappings".
5177
09c2f5d4
KB
51782020-07-22 Kevin Buettner <kevinb@redhat.com>
5179
5180 * corelow.c (gdbcmd.h): Include.
5181 (core_target::info_proc_mappings): New method.
5182 (get_current_core_target): New function.
5183 (maintenance_print_core_file_backed_mappings): New function.
5184 (_initialize_corelow): Add core-file-backed-mappings to
5185 "maint print" commands.
5186
9c5ec5c2 51872020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 5188
9c5ec5c2
KB
5189 * linux-tdep.c (dump_note_entry_p): New function.
5190 (linux_dump_mapping_p_ftype): New typedef.
5191 (linux_find_memory_regions_full): Add new parameter,
5192 should_dump_mapping_p.
5193 (linux_find_memory_regions): Adjust call to
5194 linux_find_memory_regions_full.
5195 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
5196 call to linux_find_memory_regions_full.
5197
db082f59
KB
51982020-07-22 Kevin Buettner <kevinb@redhat.com>
5199
5200 * corelow.c (solist.h, unordered_map): Include.
5201 (class core_target): Add field m_core_file_mappings and
5202 method build_file_mappings.
5203 (core_target::core_target): Call build_file_mappings.
5204 (core_target::~core_target): Free memory associated with
5205 m_core_file_mappings.
5206 (core_target::build_file_mappings): New method.
5207 (core_target::xfer_partial): Use m_core_file_mappings
5208 for memory transfers.
5209 * linux-tdep.c (linux_read_core_file_mappings): New
5210 function.
5211 (linux_core_info_proc_mappings): Rewrite to use
5212 linux_read_core_file_mappings.
5213 (linux_init_abi): Register linux_read_core_file_mappings.
5214
7e183d27
KB
52152020-07-22 Kevin Buettner <kevinb@redhat.com>
5216
5217 * arch-utils.c (default_read_core_file_mappings): New function.
5218 * arch-utils.c (default_read_core_file_mappings): Declare.
5219 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
5220 * gdbarch.h, gdbarch.c: Regenerate.
5221
2735d421
KB
52222020-07-22 Kevin Buettner <kevinb@redhat.com>
5223
5224 PR corefiles/25631
5225 * corelow.c (core_target:xfer_partial): Revise
5226 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
5227 case after first checking the stratum beneath the core
5228 target.
5229 (has_all_memory): Return true.
5230 * target.c (raw_memory_xfer_partial): Revise comment
5231 regarding use of has_all_memory.
5232
e56cb451
KB
52332020-07-22 Kevin Buettner <kevinb@redhat.com>
5234
5235 * exec.h (section_table_xfer_memory): Revise declaration,
5236 replacing section name parameter with an optional callback
5237 predicate.
5238 * exec.c (section_table_xfer_memory): Likewise.
5239 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
5240 of section_table_xfer_memory.
5241
32fa152e
TT
52422020-07-22 Tom Tromey <tromey@adacore.com>
5243
5244 * mi/mi-cmd-stack.c (list_args_or_locals): Use
5245 lookup_symbol_search_name.
5246
a67a1c41
AB
52472020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5248
5249 * python/py-registers.c (gdbpy_register_object_data_init): Remove
5250 redundant local variable.
5251 (gdbpy_get_register_descriptor): Extract descriptor vector as a
5252 reference, not pointer, update code accordingly.
5253
a7b4ff4f
SM
52542020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5255 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5256
5257 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
5258 * jit.c (jit_breakpoint_re_set_internal): Use the
5259 `skip_jit_symbol_lookup` field.
5260
2340e834
SM
52612020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5262 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5263
5264 * jit.c (jit_read_descriptor): Define the descriptor address once,
5265 use twice.
5266 (jit_breakpoint_deleted): Move the declaration of the loop variable
5267 `iter` into the loop header.
5268 (jit_breakpoint_re_set_internal): Move the declaration of the local
5269 variable `objf_data` to the first point of definition.
5270 (jit_event_handler): Move the declaration of local variables
5271 `code_entry`, `entry_addr`, and `objf` to their first point of use.
5272 Rename `objf` to `jited`.
5273
c1072906
SM
52742020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5275
5276 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
5277 Remove.
5278 * jit.c (get_jiter_objfile_data): Update.
5279
c8474dc3
TBA
52802020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5281 Simon Marchi <simon.marchi@polymtl.ca>
5282
5283 * jit.c (struct jit_program_space_data): Remove.
5284 (jit_program_space_key): Remove.
5285 (jiter_objfile_data::~jiter_objfile_data): Remove program space
5286 stuff.
5287 (get_jit_program_space_data): Remove.
5288 (jit_breakpoint_deleted): Iterate on all of the program space's
5289 objfiles.
5290 (jit_inferior_init): Likewise.
5291 (jit_breakpoint_re_set_internal): Likewise. Also change return
5292 type to void.
5293 (jit_breakpoint_re_set): Pass current_program_space to
5294 jit_breakpoint_re_set_internal.
5295
77208eb7
SM
52962020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5297
5298 * jit.h (struct jiter_objfile_data) <cached_code_address,
5299 jit_breakpoint>: Move to here from ...
5300 * jit.c (jit_program_space_data): ... here.
5301 (jiter_objfile_data::~jiter_objfile_data): Update.
5302 (jit_breakpoint_deleted): Update.
5303 (jit_breakpoint_re_set_internal): Update.
5304
8c1c720f
SM
53052020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5306
5307 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
5308 checks.
5309 (jit_read_descriptor): Remove NULL check.
5310 (jit_event_handler): Add an assertion.
5311
0e74a041
SM
53122020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5313
5314 * jit.h (struct jit_objfile_data): Split into...
5315 (struct jiter_objfile_data): ... this ...
5316 (struct jited_objfile_data): ... and this.
5317 * objfiles.h (struct objfile) <jit_data>: Remove.
5318 <jiter_data, jited_data>: New fields.
5319 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
5320 (jiter_objfile_data::~jiter_objfile_data): ... this.
5321 (get_jit_objfile_data): Rename to ...
5322 (get_jiter_objfile_data): ... this.
5323 (add_objfile_entry): Update.
5324 (jit_read_descriptor): Use get_jiter_objfile_data.
5325 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
5326 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
5327 (jit_inferior_exit_hook): Use objfile's jited_data field.
5328
238b5c9f
SM
53292020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5330
5331 * jit.h: Forward-declare `struct minimal_symbol`.
5332 (struct jit_objfile_data): Migrate to here from jit.c; also add a
5333 constructor, destructor, and an objfile* field.
5334 * jit.c (jit_objfile_data): Remove.
5335 (struct jit_objfile_data): Migrate from here to jit.h.
5336 (jit_objfile_data::~jit_objfile_data): New destructor
5337 implementation with code moved from free_objfile_data.
5338 (free_objfile_data): Delete.
5339 (get_jit_objfile_data): Update to use the jit_data field of objfile.
5340 (jit_find_objf_with_entry_addr): Ditto.
5341 (jit_inferior_exit_hook): Ditto.
5342 (_initialize_jit): Remove the call to
5343 register_objfile_data_with_cleanup.
5344 * objfiles.h (struct objfile) <jit_data>: New field.
5345
fe053b9e
TBA
53462020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5347
5348 * jit.h: Forward-declare `struct objfile`.
5349 (jit_event_handler): Add a second parameter, the JITer objfile.
5350 * jit.c (jit_read_descriptor): Change the signature to take the
5351 JITer objfile as an argument instead of the jit_program_space_data.
5352 (jit_inferior_init): Update the call to jit_read_descriptor.
5353 (jit_event_handler): Use the new JITer objfile argument when calling
5354 jit_read_descriptor.
5355 * breakpoint.c (handle_jit_event): Update the call to
5356 jit_event_handler to pass the JITer objfile.
5357
4cec0c66
JB
53582020-07-21 John Baldwin <jhb@FreeBSD.org>
5359
5360 * gdbarch.c: Regenerate.
5361 * gdbarch.h: Regenerate.
5362 * gdbarch.sh (handle_segmentation_fault): Remove method.
5363 * infrun.c (handle_segmentation_fault): Remove.
5364 (print_signal_received_reason): Remove call to
5365 handle_segmentation_fault.
5366
0e42f66a
JB
53672020-07-21 John Baldwin <jhb@FreeBSD.org>
5368
5369 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
5370 Rename to sparc64_linux_report_signal_info and add siggnal
5371 argument.
5372 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
5373 instead of sparc64_linux_handle_segmentation_fault.
5374
77bdfeb2
JB
53752020-07-21 John Baldwin <jhb@FreeBSD.org>
5376
5377 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
5378 i386_linux_report_signal_info instead of
5379 i386_linux_handle_segmentation_fault.
5380 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
5381 to i386_linux_report_signal_info and add siggnal argument.
5382 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
5383 of i386_linux_handle_segmentation_fault.
5384 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
5385 to i386_linux_report_signal_info and add siggnal argument.
5386
ad97bfc5
JB
53872020-07-21 John Baldwin <jhb@FreeBSD.org>
5388
5389 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
5390 hook if present.
5391
272bb05c
JB
53922020-07-21 John Baldwin <jhb@FreeBSD.org>
5393
5394 * gdbarch.c: Regenerate.
5395 * gdbarch.h: Regenerate.
5396 * gdbarch.sh (report_signal_info): New method.
5397 * infrun.c (print_signal_received_reason): Invoke gdbarch
5398 report_signal_info hook if present.
5399
baf8791e
AB
54002020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
5401
5402 * python/py-registers.c : Add 'unordered_map' include.
5403 (gdbpy_new_reggroup): Renamed to...
5404 (gdbpy_get_reggroup): ...this. Update to only create register
5405 group descriptors when needed.
5406 (gdbpy_reggroup_iter_next): Update.
5407
f7306dac
AB
54082020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
5409
5410 * python/py-registers.c (gdbpy_register_object_data): New static
5411 global.
5412 (gdbpy_register_object_data_init): New function.
5413 (gdbpy_new_register_descriptor): Renamed to...
5414 (gdbpy_get_register_descriptor): ...this, and update to reuse
5415 existing register descriptors where possible.
5416 (gdbpy_register_descriptor_iter_next): Update.
5417 (gdbpy_initialize_registers): Register new gdbarch data.
5418
05c309a8
SM
54192020-07-21 Simon Marchi <simon.marchi@efficios.com>
5420
5421 * linux-nat.c (stopped_pids): Make static.
5422
d1fd641e
SM
54232020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
5424
5425 PR ada/26235
5426 * gdbtypes.c (ada_discrete_type_low_bound,
5427 ada_discrete_type_high_bound): Handle undefined bounds.
5428
1de14d77
KR
54292020-07-21 Kamil Rytarowski <n54@gmx.com>
5430
5431 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
5432 declaration.
5433 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
5434 function.
5435
ed810cc7
JB
54362020-07-20 John Baldwin <jhb@FreeBSD.org>
5437
5438 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
5439 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
5440 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
5441 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
5442 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
5443 method.
5444
ae5369e7
LC
54452020-07-20 Ludovic Courtès <ludo@gnu.org>
5446
5447 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
5448 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
5449 which are deprecated in Guile 3.0.
5450 * configure.ac (try_guile_versions): Add "guile-3.0".
5451 * configure (try_guile_versions): Regenerate.
5452 * NEWS: Update entry.
5453
68cf161c
LC
54542020-07-20 Ludovic Courtès <ludo@gnu.org>
5455 Doug Evans <dje@google.com>
5456
5457 PR gdb/21104
5458 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
5459 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
5460 USING_GUILE_BEFORE_2_2.
5461 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
5462 Change type to 'scm_t_port_type *'.
5463 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
5464 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
5465 parameter and honor it. Update callers.
5466 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
5467 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
5468 functions.
5469 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
5470 USING_GUILE_BEFORE_2_2.
5471 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
5472 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
5473 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
5474 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
5475 and 'SCM_PORT_TYPE'.
5476 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
5477 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
5478 (gdbscm_memory_port_read, gdbscm_memory_port_write)
5479 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
5480 [!USING_GUILE_BEFORE_2_2]: New functions.
5481 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
5482 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
5483 'gdbscm_memory_port_read'.
5484 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
5485 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
5486 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
5487 function.
5488 (ioscm_init_memory_port): Remove.
5489 (ioscm_init_memory_port_stream): New function
5490 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
5491 function.
5492 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
5493 Return scm_from_uint (0).
5494 (gdbscm_set_memory_port_read_buffer_size_x)
5495 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
5496 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
5497 Return scm_from_uint (0).
5498 (gdbscm_set_memory_port_write_buffer_size_x)
5499 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
5500 * configure.ac (try_guile_versions): Add "guile-2.2".
5501 * configure: Regenerate.
5502 * NEWS: Add entry.
5503
aee91db3
TT
55042020-07-18 Tom Tromey <tom@tromey.com>
5505
5506 * linux-nat.c (linux_multi_process): Remove.
5507 (linux_nat_target::supports_multi_process): Return true.
5508
0e267416
AB
55092020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
5510
5511 * arch/riscv.c (riscv_tdesc_cache): Change map type.
5512 (riscv_lookup_target_description): Return pointer out of
5513 unique_ptr.
5514 * target-descriptions.c (allocate_target_description): Add
5515 comment.
5516 (target_desc_deleter::operator()): Likewise.
5517 * target-descriptions.h (struct target_desc_deleter): Moved to
5518 gdbsupport/tdesc.h.
5519 (target_desc_up): Likewise.
5520
f80c8ec4
TT
55212020-07-17 Tom Tromey <tromey@adacore.com>
5522
5523 * linux-nat.c (linux_nat_target::supports_non_stop)
5524 (linux_nat_target::always_non_stop_p): Use "true".
5525 (linux_nat_target::supports_disable_randomization): Use "true" and
5526 "false".
5527
d0ce17d8
CT
55282020-07-16 Caroline Tice <cmtice@google.com>
5529
5530 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
5531 (RNGLIST_HEADER_SIZE64): New constant definition.
5532 (struct dwop_section_names): Add rnglists_dwo.
5533 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
5534 (struct loclist_header): Rename to 'loclists_rnglists_header'.
5535 (struct dwo_sections): Add rnglists field.
5536 (read_attribut_reprocess): Add tag parameter.
5537 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
5538 (cu_debug_rnglists_section): New function (decl & definition).
5539 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
5540 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
5541 die whose range is being checked; get rnglist section from
5542 cu_debug_rnglists_section, to get from either objfile or dwo file as
5543 appropriate. Add cases for DW_RLE_base_addressx,
5544 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
5545 the base address to DW_RLE_offset_pairs (not to all ranges), moving
5546 test inside if-condition and updating complaint message.
5547 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
5548 dwarf2_rnglists_process.
5549 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
5550 dwarf2_ranges_process.
5551 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
5552 need_ranges_base and update comment appropriately. Also pass die tag
5553 to dwarf2_ranges_read.
5554 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
5555 need_ranges_base and update comment appropriately. Also pass die tag
5556 to dwarf2_ranges_process.
5557 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
5558 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
5559 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
5560 need_ranges_base and update comment appropriately. Also pass die tag
5561 to read_attribute_reprocess and dwarf2_ranges_read.
5562 (read_loclist_header): Rename function to read_loclists_rnglists_header,
5563 and update function comment appropriately.
5564 (read_loclist_index): Call read_loclists_rnglists_header instead of
5565 read_loclist_header.
5566 (read_rnglist_index): New function.
5567 (read_attribute_reprocess): Add tag parameter. Add code for
5568 DW_FORM_rnglistx, passing tag to read_rnglist_index.
5569 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
5570
3dcc261c
AB
55712020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
5572
5573 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
5574 being resolved.
5575
ccb9eba6
AB
55762020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
5577
5578 * arch-utils.c (show_architecture): Update formatting of messages.
5579
cf88be68
SM
55802020-07-12 Simon Marchi <simon.marchi@efficios.com>
5581
5582 * gdbtypes.h (struct type) <bounds>: Handle array and string
5583 types.
5584 * ada-lang.c (assign_aggregate): Use type::bounds on
5585 array/string type.
5586 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
5587 * c-varobj.c (c_number_of_children): Likewise.
5588 (c_describe_child): Likewise.
5589 * eval.c (evaluate_subexp_for_sizeof): Likewise.
5590 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
5591 (f_type_print_base): Likewise.
5592 * f-valprint.c (f77_array_offset_tbl): Likewise.
5593 (f77_get_upperbound): Likewise.
5594 (f77_print_array_1): Likewise.
5595 * guile/scm-type.c (gdbscm_type_range): Likewise.
5596 * m2-typeprint.c (m2_array): Likewise.
5597 (m2_is_long_set_of_type): Likewise.
5598 * m2-valprint.c (get_long_set_bounds): Likewise.
5599 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
5600 * python/py-type.c (typy_range): Likewise.
5601 * rust-lang.c (rust_internal_print_type): Likewise.
5602 * type-stack.c (type_stack::follow_types): Likewise.
5603 * valarith.c (value_subscripted_rvalue): Likewise.
5604 * valops.c (value_cast): Likewise.
5605
509971ae
SM
56062020-07-12 Simon Marchi <simon.marchi@efficios.com>
5607
5608 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
5609 callers to use the equivalent accessor methods.
5610
107406b7
SM
56112020-07-12 Simon Marchi <simon.marchi@efficios.com>
5612
5613 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
5614 (struct type) <bit_stride>: New method.
5615 (TYPE_BIT_STRIDE): Remove.
5616 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
5617
bb789949
SM
56182020-07-12 Simon Marchi <simon.marchi@efficios.com>
5619
5620 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
5621 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
5622 callers to use the equivalent accessor methods instead.
5623
39498edb
SM
56242020-07-12 Simon Marchi <simon.marchi@efficios.com>
5625
5626 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
5627 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
5628 callers to use the equivalent accessor methods instead.
5629
3b606f38
SM
56302020-07-12 Simon Marchi <simon.marchi@efficios.com>
5631
5632 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
5633 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
5634 to use dynamic_prop::kind.
5635
064d9cb9
SM
56362020-07-12 Simon Marchi <simon.marchi@efficios.com>
5637
5638 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
5639 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
5640 to get the bound property's kind and check against
5641 PROP_UNDEFINED.
5642
5537ddd0
SM
56432020-07-12 Simon Marchi <simon.marchi@efficios.com>
5644
5645 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
5646 all callers to use type::range_bounds followed by
5647 dynamic_prop::{low,high}.
5648
8c2e4e06
SM
56492020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
5650
5651 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
5652 const_val, set_const_val, baton, set_locexpr, set_loclist,
5653 set_addr_offset, variant_parts, set_variant_parts,
5654 original_type, set_original_type>: New methods.
5655 <kind>: Rename to...
5656 <m_kind>: ... this. Update all users to use the new methods
5657 instead.
5658 <data>: Rename to...
5659 <m_data>: ... this. Update all users to use the new methods
5660 instead.
5661
7c6f2712
SM
56622020-07-12 Simon Marchi <simon.marchi@efficios.com>
5663
5664 * gdbtypes.c (get_discrete_bounds): Return failure if
5665 the range type's bounds are not both defined and constant
5666 values.
5667 (get_array_bounds): Update comment. Remove undefined bound check.
5668
599088e3
SM
56692020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
5670
5671 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
5672 the type::bounds method directly.
5673
c4dfcb36
SM
56742020-07-12 Simon Marchi <simon.marchi@efficios.com>
5675
5676 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
5677 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
5678 are used to set the range type's bounds to use set_bounds.
5679
0a278aa7
PW
56802020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5681
5682 * exec.c (_initialize_exec): Update exec-file-mismatch help.
5683
cce20f10
PA
56842020-07-10 Pedro Alves <pedro@palves.net>
5685
5686 * gdbthread.h (inferior_ref): Define.
5687 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
5688 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
5689 * thread.c
5690 (scoped_restore_current_thread::restore):
5691 Adjust to gdb::ref_ptr.
5692 (scoped_restore_current_thread::~scoped_restore_current_thread):
5693 Remove manual decref handling.
5694 (scoped_restore_current_thread::scoped_restore_current_thread):
5695 Adjust to use
5696 inferior_ref::new_reference/thread_info_ref::new_reference.
5697 Incref the thread before calling get_frame_id instead of after.
5698 Let TARGET_CLOSE_ERROR propagate.
5699
6d7aa592
PA
57002020-07-10 Pedro Alves <pedro@palves.net>
5701
5702 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
5703 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
5704 NOT_AVAILABLE_ERROR.
5705 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
5706 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
5707
b3e3a4c1
SM
57082020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5709 Pedro Alves <pedro@palves.net>
5710
5711 PR gdb/26199
5712 * infrun.c (threads_are_resumed_pending_p): Delete.
5713 (do_target_wait): Remove threads_are_executing and
5714 threads_are_resumed_pending_p checks from the inferior_matches
5715 lambda. Update comments.
5716
d6cc5d98
PA
57172020-07-10 Pedro Alves <pedro@palves.net>
5718
5719 PR gdb/26199
5720 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
5721 executing threads.
5722
7d3badc6
PA
57232020-07-10 Pedro Alves <pedro@palves.net>
5724
5725 PR gdb/26199
5726 * infrun.c (handle_no_resumed): Handle multiple targets.
5727
42bd97a6
PA
57282020-07-10 Pedro Alves <pedro@palves.net>
5729
5730 PR gdb/26199
5731 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
5732 target_is_async_p.
5733
43667cc6
PA
57342020-07-10 Pedro Alves <pedro@palves.net>
5735
5736 PR gdb/26199
5737 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
5738 threads, not all threads.
5739
96118d11
PA
57402020-07-10 Pedro Alves <pedro@palves.net>
5741
5742 PR gdb/26199
5743 * remote.c (remote_target::open_1): Pass remote target pointer as
5744 data to create_async_event_handler.
5745 (remote_async_inferior_event_handler): Mark async event handler
5746 before returning if the remote target still has either pending
5747 events or unacknowledged notifications.
5748
54904d81
JB
57492020-07-10 John Baldwin <jhb@FreeBSD.org>
5750
5751 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
5752 declaration.
5753 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
5754 function.
5755
f37e5866
JB
57562020-07-09 John Baldwin <jhb@FreeBSD.org>
5757
5758 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
5759 inferior_ptid.
5760
fc238d4a
JB
57612020-07-09 John Baldwin <jhb@FreeBSD.org>
5762
5763 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
5764 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
5765 AT_FREEBSD_PS_STRINGS.
5766
6e2469ff
HD
57672020-07-08 Hannes Domani <ssbssa@yahoo.de>
5768
5769 * auto-load.c (auto_load_objfile_script_1): Convert drive part
5770 of debugfile path on Windows.
5771
d1076c41
JB
57722020-07-08 John Baldwin <jhb@FreeBSD.org>
5773
5774 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
5775 argument to 'data'.
5776
15f3b077
TT
57772020-07-08 Tom Tromey <tromey@adacore.com>
5778
5779 * ada-lang.c (ada_exception_message_1): Use read_memory.
5780
9fc501fd
AB
57812020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5782
5783 PR python/22748
5784 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
5785 special handling for inline frames.
5786 * findvar.c (value_of_register_lazy): Skip inline frames when
5787 creating lazy register values.
5788 * frame.c (frame_id_computed_p): Delete definition.
5789 * frame.h (frame_id_computed_p): Delete declaration.
5790
64cb3757
AB
57912020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5792
5793 * NEWS: Mention additions to Python API.
5794 * python/py-arch.c (archpy_register_groups): New function.
5795 (arch_object_methods): Add 'register_groups' method.
5796 * python/py-registers.c (reggroup_iterator_object): New struct.
5797 (reggroup_object): New struct.
5798 (gdbpy_new_reggroup): New function.
5799 (gdbpy_reggroup_to_string): New function.
5800 (gdbpy_reggroup_name): New function.
5801 (gdbpy_reggroup_iter): New function.
5802 (gdbpy_reggroup_iter_next): New function.
5803 (gdbpy_new_reggroup_iterator): New function
5804 (gdbpy_initialize_registers): Register new types.
5805 (reggroup_iterator_object_type): Define new Python type.
5806 (gdbpy_reggroup_getset): New static global.
5807 (reggroup_object_type): Define new Python type.
5808 * python/python-internal.h
5809
0f767f94
AB
58102020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5811
5812 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
5813 * python/py-arch.c (archpy_registers): New function.
5814 (arch_object_methods): Add 'registers' method.
5815 * python/py-registers.c: New file.
5816 * python/python-internal.h
5817 (gdbpy_new_register_descriptor_iterator): Declare.
5818 (gdbpy_initialize_registers): Declare.
5819 * python/python.c (do_start_initialization): Call
5820 gdbpy_initialize_registers.
5821 * NEWS: Mention additions to the Python API.
5822
87dbc774
AB
58232020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5824
5825 * NEWS: Mention new Python API method.
5826 * python/py-unwind.c (pending_framepy_architecture): New function.
5827 (pending_frame_object_methods): Add architecture method.
5828
3bc98c0c
AB
58292020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5830
5831 * gdbarch.c: Regenerate.
5832 * gdbarch.h: Regenerate.
5833 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
5834 (gdbarch_data): Use internal_error for the case where
5835 deprecated_set_gdbarch_data was originally needed.
5836 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
5837 and use passed in obstack.
5838 (libunwind_frame_set_descr): Should no longer get back NULL from
5839 gdbarch_data.
5840 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
5841 type.
5842 * user-regs.c (user_regs_init): Update parameters, and use passed
5843 in obstack.
5844 (user_reg_add): Should no longer get back NULL from gdbarch_data.
5845 (_initialize_user_regs): Register as a pre-init gdbarch data type.
5846
d8cc8af6
TV
58472020-07-06 Tom de Vries <tdevries@suse.de>
5848
5849 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
5850 End-Of-Sequence in lte_is_less_than.
5851 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
5852 "gdb: Don't reorder line table entries too much when sorting".
5853
947f7597
TV
58542020-07-06 Tom de Vries <tdevries@suse.de>
5855
5856 PR tui/26205
5857 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
5858
1e7c1b22
TV
58592020-07-05 Tom de Vries <tdevries@suse.de>
5860
5861 PR build/26187
5862 * inferior.h (struct infcall_suspend_state_deleter): If available, use
5863 std::uncaught_exceptions instead of deprecated
5864 std::uncaught_exception.
5865
a36158ec
SM
58662020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5867
5868 * macroexp.h (macro_stringify): Return
5869 gdb::unique_xmalloc_ptr<char>.
5870 * macroexp.c (macro_stringify): Likewise.
5871 * macrotab.c (fixup_definition): Update.
5872
14d960c8
SM
58732020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5874
5875 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
5876 (lex_one_token): Update.
5877 * macroexp.c (struct macro_buffer) <release>: Return
5878 gdb::unique_xmalloc_ptr<char>.
5879 (macro_stringify): Update.
5880 (macro_expand): Update.
5881 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
5882 * macroexp.h (macro_expand_next): Likewise.
5883
211d5b1c
SM
58842020-07-02 Simon Marchi <simon.marchi@efficios.com>
5885
5886 * macroexp.h (macro_lookup_ftype): Remove.
5887 (macro_expand, macro_expand_once, macro_expand_next): Remove
5888 lookup function parameters, add scope parameter.
5889 * macroexp.c (scan, substitute_args, expand, maybe_expand,
5890 macro_expand, macro_expand_once, macro_expand_next): Likewise.
5891 * macroscope.h (standard_macro_lookup): Change parameter type
5892 to macro_scope.
5893 * macroscope.c (standard_macro_lookup): Likewise.
5894 * c-exp.y (lex_one_token): Update.
5895 * macrocmd.c (macro_expand_command): Likewise.
5896 (macro_expand_once_command): Likewise.
5897
b1a35af2
SM
58982020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5899
5900 * inf-loop.c (inferior_event_handler): Remove client_data param.
5901 * inf-loop.h (inferior_event_handler): Likewise.
5902 * infcmd.c (step_1): Adjust.
5903 * infrun.c (proceed): Adjust.
5904 (fetch_inferior_event): Remove client_data param.
5905 (infrun_async_inferior_event_handler): Adjust.
5906 * infrun.h (fetch_inferior_event): Remove `void *` param.
5907 * linux-nat.c (handle_target_event): Adjust.
5908 * record-btrace.c (record_btrace_handle_async_inferior_event):
5909 Adjust.
5910 * record-full.c (record_full_async_inferior_event_handler):
5911 Adjust.
5912 * remote.c (remote_async_inferior_event_handler): Adjust.
5913
1cdf9e33
TT
59142020-07-01 Tom Tromey <tom@tromey.com>
5915
5916 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
5917 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
5918
32c1e210
TT
59192020-07-01 Tom Tromey <tom@tromey.com>
5920
5921 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
5922 tui_gen_win_info.
5923 (tui_win_info::make_window): Merge with
5924 tui_gen_win_info::make_window.
5925 (tui_win_info::make_visible): Move from tui_gen_win_info.
5926 * tui/tui-win.c (tui_win_info::max_width): Move from
5927 tui_gen_win_info.
5928 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
5929 type.
5930 <window_factory>: Likewise.
5931 * tui/tui-layout.c (tui_win_info::resize): Move from
5932 tui_gen_win_info.
5933 (make_standard_window): Change return type.
5934 (get_locator_window, tui_get_window_by_name): Likewise.
5935 (tui_layout_window::apply): Remove a cast.
5936 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
5937 (struct tui_win_info): Merge with tui_gen_win_info.
5938 (struct tui_gen_win_info): Remove.
5939
a30cb6da
TT
59402020-07-01 Tom Tromey <tom@tromey.com>
5941
5942 * tui/tui-stack.h (struct tui_locator_window): Derive from
5943 tui_win_info.
5944 <do_scroll_horizontal, do_scroll_vertical>: New methods.
5945 <can_box>: New method.
5946
1eb2161f
TT
59472020-07-01 Tom Tromey <tom@tromey.com>
5948
5949 * tui/tui-stack.h (struct tui_locator_window): Remove body.
5950
7134f2eb
TT
59512020-07-01 Tom Tromey <tom@tromey.com>
5952
5953 * tui/tui-regs.c (tui_data_window::display_registers_from)
5954 (tui_data_window::display_registers_from)
5955 (tui_data_window::first_data_item_displayed)
5956 (tui_data_window::delete_data_content_windows): Update.
5957 (tui_data_window::refresh_window, tui_data_window::no_refresh):
5958 Remove.
5959 (tui_data_window::check_register_values): Update.
5960 (tui_data_item_window::rerender): Add parameters. Update.
5961 (tui_data_item_window::refresh_window): Remove.
5962 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
5963 virtual.
5964 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
5965 tui_gen_win_info.
5966 <refresh_window, max_height, min_height>: Remove.
5967 <rerender>: Add parameters.
5968 <x, y, visible>: New members.
5969 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
5970 <m_item_width>: New member.
5971
22b7b041
TT
59722020-07-01 Tom Tromey <tom@tromey.com>
5973
5974 * tui/tui-regs.c (tui_data_window::show_register_group)
5975 (tui_data_window::check_register_values): Update.
5976 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
5977 from item_no.
5978
c9753adb
TT
59792020-07-01 Tom Tromey <tom@tromey.com>
5980
5981 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
5982 useless "if".
5983
9ab26b4a
TT
59842020-07-01 Tom Tromey <tom@tromey.com>
5985
5986 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
5987 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
5988
e555083f
TT
59892020-07-01 Tom Tromey <tom@tromey.com>
5990
5991 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
5992 * tui/tui-winsource.h (enum tui_line_or_address_kind)
5993 (struct tui_line_or_address): Move from tui-data.h.
5994 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
5995 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
5996 (tui_cmd_window, tui_source_window_base, tui_source_window)
5997 (tui_disasm_window): Don't declare.
5998 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
5999 to tui-winsource.h.
6000 (SINGLE_KEY): Move to tui-stack.c.
6001
7a02bab7
TT
60022020-07-01 Tom Tromey <tom@tromey.com>
6003
6004 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
6005 std::string.
6006 * tui/tui-regs.c (class tab_expansion_file): New.
6007 (tab_expansion_file::write): New method.
6008 (tui_register_format): Change return type. Use
6009 tab_expansion_file.
6010 (tui_get_register, tui_data_window::display_registers_from)
6011 (tui_data_item_window::rerender): Update.
6012 * tui/tui-io.h (tui_expand_tabs): Don't declare.
6013 * tui/tui-io.c (tui_expand_tabs): Remove.
6014
ea68593b
TT
60152020-07-01 Tom Tromey <tom@tromey.com>
6016
6017 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
6018
a8caed5d
FS
60192020-07-01 Fangrui Song <maskray@google.com>
6020
6021 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
6022
9cdf9820
AKS
60232020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6024
6025 * dwarf2/read.c (set_die_type): Removed conditions to restrict
6026 forms for DW_AT_associated and DW_AT_allocated attributes,
6027 which is already checked in function attr_to_dynamic_prop.
6028
a1520ad8
TT
60292020-06-30 Tom Tromey <tromey@adacore.com>
6030
6031 * dwarf2/read.c (quirk_rust_enum): Correctly call
6032 alloc_rust_variant for default-less enum.
6033
5ac58899
TT
60342020-06-30 Tom Tromey <tromey@adacore.com>
6035
6036 PR build/26183:
6037 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
6038 gdb::to_string.
6039
19b187a9
SM
60402020-06-29 Simon Marchi <simon.marchi@efficios.com>
6041
6042 * gdbarch.sh (displaced_step_copy_insn): Update doc.
6043 * gdbarch.h: Re-generate.
6044
cd4c4c07
TT
60452020-06-28 Tom Tromey <tom@tromey.com>
6046
6047 * command.h (cmd_types): Remove.
6048 (cmd_type): Don't declare.
6049 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
6050 typedef.
6051 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
6052 * cli/cli-decode.c (cmd_type): Remove.
6053
05779d57
PA
60542020-06-27 Pedro Alves <palves@redhat.com>
6055
6056 * fork-child.c (prefork_hook): Adjust.
6057 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
6058 Delete.
6059 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
6060 * inferior.c (inferior::set_tty, inferior::tty): New methods.
6061 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
6062 Remove declarations.
6063 (struct inferior) <set_tty, tty>: New methods.
6064 (struct inferior) <terminal>: Rename to ...
6065 (struct inferior) <m_terminal>: ... this and make private.
6066 * main.c (captured_main_1): Adjust.
6067 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
6068 (mi_cmd_inferior_tty_show): Adjust.
6069 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
6070 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
6071
1776e3e5
NA
60722020-06-26 Nick Alcock <nick.alcock@oracle.com>
6073
6074 * configure.ac: Add --enable-libctf: handle --disable-static
6075 properly.
6076 * acinclude.m4: sinclude ../config/enable.m4.
6077 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
6078 (LIBCTF): Substitute in.
6079 (CTF_DEPS): New, likewise.
6080 (CLIBS): libctf needs symbols from libbfd: move earlier.
6081 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
6082 flags.
6083 * ctfread.c: Surround in ENABLE_LIBCTF.
6084 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
6085 * configure: Regenerate.
6086 * config.in: Likewise.
6087
58373b80
SM
60882020-06-25 Simon Marchi <simon.marchi@efficios.com>
6089
6090 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
6091
277474ee
SM
60922020-06-25 Simon Marchi <simon.marchi@efficios.com>
6093
6094 * inferior.h (struct inferior) <terminal>: Change type to
6095 gdb::unique_xmalloc_ptr<char>.
6096 * inferior.c (inferior::~inferior): Don't free inf->terminal.
6097 * infcmd.c (set_inferior_io_terminal): Don't free terminal
6098 field, adjust to unique pointer.
6099 (get_inferior_io_terminal): Adjust to unique pointer.
6100
6d74da72
AB
61012020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6102
6103 * riscv-tdep.c (riscv_print_registers_info): Loop over all
6104 registers, not just the known core set of registers.
6105
2e52d038
AB
61062020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6107
6108 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
6109 fflags, frm, and fcsr registers.
6110 (riscv_register_reggroup_p): Remove unknown CSRs from save and
6111 restore groups.
6112 (riscv_tdesc_unknown_reg): New function.
6113 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
6114 tdesc_use_registers.
6115 * riscv-tdep.h (struct gdbarch_tdep): Add
6116 unknown_csrs_first_regnum, unknown_csrs_count,
6117 duplicate_fflags_regnum, duplicate_frm_regnum, and
6118 duplicate_fcsr_regnum fields.
6119
be64fd07
AB
61202020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6121
6122 * target-descriptions.c (tdesc_use_registers): Add new parameter a
6123 callback, use the callback (when not null) to help number unknown
6124 registers.
6125 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
6126 (tdesc_use_registers): Add extra parameter to declaration.
6127
3b9fce96
AB
61282020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6129
6130 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
6131 in the file.
6132 (class riscv_pending_register_alias): Likewise.
6133 (riscv_register_feature::register_info): Change 'required_p' field
6134 to 'required', and change its type. Add 'check' member function.
6135 (riscv_register_feature::register_info::check): Define new member
6136 function.
6137 (riscv_xreg_feature): Change initialisation of 'required' field.
6138 (riscv_freg_feature): Likewise.
6139 (riscv_virtual_feature): Likewise.
6140 (riscv_csr_feature): Likewise.
6141 (riscv_check_tdesc_feature): Take extra parameter, the csr
6142 tdesc_feature, rewrite the function to use the new
6143 riscv_register_feature::register_info::check function.
6144 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
6145
865bad26
AB
61462020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6147
6148 * features/Makefile: Remove all references to the deleted files
6149 below.
6150 * features/riscv/32bit-csr.c: Deleted.
6151 * features/riscv/32bit-csr.xml: Deleted.
6152 * features/riscv/64bit-csr.c: Deleted.
6153 * features/riscv/64bit-csr.xml: Deleted.
6154 * features/riscv/rebuild-csr-xml.sh: Deleted.
6155
ed69cbc8
AB
61562020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6157
6158 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
6159 whitespace error for declaration of names member variable.
6160 (struct riscv_register_feature): Add new prefer_first_name member
6161 variable, and fix whitespace error in declaration of registers.
6162 (riscv_xreg_feature): Initialize prefer_first_name field.
6163 (riscv_freg_feature): Likewise.
6164 (riscv_virtual_feature): Likewise.
6165 (riscv_csr_feature): Likewise.
6166 (riscv_register_name): Expand on comments. Remove register name
6167 modifications for CSR and virtual registers.
6168
4445e8f5
AB
61692020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6170
6171 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
6172 errors.
6173
767a879e
AB
61742020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6175
6176 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
6177 riscv-opc.h.
6178 (class riscv_pending_register_alias): New class.
6179 (riscv_check_tdesc_feature): Take vector of pending aliases and
6180 populate it as appropriate.
6181 (riscv_setup_register_aliases): Delete.
6182 (riscv_gdbarch_init): Create vector of pending aliases and pass it
6183 to riscv_check_tdesc_feature in all cases. Use the vector to
6184 create the register aliases.
6185
bb6e55f3
RO
61862020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6187
6188 * sol2-tdep.c (sol2_static_transform_name): Remove.
6189 (sol2_init_abi): Don't register it.
6190 * gdbarch.sh (static_transform_name): Remove.
6191 * gdbarch.c, gdbarch.h: Regenerate.
6192
6193 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
6194 gdbarch_static_transform_name.
6195 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
6196 * stabsread.c (define_symbol) <'X'>: Remove.
6197 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
6198 handling.
6199 <'V'>: Likewise.
6200 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
6201 <'S'>: Remove call to gdbarch_static_transform_name.
6202
c6d36836
RO
62032020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6204
6205 * procfs.c (procfs_pre_trace): New function.
6206 (procfs_target::create_inferior): Pass it to fork_inferior.
6207
a7e6196b
RO
62082020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6209
6210 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
6211 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
6212 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
6213 sol2-tdep.o, sparc-sol2-tdep.o.
6214 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
6215 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
6216 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
6217 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
6218
d412e696
RO
62192020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6220
6221 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
6222 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
6223 Call sol2_init_abi.
6224 Remove calls to set_gdbarch_skip_solib_resolver,
6225 set_gdbarch_core_pid_to_str.
6226 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
6227 (i386_sol2_static_transform_name): Remove.
6228 (i386_sol2_init_abi): Call sol2_init_abi.
6229 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6230 set_gdbarch_static_transform_name,
6231 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6232 Use sol2_sigtramp_p.
6233 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
6234 (sol2_sigtramp_p): New function.
6235 (sol2_static_transform_name): New function.
6236 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
6237 (sol2_init_abi): New function.
6238 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
6239 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
6240 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
6241 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
6242 (sparc_sol2_static_transform_name): Remove.
6243 (sparc32_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,
6247 set_gdbarch_core_pid_to_str.
6248 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
6249 (sparc_sol2_static_transform_name): Remove
6250 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
6251 call sol2_sigtramp_p.
6252 (sparc64_sol2_init_abi): Call sol2_init_abi.
6253 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6254 set_gdbarch_static_transform_name,
6255 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6256
a8654e7d
PW
62572020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6258
6259 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
6260 * exec.c (validate_exec_file): If from_tty, set both
6261 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
6262 * symfile.c (symbol_file_add_with_addrs): if always_confirm
6263 and from_tty, unconditionally ask a confirmation.
6264
caa7fd04
AB
62652020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6266
6267 * target-descriptions.c (tdesc_architecture_name): Protect against
6268 NULL pointer dereference.
6269 (maint_print_xml_tdesc_cmd): New function.
6270 (_initialize_target_descriptions): Register new 'maint print
6271 xml-tdesc' command and give it the filename completer.
6272 * NEWS: Mention new 'maint print xml-tdesc' command.
6273
fbf42f4e
AB
62742020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6275
6276 * target-descriptions.c (class tdesc_compatible_info): New class.
6277 (struct target_desc): Change type of compatible vector.
6278 (tdesc_compatible_p): Update for change in type of
6279 target_desc::compatible.
6280 (tdesc_compatible_info_list): New function.
6281 (tdesc_compatible_info_arch_name): New function.
6282 (tdesc_add_compatible): Update for change in type of
6283 target_desc::compatible.
6284 (print_c_tdesc::visit_pre): Likewise.
6285
20821f4e
AB
62862020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6287
6288 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
6289 whitespace to underscore.
6290 (maint_print_c_tdesc_cmd): Use fake filename for target
6291 descriptions that came from the target.
6292 (_initialize_target_descriptions): Add filename command completion
6293 for 'maint print c-tdesc'.
6294
1fb5ee62
SM
62952020-06-23 Simon Marchi <simon.marchi@efficios.com>
6296
6297 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
6298 lines.
6299
fc3ecb3e
SM
63002020-06-23 Simon Marchi <simon.marchi@efficios.com>
6301
6302 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
6303 lines.
6304 (dwarf2_find_location_expression): Likewise.
6305 (call_site_parameter_matches): Likewise.
6306 (dwarf2_compile_expr_to_ax): Likewise.
6307 (disassemble_dwarf_expression): Likewise.
6308 (loclist_describe_location): Likewise.
6309
236ef034
PA
63102020-06-23 Pedro Alves <palves@redhat.com>
6311
6312 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
6313 progspace-and-thread.h. Include scoped-mock-context.h instead.
6314 (register_to_value_test): Use scoped_mock_context.
6315 * regcache.c: Include "scoped-mock-context.h".
6316 (cooked_read_test): Don't error out if a target is already pushed.
6317 Use scoped_mock_context. Adjust.
6318 * scoped-mock-context.h: New file.
6319
39e7ecca
AB
63202020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6321
6322 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
6323 initializer.
6324 (ada_language::is_string_type_p): New member function.
6325 * c-lang.c (c_language_data): Delete la_is_string_type_p
6326 initializer.
6327 (cplus_language_data): Likewise.
6328 (asm_language_data): Likewise.
6329 (minimal_language_data): Likewise.
6330 * d-lang.c (d_language_data): Likewise.
6331 * f-lang.c (f_is_string_type_p): Delete function, implementation
6332 moved to f_language::is_string_type_p.
6333 (f_language_data): Delete la_is_string_type_p initializer.
6334 (f_language::is_string_type_p): New member function,
6335 implementation from f_is_string_type_p.
6336 * go-lang.c (go_is_string_type_p): Delete function, implementation
6337 moved to go_language::is_string_type_p.
6338 (go_language_data): Delete la_is_string_type_p initializer.
6339 (go_language::is_string_type_p): New member function,
6340 implementation from go_is_string_type_p.
6341 * language.c (language_defn::is_string_type_p): Define new member
6342 function.
6343 (default_is_string_type_p): Make static, add comment copied from
6344 header file.
6345 (unknown_language_data): Delete la_is_string_type_p initializer.
6346 (unknown_language::is_string_type_p): New member function.
6347 (auto_language_data): Delete la_is_string_type_p initializer.
6348 (auto_language::is_string_type_p): New member function.
6349 * language.h (language_data): Delete la_is_string_type_p field.
6350 (language_defn::is_string_type_p): Declare new function.
6351 (default_is_string_type_p): Delete desclaration, move comment to
6352 definition.
6353 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
6354 moved to m2_language::is_string_type_p.
6355 (m2_language_data): Delete la_is_string_type_p initializer.
6356 (m2_language::is_string_type_p): New member function,
6357 implementation from m2_is_string_type_p.
6358 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
6359 initializer.
6360 * opencl-lang.c (opencl_language_data): Likewise.
6361 * p-lang.c (pascal_is_string_type_p): Delete function,
6362 implementation moved to pascal_language::is_string_type_p.
6363 (pascal_language_data): Delete la_is_string_type_p initializer.
6364 (pascal_language::is_string_type_p): New member function,
6365 implementation from pascal_is_string_type_p.
6366 * rust-lang.c (rust_is_string_type_p): Delete function,
6367 implementation moved to rust_language::is_string_type_p.
6368 (rust_language_data): Delete la_is_string_type_p initializer.
6369 (rust_language::is_string_type_p): New member function,
6370 implementation from rust_is_string_type_p.
6371 * valprint.c (val_print_scalar_or_string_type_p): Update call to
6372 is_string_type_p.
6373
4ffc13fb
AB
63742020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6375
6376 * ada-lang.c (ada_language_data): Delete la_print_typedef
6377 initializer.
6378 (ada_language::print_typedef): New member function.
6379 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
6380 (cplus_language_data): Likewise.
6381 (asm_language_data): Likewise.
6382 (minimal_language_data): Likewise.
6383 * d-lang.c (d_language_data): Likewise.
6384 * f-lang.c (f_language_data): Likewise.
6385 (f_language::print_typedef): New member function.
6386 * go-lang.c (go_language_data): Delete la_print_typedef
6387 initializer.
6388 * language.c (language_defn::print_typedef): Define member
6389 function.
6390 (unknown_language_data): Delete la_print_typedef initializer.
6391 (unknown_language::print_typedef): New member function.
6392 (auto_language_data): Delete la_print_typedef initializer.
6393 (auto_language::print_typedef): New member function.
6394 * language.h (language_data): Delete la_print_typedef field.
6395 (language_defn::print_typedef): Declare new member function.
6396 (LA_PRINT_TYPEDEF): Update call to print_typedef.
6397 (default_print_typedef): Delete declaration.
6398 * m2-lang.c (m2_language_data): Delete la_print_typedef
6399 initializer.
6400 (m2_language::print_typedef): New member function.
6401 * objc-lang.c (objc_language_data): Delete la_print_typedef
6402 initializer.
6403 * opencl-lang.c (opencl_language_data): Likewise.
6404 * p-lang.c (pascal_language_data): Likewise.
6405 (pascal_language::print_typedef): New member function.
6406 * rust-lang.c (rust_print_typedef): Delete function,
6407 implementation moved to rust_language::print_typedef.
6408 (rust_language): Delete la_print_typedef initializer.
6409 (rust_language::print_typedef): New member function,
6410 implementation from rust_print_typedef.
6411 * typeprint.c (default_print_typedef): Delete.
6412
d711ee67
AB
64132020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6414
6415 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
6416 (ada_language::printstr): New member function.
6417 * c-lang.c (c_language_data): Delete la_printstr initializer.
6418 (cplus_language_data): Likewise.
6419 (asm_language_data): Likewise.
6420 (minimal_language_data): Likewise.
6421 * d-lang.c (d_language_data): Likewise.
6422 * f-lang.c (f_printstr): Rename to f_language::printstr.
6423 (f_language_data): Delete la_printstr initializer.
6424 (f_language::printstr): New member function, implementation from
6425 f_printstr.
6426 * go-lang.c (go_language_data): Delete la_printstr initializer.
6427 * language.c (language_defn::printstr): Define new member
6428 function.
6429 (unk_lang_printstr): Delete.
6430 (unknown_language_data): Delete la_printstr initializer.
6431 (unknown_language::printstr): New member function.
6432 (auto_language_data): Delete la_printstr initializer.
6433 (auto_language::printstr): New member function.
6434 * language.h (language_data): Delete la_printstr field.
6435 (language_defn::printstr): Declare new member function.
6436 (LA_PRINT_STRING): Update call to printstr.
6437 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
6438 (m2_language_data): Delete la_printstr initializer.
6439 (m2_language::printstr): New member function, implementation from
6440 m2_printstr.
6441 * objc-lang.c (objc_language_data): Delete la_printstr
6442 initializer.
6443 * opencl-lang.c (opencl_language_data): Likewise.
6444 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
6445 (pascal_language_data): Delete la_printstr initializer.
6446 (pascal_language::printstr): New member function, implementation
6447 from pascal_printstr.
6448 * p-lang.h (pascal_printstr): Delete declaration.
6449 * rust-lang.c (rust_printstr): Update header comment.
6450 (rust_language_data): Delete la_printstr initializer.
6451 (rust_language::printstr): New member function.
6452
52b50f2c
AB
64532020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6454
6455 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
6456 (ada_language::printchar): New member function.
6457 * c-lang.c (c_language_data): Delete la_printchar initializer.
6458 (cplus_language_data): Likewise.
6459 (asm_language_data): Likewise.
6460 (minimal_language_data): Likewise.
6461 * d-lang.c (d_language_data): Likewise.
6462 * f-lang.c (f_printchar): Rename to f_language::printchar.
6463 (f_language_data): Delete la_printchar initializer.
6464 (f_language::printchar): New member function, implementation from
6465 f_printchar.
6466 * go-lang.c (go_language_data): Delete la_printchar initializer.
6467 * language.c (unk_lang_printchar): Delete.
6468 (language_defn::printchar): Define new member function.
6469 (unknown_language_data): Delete la_printchar initializer.
6470 (unknown_language::printchar): New member function.
6471 (auto_language_data): Delete la_printchar initializer.
6472 (auto_language::printchar): New member function.
6473 * language.h (language_data): Delete la_printchar field.
6474 (language_defn::printchar): Declare new member function.
6475 (LA_PRINT_CHAR): Update call to printchar.
6476 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
6477 (m2_language::printchar): New member function.
6478 * objc-lang.c (objc_language_data): Delete la_printchar
6479 initializer.
6480 * opencl-lang.c (opencl_language_data): Likewise.
6481 * p-lang.c (pascal_language_data): Delete la_printchar
6482 initializer.
6483 (pascal_language::printchar): New member function.
6484 * rust-lang.c (rust_printchar): Rename to
6485 rust_language::printchar.
6486 (rust_language_data): Delete la_printchar initializer.
6487 (rust_language::printchar): New member function, implementation
6488 from rust_printchar.
6489
ec8cec5b
AB
64902020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6491
6492 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
6493 (ada_language_data): Delete la_emitchar initializer.
6494 (ada_language::emitchar): New member function, implementation from
6495 emit_char.
6496 * c-lang.c (c_language_data): Delete la_emitchar initializer.
6497 (cplus_language_data): Likewise.
6498 (asm_language_data): Likewise.
6499 (minimal_language_data): Likewise.
6500 * d-lang.c (d_language_data): Likewise.
6501 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
6502 (f_language_data): Delete la_emitchar initializer.
6503 (f_language::emitchar): New member function, implementation from
6504 f_emit_char.
6505 * go-lang.c (go_language_data): Delete la_emitchar initializer.
6506 * language.c (unk_lang_emit_char): Delete.
6507 (language_defn::emitchar): New member function definition.
6508 (unknown_language_data): Delete la_emitchar initializer.
6509 (unknown_language::emitchar): New member function.
6510 (auto_language_data): Delete la_emitchar initializer.
6511 (auto_language::emitchar): New member function.
6512 * language.h (language_data): Delete la_emitchar field.
6513 (language_defn::emitchar): New member field declaration.
6514 (LA_EMIT_CHAR): Update call to emitchar.
6515 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
6516 (m2_language_data): Delete la_emitchar initializer.
6517 (m2_language::emitchar): New member function, implementation from
6518 m2_emit_char.
6519 * objc-lang.c (objc_language_data): Delete la_emitchar
6520 initializer.
6521 * opencl-lang.c (opencl_language_data): Likewise.
6522 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
6523 (pascal_language_data): Delete la_emitchar initializer.
6524 (pascal_language::emitchar): New member function, implementation
6525 from pascal_emit_char.
6526 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
6527 (rust_language_data): Delete la_emitchar initializer.
6528 (rust_language::emitchar): New member function, implementation
6529 from rust_emitchar.
6530
1bf9c363
AB
65312020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6532
6533 * ada-lang.c (resolve): Rename to ada_language::post_parser.
6534 (ada_language_data): Delete la_post_parser initializer.
6535 (ada_language::post_parser): New member function.
6536 * c-lang.c (c_language_data): Delete la_post_parser initializer.
6537 (cplus_language_data): Likewise.
6538 (asm_language_data): Likewise.
6539 (minimal_language_data): Likewise.
6540 * d-lang.c (d_language_data): Likewise.
6541 * f-lang.c (f_language_data): Likewise.
6542 * go-lang.c (go_language_data): Likewise.
6543 * language.c (unknown_language_data): Likewise.
6544 (auto_language_data): Likewise.
6545 * language.h (language_data): Delete la_post_parser field.
6546 (language_defn::post_parser): New member function.
6547 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
6548 * objc-lang.c (objc_language_data): Likewise.
6549 * opencl-lang.c (opencl_language_data): Likewise.
6550 * p-lang.c (pascal_language_data): Likewise.
6551 * parse.c (parse_exp_in_context): Update call to post_parser.
6552 (null_post_parser): Delete definition.
6553 * parser-defs.h (null_post_parser): Delete declaration.
6554 * rust-lang.c (rust_language_data): Delete la_post_parser
6555 initializer.
6556
87afa652
AB
65572020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6558
6559 * ada-lang.c (parse): Rename to ada_language::parser.
6560 (ada_language_data): Delete la_parser initializer.
6561 (ada_language::parser): New member function, implementation from
6562 parse.
6563 * c-lang.c (c_language_data): Delete la_parser initializer.
6564 (cplus_language_data): Likewise.
6565 (asm_language_data): Likewise.
6566 (minimal_language_data): Likewise.
6567 * d-lang.c (d_language_data): Likewise.
6568 (d_language::parser): New member function.
6569 * f-lang.c (f_language_data): Delete la_parser initializer.
6570 (f_language::parser): New member function.
6571 * go-lang.c (go_language_data): Delete la_parser initializer.
6572 (go_language::parser): New member function.
6573 * language.c (unk_lang_parser): Delete.
6574 (language_defn::parser): Define new member function.
6575 (unknown_language_data): Delete la_parser initializer.
6576 (unknown_language::parser): New member function.
6577 (auto_language_data): Delete la_parser initializer.
6578 (auto_language::parser): New member function.
6579 * language.h (language_data): Delete la_parser field.
6580 (language_defn::parser): Declare new member function.
6581 * m2-lang.c (m2_language_data): Delete la_parser initializer.
6582 (m2_language::parser): New member function.
6583 * objc-lang.c (objc_language_data): Delete la_parser initializer.
6584 * opencl-lang.c (opencl_language_data): Likewise.
6585 * p-lang.c (pascal_language_data): Likewise.
6586 (pascal_language::parser): New member function.
6587 * parse.c (parse_exp_in_context): Update call to parser.
6588 * rust-lang.c (rust_language_data): Delete la_parser initializer.
6589 (rust_language::parser): New member function.
6590
37825800
AB
65912020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6592
6593 * top.c (print_gdb_configuration): Print --with-python-libdir
6594 configuration value.
6595
5b860c93
PW
65962020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6597
6598 * NEWS: Mention change to the alias command.
6599
cf00cd6f
PW
66002020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6601
6602 * cli/cli-cmds.c (lookup_cmd_for_default_args)
6603 (alias_command_completer)
6604 (make_alias_options_def_group): New functions.
6605 (alias_opts, alias_option_defs): New struct and array.
6606 (alias_usage_error): Update usage.
6607 (alias_command): Handles optional DEFAULT-ARGS... arguments.
6608 Use option framework.
6609 (_initialize_cli_cmds): Update alias command help.
6610 Update aliases command help.
6611 (show_user):
6612 Add NULL for new default_args lookup_cmd argument.
6613 (valid_command_p): Rename to validate_aliased_command.
6614 Add NULL for new default_args lookup_cmd argument. Verify that the
6615 aliased_command has no default args.
6616 * cli/cli-decode.c (help_cmd): Show aliases definitions.
6617 (lookup_cmd_1, lookup_cmd): New argument default_args.
6618 (add_alias_cmd):
6619 Add NULL for new default_args lookup_cmd argument.
6620 (print_help_for_command): Show default args under the layout
6621 alias some_alias = some_aliased_cmd some_alias_default_arg.
6622 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
6623 xfree default_args in destructor.
6624 * cli/cli-script.c (process_next_line, do_define_command):
6625 Add NULL for new default_args lookup_cmd argument.
6626 * command.h: Declare new default_args argument in lookup_cmd
6627 and lookup_cmd_1.
6628 * completer.c (complete_line_internal_1):
6629 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6630 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
6631 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
6632 Likewise.
6633 * infcmd.c (_initialize_infcmd): Likewise.
6634 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
6635 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
6636 * python/py-param.c (add_setshow_generic): Likewise.
6637 * remote.c (_initialize_remote): Likewise.
6638 * top.c (execute_command): Prepend default_args if command has some.
6639 (set_verbose):
6640 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6641 * tracepoint.c (validate_actionline, encode_actions_1):
6642 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6643
bd920864
TBA
66442020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6645
6646 * jit.c (jit_read_descriptor): Use bool as the return type.
6647 (jit_breakpoint_re_set_internal): Use bool as the return type.
6648 Invert the return value logic; return true if the jit breakpoint
6649 has been successfully initialized.
6650 (jit_inferior_init): Update the call to
6651 jit_breakpoint_re_set_internal.
6652
f8098322
PA
66532020-06-22 Pedro Alves <palves@redhat.com>
6654
6655 PR gdb/25939
6656 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
6657 Use the current inferior instead. Don't return
6658 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
6659 wait again.
6660 * sol-thread.c (sol_thread_target::wait): Don't reference
6661 inferior_ptid.
6662 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
6663 (sol_update_thread_list_callback): Use the current inferior's pid
6664 instead of inferior_ptid.
6665
196535a6
RO
66662020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6667
6668 * procfs.c: Cleanup many comments.
6669
6670 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
6671 (AFTER_WATCHFLAG): Replace by value.
6672
6673 (MAIN_PROC_NAME_FORMAT): Inline ...
6674 (create_procinfo): ... here.
6675
6676 (procfs_debug_inferior): Remove SYS_exec handling.
6677 (syscall_is_exec): Likewise.
6678 (procfs_set_exec_trap): Likewise.
6679
6680 (syscall_is_lwp_exit): Inline in callers.
6681 (syscall_is_exit): Likewise.
6682 (syscall_is_exec): Likewise.
6683 (syscall_is_lwp_create): Likewise.
6684
6685 (invalidate_cache): Remove #if 0 code.
6686
6687 (make_signal_thread_runnable): Remove.
6688 (procfs_target::resume): Remove #if 0 code.
6689
cf6f3e86
RO
66902020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6691
6692 PR gdb/25939
6693 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
6694 call ...
6695 (procfs_target::create_inferior): ... here.
6696
48e9cc84
PW
66972020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6698
6699 * exec.c (validate_exec_file): Ensure the build-id is up to
6700 date by calling reopen_exec_file (that checks file timestamp
6701 to decide to re-read the file).
6702
3922b302
PA
67032020-06-18 Pedro Alves <palves@redhat.com>
6704
6705 PR gdb/25412
6706 * gdbthread.h (delete_thread, delete_thread_silent)
6707 (find_thread_ptid): Update comments.
6708 * thread.c (current_thread_): New global.
6709 (is_current_thread): Move higher, and reimplement.
6710 (inferior_thread): Reimplement.
6711 (set_thread_exited): Use bool. Add assertions.
6712 (add_thread_silent): Simplify thread-reuse handling by always
6713 calling delete_thread.
6714 (delete_thread): Remove intro comment.
6715 (find_thread_ptid): Skip exited threads.
6716 (switch_to_thread_no_regs): Write to current_thread_.
6717 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
6718 INFERIOR_PTID. Clear current_thread_.
6719
6dbdab44
PA
67202020-06-18 Pedro Alves <palves@redhat.com>
6721
6722 * aix-thread.c (pd_update): Use switch_to_thread.
6723
2da4b788
PA
67242020-06-18 Pedro Alves <palves@redhat.com>
6725
6726 * ravenscar-thread.c (ravenscar_thread_target): Update.
6727 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
6728 (ravenscar_thread_target::add_active_thread): ... this. Don't
6729 set m_base_ptid here. Update to avoid referencing inferior_ptid.
6730 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
6731
50838d1b
PA
67322020-06-18 Pedro Alves <palves@redhat.com>
6733
6734 * nat/windows-nat.c (current_windows_thread): Remove.
6735 * nat/windows-nat.h (current_windows_thread): Remove.
6736 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
6737 Adjust.
6738 (display_selectors): Adjust to fetch the current
6739 windows_thread_info based on inferior_ptid.
6740 (fake_create_process): No longer write to current_windows_thread.
6741 (windows_nat_target::get_windows_debug_event):
6742 Don't set inferior_ptid or current_windows_thread.
6743 (windows_nat_target::wait): Adjust to not rely on
6744 current_windows_thread.
6745 (do_initial_windows_stuff): Now a method of windows_nat_target.
6746 Switch to the last_ptid thread.
6747 (windows_nat_target::attach): Adjust.
6748 (windows_nat_target::detach): Use switch_to_no_thread instead of
6749 writing to inferior_ptid directly.
6750 (windows_nat_target::create_inferior): Adjust.
6751
31ce04e9
PA
67522020-06-18 Pedro Alves <palves@redhat.com>
6753
6754 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
6755
1ee1a363
PA
67562020-06-18 Pedro Alves <palves@redhat.com>
6757
6758 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
6759 after creating it, instead of writing to inferior_ptid. Don't
6760 write to inferior_ptid.
6761
6d350754
PA
67622020-06-18 Pedro Alves <palves@redhat.com>
6763
6764 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
6765
5d971d48
PA
67662020-06-18 Pedro Alves <palves@redhat.com>
6767
6768 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
6769 it, instead of writing to inferior_ptid.
6770
86e57d1b
PA
67712020-06-18 Pedro Alves <palves@redhat.com>
6772
6773 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
6774 to inferior_ptid.
6775
f2e1c129
PA
67762020-06-18 Pedro Alves <palves@redhat.com>
6777
6778 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
6779 instead of writing to inferior_ptid directly.
6780
60db1b85
PA
67812020-06-18 Pedro Alves <palves@redhat.com>
6782
6783 * corelow.c (core_target::close): Use switch_to_no_thread instead
6784 of writing to inferior_ptid directly.
6785 (add_to_thread_list, core_target_open): Use switch_to_thread
6786 instead of writing to inferior_ptid directly.
6787
fe7d6a8d
PA
67882020-06-18 Pedro Alves <palves@redhat.com>
6789
6790 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
6791 inferior_ptid.
6792 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
6793 inferior_ptid.
6794 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
6795 inferior_ptid directly.
6796 (darwin_nat_target::init_thread_list): Switch to thread, instead
6797 of writing to inferior_ptid.
6798 (darwin_nat_target::attach): Don't write to inferior_ptid.
6799 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
6800
975f8708
PA
68012020-06-18 Pedro Alves <palves@redhat.com>
6802
6803 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
6804 thread.
6805 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
6806 Instead use switch_to_thread.
6807 (gnu_nat_target::detach): Use switch_to_no_thread
6808 instead of writing to inferior_ptid directly. Used passed-in
6809 inferior instead of looking up the inferior by pid.
6810
1a204730
PA
68112020-06-18 Pedro Alves <palves@redhat.com>
6812
6813 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
6814 inferior_ptid.
6815
ebe84f23
PA
68162020-06-18 Pedro Alves <palves@redhat.com>
6817
6818 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
6819 inferior_ptid.
6820 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
6821 thread.
6822 (nto_procfs_target::detach): Avoid referencing
6823 inferior_ptid. Use switch_to_no_thread instead of writing to
6824 inferior_ptid directly.
6825 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
6826 instead of writing to inferior_ptid directly.
6827 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
6828 to thread.
6829
191f02e5
PA
68302020-06-18 Pedro Alves <palves@redhat.com>
6831
6832 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
6833 after creating it, instead of writing to inferior_ptid.
6834 (gdbsim_target_open): Use switch_to_no_thread instead of writing
6835 to inferior_ptid directly.
6836 (gdbsim_target::wait): Don't write to inferior_ptid.
6837
0ac55310
PA
68382020-06-18 Pedro Alves <palves@redhat.com>
6839
6840 * remote.c (remote_target::remote_notice_new_inferior): Use
6841 switch_to_thread instead of writing to inferior_ptid directly.
6842 (remote_target::add_current_inferior_and_thread): Use
6843 switch_to_no_thread instead of writing to inferior_ptid directly.
6844 (extended_remote_target::attach): Use switch_to_inferior_no_thread
6845 and switch_to_thread instead of using set_current_inferior or
6846 writing to inferior_ptid directly.
6847
5233f39b
PA
68482020-06-18 Pedro Alves <palves@redhat.com>
6849
6850 * tracectf.c (ctf_target_open): Switch to added thread instead of
6851 writing to inferior_ptid directly.
6852 (ctf_target::close): Use switch_to_no_thread instead of writing to
6853 inferior_ptid directly.
6854
087e161b
PA
68552020-06-18 Pedro Alves <palves@redhat.com>
6856
6857 * tracefile-tfile.c (tfile_target_open): Don't write to
6858 inferior_ptid directly, instead switch to added thread.
6859 (tfile_target::close): Use switch_to_no_thread instead of writing
6860 to inferior_ptid directly.
6861
7fb43e53
PA
68622020-06-18 Pedro Alves <palves@redhat.com>
6863
6864 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
6865 (procfs_target::detach): Use switch_to_no_thread
6866 instead of writing to inferior_ptid directly.
6867 (do_attach): Change return type to void. Switch to the added
6868 thread.
6869 (procfs_target::create_inferior): Switch to the added thread.
6870 (procfs_do_thread_registers): Don't write to inferior_ptid.
6871
18493a00
PA
68722020-06-18 Pedro Alves <palves@redhat.com>
6873
6874 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
6875 of writing to inferior_ptid.
6876 (scoped_restore_exited_inferior): Delete.
6877 (handle_vfork_child_exec_or_exit): Simplify using
6878 scoped_restore_current_pspace_and_thread. Use switch_to_thread
6879 instead of writing to inferior_ptid.
6880 (THREAD_STOPPED_BY): Delete.
6881 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
6882 (thread_stopped_by_hw_breakpoint): Delete.
6883 (save_waitstatus): Use
6884 scoped_restore_current_thread+switch_to_thread, and call
6885 target_stopped_by_watchpoint instead of
6886 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
6887 instead of thread_stopped_by_sw_breakpoint, and
6888 target_stopped_by_hw_breakpoint instead of
6889 thread_stopped_by_hw_breakpoint.
6890 (handle_inferior_event)
6891 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
6892 inferior_ptid directly, nor
6893 set_current_inferior/set_current_program_space. Use
6894 switch_to_thread / switch_to_inferior_no_thread instead.
6895
a0776b13
PA
68962020-06-18 Pedro Alves <palves@redhat.com>
6897
6898 * target.c (generic_mourn_inferior): Use switch_to_no_thread
6899 instead of writing to inferior_ptid.
6900
6155c136
PA
69012020-06-18 Pedro Alves <palves@redhat.com>
6902
6903 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
6904 added thread.
6905 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
6906 to the added thread.
6907 (inf_ptrace_target::detach_success): Use switch_to_no_thread
6908 instead of writing to inferior_ptid.
6909
c5316fc6
PA
69102020-06-18 Pedro Alves <palves@redhat.com>
6911
6912 * gdbarch-selftests.c: Include "progspace-and-thread.h".
6913 (register_to_value_test): Mock a program_space too. Heap-allocate
6914 the address space. Don't write to inferior_ptid. Use
6915 switch_to_thread instead.
6916
8df01799
PA
69172020-06-18 Pedro Alves <palves@redhat.com>
6918
6919 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
6920 Delete.
6921 (find_signalled_thread()): New, factored out from
6922 linux_make_corefile_notes and adjusted to handle exited threads.
6923 (linux_make_corefile_notes): Adjust to use the new
6924 find_signalled_thread.
6925
41792d68
PA
69262020-06-18 Pedro Alves <palves@redhat.com>
6927
6928 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
6929 of saving/restoring inferior_ptid.
6930
612f258a
TT
69312020-06-17 Tom Tromey <tom@tromey.com>
6932
6933 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
6934 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
6935 declare.
6936 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
6937
efb763a5
SM
69382020-06-15 Simon Marchi <simon.marchi@efficios.com>
6939
6940 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
6941 of partial symtabs.
6942
2951f6c0
SM
69432020-06-17 Simon Marchi <simon.marchi@efficios.com>
6944
6945 * regformats/reg-arm.dat: Remove.
6946 * regformats/reg-bfin.dat: Remove.
6947 * regformats/reg-cris.dat: Remove.
6948 * regformats/reg-crisv32.dat: Remove.
6949 * regformats/reg-m32r.dat: Remove.
6950 * regformats/reg-tilegx.dat: Remove.
6951 * regformats/reg-tilegx32.dat: Remove.
6952
7d458ea5
SM
69532020-06-17 Simon Marchi <simon.marchi@efficios.com>
6954
6955 * features/Makefile (WHICH): Remove arm files.
6956 * regformats/arm/arm-with-iwmmxt.dat: Remove.
6957 * regformats/arm/arm-with-neon.dat: Remove.
6958 * regformats/arm/arm-with-vfpv2.dat: Remove.
6959 * regformats/arm/arm-with-vfpv3.dat: Remove.
6960
3af96c0d
SM
69612020-06-17 Simon Marchi <simon.marchi@efficios.com>
6962
6963 * features/Makefile (XMLTOC): Remove rx.xml.
6964
b25e22fd
PA
69652020-06-17 Pedro Alves <palves@redhat.com>
6966
6967 * gdbthread.h (thread_control_state) <trap_expected> Update
6968 comments.
6969
a78a19b1
AB
69702020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6971
6972 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
6973 ada_language::lookup_symbol_nonlocal.
6974 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
6975 (ada_language::lookup_symbol_nonlocal): New member function,
6976 implementation from ada_lookup_symbol_nonlocal.
6977 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
6978 initializer.
6979 (cplus_language_data): Delete la_lookup_symbol_nonlocal
6980 initializer.
6981 (cplus_language::lookup_symbol_nonlocal): New member function.
6982 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
6983 (minimal_language_data) Likewise.
6984 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
6985 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
6986 initializer.
6987 (d_language::lookup_symbol_nonlocal): New member function.
6988 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
6989 initializer.
6990 (f_language::lookup_symbol_nonlocal): New member function.
6991 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
6992 initializer.
6993 * language.c (unknown_language_data): Likewise.
6994 (auto_language_data): Likewise.
6995 * language.h (language_data): Delete la_lookup_symbol_nonlocal
6996 field.
6997 (language_defn::lookup_symbol_nonlocal): New member function.
6998 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
6999 initializer.
7000 * objc-lang.c (objc_language_data): Likewise.
7001 * opencl-lang.c (opencl_language_data): Likewise.
7002 * p-lang.c (pascal_language_data): Likewise.
7003 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
7004 rust_language::lookup_symbol_nonlocal.
7005 (rust_language_data): Delete la_lookup_symbol_nonlocal
7006 initializer.
7007 (rust_language::lookup_symbol_nonlocal): New member function,
7008 implementation from rust_lookup_symbol_nonlocal.
7009 * symtab.c (lookup_symbol_aux): Update call to
7010 lookup_symbol_nonlocal.
7011 (basic_lookup_symbol_nonlocal): Rename to...
7012 (language_defn::lookup_symbol_nonlocal): ...this, and update
7013 header comment. Remove language_defn parameter, and replace with
7014 uses of `this'.
7015 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
7016
ebe2334e
AB
70172020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7018
7019 * ada-lang.c (ada_language_data): Delete la_value_print_inner
7020 initializer.
7021 (ada_language::value_print_inner): New member function.
7022 * c-lang.c (c_language_data): Delete la_value_print_inner
7023 initializer.
7024 (cplus_language_data): Likewise.
7025 (asm_language_data): Likewise.
7026 (minimal_language_data): Likewise.
7027 * d-lang.c (d_language_data): Likewise.
7028 (d_language::value_print_inner): New member function.
7029 * f-lang.c (f_language_data): Delete la_value_print_inner
7030 initializer.
7031 (f_language::value_print_inner): New member function.
7032 * f-lang.h (f_value_print_innner): Rename to...
7033 (f_value_print_inner): ...this (note spelling of 'inner').
7034 * f-valprint.c (f_value_print_innner): Rename to...
7035 (f_value_print_inner): ...this (note spelling of 'inner').
7036 * go-lang.c (go_language_data): Delete la_value_print_inner
7037 initializer.
7038 (go_language::value_print_inner): New member function.
7039 * language.c (language_defn::value_print_inner): Define new member
7040 function.
7041 (unk_lang_value_print_inner): Delete.
7042 (unknown_language_data): Delete la_value_print_inner initializer.
7043 (unknown_language::value_print_inner): New member function.
7044 (auto_language_data): Delete la_value_print_inner initializer.
7045 (auto_language::value_print_inner): New member function.
7046 * language.h (language_data): Delete la_value_print_inner field.
7047 (language_defn::value_print_inner): Delcare new member function.
7048 * m2-lang.c (m2_language_data): Delete la_value_print_inner
7049 initializer.
7050 (m2_language::value_print_inner): New member function.
7051 * objc-lang.c (objc_language_data): Delete la_value_print_inner
7052 initializer.
7053 * opencl-lang.c (opencl_language_data): Likewise.
7054 * p-lang.c (pascal_language_data): Likewise.
7055 (pascal_language::value_print_inner): New member function.
7056 * rust-lang.c (rust_language_data): Delete la_value_print_inner
7057 initializer.
7058 (rust_language::value_print_inner): New member function.
7059 * valprint.c (do_val_print): Update call to value_print_inner.
7060
a1d1fa3e
AB
70612020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7062
7063 * ada-lang.c (ada_language_data): Delete la_value_print
7064 initializer.
7065 (ada_language::value_print): New member function.
7066 * c-lang.c (c_language_data): Delete la_value_print initializer.
7067 (cplus_language_data): Likewise.
7068 (asm_language_data): Likewise.
7069 (minimal_language_data): Likewise.
7070 * d-lang.c (d_language_data): Likewise.
7071 * f-lang.c (f_language_data): Likewise.
7072 * go-lang.c (go_language_data): Likewise.
7073 * language.c (unk_lang_value_print): Delete.
7074 (language_defn::value_print): Define new member function.
7075 (unknown_language_data): Delete la_value_print initializer.
7076 (unknown_language::value_print): New member function.
7077 (auto_language_data): Delete la_value_print initializer.
7078 (auto_language::value_print): New member function.
7079 * language.h (language_data): Delete la_value_print field.
7080 (language_defn::value_print): Declare new member function.
7081 (LA_VALUE_PRINT): Update call to value_print.
7082 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
7083 * objc-lang.c (objc_language_data): Likewise.
7084 * opencl-lang.c (opencl_language_data): Likewise.
7085 * p-lang.c (pascal_language_data): Likewise.
7086 (pascal_language::value_print): New member function.
7087 * rust-lang.c (rust_language_data): Delete la_value_print
7088 initializer.
7089
f16a9f57
AB
70902020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7091
7092 * ada-lang.c (ada_watch_location_expression): Rename to
7093 ada_language::watch_location_expression.
7094 (ada_language_data): Delete la_watch_location_expression
7095 initializer.
7096 (ada_language::watch_location_expression): New member function,
7097 implementation from ada_watch_location_expression.
7098 * breakpoint.c (watch_command_1): Update call to
7099 watch_location_expression.
7100 * c-lang.c (c_watch_location_expression): Rename to
7101 language_defn::watch_location_expression.
7102 (c_language_data): Delete la_watch_location_expression
7103 initializer.
7104 (cplus_language_data): Likewise.
7105 (asm_language_data): Likewise.
7106 (minimal_language_data): Likewise.
7107 * c-lang.h (c_watch_location_expression): Delete declaration.
7108 * d-lang.c (d_language_data): Delete la_watch_location_expression
7109 initializer.
7110 * f-lang.c (f_language_data): Likewise.
7111 * go-lang.c (go_language_data): Likewise.
7112 * language.c (language_defn::watch_location_expression): Member
7113 function implementation from c_watch_location_expression.
7114 (unknown_language_data): Delete la_watch_location_expression
7115 initializer.
7116 (auto_language_data): Likewise.
7117 * language.h (language_data): Delete la_watch_location_expression
7118 field.
7119 (language_defn::watch_location_expression): Declare new member
7120 function.
7121 * m2-lang.c (m2_language_data): Delete
7122 la_watch_location_expression initializer.
7123 * objc-lang.c (objc_language_data): Likewise.
7124 * opencl-lang.c (opencl_language_data): Likewise.
7125 * p-lang.c (pascal_language_data): Likewise.
7126 * rust-lang.c (rust_watch_location_expression): Rename to
7127 rust_language::watch_location_expression.
7128 (rust_language_data): Delete la_watch_location_expression
7129 initializer.
7130 (rust_language::watch_location_expression): New member function,
7131 implementation from rust_watch_location_expression.
7132
7e56227d
AB
71332020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7134
7135 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
7136 ada_language::collect_symbol_completion_matches.
7137 (ada_language_data): Delete la_collect_symbol_completion_matches
7138 initializer.
7139 (ada_language::collect_symbol_completion_matches): New member
7140 function, implementation from
7141 ada_collect_symbol_completion_matches.
7142 * c-lang.c (c_language_data): Delete
7143 la_collect_symbol_completion_matches initializer.
7144 (cplus_language_data): Likewise.
7145 (asm_language_data): Likewise.
7146 (minimal_language_data): Likewise.
7147 * d-lang.c (d_language_data): Likewise.
7148 * f-lang.c (f_collect_symbol_completion_matches): Rename to
7149 f_language::collect_symbol_completion_matches.
7150 (f_language_data): Delete la_collect_symbol_completion_matches
7151 initializer.
7152 (f_language::collect_symbol_completion_matches) New member
7153 function, implementation from f_collect_symbol_completion_matches.
7154 * go-lang.c (go_language_data): Delete
7155 la_collect_symbol_completion_matches initializer.
7156 * language.c (unknown_language_data): Likewise.
7157 (auto_language_data): Likewise.
7158 * language.h (language_data): Delete
7159 la_collect_symbol_completion_matches field.
7160 (language_defn::collect_symbol_completion_matches): New member
7161 function.
7162 * m2-lang.c (m2_language_data): Delete
7163 la_collect_symbol_completion_matches initializer.
7164 * objc-lang.c (objc_language_data): Likewise.
7165 * opencl-lang.c (opencl_language_data): Likewise.
7166 * p-lang.c (pascal_language_data): Likewise.
7167 * rust-lang.c (rust_language_data): Likewise.
7168 * symtab.c (default_collect_symbol_completion_matches): Delete.
7169 (collect_symbol_completion_matches): Update call to
7170 collect_symbol_completion_matches.
7171 (collect_symbol_completion_matches_type): Likewise.
7172 * symtab.h (default_collect_symbol_completion_matches): Delete
7173 declaration.
7174
53fc67f8
AB
71752020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7176
7177 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
7178 (ada_language_data): Delete la_word_break_characters initializer.
7179 (ada_language::word_break_characters): New member function.
7180 * c-lang.c (c_language_data): Delete la_word_break_characters
7181 initializer.
7182 (cplus_language_data): Likewise.
7183 (asm_language_data): Likewise.
7184 (minimal_language_data): Likewise.
7185 * completer.c: Update global comment.
7186 (advance_to_expression_complete_word_point): Update call to
7187 word_break_characters.
7188 (complete_files_symbols): Likewise.
7189 (complete_line_internal_1): Likewise.
7190 (default_completer_handle_brkchars): Likewise.
7191 (skip_quoted_chars): Likewise.
7192 * d-lang.c (d_language_data): Delete la_word_break_characters
7193 initializer.
7194 * f-lang.c (f_word_break_characters): Delete.
7195 (f_language_data): Delete la_word_break_characters initializer.
7196 (f_language::word_break_characters): New member function.
7197 * go-lang.c (go_language_data): Delete la_word_break_characters
7198 initializer.
7199 * language.c (unknown_language_data): Likewise.
7200 (auto_language_data): Likewise.
7201 * language.h (default_word_break_characters): Move declaration to
7202 earlier in the file.
7203 (language_data): Delete la_word_break_characters field.
7204 (language_defn::word_break_characters): New member function.
7205 * m2-lang.c (m2_language_data): Delete la_word_break_characters
7206 initializer.
7207 * objc-lang.c (objc_language_data): Likewise.
7208 * opencl-lang.c (opencl_language_data): Likewise.
7209 * p-lang.c (pascal_language_data): Likewise.
7210 * rust-lang.c (rust_language_data): Likewise.
7211
c9debfb9
AB
72122020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7213
7214 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
7215 (ada_language_data): Delete la_get_symbol_name_matcher
7216 initializer.
7217 (language_defn::get_symbol_name_matcher_inner): New member
7218 function.
7219 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
7220 initializer.
7221 (cplus_language_data): Likewise.
7222 (cplus_language::get_symbol_name_matcher_inner): New member
7223 function.
7224 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
7225 (minimal_language_data): Likewise.
7226 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
7227 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
7228 initializer.
7229 * dictionary.c (iter_match_first_hashed): Update call to
7230 get_symbol_name_matcher.
7231 (iter_match_next_hashed): Likewise.
7232 (iter_match_next_linear): Likewise.
7233 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
7234 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
7235 initializer.
7236 (f_language::get_symbol_name_matcher_inner): New member function.
7237 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
7238 initializer.
7239 * language.c (default_symbol_name_matcher): Update header comment,
7240 make static.
7241 (language_defn::get_symbol_name_matcher): New definition.
7242 (language_defn::get_symbol_name_matcher_inner): Likewise.
7243 (get_symbol_name_matcher): Delete.
7244 (unknown_language_data): Delete la_get_symbol_name_matcher
7245 initializer.
7246 (auto_language_data): Likewise.
7247 * language.h (language_data): Delete la_get_symbol_name_matcher
7248 field.
7249 (language_defn::get_symbol_name_matcher): New member function.
7250 (language_defn::get_symbol_name_matcher_inner): Likewise.
7251 (default_symbol_name_matcher): Delete declaration.
7252 * linespec.c (find_methods): Update call to
7253 get_symbol_name_matcher.
7254 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
7255 initializer.
7256 * minsyms.c (lookup_minimal_symbol): Update call to
7257 get_symbol_name_matcher.
7258 (iterate_over_minimal_symbols): Likewise.
7259 * objc-lang.c (objc_language_data): Delete
7260 la_get_symbol_name_matcher initializer.
7261 * opencl-lang.c (opencl_language_data): Likewise.
7262 * p-lang.c (pascal_language_data): Likewise.
7263 * psymtab.c (psymbol_name_matches): Update call to
7264 get_symbol_name_matcher.
7265 * rust-lang.c (rust_language_data): Delete
7266 la_get_symbol_name_matcher initializer.
7267 * symtab.c (symbol_matches_search_name): Update call to
7268 get_symbol_name_matcher.
7269 (compare_symbol_name): Likewise.
7270
9a49ad8c
AB
72712020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7272
7273 * ada-lang.c (ada_language_data): Delete la_compute_program
7274 initializer.
7275 * c-lang.c (c_language_data): Likewise.
7276 (c_language::compute_program): New member function.
7277 (cplus_language_data): Delete la_compute_program initializer.
7278 (cplus_language::compute_program): New member function.
7279 (asm_language_data): Delete la_compute_program initializer.
7280 (minimal_language_data): Likewise.
7281 * c-lang.h (c_compute_program): Update comment.
7282 (cplus_compute_program): Likewise.
7283 * compile/compile-c-support.c (c_compute_program): Likewise.
7284 (cplus_compute_program): Likewise.
7285 * compile/compile.c (compile_to_object): Update call to
7286 la_compute_program.
7287 * d-lang.c (d_language_data): Delete la_compute_program
7288 initializer.
7289 * f-lang.c (f_language_data): Likewise.
7290 * go-lang.c (go_language_data): Likewise.
7291 * language.c (unknown_language_data): Likewise.
7292 (auto_language_data): Likewise.
7293 * language.h (language_data): Delete la_compute_program field.
7294 (language_defn::compute_program): New member function.
7295 * m2-lang.c (m2_language_data): Delete la_compute_program
7296 initializer.
7297 * objc-lang.c (objc_language_data): Likewise.
7298 * opencl-lang.c (opencl_language_data): Likewise.
7299 * p-lang.c (pascal_language_data): Likewise.
7300 * rust-lang.c (rust_language_data): Likewise.
7301
eff93b4d
AB
73022020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7303
7304 * ada-lang.c (ada_language_data) Delete
7305 la_class_name_from_physname initializer.
7306 * c-lang.c (c_language_data): Likewise.
7307 (cplus_language_data): Likewise.
7308 (cplus_language::class_name_from_physname): New member function.
7309 (asm_language_data): Delete la_class_name_from_physname
7310 initializer.
7311 (minimal_language_data): Likewise.
7312 * d-lang.c (d_language_data): Likewise.
7313 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
7314 method on language_defn class.
7315 (guess_full_die_structure_name): Likewise.
7316 * f-lang.c (f_language_data): Delete la_class_name_from_physname
7317 initializer.
7318 * go-lang.c (go_language_data): Likewise.
7319 * language.c (language_class_name_from_physname): Delete.
7320 (unk_lang_class_name): Delete.
7321 (unknown_language_data): Delete la_class_name_from_physname
7322 initializer.
7323 (auto_language_data): Likewise.
7324 * language.h (language_data): Delete la_class_name_from_physname
7325 field.
7326 (language_defn::class_name_from_physname): New function.
7327 (language_class_name_from_physname): Delete declaration.
7328 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
7329 initializer.
7330 * objc-lang.c (objc_language_data): Likewise.
7331 * opencl-lang.c (opencl_language_data): Likewise.
7332 * p-lang.c (pascal_language_data): Likewise.
7333 * rust-lang.c (rust_language_data): Likewise.
7334
de543742
TT
73352020-06-16 Tom Tromey <tom@tromey.com>
7336
7337 * tui/tui-data.h (STATUS_NAME): New macro.
7338 * tui/tui-layout.c (tui_remove_some_windows)
7339 (initialize_known_windows, tui_register_window)
7340 (tui_layout_split::remove_windows, initialize_layouts)
7341 (tui_new_layout_command): Don't use hard-coded window names.
7342
a350efd4
TT
73432020-06-16 Tom Tromey <tom@tromey.com>
7344
7345 PR tui/25348:
7346 * tui/tui.c (tui_ensure_readline_initialized): Rename from
7347 tui_initialize_readline. Only run once. Call rl_initialize.
7348 * tui/tui.h (tui_ensure_readline_initialized): Rename from
7349 tui_initialize_readline.
7350 * tui/tui-io.c (tui_setup_io): Call
7351 tui_ensure_readline_initialized.
7352 * tui/tui-interp.c (tui_interp::init): Update.
7353
39ec0490
TT
73542020-06-16 Tom Tromey <tom@tromey.com>
7355
7356 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
7357 Also preserve the status window.
7358
d2d1ea20
TT
73592020-06-16 Tom Tromey <tom@tromey.com>
7360
7361 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
7362 where m_window==nullptr.
7363
66920317
TT
73642020-06-15 Tom Tromey <tromey@adacore.com>
7365
7366 * windows-nat.c (windows_nat::handle_output_debug_string):
7367 Update.
7368 (windows_nat::handle_ms_vc_exception): Update.
7369 * target.h (target_read_string): Change API.
7370 * target.c (target_read_string): Change API.
7371 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
7372 Update.
7373 * solib-frv.c (frv_current_sos): Update.
7374 * solib-dsbt.c (dsbt_current_sos): Update.
7375 * solib-darwin.c (darwin_current_sos): Update.
7376 * linux-thread-db.c (inferior_has_bug): Update.
7377 * expprint.c (print_subexp_standard): Update.
7378 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
7379 (ada_exception_message_1): Update.
7380
a5d871dd
TT
73812020-06-15 Tom Tromey <tromey@adacore.com>
7382
7383 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
7384
670e35fa
TT
73852020-06-15 Tom Tromey <tromey@adacore.com>
7386
7387 * valprint.c (read_string): Update comment.
7388 * target.c (MIN): Remove.
7389 (target_read_string): Rewrite.
7390
f5272a3b
TT
73912020-06-15 Tom Tromey <tromey@adacore.com>
7392
7393 * corefile.c (read_memory_string): Remove.
7394 * ada-valprint.c (ada_value_print_ptr): Update.
7395 * ada-lang.h (ada_tag_name): Change return type.
7396 * ada-lang.c (type_from_tag): Update.
7397 (ada_tag_name_from_tsd): Change return type. Use
7398 target_read_string.
7399 (ada_tag_name): Likewise.
7400 * gdbcore.h (read_memory_string): Don't declare.
7401
2c074f49
HD
74022020-06-14 Hannes Domani <ssbssa@yahoo.de>
7403
7404 * symtab.c (rbreak_command): Ignore Windows drive colon.
7405
6a17d503
SM
74062020-06-12 Simon Marchi <simon.marchi@efficios.com>
7407
7408 * NEWS: Mention removed GDBserver host support.
7409
453c733f
NC
74102020-06-12 Nelson Chu <nelson.chu@sifive.com>
7411
7412 * features/riscv/rebuild-csr-xml.sh: Updated.
7413
2b4e6a3f
TT
74142020-06-11 Tom Tromey <tom@tromey.com>
7415
7416 PR gdb/18318:
7417 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
7418
4412332f
JG
74192020-06-09 Jonny Grant <jg@jguk.org>
74202020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
7421
7422 * main.c (captured_main_1): Don't print new line after help.
7423 (print_gdb_help): add mailing list and IRC channel information
7424 to --help. Add new lines between items in the footer. Remove
7425 quotes around bug url.
7426
2f33032a
KS
74272020-06-11 Keith Seitz <keiths@redhat.com>
7428
7429 PR gdb/21356
7430 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
7431 Resolve typedefs for type length calculations.
7432
7ab96794
TV
74332020-06-10 Tom de Vries <tdevries@suse.de>
7434
7435 PR ada/24713
7436 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
7437 (write_psymbols): Enable .gdb_index for ada.
7438 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
7439 ada.
7440
e5f3ece2
TV
74412020-06-10 Tom de Vries <tdevries@suse.de>
7442
7443 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
7444 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
7445 namei" instead of "const char *name" argument.
7446 (dw2_map_matching_symbols): Use "offset_type namei" variant of
7447 dw2_symtab_iter_init.
7448
940da03e
SM
74492020-06-08 Simon Marchi <simon.marchi@efficios.com>
7450
7451 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
7452 to use type::field and field::type instead.
7453
b6cdac4b
SM
74542020-06-08 Simon Marchi <simon.marchi@efficios.com>
7455
7456 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
7457 to use field::type instead.
7458
5d14b6e5
SM
74592020-06-08 Simon Marchi <simon.marchi@efficios.com>
7460
7461 * gdbtypes.h (struct field) <type, set_type>: New methods.
7462 Rename `type` field to...
7463 <m_type>: ... this. Change references throughout to use type or
7464 set_type methods.
7465 (FIELD_TYPE): Use field::type. Change call sites that modify
7466 the field's type to use field::set_type instead.
7467
3d967001
SM
74682020-06-08 Simon Marchi <simon.marchi@efficios.com>
7469
7470 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
7471 to use type::index_type instead.
7472
262abc0d
SM
74732020-06-08 Simon Marchi <simon.marchi@efficios.com>
7474
7475 * gdbtypes.h (struct type) <index_type, set_index_type>: New
7476 methods.
7477 (TYPE_INDEX_TYPE): Use type::index_type.
7478 * gdbtypes.c (create_array_type_with_stride): Likewise.
7479
82836c92
TT
74802020-06-07 Tom Tromey <tom@tromey.com>
7481
7482 * valprint.c (generic_val_print_float): Remove "embedded_offset"
7483 parameter.
7484 (generic_value_print): Update.
7485
940dace9
AB
74862020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
7487
7488 Revert commit 982a38f60b0.
7489 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
7490
982a38f6
AB
74912020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
7492
7493 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
7494 avoid use after free.
7495
82f06518
TV
74962020-06-05 Tom de Vries <tdevries@suse.de>
7497
7498 * NEWS: Fix typos.
7499
f8c41851
SM
75002020-06-04 Simon Marchi <simon.marchi@efficios.com>
7501
7502 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
7503 the per_bfd object.
7504 (dwarf2_read_debug_names): Likewise.
7505 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
7506 object when re-using a per_bfd object with an index.
7507
f9b5d5ea
TV
75082020-06-03 Tom de Vries <tdevries@suse.de>
7509
7510 PR symtab/26046
7511 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
7512 children for C++.
7513 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
7514 DW_TAG_subprogram.
7515
f6eee2d0
AB
75162020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7517
7518 * ada-lang.c (ada_language_data): Delete skip_trampoline
7519 initializer.
7520 * c-lang.c (c_language_data): Likewise.
7521 (cplus_language_data): Likewise.
7522 (cplus_language::skip_trampoline): New member function.
7523 (asm_language_data): Delete skip_trampoline initializer.
7524 (minimal_language_data): Likewise.
7525 * d-lang.c (d_language_data): Likewise.
7526 * f-lang.c (f_language_data): Likewise.
7527 * go-lang.c (go_language_data): Likewise.
7528 * language.c (unk_lang_trampoline): Delete function.
7529 (skip_language_trampoline): Update.
7530 (unknown_language_data): Delete skip_trampoline initializer.
7531 (auto_language_data): Likewise.
7532 * language.h (language_data): Delete skip_trampoline field.
7533 (language_defn::skip_trampoline): New function.
7534 * m2-lang.c (m2_language_data): Delete skip_trampoline
7535 initializer.
7536 * objc-lang.c (objc_skip_trampoline): Delete function, move
7537 implementation to objc_language::skip_trampoline.
7538 (objc_language_data): Delete skip_trampoline initializer.
7539 (objc_language::skip_trampoline): New member function with
7540 implementation from objc_skip_trampoline.
7541 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
7542 initializer.
7543 * p-lang.c (pascal_language_data): Likewise.
7544 * rust-lang.c (rust_language_data): Likewise.
7545
0a50df5d
AB
75462020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7547
7548 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
7549 (ada_language::demangle): New member function.
7550 * c-lang.c (c_language_data): Delete la_demangle initializer.
7551 (cplus_language_data): Delete la_demangle initializer.
7552 (cplus_language::demangle): New member function.
7553 (asm_language_data): Delete la_demangle initializer.
7554 (minimal_language_data): Delete la_demangle initializer.
7555 * d-lang.c (d_language_data): Delete la_demangle initializer.
7556 (d_language::demangle): New member function.
7557 * f-lang.c (f_language_data): Delete la_demangle initializer.
7558 (f_language::demangle): New member function.
7559 * go-lang.c (go_language_data): Delete la_demangle initializer.
7560 (go_language::demangle): New member function.
7561 * language.c (language_demangle): Update.
7562 (unk_lang_demangle): Delete.
7563 (unknown_language_data): Delete la_demangle initializer.
7564 (unknown_language::demangle): New member function.
7565 (auto_language_data): Delete la_demangle initializer.
7566 (auto_language::demangle): New member function.
7567 * language.h (language_data): Delete la_demangle field.
7568 (language_defn::demangle): New function.
7569 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
7570 * objc-lang.c (objc_language_data): Delete la_demangle
7571 initializer.
7572 (objc_language::demangle): New member function.
7573 * opencl-lang.c (opencl_language_data): Delete la_demangle
7574 initializer.
7575 * p-lang.c (pascal_language_data): Likewise.
7576 * rust-lang.c (rust_language_data): Likewise.
7577 (rust_language::demangle): New member function.
7578
fbfb0a46
AB
75792020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7580
7581 * ada-lang.c (ada_language_data): Delete la_print_type
7582 initializer.
7583 (ada_language::print_type): New member function.
7584 * c-lang.c (c_language_data): Delete la_print_type initializer.
7585 (c_language::print_type): New member function.
7586 (cplus_language_data): Delete la_print_type initializer.
7587 (cplus_language::print_type): New member function.
7588 (asm_language_data): Delete la_print_type initializer.
7589 (asm_language::print_type): New member function.
7590 (minimal_language_data): Delete la_print_type initializer.
7591 (minimal_language::print_type): New member function.
7592 * d-lang.c (d_language_data): Delete la_print_type initializer.
7593 (d_language::print_type): New member function.
7594 * f-lang.c (f_language_data): Delete la_print_type initializer.
7595 (f_language::print_type): New member function.
7596 * go-lang.c (go_language_data): Delete la_print_type initializer.
7597 (go_language::print_type): New member function.
7598 * language.c (unk_lang_print_type): Delete.
7599 (unknown_language_data): Delete la_print_type initializer.
7600 (unknown_language::print_type): New member function.
7601 (auto_language_data): Delete la_print_type initializer.
7602 (auto_language::print_type): New member function.
7603 * language.h (language_data): Delete la_print_type field.
7604 (language_defn::print_type): New function.
7605 (LA_PRINT_TYPE): Update.
7606 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
7607 (m2_language::print_type): New member function.
7608 * objc-lang.c (objc_language_data): Delete la_print_type
7609 initializer.
7610 (objc_language::print_type): New member function.
7611 * opencl-lang.c (opencl_print_type): Delete, implementation moved
7612 to opencl_language::print_type.
7613 (opencl_language_data): Delete la_print_type initializer.
7614 (opencl_language::print_type): New member function, implementation
7615 from opencl_print_type.
7616 * p-lang.c (pascal_language_data): Delete la_print_type
7617 initializer.
7618 (pascal_language::print_type): New member function.
7619 * rust-lang.c (rust_print_type): Delete, implementation moved to
7620 rust_language::print_type.
7621 (rust_language_data): Delete la_print_type initializer.
7622 (rust_language::print_type): New member function, implementation
7623 from rust_print_type.
7624
6f827019
AB
76252020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7626
7627 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
7628 implementation moves to...
7629 (ada_language::sniff_from_mangled_name): ...here. Update return
7630 type.
7631 (ada_language_data): Delete la_sniff_from_mangled_name
7632 initializer.
7633 * c-lang.c (c_language_data): Likewise.
7634 (cplus_language_data): Likewise.
7635 (cplus_language::sniff_from_mangled_name): New member function,
7636 implementation taken from gdb_sniff_from_mangled_name.
7637 (asm_language_data): Delete la_sniff_from_mangled_name
7638 initializer.
7639 (minimal_language_data): Likewise.
7640 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
7641 implementation moves to cplus_language::sniff_from_mangled_name.
7642 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
7643 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
7644 moves to...
7645 (d_language::sniff_from_mangled_name): ...here.
7646 (d_language_data): Delete la_sniff_from_mangled_name initializer.
7647 * f-lang.c (f_language_data): Likewise.
7648 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
7649 moves to...
7650 (go_language::sniff_from_mangled_name): ...here.
7651 (go_language_data): Delete la_sniff_from_mangled_name initializer.
7652 * language.c (language_sniff_from_mangled_name): Delete.
7653 (unknown_language_data): Delete la_sniff_from_mangled_name
7654 initializer.
7655 (auto_language_data): Likewise.
7656 * language.h (language_data): Delete la_sniff_from_mangled_name
7657 field.
7658 (language_defn::sniff_from_mangled_name): New function.
7659 (language_sniff_from_mangled_name): Delete declaration.
7660 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
7661 field.
7662 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
7663 implementation moves to...
7664 (objc_language::sniff_from_mangled_name): ...here.
7665 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
7666 * opencl-lang.c (opencl_language_data): Likewise.
7667 * p-lang.c (pascal_language_data): Likewise.
7668 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
7669 implementation moves to...
7670 (rust_language::sniff_from_mangled_name): ...here.
7671 (rust_language_data): Delete la_sniff_from_mangled_name
7672 initializer.
7673 * symtab.c (symbol_find_demangled_name): Call
7674 sniff_from_mangled_name member function.
7675
fb8006fd
AB
76762020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7677
7678 * ada-lang.c (ada_language_data): Delete la_search_name_hash
7679 initializer.
7680 * c-lang.c (c_language_data): Likewise.
7681 (cplus_language_data): Likewise.
7682 (cplus_language::search_name_hash): New member function.
7683 (asm_language_data): Delete la_search_name_hash initializer.
7684 (minimal_language_data): Likewise.
7685 * d-lang.c (d_language_data): Likewise.
7686 * dictionary.c (default_search_name_hash): Rename to...
7687 (language_defn::search_name_hash): ...this.
7688 * f-lang.c (f_language_data): Likewise.
7689 (f_language::search_name_hash): New member function.
7690 * go-lang.c (go_language_data): Delete la_search_name_hash
7691 initializer.
7692 * language.c (unknown_language_data): Likewise.
7693 (auto_language_data): Likewise.
7694 * language.h (struct language_data): Delete la_search_name_hash
7695 field.
7696 (language_defn::search_name_hash): Declare new member function.
7697 (default_search_name_hash): Delete declaration.
7698 * m2-lang.c (m2_language_data): Delete la_search_name_hash
7699 initializer.
7700 * objc-lang.c (objc_language_data): Likewise.
7701 * opencl-lang.c (opencl_language_data): Likewise.
7702 * p-lang.c (pascal_language_data): Likewise.
7703 * rust-lang.c (rust_language_data): Likewise.
7704 * symtab.c (search_name_hash): Update call.
7705
8e25bafe
AB
77062020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7707
7708 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
7709 initializer.
7710 * c-lang.c (class compile_instance): Declare.
7711 (c_language_data): Delete la_get_compile_instance initializer.
7712 (c_language::get_compile_instance): New member function.
7713 (cplus_language_data): Delete la_get_compile_instance initializer.
7714 (cplus_language::get_compile_instance): New member function.
7715 (asm_language_data): Delete la_get_compile_instance initializer.
7716 (minimal_language_data): Likewise.
7717 * c-lang.h (c_get_compile_context): Update comment.
7718 (cplus_get_compile_context): Update comment.
7719 * compile/compile.c (compile_to_object): Update calls, don't rely
7720 on function pointer being NULL.
7721 * d-lang.c (d_language_data): Delete la_get_compile_instance
7722 initializer.
7723 * f-lang.c (f_language_data): Likewise.
7724 * go-lang.c (go_language_data): Likewise.
7725 * language.c (unknown_language_data): Likewise.
7726 (auto_language_data): Likewise.
7727 * language.h (language_data): Delete la_get_compile_instance field.
7728 (language_defn::get_compile_instance): New member function.
7729 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
7730 initializer.
7731 * objc-lang.c (objc_language_data): Likewise.
7732 * opencl-lang.c (opencl_language_data): Likewise.
7733 * p-lang.c (pascal_language_data): Likewise.
7734 * rust-lang.c (rust_language_data): Likewise.
7735
4009ee92
AB
77362020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7737
7738 * ada-lang.c (ada_add_all_symbols): Update comment.
7739 (ada_iterate_over_symbols): Delete, move implementation to...
7740 (ada_language::iterate_over_symbols): ...here, a new member
7741 function, rewrite to use range based for loop.
7742 (ada_language_data): Delete la_iterate_over_symbols initializer.
7743 * c-lang.c (c_language_data): Likewise.
7744 (cplus_language_data): Likewise.
7745 (asm_language_data): Likewise.
7746 (minimal_language_data): Likewise.
7747 * d-lang.c (d_language_data): Likewise.
7748 * f-lang.c (f_language_data): Likewise.
7749 * go-lang.c (go_language_data): Likewise.
7750 * language.c (unknown_language_data): Likewise.
7751 (auto_language_data): Likewise.
7752 * language.h (language_data): Delete la_iterate_over_symbols field.
7753 (language_defn::iterate_over_symbols): New member function.
7754 (LA_ITERATE_OVER_SYMBOLS): Update.
7755 * linespec.c (iterate_over_all_matching_symtabs): Update.
7756 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
7757 initializer.
7758 * objc-lang.c (objc_language_data): Likewise.
7759 * opencl-lang.c (opencl_language_data): Likewise.
7760 * p-lang.c (pascal_language_data): Likewise.
7761 * rust-lang.c (rust_language_data): Likewise.
7762
54f4ca46
AB
77632020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7764
7765 * ada-lang.c (ada_language_data): Delete
7766 la_lookup_transparent_type initializer.
7767 * c-lang.c (c_language_data): Likewise.
7768 (cplus_language_data): Likewise.
7769 (cplus_language::lookup_transparent_type): New member function.
7770 (asm_language_data): Delete la_lookup_transparent_type
7771 initializer.
7772 (minimal_language_data): Likewise.
7773 * d-lang.c (d_language_data): Likewise.
7774 * f-lang.c (f_language_data): Likewise.
7775 * go-lang.c (go_language_data): Likewise.
7776 * language.c (unknown_language_data): Likewise.
7777 (auto_language_data): Likewise.
7778 * language.h (struct language_data): Delete
7779 la_lookup_transparent_type field.
7780 (language_defn::lookup_transparent_type): New member function.
7781 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
7782 initializer.
7783 * objc-lang.c (objc_language_data): Likewise.
7784 * opencl-lang.c (opencl_language_data): Likewise.
7785 * p-lang.c (pascal_language_data): Likewise.
7786 * rust-lang.c (rust_language_data): Likewise.
7787 * symtab.c (symbol_matches_domain): Update call.
7788
1fb314aa
AB
77892020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7790
7791 * ada-lang.c (ada_language_arch_info): Delete function, move
7792 implementation to...
7793 (ada_language::language_arch_info): ...here, a new member
7794 function.
7795 (ada_language_data): Delete la_language_arch_info.
7796 * c-lang.c (c_language_data): Likewise.
7797 (c_language::language_arch_info): New member function.
7798 (cplus_language_arch_info): Delete function, move
7799 implementation to...
7800 (cplus_language::language_arch_info): ...here, a new member
7801 function.
7802 (cplus_language_data): Delete la_language_arch_info.
7803 (asm_language_data): Likewise.
7804 (asm_language::language_arch_info): New member function.
7805 (minimal_language_data): Delete la_language_arch_info.
7806 (minimal_language::language_arch_info): New member function.
7807 * d-lang.c (d_language_arch_info): Delete function, move
7808 implementation to...
7809 (d_language::language_arch_info): ...here, a new member
7810 function.
7811 (d_language_data): Delete la_language_arch_info.
7812 * f-lang.c (f_language_arch_info): Delete function, move
7813 implementation to...
7814 (f_language::language_arch_info): ...here, a new member
7815 function.
7816 (f_language_data): Delete la_language_arch_info.
7817 * go-lang.c (go_language_arch_info): Delete function, move
7818 implementation to...
7819 (go_language::language_arch_info): ...here, a new member
7820 function.
7821 (go_language_data): Delete la_language_arch_info.
7822 * language.c (unknown_language_data): Likewise.
7823 (unknown_language::language_arch_info): New member function.
7824 (auto_language_data): Delete la_language_arch_info.
7825 (auto_language::language_arch_info): New member function.
7826 (language_gdbarch_post_init): Update call to
7827 la_language_arch_info.
7828 * language.h (language_data): Delete la_language_arch_info
7829 function pointer.
7830 (language_defn::language_arch_info): New function.
7831 * m2-lang.c (m2_language_arch_info): Delete function, move
7832 implementation to...
7833 (m2_language::language_arch_info): ...here, a new member
7834 function.
7835 (m2_language_data): Delete la_language_arch_info.
7836 * objc-lang.c (objc_language_arch_info): Delete function, move
7837 implementation to...
7838 (objc_language::language_arch_info): ...here, a new member
7839 function.
7840 (objc_language_data): Delete la_language_arch_info.
7841 * opencl-lang.c (opencl_language_arch_info): Delete function, move
7842 implementation to...
7843 (opencl_language::language_arch_info): ...here, a new member
7844 function.
7845 (opencl_language_data): Delete la_language_arch_info.
7846 * p-lang.c (pascal_language_arch_info): Delete function, move
7847 implementation to...
7848 (pascal_language::language_arch_info): ...here, a new member
7849 function.
7850 (pascal_language_data): Delete la_language_arch_info.
7851 * rust-lang.c (rust_language_arch_info): Delete function, move
7852 implementation to...
7853 (rust_language::language_arch_info): ...here, a new member
7854 function.
7855 (rust_language_data): Delete la_language_arch_info.
7856
48448202
AB
78572020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7858
7859 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
7860 initializer.
7861 * c-lang.c (c_language_data): Likewise.
7862 (cplus_language_data): Likewise.
7863 (cplus_language::pass_by_reference_info): New method.
7864 (asm_language_data): Delete la_pass_by_reference initializer.
7865 (minimal_language_data): Likewise.
7866 * cp-abi.c (cp_pass_by_reference): Remove use of
7867 default_pass_by_reference.
7868 * d-lang.c (d_language_data): Likewise.
7869 * f-lang.c (f_language_data): Likewise.
7870 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
7871 default_pass_by_reference.
7872 * go-lang.c (go_language_data): Likewise.
7873 * language.c (language_pass_by_reference): Update.
7874 (default_pass_by_reference): Delete.
7875 (unknown_language_data): Delete la_pass_by_reference
7876 initializer.
7877 (auto_language_data): Likewise.
7878 * language.h (struct language_data): Delete la_pass_by_reference
7879 field.
7880 (language_defn::pass_by_reference_info): New member function.
7881 (default_pass_by_reference): Delete declaration.
7882 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
7883 initializer.
7884 * objc-lang.c (objc_language_data): Likewise.
7885 * opencl-lang.c (opencl_language_data): Likewise.
7886 * p-lang.c (pascal_language_data): Likewise.
7887 * rust-lang.c (rust_language_data): Likewise.
7888
15e5fd35
AB
78892020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7890
7891 * ada-lang.c (ada_read_var_value): Delete function, move
7892 implementation to...
7893 (ada_language::read_var_value): ...here.
7894 (ada_language_data): Delete la_read_var_value initializer.
7895 * c-lang.c (c_language_data): Likewise.
7896 (cplus_language_data): Likewise.
7897 (minimal_language_data): Likewise.
7898 * d-lang.c (d_language_data): Likewise.
7899 * f-lang.c (f_language_data): Likewise.
7900 * findvar.c (default_read_var_value): Rename to...
7901 (language_defn::read_var_value): ...this.
7902 * findvar.c (read_var_value): Update header comment, and change to
7903 call member function instead of function pointer.
7904 * go-lang.c (go_language_data): Likewise.
7905 * language.c (unknown_language_data): Delete la_read_var_value
7906 initializer.
7907 (auto_language_data): Likewise.
7908 * language.h (struct language_data): Delete la_read_var_value
7909 field.
7910 (language_defn::read_var_value): New member function.
7911 (default_read_var_value): Delete declaration.
7912 * m2-lang.c (m2_language_data): Delete la_read_var_value
7913 initializer.
7914 * objc-lang.c (objc_language_data): Likewise.
7915 * opencl-lang.c (opencl_language_data): Likewise.
7916 * p-lang.c (pascal_language_data): Likewise.
7917 * rust-lang.c (rust_language_data): Likewise.
7918 * value.h (default_read_var_value): Delete declaration.
7919
5bd40f2a
AB
79202020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7921
7922 * ada-lang.c (ada_print_array_index): Delete function, move
7923 implementation to...
7924 (ada_language::print_array_index): ...here.
7925 (ada_language_data): Delete la_print_array_index initializer.
7926 * c-lang.c (c_language_data): Likewise.
7927 (cplus_language_data): Likewise.
7928 (minimal_language_data): Likewise.
7929 * d-lang.c (d_language_data): Likewise.
7930 * f-lang.c (f_language_data): Likewise.
7931 * go-lang.c (go_language_data): Likewise.
7932 * language.c (default_print_array_index): Delete function, move
7933 implementation to...
7934 (language_defn::print_array_index): ...here.
7935 (unknown_language_data): Delete la_print_array_index initializer.
7936 (auto_language_data): Likewise.
7937 * language.h (struct language_data): Delete la_print_array_index
7938 field.
7939 (language_defn::print_array_index): New member function.
7940 (LA_PRINT_ARRAY_INDEX): Update.
7941 (default_print_array_index): Delete declaration.
7942 * m2-lang.c (m2_language_data): Delete la_print_array_index
7943 initializer.
7944 * objc-lang.c (objc_language_data): Likewise.
7945 * opencl-lang.c (opencl_language_data): Likewise.
7946 * p-lang.c (pascal_language_data): Likewise.
7947 * rust-lang.c (rust_language_data): Likewise.
7948
0874fd07
AB
79492020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7950
7951 * gdb/ada-lang.c (ada_language_defn): Convert to...
7952 (ada_language_data): ...this.
7953 (class ada_language): New class.
7954 (ada_language_defn): New static global.
7955 * gdb/c-lang.c (c_language_defn): Convert to...
7956 (c_language_data): ...this.
7957 (class c_language): New class.
7958 (c_language_defn): New static global.
7959 (cplus_language_defn): Convert to...
7960 (cplus_language_data): ...this.
7961 (class cplus_language): New class.
7962 (cplus_language_defn): New static global.
7963 (asm_language_defn): Convert to...
7964 (asm_language_data): ...this.
7965 (class asm_language): New class.
7966 (asm_language_defn): New static global.
7967 (minimal_language_defn): Convert to...
7968 (minimal_language_data): ...this.
7969 (class minimal_language): New class.
7970 (minimal_language_defn): New static global.
7971 * gdb/d-lang.c (d_language_defn): Convert to...
7972 (d_language_data): ...this.
7973 (class d_language): New class.
7974 (d_language_defn): New static global.
7975 * gdb/f-lang.c (f_language_defn): Convert to...
7976 (f_language_data): ...this.
7977 (class f_language): New class.
7978 (f_language_defn): New static global.
7979 * gdb/go-lang.c (go_language_defn): Convert to...
7980 (go_language_data): ...this.
7981 (class go_language): New class.
7982 (go_language_defn): New static global.
7983 * gdb/language.c (unknown_language_defn): Remove declaration.
7984 (current_language): Initialize to nullptr, real initialization is
7985 moved to _initialize_language.
7986 (languages): Delete global.
7987 (language_defn::languages): Define.
7988 (set_language_command): Use language_defn::languages.
7989 (set_language): Likewise.
7990 (range_error): Likewise.
7991 (language_enum): Likewise.
7992 (language_def): Likewise.
7993 (add_set_language_command): Use language_def::languages for the
7994 language list, and language_def to lookup language pointers.
7995 (skip_language_trampoline): Use language_defn::languages.
7996 (unknown_language_defn): Convert to...
7997 (unknown_language_data): ...this.
7998 (class unknown_language): New class.
7999 (unknown_language_defn): New static global.
8000 (auto_language_defn): Convert to...
8001 (auto_language_data): ...this.
8002 (class auto_language): New class.
8003 (auto_language_defn): New static global.
8004 (language_gdbarch_post_init): Use language_defn::languages.
8005 (_initialize_language): Initialize current_language.
8006 * gdb/language.h (struct language_defn): Rename to...
8007 (struct language_data): ...this.
8008 (struct language_defn): New.
8009 (auto_language_defn): Delete.
8010 (unknown_language_defn): Delete.
8011 (minimal_language_defn): Delete.
8012 (ada_language_defn): Delete.
8013 (asm_language_defn): Delete.
8014 (c_language_defn): Delete.
8015 (cplus_language_defn): Delete.
8016 (d_language_defn): Delete.
8017 (f_language_defn): Delete.
8018 (go_language_defn): Delete.
8019 (m2_language_defn): Delete.
8020 (objc_language_defn): Delete.
8021 (opencl_language_defn): Delete.
8022 (pascal_language_defn): Delete.
8023 (rust_language_defn): Delete.
8024 * gdb/m2-lang.c (m2_language_defn): Convert to...
8025 (m2_language_data): ...this.
8026 (class m2_language): New class.
8027 (m2_language_defn): New static global.
8028 * gdb/objc-lang.c (objc_language_defn): Convert to...
8029 (objc_language_data): ...this.
8030 (class objc_language): New class.
8031 (objc_language_defn): New static global.
8032 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
8033 (opencl_language_data): ...this.
8034 (class opencl_language): New class.
8035 (opencl_language_defn): New static global.
8036 * gdb/p-lang.c (pascal_language_defn): Convert to...
8037 (pascal_language_data): ...this.
8038 (class pascal_language): New class.
8039 (pascal_language_defn): New static global.
8040 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
8041 language pointer, update comment format.
8042 * gdb/rust-lang.c (rust_language_defn): Convert to...
8043 (rust_language_data): ...this.
8044 (class rust_language): New class.
8045 (rust_language_defn): New static global.
8046
1313c56e
AB
80472020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
8048
8049 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
8050 member variable.
8051 <m_stmt_at_address>: New member variable.
8052 (lnp_state_machine::record_line): Don't record some lines, update
8053 tracking of is_stmt at the same address.
8054 (lnp_state_machine::lnp_state_machine): Initialise new member
8055 variables.
8056
b7ed9f3d
ST
80572020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
8058
8059 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
8060 "-include gnu-nat-mig.h".
8061 * gnu-nat-mig.h: New file.
8062 * gnu-nat.c: Include "gnu-nat-mig.h".
8063 (exc_server, msg_reply_server, notify_server,
8064 process_reply_server): Remove declarations.
8065
14a8ad62
ST
80662020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8067
8068 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
8069 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
8070 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
8071 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
8072 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
8073 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
8074 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
8075 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
8076 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
8077 to gnu_nat_target class.
8078 * gnu-nat.c: Likewise.
8079 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
8080 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
8081 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
8082 object.
8083 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
8084 instead of `gnu_target'.
8085
0af5e106
ST
80862020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8087
8088 * i386-gnu-tdep.c: Include "gdbcore.h"
8089 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
8090 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
8091 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
8092 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
8093 i386_gnu_sigcontext_addr): New functions
8094 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
8095 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
8096 tdep.
8097
078f2fc9
ST
80982020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8099
8100 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
8101 before fork_inferior call. Avoid calling it if target_is_pushed returns
8102 true.
8103
53dff92c
ST
81042020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8105
8106 * gnu-nat.h (gnu_target): New variable declaration.
8107 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
8108 gnu_target.
8109 * gnu-nat.c (gnu_target): New variable.
8110 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
8111 add_thread_silent, and add_thread calls.
8112 (gnu_nat_target::create_inferior): Pass gnu_target to
8113 add_thread_silent, thread_change_ptid call.
8114 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
8115 call.
8116
5a8b8627
ST
81172020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8118
8119 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
8120 (gnu_nat_target::find_memory_regions): Remove unused
8121 `old_address' variable.
8122
366f550a
ST
81232020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8124
8125 * gnu-nat.c: Include "gdbarch.h".
8126
f14871bf
ST
81272020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8128
8129 * reply_mig_hack.awk (Error return): Cast function through
8130 void *, to bypass compiler function call check.
8131
c6887cfb
ST
81322020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8133
8134 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
8135 $(srcdir)/reply_mig_hack.awk.
8136
6930bffe
ST
81372020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8138
8139 * gnu-nat.h (gnu_debug_flag): Set type to bool.
8140
112c22ed
JG
81412020-05-30 Jonny Grant <jg@jguk.org>
8142
8143 * configure.ac (ACX_BUGURL): change bug URL to https.
8144
f68f85b5
PA
81452020-05-30 Pedro Alves <palves@redhat.com>
8146
8147 * cp-support.c (replace_typedefs_template): New.
8148 (replace_typedefs_qualified_name): Handle
8149 DEMANGLE_COMPONENT_TEMPLATE.
8150
976ca316
SM
81512020-05-29 Simon Marchi <simon.marchi@efficios.com>
8152
8153 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
8154 dwarf2/index-cache.h, dwarf2/index-write.c,
8155 dwarf2/index-write.h, dwarf2/line-header.c,
8156 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
8157 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
8158 variables and fields from `dwarf2_per_objfile` to just
8159 `per_objfile` throughout.
8160
989ade05
SM
81612020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
8162
8163 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8164 <push_dwarf_reg_entry_value>: Add comment.
8165
c47bae85
KB
81662020-05-28 Kevin Buettner <kevinb@redhat.com>
8167 Keith Seitz <keiths@redhat.com>
8168
8169 * python/python.c (do_start_initialization): Call PyEval_SaveThread
8170 instead of PyEval_ReleaseLock.
8171 (class gdbpy_gil): Move to earlier in file.
8172 (finalize_python): Set gdb_python_initialized.
8173 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
8174 when not initialized.
8175
44486dcf
SM
81762020-05-28 Simon Marchi <simon.marchi@efficios.com>
8177
8178 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8179 <push_dwarf_reg_entry_value>: Remove assert. Override
8180 per_objfile with caller_per_objfile.
8181
f030440d
TV
81822020-05-28 Tom de Vries <tdevries@suse.de>
8183
8184 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
8185 PR gold/15646 workaround to symbol kind "type".
8186
f0fbb768
TT
81872020-05-27 Tom Tromey <tromey@adacore.com>
8188
8189 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
8190
af0b2a3e
TT
81912020-05-27 Tom Tromey <tromey@adacore.com>
8192
8193 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
8194 Use htab_find_with_hash.
8195 <add_abbrev>: Remove "abbrev_number" parameter.
8196 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
8197 "abbrev_number" parameter. Use htab_find_slot_with_hash.
8198 (hash_abbrev): Add comment.
8199 (abbrev_table::lookup_abbrev): Move to header file.
8200 (abbrev_table::read): Update.
8201
7d00ffec
TT
82022020-05-27 Tom Tromey <tromey@adacore.com>
8203
8204 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
8205 method.
8206 <canonical_name>: New member.
8207 <raw_name>: Rename from "name".
8208 (partial_die_info): Initialize canonical_name.
8209 (scan_partial_symbols): Check raw_name.
8210 (partial_die_parent_scope, partial_die_full_name)
8211 (add_partial_symbol, add_partial_subprogram)
8212 (add_partial_enumeration, load_partial_dies): Use "name" method.
8213 (partial_die_info::name): New method.
8214 (partial_die_info::read, guess_partial_die_structure_name)
8215 (partial_die_info::fixup): Update.
8216
697bba18
TT
82172020-05-27 Tom Tromey <tromey@adacore.com>
8218
8219 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
8220 <get_ref_die_offset>: Inline.
8221 <get_ref_die_offset_complaint>: New method.
8222 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
8223 (attribute::get_ref_die_offset_complaint): Rename from
8224 get_ref_die_offset. Just issue complaint.
8225
c17ace43
HD
82262020-05-27 Hannes Domani <ssbssa@yahoo.de>
8227
8228 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
8229
96445f0b
HD
82302020-05-27 Hannes Domani <ssbssa@yahoo.de>
8231
8232 * exec.c (exec_file_attach): Use errno value of first openp failure.
8233
ac637ec3
HD
82342020-05-27 Hannes Domani <ssbssa@yahoo.de>
8235
8236 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
8237 Don't close thread handle.
8238
17ee85fc
TT
82392020-05-27 Tom Tromey <tom@tromey.com>
8240 Simon Marchi <simon.marchi@efficios.com>
8241
8242 * objfiles.h (struct objfile) <partial_symtabs>: Now a
8243 shared_ptr.
8244 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
8245 member.
8246 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
8247 dwarf2_per_bfd_objfile_data_key>: New globals.
8248 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
8249 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
8250 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
8251 shared.
8252 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
8253 short-circuit when sharing.
8254 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
8255 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
8256
39b16f87
SM
82572020-05-27 Simon Marchi <simon.marchi@efficios.com>
8258
8259 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
8260 to...
8261 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
8262 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
8263
fcf23d5b
SM
82642020-05-27 Simon Marchi <simon.marchi@efficios.com>
8265
8266 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
8267 build_name_components, find_name_components_bounds>:
8268 Add per_objfile parameter.
8269 (struct mapped_index) <symbol_name_at>: Likewise.
8270 (struct mapped_debug_names): Remove constructor.
8271 <dwarf2_per_objfile>: Remove field.
8272 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
8273 (mapped_index_base::find_name_components_bounds,
8274 mapped_index_base::build_name_components,
8275 dw2_expand_symtabs_matching_symbol): Likewise.
8276 (class mock_mapped_index) <symbol_name_at>: Likewise.
8277 (check_match): Likewise.
8278 (check_find_bounds_finds): Likewise.
8279 (test_mapped_index_find_name_component_bounds): Update.
8280 (CHECK_MATCH): Update.
8281 (dw2_expand_symtabs_matching): Update.
8282 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
8283 per_objfile parameter.
8284 <find_vec_in_debug_names>: Likewise.
8285 <m_per_objfile>: New field.
8286 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
8287 parameter.
8288 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
8289 (dw2_debug_names_iterator::next): Update.
8290 (dw2_debug_names_lookup_symbol): Update.
8291 (dw2_debug_names_expand_symtabs_for_function): Update.
8292 (dw2_debug_names_map_matching_symbols): Update.
8293 (dw2_debug_names_expand_symtabs_matching): Update.
8294 (dwarf2_read_debug_names): Update.
8295
7188ed02
SM
82962020-05-27 Simon Marchi <simon.marchi@efficios.com>
8297
8298 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
8299 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
8300 move to dwarf2_per_objfile.
8301 <read_in_chain>: Remove.
8302 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
8303 remove_all_cus, age_comp_units>: New methods.
8304 <m_dwarf2_cus>: New member.
8305 (struct dwarf2_per_cu_data) <cu>: Remove.
8306 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
8307 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
8308 moved to methods of dwarf2_per_objfile.
8309 (dwarf2_clear_marks): Remove.
8310 (dwarf2_queue_item::~dwarf2_queue_item): Update.
8311 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
8312 (dwarf2_per_bfd::free_cached_comp_units): Remove.
8313 (dwarf2_per_objfile::remove_all_cus): New.
8314 (class free_cached_comp_units) <~free_cached_comp_units>:
8315 Update.
8316 (load_cu): Update.
8317 (dw2_do_instantiate_symtab): Adjust.
8318 (fill_in_sig_entry_from_dwo_entry): Adjust.
8319 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8320 (cutu_reader::cutu_reader): Likewise.
8321 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
8322 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
8323 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
8324 and dwarf2_per_objfile::age_comp_units.
8325 (load_partial_comp_unit): Update.
8326 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
8327 (process_queue): Likewise.
8328 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
8329 backlink.
8330 (dwarf2_read_addr_index): Likewise.
8331 (follow_die_offset): Likewise.
8332 (dwarf2_fetch_die_loc_sect_off): Likewise.
8333 (dwarf2_fetch_constant_bytes): Likewise.
8334 (dwarf2_fetch_die_type_sect_off): Likewise.
8335 (follow_die_sig_1): Likewise.
8336 (load_full_type_unit): Likewise.
8337 (read_signatured_type): Likewise.
8338 (dwarf2_cu::dwarf2_cu): Don't set cu field.
8339 (dwarf2_cu::~dwarf2_cu): Remove.
8340 (dwarf2_per_objfile::get_cu): New.
8341 (dwarf2_per_objfile::set_cu): New.
8342 (age_cached_comp_units): Rename to...
8343 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
8344 to std::unordered_map.
8345 (free_one_cached_comp_unit): Rename to...
8346 (dwarf2_per_objfile::remove_cu): ... this. Adjust
8347 to std::unordered_map.
8348 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
8349 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
8350 a dwarf2_per_objfile in data.
8351 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
8352 (dwarf2_clear_marks): Remove.
8353
2e671100
SM
83542020-05-27 Simon Marchi <simon.marchi@efficios.com>
8355
8356 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
8357 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
8358 (init_tu_and_read_dwo_dies): Likewise.
8359 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
8360 (cutu_reader::cutu_reader): Likewise.
8361 (load_partial_comp_unit): Likewise.
8362 (process_psymtab_comp_unit): Update.
8363 (build_type_psymtabs_1): Update.
8364 (process_skeletonless_type_unit): Update.
8365 (load_full_comp_unit): Update.
8366 (find_partial_die): Update.
8367 (dwarf2_read_addr_index): Update.
8368 (read_signatured_type): Update.
8369
2e6a9f79
SM
83702020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8371
8372 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
8373 m_header_read_in>: New fields.
8374 <get_header>: New method.
8375 * dwarf2/read.c (per_cu_header_read_in): Remove.
8376 (dwarf2_per_cu_data::get_header): New.
8377 (dwarf2_per_cu_data::addr_size): Update.
8378 (dwarf2_per_cu_data::offset_size): Update.
8379 (dwarf2_per_cu_data::ref_addr_size): Update.
8380
1b555f17
SM
83812020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8382
8383 * dwarf2/read.c (load_cu): Return dwarf2_cu.
8384 (dw2_do_instantiate_symtab): Update.
8385 (queue_and_load_all_dwo_tus): Change parameter from
8386 dwarf2_per_cu_data to dwarf2_cu.
8387 (dwarf2_fetch_die_loc_sect_off): Update.
8388 (dwarf2_fetch_constant_bytes): Update.
8389 (dwarf2_fetch_die_type_sect_off): Update.
8390
8fc0b21d
SM
83912020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8392
8393 * dwarf2/read.c (process_full_comp_unit,
8394 process_full_type_unit): Remove per_cu, per_objfile paramters.
8395 Add dwarf2_cu parameter.
8396 (process_queue): Update.
8397
168c9250
SM
83982020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8399
8400 * dwarf2/read.c (create_cu_from_index_list): Replace
8401 dwarf2_per_objfile parameter with dwarf2_per_bfd.
8402 (create_cus_from_index_list): Likewise.
8403 (create_cus_from_index): Likewise.
8404 (create_signatured_type_table_from_index): Likewise.
8405 (create_cus_from_debug_names_list): Likewise.
8406 (create_cus_from_debug_names): Likewise.
8407 (dwarf2_read_gdb_index): Update.
8408 (dwarf2_read_debug_names): Update.
8409
e286671b
TT
84102020-05-27 Tom Tromey <tom@tromey.com>
8411 Simon Marchi <simon.marchi@efficios.com>
8412
8413 * dwarf2/read.h (struct dwarf2_per_objfile)
8414 <get_type_for_signatured_type, set_type_for_signatured_type>:
8415 New methods.
8416 <m_type_map>: New member.
8417 (struct signatured_type) <type>: Remove.
8418 * dwarf2/read.c
8419 (dwarf2_per_objfile::get_type_for_signatured_type,
8420 dwarf2_per_objfile::set_type_for_signatured_type): New.
8421 (get_signatured_type): Use new methods.
8422
8adb8487
TT
84232020-05-27 Tom Tromey <tom@tromey.com>
8424 Simon Marchi <simon.marchi@efficios.com>
8425
8426 * dwarf2/read.h (struct type_unit_group_unshareable): New.
8427 (struct dwarf2_per_objfile) <type_units>: New member.
8428 <get_type_unit_group_unshareable>: New method.
8429 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
8430 num_symtabs, symtabs>: Remove; move to
8431 type_unit_group_unshareable.
8432 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
8433 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
8434 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
8435
127bbf4b
SM
84362020-05-27 Simon Marchi <simon.marchi@efficios.com>
8437
8438 * dwarf2/read.h (struct dwarf2_per_cu_data):
8439 <dwarf2_per_objfile>: Remove.
8440 * dwarf2/read.c (create_cu_from_index_list): Don't assign
8441 dwarf2_per_objfile.
8442 (create_signatured_type_table_from_index): Likewise.
8443 (create_signatured_type_table_from_debug_names): Likewise.
8444 (create_debug_type_hash_table): Likewise.
8445 (fill_in_sig_entry_from_dwo_entry): Likewise.
8446 (create_type_unit_group): Likewise.
8447 (read_comp_units_from_section): Likewise.
8448 (create_cus_hash_table): Likewise.
8449
f6e649dd
SM
84502020-05-27 Simon Marchi <simon.marchi@efficios.com>
8451
8452 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
8453 dwarf2_per_cu_data::dwarf2_per_objfile.
8454 (compute_compunit_symtab_includes): Likewise.
8455 (dwarf2_cu::start_symtab): Likewise.
8456
aa66c379
SM
84572020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8458
8459 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
8460 parameter.
8461 * dwarf2/read.c (get_die_type_at_offset): Likewise.
8462 (read_namespace_alias): Update.
8463 (lookup_die_type): Update.
8464 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
8465 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
8466 Update.
8467 (disassemble_dwarf_expression): Update.
8468
120ce1b5
SM
84692020-05-27 Simon Marchi <simon.marchi@efficios.com>
8470
8471 * dwarf2/read.h (struct dwarf2_queue_item): Add
8472 dwarf2_per_objfile parameter, assign new parameter.
8473 <per_objfile>: New field.
8474 * dwarf2/read.c (free_one_cached_comp_unit): Add
8475 dwarf2_per_objfile parameter.
8476 (queue_comp_unit): Likewise.
8477 (dw2_do_instantiate_symtab): Update.
8478 (process_psymtab_comp_unit): Update.
8479 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
8480 (process_imported_unit_die): Update.
8481 (queue_and_load_dwo_tu): Update.
8482 (follow_die_offset): Update.
8483 (follow_die_sig_1): Update.
8484
9f47c707
SM
84852020-05-27 Simon Marchi <simon.marchi@efficios.com>
8486
8487 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
8488 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
8489 (read_call_site_scope): Assign per_objfile.
8490 (dwarf2_per_cu_data::objfile): Remove.
8491 * gdbtypes.h (struct call_site) <per_objfile>: New member.
8492 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
8493 dwarf2_per_objfile parameter.
8494 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
8495 dwarf2_per_objfile parameter.
8496 (dwarf_expr_reg_to_entry_parameter): Add output
8497 dwarf2_per_objfile parameter.
8498 (locexpr_get_frame_base): Update.
8499 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
8500 <push_dwarf_reg_entry_value>: Update.
8501 <call_site_to_target_addr>: Update.
8502 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
8503 parameter.
8504 (value_of_dwarf_reg_entry): Update.
8505 (rw_pieced_value): Update.
8506 (indirect_synthetic_pointer): Update.
8507 (dwarf2_evaluate_property): Update.
8508 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
8509 parameter.
8510 (locexpr_read_variable): Update.
8511 (locexpr_get_symbol_read_needs): Update.
8512 (loclist_read_variable): Update.
8513
14095eb3
SM
85142020-05-27 Simon Marchi <simon.marchi@efficios.com>
8515
8516 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8517 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8518 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
8519 parameter.
8520 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8521 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8522 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
8523 parameter.
8524 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
8525 sect_variable_value): Add dwarf2_per_objfile parameter.
8526 (class dwarf_evaluate_loc_desc) <dwarf_call,
8527 dwarf_variable_value>: Update.
8528 (fetch_const_value_from_synthetic_pointer): Add
8529 dwarf2_per_objfile parameter.
8530 (fetch_const_value_from_synthetic_pointer): Update.
8531 (coerced_pieced_ref): Update.
8532 (class symbol_needs_eval_context) <dwarf_call,
8533 dwarf_variable_value>: Update.
8534 (dwarf2_compile_expr_to_ax): Update.
8535
3c3cd3d4
SM
85362020-05-27 Simon Marchi <simon.marchi@efficios.com>
8537
8538 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
8539 parameter.
8540 (dwarf2_evaluate_loc_desc_full): Update.
8541
82ca3f51
SM
85422020-05-27 Simon Marchi <simon.marchi@efficios.com>
8543
8544 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
8545 parameter.
8546 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
8547 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
8548 dwarf2_per_objfile parameter.
8549 (decode_debug_loc_dwo_addresses): Likewise.
8550 (dwarf2_find_location_expression): Update.
8551 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
8552 (locexpr_describe_location_piece): Add dwarf2_per_objfile
8553 parameter.
8554 (disassemble_dwarf_expression): Add dwarf2_per_objfile
8555 parameter.
8556 (locexpr_describe_location_1): Likewise.
8557 (locexpr_describe_location): Update.
8558
4b167ea1
SM
85592020-05-27 Simon Marchi <simon.marchi@efficios.com>
8560
8561 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
8562 Remove.
8563 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
8564 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
8565 (dwarf2_compile_property_to_c): Update.
8566 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
8567 use text offset from objfile.
8568 (locexpr_tracepoint_var_ref): Update.
8569 (locexpr_generate_c_location): Update.
8570 (loclist_describe_location): Update.
8571 (loclist_tracepoint_var_ref): Update.
8572 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
8573 dwarf2_per_objfile parameter.
8574 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
8575 use text offset from objfile.
8576 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
8577
89b07335
SM
85782020-05-27 Simon Marchi <simon.marchi@efficios.com>
8579
8580 * dwarf2/expr.h (struct dwarf_expr_context)
8581 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
8582 <offset>: Remove.
8583 <per_objfile>: New member.
8584 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
8585 dwarf2_per_objfile parameter. Don't set offset, set
8586 per_objfile.
8587 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
8588 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
8589 a dwarf2_per_objfile object instead of an offset.
8590 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
8591 constructor.
8592 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
8593 to dwarf2_expr_executor constructor. Don't set offset.
8594 (dwarf2_fetch_cfa_info): Update.
8595 (struct dwarf2_frame_cache) <text_offset>: Remove.
8596 <per_objfile>: New field.
8597 (dwarf2_frame_cache): Update.
8598 (dwarf2_frame_prev_register): Update.
8599 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8600 <dwarf_evaluate_loc_desc>: Add constructor.
8601 (dwarf2_evaluate_loc_desc_full): Update.
8602 (dwarf2_locexpr_baton_eval): Update.
8603 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
8604 Add constructor.
8605 (dwarf2_loc_desc_get_symbol_read_needs): Update.
8606
293e7e51
SM
86072020-05-27 Simon Marchi <simon.marchi@efficios.com>
8608
8609 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
8610 addr_sized_int_type>: Move to dwarf2_cu.
8611 <int_type>: Move to dwarf2_per_objfile.
8612 (struct dwarf2_per_objfile) <int_type>: Move here.
8613 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
8614 addr_sized_int_type>: Move here.
8615 (read_func_scope): Update.
8616 (read_array_type): Update.
8617 (read_tag_string_type): Update.
8618 (attr_to_dynamic_prop): Update.
8619 (dwarf2_per_cu_data::int_type): Rename to...
8620 (dwarf2_per_objfile::int_type): ... this.
8621 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
8622 (dwarf2_cu::addr_sized_int_type): ... this.
8623 (read_subrange_type): Update.
8624 (dwarf2_per_cu_data::addr_type): Rename to...
8625 (dwarf2_cu::addr_type): ... this.
8626 (set_die_type): Update.
8627
64874a40
SM
86282020-05-27 Simon Marchi <simon.marchi@efficios.com>
8629
8630 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
8631 data through per_cu->cu.
8632
4ab09049
SM
86332020-05-27 Simon Marchi <simon.marchi@efficios.com>
8634
8635 * dwarf2/read.c (lookup_dwo_comp_unit): Change
8636 dwarf2_per_cu_data parameter fo dwarf2_cu.
8637 (lookup_dwo_type_unit): Likewise.
8638 (read_cutu_die_from_dwo): Likewise.
8639 (lookup_dwo_unit): Likewise.
8640 (open_and_init_dwo_file): Likewise.
8641 (lookup_dwo_cutu): Likewise.
8642 (lookup_dwo_comp_unit): Likewise.
8643 (lookup_dwo_type_unit): Likewise.
8644 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8645 (cutu_reader::cutu_reader): Update.
8646
47b14e86
SM
86472020-05-27 Simon Marchi <simon.marchi@efficios.com>
8648
8649 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
8650 parameter.
8651 (process_full_type_unit): Likewise.
8652 (process_queue): Update.
8653
43182c09
SM
86542020-05-27 Simon Marchi <simon.marchi@efficios.com>
8655
8656 * dwarf2/read.c (recursively_compute_inclusions): Add
8657 dwarf2_per_objfile parameter.
8658 (compute_compunit_symtab_includes): Likewise.
8659 (process_cu_includes): Update.
8660
7aa104c4
SM
86612020-05-27 Simon Marchi <simon.marchi@efficios.com>
8662
8663 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
8664 parameter.
8665 (create_type_unit_group): Update.
8666 (process_psymtab_comp_unit_reader): Update.
8667 (build_type_psymtabs_reader): Update.
8668
e3beb21d
SM
86692020-05-27 Simon Marchi <simon.marchi@efficios.com>
8670
8671 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
8672 object through m_this_cu->cu.
8673
d460f660
SM
86742020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8675
8676 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
8677 the info parameter.
8678 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
8679
ab432490
SM
86802020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8681
8682 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
8683 per_objfile parameter.
8684 (load_full_type_unit): Add per_objfile parameter.
8685 (read_signatured_type): Likewise.
8686 (load_full_comp_unit): Likewise.
8687 (load_cu): Likewise.
8688 (dw2_do_instantiate_symtab): Likewise.
8689 (dw2_get_file_names): Likewise.
8690 (dw2_map_symtabs_matching_filename): Update.
8691 (dw_expand_symtabs_matching_file_matcher): Update.
8692 (dw2_map_symbol_filenames): Update.
8693 (process_psymtab_comp_unit): Add per_objfile parameter.
8694 (build_type_psymtabs_1): Update.
8695 (process_skeletonless_type_unit): Update.
8696 (dwarf2_build_psymtabs_hard): Update.
8697 (load_partial_comp_unit): Add per_objfile parameter.
8698 (scan_partial_symbols): Update.
8699 (load_full_comp_unit): Add per_objfile parameter.
8700 (process_imported_unit_die): Update.
8701 (create_cus_hash_table): Update.
8702 (find_partial_die): Update.
8703 (dwarf2_read_addr_index): Update.
8704 (follow_die_offset): Update.
8705 (dwarf2_fetch_die_loc_sect_off): Update.
8706 (dwarf2_fetch_constant_bytes): Update.
8707 (dwarf2_fetch_die_type_sect_off): Update.
8708 (follow_die_sig_1): Update.
8709 (load_full_type_unit): Add per_objfile parameter.
8710 (read_signatured_type): Likewise.
8711
313bad1b
SM
87122020-05-27 Simon Marchi <simon.marchi@efficios.com>
8713
8714 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
8715 of objfile_name.
8716
c3699833
SM
87172020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8718
8719 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
8720 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
8721 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
8722 field.
8723 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
8724 (create_cus_from_index): Update.
8725 (dwarf2_read_gdb_index): Update.
8726 (create_cus_from_debug_names): Update.
8727 (dwarf2_read_debug_names): Update.
8728 (get_abbrev_section_for_cu): Update.
8729 (create_all_comp_units): Update.
8730 (read_attribute_value): Update.
8731 (get_debug_line_section): Update.
8732 * dwarf2/index-cache.c (index_cache::store): Update.
8733 * dwarf2/index-write.c (save_gdb_index_command): Update.
8734 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
8735
1859c670
SM
87362020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8737
8738 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
8739 member.
8740 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
8741 dwarf2_per_cu_data::per_bfd.
8742 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
8743 (create_type_unit_group): Likewise.
8744 (queue_comp_unit): Remove reference to
8745 per_cu->dwarf2_per_objfile.
8746 (maybe_queue_comp_unit): Likewise.
8747 (fill_in_sig_entry_from_dwo_entry): Assign new field.
8748 (create_cus_hash_table): Assign new field.
8749
5e22e966
SM
87502020-05-27 Simon Marchi <simon.marchi@efficios.com>
8751
8752 * dwarf2/read.c: Replace
8753 dwarf2_cu->per_cu->dwarf2_per_objfile references with
8754 dwarf2_cu->per_objfile throughout.
8755
97a1449a
SM
87562020-05-27 Simon Marchi <simon.marchi@efficios.com>
8757
8758 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
8759 parameter, don't use per_cu->dwarf2_per_objfile.
8760 (dw2_instantiate_symtab): Likewise.
8761 (dw2_find_last_source_symtab): Update.
8762 (dw2_map_expand_apply): Update.
8763 (dw2_lookup_symbol): Update.
8764 (dw2_expand_symtabs_for_function): Update.
8765 (dw2_expand_all_symtabs): Update.
8766 (dw2_expand_symtabs_with_fullname): Update.
8767 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
8768 don't use per_cu->dwarf2_per_objfile.
8769 (dw2_expand_marked_cus): Update.
8770 (dw2_find_pc_sect_compunit_symtab): Update.
8771 (dw2_debug_names_lookup_symbol): Update.
8772 (dw2_debug_names_expand_symtabs_for_function): Update.
8773 (dw2_debug_names_map_matching_symbols): Update.
8774 (dwarf2_psymtab::expand_psymtab): Update.
8775
9e021579
SM
87762020-05-27 Simon Marchi <simon.marchi@efficios.com>
8777
8778 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
8779 <per_objfile>: New member.
8780 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
8781 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
8782 call to dwarf2_cu.
8783 (cutu_reader::cutu_reader): Update.
8784 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
8785
ae090bdb
SM
87862020-05-27 Simon Marchi <simon.marchi@efficios.com>
8787
8788 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
8789 struct dwarf2_per_objfile.
8790 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
8791 dwarf2_per_bfd.
8792 * dwarf2/read.c (set_die_type): Update.
8793 (get_die_type_at_offset): Update.
8794
af758d11
SM
87952020-05-27 Tom Tromey <tom@tromey.com>
8796 Simon Marchi <simon.marchi@efficios.com>
8797
8798 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
8799 method.
8800 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
8801 get_symtab, set_symtab>: New methods.
8802 <m_symtabs>: New field.
8803 (struct dwarf2_psymtab): Derive from partial_symtab.
8804 <readin_p, get_compunit_symtab>: Declare methods.
8805 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
8806 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
8807 New methods.
8808 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
8809 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
8810 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
8811 (dw2_symtab_iter_next, dw2_print_stats)
8812 (dw2_expand_symtabs_with_fullname)
8813 (dw2_expand_symtabs_matching_one)
8814 (dw_expand_symtabs_matching_file_matcher)
8815 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
8816 (dw2_debug_names_iterator::next)
8817 (dw2_debug_names_map_matching_symbols)
8818 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
8819 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
8820 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
8821 New methods.
8822 (get_compunit_symtab, process_full_comp_unit)
8823 (process_full_type_unit): Update.
8824 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
8825
5989a64e
SM
88262020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8827
8828 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
8829 then introduce a new dwarf2_per_objfile type.
8830 <read_line_string>: Move to the new dwarf2_per_objfile type.
8831 <objfile>: Likewise.
8832 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
8833 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
8834 dwarf2_per_objfile->per_bfd.
8835 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
8836 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
8837 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
8838 (dwarf2_per_bfd::free_cached_comp_units): ... this.
8839 (dwarf2_has_info): Allocate dwarf2_per_bfd.
8840 (dwarf2_per_objfile::locate_sections): Rename to...
8841 (dwarf2_per_bfd::locate_sections): ... this.
8842 (dwarf2_per_objfile::get_cutu): Rename to...
8843 (dwarf2_per_bfd::get_cutu): ... this.
8844 (dwarf2_per_objfile::get_cu): Rename to...
8845 (dwarf2_per_bfd::get_cu): ... this.
8846 (dwarf2_per_objfile::get_tu): Rename to...
8847 (dwarf2_per_bfd::get_tu): ... this.
8848 (dwarf2_per_objfile::allocate_per_cu): Rename to...
8849 (dwarf2_per_bfd::allocate_per_cu): ... this.
8850 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
8851 (dwarf2_per_bfd::allocate_signatured_type): ... this.
8852 (get_gdb_index_contents_ftype): Change parameter from
8853 dwarf2_per_objfile to dwarf2_per_bfd.
8854 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
8855 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
8856
a50264ba
TT
88572020-05-27 Tom Tromey <tom@tromey.com>
8858 Simon Marchi <simon.marchi@efficios.com>
8859
8860 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
8861 (allocate_piece_closure): Set "per_objfile" member.
8862 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
8863 (locexpr_describe_location, loclist_describe_location): Use new
8864 member.
8865 * dwarf2/read.c (read_call_site_scope)
8866 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
8867 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
8868 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
8869 handle_data_member_location): Set per_objfile member.
8870 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
8871 member.
8872 (struct dwarf2_loclist_baton) <per_objfile>: New member.
8873
d3473f0c
TT
88742020-05-27 Tom Tromey <tom@tromey.com>
8875
8876 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
8877 allocate_signatured_type>: Declare new methods.
8878 <m_num_psymtabs>: New member.
8879 (struct dwarf2_per_cu_data) <index>: New member.
8880 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
8881 (dwarf2_per_objfile::allocate_signatured_type): New methods.
8882 (create_cu_from_index_list): Use allocate_per_cu.
8883 (create_signatured_type_table_from_index)
8884 (create_signatured_type_table_from_debug_names)
8885 (create_debug_type_hash_table, add_type_unit)
8886 (read_comp_units_from_section): Use allocate_signatured_type.
8887
5717c425
TT
88882020-05-27 Tom Tromey <tom@tromey.com>
8889
8890 * psymtab.c (partial_map_expand_apply)
8891 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
8892 (psym_lookup_global_symbol_language)
8893 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
8894 (psym_print_stats, psym_expand_symtabs_for_function)
8895 (psym_map_symbol_filenames, psym_map_matching_symbols)
8896 (psym_expand_symtabs_matching)
8897 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
8898 (maintenance_check_psymtabs): Update.
8899 * psympriv.h (struct partial_symtab) <readin_p,
8900 get_compunit_symtab>: Add objfile parameter.
8901 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
8902 Likewise.
8903 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
8904 get_compunit_symtab>: Likewise.
8905 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
8906
45940949
TT
89072020-05-27 Tom Tromey <tom@tromey.com>
8908
8909 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
8910 member.
8911 * dwarf2/read.c (delete_file_name_entry): Fix comment.
8912 (create_cu_from_index_list)
8913 (create_signatured_type_table_from_index)
8914 (create_signatured_type_table_from_debug_names)
8915 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
8916 (dwarf2_create_include_psymtab)
8917 (create_debug_type_hash_table, add_type_unit)
8918 (create_type_unit_group, read_comp_units_from_section)
8919 (dwarf2_compute_name, create_cus_hash_table)
8920 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
8921 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
8922 obstack.
8923 (dw2_get_real_path): Likewise. Change argument to
8924 dwarf2_per_objfile.
8925
f8c6d152
LM
89262020-05-27 Luis Machado <luis.machado@linaro.org>
8927
8928 PR tdep/26000
8929 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
8930 for ldrd (immediate).
8931
e98d2e6d
PW
89322020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8933
8934 * command.h: Add comment giving the name of class_tui.
8935 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
8936 create the fake command for the help for class_tui.
8937
53a47a3e
TT
89382020-05-26 Tom Tromey <tromey@adacore.com>
8939
8940 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
8941 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
8942 (val_atr): New function.
8943 (value_val_atr): Use it.
8944 * ada-valprint.c (print_optional_low_bound): Change low bound
8945 handling for enums.
8946 (val_print_packed_array_elements): Don't call discrete_position.
8947 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
8948 discrete_position for enum types.
8949 * language.c (default_print_array_index): Change type.
8950 * language.h (struct language_defn) <la_print_array_index>: Add
8951 index_type parameter, change type of index_value.
8952 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
8953 (default_print_array_index): Update.
8954 * valprint.c (maybe_print_array_index): Don't call
8955 value_from_longest. Update.
8956 (value_print_array_elements): Don't call discrete_position.
8957
0bc2354b
TT
89582020-05-26 Tom Tromey <tromey@adacore.com>
8959
8960 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
8961 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
8962
1218a4bf
CDA
89632020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
8964
8965 PR gdb/13519
8966 * avr-tdep.c (avr_integer_to_address): Return data or code
8967 address accordingly to the second 'type' argument of the
8968 function.
8969
92651b1d
MW
89702020-05-25 Michael Weghorn <m.weghorn@posteo.de>
8971
8972 * infcmd.c, inferior.h: (construct_inferior_arguments):
8973 Moved function from here to gdbsupport/common-inferior.{h,cc}
8974
0a4f5f8c
TT
89752020-05-23 Tom Tromey <tom@tromey.com>
8976
8977 Revert commit eca1f90c:
8978 * NEWS: Remove entry for completion styling.
8979 * completer.c (_rl_completion_prefix_display_length): Move
8980 declaration later.
8981 (gdb_fnprint): Revert.
8982 (gdb_display_match_list_1): Likewise.
8983 * cli/cli-style.c (completion_prefix_style)
8984 (completion_difference_style, completion_suffix_style): Remove.
8985 (_initialize_cli_style): Revert.
8986 * cli/cli-style.h (completion_prefix_style)
8987 (completion_difference_style, completion_suffix_style): Don't
8988 declare.
8989
e08bd6c5
PA
89902020-05-24 Pedro Alves <palves@redhat.com>
8991
8992 * symtab.c (completion_list_add_name): Return boolean indication
8993 of whether the symbol matched.
8994 (completion_list_add_symbol): Don't try to remove C++ aliases if
8995 the symbol didn't match in the first place.
8996 * symtab.h (completion_list_add_name): Return bool.
8997
ceacbf6e
SM
89982020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
8999
9000 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
9001 type::field.
9002
26f16254
JB
90032020-05-23 Joel Brobecker <brobecker@adacore.com>
9004
9005 GDB 9.2 released.
9006
eca1f90c
TT
90072020-05-23 Tom Tromey <tom@tromey.com>
9008
9009 * NEWS: Add entry for completion styling.
9010 * completer.c (_rl_completion_prefix_display_length): Move
9011 declaration earlier.
9012 (gdb_fnprint): Use completion_style.
9013 (gdb_display_match_list_1): Likewise.
9014 * cli/cli-style.c (completion_prefix_style)
9015 (completion_difference_style, completion_suffix_style): New
9016 globals.
9017 (_initialize_cli_style): Register new globals.
9018 * cli/cli-style.h (completion_prefix_style)
9019 (completion_difference_style, completion_suffix_style): Declare.
9020
51e2cfa2
PA
90212020-05-23 Pedro Alves <palves@redhat.com>
9022
9023 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
9024 (parse_escape): Use ISDIGIT instead of isdigit.
9025 (puts_debug): Use gdb_isprint instead of isprint.
9026 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
9027 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
9028 ISSPACE instead of isspace.
9029 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
9030 instead of isspace.
9031 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
9032 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
9033 instead of isxdigit and ISDIGIT instead of isdigit.
9034
80fc5e77
SM
90352020-05-22 Simon Marchi <simon.marchi@efficios.com>
9036
9037 * gdbtypes.h (struct type) <field>: New method.
9038 (TYPE_FIELDS): Remove, replace all uses with either type::fields
9039 or type::field.
9040
3cabb6b0
SM
90412020-05-22 Simon Marchi <simon.marchi@efficios.com>
9042
9043 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
9044 (TYPE_FIELDS): Use type::fields. Change all call sites that
9045 modify the propery to use type::set_fields instead.
9046
1f704f76
SM
90472020-05-22 Simon Marchi <simon.marchi@efficios.com>
9048
9049 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
9050 type::num_fields instead.
9051
5e33d5f4
SM
90522020-05-22 Simon Marchi <simon.marchi@efficios.com>
9053
9054 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
9055 methods.
9056 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
9057 that modify the number of fields to use type::set_num_fields
9058 instead.
9059
9392ebb3
TT
90602020-05-22 Tom Tromey <tromey@adacore.com>
9061
9062 * compile/compile-object-load.h (munmap_list_free): Don't
9063 declare.
9064
7c13f4e8
AB
90652020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
9066
9067 * annotate.c (annotate_source_line): Update return type, add call
9068 to update current symtab and line.
9069 * annotate.h (annotate_source_line): Update return type, and
9070 extend header comment.
9071 * source.c (info_line_command): Check annotation_level before
9072 calling annotate_source_line.
9073 * stack.c (print_frame_info): If calling annotate_source_line
9074 returns true, then don't print any other source line information.
9075
aa370940
SM
90762020-05-21 Simon Marchi <simon.marchi@efficios.com>
9077
9078 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
9079
84d53fa9
SM
90802020-05-21 Simon Marchi <simon.marchi@efficios.com>
9081
9082 * coffread.c (patch_type): Remove NULL check before xfree.
9083 * corefile.c (set_gnutarget): Likewise.
9084 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
9085 * exec.c (build_section_table): Likewise.
9086 * remote.c (remote_target::pass_signals): Likewise.
9087 * utils.c (n_spaces): Likewise.
9088 * cli/cli-script.c (document_command): Likewise.
9089 * i386-windows-tdep.c (core_process_module_section): Likewise.
9090 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
9091
9d428aae
SM
90922020-05-20 Simon Marchi <simon.marchi@efficios.com>
9093
9094 * symfile.c (reread_symbols): Clear objfile's section_offsets
9095 vector and section indices, re-compute them by calling
9096 sym_offsets.
9097
250106a7
TT
90982020-05-20 Tom Tromey <tromey@adacore.com>
9099
9100 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 9101 (desc_one_bound, desc_index_type): Compute field name.
250106a7 9102
9a0bacfb
TV
91032020-05-20 Tom de Vries <tdevries@suse.de>
9104
9105 PR symtab/25833
9106 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
9107
7b958a48
AM
91082020-05-20 Alan Modra <amodra@gmail.com>
9109
9110 PR 25993
9111 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
9112 bfd_set_filename.
9113 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
9114 passed to bfd_set_filename.
9115 * symfile-mem.c (add_vsyscall_page): Likewise for string
9116 passed to symbol_file_add_from_memory.
9117 (symbol_file_add_from_memory): Make name param a const char* and
9118 don't strdup.
9119
c7e97679
AM
91202020-05-20 Alan Modra <amodra@gmail.com>
9121
9122 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
9123 rather than accessing bfd->filename directly.
9124 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
9125 and use bfd_section_name.
9126 * dwarf2/frame.c (decode_frame_entry): Likewise.
9127 * exec.c (exec_set_section_address): Likewise.
9128 * solib-aix.c (solib_aix_bfd_open): Likewise.
9129 * stap-probe.c (get_stap_base_address): Likewise.
9130 * symfile.c (reread_symbols): Likewise.
9131
563c591b
TT
91322020-05-19 Tom Tromey <tromey@adacore.com>
9133
9134 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
9135
f408d82c
SM
91362020-05-19 Simon Marchi <simon.marchi@efficios.com>
9137
9138 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
9139
98c59b52
PA
91402020-05-19 Pedro Alves <palves@redhat.com>
9141
9142 * NEWS (set exec-file-mismatch): Adjust entry.
9143 * exec.c: Include "build-id.h".
9144 (validate_exec_file): Try to match build IDs instead of filenames.
9145 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
9146 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
9147 and pass down 'warn_if_slow'.
9148 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
9149 gdb_bfd_open_closure to pass it down.
9150 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
9151
4111f652
PA
91522020-05-19 Pedro Alves <palves@redhat.com>
9153
9154 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
9155 * target.c (target_fileio_open_1): Rename to target_fileio_open
9156 and make extern. Use bool.
9157 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
9158 (target_fileio_read_alloc_1): Adjust.
9159 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
9160 (target_fileio_open_warn_if_slow): Delete declaration.
9161
ad80db5b
PA
91622020-05-19 Pedro Alves <palves@redhat.com>
9163
9164 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
9165 Adjust all callers.
9166
1d6ce4d3
YS
91672020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
9168
9169 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
9170 whether disp is negative.
9171
9005fbbb
SM
91722020-05-19 Simon Marchi <simon.marchi@efficios.com>
9173
9174 * symfile.h (struct symfile_segment_data)
9175 <~symfile_segment_data>: Remove.
9176 <segment_info>: Change to std::vector.
9177 * symfile.c (default_symfile_segments): Update.
9178 * elfread.c (elf_symfile_segments): Update.
9179
68b888ff
SM
91802020-05-19 Simon Marchi <simon.marchi@efficios.com>
9181
9182 * symfile.h (struct symfile_segment_data) <struct segment>: New.
9183 <segments>: New.
9184 <segment_bases, segment_sizes>: Remove.
9185 * symfile.c (default_symfile_segments): Update.
9186 * elfread.c (elf_symfile_segments): Update.
9187 * remote.c (remote_target::get_offsets): Update.
9188 * solib-target.c (solib_target_relocate_section_addresses):
9189 Update.
9190
62982abd
SM
91912020-05-19 Simon Marchi <simon.marchi@efficios.com>
9192
9193 * symfile.h (struct symfile_segment_data): Initialize fields.
9194 <~symfile_segment_data>: Add.
9195 (symfile_segment_data_up): New.
9196 (struct sym_fns) <sym_segments>: Return a
9197 symfile_segment_data_up.
9198 (default_symfile_segments): Return a symfile_segment_data_up.
9199 (free_symfile_segment_data): Remove.
9200 (get_symfile_segment_data): Return a symfile_segment_data_up.
9201 * symfile.c (default_symfile_segments): Likewise.
9202 (get_symfile_segment_data): Likewise.
9203 (free_symfile_segment_data): Remove.
9204 (symfile_find_segment_sections): Update.
9205 * elfread.c (elf_symfile_segments): Return a
9206 symfile_segment_data_up.
9207 * remote.c (remote_target::get_offsets): Update.
9208 * solib-target.c (solib_target_relocate_section_addresses):
9209 Update.
9210 * symfile-debug.c (debug_sym_segments): Return a
9211 symfile_segment_data_up.
9212
7f204339
RO
92132020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9214
e52a0f1b
RO
9215 PR build/25981
9216 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
9217 Hardcode register numbers.
9218
7f204339
RO
9219 PR build/25981
9220 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
9221 procfs_find_LDT_entry): Remove.
9222 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
9223 procfs_find_LDT_entry): Remove.
9224 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
9225 Remove.
9226
7f32a4d5
PA
92272020-05-17 Pedro Alves <palves@redhat.com>
9228 Andrew Burgess <andrew.burgess@embecosm.com>
9229 Keno Fischer <keno@juliacomputing.com>
9230
9231 PR gdb/25741
9232 * breakpoint.c (build_target_condition_list): Update comments.
9233 (build_target_command_list): Update comments and skip matching
9234 locations.
9235 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
9236 a separate function. Simplify "set breakpoint auto-hw off"
9237 handling.
9238 (insert_breakpoints): Update comment.
9239 (tracepoint_locations_match): New parameter. For breakpoints,
9240 compare location types too, if the caller wants to.
9241 (handle_automatic_hardware_breakpoints): New functions.
9242 (bp_location_is_less_than): Also sort by location type and
9243 hardware breakpoint length.
9244 (update_global_location_list): Handle "set breakpoint auto-hw on"
9245 here.
9246 (update_breakpoint_locations): Ask breakpoint_locations_match to
9247 ignore location types.
9248
7d93a1e0
SM
92492020-05-16 Simon Marchi <simon.marchi@efficios.com>
9250
9251 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
9252 type::name instead.
9253
d0e39ea2
SM
92542020-05-16 Simon Marchi <simon.marchi@efficios.com>
9255
9256 * gdbtypes.h (struct type) <name, set_name>: New methods.
9257 (TYPE_CODE): Use type::name. Change all call sites used to set
9258 the name to use type::set_name instead.
9259
2dab0c7b
TT
92602020-05-16 Tom Tromey <tom@tromey.com>
9261
9262 * top.c (quit_force): Update.
9263 * infrun.c (handle_no_resumed): Update.
9264 * top.h (all_uis): New function.
9265 (ALL_UIS): Remove.
9266
59f7bd8d
SM
92672020-05-16 Simon Marchi <simon.marchi@efficios.com>
9268
9269 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
9270
9bf058f0
PA
92712020-05-16 Pedro Alves <palves@redhat.com>
9272
9273 * ia64-linux-nat.c
9274 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
9275 Declare method.
9276 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
9277
8f86ae1a
SM
92782020-05-15 Simon Marchi <simon.marchi@efficios.com>
9279
9280 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
9281 (sparc64_adi_info): Likewise.
9282
d6bc0792
TT
92832020-05-15 Tom Tromey <tom@tromey.com>
9284
9285 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
9286 block_objfile.
9287 (lookup_objfile_from_block): Remove.
9288 (lookup_symbol_in_block, lookup_symbol_in_static_block)
9289 (lookup_global_symbol): Use block_objfile.
9290 * symtab.h (lookup_objfile_from_block): Don't declare.
9291 * printcmd.c (clear_dangling_display_expressions): Use
9292 block_objfile.
9293 * parse.c (operator_check_standard): Use block_objfile.
9294
8c14c3a3
TT
92952020-05-15 Tom Tromey <tom@tromey.com>
9296
9297 * language.c (language_alloc_type_symbol): Set
9298 SYMBOL_SECTION.
9299 * symtab.c (initialize_objfile_symbol): Remove.
9300 (allocate_symbol): Remove.
9301 (allocate_template_symbol): Remove.
9302 * dwarf2/read.c (fixup_go_packaging): Use "new".
9303 (new_symbol): Use "new".
9304 (read_variable): Don't call initialize_objfile_symbol. Use
9305 "new".
9306 (read_func_scope): Use "new".
9307 * xcoffread.c (process_xcoff_symbol): Don't call
9308 initialize_objfile_symbol.
9309 (SYMBOL_DUP): Remove.
9310 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
9311 "new".
9312 * symtab.h (allocate_symbol, initialize_objfile_symbol)
9313 (allocate_template_symbol): Don't declare.
9314 (struct symbol): Add copy constructor. Change defaults.
9315 * jit.c (finalize_symtab): Use "new".
9316 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
9317 Use "new".
9318 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
9319 (common_block_end): Use "new".
9320 * mdebugread.c (parse_symbol): Use "new".
9321 (new_symbol): Likewise.
9322
5b4a1a8d
PW
93232020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9324
9325 * NEWS: Mention changes to help and apropos.
9326
57b4f16e
PW
93272020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9328
9329 * command.h (enum command_class): Improve comments, document
9330 that class_alias is for user-defined aliases, give the class
9331 name for each class, remove unused class_xdb.
9332 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
9333 * breakpoint.c (_initialize_breakpoint): Replace class_alias
9334 by a precise class.
9335 * infcmd.c (_initialize_infcmd): Likewise.
9336 * reverse.c (_initialize_reverse): Likewise.
9337 * stack.c (_initialize_stack): Likewise.
9338 * symfile.c (_initialize_symfile): Likewise.
9339 * tracepoint.c (_initialize_tracepoint): Likewise.
9340
7c05caf7
PW
93412020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9342
9343 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
9344 when their aliased command is traversed.
9345 (help_cmd): Add fput_command_names_styled call to
9346 output command name and aliases when command has an alias.
9347
3b3aaacb
PW
93482020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9349
9350 * cli/cli-decode.h (help_cmd_list): Remove declaration.
9351 * cli/cli-decode.c (help_cmd_list): Declare as static,
9352 remove prefix argument, use bool for recurse arg, rework to show the aliases of
9353 a command together with the command.
9354 (fput_command_name_styled, fput_command_names_styled): New functions.
9355 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
9356 fput_command_name_styled.
9357 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
9358 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
9359
7aa1b46f
PW
93602020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9361
9362 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
9363 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
9364 * command.h (cmd_show_list): Likewise.
9365 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
9366 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
9367
89bcba74
PW
93682020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9369
9370 * unittests/command-def-selftests.c (traverse_command_structure):
9371 Verify all commands of a list have the same prefix command and
9372 that only the top cmdlist commands have a null prefix.
9373
3f4d92eb
PW
93742020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9375
9376 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
9377 as prefix, not one of its aliases.
9378 (set_cmd_prefix): Remove.
9379 (do_add_cmd): Centralize the setting of the prefix of a command, when
9380 command is defined after its full chain of prefix commands.
9381 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
9382 (add_setshow_cmd_full): Likewise.
9383 (update_prefix_field_of_prefixed_commands): New function.
9384 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
9385 update_prefix_field_of_prefixed_commands.
9386 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
9387 addresses of remote_set_cmdlist and remote_show_cmdlist given
9388 as argument, not the address of an argument.
9389 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
9390 * gdb/remote.c (_initialize_remote): Likewise.
9391
0605465f
PW
93922020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9393
9394 * cli/cli-cmds.c (alias_command): Check for an existing alias
9395 using lookup_cmd_composition, as valid_command_p is too strict
9396 and forbids aliases that are the prefix of an existing alias
9397 or command.
9398 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
9399 command is properly recognised as a valid command.
9400
58e6ac70
PW
94012020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9402
9403 * unittests/help-doc-selftests.c: Rename to
9404 unittests/command-def-selftests.c
9405 * unittests/command-def-selftests.c (help_doc_tests): Update some
9406 comments.
9407 (command_structure_tests, traverse_command_structure): New namespace
9408 and function.
9409 (command_structure_invariants_tests): New function.
9410 (_initialize_command_def_selftests) Renamed from
9411 _initialize_help_doc_selftests, register command_structure_invariants
9412 selftest.
9413
a7b9ceb8
PW
94142020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9415
9416 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
9417 an alias of 'show'.
9418
b2188a06
JB
94192020-05-15 Joel Brobecker <brobecker@adacore.com>
9420
9421 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
9422 ada_is_fixed_point_type. Update all callers.
9423 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
9424 all callers.
9425 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
9426 Update all callers.
9427 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
9428 print_fixed_point_type. Update all callers.
9429 * ada-valprint.c (ada_value_print_num): Replace call to
9430 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
9431
a51951c2
KB
94322020-05-14 Kevin Buettner <kevinb@redhat.com>
9433
9434 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
9435 processors.
9436 (cpu_supports_bts): Add CV_AMD case.
9437
29d6859f
LM
94382020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
9439 Simon Marchi <simon.marchi@efficios.com>
9440
9441 * infrun.c (stop_all_threads): Collect multiple wait events at
9442 each pass.
9443
78134374
SM
94442020-05-14 Simon Marchi <simon.marchi@efficios.com>
9445
9446 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
9447 type::code instead.
9448
67607e24
SM
94492020-05-14 Simon Marchi <simon.marchi@efficios.com>
9450
9451 * gdbtypes.h (struct type) <code, set_code>: New methods.
9452 (TYPE_CODE): Use type::code. Change all call sites used to set
9453 the code to use type::set_code instead.
9454
a05575d3
TBA
94552020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9456 Tom de Vries <tdevries@suse.de>
9457 Pedro Alves <palves@redhat.com>
9458
9459 PR threads/25478
9460 * infrun.c (stop_all_threads): Do NOT ignore
9461 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
9462 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
9463 received.
9464 (handle_no_resumed): Remove code handling a live inferior with no
9465 threads.
9466 * remote.c (has_single_non_exited_thread): New.
9467 (remote_target::update_thread_list): Do not delete a thread if is
9468 the last thread of the process.
9469 * thread.c (thread_select): Call delete_exited_threads instead of
9470 prune_threads.
9471
6ad82919
TBA
94722020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9473
9474 * infrun.c (stop_all_threads): Enable/disable thread events of all
9475 targets. Move a debug message denoting the end of the function
9476 into the SCOPED_EXIT block.
9477
d890404b
TBA
94782020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9479
9480 * process-stratum-target.h: Include <set>.
9481 (all_non_exited_process_targets, switch_to_target_no_thread): New
9482 function declarations.
9483 * process-stratum-target.c (all_non_exited_process_targets)
9484 (switch_to_target_no_thread): New function implementations.
9485
293b3ebc
TBA
94862020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9487
9488 * infrun.c (handle_inferior_event): Extract out a piece of code
9489 into...
9490 (mark_non_executing_threads): ...this new function.
9491
7ca9b62a
TBA
94922020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9493
9494 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
9495 use.
9496
fc75c28b
TBA
94972020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9498
9499 * regcache.c (regcache_read_pc_protected): New function
9500 implementation that returns 0 if the PC cannot read via
9501 'regcache_read_pc'.
9502 * infrun.c (proceed): Call 'regcache_read_pc_protected'
9503 instead of 'regcache_read_pc'.
9504 (keep_going_pass_signal): Ditto.
9505
a89febbd
TT
95062020-05-13 Tom Tromey <tromey@adacore.com>
9507
9508 * ada-lang.c (align_value): Remove.
9509 (ada_template_to_fixed_record_type_1): Use align_up.
9510
f7e23710
TBA
95112020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9512
9513 * async-event.c: Update the copyright year.
9514 * async-event.h: Update the copyright year.
9515
02ff80c2
SM
95162020-05-12 Simon Marchi <simon.marchi@efficios.com>
9517
9518 * objfiles.h (is_addr_in_objfile,
9519 shared_objfile_contains_address_p): Return bool.
9520 * objfile.c (is_addr_in_objfile,
9521 shared_objfile_contains_address_p): Return bool.
9522
4fd6c7e8
TT
95232020-05-11 Tom Tromey <tromey@adacore.com>
9524
9525 * cli/cli-cmds.c (info_command): Restore.
9526 (_initialize_cli_cmds): Use add_prefix_command for "info".
9527 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
9528
5eb68a39
TT
95292020-05-11 Tom Tromey <tromey@adacore.com>
9530
9531 * ada-lang.c (ada_value_primitive_field): Now public.
9532 * ada-lang.h (ada_value_primitive_field): Declare.
9533 * ada-valprint.c (print_field_values): Use
9534 ada_value_primitive_field for wrapper fields.
9535
7666722f
TV
95362020-05-11 Tom de Vries <tdevries@suse.de>
9537
9538 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
9539 MODULE_DOMAIN.
9540
3ee6bb11
TV
95412020-05-11 Tom de Vries <tdevries@suse.de>
9542
9543 PR symtab/25941
9544 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
9545 with length 0, if not gdb-produced.
9546 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
9547
43434996
TV
95482020-05-09 Tom de Vries <tdevries@suse.de>
9549
9550 PR gdb/25955
9551 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
9552 calculation.
9553
2f78cffc
TT
95542020-05-09 Tom Tromey <tom@tromey.com>
9555
9556 * top.c (server_command): Now bool.
9557 * top.h (server_command): Now bool.
9558
4f7bc5ed
TT
95592020-05-08 Tom Tromey <tromey@adacore.com>
9560
9561 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
9562 already being processed.
9563
8be4b118
TT
95642020-05-08 Tom Tromey <tom@tromey.com>
9565
9566 * printcmd.c (struct display) <next>: Remove.
9567 <display>: New constructor.
9568 <exp_string>: Now a std::string.
9569 <enabled_p>: Now a bool.
9570 (display_number): Move definition earlier.
9571 (displays): Rename from display_chain. Now a std::vector.
9572 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
9573 (display_command): Update.
9574 (do_one_display, disable_display)
9575 (enable_disable_display_command, do_enable_disable_display):
9576 Update.
9577 (free_display): Remove.
9578 (clear_displays): Rewrite.
9579 (delete_display): Update.
9580 (map_display_numbers): Use function_view. Remove "data"
9581 parameter. Update.
9582 (do_delete_display): Remove.
9583 (undisplay_command): Update.
9584 (do_one_display, do_displays, disable_display)
9585 (info_display_command): Update.
9586 (do_enable_disable_display): Remove.
9587 (enable_disable_display_command)
9588 (clear_dangling_display_expressions): Update.
9589
94c93c35
TT
95902020-05-08 Tom Tromey <tom@tromey.com>
9591
9592 * symtab.c (set_symbol_cache_size)
9593 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
9594 (maintenance_print_symbol_cache_statistics): Update.
9595 * symmisc.c (print_symbol_bcache_statistics)
9596 (print_objfile_statistics, maintenance_print_objfiles)
9597 (maintenance_info_symtabs, maintenance_check_symtabs)
9598 (maintenance_expand_symtabs, maintenance_info_line_tables):
9599 Update.
9600 * symfile-debug.c (set_debug_symfile): Update.
9601 * source.c (forget_cached_source_info): Update.
9602 * python/python.c (gdbpy_progspaces): Update.
9603 * psymtab.c (maintenance_info_psymtabs): Update.
9604 * probe.c (parse_probes): Update.
9605 * linespec.c (iterate_over_all_matching_symtabs)
9606 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
9607 * guile/scm-progspace.c (gdbscm_progspaces): Update.
9608 * exec.c (exec_target::close): Update.
9609 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
9610 * breakpoint.c (print_one_breakpoint_location)
9611 (create_longjmp_master_breakpoint)
9612 (create_std_terminate_master_breakpoint): Update.
9613 * progspace.c (program_spaces): Now a std::vector.
9614 (maybe_new_address_space): Update.
9615 (add_program_space): Remove.
9616 (program_space::program_space): Update.
9617 (remove_program_space): Update.
9618 (number_of_program_spaces): Remove.
9619 (print_program_space, update_address_spaces): Update.
9620 * progspace.h (program_spaces): Change type.
9621 (ALL_PSPACES): Remove.
9622 (number_of_program_spaces): Don't declare.
9623 (struct program_space) <next>: Remove.
9624
a1fd1ac9
TT
96252020-05-08 Tom Tromey <tom@tromey.com>
9626
9627 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
9628 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
9629 (enable_break): Update.
9630 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
9631 (frv_fdpic_find_canonical_descriptor): Update.
9632 (frv_fetch_objfile_link_map): Update.
9633 * progspace.c (program_space::free_all_objfiles): Update.
9634 (program_space::solibs): New method.
9635 * progspace.h (struct program_space) <solibs>: New method.
9636 * solist.h (master_so_list): Don't declare.
9637 (ALL_SO_LIBS): Remove.
9638 * solib.h (so_list_head): Remove.
9639 (update_solib_list): Update comment.
9640 * solib.c (master_so_list): Remove.
9641 (solib_used, update_solib_list, solib_add)
9642 (info_sharedlibrary_command, clear_solib)
9643 (reload_shared_libraries_1, remove_user_added_objfile): Update.
9644
38eae084
TT
96452020-05-08 Tom Tromey <tom@tromey.com>
9646
9647 * extension.c (extension_languages): Now a std::array.
9648 (ALL_EXTENSION_LANGUAGES): Remove.
9649 (get_ext_lang_defn, get_ext_lang_of_file)
9650 (eval_ext_lang_from_control_command): Update.
9651 (finish_ext_lang_initialization)
9652 (auto_load_ext_lang_scripts_for_objfile)
9653 (ext_lang_type_printers::ext_lang_type_printers)
9654 (apply_ext_lang_type_printers)
9655 (ext_lang_type_printers::~ext_lang_type_printers)
9656 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
9657 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
9658 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
9659 (get_matching_xmethod_workers, ext_lang_colorize)
9660 (ext_lang_before_prompt): Update.
9661 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
9662
596dc4ad
TT
96632020-05-08 Tom Tromey <tom@tromey.com>
9664
9665 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
9666 overload.
9667 <swap_string, m_string>: Remove.
9668 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
9669 Update.
9670 * stabsread.c (define_symbol, read_type): Update.
9671 * linespec.c (find_linespec_symbols): Update.
9672 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
9673 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
9674 * dbxread.c (read_dbx_symtab): Update.
9675 * cp-support.h (cp_canonicalize_string_full)
9676 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
9677 Return unique_xmalloc_ptr.
9678 * cp-support.c (inspect_type): Update.
9679 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
9680 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
9681 Likewise.
9682 * c-typeprint.c (print_name_maybe_canonical): Update.
9683 * break-catch-throw.c (check_status_exception_catchpoint):
9684 Update.
9685
bf4cb9be
TV
96862020-05-08 Tom de Vries <tdevries@suse.de>
9687
9688 * infrun.c (follow_fork): Copy current_line and current_symtab to
9689 child thread.
9690
a1b68f28
SM
96912020-05-07 Simon Marchi <simon.marchi@efficios.com>
9692
9693 * async-event.c (struct async_signal_handler, struct
9694 async_event_handler): Reformat, remove typedef.
9695
98d48915
SM
96962020-05-07 Simon Marchi <simon.marchi@efficios.com>
9697
9698 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
9699 access thistype->main_type->dyn_prop_list directly.
9700
7aa91313
SM
97012020-05-07 Simon Marchi <simon.marchi@efficios.com>
9702
9703 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
9704 (remove_dyn_prop): Remove. Update all users to use
9705 type::remove_dyn_prop.
9706 * gdbtypes.c (remove_dyn_prop): Rename to...
9707 (type::remove_dyn_prop): ... this.
9708
5c54719c
SM
97092020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
9710
9711 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
9712 (add_dyn_prop): Remove. Update all users to use
9713 type::add_dyn_prop.
9714 * gdbtypes.c (add_dyn_prop): Rename to...
9715 (type::add_dyn_prop): ... this.
9716
24e99c6c
SM
97172020-05-07 Simon Marchi <simon.marchi@efficios.com>
9718
9719 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
9720 (get_dyn_prop): Remove. Update all users to use
9721 type::dyn_prop.
9722 * gdbtypes.c (get_dyn_prop): Rename to...
9723 (type::dyn_prop): ... this.
9724
0d4bf016
SM
97252020-05-06 Simon Marchi <simon.marchi@efficios.com>
9726
9727 * gdbtypes.h (struct main_type) <flag_static>: Remove.
9728
ac4a4f1c
SM
97292020-05-06 Simon Marchi <simon.marchi@efficios.com>
9730
9731 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
9732 instruction, skip it if it's there.
9733
a3bbacc1
SM
97342020-05-05 Simon Marchi <simon.marchi@efficios.com>
9735
9736 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
9737
c3236f84
SM
97382020-05-04 Simon Marchi <simon.marchi@efficios.com>
9739
9740 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
9741 * gdbtypes.c (recursive_dump_type): Remove use of
9742 TYPE_INCOMPLETE.
9743
3b6acaee
TT
97442020-05-03 Tom Tromey <tom@tromey.com>
9745
9746 * breakpoint.c (catch_command, tcatch_command): Remove.
9747 (_initialize_breakpoint): Use add_basic_prefix_cmd,
9748 add_show_prefix_cmd.
9749 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
9750 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
9751 Remove.
9752 (add_internal_problem_command): Use add_basic_prefix_cmd,
9753 add_show_prefix_cmd.
9754 * mips-tdep.c (set_mipsfpu_command): Remove.
9755 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
9756 * dwarf2/index-cache.c (set_index_cache_command): Remove.
9757 (_initialize_index_cache): Use add_basic_prefix_cmd.
9758 * memattr.c (dummy_cmd): Remove.
9759 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
9760 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
9761 (_initialize_tui_win): Use add_basic_prefix_cmd,
9762 add_show_prefix_cmd.
9763 * cli/cli-logging.c (set_logging_command): Remove.
9764 (_initialize_cli_logging): Use add_basic_prefix_cmd,
9765 add_show_prefix_cmd.
9766 (show_logging_command): Remove.
9767 * target.c (target_command): Remove.
9768 (add_target): Use add_basic_prefix_cmd.
9769
a51119cd
HD
97702020-05-02 Hannes Domani <ssbssa@yahoo.de>
9771
9772 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
9773
652fc23a 97742020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 9775
652fc23a
PW
9776 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
9777 info_command.
9778
117539e6
KR
97792020-04-30 Kamil Rytarowski <n54@gmx.com>
9780
9781 * nbsd-nat.c (nbsd_enable_proc_events)
9782 (nbsd_nat_target::post_startup_inferior): Add.
9783 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
9784 (nbsd_nat_target::update_thread_list): Rewrite.
9785 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
9786 "PTRACE_LWP_CREATE".
9787 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
9788
102e38eb 97892020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 9790
102e38eb
PW
9791 * stack.c (_initialize_stack): Remove duplicated creation
9792 of "frame" command and "f" alias.
9793
ee9d1e5f
HD
97942020-04-30 Hannes Domani <ssbssa@yahoo.de>
9795
9796 PR gdb/18706
9797 * gdbtypes.c (check_typedef): Calculate size of array of
9798 stubbed type.
9799
627c7fb8
HD
98002020-04-30 Hannes Domani <ssbssa@yahoo.de>
9801
9802 PR gdb/15559
9803 * i386-tdep.c (i386_push_dummy_call): Call
9804 i386_thiscall_push_dummy_call.
9805 (i386_thiscall_push_dummy_call): New function.
9806 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
9807 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
9808 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
9809
ffc2844e
SM
98102020-04-29 Simon Marchi <simon.marchi@efficios.com>
9811
9812 * gdbarch.sh (do_read): Add shellcheck disable directive for
9813 warning SC2162.
9814
1207375d
SM
98152020-04-29 Simon Marchi <simon.marchi@efficios.com>
9816
9817 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
9818 "referenced but not assigned" warning.
9819
9fdb2916
SM
98202020-04-29 Simon Marchi <simon.marchi@efficios.com>
9821
9822 * gdbarch.sh: Remove code that sets fallbackdefault.
9823
759cea5e
SM
98242020-04-29 Simon Marchi <simon.marchi@efficios.com>
9825
9826 * gdbarch.sh: Use shell operators && and || instead of
9827 -a and -o.
9828
cb02ab24
SM
98292020-04-29 Simon Marchi <simon.marchi@efficios.com>
9830
9831 * gdbarch.sh: Use $(...) instead of `...`.
9832
a6fc5ffc
SM
98332020-04-29 Simon Marchi <simon.marchi@efficios.com>
9834
9835 * gdbarch.sh: Use double quotes around variables.
9836
8d113d13
SM
98372020-04-29 Simon Marchi <simon.marchi@efficios.com>
9838
9839 * gdbarch.sh: Use %s with printf, instead of variables in the
9840 format string.
9841
ed6acedd
TT
98422020-04-29 Tom Tromey <tromey@adacore.com>
9843
9844 PR ada/25875:
9845 * dwarf2/read.c (update_enumeration_type_from_children): Compute
9846 type fields here.
9847 (read_enumeration_type): Call
9848 update_enumeration_type_from_children later. Update comments.
9849 (process_enumeration_scope): Don't create type fields.
9850
b68b1b58
KR
98512020-04-29 Kamil Rytarowski <n54@gmx.com>
9852
9853 * nbsd-tdep.c: Include "xml-syscall.h".
9854 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
9855
f94b2e03
KR
98562020-04-29 Kamil Rytarowski <n54@gmx.com>
9857
9858 * nbsd-nat.c: Include "sys/wait.h".
9859 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
9860 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
9861 (nbsd_nat_target::remove_exec_catchpoint)
9862 (nbsd_nat_target::set_syscall_catchpoint): Add.
9863 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
9864 (nbsd_nat_target::insert_exec_catchpoint)
9865 (nbsd_nat_target::remove_exec_catchpoint)
9866 (nbsd_nat_target::set_syscall_catchpoint): Add.
9867 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
9868 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
9869 `nbsd_get_syscall_number'.
9870
fc49bc72
TT
98712020-04-29 Tom Tromey <tom@tromey.com>
9872
9873 * stack.c (print_block_frame_labels): Remove.
9874
d642b692
HD
98752020-04-29 Hannes Domani <ssbssa@yahoo.de>
9876
9877 PR gdb/17320
9878 * ada-valprint.c (val_print_packed_array_elements): Move array
9879 end bracket to new line.
9880 (ada_val_print_string): Remove extra spaces before first array
9881 element.
9882 * c-valprint.c (c_value_print_array): Likewise.
9883 * m2-valprint.c (m2_print_array_contents): Likewise.
9884 (m2_value_print_inner): Likewise.
9885 * p-valprint.c (pascal_value_print_inner): Likewise.
9886 * valprint.c (generic_val_print_array): Likewise.
9887 (value_print_array_elements): Move first array element and array
9888 end bracket to new line.
9889
ea90f227
TV
98902020-04-29 Tom de Vries <tdevries@suse.de>
9891
9892 PR symtab/25889
9893 * linespec.c (find_method): Fix ix calculation.
9894
4498ef4f
KR
98952020-04-28 Kamil Rytarowski <n54@gmx.com>
9896
9897 * syscalls/update-netbsd.sh: New file.
9898 * syscalls/netbsd.xml: Regenerate.
9899 * data-directory/Makefile.in: Register `netbsd.xml' in
9900 `SYSCALLS_FILES'.
9901
a55e30b5
SM
99022020-04-28 Simon Marchi <simon.marchi@efficios.com>
9903
9904 * syscalls/update-freebsd.sh: Add double quotes.
9905
2b2fbab8
TT
99062020-04-28 Tom Tromey <tom@tromey.com>
9907
9908 * NEWS: Update.
9909 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
9910 (cmdpy_init): Allow class_tui.
9911
a65189c9
TV
99122020-04-28 Mark Williams <mark@myosotissp.com>
9913
9914 PR gdb/24480
9915 * dwarf2read.c: Add missing assingments to list_in_scope when
9916 start_symtab was already called.
9917
1b95cdb7
SM
99182020-04-28 Simon Marchi <simon.marchi@efficios.com>
9919
9920 PR gdb/25881
9921 * dwarf2/read.c (offset_map_type): Use
9922 gdb:hash_enum<sect_offset> as hash function.
9923
15cd93d0
TV
99242020-04-28 Tom de Vries <tdevries@suse.de>
9925
9926 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
9927 with DW_AT_signature.
9928
1eb39914
SM
99292020-04-27 Simon Marchi <simon.marchi@efficios.com>
9930
9931 * configure.ac: Remove check for fs_base/gs_base in
9932 user_regs_struct.
9933 * configure: Re-generate.
9934 * config.in: Re-generate.
9935 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
9936 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
9937 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
9938
991a3e2e
LM
99392020-04-27 Luis Machado <luis.machado@linaro.org>
9940
9941 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
9942 problematic inline frame unwinding situation.
9943 * frame.c (frame_id_computed_p): New function.
9944 * frame.h (frame_id_computed_p): New prototype.
9945
361ba0e8
TT
99462020-04-26 Tom Tromey <tom@tromey.com>
9947
9948 * command.h (enum command_class) <class_pseudo>: Remove.
9949
bc3609fd
PW
99502020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9951
9952 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
9953 and whitespace.
9954
b9771db7
KR
99552020-04-25 Kamil Rytarowski <n54@gmx.com>
9956
ec16513e
SM
9957 * inf-ptrace.c (inf_ptrace_target::wait): Remove
9958 `PT_GET_PROCESS_STATE' block.
b9771db7 9959
7151c1af
TT
99602020-04-24 Tom Tromey <tom@tromey.com>
9961
9962 * symtab.h (symbol_get_demangled_name): Don't declare.
9963 * symtab.c (symbol_get_demangled_name): Remove.
9964 (general_symbol_info::natural_name)
9965 (general_symbol_info::demangled_name): Update.
9966
906bb4c5
TT
99672020-04-24 Tom Tromey <tom@tromey.com>
9968
9969 PR rust/25025:
9970 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
9971
bcfe6157
TT
99722020-04-24 Tom Tromey <tom@tromey.com>
9973
9974 PR symtab/12707:
9975 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
9976 exists.
9977 (new_symbol): Likewise.
9978 * compile/compile-object-load.c (get_out_value_type): Use
9979 symbol_matches_search_name.
9980
f049a313
TT
99812020-04-24 Tom Tromey <tom@tromey.com>
9982
9983 * dwarf2/read.c (add_partial_symbol): Do not call
9984 compute_and_set_names.
9985
76e288d1
TT
99862020-04-24 Tom Tromey <tom@tromey.com>
9987
9988 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
9989 overload.
9990
2467f4f6
TT
99912020-04-24 Tom Tromey <tom@tromey.com>
9992
9993 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
9994 (add_psymbol_to_list): New overload. Make old overload call new
9995 one.
9996 * psympriv.h (add_psymbol_to_list): New overload.
9997
e61108c9
TT
99982020-04-24 Tom Tromey <tom@tromey.com>
9999
10000 * dwarf2/read.c (partial_die_info::read) <case
10001 DW_AT_linkage_name>: Use value_as_string.
10002 (dwarf2_string_attr): Use value_as_string.
10003 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
10004 method.
10005 * dwarf2/attribute.c (attribute::value_as_string): New method.
10006
8c87a452
TT
100072020-04-24 Tom Tromey <tom@tromey.com>
10008
10009 * symtab.c (general_symbol_info::natural_name)
10010 (general_symbol_info::demangled_name): Check for language_rust.
10011
787de330
TT
100122020-04-24 Tom Tromey <tom@tromey.com>
10013
10014 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
10015 (dwarf2_physname): ... from here.
10016 (partial_die_info::read): Add Rust "{" hack.
10017
ff985671
TT
100182020-04-24 Tom Tromey <tom@tromey.com>
10019
10020 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
10021 method.
10022 (symbol_set_demangled_name): Don't declare.
10023 * symtab.c (general_symbol_info::set_demangled_name): Rename from
10024 symbol_set_demangled_name.
10025 (general_symbol_info::set_language)
10026 (general_symbol_info::compute_and_set_names): Update.
10027 * minsyms.c (minimal_symbol_reader::install): Update.
10028 * dwarf2/read.c (new_symbol): Update.
10029
1acda803
TT
100302020-04-24 Tom Tromey <tromey@adacore.com>
10031
10032 PR python/23662:
10033 * python/py-type.c (convert_field): Handle
10034 FIELD_LOC_KIND_DWARF_BLOCK.
10035 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
10036 (typy_get_dynamic): Nw function.
10037 (type_object_getset): Add "dynamic".
10038 * NEWS: Add entry.
10039
d656f129
TT
100402020-04-24 Tom Tromey <tromey@adacore.com>
10041
10042 * ada-typeprint.c (print_choices, print_variant_part)
10043 (print_record_field_types_dynamic): New functions.
10044 (print_record_field_types): Use print_record_field_types_dynamic.
10045
7d79de9a
TT
100462020-04-24 Tom Tromey <tromey@adacore.com>
10047
10048 * dwarf2/read.c (handle_data_member_location): New overload.
10049 (dwarf2_add_field): Use it.
10050 (decode_locdesc): Add "computed" parameter. Update comment.
10051 * gdbtypes.c (is_dynamic_type_internal): Also look for
10052 FIELD_LOC_KIND_DWARF_BLOCK.
10053 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
10054 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
10055 virtual base classes.
10056 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
10057 FIELD_LOC_KIND_DWARF_BLOCK.
10058
f8e89861
TT
100592020-04-24 Tom Tromey <tromey@adacore.com>
10060
10061 * dwarf2/read.c (read_structure_type): Handle dynamic length.
10062 * gdbtypes.c (is_dynamic_type_internal): Check
10063 TYPE_HAS_DYNAMIC_LENGTH.
10064 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
10065 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
10066 New macros.
10067 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
10068 constant.
10069
9c6a1327
TT
100702020-04-24 Tom Tromey <tromey@adacore.com>
10071
10072 * dwarf2/read.c (struct variant_field): Rewrite.
10073 (struct variant_part_builder): New.
10074 (struct nextfield): Remove "variant" field. Add "offset".
10075 (struct field_info): Add "current_variant_part" and
10076 "variant_parts".
10077 (alloc_discriminant_info): Remove.
10078 (alloc_rust_variant): New function.
10079 (quirk_rust_enum): Update.
10080 (dwarf2_add_field): Set "offset" member. Don't handle
10081 DW_TAG_variant_part.
10082 (offset_map_type): New typedef.
10083 (convert_variant_range, create_one_variant)
10084 (create_one_variant_part, create_variant_parts)
10085 (add_variant_property): New functions.
10086 (dwarf2_attach_fields_to_type): Call add_variant_property.
10087 (read_structure_type): Don't handle DW_TAG_variant_part.
10088 (handle_variant_part, handle_variant): New functions.
10089 (handle_struct_member_die): Use them.
10090 (process_structure_scope): Don't handle variant parts.
10091 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
10092 (struct discriminant_info): Remove.
10093 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
10094 (struct main_type) <flag_discriminated_union>: Remove.
10095 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
10096 (rust_enum_variant): Return int. Remove "contents". Rewrite.
10097 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
10098 Update.
10099 * valops.c (value_union_variant): Remove.
10100 * value.h (value_union_variant): Don't declare.
10101
b249d2c2
TT
101022020-04-24 Tom Tromey <tromey@adacore.com>
10103
10104 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
10105 (ada_value_primitive_packed_val): Update.
10106 * ada-valprint.c (ada_value_print_1): Update.
10107 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
10108 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
10109 just an address. Use evaluate_for_locexpr_baton.
10110 (dwarf2_evaluate_property): Update.
10111 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
10112 array_view.
10113 * findvar.c (default_read_var_value): Update.
10114 * gdbtypes.c (compute_variant_fields_inner)
10115 (resolve_dynamic_type_internal): Update.
10116 (resolve_dynamic_type): Change type of valaddr parameter.
10117 * gdbtypes.h (resolve_dynamic_type): Update.
10118 * valarith.c (value_subscripted_rvalue): Update.
10119 * value.c (value_from_contents_and_address): Update.
10120
61122aa9
TT
101212020-04-24 Tom Tromey <tromey@adacore.com>
10122
10123 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
10124 "push_initial_value" parameter.
10125 (dwarf2_evaluate_property): Likewise.
10126 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
10127
ef83a141
TT
101282020-04-24 Tom Tromey <tromey@adacore.com>
10129
10130 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
10131 (variant::matches, compute_variant_fields_recurse)
10132 (compute_variant_fields_inner, compute_variant_fields): New
10133 functions.
10134 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
10135 Use resolved_type after type is made.
10136 (operator==): Add new cases.
10137 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
10138 (struct discriminant_range, struct variant, struct variant_part):
10139 New.
10140 (union dynamic_prop_data) <variant_parts, original_type>: New
10141 members.
10142 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
10143 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
10144 constants.
10145 * value.c (unpack_bits_as_long): Now public.
10146 * value.h (unpack_bits_as_long): Declare.
10147
675127ec
TT
101482020-04-24 Tom Tromey <tromey@adacore.com>
10149
10150 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
10151 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
10152
9852ceef
HD
101532020-04-24 Hannes Domani <ssbssa@yahoo.de>
10154
10155 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
10156
7632c6ce
KR
101572020-04-24 Kamil Rytarowski <n54@gmx.com>
10158
10159 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
10160 (remove_fork_catchpoint, post_startup_inferior)
10161 (post_attach): Move...
10162 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
10163 (remove_fork_catchpoint, post_startup_inferior)
10164 (post_attach): ...here.
10165 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
10166 (remove_fork_catchpoint, post_startup_inferior)
10167 (post_attach): Move...
10168 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
10169 (remove_fork_catchpoint, post_startup_inferior)
10170 (post_attach): ...here.
10171
7be2bb4f
TT
101722020-04-24 Tom Tromey <tromey@adacore.com>
10173
10174 * nat/windows-nat.h (struct windows_thread_info)
10175 <pc_adjusted>: New member.
10176 * windows-nat.c (windows_fetch_one_register): Check
10177 pc_adjusted.
10178 (windows_nat_target::get_windows_debug_event)
10179 (windows_nat_target::wait): Set pc_adjusted.
10180
f80cb3b4
TV
101812020-04-24 Tom de Vries <tdevries@suse.de>
10182
10183 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
10184 Run gdb-add-index inside temp dir.
10185
29514b87
TT
101862020-04-23 Tom Tromey <tromey@adacore.com>
10187
10188 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
10189 in loop.
10190
5939967b
LM
101912020-04-23 Luis Machado <luis.machado@linaro.org>
10192
10193 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10194 get_frame_register instead of gdbarch_unwind_pc.
10195
70bc38f5
TV
101962020-04-23 Tom de Vries <tdevries@suse.de>
10197
10198 * symtab.c (lookup_global_symbol): Prefer def over decl.
10199
de82891c
TV
102002020-04-23 Tom de Vries <tdevries@suse.de>
10201
10202 PR symtab/25807
10203 * block.c (best_symbol, better_symbol): Promote to external.
10204 * block.h (best_symbol, better_symbol): Declare.
10205 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
10206 decl.
10207
ecc6c606
TT
102082020-04-23 Tom Tromey <tromey@adacore.com>
10209
10210 PR ada/25837:
10211 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
10212 "const char *", not a "const std::string &".
10213 <name_and_matcher::operator==>: Update.
10214 * unittests/lookup_name_info-selftests.c: Change type of
10215 "result".
10216
740480b8
TT
102172020-04-23 Tom Tromey <tom@tromey.com>
10218
10219 * inferior.h (iterate_over_inferiors): Don't declare.
10220 * inferior.c (iterate_over_inferiors): Remove.
10221 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
10222 Remove.
10223 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
10224 use iterate_over_inferiors.
10225 (darwin_resume_inferior_it)
10226 (struct resume_inferior_threads_param)
10227 (darwin_resume_inferior_threads_it): Remove.
10228 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
10229
ae3ab1f0
TV
102302020-04-23 Tom de Vries <tdevries@suse.de>
10231
10232 * blockframe.c (find_pc_partial_function): Use
10233 find_pc_sect_compunit_symtab rather than
10234 objfile->sf->qf->find_pc_sect_compunit_symtab.
10235
317d2668
TV
102362020-04-22 Tom de Vries <tdevries@suse.de>
10237
10238 PR symtab/25764
10239 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
10240 in psymtabs.
10241
eea9e357
TV
102422020-04-22 Tom de Vries <tdevries@suse.de>
10243
10244 PR symtab/25801
10245 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
10246 symtabs.
10247
3d5afab3
TV
102482020-04-22 Tom de Vries <tdevries@suse.de>
10249
10250 PR symtab/25700
10251 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
10252 CU if already created.
10253
d43b7a2d
TBA
102542020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10255
10256 * infrun.c (displaced_step_fixup): Switch to the event_thread
10257 before calling displaced_step_restore, not after.
10258
d89edf9b
MM
102592020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10260
10261 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
10262 its inferior is not recorded by us.
10263 (record_btrace_target_open): Replace call to
10264 all_non_exited_threads () with call to current_inferior
10265 ()->non_exited_threads ().
10266 (record_btrace_target::stop_recording): Likewise.
10267 (record_btrace_target::close): Likewise.
10268 (record_btrace_target::wait): Likewise.
10269 (record_btrace_target::record_stop_replaying): Likewise.
10270
5897fd49
MM
102712020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10272
10273 * btrace.c (btrace_enable): Throw an error on double enables and
10274 when enabling recording fails.
10275 (btrace_disable): Throw an error if the thread is not recorded.
10276
1a476b6d
MM
102772020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10278
10279 * record-btrace.c (record_btrace_target::fetch_registers): Forward
10280 request if we do not have a thread_info.
10281
4778a5f8
TV
102822020-04-21 Tom de Vries <tdevries@suse.de>
10283
10284 PR gdb/25471
10285 * thread.c
10286 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
10287 exception in get_frame_id.
10288
0fa7617d
TT
102892020-04-20 Tom Tromey <tromey@adacore.com>
10290
10291 * python/python.c (struct gdbpy_event): Mark move constructor as
10292 noexcept.
10293 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
10294 constructor as noexcept.
10295 * completer.h (struct completion_result): Mark move constructor as
10296 noexcept.
10297 * completer.c (completion_result::completion_result): Use
10298 initialization style. Don't call reset_match_list.
10299
ad23bda0
MS
103002020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
10301
10302 * MAINTAINERS (Write After Approval): Add myself.
10303
45e1f031
TT
103042020-04-18 Tom Tromey <tom@tromey.com>
10305
10306 * windows-tdep.c (init_w32_command_list)
10307 (w32_prefix_command_valid): Restore.
10308 (_initialize_windows_tdep): Call init_w32_command_list.
10309
08feed99
TT
103102020-04-18 Tom Tromey <tom@tromey.com>
10311
10312 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
10313 * value.c (value_fn_field): Update.
10314 * valops.c (find_function_in_inferior)
10315 (value_allocate_space_in_inferior): Update.
10316 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10317 Update.
10318 * tui/tui-source.c (tui_source_window::set_contents): Update.
10319 * symtab.c (lookup_global_or_static_symbol)
10320 (find_function_start_sal_1, skip_prologue_sal)
10321 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
10322 * symmisc.c (dump_msymbols, dump_symtab_1)
10323 (maintenance_print_one_line_table): Update.
10324 * symfile.c (init_entry_point_info, section_is_mapped)
10325 (list_overlays_command, simple_read_overlay_table)
10326 (simple_overlay_update_1): Update.
10327 * stap-probe.c (handle_stap_probe): Update.
10328 * stabsread.c (dbx_init_float_type, define_symbol)
10329 (read_one_struct_field, read_enum_type, read_range_type): Update.
10330 * source.c (info_line_command): Update.
10331 * python/python.c (gdbpy_source_objfile_script)
10332 (gdbpy_execute_objfile_script): Update.
10333 * python/py-type.c (save_objfile_types): Update.
10334 * python/py-objfile.c (py_free_objfile): Update.
10335 * python/py-inferior.c (python_new_objfile): Update.
10336 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
10337 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
10338 (maintenance_check_psymtabs): Update.
10339 * printcmd.c (info_address_command): Update.
10340 * objfiles.h (struct objfile) <arch>: New method, from
10341 get_objfile_arch.
10342 (get_objfile_arch): Don't declare.
10343 * objfiles.c (get_objfile_arch): Remove.
10344 (filter_overlapping_sections): Update.
10345 * minsyms.c (msymbol_is_function): Update.
10346 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
10347 (output_nondebug_symbol): Update.
10348 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
10349 (mdebug_expand_psymtab): Update.
10350 * machoread.c (macho_add_oso_symfile): Update.
10351 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
10352 Update.
10353 * linux-fork.c (checkpoint_command): Update.
10354 * linespec.c (convert_linespec_to_sals): Update.
10355 * jit.c (finalize_symtab): Update.
10356 * infrun.c (insert_exception_resume_from_probe): Update.
10357 * ia64-tdep.c (ia64_find_unwind_table): Update.
10358 * hppa-tdep.c (internalize_unwinds): Update.
10359 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
10360 Update.
10361 * gcore.c (call_target_sbrk): Update.
10362 * elfread.c (record_minimal_symbol, elf_symtab_read)
10363 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
10364 (elf_gnu_ifunc_resolve_by_got): Update.
10365 * dwarf2/read.c (create_addrmap_from_index)
10366 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10367 (read_debug_names_from_section)
10368 (process_psymtab_comp_unit_reader, add_partial_symbol)
10369 (add_partial_subprogram, process_full_comp_unit)
10370 (read_file_scope, read_func_scope, read_lexical_block_scope)
10371 (read_call_site_scope, dwarf2_ranges_read)
10372 (dwarf2_record_block_ranges, dwarf2_add_field)
10373 (mark_common_block_symbol_computed, read_tag_pointer_type)
10374 (read_tag_string_type, dwarf2_init_float_type)
10375 (dwarf2_init_complex_target_type, read_base_type)
10376 (partial_die_info::read, partial_die_info::read)
10377 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
10378 (dwarf2_fetch_die_loc_sect_off): Update.
10379 * dwarf2/loc.c (dwarf2_find_location_expression)
10380 (class dwarf_evaluate_loc_desc, rw_pieced_value)
10381 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
10382 (dwarf2_loc_desc_get_symbol_read_needs)
10383 (locexpr_describe_location_piece, locexpr_describe_location_1)
10384 (loclist_describe_location): Update.
10385 * dwarf2/index-write.c (write_debug_names): Update.
10386 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
10387 * dtrace-probe.c (dtrace_process_dof): Update.
10388 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
10389 (process_one_symbol): Update.
10390 * ctfread.c (ctf_init_float_type, read_base_type): Update.
10391 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
10392 (coff_read_enum_type): Update.
10393 * cli/cli-cmds.c (edit_command, list_command): Update.
10394 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
10395 * breakpoint.c (create_overlay_event_breakpoint)
10396 (create_longjmp_master_breakpoint)
10397 (create_std_terminate_master_breakpoint)
10398 (create_exception_master_breakpoint, get_sal_arch): Update.
10399 * block.c (block_gdbarch): Update.
10400 * annotate.c (annotate_source_line): Update.
10401
0743fc83
TT
104022020-04-17 Tom Tromey <tromey@adacore.com>
10403
10404 * auto-load.c (show_auto_load_cmd): Remove.
10405 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
10406 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
10407 (maintenance_print_arc_command): Remove.
10408 * tui/tui-win.c (tui_command): Remove.
10409 (tui_get_cmd_list): Use add_basic_prefix_cmd.
10410 * tui/tui-layout.c (tui_layout_command): Remove.
10411 (_initialize_tui_layout): Use add_basic_prefix_cmd.
10412 * python/python.c (user_set_python, user_show_python): Remove.
10413 (_initialize_python): Use add_basic_prefix_cmd,
10414 add_show_prefix_cmd.
10415 * guile/guile.c (set_guile_command, show_guile_command): Remove.
10416 (install_gdb_commands): Use add_basic_prefix_cmd,
10417 add_show_prefix_cmd.
10418 (info_guile_command): Remove.
10419 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
10420 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
10421 add_show_prefix_cmd.
10422 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
10423 Remove do_set and do_show parameters.
10424 * cli/cli-style.c (set_style, show_style): Remove.
10425 (_initialize_cli_style): Use add_basic_prefix_cmd,
10426 add_show_prefix_cmd.
10427 (cli_style_option::add_setshow_commands): Remove do_set and
10428 do_show parameters.
10429 (cli_style_option::add_setshow_commands): Use
10430 add_basic_prefix_cmd, add_show_prefix_cmd.
10431 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
10432 (set_style_name): Remove.
10433 * cli/cli-dump.c (dump_command, append_command): Remove.
10434 (srec_dump_command, ihex_dump_command, verilog_dump_command)
10435 (tekhex_dump_command, binary_dump_command)
10436 (binary_append_command): Remove.
10437 (_initialize_cli_dump): Use add_basic_prefix_cmd.
10438 * windows-tdep.c (w32_prefix_command_valid): Remove global.
10439 (init_w32_command_list): Remove; move into ...
10440 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
10441 * valprint.c (set_print, show_print, set_print_raw)
10442 (show_print_raw): Remove.
10443 (_initialize_valprint): Use add_basic_prefix_cmd,
10444 add_show_prefix_cmd.
10445 * typeprint.c (set_print_type, show_print_type): Remove.
10446 (_initialize_typeprint): Use add_basic_prefix_cmd,
10447 add_show_prefix_cmd.
10448 * record.c (set_record_command, show_record_command): Remove.
10449 (_initialize_record): Use add_basic_prefix_cmd,
10450 add_show_prefix_cmd.
10451 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
10452 add_show_prefix_cmd.
10453 (info_command, show_command, set_debug, show_debug): Remove.
10454 * top.h (set_history, show_history): Don't declare.
10455 * top.c (set_history, show_history): Remove.
10456 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
10457 (unset_tdesc_cmd): Remove.
10458 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
10459 add_show_prefix_cmd.
10460 * symtab.c (info_module_command): Remove.
10461 (_initialize_symtab): Use add_basic_prefix_cmd.
10462 * symfile.c (overlay_command): Remove.
10463 (_initialize_symfile): Use add_basic_prefix_cmd.
10464 * sparc64-tdep.c (info_adi_command): Remove.
10465 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
10466 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
10467 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
10468 add_show_prefix_cmd.
10469 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
10470 (_initialize_serial): Use add_basic_prefix_cmd,
10471 add_show_prefix_cmd.
10472 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
10473 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
10474 add_show_prefix_cmd.
10475 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
10476 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
10477 add_show_prefix_cmd.
10478 * riscv-tdep.c (show_riscv_command, set_riscv_command)
10479 (show_debug_riscv_command, set_debug_riscv_command): Remove.
10480 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
10481 add_show_prefix_cmd.
10482 * remote.c (remote_command, set_remote_cmd): Remove.
10483 (_initialize_remote): Use add_basic_prefix_cmd.
10484 * record-full.c (set_record_full_command)
10485 (show_record_full_command): Remove.
10486 (_initialize_record_full): Use add_basic_prefix_cmd,
10487 add_show_prefix_cmd.
10488 * record-btrace.c (cmd_set_record_btrace)
10489 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
10490 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
10491 (cmd_show_record_btrace_pt): Remove.
10492 (_initialize_record_btrace): Use add_basic_prefix_cmd,
10493 add_show_prefix_cmd.
10494 * ravenscar-thread.c (set_ravenscar_command)
10495 (show_ravenscar_command): Remove.
10496 (_initialize_ravenscar): Use add_basic_prefix_cmd,
10497 add_show_prefix_cmd.
10498 * mips-tdep.c (show_mips_command, set_mips_command)
10499 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
10500 add_show_prefix_cmd.
10501 * maint.c (maintenance_command, maintenance_info_command)
10502 (maintenance_check_command, maintenance_print_command)
10503 (maintenance_set_cmd, maintenance_show_cmd): Remove.
10504 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
10505 add_show_prefix_cmd.
10506 (show_per_command_cmd): Remove.
10507 * maint-test-settings.c (maintenance_set_test_settings_cmd):
10508 Remove.
10509 (maintenance_show_test_settings_cmd): Remove.
10510 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
10511 add_show_prefix_cmd.
10512 * maint-test-options.c (maintenance_test_options_command):
10513 Remove.
10514 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
10515 * macrocmd.c (macro_command): Remove
10516 (_initialize_macrocmd): Use add_basic_prefix_cmd.
10517 * language.c (set_check, show_check): Remove.
10518 (_initialize_language): Use add_basic_prefix_cmd,
10519 add_show_prefix_cmd.
10520 * infcmd.c (unset_command): Remove.
10521 (_initialize_infcmd): Use add_basic_prefix_cmd.
10522 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
10523 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
10524 add_show_prefix_cmd.
10525 * go32-nat.c (go32_info_dos_command): Remove.
10526 (_initialize_go32_nat): Use add_basic_prefix_cmd.
10527 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
10528 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
10529 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
10530 (_initialize_frame): Use add_basic_prefix_cmd,
10531 add_show_prefix_cmd.
10532 * dcache.c (set_dcache_command, show_dcache_command): Remove.
10533 (_initialize_dcache): Use add_basic_prefix_cmd,
10534 add_show_prefix_cmd.
10535 * cp-support.c (maint_cplus_command): Remove.
10536 (_initialize_cp_support): Use add_basic_prefix_cmd.
10537 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
10538 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
10539 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
10540 add_basic_prefix_cmd, add_show_prefix_cmd.
10541 * breakpoint.c (save_command): Remove.
10542 (_initialize_breakpoint): Use add_basic_prefix_cmd.
10543 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
10544 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
10545 add_show_prefix_cmd.
10546 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
10547 (set_ada_command, show_ada_command): Remove.
10548 (_initialize_ada_language): Use add_basic_prefix_cmd,
10549 add_show_prefix_cmd.
10550 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
10551
3557f442
KR
105522020-04-16 Kamil Rytarowski <n54@gmx.com>
10553
10554 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
10555 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
10556
16197208
SM
105572020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
10558
10559 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
10560 warning messages.
10561
00ac85d3
SM
105622020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
10563
10564 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
10565 import table is not at beginning of .idata section.
10566
381ce63f
PA
105672020-04-16 Pedro Alves <palves@redhat.com>
10568
10569 * inferior.c (delete_inferior): Use delete operator directly
10570 instead of delete_program_space.
10571 * progspace.c (add_program_space): New, factored out from
10572 program_space::program_space.
10573 (remove_program_space): New, factored out from
10574 delete_program_space.
10575 (program_space::program_space): Remove intro comment. Rewrite.
10576 (program_space::~program_space): Remove intro comment. Call
10577 remove_program_space.
10578 (delete_program_space): Delete.
10579 * progspace.h (program_space::program_space): Make explicit. Move
10580 intro comment here, adjusted.
10581 (program_space::~program_space): Move intro comment here,
10582 adjusted.
10583 (delete_program_space): Remove.
10584
a010605f
TT
105852020-04-16 Tom Tromey <tromey@adacore.com>
10586
10587 * windows-nat.c (windows_nat::handle_access_violation): New
10588 function.
10589 * nat/windows-nat.h (handle_access_violation): Declare.
10590 * nat/windows-nat.c (handle_exception): Move Cygwin code to
10591 windows-nat.c. Call handle_access_violation.
10592
efba5c23
TV
105932020-04-16 Tom de Vries <tdevries@suse.de>
10594
10595 PR symtab/25791
10596 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
10597 CUs without psymtab.
10598
97ed802d
KB
105992020-04-16 Kevin Buettner <kevinb@redhat.com>
10600
10601 * python/python.c (do_start_initialization): Don't call
10602 PyEval_InitThreads for Python 3.9 and beyond.
10603
c7d64809
KR
106042020-04-15 Kamil Rytarowski <n54@gmx.com>
10605
10606 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
10607 thread functions.
10608 (obsd_nat_target::wait): Likewise.
10609
ce127a96
TT
106102020-04-15 Tom Tromey <tromey@adacore.com>
10611
10612 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
10613 (DEBUG_EXCEPT): Use debug_printf.
10614
99f1bc6a
AB
106152020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
10616
10617 * completer.c (class completion_tracker::completion_hash_entry)
10618 <hash_name>: New member function.
10619 (completion_tracker::discard_completions): New callback to hash a
10620 completion_hash_entry, pass this to htab_create_alloc.
10621
a0e9b532
JT
106222016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
10623
10624 * windows-nat.c (windows_make_so): Warn rather than stopping with
10625 an error if realpath() fails.
10626
06ca5dd4
KR
106272020-04-14 Kamil Rytarowski <n54@gmx.com>
10628
10629 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
10630 (nbsd_nat_target::info_proc): Add do_status.
10631
194d088f
TV
106322020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
10633 Tom de Vries <tdevries@suse.de>
10634
10635 PR symtab/25718
10636 * psympriv.h (struct partial_symtab::read_symtab)
10637 (struct partial_symtab::expand_psymtab)
10638 (struct partial_symtab::read_dependencies): Update comments.
10639 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
10640 read_symtab for includer.
10641 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
10642 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
10643 (struct dwarf2_include_psymtab::m_readin): Remove.
10644 (struct dwarf2_include_psymtab::includer): New member function.
10645 (dwarf2_psymtab::expand_psymtab): Assert !readin.
10646
c1a66c06
TV
106472020-04-14 Tom de Vries <tdevries@suse.de>
10648
10649 PR symtab/25720
10650 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
10651 with NULL symbol_matcher and lookup_name.
10652 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
10653 and lookup_name.
10654 * dwarf2/read.c (dw2_expand_symtabs_matching)
10655 (dw2_debug_names_expand_symtabs_matching): Same.
10656 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
10657 Make lookup_name a pointer. Update comment.
10658 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
10659 lookup_name being a pointer.
10660 * symfile.c (expand_symtabs_matching): Same.
10661 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
10662 * linespec.c (iterate_over_all_matching_symtabs): Same.
10663
400b5eca
TT
106642020-04-13 Tom Tromey <tom@tromey.com>
10665
10666 * run-on-main-thread.c: Update include.
10667 * unittests/main-thread-selftests.c: Update include.
10668 * tui/tui-win.c: Update include.
10669 * tui/tui-io.c: Update include.
10670 * tui/tui-interp.c: Update include.
10671 * tui/tui-hooks.c: Update include.
10672 * top.h: Update include.
10673 * top.c: Update include.
10674 * ser-base.c: Update include.
10675 * remote.c: Update include.
10676 * remote-notif.c: Update include.
10677 * remote-fileio.c: Update include.
10678 * record-full.c: Update include.
10679 * record-btrace.c: Update include.
10680 * python/python.c: Update include.
10681 * posix-hdep.c: Update include.
10682 * mingw-hdep.c: Update include.
10683 * mi/mi-main.c: Update include.
10684 * mi/mi-interp.c: Update include.
10685 * main.c: Update include.
10686 * linux-nat.c: Update include.
10687 * interps.c: Update include.
10688 * infrun.c: Update include.
10689 * inf-loop.c: Update include.
10690 * event-top.c: Update include.
10691 * event-loop.c: Move to ../gdbsupport/.
10692 * event-loop.h: Move to ../gdbsupport/.
10693 * async-event.h: Update include.
10694 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
10695
93b54c8e
TT
106962020-04-13 Tom Tromey <tom@tromey.com>
10697
10698 * tui/tui-win.c: Include async-event.h.
10699 * remote.c: Include async-event.h.
10700 * remote-notif.c: Include async-event.h.
10701 * record-full.c: Include async-event.h.
10702 * record-btrace.c: Include async-event.h.
10703 * infrun.c: Include async-event.h.
10704 * event-top.c: Include async-event.h.
10705 * event-loop.h: Move some declarations to async-event.h.
10706 * event-loop.c: Don't include ser-event.h or top.h. Move some
10707 code to async-event.c.
10708 * async-event.h: New file.
10709 * async-event.c: New file.
10710 * Makefile.in (COMMON_SFILES): Add async-event.c.
10711 (HFILES_NO_SRCDIR): Add async-event.h.
10712
c1cd3163
TT
107132020-04-13 Tom Tromey <tom@tromey.com>
10714
10715 * utils.c (flush_streams): New function.
10716 * event-loop.c (gdb_wait_for_event): Call flush_streams.
10717
29f2bf4f
TT
107182020-04-13 Tom Tromey <tom@tromey.com>
10719
10720 * event-loop.c (handle_file_event): Use warning, not
10721 printf_unfiltered.
10722
98029d02
TT
107232020-04-13 Tom Tromey <tom@tromey.com>
10724
10725 * event-loop.c: Include <chrono>.
10726
06cc9596
TT
107272020-04-13 Tom Tromey <tom@tromey.com>
10728
10729 * gdb_select.h: Move to ../gdbsupport/.
10730 * event-loop.c: Update include path.
10731 * top.c: Update include path.
10732 * ser-base.c: Update include path.
10733 * ui-file.c: Update include path.
10734 * ser-tcp.c: Update include path.
10735 * guile/scm-ports.c: Update include path.
10736 * posix-hdep.c: Update include path.
10737 * ser-unix.c: Update include path.
10738 * gdb_usleep.c: Update include path.
10739 * mingw-hdep.c: Update include path.
10740 * inflow.c: Update include path.
10741 * infrun.c: Update include path.
10742 * event-top.c: Update include path.
10743
8ae8e197
TT
107442020-04-13 Tom Tromey <tom@tromey.com>
10745
10746 * configure: Rebuild.
10747 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
10748
58cf28e8
TT
107492020-04-13 Tom Tromey <tom@tromey.com>
10750
10751 * event-loop.h (start_event_loop): Don't declare.
10752 * event-loop.c (start_event_loop): Move...
10753 * main.c (start_event_loop): ...here. Now static.
10754
b7f999ae
SDJ
107552020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
10756
10757 * MAINTAINERS: Update my email address.
10758
1085dfd4
KR
107592020-04-12 Kamil Rytarowski <n54@gmx.com>
10760
10761 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
10762 IP_ALL.
10763
49d1d1f5
KR
107642020-04-12 Kamil Rytarowski <n54@gmx.com>
10765
10766 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 10767 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 10768
b4848d2a
KR
107692020-04-12 Kamil Rytarowski <n54@gmx.com>
10770
10771 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 10772 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 10773
51c133d5
KR
107742020-04-12 Kamil Rytarowski <n54@gmx.com>
10775
10776 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
10777
54b8cbd0
KR
107782020-04-11 Kamil Rytarowski <n54@gmx.com>
10779
10780 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
10781 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
10782 (nbsd_nat_target::info_proc): New functions.
10783 * nbsd-nat.c (kinfo_get_vmmap): New function.
10784 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
10785 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
10786 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
10787 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
10788 functions.
10789 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
10790 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
10791 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
10792 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
10793 (KINFO_VME_FLAG_GROWS_DOWN): New.
10794
cf83625d
AS
107952020-04-10 Artur Shepilko <nomadbyte@gmail.com>
10796
10797 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
10798 bit shift.
10799
0c4311ab
TT
108002020-04-10 Tom Tromey <tromey@adacore.com>
10801
10802 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
10803
3e65b3e9
TT
108042020-04-10 Tom Tromey <tromey@adacore.com>
10805
10806 * symtab.c (get_symbol_address, get_msymbol_address): Skip
10807 separate debug files.
10808
13302e95
HD
108092020-04-10 Hannes Domani <ssbssa@yahoo.de>
10810
10811 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
10812 Move to...
10813 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
10814 ... here.
10815 * windows-nat.c (windows_nat_target::get_windows_debug_event):
10816 Check for STATUS_WX86_BREAKPOINT.
10817 (windows_nat_target::wait): Same.
10818
bdfc1e8a
TV
108192020-04-10 Tom de Vries <tdevries@suse.de>
10820
10821 PR cli/25808
10822 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
10823
f4460aec
SM
108242020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10825
10826 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
10827 (Write After Approval): Remove Tom de Vries.
10828
a25198bb
BE
108292020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
10830
10831 revert partially:
10832 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10833
aac66a4c
SM
10834 * buildsym.c (record_line): Fix undefined behavior and preserve
10835 lines at eof.
a25198bb 10836
206c98a6
KR
108372020-04-09 Kamil Rytarowski <n54@gmx.com>
10838
10839 * auxv.h (svr4_auxv_parse): New.
10840 * auxv.c (default_auxv_parse): Split into default_auxv_parse
10841 and generic_auxv_parse.
10842 (svr4_auxv_parse): Add.
10843 * obsd-tdep.c: Include "auxv.h".
10844 (obsd_auxv_parse): Remove.
10845 (obsd_init_abi): Remove comment.
10846 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
10847 from `obsd_auxv_parse' to `svr4_auxv_parse'.
10848 * nbsd-tdep.c: Include "auxv.h".
10849 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
10850
71fbdbaf
TT
108512020-04-08 Tom Tromey <tromey@adacore.com>
10852
10853 * nat/windows-nat.h (last_wait_event): Don't declare.
10854 (wait_for_debug_event): Update comment.
10855 * nat/windows-nat.c (last_wait_event): Now static.
10856
2c1d95e8
TT
108572020-04-08 Tom Tromey <tromey@adacore.com>
10858
10859 * windows-nat.c (wait_for_debug_event): Move to
10860 nat/windows-nat.c.
10861 * nat/windows-nat.h (wait_for_debug_event): Declare.
10862 * nat/windows-nat.c (wait_for_debug_event): Move from
10863 windows-nat.c. No longer static.
10864
d2977bc4
TT
108652020-04-08 Tom Tromey <tromey@adacore.com>
10866
10867 * windows-nat.c (get_windows_debug_event): Use
10868 fetch_pending_stop.
10869 * nat/windows-nat.h (fetch_pending_stop): Declare.
10870 * nat/windows-nat.c (fetch_pending_stop): New function.
10871
e758e19c
TT
108722020-04-08 Tom Tromey <tromey@adacore.com>
10873
10874 * windows-nat.c (windows_continue): Use matching_pending_stop and
10875 continue_last_debug_event.
10876 * nat/windows-nat.h (matching_pending_stop)
10877 (continue_last_debug_event): Declare.
10878 * nat/windows-nat.c (DEBUG_EVENTS): New define.
10879 (matching_pending_stop, continue_last_debug_event): New
10880 functions.
10881
8d30e395
TT
108822020-04-08 Tom Tromey <tromey@adacore.com>
10883
10884 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
10885 (handle_exception_result): Move to nat/windows-nat.h.
10886 (DEBUG_EXCEPTION_SIMPLE): Remove.
10887 (windows_nat::handle_ms_vc_exception): New function.
10888 (handle_exception): Move to nat/windows-nat.c.
10889 (get_windows_debug_event): Update.
10890 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
10891 nat/windows-nat.c.
10892 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
10893 (handle_exception_result): Move from windows-nat.c.
10894 (handle_exception): Declare.
10895 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
10896 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
10897 windows-nat.c.
10898
29de418d
TT
108992020-04-08 Tom Tromey <tromey@adacore.com>
10900
10901 * windows-nat.c (exception_count, event_count): Remove.
10902 (handle_exception, get_windows_debug_event)
10903 (do_initial_windows_stuff): Update.
10904
a816ba18
TT
109052020-04-08 Tom Tromey <tromey@adacore.com>
10906
10907 * windows-nat.c (windows_nat::handle_load_dll)
10908 (windows_nat::handle_unload_dll): Rename. No longer static.
10909 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
10910 Declare.
10911
a00caa12
TT
109122020-04-08 Tom Tromey <tromey@adacore.com>
10913
10914 * complaints.h (stop_whining): Declare at top-level.
10915 (complaint): Don't declare stop_whining.
10916
d41b524f
TT
109172020-04-08 Tom Tromey <tromey@adacore.com>
10918
10919 * windows-nat.c (windows_nat::handle_output_debug_string):
10920 Rename. No longer static.
10921 * nat/windows-nat.h (handle_output_debug_string): Declare.
10922
3c76026d
TT
109232020-04-08 Tom Tromey <tromey@adacore.com>
10924
10925 * windows-nat.c (current_process_handle, current_process_id)
10926 (main_thread_id, last_sig, current_event, last_wait_event)
10927 (current_windows_thread, desired_stop_thread_id, pending_stops)
10928 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
10929 (display_selectors, fake_create_process)
10930 (get_windows_debug_event): Update.
10931 * nat/windows-nat.h (current_process_handle, current_process_id)
10932 (main_thread_id, last_sig, current_event, last_wait_event)
10933 (current_windows_thread, desired_stop_thread_id, pending_stops)
10934 (struct pending_stop, siginfo_er): Move from windows-nat.c.
10935 * nat/windows-nat.c (current_process_handle, current_process_id)
10936 (main_thread_id, last_sig, current_event, last_wait_event)
10937 (current_windows_thread, desired_stop_thread_id, pending_stops)
10938 (siginfo_er): New globals. Move from windows-nat.c.
10939
9d8679cc
TT
109402020-04-08 Tom Tromey <tromey@adacore.com>
10941
10942 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
10943 (handle_load_dll): Update.
10944 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
10945
28688adf
TT
109462020-04-08 Tom Tromey <tromey@adacore.com>
10947
10948 * windows-nat.c (enum thread_disposition_type): Move to
10949 nat/windows-nat.h.
10950 (windows_nat::thread_rec): Rename from thread_rec. No longer
10951 static.
10952 (windows_add_thread, windows_nat_target::fetch_registers)
10953 (windows_nat_target::store_registers, handle_exception)
10954 (windows_nat_target::resume, get_windows_debug_event)
10955 (windows_nat_target::get_tib_address)
10956 (windows_nat_target::thread_name)
10957 (windows_nat_target::thread_alive): Update.
10958 * nat/windows-nat.h (enum thread_disposition_type): Move from
10959 windows-nat.c.
10960 (thread_rec): Declare.
10961
4834dad0
TT
109622020-04-08 Tom Tromey <tromey@adacore.com>
10963
10964 * windows-nat.c: Add "using namespace".
10965 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
10966 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
10967
65bafd5b
TT
109682020-04-08 Tom Tromey <tromey@adacore.com>
10969
10970 * nat/windows-nat.h (struct windows_thread_info): Declare
10971 destructor.
10972 * nat/windows-nat.c (~windows_thread_info): New.
10973
0a4afda3
TT
109742020-04-08 Tom Tromey <tromey@adacore.com>
10975
10976 PR gdb/22992
10977 * windows-nat.c (current_event): Update comment.
10978 (last_wait_event, desired_stop_thread_id): New globals.
10979 (struct pending_stop): New.
10980 (pending_stops): New global.
10981 (windows_nat_target) <stopped_by_sw_breakpoint>
10982 <supports_stopped_by_sw_breakpoint>: New methods.
10983 (windows_fetch_one_register): Add assertions. Adjust PC.
10984 (windows_continue): Handle pending stops. Suspend other threads
10985 when stepping. Use last_wait_event
10986 (wait_for_debug_event): New function.
10987 (get_windows_debug_event): Use wait_for_debug_event. Handle
10988 pending stops. Queue spurious stops.
10989 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
10990 (windows_nat_target::kill): Use wait_for_debug_event.
10991 * nat/windows-nat.h (struct windows_thread_info)
10992 <stopped_at_software_breakpoint>: New field.
10993 * nat/windows-nat.c (windows_thread_info::resume): Clear
10994 stopped_at_software_breakpoint.
10995
8e61ebec
TT
109962020-04-08 Tom Tromey <tromey@adacore.com>
10997
10998 * windows-nat.c (enum thread_disposition_type): New.
10999 (thread_rec): Replace "get_context" parameter with "disposition";
11000 change type.
11001 (windows_add_thread, windows_nat_target::fetch_registers)
11002 (windows_nat_target::store_registers, handle_exception)
11003 (windows_nat_target::resume, get_windows_debug_event)
11004 (windows_nat_target::get_tib_address)
11005 (windows_nat_target::thread_name)
11006 (windows_nat_target::thread_alive): Update.
11007
98a03287
TT
110082020-04-08 Tom Tromey <tromey@adacore.com>
11009
11010 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
11011 (windows_continue): Use windows_continue::resume.
11012 * nat/windows-nat.h (struct windows_thread_info) <suspend,
11013 resume>: Declare new methods.
11014 * nat/windows-nat.c: New file.
11015 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
11016
7c7411bc
TT
110172020-04-08 Tom Tromey <tromey@adacore.com>
11018
11019 * windows-nat.c (windows_add_thread, windows_delete_thread)
11020 (windows_nat_target::fetch_registers)
11021 (windows_nat_target::store_registers, fake_create_process)
11022 (windows_nat_target::resume, windows_nat_target::resume)
11023 (get_windows_debug_event, windows_nat_target::wait)
11024 (windows_nat_target::pid_to_str)
11025 (windows_nat_target::get_tib_address)
11026 (windows_nat_target::get_ada_task_ptid)
11027 (windows_nat_target::thread_name)
11028 (windows_nat_target::thread_alive): Use lwp, not tid.
11029
2950fdf7
TT
110302020-04-08 Tom Tromey <tromey@adacore.com>
11031
11032 * windows-nat.c (handle_exception)
11033 (windows_nat_target::thread_name): Update.
11034 * nat/windows-nat.h (windows_thread_info): Remove destructor.
11035 <name>: Now unique_xmalloc_ptr.
11036
62fe396b
TT
110372020-04-08 Tom Tromey <tromey@adacore.com>
11038
11039 * windows-nat.c (thread_rec)
11040 (windows_nat_target::fetch_registers): Update.
11041 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
11042 Update comment.
11043 <debug_registers_changed, reload_context>: Now bool.
11044
e9534bd2
TT
110452020-04-08 Tom Tromey <tromey@adacore.com>
11046
11047 * windows-nat.c (windows_add_thread): Use new.
11048 (windows_init_thread_list, windows_delete_thread): Use delete.
11049 (get_windows_debug_event): Update.
11050 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
11051 destructor, and initializers.
11052
ae1f8880
TT
110532020-04-08 Tom Tromey <tromey@adacore.com>
11054
11055 * windows-nat.c (struct windows_thread_info): Remove.
11056 * nat/windows-nat.h: New file.
11057
55a1e039
TT
110582020-04-08 Tom Tromey <tromey@adacore.com>
11059
11060 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
11061 (thread_rec, windows_add_thread, windows_delete_thread)
11062 (windows_continue): Update.
11063
93366324
TT
110642020-04-08 Tom Tromey <tromey@adacore.com>
11065
11066 * windows-nat.c (struct windows_thread_info): Remove typedef.
11067 (thread_head): Remove.
11068 (thread_list): New global.
11069 (thread_rec, windows_add_thread, windows_init_thread_list)
11070 (windows_delete_thread, windows_continue): Update.
11071
0f2265e2
SM
110722020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11073
11074 * windows-tdep.h (windows_init_abi): Add comment.
11075 (cygwin_init_abi): New declaration.
11076 * windows-tdep.c: Split signal enumeration in two, one for
11077 Windows and one for Cygwin.
11078 (windows_gdb_signal_to_target): Only deal with signal of the
11079 Windows OS ABI.
11080 (cygwin_gdb_signal_to_target): New function.
11081 (windows_init_abi): Rename to windows_init_abi_common, don't set
11082 gdb_signal_to_target gdbarch method. Add new new function with
11083 this name.
11084 (cygwin_init_abi): New function.
11085 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
11086 comment. Don't call windows_init_abi.
11087 (amd64_windows_init_abi): Add comment, call windows_init_abi.
11088 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
11089 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
11090 i386_windows_init_abi_common, don't call windows_init_abi. Add
11091 a new function of this name.
11092 (i386_cygwin_init_abi): New function.
11093 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
11094 OS ABI Cygwin.
11095
3810f182
SM
110962020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11097
11098 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
11099 parameter.c.
11100 (dwarf2_read_gdb_index): Update.
11101
063f8e80
KR
111022020-04-07 Kamil Rytarowski <n54@gmx.com>
11103
11104 * nbsd-tdep.c: Include "objfiles.h".
11105 (nbsd_skip_solib_resolver): New.
11106 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
11107
85a9510c 111082020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11109
11110 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
11111 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
11112 with DW_LLE_base_addressx are being emitted in DWARFv5.
11113 Add the newly added kind DW_LOC_OFFSET_PAIR also.
11114 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
11115 unsigned integer.
11116
9fc3eaae 111172020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11118
11119 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
11120 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
11121 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
11122 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
11123 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
11124 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
11125 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
11126
11127
41144253 111282020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11129
11130 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
11131 (read_loclist_index): New function definition.
11132 (lookup_loclist_base): New function definition.
11133 (read_loclist_header): New function definition.
11134 (dwarf2_cu): Add loclist_base and loclist_header field.
11135 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
11136 (read_full_die_1): Read the value of DW_AT_loclists_base.
11137 (read_attribute_reprocess): Handle DW_FORM_loclistx.
11138 (read_attribute_value): Handle DW_FORM_loclistx.
11139 (skip_one_die): Handle DW_FORM_loclistx.
11140 (loclist_header): New structure declaration.
11141 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
11142
9f4e76a4
SM
111432020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11144
11145 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
11146 constructor. Remove `addr` parameter from other constructor and
11147 add `per_cu` parameter.
11148 * dwarf2/read.c (create_partial_symtab): Update.
11149
25c11aca
TV
111502020-04-07 Tom de Vries <tdevries@suse.de>
11151
11152 PR symtab/25796
11153 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
11154 (partial_die_info::fixup): Inherit has_const_value.
11155
5707e24b
TV
111562020-04-07 Tom de Vries <tdevries@suse.de>
11157
11158 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
11159 symbols without address.
11160
05f00e22
KR
111612020-04-06 Kamil Rytarowski <n54@gmx.com>
11162
11163 * nbsd-nat.h (struct thread_info): Add forward declaration.
11164 (nbsd_nat_target::thread_alive): Add.
11165 (nbsd_nat_target::thread_name): Likewise.
11166 (nbsd_nat_target::update_thread_list): Likewise.
11167 (update_thread_list::post_attach): Likewise.
11168 (post_attach::pid_to_str): Likewise.
11169 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
11170 (nbsd_thread_lister): Add.
11171 (nbsd_nat_target::thread_alive): Likewise.
11172 (nbsd_nat_target::thread_name): Likewise.
11173 (nbsd_add_threads): Likewise.
11174 (update_thread_list::post_attach): Likewise.
11175 (nbsd_nat_target::update_thread_list): Likewise.
11176 (post_attach::pid_to_str): Likewise.
11177
6ee448cc
TT
111782020-04-06 Tom Tromey <tromey@adacore.com>
11179
11180 * ada-valprint.c (print_variant_part): Extract the variant field.
11181 (print_field_values): Use the field as the outer value when
11182 recursing.
11183
dea34e8c
TT
111842020-04-06 Tom Tromey <tromey@adacore.com>
11185
11186 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
11187 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
11188 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
11189 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
11190 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
11191
93689ce9
TT
111922020-04-06 Tom Tromey <tromey@adacore.com>
11193
11194 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
11195 TYPE_CODE_ERROR.
11196
79743962
KR
111972020-04-06 Kamil Rytarowski <n54@gmx.com>
11198
11199 * nbsd-tdep.c: Include "gdbarch.h".
11200 Define enum with NetBSD signal numbers.
11201 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
11202 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
11203 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
11204 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
11205 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
11206 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
11207 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
11208 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11209 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
11210 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
11211 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
11212 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
11213
9e7c9a03
HD
112142020-04-03 Hannes Domani <ssbssa@yahoo.de>
11215
11216 PR gdb/25325
11217 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
11218
d9e49b61
TT
112192020-04-03 Tom Tromey <tromey@adacore.com>
11220
11221 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
11222 Read constant block.
11223
e0fc5c3f
SM
112242020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11225
11226 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
11227 (gdb_bfd_get_full_section_contents): New declaration.
11228 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
11229 * windows-tdep.c (is_linked_with_cygwin_dll): Use
11230 gdb_bfd_get_full_section_contents.
11231
e2ff18a0
SM
112322020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11233
11234 * exec.c (build_section_table): Replace internal_error with
11235 gdb_assert.
11236 (section_table_xfer_memory_partial): Likewise.
11237 * mdebugread.c (parse_partial_symbols): Likewise.
11238 * psymtab.c (lookup_partial_symbol): Likewise.
11239 * utils.c (wrap_here): Likewise.
11240
0830d301
TT
112412020-04-02 Tom Tromey <tromey@adacore.com>
11242
11243 * f-lang.c (build_fortran_types): Use arch_type to initialize
11244 builtin_complex_s32 in the TYPE_CODE_ERROR case.
11245
e7da7f8f
TT
112462020-04-02 Tom Tromey <tromey@adacore.com>
11247
11248 * dwarf2/read.c (partial_die_info::read): Do not create a vector
11249 of attributes.
11250
c90d28ac
AB
112512020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
11252 Bernd Edlinger <bernd.edlinger@hotmail.de>
11253 Tom Tromey <tromey@adacore.com>
11254
11255 * buildsym.c (buildsym_compunit::record_line): Remove
11256 deduplication code.
11257
1aa98955
TV
112582020-04-02 Tom de Vries <tdevries@suse.de>
11259
11260 PR ada/24671
11261 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
11262
d3214198
TV
112632020-04-02 Tom de Vries <tdevries@suse.de>
11264
11265 * dwarf2/read.c (dwarf2_gdb_index_functions,
11266 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
11267 NULL.
11268 * psymtab.c (psym_lookup_global_symbol_language): New function.
11269 (psym_functions): Init psym_lookup_global_symbol_language with
11270 psym_lookup_global_symbol_language.
11271 * symfile-debug.c (debug_sym_quick_functions): Init
11272 lookup_global_symbol_language with NULL.
11273 * symfile.c (set_initial_language): Remove fixme comment.
11274 * symfile.h (struct quick_symbol_functions): Add
11275 lookup_global_symbol_language.
11276 * symtab.c (find_quick_global_symbol_language): New function.
11277 (find_main_name): Use find_quick_global_symbol_language.
11278
2836752f
SM
112792020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
11280
11281 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
11282
64dc2d4b
BE
112832020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11284
11285 * buildsym.c (record_line): Fix undefined behavior and preserve
11286 lines at eof.
11287
bbe3dc41
BE
112882020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11289
11290 * buildsym.c (record_line): Fix the resizing condition.
11291
6b4a335b
TT
112922020-04-01 Tom Tromey <tom@tromey.com>
11293
11294 * value.h (value_literal_complex): Add comment.
11295 * valops.c (value_literal_complex): Refer to value.h.
11296
3638a098
TT
112972020-04-01 Tom Tromey <tom@tromey.com>
11298
11299 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
11300 (scalar_type): New rule, from typebase.
11301 (typebase): Use scalar_type. Recognize complex types.
11302 (field_name): Handle FLOAT_KEYWORD.
11303 (ident_tokens): Add _Complex and __complex__.
11304
c34e8714
TT
113052020-04-01 Tom Tromey <tom@tromey.com>
11306
11307 PR exp/25299:
11308 * valarith.c (promotion_type, complex_binop): New functions.
11309 (scalar_binop): Handle complex numbers. Use promotion_type.
11310 (value_pos, value_neg, value_complement): Handle complex numbers.
11311
fa649bb7
TT
113122020-04-01 Tom Tromey <tom@tromey.com>
11313
11314 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
11315 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
11316 (parse_number): Handle complex numbers.
11317
981c08ce
TT
113182020-04-01 Tom Tromey <tom@tromey.com>
11319
11320 * c-valprint.c (c_decorations): Change complex suffix to "i".
11321
4c99290d
TT
113222020-04-01 Tom Tromey <tom@tromey.com>
11323
11324 * valprint.c (generic_value_print_complex): Use accessors.
11325 * value.h (value_real_part, value_imaginary_part): Declare.
11326 * valops.c (value_real_part, value_imaginary_part): New
11327 functions.
11328 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
11329
5b930b45
TT
113302020-04-01 Tom Tromey <tom@tromey.com>
11331
11332 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
11333 (read_range_type): Update.
11334 * mdebugread.c (basic_type): Update.
11335 * go-lang.c (build_go_types): Use init_complex_type.
11336 * gdbtypes.h (struct main_type) <complex_type>: New member.
11337 (init_complex_type): Update.
11338 (arch_complex_type): Don't declare.
11339 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
11340 Make name if none given. Use alloc_type_copy. Look for cached
11341 complex type.
11342 (arch_complex_type): Remove.
11343 (gdbtypes_post_init): Use init_complex_type.
11344 * f-lang.c (build_fortran_types): Use init_complex_type.
11345 * dwarf2/read.c (read_base_type): Update.
11346 * d-lang.c (build_d_types): Use init_complex_type.
11347 * ctfread.c (read_base_type): Update.
11348
53cccef1
TBA
113492020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11350
11351 * infrun.c (stop_all_threads): Update assertion, plus when
11352 stopping threads, take into account that we might be trying
11353 to stop an all-stop target.
11354 (stop_waiting): Call 'stop_all_threads' if there exists a
11355 non-stop target.
11356
a0714d30
TBA
113572020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11358
11359 * target.h (exists_non_stop_target): New function declaration.
11360 * target.c (exists_non_stop_target): New function.
11361
60e22c1e
HD
113622020-04-01 Hannes Domani <ssbssa@yahoo.de>
11363
11364 PR gdb/24789
11365 * eval.c (is_integral_or_integral_reference): New function.
11366 (evaluate_subexp_standard): Allow integer references in
11367 pointer arithmetic.
11368
e139a727
TBA
113692020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11370
11371 * remote.c (remote_target::remote_parse_stop_reply): Remove the
11372 check for no ptid in the stop reply when the target is non-stop.
11373
e0802d59
TT
113742020-04-01 Tom Tromey <tromey@adacore.com>
11375
11376 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
11377 "name" parameter to rvalue reference. Initialize m_name_holder.
11378 <lookup_name_info>: New overloads.
11379 <name>: Return gdb::string_view.
11380 <c_str>: New method.
11381 <make_ignore_params>: Update.
11382 <search_name_hash>: Update.
11383 <language_lookup_name>: Return const char *.
11384 <m_name>: Change type.
11385 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
11386 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
11387 (lookup_name_info::match_any): Update.
11388 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
11389 Update.
11390 * minsyms.c (linkage_name_str): Update.
11391 * language.c (default_symbol_name_matcher): Update.
11392 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
11393 Update.
11394 * ada-lang.c (ada_fold_name): Change parameter to string_view.
11395 (ada_lookup_name_info::ada_lookup_name_info): Update.
11396 (literal_symbol_name_matcher): Update.
11397
8c072cb6
TT
113982020-04-01 Tom Tromey <tromey@adacore.com>
11399
11400 * psymtab.c (psymtab_search_name): Remove function.
11401 (psym_lookup_symbol): Create search name and lookup name here.
11402 (lookup_partial_symbol): Remove "name" parameter; add
11403 lookup_name.
11404 (psym_expand_symtabs_for_function): Update.
11405
6f29a534
TT
114062020-03-31 Joel Jones <joelkevinjones@gmail.com>
11407
11408 PR tui/25597:
11409 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
11410
af62665e
TT
114112020-03-31 Tom Tromey <tromey@adacore.com>
11412
11413 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
11414 memcpy.
11415
d1a89da5
NC
114162020-03-30 Nelson Chu <nelson.chu@sifive.com>
11417
11418 * features/riscv/32bit-csr.xml: Regenerated.
11419 * features/riscv/64bit-csr.xml: Regenerated.
11420
d8af9068
TT
114212020-03-30 Tom Tromey <tromey@adacore.com>
11422
11423 * ada-valprint.c (print_variant_part): Update.
11424 * ada-lang.h (ada_which_variant_applies): Update.
11425 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
11426 outer_valaddr parameters; replace with "outer" value parameter.
11427 (to_fixed_variant_branch_type): Update.
11428
227c0bf4
PFC
114292020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11430
11431 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
11432 <list>. Remove inclusion of observable.h.
11433 (PPC_DEBUG_CURRENT_VERSION): Move up define.
11434 (struct arch_lwp_info): New struct.
11435 (class ppc_linux_dreg_interface): New class.
11436 (struct ppc_linux_process_info): New struct.
11437 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
11438 <low_new_clone, low_forget_process, low_prepare_to_resume>
11439 <copy_thread_dreg_state, mark_thread_stale>
11440 <mark_debug_registers_changed, register_hw_breakpoint>
11441 <clear_hw_breakpoint, register_wp, clear_wp>
11442 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
11443 <num_memory_accesses, get_trigger_type>
11444 <create_watchpoint_request, hwdebug_point_cmp>
11445 <init_arch_lwp_info, get_arch_lwp_info>
11446 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
11447 methods.
11448 <struct ptid_hash>: New inner struct.
11449 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
11450 members.
11451 (saved_dabr_value, hwdebug_info, max_slots_number)
11452 (struct hw_break_tuple, struct thread_points, ppc_threads)
11453 (have_ptrace_hwdebug_interface)
11454 (hwdebug_find_thread_points_by_tid)
11455 (hwdebug_insert_point, hwdebug_remove_point): Remove.
11456 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
11457 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
11458 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
11459 use m_dreg_interface.
11460 (hwdebug_point_cmp): Change to...
11461 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
11462 reference arguments instead of pointers.
11463 (ppc_linux_nat_target::ranged_break_num_registers): Use
11464 m_dreg_interface.
11465 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
11466 m_dreg_interface. Call register_hw_breakpoint.
11467 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
11468 m_dreg_interface. Call clear_hw_breakpoint.
11469 (get_trigger_type): Change to...
11470 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
11471 comment.
11472 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
11473 use m_dreg_interface. Call register_hw_breakpoint.
11474 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
11475 use m_dreg_interface. Call clear_hw_breakpoint.
11476 (can_use_watchpoint_cond_accel): Change to...
11477 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
11478 method. Update comment, use m_dreg_interface and
11479 m_process_info.
11480 (calculate_dvc): Change to...
11481 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
11482 m_dreg_interface.
11483 (num_memory_accesses): Change to...
11484 (ppc_linux_nat_target::num_memory_accesses): ...this method.
11485 (check_condition): Change to...
11486 (ppc_linux_nat_target::check_condition): ...this method.
11487 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
11488 comment, use m_dreg_interface.
11489 (create_watchpoint_request): Change to...
11490 (ppc_linux_nat_target::create_watchpoint_request): ...this
11491 method. Use m_dreg_interface.
11492 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
11493 m_dreg_interface. Call register_hw_breakpoint or register_wp.
11494 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
11495 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
11496 (ppc_linux_nat_target::low_forget_process)
11497 (ppc_linux_nat_target::low_new_fork)
11498 (ppc_linux_nat_target::low_new_clone)
11499 (ppc_linux_nat_target::low_delete_thread)
11500 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
11501 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
11502 only call mark_thread_stale.
11503 (ppc_linux_thread_exit): Remove.
11504 (ppc_linux_nat_target::stopped_data_address): Change to...
11505 (ppc_linux_nat_target::low_stopped_data_address): This. Add
11506 comment, use m_dreg_interface and m_thread_hw_breakpoints.
11507 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
11508 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
11509 comment. Call low_stopped_data_address.
11510 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
11511 m_dreg_interface.
11512 (ppc_linux_nat_target::masked_watch_num_registers): Use
11513 m_dreg_interface.
11514 (ppc_linux_nat_target::copy_thread_dreg_state)
11515 (ppc_linux_nat_target::mark_thread_stale)
11516 (ppc_linux_nat_target::mark_debug_registers_changed)
11517 (ppc_linux_nat_target::register_hw_breakpoint)
11518 (ppc_linux_nat_target::clear_hw_breakpoint)
11519 (ppc_linux_nat_target::register_wp)
11520 (ppc_linux_nat_target::clear_wp)
11521 (ppc_linux_nat_target::init_arch_lwp_info)
11522 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
11523 (_initialize_ppc_linux_nat): Remove observer callback.
11524
4db10d8f
PFC
115252020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11526
11527 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
11528 (ppc_linux_nat_target::auxv_parse)
11529 (ppc_linux_nat_target::read_description)
11530 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
11531 Move up.
11532
1310c1b0
PFC
115332020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11534
11535 * linux-nat.h (low_new_clone): New method.
11536 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
11537
69b037c3
SM
115382020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
11539
11540 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
11541 (dbx_expand_psymtab): ... this.
11542 (start_psymtab): Update.
11543 * mdebugread.c (psymtab_to_symtab_1): Rename to...
11544 (mdebug_expand_psymtab): ... this.
11545 (parse_partial_symbols): Update.
11546 (new_psymtab): Update.
11547 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
11548 (xcoff_expand_psymtab): ... this.
11549 (xcoff_start_psymtab): Update.
11550
48993951
SM
115512020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
11552
11553 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
11554 <expand_dependencies>: ... this.
11555 * psymtab.c (partial_symtab::read_dependencies): Rename to...
11556 (partial_symtab::expand_dependencies): ... this.
11557 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
11558 Update.
11559 (dwarf2_psymtab::expand_psymtab): Update.
11560 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
11561 * mdebugread.c (psymtab_to_symtab_1): Update.
11562 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
11563
3ad83046
SM
115642020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
11565
11566 * psympriv.h (discard_psymtab): Remove.
11567 * dbxread.c (dbx_end_psymtab): Update.
11568 * xcoffread.c (xcoff_end_psymtab): Update.
11569
4d1b9ab6
TT
115702020-03-28 Tom Tromey <tom@tromey.com>
11571
11572 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
11573 comment.
11574
f1749218
TT
115752020-03-28 Tom Tromey <tom@tromey.com>
11576
11577 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
11578
ebea7626
HD
115792020-03-27 Hannes Domani <ssbssa@yahoo.de>
11580
11581 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
11582
a879b4d5
JB
115832020-03-26 John Baldwin <jhb@FreeBSD.org>
11584
11585 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
11586
0826b30a
TT
115872020-03-26 Tom Tromey <tom@tromey.com>
11588
11589 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
11590 (mark_common_block_symbol_computed, read_tag_string_type)
11591 (attr_to_dynamic_prop, read_subrange_type): Update.
11592 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
11593 to be methods on struct attribute.
11594 (skip_one_die, process_imported_unit_die, read_namespace_alias)
11595 (read_call_site_scope, partial_die_info::read)
11596 (partial_die_info::read, lookup_die_type, follow_die_ref):
11597 Update.
11598 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
11599 from dwarf2_get_ref_die_offset.
11600 (attribute::constant_value): New method, from
11601 dwarf2_get_attr_constant_value.
11602 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
11603 Declare method.
11604 <constant_value>: New method.
11605
2b2558bf
TT
116062020-03-26 Tom Tromey <tom@tromey.com>
11607
11608 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
11609 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
11610 (dwarf_type_encoding_name): Move to stringify.c.
11611 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
11612 * dwarf2/stringify.c: New file.
11613 * dwarf2/stringify.h: New file.
11614
eeb64781
TT
116152020-03-26 Tom Tromey <tom@tromey.com>
11616
11617 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
11618 Rewrite.
11619
a39fdb41
TT
116202020-03-26 Tom Tromey <tom@tromey.com>
11621
11622 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
11623 methods.
11624 * dwarf2/read.c (lookup_addr_base): Move to die.h.
11625 (lookup_ranges_base): Likewise.
11626 (read_cutu_die_from_dwo, read_full_die_1): Update.
11627
436c571c
TT
116282020-03-26 Tom Tromey <tom@tromey.com>
11629
11630 * dwarf2/read.c (read_import_statement, read_file_scope)
11631 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
11632 (read_lexical_block_scope, read_call_site_scope)
11633 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
11634 (handle_struct_member_die, process_structure_scope)
11635 (update_enumeration_type_from_children)
11636 (process_enumeration_scope, read_array_type, read_common_block)
11637 (read_namespace, read_module, read_subroutine_type): Update.
11638 (sibling_die): Remove.
11639
052c8bb8
TT
116402020-03-26 Tom Tromey <tom@tromey.com>
11641
11642 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
11643 (build_type_psymtabs_reader, read_structure_type)
11644 (read_enumeration_type, read_full_die_1): Update.
11645 (dwarf2_attr_no_follow): Move to die.h.
11646 * dwarf2/die.h (struct die_info) <attr>: New method.
11647
2b24b6e4
TT
116482020-03-26 Tom Tromey <tom@tromey.com>
11649
11650 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
11651 <base_address>: Now an optional.
11652 (dwarf2_find_base_address, dwarf2_rnglists_process)
11653 (dwarf2_ranges_process, fill_in_loclist_baton)
11654 (dwarf2_symbol_mark_computed): Update.
11655
c2d50fd0
TT
116562020-03-26 Tom Tromey <tom@tromey.com>
11657
11658 * dwarf2/read.c (struct die_info): Move to die.h.
11659 * dwarf2/die.h: New file.
11660
0df7ad3a
TT
116612020-03-26 Tom Tromey <tom@tromey.com>
11662
11663 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
11664 * dwarf2/read.c
11665 (dwarf2_statement_list_fits_in_line_number_section_complaint):
11666 Move to line-header.c.
11667 (read_checked_initial_length_and_offset, read_formatted_entries):
11668 Likewise.
11669 (dwarf_decode_line_header): Split into two.
11670 * dwarf2/line-header.c
11671 (dwarf2_statement_list_fits_in_line_number_section_complaint):
11672 Move from read.c.
11673 (read_checked_initial_length_and_offset, read_formatted_entries):
11674 Likewise.
11675 (dwarf_decode_line_header): New function, split from read.c.
11676
86c0bb4c
TT
116772020-03-26 Tom Tromey <tom@tromey.com>
11678
11679 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
11680 Declare method.
11681 * dwarf2/read.c (read_attribute_value): Update.
11682 (dwarf2_per_objfile::read_line_string): Rename from
11683 read_indirect_line_string.
11684 (read_formatted_entries): Update.
11685
2ef46c2f
TT
116862020-03-26 Tom Tromey <tom@tromey.com>
11687
11688 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
11689 variable.
11690
4f9c1eda
TT
116912020-03-26 Tom Tromey <tom@tromey.com>
11692
11693 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
11694 const.
11695 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
11696 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
11697 parameter const.
11698
5a0e026f
TT
116992020-03-26 Tom Tromey <tom@tromey.com>
11700
11701 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
11702 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
11703 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
11704 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
11705
8844c11b
TT
117062020-03-26 Tom Tromey <tom@tromey.com>
11707
11708 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
11709 file_names_size, file_full_name, file_file_name>: Use const.
11710 <file_name_at, file_names>: Add const overload.
11711 * dwarf2/line-header.c (line_header::file_file_name)
11712 (line_header::file_full_name): Update.
11713
c90ec28a
TT
117142020-03-26 Tom Tromey <tom@tromey.com>
11715
11716 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
11717 (macro_start_file, consume_improper_spaces)
11718 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
11719 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
11720 (dwarf_decode_macros): Move to macro.c.
11721 * dwarf2/macro.c: New file.
11722 * dwarf2/macro.h: New file.
11723 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
11724
4f44ae6c
TT
117252020-03-26 Tom Tromey <tom@tromey.com>
11726
11727 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
11728 method.
11729 * dwarf2/section.c: New method. From
11730 read_indirect_string_at_offset_from.
11731 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
11732 (read_indirect_string_at_offset_from): Move to section.c.
11733 (read_indirect_string_at_offset): Rewrite.
11734 (read_indirect_line_string_at_offset): Remove.
11735 (read_indirect_string, read_indirect_line_string)
11736 (dwarf_decode_macro_bytes): Update.
11737
a0194fa8
TT
117382020-03-26 Tom Tromey <tom@tromey.com>
11739
11740 * dwarf2/section.h (struct dwarf2_section_info)
11741 <overload_complaint>: Declare.
11742 (dwarf2_section_buffer_overflow_complaint): Don't declare.
11743 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
11744 Rename from dwarf2_section_buffer_overflow_complaint.
11745 * dwarf2/read.c (skip_one_die, partial_die_info::read)
11746 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
11747
3d27bbdb
TT
117482020-03-26 Tom Tromey <tom@tromey.com>
11749
11750 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
11751 Declare.
11752 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
11753 Move from read.c.
11754 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
11755 to section.c.
11756
9eac9650
TT
117572020-03-26 Tom Tromey <tom@tromey.com>
11758
11759 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
11760
bf80d710
TT
117612020-03-26 Tom Tromey <tom@tromey.com>
11762
11763 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
11764 "builder".
11765 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
11766 parameter.
11767 (dwarf_decode_macros): Update.
11768
0314b390
TT
117692020-03-26 Tom Tromey <tom@tromey.com>
11770
11771 * dwarf2/read.c (read_attribute_value): Update.
11772 (read_indirect_string_from_dwz): Move to dwz.c; change into
11773 method.
11774 (dwarf_decode_macro_bytes): Update.
11775 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
11776 * dwarf2/dwz.c: New file.
11777 * Makefile.in (COMMON_SFILES): Add dwz.c.
11778
9fda78b6
TT
117792020-03-26 Tom Tromey <tom@tromey.com>
11780
11781 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
11782 * dwarf2/read.c: Add include.
11783 * dwarf2/index-write.c: Add include.
11784 * dwarf2/index-cache.c: Add include.
11785 * dwarf2/dwz.h: New file.
11786
33aa3c10
TT
117872020-03-25 Tom Tromey <tom@tromey.com>
11788
11789 * compile/compile-object-load.c (get_out_value_type): Mention
11790 correct symbol name in error message.
11791
d503b685
HD
117922020-03-25 Hannes Domani <ssbssa@yahoo.de>
11793
11794 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
11795
7b1eff95
TV
117962020-03-25 Tom de Vries <tdevries@suse.de>
11797
11798 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
11799 * symmisc.c (dump_symtab_1): Print user and includes fields.
11800 (maintenance_info_symtabs): Same.
11801
dd895392
AB
118022020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
11803
11804 PR gdb/25534
11805 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
11806 (riscv_regcache_cooked_write): New function.
11807 (riscv_push_dummy_call): Use new function.
11808 (riscv_return_value): Likewise.
11809
5ab2fbf1
SM
118102020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
11811
11812 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
11813 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
11814 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
11815 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
11816 * infrun.c (follow_fork): Likewise.
11817 (follow_fork_inferior): Likewise.
11818 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
11819 * linux-nat.h (class linux_nat_target): Likewise.
11820 * remote.c (class remote_target) <follow_fork>: Likewise.
11821 (remote_target::follow_fork): Likewise.
11822 * target-delegates.c: Re-generate.
11823 * target.c (default_follow_fork): Likewise.
11824 (target_follow_fork): Likewise.
11825 * target.h (struct target_ops) <follow_fork>: Likewise.
11826 (target_follow_fork): Likewise.
11827
a64fafb5
TV
118282020-03-24 Tom de Vries <tdevries@suse.de>
11829
11830 * psymtab.c (maintenance_info_psymtabs): Print user field.
11831
fe26d3a3
TT
118322020-03-20 Tom Tromey <tromey@adacore.com>
11833
11834 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
11835 const.
11836 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
11837 const.
11838
c884cc46
SM
118392020-03-20 Simon Marchi <simon.marchi@efficios.com>
11840
11841 * ptrace.m4: Don't check for ptrace declaration.
11842 * config.in: Re-generate.
11843 * configure: Re-generate.
11844 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
11845 not defined.
11846
1ff700c2
KR
118472020-03-20 Kamil Rytarowski <n54@gmx.com>
11848
11849 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
11850 `PTRACE_TYPE_RET'.
11851 * i386-bsd-nat.c (gdb_ptrace): Likewise.
11852 * sparc-nat.c (gdb_ptrace): Likewise.
11853 * x86-bsd-nat.c (gdb_ptrace): Likewise.
11854
f7d4f0b1
TT
118552020-03-20 Tom Tromey <tromey@adacore.com>
11856
11857 * c-exp.y (lex_one_token): Fix assert.
11858
f67210ff
TT
118592020-03-20 Tom Tromey <tromey@adacore.com>
11860
11861 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
11862 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
11863 strncpy call.
11864
1773be9e
TT
118652020-03-20 Tom Tromey <tromey@adacore.com>
11866
11867 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
11868
70304be9
TT
118692020-03-20 Tom Tromey <tromey@adacore.com>
11870
11871 * ada-valprint.c (print_variant_part): Remove parameters; switch
11872 to value-based API.
11873 (print_field_values): Likewise.
11874 (ada_val_print_struct_union): Likewise.
11875 (ada_value_print_1): Update.
11876
9faa006d
KR
118772020-03-20 Kamil Rytarowski <n54@gmx.com>
11878
11879 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
11880 nbsd_nat_target instead of inf_ptrace_target.
11881 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11882 nbsd_nat_target.
11883
4a90f062
KR
118842020-03-20 Kamil Rytarowski <n54@gmx.com>
11885
11886 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
11887 it to the ptrace call.
11888 * (store_registers): Likewise.
11889
118902020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
11891
11892 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
11893 it to the ptrace call.
11894 * (store_registers): Likewise.
11895
2d07da27
LM
118962020-03-19 Luis Machado <luis.machado@linaro.org>
11897
11898 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
11899 valid, fetch vg value from ptrace.
11900
f09db380
KR
119012020-03-19 Kamil Rytarowski <n54@gmx.com>
11902 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
11903 * inf-ptrace.c: Likewise.
11904 * (gdb_ptrace): Add.
11905 * (inf_ptrace_target::resume): Update.
11906 * (inf_ptrace_target::xfer_partial): Likewise.
11907 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
11908 * (inf_ptrace_peek_poke): Update.
11909
fcc7376e
KR
119102020-03-19 Kamil Rytarowski <n54@gmx.com>
11911
11912 * x86-bsd-nat.c (gdb_ptrace): New.
11913 * (x86bsd_dr_set): Add new argument `ptid'.
11914 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
11915 x86bsd_dr_set_addr): Update.
11916
cada5fc9
AB
119172020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
11918
11919 * remote.c (remote_target::process_stop_reply): Handle events for
11920 all threads differently.
11921
19a2740f
AB
119222020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
11923
11924 * completer.c (completion_tracker::remove_completion): Define new
11925 function.
11926 * completer.h (completion_tracker::remove_completion): Declare new
11927 function.
11928 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
11929 when adding a C++ function symbol.
11930
724fd9ba
AB
119312020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
11932
11933 * completer.c (completion_tracker::completion_hash_entry): Define
11934 new class.
11935 (advance_to_filename_complete_word_point): Call
11936 recompute_lowest_common_denominator.
11937 (completion_tracker::completion_tracker): Call discard_completions
11938 to setup the hash table.
11939 (completion_tracker::discard_completions): Allow for being called
11940 from the constructor, pass new equal function, and element deleter
11941 when constructing the hash table. Initialise new class member
11942 variables.
11943 (completion_tracker::maybe_add_completion): Remove use of
11944 m_entries_vec, and store more information into m_entries_hash.
11945 (completion_tracker::recompute_lcd_visitor): New function, most
11946 content taken from...
11947 (completion_tracker::recompute_lowest_common_denominator):
11948 ...here, this now just visits each item in the hash calling the
11949 above visitor.
11950 (completion_tracker::build_completion_result): Remove use of
11951 m_entries_vec, call recompute_lowest_common_denominator.
11952 * completer.h (completion_tracker::have_completions): Remove use
11953 of m_entries_vec.
11954 (completion_tracker::completion_hash_entry): Declare new class.
11955 (completion_tracker::recompute_lowest_common_denominator): Change
11956 function signature.
11957 (completion_tracker::recompute_lcd_visitor): Declare new function.
11958 (completion_tracker::m_entries_vec): Delete.
11959 (completion_tracker::m_entries_hash): Initialize to NULL.
11960 (completion_tracker::m_lowest_common_denominator_valid): New
11961 member variable.
11962 (completion_tracker::m_lowest_common_denominator_max_length): New
11963 member variable.
11964
5a82b8a1
KR
119652020-03-17 Kamil Rytarowski <n54@gmx.com>
11966
11967 * regformats/regdef.h: Put reg in gdb namespace.
11968
fb516a69
KR
119692020-03-17 Kamil Rytarowski <n54@gmx.com>
11970
11971 * i386-bsd-nat.c (gdb_ptrace): New.
11972 * (i386bsd_fetch_inferior_registers,
11973 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
11974 * (i386bsd_fetch_inferior_registers,
11975 i386bsd_store_inferior_registers) Use gdb_ptrace.
11976
1c0aa1fb
KR
119772020-03-17 Kamil Rytarowski <n54@gmx.com>
11978
11979 * amd64-bsd-nat.c (gdb_ptrace): New.
11980 * (amd64bsd_fetch_inferior_registers,
11981 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
11982 * (amd64bsd_fetch_inferior_registers,
11983 amd64bsd_store_inferior_registers) Use gdb_ptrace.
11984
5ccd2fb7
KR
119852020-03-17 Kamil Rytarowski <n54@gmx.com>
11986
11987 * user-regs.c (user_reg::read): Rename to...
11988 (user_reg::xread): ...this.
11989 * (append_user_reg): Rename argument `read' to `xread'.
11990 * (user_reg_add_builtin): Likewise.
11991 * (user_reg_add): Likewise.
11992 * (value_of_user_reg): Likewise.
11993
2108a63a
KR
119942020-03-17 Kamil Rytarowski <n54@gmx.com>
11995
11996 * sparc-nat.c (gdb_ptrace): New.
11997 * sparc-nat.c (sparc_fetch_inferior_registers)
11998 (sparc_store_inferior_registers) Remove obsolete comment.
11999 * sparc-nat.c (sparc_fetch_inferior_registers)
12000 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
12001 * sparc-nat.c (sparc_fetch_inferior_registers)
12002 (sparc_store_inferior_registers) Use gdb_ptrace.
12003
a225c9a8
KR
120042020-03-17 Kamil Rytarowski <n54@gmx.com>
12005
12006 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
12007 it to the ptrace call.
12008 * sh-nbsd-nat.c (store_registers): Likewise.
12009
98097623
KR
120102020-03-17 Kamil Rytarowski <n54@gmx.com>
12011
12012 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
12013 nbsd_nat_target instead of inf_ptrace_target.
12014 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12015 nbsd_nat_target.
12016
9e38d619
KR
120172020-03-17 Kamil Rytarowski <n54@gmx.com>
12018
12019 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
12020
a2ecbe9f
KR
120212020-03-17 Kamil Rytarowski <n54@gmx.com>
12022
12023 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
12024 <sys/sysctl.h>.
12025 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
12026
58990295
TV
120272020-03-17 Tom de Vries <tdevries@suse.de>
12028
12029 PR gdb/23710
12030 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
12031 fields.
12032 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
12033 fields.
12034 (process_imported_unit_die): Skip import of c++ CUs.
12035
771dd3a8
TT
120362020-03-16 Tom Tromey <tom@tromey.com>
12037
12038 * p-valprint.c (pascal_object_print_value): Initialize
12039 base_value.
12040
817a7585
AK
120412020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
12042 Shahab Vahedi <shahab@synopsys.com>
12043
12044 * Makefile.in: Add arch/arc.o
12045 * configure.tgt: Likewise.
12046 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
12047 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 12048 (arc_read_description): New function to cache target descriptions.
817a7585
AK
12049 * arc-tdep.h (arc_read_description): Add proto type.
12050 * arch/arc.c: New file.
12051 * arch/arc.h: Likewise.
12052 * features/Makefile: Replace old target descriptions with new.
12053 * features/arc-arcompact.c: Remove.
12054 * features/arc-arcompact.xml: Likewise.
12055 * features/arc-v2.c: Likewise
12056 * features/arc-v2.xml: Likewise
12057 * features/arc/aux-arcompact.xml: New file.
12058 * features/arc/aux-v2.xml: Likewise.
12059 * features/arc/core-arcompact.xml: Likewise.
12060 * features/arc/core-v2.xml: Likewise.
12061 * features/arc/aux-arcompact.c: Generate.
12062 * features/arc/aux-v2.c: Likewise.
12063 * features/arc/core-arcompact.c: Likewise.
12064 * features/arc/core-v2.c: Likewise.
12065 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
12066
67430cd0
TT
120672020-03-16 Tom Tromey <tromey@adacore.com>
12068
12069 PR gdb/25663:
12070 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
12071 putting value into bcache.
12072
30efb6c7
SM
120732020-03-16 Simon Marchi <simon.marchi@efficios.com>
12074
12075 PR gdb/21500
12076 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
12077 to...
12078 (amd64_windows_init_abi_common): ... this. Don't set size of
12079 long type.
12080 (amd64_windows_init_abi): New function.
12081 (amd64_cygwin_init_abi): New function.
12082 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
12083 the Cygwin OS ABI.
12084 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
12085 comment.
12086
8db52437
SM
120872020-03-16 Simon Marchi <simon.marchi@efficios.com>
12088
12089 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
12090 * windows-tdep.c (CYGWIN_DLL_NAME): New.
12091 (pe_import_directory_entry): New struct type.
12092 (is_linked_with_cygwin_dll): New function.
12093 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
12094 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
12095 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
12096
5982a56a
SM
120972020-03-16 Simon Marchi <simon.marchi@efficios.com>
12098
12099 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
12100 i386_cygwin_core_osabi_sniffer.
12101
7a1998df
SM
121022020-03-16 Simon Marchi <simon.marchi@efficios.com>
12103
12104 * i386-cygwin-tdep.c: Rename to...
12105 * i386-windows-tdep.c: ... this.
12106 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
12107 i386-windows-tdep.c.
12108 * configure.tgt: Likewise.
12109
053205cc
SM
121102020-03-16 Simon Marchi <simon.marchi@efficios.com>
12111
12112 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
12113 * osabi.c (gdb_osabi_names): Add "Windows".
12114 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
12115 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
12116 (i386_cygwin_core_osabi_sniffer): New function, extracted from
12117 i386_cygwin_osabi_sniffer.
12118 (_initialize_i386_cygwin_tdep): Register OS ABI
12119 GDB_OSABI_WINDOWS for i386.
12120 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
12121 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
12122 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
12123 for x86-64.
12124 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
12125 when the target matches '*-*-mingw*'.
12126
fe4b2ee6
SM
121272020-03-16 Simon Marchi <simon.marchi@efficios.com>
12128
12129 * defs.h (enum gdb_osabi): Move to...
12130 * osabi.h (enum gdb_osabi): ... here.
12131 * gdbarch.sh: Include osabi.h in gdbarch.h.
12132 * gdbarch.h: Re-generate.
12133
cb9b645d
SM
121342020-03-16 Simon Marchi <simon.marchi@efficios.com>
12135
12136 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
12137 function.
12138 (_initialize_amd64_windows_tdep): Register osabi sniffer.
12139
3293bbaf
TT
121402020-03-14 Tom Tromey <tom@tromey.com>
12141
12142 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
12143 for C++.
12144 (c_type_print_modifier): Likewise. Add "language" parameter.
12145 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
12146 (c_type_print_base_1): Update.
12147 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
12148 constants.
12149 * type-stack.c (type_stack::insert): Handle tp_atomic and
12150 tp_restrict.
12151 (type_stack::follow_type_instance_flags): Likewise.
12152 (type_stack::follow_types): Likewise. Merge type-following code.
12153 * c-exp.y (RESTRICT, ATOMIC): New tokens.
12154 (space_identifier, cv_with_space_id)
12155 (const_or_volatile_or_space_identifier_noopt)
12156 (const_or_volatile_or_space_identifier): Remove.
12157 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
12158 rules.
12159 (ptr_operator, typebase): Update.
12160 (enum token_flag) <FLAG_C>: New constant.
12161 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
12162 "_Atomic".
12163 (lex_one_token): Handle FLAG_C.
12164
154151a6
KR
121652020-03-14 Kamil Rytarowski <n54@gmx.com>
12166
12167 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
12168 it to the ptrace call.
12169 * m68k-bsd-nat.c (store_registers): Likewise.
12170
bc107784
KR
121712020-03-14 Kamil Rytarowski <n54@gmx.com>
12172
12173 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
12174 gdb_byte *.
12175 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
12176 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
12177 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
12178
01a80117
KR
121792020-03-14 Kamil Rytarowski <n54@gmx.com>
12180
12181 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
12182 nbsd_nat_target instead of inf_ptrace_target.
12183 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12184 nbsd_nat_target.
12185
f90280ca
KR
121862020-03-14 Kamil Rytarowski <n54@gmx.com>
12187
12188 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
12189 register_t.
12190
6def66f1
KR
121912020-03-14 Kamil Rytarowski <n54@gmx.com>
12192
12193 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
12194 it to the ptrace call.
12195 * alpha-bsd-nat.c (store_registers): Likewise.
12196
66eaca97
KR
121972020-03-14 Kamil Rytarowski <n54@gmx.com>
12198
12199 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
12200 includes.
12201 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
12202 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
12203 fill_fpregset): Likewise.
12204
4fed520b
KR
122052020-03-14 Kamil Rytarowski <n54@gmx.com>
12206
12207 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
12208 nbsd_nat_target instead of inf_ptrace_target.
12209 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12210 nbsd_nat_target.
12211
2190cf06
KR
122122020-03-14 Kamil Rytarowski <n54@gmx.com>
12213
12214 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
12215 register_t.
12216
75c56d3d
KR
122172020-03-14 Kamil Rytarowski <n54@gmx.com>
12218
12219 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
12220 it to the ptrace call.
12221 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
12222 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
12223 * arm-nbsd-nat.c (store_register): Likewise.
12224 * arm-nbsd-nat.c (store_regs): Likewise.
12225 * arm-nbsd-nat.c (store_fp_register): Likewise.
12226 * arm-nbsd-nat.c (store_fp_regs): Likewise.
12227
6018d381
KR
122282020-03-14 Kamil Rytarowski <n54@gmx.com>
12229
12230 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
12231 nbsd_nat_target instead of inf_ptrace_target.
12232 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12233 nbsd_nat_target.
12234
013f99f0
KR
122352020-03-14 Kamil Rytarowski <n54@gmx.com>
12236
12237 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
12238 it to the ptrace call.
12239 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
12240
12753073
KR
122412020-03-14 Kamil Rytarowski <n54@gmx.com>
12242
6227b330
KR
12243 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
12244 it to the ptrace call.
12245 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
12246
122472020-03-14 Kamil Rytarowski <n54@gmx.com>
12248
12249 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
12250 gdb_byte *.
12753073
KR
12251 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
12252
d5be5fa4
KR
122532020-03-14 Kamil Rytarowski <n54@gmx.com>
12254
12255 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
12256 instead of inf_ptrace_target.
12257 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12258 nbsd_nat_target.
12259
8110f842
KR
122602020-03-14 Kamil Rytarowski <n54@gmx.com>
12261
12262 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12263 register_t.
12264
52feded7
KR
122652020-03-14 Kamil Rytarowski <n54@gmx.com>
12266
12267 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12268 register_t.
12269
25567eee
KR
122702020-03-14 Kamil Rytarowski <n54@gmx.com>
12271
12272 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
12273 register_t.
12274
426a9c18
TT
122752020-03-13 Tom Tromey <tom@tromey.com>
12276
12277 * value.h (val_print): Don't declare.
12278 * valprint.h (val_print_array_elements)
12279 (val_print_scalar_formatted, generic_val_print): Don't declare.
12280 * valprint.c (generic_val_print_array): Take a struct value.
12281 (generic_val_print_ptr, generic_val_print_memberptr)
12282 (generic_val_print_bool, generic_val_print_int)
12283 (generic_val_print_char, generic_val_print_complex)
12284 (generic_val_print): Remove.
12285 (generic_value_print): Update.
12286 (do_val_print): Remove unused parameters. Don't call
12287 la_val_print.
12288 (val_print): Remove.
12289 (common_val_print): Update. Don't call value_check_printable.
12290 (val_print_scalar_formatted, val_print_array_elements): Remove.
12291 * rust-lang.c (rust_val_print): Remove.
12292 (rust_language_defn): Update.
12293 * p-valprint.c (pascal_val_print): Remove.
12294 (pascal_value_print_inner): Update.
12295 (pascal_object_print_val_fields, pascal_object_print_val):
12296 Remove.
12297 (pascal_object_print_static_field): Update.
12298 * p-lang.h (pascal_val_print): Don't declare.
12299 * p-lang.c (pascal_language_defn): Update.
12300 * opencl-lang.c (opencl_language_defn): Update.
12301 * objc-lang.c (objc_language_defn): Update.
12302 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
12303 * m2-lang.h (m2_val_print): Don't declare.
12304 * m2-lang.c (m2_language_defn): Update.
12305 * language.h (struct language_defn) <la_val_print>: Remove.
12306 * language.c (unk_lang_value_print_inner): Rename. Change
12307 argument types.
12308 (unknown_language_defn, auto_language_defn): Update.
12309 * go-valprint.c (go_val_print): Remove.
12310 * go-lang.h (go_val_print): Don't declare.
12311 * go-lang.c (go_language_defn): Update.
12312 * f-valprint.c (f_val_print): Remove.
12313 * f-lang.h (f_value_print): Don't declare.
12314 * f-lang.c (f_language_defn): Update.
12315 * d-valprint.c (d_val_print): Remove.
12316 * d-lang.h (d_value_print): Don't declare.
12317 * d-lang.c (d_language_defn): Update.
12318 * cp-valprint.c (cp_print_value_fields)
12319 (cp_print_value_fields_rtti, cp_print_value): Remove.
12320 (cp_print_static_field): Update.
12321 * c-valprint.c (c_val_print_array, c_val_print_ptr)
12322 (c_val_print_struct, c_val_print_union, c_val_print_int)
12323 (c_val_print_memberptr, c_val_print): Remove.
12324 * c-lang.h (c_val_print_array, cp_print_value_fields)
12325 (cp_print_value_fields_rtti): Don't declare.
12326 * c-lang.c (c_language_defn, cplus_language_defn)
12327 (asm_language_defn, minimal_language_defn): Update.
12328 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
12329 (ada_val_print_enum): Take a struct value.
12330 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
12331 (ada_val_print): Remove.
12332 (ada_value_print_1): Update.
12333 (printable_val_type): Remove.
12334 * ada-lang.h (ada_val_print): Don't declare.
12335 * ada-lang.c (ada_language_defn): Update.
12336
42331a1e
TT
123372020-03-13 Tom Tromey <tom@tromey.com>
12338
12339 * valprint.c (do_val_print): Update.
12340 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
12341 a struct value.
12342 (value_to_value_object_no_release): Declare.
12343 * python/py-value.c (value_to_value_object_no_release): New
12344 function.
12345 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
12346 struct value.
12347 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
12348 function.
12349 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
12350 a struct value.
12351 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
12352 Declare.
12353 (gdbscm_apply_val_pretty_printer): Take a struct value.
12354 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
12355 value.
12356 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
12357 value.
12358 * extension-priv.h (struct extension_language_ops)
12359 <apply_val_pretty_printer>: Take a struct value.
12360 * cp-valprint.c (cp_print_value): Create a struct value.
12361 (cp_print_value): Update.
12362
3a916a97
TT
123632020-03-13 Tom Tromey <tom@tromey.com>
12364
12365 * ada-valprint.c (print_field_values): Call common_val_print.
12366
b59eac37
TT
123672020-03-13 Tom Tromey <tom@tromey.com>
12368
12369 * ada-valprint.c (val_print_packed_array_elements): Remove
12370 bitoffset and val parameters. Call common_val_print.
12371 (ada_val_print_string): Remove offset, address, and original_value
12372 parameters.
12373 (ada_val_print_array): Update.
12374 (ada_value_print_array): New function.
12375 (ada_value_print_1): Call it.
12376
03371129
TT
123772020-03-13 Tom Tromey <tom@tromey.com>
12378
12379 * ada-valprint.c (ada_value_print): Use common_val_print.
12380
2e088f8b
TT
123812020-03-13 Tom Tromey <tom@tromey.com>
12382
12383 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
12384
39ef85a8
TT
123852020-03-13 Tom Tromey <tom@tromey.com>
12386
12387 * ada-valprint.c (ada_value_print_num): New function.
12388 (ada_value_print_1): Use it.
12389
b9fa6e07
TT
123902020-03-13 Tom Tromey <tom@tromey.com>
12391
12392 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
12393
416595d6
TT
123942020-03-13 Tom Tromey <tom@tromey.com>
12395
12396 * ada-valprint.c (ada_value_print_ptr): New function.
12397 (ada_value_print_1): Use it.
12398
5b5e15ec
TT
123992020-03-13 Tom Tromey <tom@tromey.com>
12400
12401 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
12402 call common_val_print.
12403 (ada_val_print_1): Update.
12404 (ada_value_print_1): New function.
12405 (ada_value_print_inner): Rewrite.
12406
fbf54e75
TT
124072020-03-13 Tom Tromey <tom@tromey.com>
12408
12409 * cp-valprint.c (cp_print_value_fields): Update.
12410 (cp_print_value): New function.
12411
64b653ca
TT
124122020-03-13 Tom Tromey <tom@tromey.com>
12413
12414 * m2-valprint.c (m2_value_print_inner): Use
12415 cp_print_value_fields.
12416 * cp-valprint.c (cp_print_value_fields): New function.
12417 * c-valprint.c (c_value_print_struct): New function.
12418 (c_value_print_inner): Use c_value_print_struct.
12419 * c-lang.h (cp_print_value_fields): Declare.
12420
6999f067
TT
124212020-03-13 Tom Tromey <tom@tromey.com>
12422
12423 * c-valprint.c (c_value_print_array): New function.
12424 (c_value_print_inner): Use it.
12425
ce80b8bd
TT
124262020-03-13 Tom Tromey <tom@tromey.com>
12427
12428 * c-valprint.c (c_value_print_memberptr): New function.
12429 (c_value_print_inner): Use it.
12430
2faac269
TT
124312020-03-13 Tom Tromey <tom@tromey.com>
12432
12433 * c-valprint.c (c_value_print_int): New function.
12434 (c_value_print_inner): Use it.
12435
da3e2c29
TT
124362020-03-13 Tom Tromey <tom@tromey.com>
12437
12438 * c-valprint.c (c_value_print_ptr): New function.
12439 (c_value_print_inner): Use it.
12440
50836231
TT
124412020-03-13 Tom Tromey <tom@tromey.com>
12442
12443 * c-valprint.c (c_value_print_inner): Rewrite.
12444
4f412b6e
TT
124452020-03-13 Tom Tromey <tom@tromey.com>
12446
12447 * valprint.c (generic_value_print_complex): New function.
12448 (generic_value_print): Use it.
12449
f5354008
TT
124502020-03-13 Tom Tromey <tom@tromey.com>
12451
12452 * valprint.c (generic_val_print_float): Don't call
12453 val_print_scalar_formatted.
12454 (generic_val_print, generic_value_print): Update.
12455
3eec3b05
TT
124562020-03-13 Tom Tromey <tom@tromey.com>
12457
12458 * valprint.c (generic_value_print_char): New function
12459 (generic_value_print): Use it.
12460
fdddfccb
TT
124612020-03-13 Tom Tromey <tom@tromey.com>
12462
12463 * valprint.c (generic_value_print_int): New function.
12464 (generic_value_print): Use it.
12465
6dde7521
TT
124662020-03-13 Tom Tromey <tom@tromey.com>
12467
12468 * valprint.c (generic_value_print_bool): New function.
12469 (generic_value_print): Use it.
12470
4112d2e6
TT
124712020-03-13 Tom Tromey <tom@tromey.com>
12472
12473 * valprint.c (generic_val_print_func): Simplify.
12474 (generic_val_print, generic_value_print): Update.
12475
65786af6
TT
124762020-03-13 Tom Tromey <tom@tromey.com>
12477
12478 * valprint.c (generic_val_print_flags): Remove.
12479 (generic_val_print, generic_value_print): Update.
12480 (val_print_type_code_flags): Add original_value parameter.
12481
40f3ce18
TT
124822020-03-13 Tom Tromey <tom@tromey.com>
12483
12484 * valprint.c (generic_val_print): Update.
12485 (generic_value_print): Update.
12486 * valprint.c (generic_val_print_enum): Don't call
12487 val_print_scalar_formatted.
12488
2a5b130b
TT
124892020-03-13 Tom Tromey <tom@tromey.com>
12490
12491 * valprint.c (generic_value_print): Call generic_value_print_ptr.
12492 * valprint.c (generic_value_print_ptr): New function.
12493
abc66ce9
TT
124942020-03-13 Tom Tromey <tom@tromey.com>
12495
12496 * valprint.c (generic_value_print): Rewrite.
12497
07a32858
TT
124982020-03-13 Tom Tromey <tom@tromey.com>
12499
12500 * p-valprint.c (pascal_object_print_value_fields)
12501 (pascal_object_print_value): New functions.
12502
64d64d3a
TT
125032020-03-13 Tom Tromey <tom@tromey.com>
12504
12505 * p-valprint.c (pascal_value_print_inner): Rewrite.
12506
6a95a1f5
TT
125072020-03-13 Tom Tromey <tom@tromey.com>
12508
12509 * f-valprint.c (f_value_print_innner): Rewrite.
12510
59fcdac6
TT
125112020-03-13 Tom Tromey <tom@tromey.com>
12512
12513 * m2-valprint.c (m2_print_unbounded_array): New overload.
12514 (m2_print_unbounded_array): Update.
12515 (m2_print_array_contents): Take a struct value.
12516 (m2_value_print_inner): Rewrite.
12517
d133c3e1
TT
125182020-03-13 Tom Tromey <tom@tromey.com>
12519
12520 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
12521 (d_value_print_inner): New function.
12522 * d-lang.h (d_value_print_inner): Declare.
12523 * d-lang.c (d_language_defn): Use d_value_print_inner.
12524
23b0f06b
TT
125252020-03-13 Tom Tromey <tom@tromey.com>
12526
12527 * go-valprint.c (go_value_print_inner): New function.
12528 * go-lang.h (go_value_print_inner): Declare.
12529 * go-lang.c (go_language_defn): Use go_value_print_inner.
12530
5f56f7cb
TT
125312020-03-13 Tom Tromey <tom@tromey.com>
12532
12533 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
12534 API.
12535 (rust_val_print): Rewrite.
12536 (rust_value_print_inner): New function, from rust_val_print.
12537 (rust_language_defn): Use rust_value_print_inner.
12538
26792ee0
TT
125392020-03-13 Tom Tromey <tom@tromey.com>
12540
12541 * ada-valprint.c (ada_value_print_inner): New function.
12542 * ada-lang.h (ada_value_print_inner): Declare.
12543 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
12544
24051bbe
TT
125452020-03-13 Tom Tromey <tom@tromey.com>
12546
12547 * f-valprint.c (f_value_print_innner): New function.
12548 * f-lang.h (f_value_print_innner): Declare.
12549 * f-lang.c (f_language_defn): Use f_value_print_innner.
12550
c0941be6
TT
125512020-03-13 Tom Tromey <tom@tromey.com>
12552
12553 * p-valprint.c (pascal_value_print_inner): New function.
12554 * p-lang.h (pascal_value_print_inner): Declare.
12555 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
12556
62c4663d
TT
125572020-03-13 Tom Tromey <tom@tromey.com>
12558
12559 * m2-valprint.c (m2_value_print_inner): New function.
12560 * m2-lang.h (m2_value_print_inner): Declare.
12561 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
12562
62182190
TT
125632020-03-13 Tom Tromey <tom@tromey.com>
12564
12565 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
12566 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
12567 * c-valprint.c (c_value_print_inner): New function.
12568 * c-lang.h (c_value_print_inner): Declare.
12569 * c-lang.c (c_language_defn, cplus_language_defn)
12570 (asm_language_defn, minimal_language_defn): Use
12571 c_value_print_inner.
12572
1e592a8a
TT
125732020-03-13 Tom Tromey <tom@tromey.com>
12574
12575 * p-valprint.c (pascal_object_print_value_fields): Now static.
12576 * p-lang.h (pascal_object_print_value_fields): Don't declare.
12577
7fe471e9
TT
125782020-03-13 Tom Tromey <tom@tromey.com>
12579
12580 * c-valprint.c (c_val_print_array): Simplify.
12581
d121c6ce
TT
125822020-03-13 Tom Tromey <tom@tromey.com>
12583
12584 * valprint.c (value_print_array_elements): New function.
12585 * valprint.h (value_print_array_elements): Declare.
12586
4dba70ee
TT
125872020-03-13 Tom Tromey <tom@tromey.com>
12588
12589 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
12590 * mips-tdep.c (mips_print_register): Use
12591 value_print_scalar_formatted.
12592
4f9ae810
TT
125932020-03-13 Tom Tromey <tom@tromey.com>
12594
12595 * valprint.h (value_print_scalar_formatted): Declare.
12596 * valprint.c (value_print_scalar_formatted): New function.
12597
156bfec9
TT
125982020-03-13 Tom Tromey <tom@tromey.com>
12599
12600 * valprint.h (generic_value_print): Declare.
12601 * valprint.c (generic_value_print): New function.
12602
2b4e573d
TT
126032020-03-13 Tom Tromey <tom@tromey.com>
12604
12605 * valprint.c (do_val_print): Call la_value_print_inner, if
12606 available.
12607 * rust-lang.c (rust_language_defn): Update.
12608 * p-lang.c (pascal_language_defn): Update.
12609 * opencl-lang.c (opencl_language_defn): Update.
12610 * objc-lang.c (objc_language_defn): Update.
12611 * m2-lang.c (m2_language_defn): Update.
12612 * language.h (struct language_defn) <la_value_print_inner>: New
12613 member.
12614 * language.c (unknown_language_defn, auto_language_defn): Update.
12615 * go-lang.c (go_language_defn): Update.
12616 * f-lang.c (f_language_defn): Update.
12617 * d-lang.c (d_language_defn): Update.
12618 * c-lang.c (c_language_defn, cplus_language_defn)
12619 (asm_language_defn, minimal_language_defn): Update.
12620 * ada-lang.c (ada_language_defn): Update.
12621
a1f6a07c
TT
126222020-03-13 Tom Tromey <tom@tromey.com>
12623
12624 * c-valprint.c (c_value_print): Use common_val_print.
12625
410cf315
TT
126262020-03-13 Tom Tromey <tom@tromey.com>
12627
12628 * cp-valprint.c (cp_print_static_field): Use common_val_print.
12629
72a45c93
TT
126302020-03-13 Tom Tromey <tom@tromey.com>
12631
12632 * f-valprint.c (f77_print_array_1, f_val_print): Use
12633 common_val_print.
12634
040f66bd
TT
126352020-03-13 Tom Tromey <tom@tromey.com>
12636
12637 * riscv-tdep.c (riscv_print_one_register_info): Use
12638 common_val_print.
12639
a6e05a6c
TT
126402020-03-13 Tom Tromey <tom@tromey.com>
12641
12642 * mi/mi-main.c (output_register): Use common_val_print.
12643
3444c526
TT
126442020-03-13 Tom Tromey <tom@tromey.com>
12645
12646 * infcmd.c (default_print_one_register_info): Use
12647 common_val_print.
12648
c2a44efe
TT
126492020-03-13 Tom Tromey <tom@tromey.com>
12650
12651 * valprint.h (common_val_print_checked): Declare.
12652 * valprint.c (common_val_print_checked): New function.
12653 * stack.c (print_frame_arg): Use common_val_print_checked.
12654
b0c26e99
TT
126552020-03-13 Tom Tromey <tom@tromey.com>
12656
12657 * valprint.c (do_val_print): New function, from val_print.
12658 (val_print): Use do_val_print.
12659 (common_val_print): Use do_val_print.
12660
ce3acbe9
TT
126612020-03-13 Tom Tromey <tom@tromey.com>
12662
12663 * valprint.c (value_print): Use scoped_value_mark.
12664
96c7f873
TV
126652020-03-13 Tom de Vries <tdevries@suse.de>
12666
12667 PR symtab/25646
12668 * psymtab.c (partial_symtab::partial_symtab): Don't set
12669 globals_offset and statics_offset. Push element onto
12670 current_global_psymbols and current_static_psymbols stacks.
12671 (concat): New function.
12672 (end_psymtab_common): Set globals_offset and statics_offset. Pop
12673 element from current_global_psymbols and current_static_psymbols
12674 stacks. Concat popped elements to global_psymbols and
12675 static_symbols.
12676 (add_psymbol_to_list): Use current_global_psymbols and
12677 current_static_psymbols stacks.
12678 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
12679 current_static_psymbols fields.
12680
6ba0a321
CB
126812020-03-12 Christian Biesinger <cbiesinger@google.com>
12682
12683 * corelow.c (sniff_core_bfd): Remove.
12684 (class core_target) <m_core_vec>: Remove.
12685 (core_target::core_target): Update.
12686 (core_file_fns): Remove.
12687 (deprecated_add_core_fns): Remove.
12688 (default_core_sniffer): Remove.
12689 (sniff_core_bfd): Remove.
12690 (default_check_format): Remove.
12691 (gdb_check_format): Remove.
12692 (core_target_open): Update.
12693 (core_target::get_core_register_section): Update.
12694 (get_core_registers_cb): Update.
12695 (core_target::fetch_registers): Update.
12696 * gdbcore.h (struct core_fns): Remove.
12697 (deprecated_add_core_fns): Remove.
12698 (default_core_sniffer): Remove.
12699 (default_check_format): Remove.
12700
227031b2
TT
127012020-03-12 Tom Tromey <tom@tromey.com>
12702
12703 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
12704 CORE_ADDR.
12705 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
12706
53807e9f
TT
127072020-03-12 Tom Tromey <tom@tromey.com>
12708
12709 * remote.c (remote_target::download_tracepoint)
12710 (remote_target::enable_tracepoint)
12711 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
12712 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
12713 sprintf_vma.
12714
64f25102
TT
127152020-03-12 Tom Tromey <tom@tromey.com>
12716
12717 * symfile-mem.c: Update CORE_ADDR size assert.
12718
272cd5a3
SM
127192020-03-12 Simon Marchi <simon.marchi@efficios.com>
12720
12721 * selftest.m4: Move to gdbsupport/.
12722 * acinclude.m4: Update path to selftest.m4.
12723
74cd3f9d
SM
127242020-03-12 Simon Marchi <simon.marchi@efficios.com>
12725
12726 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
12727 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
12728 gdbarch-selfselftests.c and selftest-arch.c.
12729 (SUBDIR_UNITTESTS_OBS): Rename to...
12730 (SELFTESTS_OBS): ... this.
12731 (COMMON_SFILES): Remove disasm-selftests.c and
12732 gdbarch-selftests.c.
12733 * configure.ac: Don't add selftest-arch.{c,o} to
12734 CONFIG_{SRCS,OBS}.
12735 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
12736 preprocessor conditions.
12737
db6878ac
SM
127382020-03-12 Simon Marchi <simon.marchi@efficios.com>
12739
12740 * configure.ac: Don't source bfd/development.sh.
12741 * selftest.m4: Modify comment.
12742 * configure: Re-generate.
12743
4d696a5c
SM
127442020-03-12 Simon Marchi <simon.marchi@efficios.com>
12745
12746 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
12747 not "true" or "false".
12748 * configure: Re-generate.
12749
8dd8e1c7
CB
127502020-03-12 Christian Biesinger <cbiesinger@google.com>
12751
12752 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
12753 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
12754 renamed to arm_nbsd_supply_gregset.
12755 (fetch_register): Update to call arm_nbsd_supply_gregset.
12756 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
12757 (arm_netbsd_nat_target::fetch_registers): Update.
12758 (fetch_elfcore_registers): Removed.
12759 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
12760 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
12761 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
12762 not require NetBSD system headers.
12763 (arm_nbsd_regset): New struct.
12764 (arm_nbsd_iterate_over_regset_sections): New function.
12765 (arm_netbsd_init_abi_common): Updated to call
12766 set_gdbarch_iterate_over_regset_sections.
12767 * arm-nbsd-tdep.h: New file.
12768
dd69bf7a
KB
127692020-03-11 Kevin Buettner <kevinb@redhat.com>
12770
12771 * symtab.c (find_pc_sect_line): Add check which prevents infinite
12772 recursion.
12773
a0761e34
SM
127742020-03-11 Simon Marchi <simon.marchi@efficios.com>
12775
12776 * configure: Re-generate.
12777
e7a82140
TT
127782020-03-11 Tom Tromey <tromey@adacore.com>
12779
12780 * ada-typeprint.c (print_choices): Fix comment.
12781
dcc050c8
AB
127822020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
12783
12784 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
12785 previous item in the list, when the list has no items.
12786
1c33af77
TV
127872020-03-11 Tom de Vries <tdevries@suse.de>
12788
12789 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
12790 PROP_LOCLIST handling code.
12791
8c95582d
AB
127922020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
12793
12794 * buildsym-legacy.c (record_line): Pass extra parameter to
12795 record_line.
12796 * buildsym.c (buildsym_compunit::record_line): Take an extra
12797 parameter, reduce duplication in the line table, and record the
12798 is_stmt flag in the line table.
12799 * buildsym.h (buildsym_compunit::record_line): Add extra
12800 parameter.
12801 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
12802 non-statement lines.
12803 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
12804 this to the symtab builder.
12805 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
12806 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
12807 through to dwarf_record_line_1.
12808 * infrun.c (process_event_stop_test): When stepping, don't stop at
12809 a non-statement instruction, and only refresh the step info when
12810 we land in the middle of a line's range. Also add an extra
12811 comment.
12812 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
12813 field.
12814 * record-btrace.c (btrace_find_line_range): Only record lines
12815 marked as is-statement.
12816 * stack.c (frame_show_address): Show the frame address if we are
12817 in a non-statement sal.
12818 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
12819 (maintenance_print_one_line_table): Print a header for the is_stmt
12820 column, and include is_stmt information in the output.
12821 * symtab.c (find_pc_sect_line): Find lines marked as statements in
12822 preference to non-statements.
12823 (find_pcs_for_symtab_line): Prefer is-statement entries.
12824 (find_line_common): Likewise.
12825 * symtab.h (struct linetable_entry): Add is_stmt field.
12826 (struct symtab_and_line): Likewise.
12827 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
12828 arranging the line table.
12829
e4003a34
TV
128302020-03-07 Tom de Vries <tdevries@suse.de>
12831
12832 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
12833 DIE.
12834
e8932576
TT
128352020-03-07 Tom Tromey <tom@tromey.com>
12836
12837 * valops.c (value_literal_complex): Remove obsolete comment.
12838 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
12839 comment.
12840
29734269
SM
128412020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
12842
12843 * infrun.h: Forward-declare thread_info.
12844 (set_step_info): Add thread_info parameter, add doc.
12845 * infrun.c (set_step_info): Add thread_info parameter, move doc
12846 to header.
12847 * infrun.c (process_event_stop_test): Pass thread to
12848 set_step_info call.
12849 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
12850 set_step_info.
12851 (prepare_one_step): Add thread_info parameter, pass it to
12852 set_step_frame and prepare_one_step (recursive) call.
12853 (step_1): Pass thread to prepare_one_step call.
12854 (step_command_fsm::should_stop): Pass thread to
12855 prepare_one_step.
12856 (until_next_fsm): Pass thread to set_step_frame call.
12857 (finish_command): Pass thread to set_step_info call.
12858
b7d64b29
HD
128592020-03-06 Hannes Domani <ssbssa@yahoo.de>
12860
12861 * windows-tdep.c (windows_solib_create_inferior_hook):
12862 Check if inferior is running.
12863
09f2921c
TV
128642020-03-06 Tom de Vries <tdevries@suse.de>
12865
12866 * NEWS: Fix "the the".
12867 * ctfread.c: Same.
12868
fd760e79
TV
128692020-03-06 Tom de Vries <tdevries@suse.de>
12870
12871 * psymtab.c (psymtab_to_symtab): Don't print "done.".
12872
20ea4a60
AB
128732020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12874
12875 * .dir-locals.el: Add a comment referencing the other copies of
12876 this file.
12877
0afbabf0
JB
128782020-03-05 John Baldwin <jhb@FreeBSD.org>
12879
12880 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
12881 psargs.
12882
842806cb
TBA
128832020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12884
12885 * .gitattributes: New file.
12886
be1e3d3e
TT
128872020-03-04 Tom Tromey <tom@tromey.com>
12888
12889 * symmisc.c (print_symbol_bcache_statistics)
12890 (print_objfile_statistics): Update.
12891 * symfile.c (allocate_symtab): Use intern.
12892 * psymtab.c (partial_symtab::partial_symtab): Use intern.
12893 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
12894 macro_cache>: Remove.
12895 <string_cache>: New member.
12896 (struct objfile) <intern>: New methods.
12897 * elfread.c (elf_symtab_read): Use intern.
12898 * dwarf2/read.c (fixup_go_packaging): Intern package name.
12899 (dwarf2_compute_name, dwarf2_physname)
12900 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
12901 names.
12902 (guess_partial_die_structure_name): Update.
12903 (partial_die_info::fixup): Intern name.
12904 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
12905 name.
12906 (dwarf2_name): Intern name. Update.
12907 * buildsym.c (buildsym_compunit::get_macro_table): Use
12908 string_cache.
12909
4e7625fd
TT
129102020-03-04 Tom Tromey <tom@tromey.com>
12911
12912 * jit.c (bfd_open_from_target_memory): Make "target" const.
12913 * corefile.c (gnutarget): Now const.
12914 * gdbcore.h (gnutarget): Now const.
12915
46f9f931
HD
129162020-03-04 Hannes Domani <ssbssa@yahoo.de>
12917
12918 * NEWS: Mention support for WOW64 processes.
12919 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
12920 (amd64_windows_segment_register_p): Remove static.
12921 (_initialize_amd64_windows_nat): Update.
12922 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
12923 * i386-windows-nat.c (context_offset): Update.
12924 (i386_mappings): Rename and remove static.
12925 (i386_windows_segment_register_p): Remove static.
12926 (_initialize_i386_windows_nat): Update.
12927 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
12928 (STATUS_WX86_SINGLE_STEP): New macro.
12929 (EnumProcessModulesEx): New macro.
12930 (Wow64SuspendThread): New macro.
12931 (Wow64GetThreadContext): New macro.
12932 (Wow64SetThreadContext): New macro.
12933 (Wow64GetThreadSelectorEntry): New macro.
12934 (windows_set_context_register_offsets): Add static.
12935 (windows_set_segment_register_p): Likewise.
12936 (windows_add_thread): Adapt for WOW64 processes.
12937 (windows_fetch_one_register): Likewise.
12938 (windows_nat_target::fetch_registers): Likewise.
12939 (windows_store_one_register): Likewise.
12940 (display_selector): Likewise.
12941 (display_selectors): Likewise.
12942 (handle_exception): Likewise.
12943 (windows_continue): Likewise.
12944 (windows_nat_target::resume): Likewise.
12945 (windows_add_all_dlls): Likewise.
12946 (do_initial_windows_stuff): Likewise.
12947 (windows_nat_target::attach): Likewise.
12948 (windows_get_exec_module_filename): Likewise.
12949 (windows_nat_target::create_inferior): Likewise.
12950 (windows_xfer_siginfo): Likewise.
12951 (_initialize_loadable): Initialize Wow64SuspendThread,
12952 Wow64GetThreadContext, Wow64SetThreadContext,
12953 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
12954 * windows-nat.h (windows_set_context_register_offsets):
12955 Remove declaration.
12956 (windows_set_segment_register_p): Likewise.
12957 (i386_windows_segment_register_p): Add declaration.
12958 (amd64_windows_segment_register_p): Likewise.
12959
440cf44e
LM
129602020-03-04 Luis Machado <luis.machado@linaro.org>
12961
12962 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
12963 in "info registers" for AArch64/ARM.
12964
12965 The change caused "info registers" to not print GPR's.
12966
12967 gdb/ChangeLog:
12968
12969 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
12970
12971 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
12972 when reg->group is empty and reggroup is not.
12973
1009d92f
TT
129742020-03-03 Tom Tromey <tromey@adacore.com>
12975
12976 * dwarf2/frame.c (struct dwarf2_frame_cache)
12977 <checked_tailcall_bottom, entry_cfa_sp_offset,
12978 entry_cfa_sp_offset_p>: Remove members.
12979 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
12980 (dwarf2_frame_prev_register): Don't call
12981 dwarf2_tailcall_sniffer_first.
12982 (dwarf2_append_unwinders): Don't append tailcall unwinder.
12983 * frame-unwind.c (add_unwinder): New fuction.
12984 (frame_unwind_init): Use it. Add tailcall unwinder.
12985
5e5d66b6
AB
129862020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
12987 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12988
12989 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
12990 value should be printed as true.
12991
584cf46d
HD
129922020-03-03 Hannes Domani <ssbssa@yahoo.de>
12993
12994 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
12995 (windows_init_abi): Set and use windows_so_ops.
12996
7b973adc
SDJ
129972020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
12998
12999 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
13000 when verifying if dealing with a convenience variable.
13001
bb7b70ab
LM
130022020-03-03 Luis Machado <luis.machado@linaro.org>
13003
13004 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
13005
9822cb57
SM
130062020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
13007
13008 * infrun.c (gdbarch_supports_displaced_stepping): New.
13009 (use_displaced_stepping): Break up conditions in smaller pieces.
13010 Use gdbarch_supports_displaced_stepping.
13011 (displaced_step_prepare_throw): Use
13012 gdbarch_supports_displaced_stepping.
13013
63e163f2
AB
130142020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13015
13016 * NEWS: Mention new behaviour of the history filename.
13017 * top.c (write_history_p): Add comment.
13018 (show_write_history_p): Add header comment, give a different
13019 message when history writing is on, but the history filename is
13020 empty.
13021 (history_filename): Add comment.
13022 (history_filename_empty): New function.
13023 (show_history_filename): Add header comment, give a different
13024 message when the filename is empty.
13025 (init_history): Compare history_filename against nullptr, and only
13026 read history if the filename is not empty.
13027 (set_history_filename): Add header comment, and only make
13028 non-empty filenames absolute.
13029 (init_main): Make the filename argument to 'set history filename'
13030 optional.
13031
81b86b97
CB
130322020-03-02 Christian Biesinger <cbiesinger@google.com>
13033
13034 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
13035 (arm_supply_vfpregset): ...this, and update to use VFP registers.
13036 (fetch_fp_register): Update.
13037 (fetch_fp_regs): Update.
13038 (store_fp_register): Update.
13039 (store_fp_regs): Update.
13040 (arm_netbsd_nat_target::read_description): New function.
13041 (fetch_elfcore_registers): Update.
13042
24ed6739
AB
130432020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13044
13045 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
13046 general_thread if the stop reply is missing a thread-id.
13047 (remote_target::process_stop_reply): Use the first non-exited
13048 thread if the target didn't pass a thread-id.
13049 * infrun.c (do_target_wait): Move call to
13050 switch_to_inferior_no_thread to ....
13051 (do_target_wait_1): ... here.
13052
a84bb2a0
JT
130532020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
13054
13055 * debuginfod-support.c: Include defs.h first.
13056
658dadf0
TV
130572020-02-28 Tom de Vries <tdevries@suse.de>
13058
13059 * symfile.c (set_initial_language): Use default language for lookup.
13060
4ebe4877
SM
130612020-02-28 Simon Marchi <simon.marchi@efficios.com>
13062
13063 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
13064 reader variable, pass `this` to read_cutu_die_from_dwo.
13065
e5da1139
AM
130662020-02-27 Aaron Merey <amerey@redhat.com>
13067
13068 * source.c (open_source_file): Check for nullptr when computing
13069 srcpath.
13070
317f7127
TT
130712020-02-27 Tom Tromey <tromey@adacore.com>
13072
13073 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
13074 member.
13075 (dwarf2_add_field): Don't update nfields.
13076 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
13077
3104d9ee
AB
130782020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13079
13080 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
13081 abs.
13082
b83470bf
TT
130832020-02-26 Tom Tromey <tom@tromey.com>
13084
13085 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
13086 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
13087 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
13088 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
13089 per_cu_data.
13090
edfe0a0c
TT
130912020-02-26 Tom Tromey <tom@tromey.com>
13092
13093 * dwarf2/index-write.c (psym_index_map): Change type.
13094 (add_address_entry_worker, write_one_signatured_type)
13095 (recursively_count_psymbols, recursively_write_psymbols)
13096 (class debug_names, psyms_seen_size, write_gdbindex)
13097 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
13098
0d79cdc4
AM
130992020-02-26 Aaron Merey <amerey@redhat.com>
13100
13101 * Makefile.in: Handle optional debuginfod support.
13102 * NEWS: Update.
13103 * README: Add --with-debuginfod summary.
13104 * config.in: Regenerate.
13105 * configure: Regenerate.
13106 * configure.ac: Handle optional debuginfod support.
13107 * debuginfod-support.c: debuginfod helper functions.
13108 * debuginfod-support.h: Ditto.
13109 * doc/gdb.texinfo: Add --with-debuginfod to configure options
13110 summary.
13111 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
13112 when a dwz file cannot be found.
13113 * elfread.c (elf_symfile_read): Query debuginfod servers when a
13114 debuginfo file cannot be found.
13115 * source.c (open_source_file): Query debuginfod servers when a
13116 source file cannot be found.
13117 * top.c (print_gdb_configuration): Include
13118 --{with,without}-debuginfod in the output.
13119
b65ce565
JG
131202020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
13121
13122 * thread.c (thr_try_catch_cmd): Print thread name.
13123
d4c9a4f8
SM
131242020-02-26 Simon Marchi <simon.marchi@efficios.com>
13125
13126 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
13127 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13128 dwarf2_fetch_die_type_sect_off): Move to...
13129 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
13130 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13131 dwarf2_fetch_die_type_sect_off): ... here.
13132 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
13133 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13134 dwarf2_fetch_die_type_sect_off): Move doc to header file.
13135
0dce4280
TV
131362020-02-26 Tom de Vries <tdevries@suse.de>
13137
13138 PR gdb/25603
13139 * symfile.c (set_initial_language): Exit-early if
13140 language_mode == language_mode_manual.
13141
450a1bfc
SM
131422020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13143
13144 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
13145 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
13146 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
13147
9e80cfa1
AB
131482020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
13149
13150 * gdbtypes.c (create_array_type_with_stride): Handle negative
13151 array strides.
13152 * valarith.c (value_subscripted_rvalue): Likewise.
13153
09624f1f
LM
131542020-02-25 Luis Machado <luis.machado@linaro.org>
13155
13156 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
13157
8cb5117c
SM
131582020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13159
13160 * loc.h (dwarf2_get_die_type): Move to...
13161 * read.h (dwarf2_get_die_type): ... here.
13162 * read.c (dwarf2_get_die_type): Move doc to header.
13163
c325c44e
JB
131642020-02-25 Joel Brobecker <brobecker@adacore.com>
13165
13166 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
13167 'gnulib/Makefile.in' to the list.
13168
4ac93832
TT
131692020-02-24 Tom Tromey <tom@tromey.com>
13170
13171 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
13172 Remove.
13173 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
13174 XOBNEWVEC.
13175
197400e8
TT
131762020-02-24 Tom Tromey <tom@tromey.com>
13177
13178 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
13179 New method.
13180 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
13181 (dw2_do_instantiate_symtab, dw2_get_file_names)
13182 (build_type_psymtab_dependencies, load_full_type_unit): Update.
13183
76935768
TT
131842020-02-24 Tom Tromey <tom@tromey.com>
13185
13186 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
13187 make_scoped_restore.
13188 (dwarf2_psymtab::read_symtab): Don't clear
13189 reading_partial_symbols.
13190
a88ef40d
TV
131912020-02-24 Tom de Vries <tdevries@suse.de>
13192
13193 PR gdb/25592
13194 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
13195
c9af6521
TV
131962020-02-24 Tom de Vries <tdevries@suse.de>
13197
13198 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
13199 commands layout next/prev/regs.
13200
5707a07a
TT
132012020-02-22 Tom Tromey <tom@tromey.com>
13202
13203 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
13204 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
13205
3b0fb49e
TT
132062020-02-22 Tom Tromey <tom@tromey.com>
13207
13208 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
13209
283be8bf
TT
132102020-02-22 Tom Tromey <tom@tromey.com>
13211
13212 * tui/tui-win.c (_initialize_tui_win): Add usage text.
13213 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
13214 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
13215 * tui/tui.c (_initialize_tui): Add usage text.
13216
ca793b96
TT
132172020-02-22 Tom Tromey <tom@tromey.com>
13218
13219 * tui/tui-win.c (tui_set_focus_command)
13220 (tui_set_win_height_command): Use error_no_arg.
13221 (_initialize_tui_win): Update help text.
13222 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
13223
432b5c40
TT
132242020-02-22 Tom Tromey <tom@tromey.com>
13225
13226 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
13227 * tui/tui-disasm.h (struct tui_disasm_window)
13228 <display_start_addr>: Declare.
13229 * tui/tui-source.h (struct tui_source_window)
13230 <display_start_addr>: Declare.
13231 * tui/tui-winsource.h (struct tui_source_window_base)
13232 <show_source_line, display_start_addr>: New methods.
13233 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
13234 Rename and move to protected section.
13235 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
13236 (tui_source_window_base::do_erase_source_content): Update.
13237 (tui_source_window_base::show_source_line): Now a method.
13238 (tui_source_window_base::show_source_content)
13239 (tui_source_window_base::tui_source_window_base)
13240 (tui_source_window_base::rerender)
13241 (tui_source_window_base::refill)
13242 (tui_source_window_base::do_scroll_horizontal)
13243 (tui_source_window_base::set_is_exec_point_at)
13244 (tui_source_window_base::update_breakpoint_info)
13245 (tui_source_window_base::update_exec_info): Update.
13246 * tui/tui-source.c (tui_source_window::set_contents)
13247 (tui_source_window::showing_source_p)
13248 (tui_source_window::do_scroll_vertical)
13249 (tui_source_window::location_matches_p)
13250 (tui_source_window::line_is_displayed): Update.
13251 (tui_source_window::display_start_addr): New method.
13252 * tui/tui-disasm.c (tui_disasm_window::set_contents)
13253 (tui_disasm_window::do_scroll_vertical)
13254 (tui_disasm_window::location_matches_p): Update.
13255 (tui_disasm_window::display_start_addr): New method.
13256
01b1af32
TT
132572020-02-22 Tom Tromey <tom@tromey.com>
13258
13259 * NEWS: Add entry for gdb.register_window_type.
13260 * tui/tui-layout.h (window_factory): New typedef.
13261 (tui_register_window): Declare.
13262 * tui/tui-layout.c (saved_tui_windows): New global.
13263 (tui_apply_current_layout): Use it.
13264 (tui_register_window): New function.
13265 * python/python.c (do_start_initialization): Call
13266 gdbpy_initialize_tui.
13267 (python_GdbMethods): Add "register_window_type" function.
13268 * python/python-internal.h (gdbpy_register_tui_window)
13269 (gdbpy_initialize_tui): Declare.
13270 * python/py-tui.c: New file.
13271 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
13272
fc96d20b
TT
132732020-02-22 Tom Tromey <tom@tromey.com>
13274
13275 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
13276
935c78c0
TT
132772020-02-22 Tom Tromey <tom@tromey.com>
13278
13279 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
13280 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
13281 * tui/tui-data.c (tui_set_win_with_focus): Remove.
13282 (tui_set_win_focus_to): Move from tui-win.c.
13283
0240c8f1
TT
132842020-02-22 Tom Tromey <tom@tromey.com>
13285
13286 * tui/tui-layout.c (make_standard_window, get_locator_window): New
13287 functions.
13288 (known_window_types): New global.
13289 (tui_get_window_by_name): Reimplement.
13290 (initialize_known_windows): New function.
13291 (validate_window_name): Rewrite.
13292 (_initialize_tui_layout): Call initialize_known_windows.
13293
fdb01f0c
TT
132942020-02-22 Tom Tromey <tom@tromey.com>
13295
13296 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
13297 Remove constants.
13298 * tui/tui-winsource.h (struct tui_source_window_base)
13299 <tui_source_window_base>: Remove parameter.
13300 * tui/tui-winsource.c
13301 (tui_source_window_base::tui_source_window_base): Remove
13302 parameter.
13303 (tui_source_window_base::refill): Update.
13304 * tui/tui-stack.h (struct tui_locator_window)
13305 <tui_locator_window>: Update.
13306 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
13307 Default the constructor.
13308 * tui/tui-regs.h (struct tui_data_item_window)
13309 <tui_data_item_window>: Default the constructor.
13310 (struct tui_data_window) <tui_data_window>: Likewise.
13311 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
13312 Default the constructor.
13313 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
13314 Default the constructor.
13315 <type>: Remove.
13316 (struct tui_win_info) <tui_win_info>: Default the constructor.
13317 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
13318 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
13319 Default the constructor.
13320
865a5aec
TT
133212020-02-22 Tom Tromey <tom@tromey.com>
13322
13323 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
13324 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
13325 * tui/tui-win.c (tui_resize_all): Don't call
13326 tui_delete_invisible_windows.
13327 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
13328 done.
13329 (tui_set_layout): Update.
13330 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
13331 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
13332 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
13333
e098d18c
TT
133342020-02-22 Tom Tromey <tom@tromey.com>
13335
13336 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
13337 correctly.
13338
eb9c8874
TT
133392020-02-22 Tom Tromey <tom@tromey.com>
13340
13341 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
13342
7eed1a8e
TT
133432020-02-22 Tom Tromey <tom@tromey.com>
13344
13345 * tui/tui-winsource.h (struct tui_source_window_iterator)
13346 <inner_iterator>: New etytypedef.
13347 <tui_source_window_iterator>: Take "end" parameter.
13348 <tui_source_window_iterator>: Take iterator.
13349 <operator*, advance>: Update.
13350 <m_iter>: Change type.
13351 <m_end>: New field.
13352 (struct tui_source_windows) <begin, end>: Update.
13353 * tui/tui-layout.c (tui_windows): New global.
13354 (tui_apply_current_layout): Clear tui_windows.
13355 (tui_layout_window::apply): Update tui_windows.
13356 * tui/tui-data.h (tui_windows): Declare.
13357 (all_tui_windows): Now inline function.
13358 (class tui_window_iterator, struct all_tui_windows): Remove.
13359
7c043ba6
TT
133602020-02-22 Tom Tromey <tom@tromey.com>
13361
13362 PR tui/17850:
13363 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
13364 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
13365 "height" argument.
13366 (class tui_layout_window) <get_sizes>: Likewise.
13367 (class tui_layout_split) <tui_layout_split>: Add "vertical"
13368 argument.
13369 <get_sizes>: Add "height" argument.
13370 <m_vertical>: New field.
13371 * tui/tui-layout.c (tui_layout_split::clone): Update.
13372 (tui_layout_split::get_sizes): Add "height" argument.
13373 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
13374 (tui_new_layout_command): Parse "-horizontal".
13375 (_initialize_tui_layout): Update help string.
13376 (tui_layout_split::specification): Add "-horizontal" when needed.
13377 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
13378 argument.
13379 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
13380 New methods.
13381
6bc56648
TT
133822020-02-22 Tom Tromey <tom@tromey.com>
13383
13384 * tui/tui-layout.h (enum tui_adjust_result): New.
13385 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
13386 (class tui_layout_window) <adjust_size>: Return
13387 tui_adjust_result. Rewrite.
13388 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
13389 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
13390
c22fef7e
TT
133912020-02-22 Tom Tromey <tom@tromey.com>
13392
13393 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
13394 parameter and return types.
13395 (class tui_layout_base) <specification>: Add "depth".
13396 (class tui_layout_window) <specification>: Add "depth".
13397 (class tui_layout_split) <specification>: Add "depth".
13398 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
13399 and return types.
13400 (tui_new_layout_command): Parse sub-layouts.
13401 (_initialize_tui_layout): Update help string.
13402 (tui_layout_window::specification): Add "depth".
13403 (add_layout_command): Update.
13404
ee325b61
TT
134052020-02-22 Tom Tromey <tom@tromey.com>
13406
13407 * NEWS: Add "tui new-layout" item.
13408 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
13409 Add new-layout command to help text.
13410 (validate_window_name): New function.
13411 (tui_new_layout_command): New function.
13412 (_initialize_tui_layout): Register "new-layout".
13413 (tui_layout_window::specification): New method.
13414 (tui_layout_window::specification): New method.
13415 * tui/tui-layout.h (class tui_layout_base) <specification>: New
13416 method.
13417 (class tui_layout_window) <specification>: New method.
13418 (class tui_layout_split) <specification>: New method.
13419
416eb92d
TT
134202020-02-22 Tom Tromey <tom@tromey.com>
13421
13422 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
13423 * tui/tui-win.c (window_name_completer): Update comment.
13424 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
13425 Declare method.
13426 (class tui_layout_window) <replace_window>: Likewise.
13427 (class tui_layout_split) <replace_window>: Likewise.
13428 (tui_set_layout): Don't declare.
13429 (tui_set_initial_layout): Declare function.
13430 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
13431 (asm_regs_layout): New globals.
13432 (tui_current_layout, show_layout): Remove.
13433 (tui_set_layout, tui_add_win_to_layout): Rewrite.
13434 (find_layout, tui_apply_layout): New function.
13435 (layout_completer): Remove.
13436 (tui_next_layout): Reimplement.
13437 (tui_next_layout_command): New function.
13438 (tui_set_initial_layout, tui_prev_layout_command): New functions.
13439 (tui_regs_layout): Reimplement.
13440 (tui_regs_layout_command): New function.
13441 (extract_display_start_addr): Rewrite.
13442 (next_layout, prev_layout): Remove.
13443 (tui_layout_window::replace_window): New method.
13444 (tui_layout_split::replace_window): New method.
13445 (destroy_layout): New function.
13446 (layout_list): New global.
13447 (add_layout_command): New function.
13448 (initialize_layouts): Update.
13449 (tui_layout_command): New function.
13450 (_initialize_tui_layout): Install "layout" commands.
13451 * tui/tui-data.h (enum tui_layout_type): Remove.
13452 (tui_current_layout): Don't declare.
13453
0dbc2fc7
TT
134542020-02-22 Tom Tromey <tom@tromey.com>
13455
13456 * tui/tui-regs.c (tui_reg_layout): Remove.
13457 (tui_reg_command): Use tui_regs_layout.
13458 * tui/tui-layout.h (tui_reg_command): Declare.
13459 * tui/tui-layout.c (tui_reg_command): New function.
13460
5afe342e
TT
134612020-02-22 Tom Tromey <tom@tromey.com>
13462
13463 * tui/tui.c (tui_rl_delete_other_windows): Call
13464 tui_remove_some_windows.
13465 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
13466 Declare method.
13467 (class tui_layout_window) <remove_windows>: New method.
13468 (class tui_layout_split) <remove_windows>: Declare.
13469 (tui_remove_some_windows): Declare.
13470 * tui/tui-layout.c (tui_remove_some_windows): New function.
13471 (tui_layout_split::remove_windows): New method.
13472
427326a8
TT
134732020-02-22 Tom Tromey <tom@tromey.com>
13474
13475 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
13476 * tui/tui-layout.h (tui_next_layout): Declare.
13477 * tui/tui-layout.c (tui_next_layout): New function.
13478
3fe12b6d
TT
134792020-02-22 Tom Tromey <tom@tromey.com>
13480
13481 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
13482 correct coordinates.
13483
59b8b5d2
TT
134842020-02-22 Tom Tromey <tom@tromey.com>
13485
13486 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
13487 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
13488 DATA_WIN case.
13489
2a3d458b
TT
134902020-02-22 Tom Tromey <tom@tromey.com>
13491
13492 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
13493 TUI_DISASM_WIN, not tui_win_list.
13494
3f0cbb04
TT
134952020-02-22 Tom Tromey <tom@tromey.com>
13496
13497 * valprint.c (generic_val_print_enum_1)
13498 (val_print_type_code_flags): Style member names.
13499 * rust-lang.c (val_print_struct, rust_print_enum)
13500 (rust_print_struct_def, rust_internal_print_type): Style member
13501 names.
13502 * p-valprint.c (pascal_object_print_value_fields): Style member
13503 names. Only call fprintf_symbol_filtered for static members.
13504 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
13505 * f-valprint.c (f_val_print): Style member names.
13506 * f-typeprint.c (f_type_print_base): Style member names.
13507 * cp-valprint.c (cp_print_value_fields): Style member names. Only
13508 call fprintf_symbol_filtered for static members.
13509 (cp_print_class_member): Style member names.
13510 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
13511 member names.
13512 * ada-valprint.c (ada_print_scalar): Style enum names.
13513 (ada_val_print_enum): Likewise.
13514 * ada-typeprint.c (print_enum_type): Style enum names.
13515
d4d947ae
TT
135162020-02-21 Tom Tromey <tom@tromey.com>
13517
13518 * psympriv.h (struct partial_symtab): Update comment.
13519
e94e944b
TT
135202020-02-21 Tom Tromey <tromey@adacore.com>
13521
13522 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
13523 type is CORE_ADDR.
13524
1eb73179
TV
135252020-02-21 Tom de Vries <tdevries@suse.de>
13526
13527 PR gdb/25534
13528 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
13529 if dependencies[i]->user != NULL.
13530
4f180d53
AT
135312020-02-21 Ali Tamur <tamur@google.com>
13532
13533 * dwarf2/read.c (dwarf2_name): Add null check.
13534
22b6cd70
TT
135352020-02-20 Tom Tromey <tom@tromey.com>
13536
13537 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
13538 ">=", in binary search.
13539 (dwarf2_find_containing_comp_unit): New overload.
13540 (run_test): New self-test.
13541 (_initialize_dwarf2_read): Register new test.
13542
bd0cf5a6
NC
135432020-02-20 Nelson Chu <nelson.chu@sifive.com>
13544
13545 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
13546 * riscv-tdep.h: Likewise.
13547 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
13548 rv32-only CSR.
13549 * features/riscv/64bit-csr.xml: Regenerated.
13550
3f702acd
SDJ
135512020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
13552 Tom Tromey <tom@tromey.com>
13553
13554 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
13555 of 'fputc_unfiltered'.
13556 (putchar_unfiltered): Call 'fputc_unfiltered'.
13557 (fputc_unfiltered): Call 'fputs_unfiltered'.
13558
d13c7322
AB
135592020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
13560
13561 * config.in: Regenerate.
13562 * configure: Regenerate.
13563 * configure.ac: Add --with-python-libdir option.
13564 * main.c: Use WITH_PYTHON_LIBDIR.
13565
869d8950
TT
135662020-02-19 Tom Tromey <tom@tromey.com>
13567
13568 * symtab.c (general_symbol_info::compute_and_set_names): Use
13569 obstack_strndup. Simplify call to symbol_set_demangled_name.
13570
298e9637
SM
135712020-02-19 Simon Marchi <simon.marchi@efficios.com>
13572
13573 * dwarf2/read.c (allocate_signatured_type_table,
13574 allocate_dwo_unit_table, allocate_type_unit_groups_table,
13575 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
13576 Remove objfile parameter, update all callers.
13577
08410482
DE
135782020-02-19 Doug Evans <dje@google.com>
13579
13580 PR rust/25535
13581 * rust-lang.c (rust_print_enum): Apply embedded_offset to
13582 rust_enum_variant calculation.
13583
dfdeeca1
TT
135842020-02-19 Tom Tromey <tromey@adacore.com>
13585
13586 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
13587
2ef5453b
TT
135882020-02-19 Tom Tromey <tromey@adacore.com>
13589
13590 * ada-lang.c (cache_symbol): Use obstack_strdup.
13591
9f1528a1
AB
135922020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
13593
13594 * configure: Regenerate.
13595
d3c22fa8
TT
135962020-02-19 Tom Tromey <tromey@adacore.com>
13597
13598 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
13599 NULL check.
13600
bf84f706
MR
136012020-02-19 Maciej W. Rozycki <macro@wdc.com>
13602
13603 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
13604
d1c9b20f
AB
136052020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
13606
13607 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
13608 if GDBSERVER is not defined.
13609 (riscv_tdesc_cache): Likewise, also store const target_desc.
13610 (STATIC_IN_GDB): Define.
13611 (riscv_create_target_description): Update declaration with
13612 STATIC_IN_GDB.
13613 (riscv_lookup_target_description): New function, only define if
13614 GDBSERVER is not defined.
13615 * arch/riscv.h (riscv_create_target_description): Declare only
13616 when GDBSERVER is defined.
13617 (riscv_lookup_target_description): New declaration when GDBSERVER
13618 is not defined.
13619 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
13620 (riscv_linux_read_features): ...this, and return
13621 riscv_gdbarch_features instead of target_desc.
13622 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
13623 (riscv_linux_read_description): Rename to...
13624 (riscv_linux_read_features): ...this.
13625 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
13626 Update to use riscv_gdbarch_features and
13627 riscv_lookup_target_description.
13628 * riscv-tdep.c (riscv_find_default_target_description): Use
13629 riscv_lookup_target_description instead of
13630 riscv_create_target_description.
13631
373d7ac0
SM
136322020-02-18 Simon Marchi <simon.marchi@efficios.com>
13633
13634 * valprint.c (generic_val_print_enum_1): When printing a flag
13635 enum with value 0 and there is no enumerator with value 0, print
13636 just "0" instead of "(unknown: 0x0)".
13637
b29a2df0
SM
136382020-02-18 Simon Marchi <simon.marchi@efficios.com>
13639
13640 * valprint.c (generic_val_print_enum_1): Print unknown part of
13641 flag enum in hex.
13642
6740f0cc
SM
136432020-02-18 Simon Marchi <simon.marchi@efficios.com>
13644
13645 * dwarf2/read.c (update_enumeration_type_from_children): Allow
13646 flag enums to contain duplicate enumerators.
13647 * valprint.c (generic_val_print_enum_1): Update comment.
13648
edd45eb0
SM
136492020-02-18 Simon Marchi <simon.marchi@efficios.com>
13650
13651 * dwarf2/read.c: Include "count-one-bits.h".
13652 (update_enumeration_type_from_children): If an enumerator has
13653 multiple bits set, don't treat the enumeration as a "flag enum".
13654 * valprint.c (generic_val_print_enum_1): Assert that enumerators
13655 of flag enums have 0 or 1 bit set.
13656
6d0cf446
BE
136572020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
13658
13659 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
13660 conversion.
13661 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13662 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
13663 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13664 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
13665 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13666
7001c1b7
SM
136672020-02-18 Simon Marchi <simon.marchi@efficios.com>
13668
13669 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
13670
fdb61c6c
SM
136712020-02-14 Simon Marchi <simon.marchi@efficios.com>
13672
13673 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
13674 displaced_step_closure_up.
13675 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
13676 (struct displaced_step_closure_up):
13677 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13678 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
13679 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
13680 Likewise.
13681 * gdbarch.sh (displaced_step_copy_insn): Likewise.
13682 * gdbarch.c, gdbarch.h: Re-generate.
13683 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
13684 displaced_step_closure_up.
13685 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13686 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
13687 * infrun.h (displaced_step_closure_up): New type alias.
13688 (struct displaced_step_inferior_state) <step_closure>: Change
13689 type to displaced_step_closure_up.
13690 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
13691 displaced_step_closure_up.
13692 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13693
a4a38eb4
TT
136942020-02-14 Tom Tromey <tom@tromey.com>
13695
13696 * minidebug.c (gnu_debug_key): New global.
13697 (find_separate_debug_file_in_section): Use it.
13698
e8217e61
SM
136992020-02-14 Simon Marchi <simon.marchi@efficios.com>
13700
13701 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
13702 std::unique_ptr.
13703 * gdbarch.c: Re-generate.
13704 * gdbarch.h: Re-generate.
13705 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
13706 change.
13707 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
13708 type to std::unique_ptr.
13709 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
13710 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13711 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
13712 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
13713 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
13714 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13715 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
13716 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
13717 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13718
d8d83535
SM
137192020-02-14 Simon Marchi <simon.marchi@efficios.com>
13720
13721 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
13722 std::unique_ptr.
13723 (displaced_step_clear): Rename to...
13724 (displaced_step_reset): ... this. Just call displaced->reset ().
13725 (displaced_step_clear_cleanup): Rename to...
13726 (displaced_step_reset_cleanup): ... this.
13727 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
13728 (displaced_step_fixup): Likewise.
13729 (resume_1): Likewise.
13730 (handle_inferior_event): Restore child's memory before calling
13731 displaced_step_fixup on the parent.
13732 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
13733 to std::unique_ptr.
13734 <step_closure>: Change type to std::unique_ptr.
13735
5f661e03
SM
137362020-02-14 Simon Marchi <simon.marchi@efficios.com>
13737
13738 * arm-tdep.c: Include count-one-bits.h.
13739 (cleanup_block_store_pc): Use count_one_bits.
13740 (cleanup_block_load_pc): Use count_one_bits.
13741 (arm_copy_block_xfer): Use count_one_bits.
13742 (thumb2_copy_block_xfer): Use count_one_bits.
13743 (thumb_copy_pop_pc_16bit): Use count_one_bits.
13744 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
13745 (thumb_get_next_pcs_raw): Use count_one_bits.
13746 (arm_get_next_pcs_raw): Use count_one_bits_l.
13747 * arch/arm.c (bitcount): Remove.
13748 * arch/arm.h (bitcount): Remove.
13749
8084e579
TT
137502020-02-14 Tom Tromey <tromey@adacore.com>
13751
13752 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
13753 Update.
13754 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
13755 * dwarf2/loc.c (call_site_find_chain_1): Return
13756 unique_xmalloc_ptr.
13757 (call_site_find_chain): Likewise.
13758
258bf0ee
RB
137592020-02-14 Richard Biener <rguenther@suse.de>
13760
13761 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
13762 on expression with division operators.
13763
f98a8458
AKS
137642020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13765
13766 * MAINTAINERS (Write After Approval): Adding myself.
13767
d1437c0e
TT
137682020-02-12 Tom Tromey <tom@tromey.com>
13769
13770 * event-loop.c (event_data, gdb_event, event_handler_func):
13771 Remove.
13772
3d4560f7
TT
137732020-02-12 Tom Tromey <tom@tromey.com>
13774
13775 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
13776 (dwarf2_frame_objfile_data): Add comment.
13777 (find_comp_unit, set_comp_unit): New functions.
13778 (dwarf2_frame_find_fde): Use find_comp_unit.
13779 (dwarf2_build_frame_info): Use set_comp_unit.
13780
21982304
TT
137812020-02-12 Tom Tromey <tom@tromey.com>
13782
13783 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
13784 (comp_unit): Don't initialize objfile.
13785 (execute_cfa_program): Add text_offset parameter.
13786 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
13787 (dwarf2_frame_cache): Update.
13788 (dwarf2_build_frame_info): Don't set "objfile" member.
13789
4debb237
TT
137902020-02-12 Tom Tromey <tom@tromey.com>
13791
13792 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
13793 (decode_frame_entry): Likewise.
13794 (dwarf2_build_frame_info): Update.
13795
0d404d44
TT
137962020-02-12 Tom Tromey <tom@tromey.com>
13797
13798 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
13799 (decode_frame_entry_1): Use the comp_unit obstack.
13800
a7a3ae5c
TT
138012020-02-12 Tom Tromey <tom@tromey.com>
13802
13803 * dwarf2/frame.c (struct comp_unit): Add initializers and
13804 constructor.
13805 (dwarf2_frame_objfile_data): Store a comp_unit.
13806 (dwarf2_frame_find_fde): Update.
13807 (dwarf2_build_frame_info): Use "new".
13808
a9d65418
TT
138092020-02-12 Tom Tromey <tom@tromey.com>
13810
13811 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
13812 (dwarf2_fde_table): Typedef for std::vector.
13813 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
13814 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
13815 (decode_frame_entry): Update.
13816 (dwarf2_build_frame_info): Use "new".
13817
7559c217
CB
138182020-02-12 Christian Biesinger <cbiesinger@google.com>
13819
13820 * arm-tdep.c (arm_gdbarch_init): Update.
13821 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
13822 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
13823 have_neon, is_m>: Change to bool.
13824
aeefc73c
CB
138252020-02-12 Christian Biesinger <cbiesinger@google.com>
13826
13827 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
13828
d27b8e5f
TT
138292020-02-12 Tom Tromey <tom@tromey.com>
13830
13831 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
13832
cd5900f3
HD
138332020-02-12 Hannes Domani <ssbssa@yahoo.de>
13834
13835 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
13836 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
13837
f056b22b
TT
138382020-02-11 Tom Tromey <tom@tromey.com>
13839
13840 * psymtab.h: Update comment.
13841
f92ff6b5
TT
138422020-02-11 Tom Tromey <tom@tromey.com>
13843
13844 * gdb_obstack.h (struct auto_obstack): Use
13845 DISABLE_COPY_AND_ASSIGN.
13846
3fd6912b
TT
138472020-02-11 Tom Tromey <tom@tromey.com>
13848
13849 * dwarf2/frame.h (struct objfile): Don't forward declare.
13850
69ed9b74
CB
138512020-02-11 Christian Biesinger <cbiesinger@google.com>
13852
13853 * cris-tdep.c (cris_supply_gregset): Change signature to match
13854 what struct regset expects.
13855 (cris_regset): New struct.
13856 (fetch_core_registers): Remove.
13857 (cris_iterate_over_regset_sections): New function.
13858 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
13859 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
13860
bda874f6
CB
138612020-02-11 Christian Biesinger <cbiesinger@google.com>
13862
13863 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
13864 registers.
13865
754e1564
CB
138662020-02-11 Christian Biesinger <cbiesinger@google.com>
13867
13868 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
13869
8ddd8e0e
SM
138702020-02-11 Simon Marchi <simon.marchi@efficios.com>
13871
13872 * configure: Re-generate.
13873
898e7f60
SM
138742020-02-11 Simon Marchi <simon.marchi@efficios.com>
13875
13876 * configure: Re-generate.
13877
58df732b
SM
138782020-02-11 Simon Marchi <simon.marchi@efficios.com>
13879
13880 * acinclude: Update warning.m4 path.
13881 * warning.m4: Move to gdbsupport.
13882
da5bd37e
TT
138832020-02-11 Tom Tromey <tromey@adacore.com>
13884
13885 * remote.c (remote_console_output): Update.
13886 * printcmd.c (printf_command): Update.
13887 * event-loop.c (gdb_wait_for_event): Update.
13888 * linux-nat.c (sigchld_handler): Update.
13889 * remote-sim.c (gdb_os_write_stdout): Update.
13890 (gdb_os_flush_stdout): Update.
13891 (gdb_os_flush_stderr): Update.
13892 (gdb_os_write_stderr): Update.
13893 * exceptions.c (print_exception): Update.
13894 * remote-fileio.c (remote_fileio_func_read): Update.
13895 (remote_fileio_func_write): Update.
13896 * tui/tui.c (tui_enable): Update.
13897 * tui/tui-interp.c (tui_interp::init): Update.
13898 * utils.c (init_page_info): Update.
13899 (putchar_unfiltered, fputc_unfiltered): Update.
13900 (gdb_flush): Update.
13901 (emit_style_escape): Update.
13902 (flush_wrap_buffer, fputs_maybe_filtered): Update.
13903 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
13904 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
13905 (stderr_file::write): Update.
13906 (stderr_file::puts): Update.
13907 * ui-file.h (ui_file_isatty, ui_file_write)
13908 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
13909 (ui_file_puts): Don't declare.
13910
85f0dd3c
TV
139112020-02-10 Tom de Vries <tdevries@suse.de>
13912
13913 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
13914 sentinel to char *.
13915
2e927613
TV
139162020-02-09 Tom de Vries <tdevries@suse.de>
13917
13918 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
13919 filename if it matches "<artificial>".
13920
6bafc845
HD
139212020-02-09 Hannes Domani <ssbssa@yahoo.de>
13922
13923 * windows-tdep.c (struct enum_value_name): New struct.
13924 (create_enum): New function.
13925 (windows_get_siginfo_type): Create and use enum types.
13926
7928d571
HD
139272020-02-09 Hannes Domani <ssbssa@yahoo.de>
13928
13929 * NEWS: Mention $_siginfo support for Windows.
13930 * windows-nat.c (handle_exception): Set siginfo_er.
13931 (windows_nat_target::mourn_inferior): Reset siginfo_er.
13932 (windows_xfer_siginfo): New function.
13933 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
13934 * windows-tdep.c (struct windows_gdbarch_data): New struct.
13935 (init_windows_gdbarch_data): New function.
13936 (get_windows_gdbarch_data): New function.
13937 (windows_get_siginfo_type): New function.
13938 (windows_init_abi): Register windows_get_siginfo_type.
13939 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
13940
6751ebae
TT
139412020-02-08 Tom Tromey <tom@tromey.com>
13942
13943 * dwarf2/read.c (class cutu_reader) <cutu_reader,
13944 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
13945 <keep>: Declare method.
13946 <m_keep>: Remove member.
13947 <~cutu_reader>: Remove.
13948 (cutu_reader::init_tu_and_read_dwo_dies): Update.
13949 (cutu_reader::cutu_reader): Update.
13950 (cutu_reader::keep): Rename from ~cutu_reader.
13951 (process_psymtab_comp_unit, build_type_psymtabs_1)
13952 (process_skeletonless_type_unit, load_partial_comp_unit)
13953 (load_full_comp_unit, dwarf2_read_addr_index)
13954 (read_signatured_type): Update.
13955
135f5437
TT
139562020-02-08 Tom Tromey <tom@tromey.com>
13957
13958 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
13959 "want_partial_unit" parameter.
13960 (process_psymtab_comp_unit): Change want_partial_unit to bool.
13961 Inline check for DW_TAG_partial_unit.
13962 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
13963
9f66ff1c
TT
139642020-02-08 Tom Tromey <tom@tromey.com>
13965
13966 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
13967 read.c.
13968 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
13969 read.c.
13970
c8a7a66f
TT
139712020-02-08 Tom Tromey <tom@tromey.com>
13972
13973 * dwarf2/read.c (read_address): Move to comp-unit.c.
13974 (dwarf2_rnglists_process, dwarf2_ranges_process)
13975 (read_attribute_value, dwarf_decode_lines_1)
13976 (var_decode_location, decode_locdesc): Update.
13977 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
13978 read.c. Remove "cu" parameter.
13979 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
13980 method.
13981
8266302d
TT
139822020-02-08 Tom Tromey <tom@tromey.com>
13983
13984 * dwarf2/read.c (read_attribute_value, read_indirect_string)
13985 (read_indirect_line_string): Update.
13986 * dwarf2/comp-unit.c (read_offset): Remove.
13987 (read_comp_unit_head): Update.
13988 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
13989 method.
13990 (read_offset): Don't declare.
13991
4057dfde
TT
139922020-02-08 Tom Tromey <tom@tromey.com>
13993
13994 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
13995 * dwarf2/read.c (struct comp_unit_head): Move to
13996 dwarf2/comp-unit.h.
13997 (enum class rcuh_kind): Move to comp-unit.h.
13998 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
13999 (read_comp_unit_head, error_check_comp_unit_head)
14000 (read_and_check_comp_unit_head): Move to comp-unit.c.
14001 (read_offset, dwarf_unit_type_name): Likewise.
14002 (create_debug_type_hash_table, read_cutu_die_from_dwo)
14003 (cutu_reader::cutu_reader, read_call_site_scope)
14004 (find_partial_die, follow_die_offset): Update.
14005 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
14006
24aa364d
TT
140072020-02-08 Tom Tromey <tom@tromey.com>
14008
14009 * dwarf2/read.c (read_offset_1): Move to leb.c.
14010 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
14011 (dwarf_decode_macro_bytes): Update.
14012 * dwarf2/leb.c (read_offset): Rename; move from read.c.
14013 * dwarf2/leb.h (read_offset): Declare.
14014
2c7d5afc
TT
140152020-02-08 Tom Tromey <tom@tromey.com>
14016
14017 * dwarf2/read.c (dwarf2_section_size): Remove.
14018 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
14019 Update.
14020 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
14021
4075cb26
TT
140222020-02-08 Tom Tromey <tom@tromey.com>
14023
14024 * dwarf2/read.c (read_initial_length): Move to leb.c.
14025 * dwarf2/leb.h (read_initial_length): Declare.
14026 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
14027 handle_nonstd parameter.
14028 * dwarf2/frame.c (read_initial_length): Remove.
14029 (decode_frame_entry_1): Update.
14030
09ba997f
TT
140312020-02-08 Tom Tromey <tom@tromey.com>
14032
14033 * dwarf2/loc.c (dwarf2_find_location_expression)
14034 (dwarf_evaluate_loc_desc::get_tls_address)
14035 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
14036 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
14037 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
14038 (dwarf2_compile_property_to_c)
14039 (dwarf2_loc_desc_get_symbol_read_needs)
14040 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
14041 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
14042 (loclist_describe_location, loclist_tracepoint_var_ref)
14043 (loclist_generate_c_location): Update.
14044 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
14045 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
14046 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
14047 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
14048 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
14049 (dwarf2_per_cu_data::addr_size)
14050 (dwarf2_per_cu_data::ref_addr_size)
14051 (dwarf2_per_cu_data::text_offset)
14052 (dwarf2_per_cu_data::addr_type): Now methods.
14053 (per_cu_header_read_in): Make per_cu "const".
14054 (dwarf2_version): Remove.
14055 (dwarf2_per_cu_data::int_type): Now a method.
14056 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
14057 (set_die_type, read_array_type, read_subrange_index_type)
14058 (read_tag_string_type, read_subrange_type): Update.
14059 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
14060 offset_size, ref_addr_size, text_offset, addr_type, version,
14061 objfile, int_type, addr_sized_int_type>: Declare methods.
14062
96c738c0
TT
140632020-02-08 Tom Tromey <tom@tromey.com>
14064
14065 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
14066 Move earlier.
14067
8fdd972c
TT
140682020-02-08 Tom Tromey <tom@tromey.com>
14069
14070 * dwarf2/read.h (dwarf_line_debug): Declare.
14071 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
14072 * dwarf2/read.c: Move line_header code to new files.
14073 (dwarf_line_debug): No longer static.
14074 * dwarf2/line-header.c: New file.
14075 * dwarf2/line-header.h: New file.
14076
03075812
TT
140772020-02-08 Tom Tromey <tom@tromey.com>
14078
14079 * dwarf2/read.c (struct line_header) <file_full_name,
14080 file_file_name>: Return unique_xmalloc_ptr.
14081 (line_header::file_file_name): Update.
14082 (line_header::file_full_name): Update.
14083 (dw2_get_file_names_reader): Update.
14084 (macro_start_file): Update.
14085
bb822404
TT
140862020-02-08 Tom Tromey <tom@tromey.com>
14087
14088 * dwarf2/read.c (struct line_header) <file_full_name,
14089 file_file_name>: Declare methods.
14090 (dw2_get_file_names_reader): Update.
14091 (file_file_name): Now a method.
14092 (file_full_name): Likewise.
14093 (macro_start_file): Update.
14094
009b64fc
TT
140952020-02-08 Tom Tromey <tom@tromey.com>
14096
14097 * dwarf2/read.c (dwarf_always_disassemble)
14098 (show_dwarf_always_disassemble): Move to loc.c.
14099 (_initialize_dwarf2_read): Move "always-disassemble" registration
14100 to loc.c.
14101 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
14102 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
14103 static.
14104 (show_dwarf_always_disassemble): Move from read.c.
14105 (_initialize_dwarf2loc): Move always-disassemble from read.c.
14106
5895093f
TT
141072020-02-08 Tom Tromey <tom@tromey.com>
14108
14109 * dwarf2/read.c (~dwarf2_per_objfile): Update.
14110 (create_quick_file_names_table): Return htab_up.
14111 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
14112 Update.
14113 * dwarf2/read.h (struct dwarf2_per_objfile)
14114 <quick_file_names_table>: Now htab_up.
14115
b3b32279
TT
141162020-02-08 Tom Tromey <tom@tromey.com>
14117
14118 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
14119
1d33d811
TT
141202020-02-08 Tom Tromey <tom@tromey.com>
14121
14122 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
14123 Rewrite.
14124 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
14125 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
14126 (abbrev_table::abbrev_table): No longer inline.
14127 (ABBREV_HASH_SIZE): Remove.
14128 (abbrev_table::m_abbrevs): Now an htab_up.
14129
86de1d91
TT
141302020-02-08 Tom Tromey <tom@tromey.com>
14131
14132 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
14133 (cutu_reader): Update.
14134 (build_type_psymtabs_1): Update.
14135 * dwarf2/abbrev.c (abbrev_table::read): Rename.
14136 (abbrev_table::alloc_abbrev): Update.
14137 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
14138 (abbrev_table::read): New static method, renamed from
14139 abbrev_table_read_table.
14140 (abbrev_table::alloc_abbrev)
14141 (abbrev_table::add_abbrev): Now private.
14142 (abbrev_table::abbrev_table): Now private.
14143 (abbrev_table::m_abbrev_obstack): Now private. Rename.
14144
0335378b
TT
141452020-02-08 Tom Tromey <tom@tromey.com>
14146
14147 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
14148 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
14149 htab_up.
14150
48b490f2
TT
141512020-02-08 Tom Tromey <tom@tromey.com>
14152
14153 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
14154 htab_up.
14155 (lookup_dwo_unit_in_dwp): Update.
14156 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
14157 on obstack.
14158
bc68fb19
TT
141592020-02-08 Tom Tromey <tom@tromey.com>
14160
14161 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
14162 obstack.
14163
d15acc42
TT
141642020-02-08 Tom Tromey <tom@tromey.com>
14165
14166 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
14167 line_header_hash.
14168 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
14169 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
14170 Change type to htab_up.
14171
eaa5fa8b
TT
141722020-02-08 Tom Tromey <tom@tromey.com>
14173
14174 * dwarf2/read.c (allocate_type_unit_groups_table): Return
14175 htab_up. Don't allocate on obstack.
14176 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
14177 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
14178 Change type to htab_up.
14179
b0b6a987
TT
141802020-02-08 Tom Tromey <tom@tromey.com>
14181
14182 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
14183 Change type to htab_up.
14184 * dwarf2/read.c (create_signatured_type_table_from_index)
14185 (create_signatured_type_table_from_debug_names)
14186 (create_all_type_units, add_type_unit)
14187 (lookup_dwo_signatured_type, lookup_signatured_type)
14188 (process_skeletonless_type_unit): Update.
14189 (create_debug_type_hash_table, create_debug_types_hash_table):
14190 Change type of types_htab.
14191 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
14192 htab_up. Don't allocate on obstack.
14193 (create_cus_hash_table): Change type of cus_htab parameter.
14194 (struct dwo_file) <cus, tus>: Now htab_up.
14195 (lookup_dwo_signatured_type, lookup_dwo_cutu)
14196 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
14197 (queue_and_load_all_dwo_tus): Update.
14198 * dwarf2/index-write.c (write_gdbindex): Update.
14199 (write_debug_names): Update.
14200
39856def
TT
142012020-02-08 Tom Tromey <tom@tromey.com>
14202
14203 * dwarf2/read.h (struct dwarf2_queue_item): Move from
14204 dwarf2/read.c. Remove "next" member. Add constructor ntad
14205 destructor.
14206 (struct dwarf2_per_objfile) <queue>: New member.
14207 * dwarf2/read.c (struct dwarf2_queue_item): Move to
14208 dwarf2/read.h.
14209 (dwarf2_queue, dwarf2_queue_tail): Remove.
14210 (class dwarf2_queue_guard): Add parameter to constructor. Use
14211 DISABLE_COPY_AND_ASSIGN.
14212 <m_per_objfile>: New member.
14213 <~dwarf2_queue_guard>: Rewrite.
14214 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
14215 Update.
14216 (~dwarf2_queue_item): New.
14217
3e225074
TT
142182020-02-08 Tom Tromey <tom@tromey.com>
14219
14220 * dwarf2/read.c (struct die_info) <has_children>: New member.
14221 (dw2_get_file_names_reader): Remove has_children.
14222 (dw2_get_file_names): Update.
14223 (read_cutu_die_from_dwo): Remove has_children.
14224 (cutu_reader::init_tu_and_read_dwo_dies)
14225 (cutu_reader::cutu_reader): Update.
14226 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
14227 Remove has_children.
14228 (build_type_psymtabs_1, process_skeletonless_type_unit)
14229 (load_partial_comp_unit, load_full_comp_unit): Update.
14230 (create_dwo_cu_reader): Remove has_children.
14231 (create_cus_hash_table, read_die_and_children): Update.
14232 (read_full_die_1,read_full_die): Remove has_children.
14233 (read_signatured_type): Update.
14234 (class cutu_reader) <has_children>: Remove.
14235
82ca8957
TT
142362020-02-08 Tom Tromey <tom@tromey.com>
14237
14238 * dwarf2/expr.c: Rename from dwarf2expr.c.
14239 * dwarf2/expr.h: Rename from dwarf2expr.h.
14240 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
14241 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
14242 * dwarf2/frame.c: Rename from dwarf2-frame.c.
14243 * dwarf2/frame.h: Rename from dwarf2-frame.h.
14244 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
14245 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
14246 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
14247 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
14248 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
14249 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
14250 * dwarf2/loc.c: Rename from dwarf2loc.c.
14251 * dwarf2/loc.h: Rename from dwarf2loc.h.
14252 * dwarf2/read.c: Rename from dwarf2read.c.
14253 * dwarf2/read.h: Rename from dwarf2read.h.
14254 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
14255 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
14256 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
14257 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
14258 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
14259 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
14260 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
14261 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
14262 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
14263 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
14264 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
14265 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
14266 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
14267 Update.
14268 * Makefile.in (COMMON_SFILES): Update.
14269 (HFILES_NO_SRCDIR): Update.
14270
9e35d499
TT
142712020-02-08 Tom Tromey <tom@tromey.com>
14272
14273 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
14274 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
14275
1eba2311
TT
142762020-02-08 Tom Tromey <tom@tromey.com>
14277
14278 * dwarf2read.h (struct die_info): Don't declare.
14279
e41c2da2
TT
142802020-02-08 Tom Tromey <tom@tromey.com>
14281
14282 * dwarf2read.h (die_info_ptr): Remove typedef.
14283
4fc6c0d5
TT
142842020-02-08 Tom Tromey <tom@tromey.com>
14285
14286 * dwarf2read.c (read_call_site_scope)
14287 (handle_data_member_location, dwarf2_add_member_fn)
14288 (mark_common_block_symbol_computed, read_common_block)
14289 (attr_to_dynamic_prop, partial_die_info::read)
14290 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
14291 (dwarf2_symbol_mark_computed, set_die_type): Update.
14292 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
14293 method.
14294 (attr_form_is_block): Don't declare.
14295 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
14296
cd6c91b4
TT
142972020-02-08 Tom Tromey <tom@tromey.com>
14298
14299 * dwarf2read.c (dwarf2_find_base_address, )
14300 (read_call_site_scope, rust_containing_type)
14301 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
14302 (handle_data_member_location, dwarf2_add_member_fn)
14303 (get_alignment, read_structure_type, process_structure_scope)
14304 (mark_common_block_symbol_computed, read_common_block)
14305 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
14306 (partial_die_info::read, read_attribute_value, new_symbol)
14307 (lookup_die_type, dwarf2_get_ref_die_offset)
14308 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
14309 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
14310 (dwarf2_symbol_mark_computed): Update.
14311 * dwarf2/attribute.h (struct attribute) <value_as_address,
14312 form_is_section_offset, form_is_constant, form_is_ref>: Declare
14313 methods.
14314 (value_as_address, attr_form_is_section_offset)
14315 (attr_form_is_constant, attr_form_is_ref): Don't declare.
14316 * dwarf2/attribute.c (attribute::value_as_address)
14317 (attribute::form_is_section_offset, attribute::form_is_constant)
14318 (attribute::form_is_ref): Now methods.
14319
162dce55
TT
143202020-02-08 Tom Tromey <tom@tromey.com>
14321
14322 * dwarf2read.c (struct attribute, DW_STRING)
14323 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
14324 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
14325 (attr_form_is_block, attr_form_is_section_offset)
14326 (attr_form_is_constant, attr_form_is_ref): Move.
14327 * dwarf2/attribute.h: New file.
14328 * dwarf2/attribute.c: New file, from dwarf2read.c.
14329 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
14330
3054dd54
TT
143312020-02-08 Tom Tromey <tom@tromey.com>
14332
14333 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
14334 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
14335 Move.
14336 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
14337 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
14338 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
14339 abbrev.c.
14340 * dwarf2/abbrev.h: New file.
14341 * dwarf2/abbrev.c: New file, from dwarf2read.c.
14342 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
14343
96b79293
TT
143442020-02-08 Tom Tromey <tom@tromey.com>
14345
14346 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
14347 (dwarf2_section_size, dwarf2_get_section_info)
14348 (create_signatured_type_table_from_debug_names)
14349 (create_addrmap_from_aranges, read_debug_names_from_section)
14350 (get_gdb_index_contents_from_section, read_comp_unit_head)
14351 (error_check_comp_unit_head, read_abbrev_offset)
14352 (create_debug_type_hash_table, init_cu_die_reader)
14353 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
14354 (read_comp_units_from_section, create_cus_hash_table)
14355 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
14356 (create_dwp_v2_section, dwarf2_rnglists_process)
14357 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
14358 (abbrev_table_read_table, read_indirect_string_at_offset_from)
14359 (read_indirect_string_from_dwz, read_addr_index_1)
14360 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
14361 (dwarf_decode_macro_bytes, dwarf_decode_macros)
14362 (fill_in_loclist_baton): Update.
14363 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
14364 get_containing_section, get_bfd_owner, get_bfd_section,
14365 get_file_name, get_id, get_flags, empty, read>: Declare methods.
14366 (dwarf2_read_section, get_section_name, get_section_file_name)
14367 (get_containing_section, get_section_bfd_owner)
14368 (get_section_bfd_section, get_section_name, get_section_file_name)
14369 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
14370 declare.
14371 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
14372 (dwarf2_section_info::get_bfd_owner)
14373 (dwarf2_section_info::get_bfd_section)
14374 (dwarf2_section_info::get_name)
14375 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
14376 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
14377 (dwarf2_section_info::read): Now methods.
14378 * dwarf-index-write.c (class debug_names): Update.
14379
2c86cff9
TT
143802020-02-08 Tom Tromey <tom@tromey.com>
14381
14382 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
14383 Move to dwarf2/section.h.
14384 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
14385 (get_section_bfd_section, get_section_name)
14386 (get_section_file_name, get_section_id, get_section_flags)
14387 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
14388 dwarf2/section.c.
14389 * dwarf2/section.h: New file.
14390 * dwarf2/section.c: New file, from dwarf2read.c.
14391 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
14392
f4382c45
TT
143932020-02-08 Tom Tromey <tom@tromey.com>
14394
14395 * dwarf2read.h (read_unsigned_leb128): Don't declare.
14396 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
14397 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
14398 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
14399 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
14400 * dwarf2/leb.h: New file, from dwarf2read.c.
14401 * dwarf2/leb.c: New file, from dwarf2read.c.
14402 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
14403 Remove.
14404 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
14405 (COMMON_SFILES): Add dwarf2/leb.c.
14406
01840b7a
JB
144072020-02-08 Joel Brobecker <brobecker@adacore.com>
14408
14409 GDB 9.1 released.
14410
dfcb27e4
IB
144112020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
14412
14413 PR gdb/25190:
aac66a4c
SM
14414 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
14415 * gdb/remote.c (remote_console_output): Update.
14416 * gdb/ui-file.c (fputs_unfiltered): Rename to...
14417 (ui_file_puts): ...this.
14418 * gdb/ui-file.h (ui_file_puts): Add declaration.
14419 * gdb/utils.c (emit_style_escape): Update.
14420 (flush_wrap_buffer): Update.
14421 (fputs_maybe_filtered): Update.
14422 (fputs_unfiltered): Add function.
dfcb27e4 14423
faa17681
IB
144242020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
14425
aac66a4c
SM
14426 * gdb/event-loop.c (gdb_wait_for_event): Update.
14427 * gdb/printcmd.c (printf_command): Update.
14428 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
14429 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
14430 (gdb_os_flush_stderr): Update.
14431 * gdb/remote.c (remote_console_output): Update.
14432 * gdb/ui-file.c (gdb_flush): Rename to...
14433 (ui_file_flush): ...this.
14434 (stderr_file::write): Update.
14435 (stderr_file::puts): Update.
14436 * gdb/ui-file.h (gdb_flush): Rename to...
14437 (ui_file_flush): ...this.
14438 * gdb/utils.c (gdb_flush): Add function.
14439 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 14440
5abbbe1d
TT
144412020-02-07 Tom Tromey <tromey@adacore.com>
14442
14443 PR breakpoints/24915:
14444 * source.c (find_and_open_source): Do not check basenames_may_differ.
14445
919adfe8
TT
144462020-02-07 Tom Tromey <tom@tromey.com>
14447
14448 * README: Update gdbserver documentation.
14449 * gdbserver: Move to top level.
14450 * configure.tgt (build_gdbserver): Remove.
14451 * configure.ac: Remove --enable-gdbserver.
14452 * configure: Rebuild.
14453 * Makefile.in (distclean): Don't mention gdbserver.
14454
1d5d29e7
SV
144552020-02-06 Shahab Vahedi <shahab@synopsys.com>
14456
14457 * source-cache.c (source_cache::ensure): Surround
14458 get_plain_source_lines with a try/catch.
14459 (source_cache::get_line_charpos): Get rid of try/catch
14460 and only check for the return value of "ensure".
14461 * tui/tui-source.c (tui_source_window::set_contents):
14462 Simplify "nlines" calculation.
14463
6eb1129c
SV
144642020-02-06 Shahab Vahedi <shahab@synopsys.com>
14465
14466 * MAINTAINERS (Write After Approval): Add myself.
14467
c6a42d11
CB
144682020-02-05 Christian Biesinger <cbiesinger@google.com>
14469
14470 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
14471 function call.
14472
c8ecdda6
CB
144732020-02-05 Christian Biesinger <cbiesinger@google.com>
14474
14475 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
14476
f6480e70
MR
144772020-02-05 Maciej W. Rozycki <macro@wdc.com>
14478
14479 * nat/riscv-linux-tdesc.h: New file.
14480 * nat/riscv-linux-tdesc.c: New file, taking code from...
14481 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
14482 ... here.
14483 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
14484 NATDEPFILES.
14485
dcc9fbc6
AB
144862020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
14487
14488 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
14489 we don't set the fake simulator ptid to the null_ptid.
14490
719546c4
SM
144912020-02-03 Simon Marchi <simon.marchi@efficios.com>
14492
14493 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
14494 * gdbthread.h (class thread_info) <resumed>: Likewise.
14495 * infrun.c (resume_1): Likewise.
14496 (proceed): Likewise.
14497 (infrun_thread_stop_requested): Likewise.
14498 (stop_all_threads): Likewise.
14499 (handle_inferior_event): Likewise.
14500 (restart_threads): Likewise.
14501 (finish_step_over): Likewise.
14502 (keep_going_stepped_thread): Likewise.
14503 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
14504 (linux_handle_extended_wait): Likewise.
14505 * record-btrace.c (get_thread_current_frame_id): Likewise.
14506 * record-full.c (record_full_wait_1): Likewise.
14507 * remote.c (remote_target::process_initial_stop_replies): Likewise.
14508 * target.c (target_resume): Likewise.
14509 * thread.c (set_running_thread): Likewise.
14510
e409c542
AKS
145112020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14512
14513 * f-valprint.c (f77_print_array_1): Changed datatype of index
14514 variable to LONGEST from int to enable it to contain bound
14515 values correctly.
14516
ee98c0da
MR
145172020-02-03 Maciej W. Rozycki <macro@wdc.com>
14518
14519 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
14520 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
14521 offsets according to FLEN determined.
14522 (riscv_linux_nat_target::read_description): Determine FLEN
14523 dynamically.
14524 (riscv_linux_nat_target::fetch_registers): Size regset buffer
14525 according to FLEN determined.
14526 (riscv_linux_nat_target::store_registers): Likewise.
14527
aa66aac4
SV
145282020-02-01 Shahab Vahedi <shahab@synopsys.com>
14529
14530 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
14531 when reg->group is empty and reggroup is not.
14532
fd9faca8
TT
145332020-01-31 Tom Tromey <tromey@adacore.com>
14534
14535 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
14536 Call beneath target's mourn_inferior after unpushing.
14537
42330a68
AB
145382020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
14539
14540 PR tui/9765
14541 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
14542 have enough lines to fill the screen, still return the lowest
14543 address we found.
14544
7a27a45b
AB
145452020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
14546
14547 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
14548 '-', '<', and '>' commands.
14549
c47f70e2
PA
145502020-01-29 Pedro Alves <palves@redhat.com>
14551 Sergio Durigan Junior <sergiodj@redhat.com>
14552
14553 * infcmd.c (construct_inferior_arguments): Assert that
14554 'argc' is greater than 0.
14555
5133a315
LM
145562020-01-29 Luis Machado <luis.machado@linaro.org>
14557
14558 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
14559 (BRK_INSN_MASK): Define to 0xd4200000.
14560 (aarch64_program_breakpoint_here_p): New function.
14561 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
14562 * arch-utils.c (default_program_breakpoint_here_p): Moved from
14563 breakpoint.c.
14564 * arch-utils.h (default_program_breakpoint_here_p): Moved from
14565 breakpoint.h
14566 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
14567 call gdbarch_program_breakpoint_here_p.
14568 (program_breakpoint_here): Moved to arch-utils.c, renamed to
14569 default_program_breakpoint_here_p, changed return type to bool and
14570 simplified.
14571 * breakpoint.h (program_breakpoint_here): Moved prototype to
14572 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
14573 return type to bool.
14574 * gdbarch.c: Regenerate.
14575 * gdbarch.h: Regenerate.
14576 * gdbarch.sh (program_breakpoint_here_p): New method.
14577 * infrun.c (handle_signal_stop): Call
14578 gdbarch_program_breakpoint_here_p.
14579
168f8c6b
TT
145802020-01-26 Tom Tromey <tom@tromey.com>
14581
14582 * ctfread.c (struct ctf_fp_info): Reindent.
14583 (_initialize_ctfread): Remove.
14584
128a391f
TT
145852020-01-26 Tom Tromey <tom@tromey.com>
14586
14587 * psymtab.c (partial_map_expand_apply)
14588 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
14589 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
14590 (psym_print_stats, psym_expand_symtabs_for_function)
14591 (psym_map_symbol_filenames, psym_map_matching_symbols)
14592 (psym_expand_symtabs_matching)
14593 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
14594 (maintenance_check_psymtabs): Use new methods.
14595 * psympriv.h (struct partial_symtab) <readin_p,
14596 get_compunit_symtab>: New methods.
14597 <readin, compunit_symtab>: Remove members.
14598 (struct standard_psymtab): New.
14599 (struct legacy_psymtab): Derive from standard_psymtab.
14600 * dwarf2read.h (struct dwarf2_psymtab): Derive from
14601 standard_psymtab.
14602 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
14603
0494dbec
TT
146042020-01-26 Tom Tromey <tom@tromey.com>
14605
14606 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
14607 read_dependencies. Add assert.
14608 * psymtab.c (partial_symtab::read_dependencies): New method.
14609 * psympriv.h (struct partial_symtab) <read_dependencies>: New
14610 method.
14611 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
14612 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
14613 read_dependencies.
14614 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
14615 Add assert.
14616
8566b89b
TT
146172020-01-26 Tom Tromey <tom@tromey.com>
14618
14619 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
14620 Call expand_psymtab.
14621 (xcoff_read_symtab): Call expand_psymtab.
14622 (xcoff_start_psymtab, xcoff_end_psymtab): Set
14623 legacy_expand_psymtab.
14624 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
14625 method.
14626 (struct legacy_psymtab) <expand_psymtab>: Implement.
14627 <legacy_expand_psymtab>: New member.
14628 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
14629 (parse_partial_symbols): Set legacy_expand_psymtab.
14630 (psymtab_to_symtab_1): Change argument order. Call
14631 expand_psymtab.
14632 (new_psymtab): Set legacy_expand_psymtab.
14633 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
14634 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
14635 expand_psymtab.
14636 (dwarf2_psymtab::expand_psymtab): Rename from
14637 psymtab_to_symtab_1. Call expand_psymtab.
14638 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
14639 (dbx_end_psymtab): Likewise.
14640 (dbx_psymtab_to_symtab_1): Change argument order. Call
14641 expand_psymtab.
14642 (dbx_read_symtab): Call expand_psymtab.
14643 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
14644 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
14645 (ctf_psymtab::read_symtab): Call expand_psymtab.
14646
077cbab2
TT
146472020-01-26 Tom Tromey <tom@tromey.com>
14648
14649 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
14650 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
14651 messages.
14652 * mdebugread.c (mdebug_read_symtab): Remove prints.
14653 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
14654 assert.
14655 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
14656
891813be
TT
146572020-01-26 Tom Tromey <tom@tromey.com>
14658
14659 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
14660 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
14661 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
14662 legacy_symtab.
14663 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
14664 * psymtab.c (psymtab_to_symtab): Call method.
14665 (dump_psymtab): Update.
14666 * psympriv.h (struct partial_symtab): Add virtual destructor.
14667 <read_symtab>: New method.
14668 (struct legacy_symtab): New.
14669 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
14670 (struct pst_map) <pst>: Now a legacy_psymtab.
14671 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
14672 (new_psymtab): Use legacy_psymtab.
14673 * dwarf2read.h (struct dwarf2_psymtab): New.
14674 (struct dwarf2_per_cu_data) <psymtab>: Use it.
14675 * dwarf2read.c (dwarf2_create_include_psymtab)
14676 (dwarf2_build_include_psymtabs, create_type_unit_group)
14677 (create_partial_symtab, process_psymtab_comp_unit_reader)
14678 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
14679 (set_partial_user): Use dwarf2_psymtab.
14680 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
14681 (psymtab_to_symtab_1, process_full_comp_unit)
14682 (process_full_type_unit, dwarf2_ranges_read)
14683 (dwarf2_get_pc_bounds, psymtab_include_file_name)
14684 (dwarf_decode_lines): Use dwarf2_psymtab.
14685 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
14686 (add_address_entry_worker, write_one_signatured_type)
14687 (recursively_count_psymbols, recursively_write_psymbols)
14688 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
14689 (write_debug_names): Likewise.
14690 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
14691 <pst>: Now a legacy_psymtab.
14692 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
14693 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
14694 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
14695 * ctfread.c (struct ctf_psymtab): New.
14696 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
14697 ctf_psymtab.
14698 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
14699 (create_partial_symtab): Return a ctf_psymtab.
14700 (scan_partial_symbols): Update.
14701
c3693a1d
TT
147022020-01-26 Tom Tromey <tom@tromey.com>
14703
14704 * xcoffread.c (xcoff_start_psymtab): Use new.
14705 * psymtab.c (partial_symtab::partial_symtab): New constructor,
14706 renamed from start_psymtab_common.
14707 * psympriv.h (struct partial_symtab): Add new constructor.
14708 (start_psymtab_common): Don't declare.
14709 * mdebugread.c (parse_partial_symbols): Use new.
14710 * dwarf2read.c (create_partial_symtab): Use new.
14711 * dbxread.c (start_psymtab): Use new.
14712 * ctfread.c (create_partial_symtab): Use new.
14713
32caafd0
TT
147142020-01-26 Tom Tromey <tom@tromey.com>
14715
14716 * xcoffread.c (xcoff_end_psymtab): Use new.
14717 * psymtab.c (start_psymtab_common): Use new.
14718 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
14719 Update.
14720 * psympriv.h (struct partial_symtab): Add parameters to
14721 constructor. Don't inline.
14722 (allocate_psymtab): Don't declare.
14723 * mdebugread.c (new_psymtab): Use new.
14724 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
14725 * dbxread.c (dbx_end_psymtab): Use new.
14726
abaa2f23
TT
147272020-01-26 Tom Tromey <tom@tromey.com>
14728
14729 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
14730 allocate_psymtab. Update documentation.
14731 * psymtab.c (psymtab_storage::install_psymtab): Rename from
14732 allocate_psymtab. Do not use new.
14733 (allocate_psymtab): Use new. Update.
14734
6d94535f
TT
147352020-01-26 Tom Tromey <tom@tromey.com>
14736
14737 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
14738 * psymtab.c (psym_print_stats): Update.
14739 * psympriv.h (struct partial_symtab) <readin,
14740 psymtabs_addrmap_supported, anonymous>: Now bool.
14741 * mdebugread.c (psymtab_to_symtab_1): Update.
14742 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
14743 (build_type_psymtabs_reader, psymtab_to_symtab_1)
14744 (process_full_comp_unit, process_full_type_unit): Update.
14745 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
14746 * ctfread.c (psymtab_to_symtab): Update.
14747
6f17252b
TT
147482020-01-26 Tom Tromey <tom@tromey.com>
14749
14750 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
14751 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
14752 * psymtab.c (psymtab_storage): Delete psymtabs.
14753 (psymtab_storage::allocate_psymtab): Use new.
14754 (psymtab_storage::discard_psymtab): Use delete.
14755 * psympriv.h (struct partial_symtab): Add constructor and
14756 initializers.
14757
f6f1cebc
TT
147582020-01-26 Tom Tromey <tom@tromey.com>
14759
14760 * machoread.c: Do not include psympriv.h.
14761
e47e48f6
PW
147622020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14763
14764 * NEWS: Mention the new option and the set/show commands.
14765
a2fedca9
PW
147662020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14767
14768 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
14769 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
14770 (validate_exec_file): New variables, enums, functions.
14771 (exec_file_locate_attach, print_section_info): Style the filenames.
14772 (_initialize_exec): Install show_exec_file_mismatch_command and
14773 set_exec_file_mismatch_command.
14774 * gdbcore.h (validate_exec_file): Declare.
14775 * infcmd.c (attach_command): Call validate_exec_file.
14776 * remote.c ( remote_target::remote_add_inferior): Likewise.
14777
7ffa82e1
AB
147782020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14779
14780 * frame.c (find_frame_sal): Move call to get_next_frame into more
14781 inner scope.
14782 * inline-frame.c (inilne_state) <inline_state>: Update argument
14783 types.
14784 (inilne_state) <skipped_symbol>: Rename to...
14785 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
14786 (skip_inline_frames): Build vector of skipped symbols and use this
14787 to reate the inline_state.
14788 (inline_skipped_symbol): Add a comment and some assertions, fetch
14789 skipped symbol from the list.
14790
3d92a3e3
AB
147912020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14792
14793 * buildsym.c (lte_is_less_than): Delete.
14794 (buildsym_compunit::end_symtab_with_blockvector): Create local
14795 lambda function to sort line table entries, and use
14796 std::stable_sort instead of std::sort.
14797 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
14798 markers when looking for a previous line.
14799
94a72be7
AB
148002020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14801
14802 * dwarf2read.c (lnp_state_machine::record_line): Include
14803 end_sequence parameter in debug print out. Record the line if we
14804 are at an end_sequence marker even if it's not the start of a
14805 statement.
14806 * symmisc.c (maintenance_print_one_line_table): Print end of
14807 sequence markers with 'END' not '0'.
14808
53af73bf
PA
148092020-01-24 Pedro Alves <palves@redhat.com>
14810
14811 PR gdb/25410
14812 * thread.c (scoped_restore_current_thread::restore): Use
14813 switch_to_inferior_no_thread.
14814 * exec.c: Include "progspace-and-thread.h".
14815 (add_target_sections, remove_target_sections):
14816 scoped_restore_current_pspace_and_thread instead of
14817 scoped_restore_current_thread.
14818 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
14819 and aspace to the inferior before calling clone_program_space.
14820 Remove stale comment.
14821
3050c6f4
CB
148222020-01-24 Christian Biesinger <cbiesinger@google.com>
14823
14824 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
14825 (arm_netbsd_nat_target::fetch_registers): ...this.
14826 (arm_nbsd_nat_target::store_registers): Rename to...
14827 (arm_netbsd_nat_target::store_registers): ...this.
14828
73685c7e
CB
148292020-01-24 Christian Biesinger <cbiesinger@google.com>
14830
14831 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
14832 register_t.
14833
89203d40
CB
148342020-01-24 Christian Biesinger <cbiesinger@google.com>
14835
14836 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
14837 Update comment.
14838 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
14839 Likewise.
14840 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
14841 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
14842 the correct replacement (iterate_over_regset_sections).
14843 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
14844 Update comment.
14845
1ba1ac88
AB
148462020-01-24 Graham Markall <graham.markall@embecosm.com>
14847
14848 PR gdb/23718
14849 * gdb/python/python.c (execute_gdb_command): Call
14850 async_enable_stdin in catch block.
14851
f3364a6d
AB
148522020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14853
14854 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
14855 SWITCH_THRU_ALL_UIS.
14856
733d0a67
AB
148572020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14858
14859 PR tui/9765
14860 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
14861 comment, add extra parameter, and update to store previous symbol
14862 when appropriate.
14863 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
14864 add extra parameter.
14865 * tui/tui-disasm.c (tui_disassemble): Update header comment,
14866 remove unneeded parameter, add try/catch around gdb_print_insn,
14867 rewrite to add items to asm_lines vector.
14868 (tui_find_backward_disassembly_start_address): New function.
14869 (tui_find_disassembly_address): Updated throughout.
14870 (tui_disasm_window::set_contents): Update for changes to
14871 tui_disassemble.
14872 (tui_disasm_window::do_scroll_vertical): No need to adjust the
14873 number of lines to scroll.
14874
b3b3bada
SM
148752020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
14876
14877 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
14878 (SECT_OFF_DATA): Likewise.
14879 (SECT_OFF_RODATA): Likewise.
14880 (SECT_OFF_TEXT): Likewise.
14881 (SECT_OFF_BSS): Likewise.
14882 (struct objfile) <text_section_offset, data_section_offset>: New
14883 methods.
14884 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
14885 objfile::text_section_offset.
14886 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
14887 * coffread.c (coff_symtab_read): Likewise.
14888 (enter_linenos): Likewise.
14889 (process_coff_symbol): Likewise.
14890 * ctfread.c (get_objfile_text_range): Likewise.
14891 * dtrace-probe.c (dtrace_probe::get_relocated_address):
14892 Use objfile::data_section_offset.
14893 * dwarf2-frame.c (execute_cfa_program): Use
14894 objfile::text_section_offset.
14895 (dwarf2_frame_find_fde): Likewise.
14896 * dwarf2read.c (create_addrmap_from_index): Likewise.
14897 (create_addrmap_from_aranges): Likewise.
14898 (dw2_find_pc_sect_compunit_symtab): Likewise.
14899 (process_psymtab_comp_unit_reader): Likewise.
14900 (add_partial_symbol): Likewise.
14901 (add_partial_subprogram): Likewise.
14902 (process_full_comp_unit): Likewise.
14903 (read_file_scope): Likewise.
14904 (read_func_scope): Likewise.
14905 (read_lexical_block_scope): Likewise.
14906 (read_call_site_scope): Likewise.
14907 (dwarf2_rnglists_process): Likewise.
14908 (dwarf2_ranges_process): Likewise.
14909 (dwarf2_ranges_read): Likewise.
14910 (dwarf_decode_lines_1): Likewise.
14911 (new_symbol): Likewise.
14912 (dwarf2_fetch_die_loc_sect_off): Likewise.
14913 (dwarf2_per_cu_text_offset): Likewise.
14914 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
14915 * hppa-tdep.c (read_unwind_info): Likewise.
14916 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
14917 * psympriv.h (struct partial_symtab): Likewise.
14918 * psymtab.c (find_pc_sect_psymtab): Likewise.
14919 * solib-svr4.c (enable_break): Likewise.
14920 * stap-probe.c (relocate_address): Use
14921 objfile::data_section_offset.
14922 * xcoffread.c (enter_line_range): Use
14923 objfile::text_section_offset.
14924 (read_xcoff_symtab): Likewise.
14925
ab53f382
SM
149262020-01-23 Simon Marchi <simon.marchi@efficios.com>
14927
14928 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
14929 declaration to narrower scopes.
14930
e7eee665
SM
149312020-01-23 Simon Marchi <simon.marchi@efficios.com>
14932
14933 * darwin-nat.h (struct darwin_exception_msg, enum
14934 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
14935 Move up.
14936 (class darwin_nat_target) <wait_1, check_new_threads,
14937 decode_exception_message, decode_message, stop_inferior,
14938 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
14939 * darwin-nat.c (darwin_check_new_threads): Rename to...
14940 (darwin_nat_target::check_new_threads): ... this.
14941 (darwin_suspend_inferior_it): Remove.
14942 (darwin_decode_exception_message): Rename to...
14943 (darwin_nat_target::decode_exception_message): ... this.
14944 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
14945 (darwin_decode_message): Rename to...
14946 (darwin_nat_target::decode_message): ... this.
14947 (cancel_breakpoint): Rename to...
14948 (darwin_nat_target::cancel_breakpoint): ... this.
14949 (darwin_wait): Rename to...
14950 (darwin_nat_target::wait_1): ... this. Use range-based for loop
14951 instead of iterate_over_inferiors.
14952 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
14953 (darwin_stop_inferior): Rename to...
14954 (darwin_nat_target::stop_inferior): ... this.
14955 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
14956 (darwin_init_thread_list): Rename to...
14957 (darwin_nat_target::init_thread_list): ... this.
14958 (darwin_ptrace_him): Rename to...
14959 (darwin_nat_target::ptrace_him): ... this.
14960 (darwin_nat_target::create_inferior): Pass lambda function to
14961 fork_inferior.
14962 (darwin_nat_target::detach): Call stop_inferior instead of
14963 darwin_stop_inferior.
14964 * fork-inferior.h (fork_inferior): Change init_trace_fun
14965 parameter to gdb::function_view.
14966 * fork-inferior.c (fork_inferior): Likewise.
14967
c162ed3e
HD
149682020-01-23 Hannes Domani <ssbssa@yahoo.de>
14969
14970 * i386-cygwin-tdep.c (core_process_module_section): Update.
14971 * windows-nat.c (struct lm_info_windows): Add text_offset.
14972 (windows_xfer_shared_libraries): Update.
14973 * windows-tdep.c (windows_xfer_shared_library):
14974 Add text_offset_cached argument.
14975 * windows-tdep.h (windows_xfer_shared_library): Update.
14976
a1237872
SM
149772020-01-21 Simon Marchi <simon.marchi@efficios.com>
14978
14979 * gdbarch.sh: Add declaration for _initialize_gdbarch.
14980
b3ee6dd9
SM
149812020-01-21 Simon Marchi <simon.marchi@efficios.com>
14982
14983 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
14984 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
14985 replace with range-based for.
14986 (gdbsim_interrupt_inferior): Remove.
14987 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
14988 with a range-based for. Inline code from
14989 gdbsim_interrupt_inferior.
14990
f9fac3c8
SM
149912020-01-21 Simon Marchi <simon.marchi@efficios.com>
14992
14993 * infrun.c (proceed): Fix indentation.
14994
f6474de9
TT
149952020-01-21 Tom Tromey <tromey@adacore.com>
14996
14997 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
14998 * python/python.c (python_extension_ops): Update.
14999 (gdbpy_colorize): New function.
15000 * python/lib/gdb/__init__.py (colorize): New function.
15001 * extension.h (ext_lang_colorize): Declare.
15002 * extension.c (ext_lang_colorize): New function.
15003 * extension-priv.h (struct extension_language_ops) <colorize>: New
15004 member.
15005 * cli/cli-style.c (_initialize_cli_style): Update help text.
15006
f0c702d4
LM
150072020-01-21 Luis Machado <luis.machado@linaro.org>
15008
15009 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
15010 <cond>: Change type to bool.
15011 (aarch64_displaced_step_b_cond): Update cond to use bool type.
15012 (aarch64_displaced_step_cb): Likewise.
15013 (aarch64_displaced_step_tb): Likewise.
15014
1ab139e5
LM
150152020-01-21 Luis Machado <luis.machado@linaro.org>
15016
15017 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
15018 output.
15019
0c271889
LM
150202020-01-21 Luis Machado <luis.machado@linaro.org>
15021
15022 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
15023 <pc_adjust>: Adjust the documentation.
15024 (aarch64_displaced_step_fixup): Check if PC really moved before
15025 adjusting it.
15026
4d89c1c7
TT
150272020-01-19 Tom Tromey <tom@tromey.com>
15028
15029 * disasm.c (~gdb_disassembler): New destructor.
15030 (gdb_buffered_insn_length): Call disassemble_free_target.
15031 * disasm.h (class gdb_disassembler): Declare destructor. Use
15032 DISABLE_COPY_AND_ASSIGN.
15033
c0ab21c2
TT
150342020-01-19 Tom Tromey <tom@tromey.com>
15035
15036 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
15037 (die_reader_func_ftype): Remove.
15038 (cutu_reader): New class.
15039 (dw2_get_file_names_reader): Remove "data" parameter.
15040 (dw2_get_file_names): Use cutu_reader.
15041 (create_debug_type_hash_table): Update.
15042 (read_cutu_die_from_dwo): Update comment.
15043 (lookup_dwo_unit): Add dwo_name parameter.
15044 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
15045 die_reader_func_ftype and data parameters.
15046 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
15047 Remove die_reader_func_ftype and data parameters.
15048 (~cutu_reader): New; from init_cutu_and_read_dies.
15049 (cutu_reader::cutu_reader): Rename from
15050 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
15051 and data parameters.
15052 (init_cutu_and_read_dies_simple): Remove.
15053 (struct process_psymtab_comp_unit_data): Remove.
15054 (process_psymtab_comp_unit_reader): Remove data parameter; add
15055 want_partial_unit and pretend_language parameters.
15056 (process_psymtab_comp_unit): Use cutu_reader.
15057 (build_type_psymtabs_reader): Remove data parameter.
15058 (build_type_psymtabs_1): Use cutu_reader.
15059 (process_skeletonless_type_unit): Likewise.
15060 (load_partial_comp_unit_reader): Remove.
15061 (load_partial_comp_unit): Use cutu_reader.
15062 (load_full_comp_unit_reader): Remove.
15063 (load_full_comp_unit): Use cutu_reader.
15064 (struct create_dwo_cu_data): Remove.
15065 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
15066 dwo_unit parameters.
15067 (create_cus_hash_table): Use cutu_reader.
15068 (struct dwarf2_read_addr_index_data): Remove.
15069 (dwarf2_read_addr_index_reader): Remove.
15070 (dwarf2_read_addr_index): Use cutu_reader.
15071 (read_signatured_type_reader): Remove.
15072 (read_signatured_type): Use cutu_reader.
15073
45bbae5c
TT
150742020-01-19 Tom Tromey <tom@tromey.com>
15075
15076 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
15077 * tui/tui-wingeneral.h (class tui_suppress_output): New.
15078 (tui_wrefresh): Declare.
15079 * tui/tui-wingeneral.c (suppress_output): New global.
15080 (tui_suppress_output, ~tui_suppress_output): New constructor and
15081 destructor.
15082 (tui_wrefresh): New function.
15083 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
15084 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
15085 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
15086 method.
15087 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
15088 tui_wrefresh.
15089 (tui_data_window::no_refresh): New method.
15090 (tui_data_item_window::refresh_window): Call tui_wrefresh.
15091 (tui_reg_command): Use tui_suppress_output
15092 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
15093 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
15094 method.
15095 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
15096
4f13c1c0
TT
150972020-01-19 Tom Tromey <tom@tromey.com>
15098
15099 * tui/tui-winsource.c (tui_update_source_windows_with_line):
15100 Handle case where symtab is null.
15101
fa47e446
SM
151022020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
15103
15104 * linux-fork.c (one_fork_p): Simplify.
15105
26f42329
SM
151062020-01-17 Simon Marchi <simon.marchi@efficios.com>
15107
15108 * top.c (struct qt_args): Remove.
15109 (kill_or_detach): Change return type to void, replace `void *`
15110 parameter with a proper one.
15111 (print_inferior_quit_action): Likewise.
15112 (quit_confirm): Use range-based for loop to iterate over inferiors.
15113 (quit_force): Likewise.
15114
a9ac81b1
SM
151152020-01-17 Simon Marchi <simon.marchi@efficios.com>
15116
15117 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
15118 `void *` parameter with proper parameters.
15119 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
15120 (print_one_inferior): Change return type to void, replace `void *`
15121 parameter with proper parameters.
15122 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
15123 inferiors.
15124 (get_other_inferior): Remove.
15125 (mi_cmd_remove_inferior): Use range-based loop to iterate over
15126 inferiors.
15127
788eca49
SM
151282020-01-17 Simon Marchi <simon.marchi@efficios.com>
15129
15130 * mi/mi-interp.c (report_initial_inferior): Remove.
15131 (mi_interp::init): Use range-based for to iterate over inferiors.
15132
d9bc85b6
SM
151332020-01-17 Simon Marchi <simon.marchi@efficios.com>
15134
15135 * python/py-inferior.c (build_inferior_list): Remove.
15136 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
15137
40c94099
CB
151382020-01-16 Christian Biesinger <cbiesinger@google.com>
15139
15140 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
15141 (btrace_stitch_trace): Likewise.
15142 * charset.c (intermediate_encoding): Likewise (vaild).
15143 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
15144 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
15145 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
15146
e0cdfe3c
HD
151472020-01-16 Hannes Domani <ssbssa@yahoo.de>
15148
15149 * windows-tdep.c (windows_get_tlb_type):
15150 Add rtl_user_process_parameters type.
15151
790f1718 151522020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 15153 Norbert Lange <nolange79@gmail.com>
790f1718
PA
15154
15155 PR build/24805
15156 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
15157 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
15158 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
15159 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
15160 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
15161 (ps_plog): Redeclare exported functions with default visibility.
15162
3112ed97
NA
151632020-01-16 Nitika Achra <Nitika.Achra@amd.com>
15164
15165 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
15166 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
15167
8dc3273e
SM
151682020-01-15 Simon Marchi <simon.marchi@efficios.com>
15169
15170 * infcmd.c (post_create_inferior): Use get_thread_regcache
15171 instead of get_current_regcache.
15172
ff47f4f0
TT
151732020-01-14 Tom Tromey <tom@tromey.com>
15174
15175 PR symtab/12535:
15176 * python/python.c (gdbpy_decode_line): Treat empty string the same
15177 as no argument.
15178
975f45b7
TT
151792020-01-14 Tom Tromey <tom@tromey.com>
15180
15181 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
15182
25e57356
TT
151832020-01-14 Tom Tromey <tom@tromey.com>
15184
15185 * nat/linux-btrace.c: Don't include <config.h>.
15186 * nat/linux-ptrace.c: Don't include <config.h>.
15187 * nat/x86-linux-dregs.c: Don't include <config.h>.
15188
05ea2a05
TT
151892020-01-14 Tom Tromey <tom@tromey.com>
15190
15191 * configure: Rebuild.
15192 * configure.ac: Move many checks to ../gdbsupport/common.m4.
15193
01027315
TT
151942020-01-14 Tom Tromey <tom@tromey.com>
15195
15196 * nat/x86-linux-dregs.c: Include configh.h.
15197 * nat/linux-ptrace.c: Include configh.h.
15198 * nat/linux-btrace.c: Include configh.h.
15199 * defs.h: Include config.h, bfd.h.
15200 * configure.ac: Don't source common.host.
15201 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
15202 * configure: Rebuild.
15203 * acinclude.m4: Update path.
15204 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
15205 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
15206 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
15207 (CLIBS): Add LIBSUPPORT.
15208 (CDEPS): Likewise.
15209 (COMMON_SFILES): Remove gdbsupport files.
15210 (HFILES_NO_SRCDIR): Likewise.
15211 (stamp-version): Update path to create-version.sh.
15212 (ALLDEPFILES): Remove gdbsupport files.
15213
b2ceabe8
TT
152142020-01-14 Tom Tromey <tom@tromey.com>
15215
15216 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
15217 USE_WIN32API when needed.
15218 * configure.ac (USE_WIN32API): Don't define.
15219 (WIN32LIBS): Use WIN32APILIBS.
15220 * configure: Rebuild.
15221
25c51f71
TT
152222020-01-14 Tom Tromey <tom@tromey.com>
15223
15224 * configure: Rebuild.
15225 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
15226
717c684d
BE
152272020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
15228
15229 * skip.c (skip_function_command): Make skip w/o arguments use the
15230 name of the inlined function if pc is inside any inlined function.
15231
7da6a5b9
LM
152322020-01-14 Luis Machado <luis.machado@linaro.org>
15233
15234 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
15235 * infrun.c (resume_1): Likewise.
15236 (handle_inferior_event): Remove stale comment.
15237 * linux-nat.c (linux_nat_target::resume): Update comments.
15238 (save_stop_reason): Likewise.
15239 (linux_nat_filter_event): Likewise.
15240 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
15241
44e4c775
AB
152422020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15243
15244 * elfread.c (record_minimal_symbol): Set section index to 0 for
15245 non-allocatable sections.
15246
18a8505e
AT
15247
152482020-01-13 Ali Tamur <tamur@google.com>
15249
15250 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
15251 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
15252 to gdb::optional. Update comments.
15253 (dwo_file): Update comments.
15254 (read_attribute): Update API to take an additional out parameter,
15255 need_reprocess. This is used to mark attributes that need other
15256 attributes (e.g. str_offsets_base) for correct computation which may not
15257 have been read yet.
15258 (read_attribute_reprocess): New function declaration.
15259 (read_addr_index): Likewise.
15260 (read_dwo_str_index): Likewise.
15261 (read_stub_str_index): Likewise.
15262 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
15263 (lookup_addr_base): New function definition.
15264 (lookup_ranges_base): Likewise.
15265 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
15266 lookup_ranges_base.
15267 (init_cutu_and_read_dies): Update comments.
15268 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
15269 unit. This is used to inherit parent's str_offsets_base and addr_base.
15270 Update comments.
15271 (init_cutu_and_read_dies_simple): Reflect API changes.
15272 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
15273 (create_cus_hash_table): Change API to take parent compile unit.
15274 Reflect API changes.
15275 (open_and_init_dwo_file): Reflect API changes.
15276 (dwarf2_get_pc_bounds): Update comments.
15277 (dwarf2_record_block_ranges): Likewise.
15278 (read_full_die_1): Change implementation to reprocess attributes that
15279 need str_offsets_base and addr_base.
15280 (partial_die_info::read): Likewise.
15281 (read_attribute_reprocess): New function definition.
15282 (read_attribute_value): Change API to take an additional out parameter,
15283 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
15284 when a non-dwo compile unit has index based attributes.
15285 (read_attribute): Reflect API changes.
15286 (read_addr_index_1): Reflect API changes. Update comments.
15287 (dwarf2_read_addr_index_data): Reflect API changes.
15288 (dwarf2_read_addr_index): Likewise.
15289 (read_str_index): Change API and implementation. This becomes a helper
15290 to be used by the new string index related methods. Update error
15291 message and comments.
15292 (read_dwo_str_index): New function definition.
15293 (read_stub_str_index): Likewise.
15294 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
15295 * symfile.h (dwarf2_debug_sections): Likewise.
15296 * xcoffread.c (dwarf2_debug_sections): Likewise.
15297
0cac9354
SM
152982020-01-13 Simon Marchi <simon.marchi@efficios.com>
15299
15300 * gdbcore.h (struct core_fns) <core_read_registers>: Change
15301 core_reg_sect type to gdb_byte *.
15302 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
15303 * cris-tdep.c (fetch_core_registers): Likewise.
15304 * corelow.c (core_target::get_core_register_section): Change
15305 type of `contents` to gdb::byte_vector.
15306
9a6d629c
AB
153072020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15308
15309 * tui/tui-wingeneral.c (box_win): Position the title in the center
15310 of the border.
15311
d8b2f9e3
SM
153122020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15313
15314 * corelow.c (core_target::get_core_register_section): Use
15315 std::vector instead of alloca.
15316
bb564c58
SM
153172020-01-13 Simon Marchi <simon.marchi@efficios.com>
15318
15319 * warning.m4: Add -Wmissing-declarations to build_warnings.
15320 * configure: Re-generate.
15321
6b366111
SM
153222020-01-13 Simon Marchi <simon.marchi@efficios.com>
15323
15324 * python/python.c (init__gdb_module): Add declaration.
15325
6c265988
SM
153262020-01-13 Simon Marchi <simon.marchi@efficios.com>
15327
15328 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
15329 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
15330 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
15331 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
15332 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
15333 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
15334 * ada-exp.y (_initialize_ada_exp): Add declaration.
15335 * ada-lang.c (_initialize_ada_language): Add declaration.
15336 * ada-tasks.c (_initialize_tasks): Add declaration.
15337 * agent.c (_initialize_agent): Add declaration.
15338 * aix-thread.c (_initialize_aix_thread): Add declaration.
15339 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
15340 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
15341 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
15342 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
15343 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
15344 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
15345 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
15346 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
15347 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
15348 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
15349 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
15350 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
15351 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
15352 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
15353 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
15354 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
15355 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
15356 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
15357 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
15358 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
15359 * annotate.c (_initialize_annotate): Add declaration.
15360 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
15361 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
15362 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
15363 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
15364 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
15365 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
15366 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
15367 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
15368 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
15369 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
15370 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
15371 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
15372 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
15373 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
15374 * auto-load.c (_initialize_auto_load): Add declaration.
15375 * auxv.c (_initialize_auxv): Add declaration.
15376 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
15377 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
15378 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
15379 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
15380 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
15381 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
15382 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
15383 * breakpoint.c (_initialize_breakpoint): Add declaration.
15384 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
15385 * btrace.c (_initialize_btrace): Add declaration.
15386 * charset.c (_initialize_charset): Add declaration.
15387 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
15388 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
15389 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
15390 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
15391 * cli/cli-script.c (_initialize_cli_script): Add declaration.
15392 * cli/cli-style.c (_initialize_cli_style): Add declaration.
15393 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
15394 * coffread.c (_initialize_coffread): Add declaration.
15395 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
15396 * compile/compile.c (_initialize_compile): Add declaration.
15397 * complaints.c (_initialize_complaints): Add declaration.
15398 * completer.c (_initialize_completer): Add declaration.
15399 * copying.c (_initialize_copying): Add declaration.
15400 * corefile.c (_initialize_core): Add declaration.
15401 * corelow.c (_initialize_corelow): Add declaration.
15402 * cp-abi.c (_initialize_cp_abi): Add declaration.
15403 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
15404 * cp-support.c (_initialize_cp_support): Add declaration.
15405 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
15406 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
15407 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
15408 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
15409 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
15410 * ctfread.c (_initialize_ctfread): Add declaration.
15411 * d-lang.c (_initialize_d_language): Add declaration.
15412 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
15413 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
15414 * dbxread.c (_initialize_dbxread): Add declaration.
15415 * dcache.c (_initialize_dcache): Add declaration.
15416 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
15417 * disasm.c (_initialize_disasm): Add declaration.
15418 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
15419 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
15420 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
15421 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
15422 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
15423 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
15424 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
15425 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
15426 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
15427 * elfread.c (_initialize_elfread): Add declaration.
15428 * exec.c (_initialize_exec): Add declaration.
15429 * extension.c (_initialize_extension): Add declaration.
15430 * f-lang.c (_initialize_f_language): Add declaration.
15431 * f-valprint.c (_initialize_f_valprint): Add declaration.
15432 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
15433 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
15434 * filesystem.c (_initialize_filesystem): Add declaration.
15435 * findcmd.c (_initialize_mem_search): Add declaration.
15436 * findvar.c (_initialize_findvar): Add declaration.
15437 * fork-child.c (_initialize_fork_child): Add declaration.
15438 * frame-base.c (_initialize_frame_base): Add declaration.
15439 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
15440 * frame.c (_initialize_frame): Add declaration.
15441 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
15442 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
15443 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
15444 * gcore.c (_initialize_gcore): Add declaration.
15445 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
15446 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
15447 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
15448 * gdbarch.c (_initialize_gdbarch): Add declaration.
15449 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
15450 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
15451 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
15452 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
15453 * go-lang.c (_initialize_go_language): Add declaration.
15454 * go32-nat.c (_initialize_go32_nat): Add declaration.
15455 * guile/guile.c (_initialize_guile): Add declaration.
15456 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
15457 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
15458 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
15459 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
15460 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
15461 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
15462 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
15463 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
15464 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
15465 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
15466 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
15467 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
15468 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
15469 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
15470 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
15471 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
15472 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
15473 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
15474 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
15475 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
15476 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
15477 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
15478 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
15479 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
15480 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
15481 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
15482 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
15483 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
15484 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
15485 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
15486 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
15487 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
15488 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
15489 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
15490 * infcall.c (_initialize_infcall): Add declaration.
15491 * infcmd.c (_initialize_infcmd): Add declaration.
15492 * inflow.c (_initialize_inflow): Add declaration.
15493 * infrun.c (_initialize_infrun): Add declaration.
15494 * interps.c (_initialize_interpreter): Add declaration.
15495 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
15496 * jit.c (_initialize_jit): Add declaration.
15497 * language.c (_initialize_language): Add declaration.
15498 * linux-fork.c (_initialize_linux_fork): Add declaration.
15499 * linux-nat.c (_initialize_linux_nat): Add declaration.
15500 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
15501 * linux-thread-db.c (_initialize_thread_db): Add declaration.
15502 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
15503 * m2-lang.c (_initialize_m2_language): Add declaration.
15504 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
15505 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
15506 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
15507 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
15508 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
15509 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
15510 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
15511 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
15512 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
15513 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
15514 * machoread.c (_initialize_machoread): Add declaration.
15515 * macrocmd.c (_initialize_macrocmd): Add declaration.
15516 * macroscope.c (_initialize_macroscope): Add declaration.
15517 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
15518 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
15519 * maint.c (_initialize_maint_cmds): Add declaration.
15520 * mdebugread.c (_initialize_mdebugread): Add declaration.
15521 * memattr.c (_initialize_mem): Add declaration.
15522 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
15523 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
15524 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
15525 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
15526 * mi/mi-main.c (_initialize_mi_main): Add declaration.
15527 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
15528 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
15529 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
15530 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
15531 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
15532 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
15533 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
15534 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
15535 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
15536 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
15537 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
15538 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
15539 * mipsread.c (_initialize_mipsread): Add declaration.
15540 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
15541 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
15542 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
15543 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
15544 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
15545 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
15546 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
15547 * nto-procfs.c (_initialize_procfs): Add declaration.
15548 * objc-lang.c (_initialize_objc_language): Add declaration.
15549 * observable.c (_initialize_observer): Add declaration.
15550 * opencl-lang.c (_initialize_opencl_language): Add declaration.
15551 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
15552 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
15553 * osabi.c (_initialize_gdb_osabi): Add declaration.
15554 * osdata.c (_initialize_osdata): Add declaration.
15555 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
15556 * parse.c (_initialize_parse): Add declaration.
15557 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
15558 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
15559 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
15560 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
15561 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
15562 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
15563 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
15564 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
15565 * printcmd.c (_initialize_printcmd): Add declaration.
15566 * probe.c (_initialize_probe): Add declaration.
15567 * proc-api.c (_initialize_proc_api): Add declaration.
15568 * proc-events.c (_initialize_proc_events): Add declaration.
15569 * proc-service.c (_initialize_proc_service): Add declaration.
15570 * procfs.c (_initialize_procfs): Add declaration.
15571 * producer.c (_initialize_producer): Add declaration.
15572 * psymtab.c (_initialize_psymtab): Add declaration.
15573 * python/python.c (_initialize_python): Add declaration.
15574 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
15575 * record-btrace.c (_initialize_record_btrace): Add declaration.
15576 * record-full.c (_initialize_record_full): Add declaration.
15577 * record.c (_initialize_record): Add declaration.
15578 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
15579 * regcache.c (_initialize_regcache): Add declaration.
15580 * reggroups.c (_initialize_reggroup): Add declaration.
15581 * remote-notif.c (_initialize_notif): Add declaration.
15582 * remote-sim.c (_initialize_remote_sim): Add declaration.
15583 * remote.c (_initialize_remote): Add declaration.
15584 * reverse.c (_initialize_reverse): Add declaration.
15585 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
15586 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
15587 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
15588 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
15589 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
15590 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
15591 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
15592 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
15593 Add declaration.
15594 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
15595 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
15596 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
15597 * rust-exp.y (_initialize_rust_exp): Add declaration.
15598 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
15599 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
15600 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
15601 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
15602 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
15603 * score-tdep.c (_initialize_score_tdep): Add declaration.
15604 * ser-go32.c (_initialize_ser_dos): Add declaration.
15605 * ser-mingw.c (_initialize_ser_windows): Add declaration.
15606 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
15607 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
15608 * ser-uds.c (_initialize_ser_socket): Add declaration.
15609 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
15610 * serial.c (_initialize_serial): Add declaration.
15611 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
15612 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
15613 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
15614 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
15615 * skip.c (_initialize_step_skip): Add declaration.
15616 * sol-thread.c (_initialize_sol_thread): Add declaration.
15617 * solib-aix.c (_initialize_solib_aix): Add declaration.
15618 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
15619 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
15620 * solib-frv.c (_initialize_frv_solib): Add declaration.
15621 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
15622 * solib-target.c (_initialize_solib_target): Add declaration.
15623 * solib.c (_initialize_solib): Add declaration.
15624 * source-cache.c (_initialize_source_cache): Add declaration.
15625 * source.c (_initialize_source): Add declaration.
15626 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
15627 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
15628 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
15629 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
15630 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
15631 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
15632 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
15633 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
15634 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
15635 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
15636 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
15637 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
15638 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
15639 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
15640 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
15641 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
15642 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
15643 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
15644 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
15645 * stabsread.c (_initialize_stabsread): Add declaration.
15646 * stack.c (_initialize_stack): Add declaration.
15647 * stap-probe.c (_initialize_stap_probe): Add declaration.
15648 * std-regs.c (_initialize_frame_reg): Add declaration.
15649 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
15650 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
15651 * symfile.c (_initialize_symfile): Add declaration.
15652 * symmisc.c (_initialize_symmisc): Add declaration.
15653 * symtab.c (_initialize_symtab): Add declaration.
15654 * target.c (_initialize_target): Add declaration.
15655 * target-connection.c (_initialize_target_connection): Add
15656 declaration.
15657 * target-dcache.c (_initialize_target_dcache): Add declaration.
15658 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
15659 * thread.c (_initialize_thread): Add declaration.
15660 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
15661 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
15662 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
15663 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
15664 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
15665 * tracectf.c (_initialize_ctf): Add declaration.
15666 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
15667 * tracefile.c (_initialize_tracefile): Add declaration.
15668 * tracepoint.c (_initialize_tracepoint): Add declaration.
15669 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
15670 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
15671 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
15672 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
15673 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
15674 * tui/tui-win.c (_initialize_tui_win): Add declaration.
15675 * tui/tui.c (_initialize_tui): Add declaration.
15676 * typeprint.c (_initialize_typeprint): Add declaration.
15677 * ui-style.c (_initialize_ui_style): Add declaration.
15678 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
15679 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
15680 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
15681 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
15682 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
15683 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
15684 * unittests/filtered_iterator-selftests.c
15685 (_initialize_filtered_iterator_selftests): Add declaration.
15686 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
15687 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
15688 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
15689 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
15690 * unittests/main-thread-selftests.c
15691 (_initialize_main_thread_selftests): Add declaration.
15692 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
15693 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
15694 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
15695 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
15696 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
15697 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
15698 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
15699 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
15700 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
15701 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
15702 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
15703 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
15704 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
15705 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
15706 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
15707 declaration.
15708 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
15709 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
15710 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
15711 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
15712 * user-regs.c (_initialize_user_regs): Add declaration.
15713 * utils.c (_initialize_utils): Add declaration.
15714 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
15715 * valops.c (_initialize_valops): Add declaration.
15716 * valprint.c (_initialize_valprint): Add declaration.
15717 * value.c (_initialize_values): Add declaration.
15718 * varobj.c (_initialize_varobj): Add declaration.
15719 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
15720 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
15721 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
15722 * windows-nat.c (_initialize_windows_nat): Add declaration.
15723 (_initialize_check_for_gdb_ini): Add declaration.
15724 (_initialize_loadable): Add declaration.
15725 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
15726 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
15727 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
15728 * xcoffread.c (_initialize_xcoffread): Add declaration.
15729 * xml-support.c (_initialize_xml_support): Add declaration.
15730 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
15731 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
15732 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
15733 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
15734
e2de1eec
SM
157352020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15736
15737 * regformats/regdat.sh: Generate declaration for init function.
15738
e0037b4c
SM
157392020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15740
15741 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
15742 up.
15743 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
15744 close_one_inferior>: New methods.
15745 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
15746 pass down target to find_inferior_pid.
15747 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
15748 Pass down target to find_inferior_ptid.
15749 (gdbsim_target::create_inferior): Pass down target to
15750 add_thread_silent.
15751 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
15752 target down to find_inferior_ptid and switch_to_thread.
15753 (gdbsim_target::close): Update to call close_one_inferior.
15754 (struct resume_data): Remove.
15755 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
15756 directly, rather than through a void pointer.
15757 (gdbsim_target::resume): Update to call resume_one_inferior.
15758
58920b5b
SM
157592020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
15760
15761 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
15762
4ec89149
PA
157632020-01-12 Pedro Alves <palves@redhat.com>
15764
15765 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
15766 directly for the current inferior instead of
15767 discard_all_inferiors.
15768 (discard_all_inferiors): Delete.
15769
7c392d1d
TT
157702020-01-11 Tom Tromey <tom@tromey.com>
15771
15772 * tui/tui-wingeneral.c (box_win): Check cli_styling.
15773 * tui/tui-winsource.c (tui_source_window_base::refill): Use
15774 deprecated_safe_get_selected_frame.
15775
d9ebdab7
TBA
157762020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
15777
15778 * inferior.c (print_inferior): Switch inferior before printing it.
15779
f3c469b9
PA
157802020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
15781 Pedro Alves <palves@redhat.com>
15782
15783 * progspace-and-thread.c (switch_to_program_space_and_thread):
15784 Assert there's an inferior for PSPACE. Use
15785 switch_to_inferior_no_thread to switch the inferior too.
15786 * progspace.c (program_space::~program_space): Call
15787 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
15788 (program_space::free_all_objfiles): Don't call clear_symtab_users
15789 here.
15790 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
15791
65c574f6
PA
157922020-01-10 Pedro Alves <palves@redhat.com>
15793
15794 * NEWS: Mention multi-target debugging, "info connections", and
15795 "add-inferior -no-connection".
15796
2f4fcf00
PA
157972020-01-10 Pedro Alves <palves@redhat.com>
15798
15799 * infrun.c: Include "target-connection.h".
15800 (check_multi_target_resumption): New.
15801 (proceed): Call it.
15802 * target-connection.c (make_target_connection_string): Make
15803 extern.
15804 * target-connection.h (make_target_connection_string): Declare.
15805
121b3efd
PA
158062020-01-10 Pedro Alves <palves@redhat.com>
15807
15808 * Makefile.in (COMMON_SFILES): Add target-connection.c.
15809 * inferior.c (uiout_field_connection): New function.
15810 (print_inferior): Add new "connection-id" column.
15811 (add_inferior_command): Show connection number/string of added
15812 inferior.
15813 * process-stratum-target.h
15814 (process_stratum_target::connection_string): New virtual method.
15815 (process_stratum_target::connection_number): New field.
15816 * remote.c (remote_target::connection_string): New override.
15817 * target-connection.c: New file.
15818 * target-connection.h: New file.
15819 * target.c (decref_target): Remove process_stratum targets from
15820 the connection list.
15821 (target_stack::push): Add process_stratum targets to the
15822 connection list.
15823
4f837581
PA
158242020-01-10 Pedro Alves <palves@redhat.com>
15825
15826 Revert:
15827 2016-04-12 Pedro Alves <palves@redhat.com>
15828 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
15829 Remove references to name.
15830 * serial.h (struct serial) <name>: Delete.
15831
f4ec508e
PA
158322020-01-10 Pedro Alves <palves@redhat.com>
15833
15834 * gdbarch-selftests.c (register_to_value_test): Remove "target
15835 already pushed" check.
15836
5b6d1e4f
PA
158372020-01-10 Pedro Alves <palves@redhat.com>
15838 John Baldwin <jhb@FreeBSD.org>
15839
15840 * aarch64-linux-nat.c
15841 (aarch64_linux_nat_target::thread_architecture): Adjust.
15842 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
15843 (task_command_1): Likewise.
15844 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
15845 (aix_thread_target::wait, aix_thread_target::fetch_registers)
15846 (aix_thread_target::store_registers)
15847 (aix_thread_target::thread_alive): Adjust.
15848 * amd64-fbsd-tdep.c: Include "inferior.h".
15849 (amd64fbsd_get_thread_local_address): Pass down target.
15850 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
15851 thread's gdbarch instead of target_gdbarch.
15852 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
15853 get_last_target_status.
15854 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
15855 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
15856 inferiors.
15857 (update_inserted_breakpoint_locations): Skip if inferiors with no
15858 execution.
15859 (update_global_location_list): When handling moribund locations,
15860 find representative inferior for location's pspace, and use thread
15861 count of its process_stratum target.
15862 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
15863 * bsd-uthread.c (bsd_uthread_target::wait): Use
15864 as_process_stratum_target and adjust thread_change_ptid and
15865 add_thread calls.
15866 (bsd_uthread_target::update_thread_list): Use
15867 as_process_stratum_target and adjust find_thread_ptid,
15868 thread_change_ptid and add_thread calls.
15869 * btrace.c (maint_btrace_packet_history_cmd): Adjust
15870 find_thread_ptid call.
15871 * corelow.c (add_to_thread_list): Adjust add_thread call.
15872 (core_target_open): Adjust add_thread_silent and thread_count
15873 calls.
15874 (core_target::pid_to_str): Adjust find_inferior_ptid call.
15875 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
15876 * event-top.c (async_disconnect): Pop targets from all inferiors.
15877 * exec.c (add_target_sections): Push exec target on all inferiors
15878 sharing the program space.
15879 (remove_target_sections): Remove the exec target from all
15880 inferiors sharing the program space.
15881 (exec_on_vfork): New.
15882 * exec.h (exec_on_vfork): Declare.
15883 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
15884 Pass it down.
15885 (fbsd_nat_target::update_thread_list): Adjust.
15886 (fbsd_nat_target::resume): Adjust.
15887 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
15888 down.
15889 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
15890 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
15891 get_thread_arch_regcache call.
15892 * fork-child.c (gdb_startup_inferior): Pass target down to
15893 startup_inferior and set_executing.
15894 * gdbthread.h (struct process_stratum_target): Forward declare.
15895 (add_thread, add_thread_silent, add_thread_with_info)
15896 (in_thread_list): Add process_stratum_target parameter.
15897 (find_thread_ptid(inferior*, ptid_t)): New overload.
15898 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
15899 parameter.
15900 (all_threads()): Delete overload.
15901 (all_threads, all_non_exited_threads): Add process_stratum_target
15902 parameter.
15903 (all_threads_safe): Use brace initialization.
15904 (thread_count): Add process_stratum_target parameter.
15905 (set_resumed, set_running, set_stop_requested, set_executing)
15906 (threads_are_executing, finish_thread_state): Add
15907 process_stratum_target parameter.
15908 (switch_to_thread): Use is_current_thread.
15909 * i386-fbsd-tdep.c: Include "inferior.h".
15910 (i386fbsd_get_thread_local_address): Pass down target.
15911 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
15912 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
15913 have_inferiors check.
15914 * inf-ptrace.c (inf_ptrace_target::create_inferior)
15915 (inf_ptrace_target::attach): Adjust.
15916 * infcall.c (run_inferior_call): Adjust.
15917 * infcmd.c (run_command_1): Pass target to
15918 scoped_finish_thread_state.
15919 (proceed_thread_callback): Skip inferiors with no execution.
15920 (continue_command): Rename 'all_threads' local to avoid hiding
15921 'all_threads' function. Adjust get_last_target_status call.
15922 (prepare_one_step): Adjust set_running call.
15923 (signal_command): Use user_visible_resume_target. Compare thread
15924 pointers instead of inferior_ptid.
15925 (info_program_command): Adjust to pass down target.
15926 (attach_command): Mark target's 'thread_executing' flag.
15927 (stop_current_target_threads_ns): New, factored out from ...
15928 (interrupt_target_1): ... this. Switch inferior before making
15929 target calls.
15930 * inferior-iter.h
15931 (struct all_inferiors_iterator, struct all_inferiors_range)
15932 (struct all_inferiors_safe_range)
15933 (struct all_non_exited_inferiors_range): Filter on
15934 process_stratum_target too. Remove explicit.
15935 * inferior.c (inferior::inferior): Push dummy target on target
15936 stack.
15937 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
15938 Add process_stratum_target parameter, and pass it down.
15939 (have_live_inferiors): Adjust.
15940 (switch_to_inferior_and_push_target): New.
15941 (add_inferior_command, clone_inferior_command): Handle
15942 "-no-connection" parameter. Use
15943 switch_to_inferior_and_push_target.
15944 (_initialize_inferior): Mention "-no-connection" option in
15945 the help of "add-inferior" and "clone-inferior" commands.
15946 * inferior.h: Include "process-stratum-target.h".
15947 (interrupt_target_1): Use bool.
15948 (struct inferior) <push_target, unpush_target, target_is_pushed,
15949 find_target_beneath, top_target, process_target, target_at,
15950 m_stack>: New.
15951 (discard_all_inferiors): Delete.
15952 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
15953 (all_inferiors, all_non_exited_inferiors): Add
15954 process_stratum_target parameter.
15955 * infrun.c: Include "gdb_select.h" and <unordered_map>.
15956 (target_last_proc_target): New global.
15957 (follow_fork_inferior): Push target on new inferior. Pass target
15958 to add_thread_silent. Call exec_on_vfork. Handle target's
15959 reference count.
15960 (follow_fork): Adjust get_last_target_status call. Also consider
15961 target.
15962 (follow_exec): Push target on new inferior.
15963 (struct execution_control_state) <target>: New field.
15964 (user_visible_resume_target): New.
15965 (do_target_resume): Call target_async.
15966 (resume_1): Set target's threads_executing flag. Consider resume
15967 target.
15968 (commit_resume_all_targets): New.
15969 (proceed): Also consider resume target. Skip threads of inferiors
15970 with no execution. Commit resumtion in all targets.
15971 (start_remote): Pass current inferior to wait_for_inferior.
15972 (infrun_thread_stop_requested): Consider target as well. Pass
15973 thread_info pointer to clear_inline_frame_state instead of ptid.
15974 (infrun_thread_thread_exit): Consider target as well.
15975 (random_pending_event_thread): New inferior parameter. Use it.
15976 (do_target_wait): Rename to ...
15977 (do_target_wait_1): ... this. Add inferior parameter, and pass it
15978 down.
15979 (threads_are_resumed_pending_p, do_target_wait): New.
15980 (prepare_for_detach): Adjust calls.
15981 (wait_for_inferior): New inferior parameter. Handle it. Use
15982 do_target_wait_1 instead of do_target_wait.
15983 (fetch_inferior_event): Adjust. Switch to representative
15984 inferior. Pass target down.
15985 (set_last_target_status): Add process_stratum_target parameter.
15986 Save target in global.
15987 (get_last_target_status): Add process_stratum_target parameter and
15988 handle it.
15989 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
15990 (context_switch): Check inferior_ptid == null_ptid before calling
15991 inferior_thread().
15992 (get_inferior_stop_soon): Pass down target.
15993 (wait_one): Rename to ...
15994 (poll_one_curr_target): ... this.
15995 (struct wait_one_event): New.
15996 (wait_one): New.
15997 (stop_all_threads): Adjust.
15998 (handle_no_resumed, handle_inferior_event): Adjust to consider the
15999 event's target.
16000 (switch_back_to_stepped_thread): Also consider target.
16001 (print_stop_event): Update.
16002 (normal_stop): Update. Also consider the resume target.
16003 * infrun.h (wait_for_inferior): Remove declaration.
16004 (user_visible_resume_target): New declaration.
16005 (get_last_target_status, set_last_target_status): New
16006 process_stratum_target parameter.
16007 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16008 process_stratum_target parameter, and use it.
16009 (clear_inline_frame_state (thread_info*)): New.
16010 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16011 process_stratum_target parameter.
16012 (clear_inline_frame_state (thread_info*)): Declare.
16013 * linux-fork.c (delete_checkpoint_command): Pass target down to
16014 find_thread_ptid.
16015 (checkpoint_command): Adjust.
16016 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
16017 instead of just tweaking inferior_ptid.
16018 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
16019 (exit_lwp): Pass target down to find_thread_ptid.
16020 (attach_proc_task_lwp_callback): Pass target down to
16021 add_thread/set_running/set_executing.
16022 (linux_nat_target::attach): Pass target down to
16023 thread_change_ptid.
16024 (get_detach_signal): Pass target down to find_thread_ptid.
16025 Consider last target status's target.
16026 (linux_resume_one_lwp_throw, resume_lwp)
16027 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
16028 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
16029 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
16030 (linux_nat_target::async_wait_fd): New.
16031 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
16032 target down.
16033 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
16034 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
16035 * linux-thread-db.c (struct thread_db_info::process_target): New
16036 field.
16037 (add_thread_db_info): Save target.
16038 (get_thread_db_info): New process_stratum_target parameter. Also
16039 match target.
16040 (delete_thread_db_info): New process_stratum_target parameter.
16041 Also match target.
16042 (thread_from_lwp): Adjust to pass down target.
16043 (thread_db_notice_clone): Pass down target.
16044 (check_thread_db_callback): Pass down target.
16045 (try_thread_db_load_1): Always push the thread_db target.
16046 (try_thread_db_load, record_thread): Pass target down.
16047 (thread_db_target::detach): Pass target down. Always unpush the
16048 thread_db target.
16049 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
16050 target down. Always unpush the thread_db target.
16051 (find_new_threads_callback, thread_db_find_new_threads_2)
16052 (thread_db_target::update_thread_list): Pass target down.
16053 (thread_db_target::pid_to_str): Pass current inferior down.
16054 (thread_db_target::get_thread_local_address): Pass target down.
16055 (thread_db_target::resume, maintenance_check_libthread_db): Pass
16056 target down.
16057 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
16058 * procfs.c (procfs_target::procfs_init_inferior): Declare.
16059 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
16060 (procfs_init_inferior): Rename to ...
16061 (procfs_target::procfs_init_inferior): ... this and adjust.
16062 (procfs_target::create_inferior, procfs_notice_thread)
16063 (procfs_do_thread_registers): Adjust.
16064 * ppc-fbsd-tdep.c: Include "inferior.h".
16065 (ppcfbsd_get_thread_local_address): Pass down target.
16066 * proc-service.c (ps_xfer_memory): Switch current inferior and
16067 program space as well.
16068 (get_ps_regcache): Pass target down.
16069 * process-stratum-target.c
16070 (process_stratum_target::thread_address_space)
16071 (process_stratum_target::thread_architecture): Pass target down.
16072 * process-stratum-target.h
16073 (process_stratum_target::threads_executing): New field.
16074 (as_process_stratum_target): New.
16075 * ravenscar-thread.c
16076 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
16077 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
16078 down.
16079 * record-btrace.c (record_btrace_target::info_record): Adjust.
16080 (record_btrace_target::record_method)
16081 (record_btrace_target::record_is_replaying)
16082 (record_btrace_target::fetch_registers)
16083 (get_thread_current_frame_id, record_btrace_target::resume)
16084 (record_btrace_target::wait, record_btrace_target::stop): Pass
16085 target down.
16086 * record-full.c (record_full_wait_1): Switch to event thread.
16087 Pass target down.
16088 * regcache.c (regcache::regcache)
16089 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
16090 process_stratum_target parameter and handle it.
16091 (current_thread_target): New global.
16092 (get_thread_regcache): Add process_stratum_target parameter and
16093 handle it. Switch inferior before calling target method.
16094 (get_thread_regcache): Pass target down.
16095 (get_thread_regcache_for_ptid): Pass target down.
16096 (registers_changed_ptid): Add process_stratum_target parameter and
16097 handle it.
16098 (registers_changed_thread, registers_changed): Pass target down.
16099 (test_get_thread_arch_aspace_regcache): New.
16100 (current_regcache_test): Define a couple local test_target_ops
16101 instances and use them for testing.
16102 (readwrite_regcache): Pass process_stratum_target parameter.
16103 (cooked_read_test, cooked_write_test): Pass mock_target down.
16104 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
16105 (get_thread_arch_aspace_regcache): Add process_stratum_target
16106 parameter.
16107 (regcache::target): New method.
16108 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
16109 (regcache::registers_changed_ptid): Add process_stratum_target
16110 parameter.
16111 (regcache::m_target): New field.
16112 (registers_changed_ptid): Add process_stratum_target parameter.
16113 * remote.c (remote_state::supports_vCont_probed): New field.
16114 (remote_target::async_wait_fd): New method.
16115 (remote_unpush_and_throw): Add remote_target parameter.
16116 (get_current_remote_target): Adjust.
16117 (remote_target::remote_add_inferior): Push target.
16118 (remote_target::remote_add_thread)
16119 (remote_target::remote_notice_new_inferior)
16120 (get_remote_thread_info): Pass target down.
16121 (remote_target::update_thread_list): Skip threads of inferiors
16122 bound to other targets. (remote_target::close): Don't discard
16123 inferiors. (remote_target::add_current_inferior_and_thread)
16124 (remote_target::process_initial_stop_replies)
16125 (remote_target::start_remote)
16126 (remote_target::remote_serial_quit_handler): Pass down target.
16127 (remote_target::remote_unpush_target): New remote_target
16128 parameter. Unpush the target from all inferiors.
16129 (remote_target::remote_unpush_and_throw): New remote_target
16130 parameter. Pass it down.
16131 (remote_target::open_1): Check whether the current inferior has
16132 execution instead of checking whether any inferior is live. Pass
16133 target down.
16134 (remote_target::remote_detach_1): Pass down target. Use
16135 remote_unpush_target.
16136 (extended_remote_target::attach): Pass down target.
16137 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
16138 (remote_target::append_resumption): Pass down target.
16139 (remote_target::append_pending_thread_resumptions)
16140 (remote_target::remote_resume_with_hc, remote_target::resume)
16141 (remote_target::commit_resume): Pass down target.
16142 (remote_target::remote_stop_ns): Check supports_vCont_probed.
16143 (remote_target::interrupt_query)
16144 (remote_target::remove_new_fork_children)
16145 (remote_target::check_pending_events_prevent_wildcard_vcont)
16146 (remote_target::remote_parse_stop_reply)
16147 (remote_target::process_stop_reply): Pass down target.
16148 (first_remote_resumed_thread): New remote_target parameter. Pass
16149 it down.
16150 (remote_target::wait_as): Pass down target.
16151 (unpush_and_perror): New remote_target parameter. Pass it down.
16152 (remote_target::readchar, remote_target::remote_serial_write)
16153 (remote_target::getpkt_or_notif_sane_1)
16154 (remote_target::kill_new_fork_children, remote_target::kill): Pass
16155 down target.
16156 (remote_target::mourn_inferior): Pass down target. Use
16157 remote_unpush_target.
16158 (remote_target::core_of_thread)
16159 (remote_target::remote_btrace_maybe_reopen): Pass down target.
16160 (remote_target::pid_to_exec_file)
16161 (remote_target::thread_handle_to_thread_info): Pass down target.
16162 (remote_target::async_wait_fd): New.
16163 * riscv-fbsd-tdep.c: Include "inferior.h".
16164 (riscv_fbsd_get_thread_local_address): Pass down target.
16165 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
16166 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
16167 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
16168 Adjust.
16169 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
16170 * solib-svr4.c (enable_break): Pass down target.
16171 * spu-multiarch.c (parse_spufs_run): Pass down target.
16172 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
16173 * target-delegates.c: Regenerate.
16174 * target.c (g_target_stack): Delete.
16175 (current_top_target): Return the current inferior's top target.
16176 (target_has_execution_1): Refer to the passed-in inferior's top
16177 target.
16178 (target_supports_terminal_ours): Check whether the initial
16179 inferior was already created.
16180 (decref_target): New.
16181 (target_stack::push): Incref/decref the target.
16182 (push_target, push_target, unpush_target): Adjust.
16183 (target_stack::unpush): Defref target.
16184 (target_is_pushed): Return bool. Adjust to refer to the current
16185 inferior's target stack.
16186 (dispose_inferior): Delete, and inline parts ...
16187 (target_preopen): ... here. Only dispose of the current inferior.
16188 (target_detach): Hold strong target reference while detaching.
16189 Pass target down.
16190 (target_thread_name): Add assertion.
16191 (target_resume): Pass down target.
16192 (target_ops::beneath, find_target_at): Adjust to refer to the
16193 current inferior's target stack.
16194 (get_dummy_target): New.
16195 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
16196 has a thread running.
16197 (initialize_targets): Rename to ...
16198 (_initialize_target): ... this.
16199 * target.h: Include "gdbsupport/refcounted-object.h".
16200 (struct target_ops): Inherit refcounted_object.
16201 (target_ops::shortname, target_ops::longname): Make const.
16202 (target_ops::async_wait_fd): New method.
16203 (decref_target): Declare.
16204 (struct target_ops_ref_policy): New.
16205 (target_ops_ref): New typedef.
16206 (get_dummy_target): Declare function.
16207 (target_is_pushed): Return bool.
16208 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
16209 (all_matching_threads_iterator::all_matching_threads_iterator):
16210 Handle filter target.
16211 * thread-iter.h (struct all_matching_threads_iterator, struct
16212 all_matching_threads_range, class all_non_exited_threads_range):
16213 Filter by target too. Remove explicit.
16214 * thread.c (threads_executing): Delete.
16215 (inferior_thread): Pass down current inferior.
16216 (clear_thread_inferior_resources): Pass down thread pointer
16217 instead of ptid_t.
16218 (add_thread_silent, add_thread_with_info, add_thread): Add
16219 process_stratum_target parameter. Use it for thread and inferior
16220 searches.
16221 (is_current_thread): New.
16222 (thread_info::deletable): Use it.
16223 (find_thread_ptid, thread_count, in_thread_list)
16224 (thread_change_ptid, set_resumed, set_running): New
16225 process_stratum_target parameter. Pass it down.
16226 (set_executing): New process_stratum_target parameter. Pass it
16227 down. Adjust reference to 'threads_executing'.
16228 (threads_are_executing): New process_stratum_target parameter.
16229 Adjust reference to 'threads_executing'.
16230 (set_stop_requested, finish_thread_state): New
16231 process_stratum_target parameter. Pass it down.
16232 (switch_to_thread): Also match inferior.
16233 (switch_to_thread): New process_stratum_target parameter. Pass it
16234 down.
16235 (update_threads_executing): Reimplement.
16236 * top.c (quit_force): Pop targets from all inferior.
16237 (gdb_init): Don't call initialize_targets.
16238 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
16239 Declare.
16240 (windows_add_thread, windows_delete_thread): Adjust.
16241 (get_windows_debug_event): Rename to ...
16242 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
16243 * tracefile-tfile.c (tfile_target_open): Pass down target.
16244 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
16245 Forward declare.
16246 (switch_to_thread): Add process_stratum_target parameter.
16247 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
16248 parameter. Use it.
16249 (mi_on_resume): Pass target down.
16250 * nat/fork-inferior.c (startup_inferior): Add
16251 process_stratum_target parameter. Pass it down.
16252 * nat/fork-inferior.h (startup_inferior): Add
16253 process_stratum_target parameter.
16254 * python/py-threadevent.c (py_get_event_thread): Pass target down.
16255
75c6c844
PA
162562020-01-10 Pedro Alves <palves@redhat.com>
16257
16258 * remote.c (remote_target::start_remote): Don't set inferior_ptid
16259 directly. Instead find the first thread in the thread list and
16260 use switch_to_thread.
16261
78f2c40a
PA
162622020-01-10 Pedro Alves <palves@redhat.com>
16263
16264 * remote.c (remote_target::remote_add_inferior): Don't bind a
16265 process to the current inferior if the current inferior is already
16266 bound to a process.
16267
e7af6c70
TBA
162682020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16269 Pedro Alves <palves@redhat.com>
16270
16271 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
16272 If no process is specified, return null_ptid instead of
16273 inferior_ptid.
16274 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
16275 TARGET_WAITKIND_SIGNALLED with no pid.
16276
31ba933e
PA
162772020-01-10 Pedro Alves <palves@redhat.com>
16278
16279 * remote.c (first_remote_resumed_thread): New.
16280 (remote_target::wait_as): Use it as default event_ptid instead of
16281 inferior_ptid.
16282
735fc2ca
PA
162832020-01-10 Pedro Alves <palves@redhat.com>
16284
16285 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
16286
c17e02e1
PA
162872020-01-10 Pedro Alves <palves@redhat.com>
16288
16289 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
16290 not -1.
16291
ab1ddbcf
PA
162922020-01-10 Pedro Alves <palves@redhat.com>
16293
16294 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
16295 ptid to get_last_target_status.
16296 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
16297 ptid to get_last_target_status.
16298 * infcmd.c (continue_command): Don't pass a target_waitstatus to
16299 get_last_target_status.
16300 (info_program_command): Don't pass a target_waitstatus to
16301 get_last_target_status.
16302 * infrun.c (init_wait_for_inferior): Use
16303 nullify_last_target_wait_ptid.
16304 (get_last_target_status): Handle nullptr arguments.
16305 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
16306 (print_stop_event): Don't pass a ptid to get_last_target_status.
16307 (normal_stop): Don't pass a ptid to get_last_target_status.
16308 * infrun.h (get_last_target_status, set_last_target_status): Move
16309 comments here and update.
16310 (nullify_last_target_wait_ptid): Declare.
16311 * linux-fork.c (fork_load_infrun_state): Remove local extern
16312 declaration of nullify_last_target_wait_ptid.
16313 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
16314 to get_last_target_status.
16315
f3f8ece4
PA
163162020-01-10 Pedro Alves <palves@redhat.com>
16317
16318 * gdbthread.h (scoped_restore_current_thread)
16319 <dont_restore, restore, m_dont_restore>: Declare.
16320 * thread.c (thread_alive): Add assertion. Return bool.
16321 (switch_to_thread_if_alive): New.
16322 (prune_threads): Switch inferior/thread.
16323 (print_thread_info_1): Switch thread before calling target methods.
16324 (scoped_restore_current_thread::restore): New, factored out from
16325 ...
16326 (scoped_restore_current_thread::~scoped_restore_current_thread):
16327 ... this.
16328 (scoped_restore_current_thread::scoped_restore_current_thread):
16329 Add assertion.
16330 (thread_apply_all_command, thread_select): Use
16331 switch_to_thread_if_alive.
16332 * infrun.c (proceed, restart_threads, handle_signal_stop)
16333 (switch_back_to_stepped_thread): Switch current thread before
16334 calling target methods.
16335
db2d40f7
PA
163362020-01-10 Pedro Alves <palves@redhat.com>
16337
16338 * inferior.c (switch_to_inferior_no_thread): New function,
16339 factored out from ...
16340 (inferior_command): ... here.
16341 * inferior.h (switch_to_inferior_no_thread): Declare.
16342 * mi/mi-main.c (run_one_inferior): Use
16343 switch_to_inferior_no_thread.
16344
bd420a2d
PA
163452020-01-10 Pedro Alves <palves@redhat.com>
16346
16347 * infcmd.c (kill_command): Remove dead code.
16348
ddf5db90
PA
163492020-01-10 Pedro Alves <palves@redhat.com>
16350
16351 * remote.c (remote_target::mourn_inferior): No longer check
16352 whether the target is running.
16353
5018ce90
PA
163542020-01-10 Pedro Alves <palves@redhat.com>
16355
16356 * corelow.c (core_target::has_execution): Change parameter type to
16357 inferior pointer.
16358 * inferior.c (number_of_live_inferiors): Use
16359 inferior::has_execution instead of target_has_execution_1.
16360 * inferior.h (inferior::has_execution): New.
16361 * linux-thread-db.c (thread_db_target::update_thread_list): Use
16362 inferior::has_execution instead of target_has_execution_1.
16363 * process-stratum-target.c
16364 (process_stratum_target::has_execution): Change parameter type to
16365 inferior pointer. Check the inferior's PID instead of
16366 inferior_ptid.
16367 * process-stratum-target.h
16368 (process_stratum_target::has_execution): Change parameter type to
16369 inferior pointer.
16370 * record-full.c (record_full_core_target::has_execution): Change
16371 parameter type to inferior pointer.
16372 * target.c (target_has_execution_1): Change parameter type to
16373 inferior pointer.
16374 (target_has_execution_current): Adjust.
16375 * target.h (target_ops::has_execution): Change parameter type to
16376 inferior pointer.
16377 (target_has_execution_1): Change parameter type to inferior
16378 pointer. Change return type to bool.
16379 * tracefile.h (tracefile_target::has_execution): Change parameter
16380 type to inferior pointer.
16381
74375d18
PA
163822020-01-10 Pedro Alves <palves@redhat.com>
16383
16384 * exceptions.c (print_flush): Remove current_top_target() check.
16385
acdf84a6
PA
163862020-01-10 Pedro Alves <palves@redhat.com>
16387
16388 * remote.c (show_remote_exec_file): Show the current inferior's
16389 exec-file instead of the command variable's value.
16390
ec506636
PA
163912020-01-10 Pedro Alves <palves@redhat.com>
16392
16393 * record-full.c (record_full_resume_ptid): New global.
16394 (record_full_target::resume): Set it.
16395 (record_full_wait_1): Use record_full_resume_ptid instead of
16396 inferior_ptid.
16397
873657b9
PA
163982020-01-10 Pedro Alves <palves@redhat.com>
16399
16400 * gdbthread.h (scoped_restore_current_thread)
16401 <dont_restore, restore, m_dont_restore>: Declare.
16402 * thread.c (thread_alive): Add assertion. Return bool.
16403 (switch_to_thread_if_alive): New.
16404 (prune_threads): Switch inferior/thread.
16405 (print_thread_info_1): Switch thread before calling target methods.
16406 (scoped_restore_current_thread::restore): New, factored out from
16407 ...
16408 (scoped_restore_current_thread::~scoped_restore_current_thread):
16409 ... this.
16410 (scoped_restore_current_thread::scoped_restore_current_thread):
16411 Add assertion.
16412 (thread_apply_all_command, thread_select): Use
16413 switch_to_thread_if_alive.
16414
7f0ae84c
GB
164152020-01-10 George Barrett <bob@bob131.so>
16416
16417 * stap-probe.c (stap_modify_semaphore): Don't check for null
16418 semaphores.
16419 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
16420 for null semaphores.
16421
f5a7c406
AB
164222020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16423
16424 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
16425 all source windows, and maintain horizontal scroll status while
16426 doing so.
16427
9ae6bf64
TT
164282020-01-09 Tom Tromey <tom@tromey.com>
16429
16430 PR tui/18932:
16431 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
16432 update_source_window, not print_source_lines.
16433
b2efe70c
AB
164342020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16435
16436 * tui/tui.c (tui_enable): Register tui hooks after calling
16437 tui_display_main.
16438
5f23a082
CB
164392020-01-09 Christian Biesinger <cbiesinger@google.com>
16440
16441 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
16442
3061113b
SM
164432020-01-08 Simon Marchi <simon.marchi@efficios.com>
16444
16445 * thread.c (print_thread_info_1): Fix indentation.
16446
57d75002
CB
164472020-01-09 Christian Biesinger <cbiesinger@google.com>
16448
16449 * symtab.c (general_symbol_info::compute_and_set_names): Move the
16450 unique_xmalloc_ptr outside the if to always free the demangled name.
16451
6a053cb1
TT
164522020-01-08 Tom Tromey <tromey@adacore.com>
16453
16454 * xcoffread.c (enter_line_range, read_xcoff_symtab)
16455 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
16456 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
16457 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
16458 Remove.
16459 (section_offsets): New typedef.
16460 * symtab.c (fixup_section, get_msymbol_address): Update.
16461 * symmisc.c (dump_msymbols): Update.
16462 * symfile.h (relative_addr_info_to_section_offsets)
16463 (symfile_map_offsets_to_segments): Update.
16464 * symfile.c (build_section_addr_info_from_objfile)
16465 (init_objfile_sect_indices): Update.
16466 (struct place_section_arg): Change type of "offsets".
16467 (place_section): Update.
16468 (relative_addr_info_to_section_offsets): Change type of
16469 "section_offsets". Remove "num_sections" parameter.
16470 (default_symfile_offsets, syms_from_objfile_1)
16471 (set_objfile_default_section_offset): Update.
16472 (reread_symbols): No need to preserve section offsets by hand.
16473 (symfile_map_offsets_to_segments): Change type of "offsets".
16474 * stap-probe.c (relocate_address): Update.
16475 * stabsread.h (process_one_symbol): Update.
16476 * solib-target.c (struct lm_info_target) <offsets>: Change type.
16477 (solib_target_relocate_section_addresses): Update.
16478 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
16479 Update.
16480 * solib-frv.c (frv_relocate_main_executable): Update.
16481 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
16482 * solib-aix.c (solib_aix_get_section_offsets): Change return
16483 type.
16484 (solib_aix_solib_create_inferior_hook): Update.
16485 * remote.c (remote_target::get_offsets): Update.
16486 * psymtab.c (find_pc_sect_psymtab): Update.
16487 * psympriv.h (struct partial_symbol) <address, text_low,
16488 text_high>: Update.
16489 * objfiles.h (obj_section_offset): Update.
16490 (struct objfile) <section_offsets>: Change type.
16491 <num_sections>: Remove.
16492 (objfile_relocate): Update.
16493 * objfiles.c (entry_point_address_query): Update
16494 (relocate_one_symbol): Change type of "section_offsets".
16495 (objfile_relocate1, objfile_relocate1): Change type of
16496 "new_offsets".
16497 (objfile_rebase1): Update.
16498 * mipsread.c (mipscoff_symfile_read): Update.
16499 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
16500 parameter.
16501 * mdebugread.c (parse_symbol): Change type of "section_offsets".
16502 (parse_external, psymtab_to_symtab_1): Update.
16503 * machoread.c (macho_symfile_offsets): Update.
16504 * ia64-tdep.c (ia64_find_unwind_table): Update.
16505 * hppa-tdep.c (read_unwind_info): Update.
16506 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
16507 * dwarf2read.c (create_addrmap_from_index)
16508 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
16509 (process_psymtab_comp_unit_reader, add_partial_symbol)
16510 (add_partial_subprogram, process_full_comp_unit)
16511 (read_file_scope, read_func_scope, read_lexical_block_scope)
16512 (read_call_site_scope, dwarf2_rnglists_process)
16513 (dwarf2_ranges_process, dwarf2_ranges_read)
16514 (dwarf_decode_lines_1, var_decode_location, new_symbol)
16515 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
16516 Update.
16517 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
16518 Update.
16519 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
16520 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
16521 (process_one_symbol): Change type of "section_offsets".
16522 * ctfread.c (get_objfile_text_range): Update.
16523 * coffread.c (coff_symtab_read, enter_linenos)
16524 (process_coff_symbol): Update.
16525 * coff-pe-read.c (add_pe_forwarded_sym): Update.
16526 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
16527
456e800a
TT
165282020-01-08 Tom Tromey <tromey@adacore.com>
16529
16530 * dwarf2read.c (parse_macro_definition): Use std::string.
16531 (parse_macro_definition): Likewise.
16532
6dfa2fc2
TT
165332020-01-08 Tom Tromey <tromey@adacore.com>
16534
16535 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
16536 (ATTR_ALLOC_CHUNK): Remove.
16537
421d1616
TT
165382020-01-08 Tom Tromey <tromey@adacore.com>
16539
16540 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
16541
43816ebc
TT
165422020-01-08 Tom Tromey <tromey@adacore.com>
16543
16544 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
16545 (dwarf2_compute_name, open_dwo_file): Likewise.
16546 (process_enumeration_scope): Use std::vector.
16547 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
16548 (partial_die_info::fixup, dwarf2_start_subfile)
16549 (guess_full_die_structure_name, dwarf2_name): Likewise.
16550 (determine_prefix): Update.
16551 (guess_full_die_structure_name): Make return type const.
16552 (partial_die_full_name): Return unique_xmalloc_ptr.
16553 (DW_FIELD_ALLOC_CHUNK): Remove.
16554
4212d509
TT
165552020-01-07 Tom Tromey <tromey@adacore.com>
16556
16557 PR build/24937:
16558 * stap-probe.c (class stap_static_probe_ops): Add constructor.
16559
06a6207a
JT
165602020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
16561
16562 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
16563
153d79c4
AB
165642020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
16565
16566 * stack.c (print_frame_info): Move disassemble_next_line code
16567 inside source_print block.
16568
66182876
EZ
165692020-01-06 Eli Zaretskii <eliz@gnu.org>
16570
16571 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
16572 gdb/signals.h, as we are now using native signal symbols.
16573
cbfa8581
SV
165742020-01-06 Shahab Vahedi <shahab@synopsys.com>
16575
16576 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
16577 overflow by an early check of content vs threshold.
aac66a4c 16578 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
16579 Likewise.
16580
3f602821
EZ
165812020-01-06 Eli Zaretskii <eliz@gnu.org>
16582
16583 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
16584
a08c904d
JT
165852020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
16586
16587 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
16588 export table if no section contains it's RVA.
16589
89a65580
EZ
165902020-01-06 Eli Zaretskii <eliz@gnu.org>
16591
16592 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
16593
8b7fcda2
HD
165942020-01-06 Hannes Domani <ssbssa@yahoo.de>
16595
16596 * source.c (print_source_lines_base): Set last_line_listed.
16597
a61b4f69
SV
165982020-01-06 Shahab Vahedi <shahab@synopsys.com>
16599
16600 * tui/tui-disasm.c: Remove trailing spaces.
16601
559e7e50
EZ
166022020-01-06 Eli Zaretskii <eliz@gnu.org>
16603 Pedro Alves <palves@redhat.com>
16604
16605 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
16606 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
16607 (windows_gdb_signal_to_target): New function, uses the above
16608 enumeration to convert GDB internal signal codes to equivalent
16609 Windows codes.
16610 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
16611 * windows-nat.c: Include "gdb_wait.h".
16612 (get_windows_debug_event): Extract the fatal exception from the
16613 exit status and convert to the equivalent Posix signal number.
16614 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
16615 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
16616 * gdbsupport/gdb_wait.c: New file, implements
16617 windows_status_to_termsig.
16618 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
16619 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
16620
f2302a34
AB
166212020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
16622
16623 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
16624 show_layout.
16625
6a5206eb
LM
166262020-01-05 Luis Machado <luis.machado@linaro.org>
16627
16628 * aarch64-linux-nat.c
16629 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
16630 and bfd_mach_aarch64.
16631
6ec1d75e
PW
166322020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16633
16634 * ui-file.c (stdio_file::can_emit_style_escape)
16635 (tee_file::can_emit_style_escape): Ensure style is used also on
16636 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
16637 to gdb_stdout.
16638 * main.c (set_gdb_data_directory): Use file style to output the
16639 warning that the given pathname is not a directory.
16640 * top.c (show_history_filename, gdb_safe_append_history)
16641 (show_gdb_datadir): Use file style.
16642
44f81a76
HD
166432020-01-03 Hannes Domani <ssbssa@yahoo.de>
16644
16645 * solib-target.c (struct lm_info_target):
16646 Change offsets to be a unique_xmalloc_ptr.
16647 (solib_target_relocate_section_addresses): Update.
16648
25057eb0
HD
166492020-01-03 Hannes Domani <ssbssa@yahoo.de>
16650
16651 * windows-nat.c (windows_clear_solib): Free so_list linked list.
16652
6e2118f5
BE
166532020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
16654
16655 * MAINTAINERS (Write After Approval): Add myself.
16656
8133c7dc
LM
166572020-01-02 Luis Machado <luis.machado@linaro.org>
16658
16659 * proc-service.c (get_ps_regcache): Remove reference to obsolete
16660 Cell BE architecture.
16661 * target.h (struct target_ops) <thread_architecture>: Likewise.
16662
48189bec
HD
166632020-01-01 Hannes Domani <ssbssa@yahoo.de>
16664
16665 * Makefile.in: Use INSTALL_PROGRAM_ENV.
16666
ead1063b
HD
166672020-01-01 Hannes Domani <ssbssa@yahoo.de>
16668
16669 * MAINTAINERS (Write After Approval): Add myself.
16670
e5d78223
JB
166712020-01-01 Joel Brobecker <brobecker@adacore.com>
16672
16673 * gdbarch.sh: Update copyright year range of generated files.
16674
b811d2c2
JB
166752020-01-01 Joel Brobecker <brobecker@adacore.com>
16676
16677 Update copyright year range in all GDB files.
16678
5f4def5c
JB
166792020-01-01 Joel Brobecker <brobecker@adacore.com>
16680
16681 * copyright.py: Convert to Python 3.
16682
51fd4002
JB
166832020-01-01 Joel Brobecker <brobecker@adacore.com>
16684
16685 * copyright.py: Adapt after move of gnulib directory from gdb
16686 directory to toplevel directory.
16687
5fb651f2
JB
166882020-01-01 Joel Brobecker <brobecker@adacore.com>
16689
16690 * copyright.py (main): Exit if run from the wrong directory.
16691
5dd8bf88
JB
166922020-01-01 Joel Brobecker <brobecker@adacore.com>
16693
16694 * top.c (print_gdb_version): Change copyright year to 2020.
16695
9f71dacb 166962020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 16697
9f71dacb 16698 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 16699
9f71dacb 16700For older changes see ChangeLog-2019.
c906108c
SS
16701\f
16702Local Variables:
16703mode: change-log
16704left-margin: 8
16705fill-column: 74
16706version-control: never
57da7796 16707coding: utf-8
c906108c 16708End:
This page took 3.371737 seconds and 4 git commands to generate.