Recognize names of array types
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
d8f62e84
TT
12020-11-04 Tom Tromey <tromey@adacore.com>
2
3 * dwarf2/read.c (add_partial_symbol, process_die):
4 Handle DW_TAG_array_type.
5 (is_type_tag_for_partial): Add "lang" parameter.
6 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
7
7ff5b937
TT
82020-11-04 Tom Tromey <tromey@adacore.com>
9
10 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
11
10f6a3ad
TT
122020-11-04 Tom Tromey <tromey@adacore.com>
13
14 * dwarf2/read.c (read_array_type): Only apply stride to innermost
15 array.
16
b72795a8
TT
172020-11-04 Tom Tromey <tromey@adacore.com>
18
19 * gdbtypes.c (update_static_array_size): Handle bit stride.
20
24aa1b02
TT
212020-11-04 Tom Tromey <tromey@adacore.com>
22
23 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
24
c9a28cbe
TT
252020-11-04 Tom Tromey <tromey@adacore.com>
26
27 * ada-lang.c (ada_is_any_packed_array_type): New function.
28 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
29
57567375
TT
302020-11-04 Tom Tromey <tromey@adacore.com>
31
32 * dwarf2/read.c (recognize_bound_expression)
33 (quirk_ada_thick_pointer): New functions.
34 (read_array_type): Call quirk_ada_thick_pointer.
35 (set_die_type): Add "skip_data_location" parameter.
36 (quirk_ada_thick_pointer): New function.
37 (process_structure_scope): Call quirk_ada_thick_pointer.
38 * ada-lang.c (ada_is_unconstrained_packed_array_type)
39 (decode_packed_array_bitsize): Handle thick pointers without
40 parallel types.
41 (ada_is_gnat_encoded_packed_array_type): Rename from
42 ada_is_packed_array_type.
43 (ada_is_constrained_packed_array_type): Update.
44 * ada-valprint.c (ada_val_print_gnat_array): Remove.
45 (ada_value_print_1): Use ada_get_decoded_value.
46
a7400e44
TT
472020-11-04 Tom Tromey <tromey@adacore.com>
48
49 * ada-lang.c (recursively_update_array_bitsize): New function.
50 (decode_constrained_packed_array_type): Call it.
51
75fd6a26
TT
522020-11-04 Tom Tromey <tromey@adacore.com>
53
54 * ada-lang.c (to_fixed_array_type): Error if
55 decode_constrained_packed_array_type returns NULL.
56
93f9561e
TT
572020-11-04 Tom Tromey <tromey@adacore.com>
58
59 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
60
257e02d8
TT
612020-11-02 Tom Tromey <tromey@adacore.com>
62
63 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
64 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
65 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
66 * amd64-ravenscar-thread.c: New file.
67 * amd64-ravenscar-thread.h: New file.
68 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
69 * configure.tgt (amd64_tobjs): Add ravenscar objects.
70
74d877e5
AB
712020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
72
73 * main.c (execute_cmdargs): New function.
74 (captured_main_1): Make use of execute_cmdargs.
75
64aaad63
AB
762020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
77
78 * NEWS: Mention changes to config file search path.
79 * main.c
80
5b3d3560
TT
812020-11-02 Tom Tromey <tromey@adacore.com>
82
83 * python/python.c: Consolidate two HAVE_PYTHON blocks.
84 (python_GdbModuleDef): Move earlier. Now static.
85 (do_start_initialization): Consolidate some IS_PY3K blocks.
86
dda83cd7
SM
872020-11-02 Simon Marchi <simon.marchi@efficios.com>
88
89 * aarch64-linux-tdep.c: Fix indentation.
90 * aarch64-ravenscar-thread.c: Fix indentation.
91 * aarch64-tdep.c: Fix indentation.
92 * aarch64-tdep.h: Fix indentation.
93 * ada-lang.c: Fix indentation.
94 * ada-lang.h: Fix indentation.
95 * ada-tasks.c: Fix indentation.
96 * ada-typeprint.c: Fix indentation.
97 * ada-valprint.c: Fix indentation.
98 * ada-varobj.c: Fix indentation.
99 * addrmap.c: Fix indentation.
100 * addrmap.h: Fix indentation.
101 * agent.c: Fix indentation.
102 * aix-thread.c: Fix indentation.
103 * alpha-bsd-nat.c: Fix indentation.
104 * alpha-linux-tdep.c: Fix indentation.
105 * alpha-mdebug-tdep.c: Fix indentation.
106 * alpha-nbsd-tdep.c: Fix indentation.
107 * alpha-obsd-tdep.c: Fix indentation.
108 * alpha-tdep.c: Fix indentation.
109 * amd64-bsd-nat.c: Fix indentation.
110 * amd64-darwin-tdep.c: Fix indentation.
111 * amd64-linux-nat.c: Fix indentation.
112 * amd64-linux-tdep.c: Fix indentation.
113 * amd64-nat.c: Fix indentation.
114 * amd64-obsd-tdep.c: Fix indentation.
115 * amd64-tdep.c: Fix indentation.
116 * amd64-windows-tdep.c: Fix indentation.
117 * annotate.c: Fix indentation.
118 * arc-tdep.c: Fix indentation.
119 * arch-utils.c: Fix indentation.
120 * arch/arm-get-next-pcs.c: Fix indentation.
121 * arch/arm.c: Fix indentation.
122 * arm-linux-nat.c: Fix indentation.
123 * arm-linux-tdep.c: Fix indentation.
124 * arm-nbsd-tdep.c: Fix indentation.
125 * arm-pikeos-tdep.c: Fix indentation.
126 * arm-tdep.c: Fix indentation.
127 * arm-tdep.h: Fix indentation.
128 * arm-wince-tdep.c: Fix indentation.
129 * auto-load.c: Fix indentation.
130 * auxv.c: Fix indentation.
131 * avr-tdep.c: Fix indentation.
132 * ax-gdb.c: Fix indentation.
133 * ax-general.c: Fix indentation.
134 * bfin-linux-tdep.c: Fix indentation.
135 * block.c: Fix indentation.
136 * block.h: Fix indentation.
137 * blockframe.c: Fix indentation.
138 * bpf-tdep.c: Fix indentation.
139 * break-catch-sig.c: Fix indentation.
140 * break-catch-syscall.c: Fix indentation.
141 * break-catch-throw.c: Fix indentation.
142 * breakpoint.c: Fix indentation.
143 * breakpoint.h: Fix indentation.
144 * bsd-uthread.c: Fix indentation.
145 * btrace.c: Fix indentation.
146 * build-id.c: Fix indentation.
147 * buildsym-legacy.h: Fix indentation.
148 * buildsym.c: Fix indentation.
149 * c-typeprint.c: Fix indentation.
150 * c-valprint.c: Fix indentation.
151 * c-varobj.c: Fix indentation.
152 * charset.c: Fix indentation.
153 * cli/cli-cmds.c: Fix indentation.
154 * cli/cli-decode.c: Fix indentation.
155 * cli/cli-decode.h: Fix indentation.
156 * cli/cli-script.c: Fix indentation.
157 * cli/cli-setshow.c: Fix indentation.
158 * coff-pe-read.c: Fix indentation.
159 * coffread.c: Fix indentation.
160 * compile/compile-cplus-types.c: Fix indentation.
161 * compile/compile-object-load.c: Fix indentation.
162 * compile/compile-object-run.c: Fix indentation.
163 * completer.c: Fix indentation.
164 * corefile.c: Fix indentation.
165 * corelow.c: Fix indentation.
166 * cp-abi.h: Fix indentation.
167 * cp-namespace.c: Fix indentation.
168 * cp-support.c: Fix indentation.
169 * cp-valprint.c: Fix indentation.
170 * cris-linux-tdep.c: Fix indentation.
171 * cris-tdep.c: Fix indentation.
172 * darwin-nat-info.c: Fix indentation.
173 * darwin-nat.c: Fix indentation.
174 * darwin-nat.h: Fix indentation.
175 * dbxread.c: Fix indentation.
176 * dcache.c: Fix indentation.
177 * disasm.c: Fix indentation.
178 * dtrace-probe.c: Fix indentation.
179 * dwarf2/abbrev.c: Fix indentation.
180 * dwarf2/attribute.c: Fix indentation.
181 * dwarf2/expr.c: Fix indentation.
182 * dwarf2/frame.c: Fix indentation.
183 * dwarf2/index-cache.c: Fix indentation.
184 * dwarf2/index-write.c: Fix indentation.
185 * dwarf2/line-header.c: Fix indentation.
186 * dwarf2/loc.c: Fix indentation.
187 * dwarf2/macro.c: Fix indentation.
188 * dwarf2/read.c: Fix indentation.
189 * dwarf2/read.h: Fix indentation.
190 * elfread.c: Fix indentation.
191 * eval.c: Fix indentation.
192 * event-top.c: Fix indentation.
193 * exec.c: Fix indentation.
194 * exec.h: Fix indentation.
195 * expprint.c: Fix indentation.
196 * f-lang.c: Fix indentation.
197 * f-typeprint.c: Fix indentation.
198 * f-valprint.c: Fix indentation.
199 * fbsd-nat.c: Fix indentation.
200 * fbsd-tdep.c: Fix indentation.
201 * findvar.c: Fix indentation.
202 * fork-child.c: Fix indentation.
203 * frame-unwind.c: Fix indentation.
204 * frame-unwind.h: Fix indentation.
205 * frame.c: Fix indentation.
206 * frv-linux-tdep.c: Fix indentation.
207 * frv-tdep.c: Fix indentation.
208 * frv-tdep.h: Fix indentation.
209 * ft32-tdep.c: Fix indentation.
210 * gcore.c: Fix indentation.
211 * gdb_bfd.c: Fix indentation.
212 * gdbarch.sh: Fix indentation.
213 * gdbarch.c: Re-generate
214 * gdbarch.h: Re-generate.
215 * gdbcore.h: Fix indentation.
216 * gdbthread.h: Fix indentation.
217 * gdbtypes.c: Fix indentation.
218 * gdbtypes.h: Fix indentation.
219 * glibc-tdep.c: Fix indentation.
220 * gnu-nat.c: Fix indentation.
221 * gnu-nat.h: Fix indentation.
222 * gnu-v2-abi.c: Fix indentation.
223 * gnu-v3-abi.c: Fix indentation.
224 * go32-nat.c: Fix indentation.
225 * guile/guile-internal.h: Fix indentation.
226 * guile/scm-cmd.c: Fix indentation.
227 * guile/scm-frame.c: Fix indentation.
228 * guile/scm-iterator.c: Fix indentation.
229 * guile/scm-math.c: Fix indentation.
230 * guile/scm-ports.c: Fix indentation.
231 * guile/scm-pretty-print.c: Fix indentation.
232 * guile/scm-value.c: Fix indentation.
233 * h8300-tdep.c: Fix indentation.
234 * hppa-linux-nat.c: Fix indentation.
235 * hppa-linux-tdep.c: Fix indentation.
236 * hppa-nbsd-nat.c: Fix indentation.
237 * hppa-nbsd-tdep.c: Fix indentation.
238 * hppa-obsd-nat.c: Fix indentation.
239 * hppa-tdep.c: Fix indentation.
240 * hppa-tdep.h: Fix indentation.
241 * i386-bsd-nat.c: Fix indentation.
242 * i386-darwin-nat.c: Fix indentation.
243 * i386-darwin-tdep.c: Fix indentation.
244 * i386-dicos-tdep.c: Fix indentation.
245 * i386-gnu-nat.c: Fix indentation.
246 * i386-linux-nat.c: Fix indentation.
247 * i386-linux-tdep.c: Fix indentation.
248 * i386-nto-tdep.c: Fix indentation.
249 * i386-obsd-tdep.c: Fix indentation.
250 * i386-sol2-nat.c: Fix indentation.
251 * i386-tdep.c: Fix indentation.
252 * i386-tdep.h: Fix indentation.
253 * i386-windows-tdep.c: Fix indentation.
254 * i387-tdep.c: Fix indentation.
255 * i387-tdep.h: Fix indentation.
256 * ia64-libunwind-tdep.c: Fix indentation.
257 * ia64-libunwind-tdep.h: Fix indentation.
258 * ia64-linux-nat.c: Fix indentation.
259 * ia64-linux-tdep.c: Fix indentation.
260 * ia64-tdep.c: Fix indentation.
261 * ia64-tdep.h: Fix indentation.
262 * ia64-vms-tdep.c: Fix indentation.
263 * infcall.c: Fix indentation.
264 * infcmd.c: Fix indentation.
265 * inferior.c: Fix indentation.
266 * infrun.c: Fix indentation.
267 * iq2000-tdep.c: Fix indentation.
268 * language.c: Fix indentation.
269 * linespec.c: Fix indentation.
270 * linux-fork.c: Fix indentation.
271 * linux-nat.c: Fix indentation.
272 * linux-tdep.c: Fix indentation.
273 * linux-thread-db.c: Fix indentation.
274 * lm32-tdep.c: Fix indentation.
275 * m2-lang.c: Fix indentation.
276 * m2-typeprint.c: Fix indentation.
277 * m2-valprint.c: Fix indentation.
278 * m32c-tdep.c: Fix indentation.
279 * m32r-linux-tdep.c: Fix indentation.
280 * m32r-tdep.c: Fix indentation.
281 * m68hc11-tdep.c: Fix indentation.
282 * m68k-bsd-nat.c: Fix indentation.
283 * m68k-linux-nat.c: Fix indentation.
284 * m68k-linux-tdep.c: Fix indentation.
285 * m68k-tdep.c: Fix indentation.
286 * machoread.c: Fix indentation.
287 * macrocmd.c: Fix indentation.
288 * macroexp.c: Fix indentation.
289 * macroscope.c: Fix indentation.
290 * macrotab.c: Fix indentation.
291 * macrotab.h: Fix indentation.
292 * main.c: Fix indentation.
293 * mdebugread.c: Fix indentation.
294 * mep-tdep.c: Fix indentation.
295 * mi/mi-cmd-catch.c: Fix indentation.
296 * mi/mi-cmd-disas.c: Fix indentation.
297 * mi/mi-cmd-env.c: Fix indentation.
298 * mi/mi-cmd-stack.c: Fix indentation.
299 * mi/mi-cmd-var.c: Fix indentation.
300 * mi/mi-cmds.c: Fix indentation.
301 * mi/mi-main.c: Fix indentation.
302 * mi/mi-parse.c: Fix indentation.
303 * microblaze-tdep.c: Fix indentation.
304 * minidebug.c: Fix indentation.
305 * minsyms.c: Fix indentation.
306 * mips-linux-nat.c: Fix indentation.
307 * mips-linux-tdep.c: Fix indentation.
308 * mips-nbsd-tdep.c: Fix indentation.
309 * mips-tdep.c: Fix indentation.
310 * mn10300-linux-tdep.c: Fix indentation.
311 * mn10300-tdep.c: Fix indentation.
312 * moxie-tdep.c: Fix indentation.
313 * msp430-tdep.c: Fix indentation.
314 * namespace.h: Fix indentation.
315 * nat/fork-inferior.c: Fix indentation.
316 * nat/gdb_ptrace.h: Fix indentation.
317 * nat/linux-namespaces.c: Fix indentation.
318 * nat/linux-osdata.c: Fix indentation.
319 * nat/netbsd-nat.c: Fix indentation.
320 * nat/x86-dregs.c: Fix indentation.
321 * nbsd-nat.c: Fix indentation.
322 * nbsd-tdep.c: Fix indentation.
323 * nios2-linux-tdep.c: Fix indentation.
324 * nios2-tdep.c: Fix indentation.
325 * nto-procfs.c: Fix indentation.
326 * nto-tdep.c: Fix indentation.
327 * objfiles.c: Fix indentation.
328 * objfiles.h: Fix indentation.
329 * opencl-lang.c: Fix indentation.
330 * or1k-tdep.c: Fix indentation.
331 * osabi.c: Fix indentation.
332 * osabi.h: Fix indentation.
333 * osdata.c: Fix indentation.
334 * p-lang.c: Fix indentation.
335 * p-typeprint.c: Fix indentation.
336 * p-valprint.c: Fix indentation.
337 * parse.c: Fix indentation.
338 * ppc-linux-nat.c: Fix indentation.
339 * ppc-linux-tdep.c: Fix indentation.
340 * ppc-nbsd-nat.c: Fix indentation.
341 * ppc-nbsd-tdep.c: Fix indentation.
342 * ppc-obsd-nat.c: Fix indentation.
343 * ppc-ravenscar-thread.c: Fix indentation.
344 * ppc-sysv-tdep.c: Fix indentation.
345 * ppc64-tdep.c: Fix indentation.
346 * printcmd.c: Fix indentation.
347 * proc-api.c: Fix indentation.
348 * producer.c: Fix indentation.
349 * producer.h: Fix indentation.
350 * prologue-value.c: Fix indentation.
351 * prologue-value.h: Fix indentation.
352 * psymtab.c: Fix indentation.
353 * python/py-arch.c: Fix indentation.
354 * python/py-bpevent.c: Fix indentation.
355 * python/py-event.c: Fix indentation.
356 * python/py-event.h: Fix indentation.
357 * python/py-finishbreakpoint.c: Fix indentation.
358 * python/py-frame.c: Fix indentation.
359 * python/py-framefilter.c: Fix indentation.
360 * python/py-inferior.c: Fix indentation.
361 * python/py-infthread.c: Fix indentation.
362 * python/py-objfile.c: Fix indentation.
363 * python/py-prettyprint.c: Fix indentation.
364 * python/py-registers.c: Fix indentation.
365 * python/py-signalevent.c: Fix indentation.
366 * python/py-stopevent.c: Fix indentation.
367 * python/py-stopevent.h: Fix indentation.
368 * python/py-threadevent.c: Fix indentation.
369 * python/py-tui.c: Fix indentation.
370 * python/py-unwind.c: Fix indentation.
371 * python/py-value.c: Fix indentation.
372 * python/py-xmethods.c: Fix indentation.
373 * python/python-internal.h: Fix indentation.
374 * python/python.c: Fix indentation.
375 * ravenscar-thread.c: Fix indentation.
376 * record-btrace.c: Fix indentation.
377 * record-full.c: Fix indentation.
378 * record.c: Fix indentation.
379 * reggroups.c: Fix indentation.
380 * regset.h: Fix indentation.
381 * remote-fileio.c: Fix indentation.
382 * remote.c: Fix indentation.
383 * reverse.c: Fix indentation.
384 * riscv-linux-tdep.c: Fix indentation.
385 * riscv-ravenscar-thread.c: Fix indentation.
386 * riscv-tdep.c: Fix indentation.
387 * rl78-tdep.c: Fix indentation.
388 * rs6000-aix-tdep.c: Fix indentation.
389 * rs6000-lynx178-tdep.c: Fix indentation.
390 * rs6000-nat.c: Fix indentation.
391 * rs6000-tdep.c: Fix indentation.
392 * rust-lang.c: Fix indentation.
393 * rx-tdep.c: Fix indentation.
394 * s12z-tdep.c: Fix indentation.
395 * s390-linux-tdep.c: Fix indentation.
396 * score-tdep.c: Fix indentation.
397 * ser-base.c: Fix indentation.
398 * ser-mingw.c: Fix indentation.
399 * ser-uds.c: Fix indentation.
400 * ser-unix.c: Fix indentation.
401 * serial.c: Fix indentation.
402 * sh-linux-tdep.c: Fix indentation.
403 * sh-nbsd-tdep.c: Fix indentation.
404 * sh-tdep.c: Fix indentation.
405 * skip.c: Fix indentation.
406 * sol-thread.c: Fix indentation.
407 * solib-aix.c: Fix indentation.
408 * solib-darwin.c: Fix indentation.
409 * solib-frv.c: Fix indentation.
410 * solib-svr4.c: Fix indentation.
411 * solib.c: Fix indentation.
412 * source.c: Fix indentation.
413 * sparc-linux-tdep.c: Fix indentation.
414 * sparc-nbsd-tdep.c: Fix indentation.
415 * sparc-obsd-tdep.c: Fix indentation.
416 * sparc-ravenscar-thread.c: Fix indentation.
417 * sparc-tdep.c: Fix indentation.
418 * sparc64-linux-tdep.c: Fix indentation.
419 * sparc64-nbsd-tdep.c: Fix indentation.
420 * sparc64-obsd-tdep.c: Fix indentation.
421 * sparc64-tdep.c: Fix indentation.
422 * stabsread.c: Fix indentation.
423 * stack.c: Fix indentation.
424 * stap-probe.c: Fix indentation.
425 * stubs/ia64vms-stub.c: Fix indentation.
426 * stubs/m32r-stub.c: Fix indentation.
427 * stubs/m68k-stub.c: Fix indentation.
428 * stubs/sh-stub.c: Fix indentation.
429 * stubs/sparc-stub.c: Fix indentation.
430 * symfile-mem.c: Fix indentation.
431 * symfile.c: Fix indentation.
432 * symfile.h: Fix indentation.
433 * symmisc.c: Fix indentation.
434 * symtab.c: Fix indentation.
435 * symtab.h: Fix indentation.
436 * target-float.c: Fix indentation.
437 * target.c: Fix indentation.
438 * target.h: Fix indentation.
439 * tic6x-tdep.c: Fix indentation.
440 * tilegx-linux-tdep.c: Fix indentation.
441 * tilegx-tdep.c: Fix indentation.
442 * top.c: Fix indentation.
443 * tracefile-tfile.c: Fix indentation.
444 * tracepoint.c: Fix indentation.
445 * tui/tui-disasm.c: Fix indentation.
446 * tui/tui-io.c: Fix indentation.
447 * tui/tui-regs.c: Fix indentation.
448 * tui/tui-stack.c: Fix indentation.
449 * tui/tui-win.c: Fix indentation.
450 * tui/tui-winsource.c: Fix indentation.
451 * tui/tui.c: Fix indentation.
452 * typeprint.c: Fix indentation.
453 * ui-out.h: Fix indentation.
454 * unittests/copy_bitwise-selftests.c: Fix indentation.
455 * unittests/memory-map-selftests.c: Fix indentation.
456 * utils.c: Fix indentation.
457 * v850-tdep.c: Fix indentation.
458 * valarith.c: Fix indentation.
459 * valops.c: Fix indentation.
460 * valprint.c: Fix indentation.
461 * valprint.h: Fix indentation.
462 * value.c: Fix indentation.
463 * value.h: Fix indentation.
464 * varobj.c: Fix indentation.
465 * vax-tdep.c: Fix indentation.
466 * windows-nat.c: Fix indentation.
467 * windows-tdep.c: Fix indentation.
468 * xcoffread.c: Fix indentation.
469 * xml-syscall.c: Fix indentation.
470 * xml-tdesc.c: Fix indentation.
471 * xstormy16-tdep.c: Fix indentation.
472 * xtensa-config.c: Fix indentation.
473 * xtensa-linux-nat.c: Fix indentation.
474 * xtensa-linux-tdep.c: Fix indentation.
475 * xtensa-tdep.c: Fix indentation.
476
e1f57067
AB
4772020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
478 Craig Blackmore <craig.blackmore@embecosm.com>
479
480 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
481 as an unsigned value.
482
ae7754b2
TT
4832020-11-01 Tom Tromey <tom@tromey.com>
484
485 * dbxread.c (dbx_end_psymtab): Update.
486 * dwarf2/read.c (process_psymtab_comp_unit_reader)
487 (build_type_psymtabs_reader): Update.
488 * xcoffread.c (xcoff_end_psymtab): Update.
489 * ctfread.c (scan_partial_symbols): Update.
490 * psymtab.c (sort_pst_symbols): Remove.
491 (partial_symtab::end): Rename from end_psymtab_common. Inline
492 sort_pst_symbols.
493 * psympriv.h (struct partial_symtab) <end>: New method.
494 (end_psymtab_common): Don't declare.
495
0684bb51
TT
4962020-11-01 Tom Tromey <tom@tromey.com>
497
498 * symmisc.c (count_psyms): New function.
499 (print_objfile_statistics): Use it.
500 * psymtab.c (append_psymbol_to_list): Remove.
501 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
502 * objfiles.h (struct objstats) <n_psyms>: Remove.
503
089002bb
TT
5042020-11-01 Tom Tromey <tom@tromey.com>
505
506 * dbxread.c (dbx_end_psymtab): Update.
507 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
508 (build_type_psymtabs_reader): Update.
509 * xcoffread.c (xcoff_end_psymtab): Update.
510 * ctfread.c (scan_partial_symbols): Update.
511 * psympriv.h (end_psymtab_common): Update.
512 * psymtab.c (end_psymtab_common): Remove objfile parameter.
513 (sort_pst_symbols): Likewise.
514
525454d6
TT
5152020-11-01 Tom Tromey <tom@tromey.com>
516
517 * dbxread.c (dbx_symfile_read): Update.
518 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
519 * xcoffread.c (xcoff_initial_scan): Update.
520 * psympriv.h (init_psymbol_list): Don't declare.
521 * psymtab.c (init_psymbol_list): Remove.
522
60bd1d53
JB
5232020-11-01 Joel Brobecker <brobecker@adacore.com>
524
525 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
526 gnat_encoded_fixed_type_info. Update all callers.
527
db99d0d0
JB
5282020-11-01 Joel Brobecker <brobecker@adacore.com>
529
530 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
531 line too long.
532
75f24e86
JB
5332020-11-01 Joel Brobecker <brobecker@adacore.com>
534
535 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
536 cast_from_fixed. Update all callers.
537 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
538 Update all callers.
539 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
540 Update all callers.
541 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
542 ada_scaling_factor.
543 * ada-typeprint.c: Replace call to ada_scaling_factor by call
544 to print_gnat_encoded_fixed_point_type.
545 * ada-valprint.c: Likewise.
546
4f0469cd
AB
5472020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
548
549 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
550 (debug_prefixed_printf): Add check of debug_displaced flag.
551 * linux-nat.c (linux_nat_debug_printf): Add check of
552 debug_linux_nat flag.
553
17417fb0
SM
5542020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
555
556 * infrun.c (infrun_debug_printf_1): Remove.
557 (displaced_debug_printf_1): Remove.
558 (stop_all_threads): Use debug_prefixed_printf.
559 * infrun.h (infrun_debug_printf_1): Remove.
560 (infrun_debug_printf): Use debug_prefixed_printf.
561 (displaced_debug_printf_1): Remove.
562 (displaced_debug_printf): Use debug_prefixed_printf.
563 * linux-nat.c (linux_nat_debug_printf_1): Remove.
564 (linux_nat_debug_printf): Use debug_prefixed_printf.
565
ad6dba1c
SM
5662020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
567
568 * configure: Re-generate.
569 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
570 AC_LANG_PROGRAM.
571
b6fb30ed
SM
5722020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
573
574 * configure: Re-generate.
575
5164c117
SM
5762020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
577
578 * configure: Re-generate.
579
864ca435
SM
5802020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
581
582 * configure: Re-generate.
583
b9442ec1
SM
5842020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
585
586 * configure: Re-generate.
587
294f2697
SM
5882020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
589
590 * acinclude.m4: Modernize.
591 * configure: Re-generate.
592
5593a99a
SM
5932020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
594
595 * configure.ac: Modernize.
596 * configure: Re-generate.
597
e41fda1d
SM
5982020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
599
600 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
601 * configure: Re-generate.
602 * configure.ac: Remove AM_PROG_CC_STDC.
603
91e1a0ed
SM
6042020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
605
606 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
607 AC_CANONICAL_SYSTEM.
608 * configure: Re-generate.
609
136821d9
SM
6102020-10-30 Simon Marchi <simon.marchi@efficios.com>
611
612 * infrun.h (displaced_debug_printf): New macro. Replace
613 displaced debug prints throughout to use it.
614 (displaced_debug_printf_1): New declaration.
615 (displaced_step_dump_bytes): Return string, remove ui_file
616 parameter, update all callers.
617 * infrun.c (displaced_debug_printf_1): New function.
618 (displaced_step_dump_bytes): Return string, remove ui_file
619 parameter
620
aa2045e7
SM
6212020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
622
623 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
624
b1ec2735
TT
6252020-10-30 Tom Tromey <tromey@adacore.com>
626
627 * Makefile.in (stamp-init): Depend on config.status.
628
b78b3a29
TBA
6292020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
630
631 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
632
d70bdd3c
PA
6332020-10-30 Pedro Alves <pedro@palves.net>
634
635 * thread.c (lookup_selected_frame): Move ...
636 * frame.c (lookup_selected_frame): ... here.
637
79952e69
PA
6382020-10-30 Pedro Alves <pedro@palves.net>
639
640 * blockframe.c (block_innermost_frame): Use get_selected_frame.
641 * frame.c
642 (scoped_restore_selected_frame::scoped_restore_selected_frame):
643 Use save_selected_frame. Save language as well.
644 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
645 Use restore_selected_frame, and restore language as well.
646 (selected_frame_id, selected_frame_level): New.
647 (selected_frame): Update comments.
648 (save_selected_frame, restore_selected_frame): New.
649 (get_selected_frame): Use lookup_selected_frame.
650 (get_selected_frame_if_set): Delete.
651 (select_frame): Record selected_frame_level and selected_frame_id.
652 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
653 fields.
654 (get_selected_frame): Make 'message' parameter optional.
655 (get_selected_frame_if_set): Delete declaration.
656 (select_frame): Update comments.
657 (save_selected_frame, restore_selected_frame)
658 (lookup_selected_frame): Declare.
659 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
660 * infrun.c (struct infcall_control_state) <selected_frame_level>:
661 New field.
662 (save_infcall_control_state): Use save_selected_frame.
663 (restore_selected_frame): Delete.
664 (restore_infcall_control_state): Use restore_selected_frame.
665 * stack.c (select_frame_command_core, frame_command_core): Use
666 get_selected_frame.
667 * thread.c (restore_selected_frame): Rename to ...
668 (lookup_selected_frame): ... this and make extern. Select the
669 current frame if the frame level is -1.
670 (scoped_restore_current_thread::restore): Also restore the
671 language.
672 (scoped_restore_current_thread::~scoped_restore_current_thread):
673 Don't try/catch.
674 (scoped_restore_current_thread::scoped_restore_current_thread):
675 Save the language as well. Use save_selected_frame.
676
58103c33
SM
6772020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
678
679 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
680 documentation.
681 * gdbarch.h: Re-generate.
682
40a53766
SM
6832020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
684
685 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
686 parameter.
687 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
688 Likewise.
689 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
690 Likewise.
691 * arch-utils.c (default_displaced_step_hw_singlestep):
692 Likewise.
693 * arch-utils.h (default_displaced_step_hw_singlestep):
694 Likewise.
695 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
696 Likewise.
697 * s390-tdep.c (s390_displaced_step_hw_singlestep):
698 Likewise.
699 * gdbarch.c: Re-generate.
700 * gdbarch.h: Re-generate.
701 * infrun.c (resume_1): Adjust.
702
8407f91b
TT
7032020-10-29 Tom Tromey <tom@tromey.com>
704
705 * progspace.c (program_space::~program_space): Don't call
706 exec_close.
707
5008b3b2
TT
7082020-10-29 Tom Tromey <tom@tromey.com>
709
710 * exec.c (exec_target::close): Don't change current program
711 space.
712
d9eebde0
TT
7132020-10-29 Tom Tromey <tom@tromey.com>
714
715 * symfile.c (add_symbol_file_command): Update.
716 * exec.c (program_space::add_target_sections): Rename.
717 * symfile-mem.c (symbol_file_add_from_memory): Update.
718 * progspace.h (struct program_space) <add_target_sections>:
719 Declare new overload.
720 * exec.h (add_target_sections_of_objfile): Don't declare.
721
3769e227
TT
7222020-10-29 Tom Tromey <tom@tromey.com>
723
724 * solib.c (solib_map_sections): Update.
725 * exec.c (program_space::add_target_sections): Now a method.
726 (exec_file_attach): Update.
727 * exec.h (add_target_sections): Don't declare.
728 * progspace.h (struct program_space) <add_target_sections>:
729 Declare.
730
2a3f84af
TT
7312020-10-29 Tom Tromey <tom@tromey.com>
732
733 * progspace.h (struct program_space) <remove_target_sections>:
734 Declare.
735 * exec.c (program_space::remove_target_sections): Now a method.
736 * exec.h (remove_target_sections): Don't declare.
737
004eecfd
TT
7382020-10-29 Tom Tromey <tom@tromey.com>
739
740 * inferior.c (delete_inferior): Update.
741 * progspace.c (program_space::empty): Rename from
742 program_space_empty_p. Return bool.
743 * progspace.h (struct program_space) <empty>: New method.
744 (program_space_empty_p): Don't declare.
745
e39fb971
TT
7462020-10-29 Tom Tromey <tom@tromey.com>
747
748 * progspace.c (program_space::~program_space): Don't call
749 clear_program_space_solib_cache.
750 (program_space::clear_solib_cache): Rename from
751 clear_solib_cache.
752 * solib.c (handle_solib_event): Update.
753 * progspace.h (struct program_space) <clear_solib_cache>: New
754 method.
755 (clear_program_space_solib_cache): Don't declare.
756
a42d7dd8
TT
7572020-10-29 Tom Tromey <tom@tromey.com>
758
759 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
760 * target.c (info_target_command): Update.
761 * symfile.c (syms_from_objfile_1, finish_new_objfile)
762 (symbol_file_clear, reread_symbols): Update.
763 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
764 * stabsread.c (scan_file_globals): Update.
765 * solib.c (update_solib_list): Update.
766 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
767 (svr4_fetch_objfile_link_map, enable_break)
768 (svr4_relocate_main_executable)
769 (svr4_iterate_over_objfiles_in_search_order): Update.
770 * solib-frv.c (lm_base, enable_break)
771 (frv_relocate_main_executable): Update.
772 (main_got, frv_fdpic_find_canonical_descriptor): Update.
773 (frv_fetch_objfile_link_map): Update.
774 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
775 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
776 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
777 * remote.c (remote_target::get_offsets): Update.
778 (remote_target::start_remote)
779 (extended_remote_target::post_attach): Update.
780 * objfiles.c (entry_point_address_query): Update.
781 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
782 * minsyms.c (get_symbol_leading_char): Update.
783 * frame.c (inside_main_func): Update.
784 * progspace.h (symfile_objfile): Remove macro.
785
19f6550e
TT
7862020-10-29 Tom Tromey <tom@tromey.com>
787
788 * exec.c (exec_file_attach): Update.
789 * progspace.c (program_space::exec_close): Update.
790 * progspace.h (struct program_space) <ebfd>: Now a
791 gdb_bfd_ref_ptr.
792 <set_exec_bfd>: Change argument type.
793 <exec_bfd>: Update.
794
7e10abd1
TT
7952020-10-29 Tom Tromey <tom@tromey.com>
796
797 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
798 * symfile.c (reread_symbols): Update.
799 * symfile-mem.c (add_symbol_file_from_memory_command)
800 (add_vsyscall_page): Update.
801 * source-cache.c (source_cache::get_plain_source_lines): Update.
802 * solib-svr4.c (find_program_interpreter, elf_locate_base)
803 (svr4_current_sos_direct, svr4_exec_displacement)
804 (svr4_relocate_main_executable): Update.
805 (svr4_iterate_over_objfiles_in_search_order): Update.
806 * solib-frv.c (enable_break2, enable_break): Update.
807 * solib-dsbt.c (lm_base, enable_break): Update.
808 * solib-darwin.c (find_program_interpreter)
809 (darwin_solib_create_inferior_hook): Update.
810 * sol-thread.c (rw_common, ps_pdmodel): Update.
811 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
812 * remote.c (compare_sections_command)
813 (remote_target::trace_set_readonly_regions): Update.
814 * remote-sim.c (get_sim_inferior_data)
815 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
816 (gdbsim_target_open, gdbsim_target::files_info): Update.
817 * exec.h (exec_bfd): Remove macro.
818 * progspace.c (initialize_progspace): Update.
819 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
820 Update.
821 * nto-procfs.c (nto_procfs_target::post_attach)
822 (nto_procfs_target::create_inferior): Update.
823 * maint.c (maintenance_info_sections): Update.
824 * linux-thread-db.c (thread_db_target::get_thread_local_address):
825 Update.
826 * infcmd.c (post_create_inferior): Update.
827 * gcore.c (default_gcore_arch, default_gcore_target): Update.
828 (objfile_find_memory_regions): Update.
829 * exec.c (validate_exec_file, exec_file_attach)
830 (exec_read_partial_read_only, print_section_info): Update.
831 * corelow.c (core_target_open): Update.
832 * corefile.c (reopen_exec_file, validate_files): Update.
833 * arm-tdep.c (gdb_print_insn_arm): Update.
834 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
835 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
836 methods.
837
b55221ab
TT
8382020-10-29 Tom Tromey <tom@tromey.com>
839
840 * progspace.h (current_target_sections): Remove macro.
841 * solib-svr4.c (scan_dyntag): Update.
842 * solib-dsbt.c (scan_dyntag): Update.
843 * exec.c (exec_target::close): Update.
844 (add_target_sections, add_target_sections_of_objfile)
845 (remove_target_sections, exec_target::get_section_table)
846 (exec_target::files_info, set_section_command)
847 (exec_set_section_address, exec_target::has_memory)
848 (exec_target::has_memory): Update.
849
5a36e715
TT
8502020-10-29 Tom Tromey <tom@tromey.com>
851
852 * source-cache.c (source_cache::get_plain_source_lines): Use
853 current_program_space.
854 * corefile.c (reopen_exec_file): Use current_program_space.
855 * exec.c (exec_file_attach): Use current_program_space.
856 * exec.h (exec_bfd_mtime): Remove.
857
784c8592
TT
8582020-10-29 Tom Tromey <tom@tromey.com>
859
860 * gcore.c (default_gcore_mach): Remove.
861 (create_gcore_bfd): Update.
862
8a4f1402
TT
8632020-10-29 Tom Tromey <tom@tromey.com>
864
865 * progspace.c (program_space::exec_close): New method, from
866 exec_close in exec.c.
867 * exec.c (exec_close): Move to progspace.c.
868 (exec_target::close, exec_file_attach): Update.
869 * progspace.h (struct program_space) <exec_close>: Declare
870 method.
871
c20cb686
TT
8722020-10-29 Tom Tromey <tom@tromey.com>
873
874 * progspace.h (struct program_space) <exec_filename>: Rename from
875 pspace_exec_filename. Now a unique_xmalloc_ptr.
876 * inferior.c (print_selected_inferior): Update.
877 (print_inferior): Update.
878 * mi/mi-main.c (print_one_inferior): Update.
879 * exec.h (exec_filename): Remove macro.
880 * corefile.c (get_exec_file): Update.
881 * exec.c (exec_close): Update.
882 (exec_file_attach): Update.
883 * progspace.c (clone_program_space): Update.
884 (print_program_space): Update.
885
6be2a9ab
TT
8862020-10-29 Tom Tromey <tom@tromey.com>
887
888 * target-section.h (struct target_section): Add constructor.
889 * exec.c (build_section_table, add_target_sections_of_objfile):
890 Update.
891 * corelow.c (core_target::build_file_mappings): Update.
892
cfaa8f76
TBA
8932020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
894
895 PR gdb/19318
896 * inferior.c (detach_inferior_command): Restore the current thread.
897 (kill_inferior_command): Ditto.
898
1b00ef06
TV
8992020-10-28 Tom de Vries <tdevries@suse.de>
900
901 PR symtab/26772
902 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
903 map, check it in the "best match" loop.
904
7f40ce1a
SM
9052020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
906
907 * m32c-tdep.c: Remove unused includes.
908
5eb9e3f5
SM
9092020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
910
911 * xtensa-tdep.c: Remove includes.
912
b1d4d8d1
TBA
9132020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
914
915 * breakpoint.c (struct condition_command_opts): New struct.
916 (condition_command_option_defs): New static global.
917 (make_condition_command_options_def_group): New function.
918 (condition_completer): Update to consider the '-force' flag.
919 (condition_command): Use gdb::option for the '-force' flag.
920
bd24c5d6
TV
9212020-10-27 Tom de Vries <tdevries@suse.de>
922
923 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
924 symbols in section check.
925
61eb46a4
TV
9262020-10-27 Tom de Vries <tdevries@suse.de>
927
928 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
929
733d554a
TBA
9302020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
931
932 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
933 * breakpoint.c: Update the help text of the 'condition' and 'break'
934 commands.
935 (set_breakpoint_condition): Take a new bool parameter
936 to control whether condition definition should be forced even when
937 the condition expression is invalid in all of the current locations.
938 (condition_command): Update the call to 'set_breakpoint_condition'.
939 (find_condition_and_thread): Take the "-force-condition" flag into
940 account.
941 * linespec.c (linespec_keywords): Add "-force-condition" as an
942 element.
943 (FORCE_KEYWORD_INDEX): New #define.
944 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
945 as a keyword.
946 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
947 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
948 * python/py-breakpoint.c (bppy_set_condition): Ditto.
949 * NEWS: Mention the changes to the 'break' and 'condition' commands.
950
b5fa468f
TBA
9512020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
952
953 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
954 * breakpoint.c (set_breakpoint_location_condition): New function.
955 (set_breakpoint_condition): Disable a breakpoint location if parsing
956 the condition string gives an error.
957 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
958 (build_target_condition_list): Ditto.
959 (build_target_command_list): Ditto.
960 (build_bpstat_chain): Ditto.
961 (print_one_breakpoint_location): Ditto.
962 (print_one_breakpoint): Ditto.
963 (breakpoint_1): Ditto.
964 (bp_location::bp_location): Ditto.
965 (locations_are_equal): Ditto.
966 (update_breakpoint_locations): Ditto.
967 (enable_disable_bp_num_loc): Ditto.
968 (init_breakpoint_sal): Use set_breakpoint_location_condition.
969 (find_condition_and_thread_for_sals): New static function.
970 (create_breakpoint): Call find_condition_and_thread_for_sals.
971 (location_to_sals): Call find_condition_and_thread_for_sals instead
972 of find_condition_and_thread.
973
1c47ec3e
TV
9742020-10-26 Tom de Vries <tdevries@suse.de>
975
976 * dwarf2/read.c (process_full_comp_unit): Call
977 dwarf2_find_base_address.
978
6390859c
TT
9792020-10-26 Tom Tromey <tromey@adacore.com>
980
981 * gdbtypes.c (create_range_type): Revert previous patch. Add
982 comment.
983
d744f0f9
PA
9842020-10-26 Pedro Alves <pedro@palves.net>
985
986 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
987 (my_waitpid): Use gdb::handle_eintr.
988
006811bc
SM
9892020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
990
991 * acinclude.m4: Update ptrace.m4 path.
992 * ptrace.m4: Moved to gdbsupport.
993
c75e31a1
SM
9942020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
995
996 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
997 instead of target_gdbarch.
998
32495661
SM
9992020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1000
1001 * jit.c (jit_reader_load_command): Pass current inferior.
1002 (jit_inferior_init): Change parameter type to inferior, use it.
1003 (jit_inferior_created): Remove.
1004 (jit_inferior_created_hook): Pass inferior parameter down.
1005 (_initialize_jit): Use jit_inferior_created_hook instead of
1006 jit_inferior_created.
1007 * jit.h (jit_inferior_created_hook): Add inferior parameter.
1008 * infrun.c (follow_exec): Pass inferior to
1009 jit_inferior_created_hook.
1010
3f66685e
SM
10112020-10-24 Simon Marchi <simon.marchi@efficios.com>
1012
1013 * linux-thread-db.c (check_pid_namespace_match): Add inferior
1014 parameter and use it.
1015 (thread_db_inferior_created): Pass inferior argument.
1016
a0ff652f
SM
10172020-10-24 Simon Marchi <simon.marchi@efficios.com>
1018
1019 * aix-thread.c (aix_thread_inferior_created): Add inferior
1020 parameter.
1021 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
1022 * dummy-frame.c (cleanup_dummy_frames): Likewise.
1023 * jit.c (jit_inferior_created): Likewise.
1024 * linux-thread-db.c (thread_db_inferior_created): Likewise.
1025 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
1026 * observable.h (inferior_created): Likewise.
1027 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
1028 * symfile-mem.c (add_vsyscall_page): Likewise.
1029 * infcmd.c (post_create_inferior): Pass inferior argument.
1030
3c67532c
JB
10312020-10-24 Joel Brobecker <brobecker@adacore.com>
1032
1033 GDB 10.1 released.
1034
8747316e
JB
10352020-10-23 Joel Brobecker <brobecker@adacore.com>
1036
1037 * ada-typeprint.c (ada_print_type): Remove superfluous second call
1038 to ada_check_typedef.
1039
1a0ea399
AB
10402020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1041
1042 * f-exp.y (f_parse): Rename to...
1043 (f_language::parser): ...this.
1044 * f-lang.c (f_get_encoding): Rename to...
1045 (f_language::get_encoding): ...this.
1046 (f_op_print_tab): Rename to...
1047 (f_language::op_print_tab): ...this.
1048 (exp_descriptor_f): Rename to...
1049 (f_language::exp_descriptor_tab): ...this.
1050 (class f_language): Moved to f-lang.h.
1051 (f_language::language_arch_info): New function, moved out of class
1052 declaration.
1053 (f_language::search_name_hash): Likewise.
1054 (f_language::lookup_symbol_nonlocal): Likewise.
1055 (f_language::get_symbol_name_matcher_inner): Likewise.
1056 * f-lang.h: Add 'valprint.h' include.
1057 (class f_language): Moved here from f-lang.c.
1058 * f-typeprint.c (f_type_print_args): Delete commented out
1059 declaration.
1060 (f_print_typedef): Rename to...
1061 (f_language::print_typedef): ...this.
1062 (f_print_type): Rename to...
1063 (f_language::print_type): ...this.
1064 (f_type_print_varspec_prefix): Delete declaration and rename to...
1065 (f_language::f_type_print_varspec_prefix): ...this.
1066 (f_type_print_varspec_suffix): Delete declaration and rename to...
1067 (f_language::f_type_print_varspec_suffix): ...this.
1068 (f_type_print_base): Delete declaration and rename to...
1069 (f_language::f_type_print_base): ...this.
1070 * f-valprint.c (f_value_print_inner): Rename to...
1071 (f_language::value_print_inner): ...this.
1072 * parse.c: Delete 'f-lang.h' include.
1073
88cefd9b
AB
10742020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1075
1076 * language.h (language_defn::print_type): Add variable names in
1077 declaration, and update header comment.
1078
5399db93
AB
10792020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1080
1081 * ada-lang.c (ada_language::demangle): Rename to...
1082 (ada_language::demangle_symbol): ...this.
1083 * c-lang.c (cplus_language::demangle): Rename to...
1084 (cplus_language::demangle_symbol): ...this.
1085 * d-lang.c (d_language::demangle): Rename to...
1086 (d_language::demangle_symbol): ...this.
1087 * f-lang.c (f_language::demangle): Rename to...
1088 (f_language::demangle_symbol): ...this.
1089 * go-lang.c (go_language::demangle): Rename to...
1090 (go_language::demangle_symbol): ...this.
1091 * language.c (language_demangle): Update call to demangle_symbol.
1092 (auto_or_unknown_language::demangle): Rename to...
1093 (auto_or_unknown_language::demangle_symbol): ...this.
1094 * language.h (language_defn::demangle): Rename to...
1095 (language_defn::demangle_symbol): ...this.
1096 * objc-lang.c (objc_language::demangle): Rename to...
1097 (objc_language::demangle_symbol): ...this.
1098 * rust-lang.c (rust_language::demangle): Rename to...
1099 (rust_language::demangle_symbol): ...this.
1100
4b2f86ef
AB
11012020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1102
1103 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
1104 (iterate_over_file_blocks): Replace use of macro with the macros
1105 definition.
1106
e74b39de
AB
11072020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1108
1109 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
1110 * valprint.c (maybe_print_array_index): Replace use of macro with
1111 the macros definition.
1112
00c696a6
AB
11132020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1114
1115 * ada-lang.c (ada_language::print_array_index): Call value_print
1116 directly.
1117 * language.c (language_defn::print_array_index): Likewise.
1118 * language.h (LA_VALUE_PRINT): Delete.
1119 * valprint.c (value_print): Call value_print on the
1120 current_language directly.
1121
d3b67c56
AB
11222020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1123
1124 * language.h (LA_PRINT_TYPEDEF): Delete.
1125 * typeprint.c (typedef_print): Call print_typedef directly on the
1126 current_language object.
1127
790e2a12
AB
11282020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1129
1130 * m2-exp.y (m2_parse): Rename to...
1131 (m2_language::parser): ...this. Update function signature.
1132 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
1133 (m2_op_print): Rename to...
1134 (m2_language::op_print_tab): ...this, and make const.
1135 (exp_descriptor_modula2): Rename to...
1136 (m2_language::exp_descriptor_modula2): ...this.
1137 (class m2_language): Move to m2-lang.h.
1138 (m2_language::language_arch_info): New function, moved out of
1139 class declaration.
1140 (m2_language::printchar): New function, body from m2_printchar.
1141 (m2_language::printstr): New function, moved out of class
1142 declaration.
1143 (m2_language::emitchar): Likewise.
1144 * m2-lang.h (m2_parse): Delete declaration.
1145 (m2_print_typedef): Delete declaration.
1146 (m2_value_print_inner): Delete declaration.
1147 (class m2_language): Class declaration moved from m2-lang.c,
1148 larger functions are left in m2-lang.c.
1149 * m2-typeprint.c (m2_print_typedef): Rename to...
1150 (m2_language::print_typedef): ...this, and update function
1151 signature.
1152 * m2-valprint.c (m2_value_print_inner): Rename to...
1153 (m2_language::value_print_inner): ...this, replace use of
1154 LA_PRINT_STRING with a direct call to printstr member function,
1155 and update recursive call.
1156
b01175fc
AB
11572020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1158
1159 * language.c (default_is_string_type_p): Delete, implementation
1160 moved into auto_or_unknown_language::is_string_type_p.
1161 (unk_op_print_tab): Moved into
1162 auto_or_unknown_language::opcode_print_table.
1163 (unknown_language_arch_info): Delete, implementation moved into
1164 auto_or_unknown_language::language_arch_info.
1165 (class auto_or_unknown_language): New class, member functions
1166 copied from unknown_language class, with some updates.
1167 (class unknown_language): Most member functions moved into
1168 auto_or_unknown_language class. Inherit from
1169 auto_or_unknown_language class.
1170 (class auto_language): Inherit from auto_or_unknown_language.
1171 Delete most member functions.
1172
1a97fe8c
HD
11732020-10-22 Hannes Domani <ssbssa@yahoo.de>
1174
1175 * stabsread.c (read_member_functions): Remove gdb_assert.
1176
6b9d0dfd
HD
11772020-10-22 Hannes Domani <ssbssa@yahoo.de>
1178
1179 * gdbtypes.c (init_complex_type): Check target type name.
1180
4b4bb603
SM
11812020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1182
1183 * target-debug.h (target_debug_print_struct_target_ops_p):
1184 Remove.
1185 (target_debug_print_async_callback_ftype_p): Remove.
1186 (target_debug_print_struct_trace_state_variable_p): Remove.
1187 (target_debug_print_struct_traceframe_info_p): Remove.
1188 (target_debug_print_VEC__btrace_block_s__pp): Remove.
1189 (target_debug_print_enum_btrace_format): Remove.
1190 (target_debug_print_enum_info_proc_what): Remove.
1191 (target_debug_print_thread_info_pp): Remove.
1192
24f5300a
SM
11932020-10-22 Simon Marchi <simon.marchi@efficios.com>
1194
1195 * target.h (struct target_ops) <make_corefile_notes>:
1196 Change return type to unique pointer.
1197 * target.c (dummy_make_corefile_notes): Likewise.
1198 * exec.c (struct exec_target) <make_corefile_notes>:
1199 Likewise.
1200 (exec_target::make_corefile_notes): Likewise.
1201 * procfs.c (class procfs_target) <make_corefile_notes>:
1202 Likewise.
1203 (procfs_do_thread_registers): Adjust to unique pointer.
1204 (struct procfs_corefile_thread_data): Add constructor.
1205 <note_data>: Change type to unique pointer.
1206 (procfs_corefile_thread_callback): Adjust to unique pointer.
1207 (procfs_target::make_corefile_notes): Change return type to
1208 unique pointer.
1209 * target-delegates.c: Re-generate.
1210 * gcore.c (write_gcore_file_1): Adjust.
1211 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
1212 New.
1213
5fb4027f
TV
12142020-10-22 Tom de Vries <tdevries@suse.de>
1215
1216 * block.c (find_block_in_blockvector): Make sure the returned block
1217 contains pc.
1218
4a636814
SM
12192020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1220
1221 PR gdb/26693
1222 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
1223 parameter.
1224 (load_cu): Pass existing CU.
1225 (process_imported_unit_die): Likewise.
1226 (follow_die_offset): Likewise.
1227
1bd57575
LM
12282020-10-22 Luis Machado <luis.machado@linaro.org>
1229
1230 * corelow.c (core_target::xfer_partial): Also check for an empty
1231 m_core_unavailable_mappings vector.
1232
6b4c676c
AB
12332020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1234
1235 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
1236 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
1237 * f-exp.y (arglist): Allow for a series of subranges.
1238 (subrange): Add cases for subranges with strides.
1239 * f-lang.c (value_f90_subarray): Catch use of array strides and
1240 throw an error.
1241 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
1242
f2d8e4c5
AB
12432020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1244
1245 * expprint.c (print_subexp_standard): Change enum range_type to
1246 range_flag and rename variables to match.
1247 (dump_subexp_body_standard): Likewise.
1248 * expression.h (enum range_type): Rename to...
1249 (enum range_flag): ...this.
1250 (range_types): Rename to...
1251 (range_flags): ...this.
1252 * f-lang.c (value_f90_subarray): Change enum range_type to
1253 range_flag and rename variables to match.
1254 * parse.c (operator_length_standard): Likewise.
1255 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
1256 range_type to range_flag.
1257 * rust-lang.c (rust_evaluate_funcall): Likewise.
1258 (rust_range): Likewise.
1259 (rust_compute_range): Likewise.
1260 (rust_subscript): Likewise.
1261
2f1b18db
AB
12622020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1263
1264 * expprint.c (print_subexp_standard): Update to reflect changes to
1265 enum range_type.
1266 (dump_subexp_body_standard): Likewise.
1267 * expression.h (enum range_type): Convert to a bit field enum, and
1268 make the enum unsigned.
1269 * f-exp.y (subrange): Update to reflect changes to enum
1270 range_type.
1271 * f-lang.c (value_f90_subarray): Likewise.
1272 * parse.c (operator_length_standard): Likewise.
1273 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
1274 * rust-lang.c (rust_range): Likewise.
1275 (rust_compute_range): Likewise.
1276 (rust_subscript): Likewise.
1277
a46d1843
SM
12782020-10-21 Simon Marchi <simon.marchi@efficios.com>
1279
1280 * infrun.c (displaced_step_in_progress_thread): Fix comment.
1281 (displaced_step_in_progress): Fix comment.
1282
c21f37a8
SM
12832020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
1284
1285 * gdbarch.sh (make_corefile_notes): Return unique pointer.
1286 * gdbarch.c: Re-generate.
1287 * gdbarch.h: Re-generate.
1288 * gcore.c (write_gcore_file_1): Adjust.
1289 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
1290 constructor.
1291 <note_data>: Change type to unique pointer.
1292 <abort_iteration>: Change type to bool.
1293 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
1294 (fbsd_collect_thread_registers): Return void, adjust.
1295 (struct fbsd_corefile_thread_data): Add construtor.
1296 <note_data>: Change type to unique pointer.
1297 (fbsd_corefile_thread): Adjust.
1298 (fbsd_make_corefile_notes): Return unique pointer, adjust.
1299 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
1300 to unique pointer, adjust.
1301 (struct linux_collect_regset_section_cb_data): Add constructor.
1302 <note_data>: Change type to unique pointer.
1303 <abort_iteration>: Change type to bool.
1304 (linux_collect_thread_registers): Return void, adjust.
1305 (struct linux_corefile_thread_data): Add constructor.
1306 <note_data>: Change type to unique pointer.
1307 (linux_corefile_thread): Adjust.
1308 (linux_make_corefile_notes): Return unique pointer, adjust.
1309
07fbbd01
SM
13102020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1311
1312 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
1313 * gdbarch.c: Re-generate.
1314 * gdbarch.h: Re-generate.
1315 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
1316 bool.
1317 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1318 Likewise.
1319 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
1320 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
1321 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
1322 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
1323
39535193
SM
13242020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1325
1326 * gdbarch.sh: Make generated predicates return bool.
1327 * gdbarch.c: Re-generate.
1328 * gdbarch.h: Re-generate.
1329
ad523d01
TT
13302020-10-20 Tom Tromey <tom@tromey.com>
1331
1332 * varobj-iter.h (struct varobj_item): Remove typedef.
1333
c4464ade
SM
13342020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1335
1336 * infrun.c (currently_stepping): Change int to bool
1337 (maybe_software_singlestep): Likewise.
1338 (show_stop_on_solib_events): Likewise.
1339 (stepping_past_nonsteppable_watchpoint): Likewise.
1340 (displaced_step_in_progress_any_inferior): Likewise.
1341 (displaced_step_in_progress_thread): Likewise.
1342 (keep_going_stepped_thread): Likewise.
1343 (thread_still_needs_step_over): Likewise.
1344 (start_step_over): Likewise.
1345 (do_target_resume): Likewise.
1346 (resume_1): Likewise.
1347 (clear_proceed_status): Likewise.
1348 (thread_still_needs_step_over_bp): Likewise.
1349 (proceed): Likewise.
1350 (switch_back_to_stepped_thread): Likewise.
1351 (adjust_pc_after_break): Likewise.
1352 (stepped_in_from): Likewise.
1353 (handle_stop_requested): Likewise.
1354 (handle_syscall_event): Likewise.
1355 (handle_no_resumed): Likewise.
1356 (handle_inferior_event): Likewise.
1357 (finish_step_over): Likewise.
1358 (handle_signal_stop): Likewise.
1359 (process_event_stop_test): Likewise.
1360
2eb20436
SM
13612020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1362
1363 * infrun.c (get_displaced_stepping_state): Fix comment.
1364
e0c45ded
AS
13652020-10-20 Andreas Schwab <schwab@linux-m68k.org>
1366
1367 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
1368
22cc388e
TT
13692020-10-19 Tom Tromey <tromey@adacore.com>
1370
1371 PR tui/26719
1372 * tui/tui-winsource.h (struct tui_source_window_base)
1373 <refresh_window>: Rename from refresh_pad.
1374 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
1375 Rename from refresh_pad.
1376 (tui_source_window_base::show_source_content)
1377 (tui_source_window_base::do_scroll_horizontal): Update.
1378
3c6eb4d4
TBA
13792020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1380
1381 * thread.c (_initialize_thread): Fine-tune the help text of
1382 'info threads'.
1383
26703721
TBA
13842020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1385
1386 * frame.c: Remove the unused 'uinteger_option_def' type alias.
1387
61c26be8
MS
13882020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
1389
1390 * breakpoint.c (handle_jit_event): Add an argument, change how
1391 `jit_event_handler` is called.
1392
932539d7
TT
13932020-10-17 Tom Tromey <tom@tromey.com>
1394
1395 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
1396 (scan_xcoff_symtab): Update.
1397 * psymtab.h (class psymtab_storage) <global_psymbols,
1398 static_psymbols, current_global_psymbols,
1399 current_static_psymbols>: Remove.
1400 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
1401 (match_partial_symbol, lookup_partial_symbol): Update.
1402 (print_partial_symbols): Change parameters.
1403 (dump_psymtab, recursively_search_psymtabs)
1404 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
1405 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
1406 (concat): Remove.
1407 (end_psymtab_common): Simplify.
1408 (append_psymbol_to_list): Change parameters.
1409 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
1410 (init_psymbol_list): Simplify.
1411 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
1412 * psympriv.h (struct partial_symtab) <empty>: New method.
1413 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
1414 Remove.
1415 <global_psymbols, static_psymbols>: New members.
1416 <add_psymbol>: New methods.
1417 (add_psymbol_to_list): Don't declare.
1418 (psymbol_placement): Move earlier.
1419 * mdebugread.c (parse_partial_symbols): Update.
1420 (handle_psymbol_enumerators): Change parameters.
1421 (mdebug_expand_psymtab): Update.
1422 * dwarf2/read.c (process_psymtab_comp_unit_reader)
1423 (add_partial_symbol): Update.
1424 * dwarf2/index-write.c (write_psymbols): Change parameters.
1425 (write_one_signatured_type): Update.
1426 (recursively_count_psymbols): Update.
1427 (recursively_write_psymbols): Update.
1428 (class debug_names) <recursively_write_psymbols>: Update.
1429 <write_psymbols>: Change parameters.
1430 <write_one_signatured_type>: Update.
1431 * dbxread.c (read_dbx_symtab): Update.
1432 (dbx_end_psymtab): Use partial_symtab::empty.
1433 * ctfread.c (struct ctf_context) <pst>: New member.
1434 (create_partial_symtab): Set it.
1435 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
1436 (scan_partial_symbols): Use the psymtab's context. Update.
1437
cfabbd35
TT
14382020-10-17 Tom Tromey <tom@tromey.com>
1439
1440 * valprint.c (generic_value_print): Remove comment.
1441 * m2-valprint.c (m2_value_print_inner): Remove comment.
1442 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
1443 type.
1444
520596f2
TV
14452020-10-17 Tom de Vries <tdevries@suse.de>
1446
1447 PR symtab/26317
1448 * source.c (select_source_symtab): Handling sal.symtab == NULL for
1449 symbol main.
1450
76547ab3
TV
14512020-10-14 Tom de Vries <tdevries@suse.de>
1452
1453 PR gdb/26733
1454 * solib.c (solib_contains_address_p): Handle
1455 'solib->sections == nullptr'.
1456
d3a07122
SM
14572020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
1458
1459 PR gdb/26642
1460 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
1461 target can't do async.
1462 * target.c (target_wait): Assert that we don't pass
1463 TARGET_WNOHANG to a target that can't async.
1464
1b71cfcf
KR
14652020-10-13 Kamil Rytarowski <n54@gmx.com>
1466
1467 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
1468 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
1469 * alpha-bsd-nat.c: Adjust include.
1470 * alpha-bsd-tdep.h: Adjust comment.
1471 * alpha-nbsd-tdep.c: Rename to ...
1472 * alpha-netbsd-tdep.c: ... this, adjust include.
1473 * amd64-nbsd-nat.c: Rename to ...
1474 * amd64-netbsd-nat.c: ... this, adjust include.
1475 * amd64-nbsd-tdep.c: Rename to ...
1476 * amd64-netbsd-tdep.c: ... this, adjust include.
1477 * amd64-tdep.h: Adjust include.
1478 * arm-nbsd-nat.c: Rename to ...
1479 * arm-netbsd-nat.c: ... this, adjust include.
1480 * arm-nbsd-tdep.c: Rename to ...
1481 * arm-netbsd-tdep.c: ... this, adjust include.
1482 * arm-nbsd-tdep.h: Rename to ...
1483 * arm-netbsd-tdep.h: ... this, adjust include.
1484 * configure.nat: Adjust file lists.
1485 * configure.tgt: Likewise.
1486 * hppa-nbsd-nat.c: Rename to ...
1487 * hppa-netbsd-nat.c: ... this, adjust include.
1488 * hppa-nbsd-tdep.c: Rename to ...
1489 * hppa-netbsd-tdep.c: ... this, adjust include.
1490 * i386-nbsd-nat.c: Rename to ...
1491 * i386-netbsd-nat.c: ... this, adjust include.
1492 * i386-nbsd-tdep.c: Rename to ...
1493 * i386-netbsd-tdep.c: ... this, adjust include.
1494 * m68k-bsd-nat.c: Adjust include.
1495 * mips-nbsd-nat.c: Rename to ...
1496 * mips-netbsd-nat.c: ... this, adjust include.
1497 * mips-nbsd-tdep.c: Rename to ...
1498 * mips-netbsd-tdep.c: ... this, adjust include.
1499 * mips-nbsd-tdep.h: Rename to ...
1500 * mips-netbsd-tdep.h: ... this.
1501 * nbsd-nat.c: Rename to ...
1502 * netbsd-nat.c: ... this, adjust include.
1503 * nbsd-nat.h: Rename to ...
1504 * netbsd-nat.h: ... this, adjust include.
1505 * nbsd-tdep.c: Rename to ...
1506 * netbsd-tdep.c: ... this, adjust include.
1507 * nbsd-tdep.h: Rename to ...
1508 * netbsd-tdep.h: ... this.
1509 * ppc-nbsd-nat.c: Rename to ...
1510 * ppc-netbsd-nat.c: ... this, adjust include.
1511 * ppc-nbsd-tdep.c: Rename to ...
1512 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
1513 * ppc-nbsd-tdep.h: Rename to ...
1514 * ppc-netbsd-tdep.h: ... this.
1515 * sh-nbsd-nat.c: Rename to ...
1516 * sh-netbsd-nat.c: ... this, adjust include.
1517 * sh-nbsd-tdep.c: Rename to ...
1518 * sh-netbsd-tdep.c: ... this, adjust include.
1519 * sparc-nbsd-nat.c: Rename to ...
1520 * sparc-netbsd-nat.c: ... this.
1521 * sparc-nbsd-tdep.c: Rename to ...
1522 * sparc-netbsd-tdep.c: ... this, adjust include.
1523 * sparc64-nbsd-nat.c: Rename to ...
1524 * sparc64-netbsd-nat.c: ... this.
1525 * sparc64-nbsd-tdep.c: Rename to ...
1526 * sparc64-netbsd-tdep.c: ... this, adjust include.
1527 * sparc64-tdep.h: Adjust comment.
1528 * vax-bsd-nat.c: Adjust include.
1529 * vax-nbsd-tdep.c: Rename to ...
1530 * vax-netbsd-tdep.c: ... this, adjust include.
1531
d7a78e5c
TT
15322020-10-12 Tom Tromey <tom@tromey.com>
1533
1534 * target.h (struct target_ops) <get_section_table>: Update.
1535 (target_get_section_table): Update.
1536 * target.c (target_get_section_table, target_section_by_addr)
1537 (memory_xfer_partial_1): Update.
1538 * target-section.h (target_section_table): Now an alias.
1539 * target-delegates.c: Rebuild.
1540 * target-debug.h (target_debug_print_target_section_table_p):
1541 Rename from target_debug_print_struct_target_section_table_p.
1542 * symfile.c (build_section_addr_info_from_section_table): Update.
1543 * solib.c (solib_map_sections, solib_contains_address_p): Update.
1544 * solib-svr4.c (scan_dyntag): Update.
1545 * solib-dsbt.c (scan_dyntag): Update.
1546 * remote.c (remote_target::remote_xfer_live_readonly_partial):
1547 Update.
1548 * record-full.c (record_full_core_target::xfer_partial): Update.
1549 * progspace.h (struct program_space) <target_sections>: Update.
1550 * exec.h (print_section_info): Update.
1551 * exec.c (exec_target::close, build_section_table)
1552 (add_target_sections, add_target_sections_of_objfile)
1553 (remove_target_sections, exec_on_vfork)
1554 (section_table_available_memory)
1555 (section_table_xfer_memory_partial)
1556 (exec_target::get_section_table, exec_target::xfer_partial)
1557 (print_section_info, set_section_command)
1558 (exec_set_section_address, exec_target::has_memory): Update.
1559 * corelow.c (core_target::build_file_mappings)
1560 (core_target::xfer_partial, core_target::info_proc_mappings)
1561 (core_target::info_proc_mappings): Update.
1562 * bfd-target.c (class target_bfd): Update
1563
eda214ce
TT
15642020-10-12 Tom Tromey <tom@tromey.com>
1565
1566 * progspace.c (program_space::~program_space): Don't call
1567 clear_section_table.
1568 * exec.h (clear_section_table): Don't declare.
1569 * exec.c (exec_target::close): Update.
1570 (clear_section_table): Remove.
1571
91840ee3
TT
15722020-10-12 Tom Tromey <tom@tromey.com>
1573
1574 * exec.c (add_target_sections_of_objfile): Simplify.
1575
2d128614
TT
15762020-10-12 Tom Tromey <tom@tromey.com>
1577
1578 * solib.c (solib_map_sections): Update.
1579 * record-full.c (record_full_core_open_1): Update.
1580 * exec.h (build_section_table): Return a target_section_table.
1581 * exec.c (exec_file_attach): Update.
1582 (build_section_table): Return a target_section_table.
1583 * corelow.c (core_target::core_target): Update.
1584 * bfd-target.c (target_bfd::target_bfd): Update.
1585
bb2a6777
TT
15862020-10-12 Tom Tromey <tom@tromey.com>
1587
1588 * target.c (target_section_by_addr, memory_xfer_partial_1):
1589 Update.
1590 * target-section.h (struct target_section_table): Use
1591 std::vector.
1592 * symfile.h (build_section_addr_info_from_section_table): Take a
1593 target_section_table.
1594 * symfile.c (build_section_addr_info_from_section_table): Take a
1595 target_section_table.
1596 * solist.h (struct so_list) <sections>: Change type.
1597 <sections_end>: Remove.
1598 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
1599 (solib_contains_address_p): Update.
1600 * solib-svr4.c (scan_dyntag): Update.
1601 * solib-dsbt.c (scan_dyntag): Update.
1602 * remote.c (remote_target::remote_xfer_live_readonly_partial):
1603 Update.
1604 * record-full.c (record_full_core_start, record_full_core_end):
1605 Remove.
1606 (record_full_core_sections): New global.
1607 (record_full_core_open_1, record_full_core_target::xfer_partial):
1608 Update.
1609 * exec.h (build_section_table, section_table_xfer_memory_partial)
1610 (add_target_sections): Take a target_section_table.
1611 * exec.c (exec_file_attach, clear_section_table): Update.
1612 (resize_section_table): Remove.
1613 (build_section_table, add_target_sections): Take a
1614 target_section_table.
1615 (add_target_sections_of_objfile, remove_target_sections)
1616 (exec_on_vfork): Update.
1617 (section_table_available_memory): Take a target_section_table.
1618 (section_table_read_available_memory): Update.
1619 (section_table_xfer_memory_partial): Take a target_section_table.
1620 (print_section_info, set_section_command)
1621 (exec_set_section_address, exec_target::has_memory): Update.
1622 * corelow.c (class core_target) <m_core_section_table,
1623 m_core_file_mappings>: Remove braces.
1624 <~core_target>: Remove.
1625 (core_target::core_target): Update.
1626 (core_target::~core_target): Remove.
1627 (core_target::build_file_mappings)
1628 (core_target::xfer_memory_via_mappings)
1629 (core_target::xfer_partial, core_target::info_proc_mappings):
1630 Update.
1631 * bfd-target.c (target_bfd::xfer_partial): Update.
1632 (target_bfd::target_bfd): Update.
1633 (target_bfd::~target_bfd): Remove.
1634
7b466b10
TT
16352020-10-12 Tom Tromey <tom@tromey.com>
1636
1637 * target.h (struct target_section, struct target_section_table):
1638 Move to target-section.h.
1639 * target-section.h: New file.
1640
87a37e5e
PA
16412020-10-12 Pedro Alves <pedro@palves.net>
1642
1643 PR exp/26602
1644 * valops.c (struct struct_field_searcher): New.
1645 (update_search_result): Rename to ...
1646 (struct_field_searcher::update_result): ... this. Simplify
1647 prototype. Record all found fields.
1648 (do_search_struct_field): Rename to ...
1649 (struct_field_searcher::search): ... this. Simplify prototype.
1650 Maintain stack of visited baseclass path. Call update_result for
1651 fields too. Keep searching fields in baseclasses instead of
1652 stopping at the first found field.
1653 (search_struct_field): Use struct_field_searcher. When looking
1654 for fields, report ambiguous access attempts.
1655
9370fd51
AB
16562020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
1657
1658 * frame.c (inside_main_func): Check full symbols as well as
1659 minimal symbols.
1660
59c8a30b
JB
16612020-10-09 Joel Brobecker <brobecker@adacore.com>
1662
1663 * ada-lang.c (advance_wild_match): Rewrite the function's
1664 description. Change the type of target0, t0 and t1 to char.
1665
7c184d33
TT
16662020-10-09 Tom Tromey <tromey@adacore.com>
1667
1668 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
1669
5c4258f4
TT
16702020-10-09 Tom Tromey <tromey@adacore.com>
1671
1672 * ada-lang.h (ada_encode): Return std::string.
1673 * ada-lang.c (ada_encode_1): Return std::string.
1674 (ada_encode): Likewise.
1675 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
1676 Update.
1677 * ada-exp.y (block_lookup, write_var_or_type): Update.
1678
3d87245c
HD
16792020-10-09 Hannes Domani <ssbssa@yahoo.de>
1680
1681 PR exp/26714
1682 * printcmd.c (print_formatted): Handle void results as
1683 unformatted prints.
1684
bbb826f5
AB
16852020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
1686
1687 * arch/aarch32.c (aarch32_create_target_description): Release the
1688 target_desc_up as late as possible.
1689 * arch/aarch64.c (aarch64_create_target_description): Likewise.
1690 * arch/amd64.c (amd64_create_target_description): Likewise.
1691 * arch/arc.c (arc_create_target_description): Return a
1692 target_desc_up, don't release it.
1693 * arch/arc.h (arc_create_target_description): Update declaration.
1694 (arc_lookup_target_description): Move target_desc_up into the
1695 cache, and return a borrowed pointer.
1696 * arch/arm.c (arm_create_target_description): Release the
1697 target_desc_up as late as possible.
1698 * arch/i386.c (i386_create_target_description): Likewise.
1699 * arch/riscv.h (riscv_create_target_description): Update
1700 declaration to match definition.
1701 * arch/tic6x.c (tic6x_create_target_description): Release the
1702 target_desc_up as late as possible.
1703
361cb219
AB
17042020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
1705
1706 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
1707 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
1708
f5c4b229
JV
17092020-10-09 Jan Vrany <jan.vrany@labware.com>
1710
1711 * source.c (directory_command): Notify observers that "directories"
1712 parameter has changed.
1713
b2701685
TT
17142020-10-08 Tom Tromey <tom@tromey.com>
1715
1716 * cli/cli-cmds.c (print_disassembly): Style function name and
1717 addresses. Add _() wrappers.
1718
ada508b6
SV
17192020-10-08 Shahab Vahedi <shahab@synopsys.com>
1720
1721 * NEWS: Mention ARC support in GDBserver.
1722
51a948fd
AB
17232020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
1724
1725 * arch/aarch32.c (aarch32_create_target_description): Release
1726 unique_ptr returned from allocate_target_description.
1727 * arch/aarch64.c (aarch64_create_target_description): Likewise.
1728 * arch/amd64.c (amd64_create_target_description): Likewise.
1729 * arch/arc.c (arc_create_target_description): Likewise.
1730 * arch/arm.c (arm_create_target_description): Likewise.
1731 * arch/i386.c (i386_create_target_description): Likewise.
1732 * arch/riscv.c (riscv_create_target_description): Update return
1733 type. Handle allocate_target_description returning a unique_ptr.
1734 (riscv_lookup_target_description): Update to handle unique_ptr.
1735 * arch/tic6x.c (tic6x_create_target_description): Release
1736 unique_ptr returned from allocate_target_description.
1737 * features/microblaze-with-stack-protect.c: Regenerate.
1738 * features/microblaze.c: Regenerate.
1739 * features/mips-dsp-linux.c: Regenerate.
1740 * features/mips-linux.c: Regenerate.
1741 * features/mips64-dsp-linux.c: Regenerate.
1742 * features/mips64-linux.c: Regenerate.
1743 * features/nds32.c: Regenerate.
1744 * features/nios2.c: Regenerate.
1745 * features/or1k.c: Regenerate.
1746 * features/rs6000/powerpc-32.c: Regenerate.
1747 * features/rs6000/powerpc-32l.c: Regenerate.
1748 * features/rs6000/powerpc-403.c: Regenerate.
1749 * features/rs6000/powerpc-403gc.c: Regenerate.
1750 * features/rs6000/powerpc-405.c: Regenerate.
1751 * features/rs6000/powerpc-505.c: Regenerate.
1752 * features/rs6000/powerpc-601.c: Regenerate.
1753 * features/rs6000/powerpc-602.c: Regenerate.
1754 * features/rs6000/powerpc-603.c: Regenerate.
1755 * features/rs6000/powerpc-604.c: Regenerate.
1756 * features/rs6000/powerpc-64.c: Regenerate.
1757 * features/rs6000/powerpc-64l.c: Regenerate.
1758 * features/rs6000/powerpc-7400.c: Regenerate.
1759 * features/rs6000/powerpc-750.c: Regenerate.
1760 * features/rs6000/powerpc-860.c: Regenerate.
1761 * features/rs6000/powerpc-altivec32.c: Regenerate.
1762 * features/rs6000/powerpc-altivec32l.c: Regenerate.
1763 * features/rs6000/powerpc-altivec64.c: Regenerate.
1764 * features/rs6000/powerpc-altivec64l.c: Regenerate.
1765 * features/rs6000/powerpc-e500.c: Regenerate.
1766 * features/rs6000/powerpc-e500l.c: Regenerate.
1767 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
1768 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
1769 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
1770 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
1771 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
1772 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
1773 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
1774 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
1775 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
1776 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
1777 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
1778 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
1779 * features/rs6000/powerpc-vsx32.c: Regenerate.
1780 * features/rs6000/powerpc-vsx32l.c: Regenerate.
1781 * features/rs6000/powerpc-vsx64.c: Regenerate.
1782 * features/rs6000/powerpc-vsx64l.c: Regenerate.
1783 * features/rs6000/rs6000.c: Regenerate.
1784 * features/rx.c: Regenerate.
1785 * features/s390-gs-linux64.c: Regenerate.
1786 * features/s390-linux32.c: Regenerate.
1787 * features/s390-linux32v1.c: Regenerate.
1788 * features/s390-linux32v2.c: Regenerate.
1789 * features/s390-linux64.c: Regenerate.
1790 * features/s390-linux64v1.c: Regenerate.
1791 * features/s390-linux64v2.c: Regenerate.
1792 * features/s390-te-linux64.c: Regenerate.
1793 * features/s390-tevx-linux64.c: Regenerate.
1794 * features/s390-vx-linux64.c: Regenerate.
1795 * features/s390x-gs-linux64.c: Regenerate.
1796 * features/s390x-linux64.c: Regenerate.
1797 * features/s390x-linux64v1.c: Regenerate.
1798 * features/s390x-linux64v2.c: Regenerate.
1799 * features/s390x-te-linux64.c: Regenerate.
1800 * features/s390x-tevx-linux64.c: Regenerate.
1801 * features/s390x-vx-linux64.c: Regenerate.
1802 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
1803 from allocate_target_description.
1804 * target-descriptions.c (allocate_target_description): Update
1805 return type.
1806 (print_c_tdesc::visit_pre): Release unique_ptr returned from
1807 allocate_target_description.
1808
485c47e5
TT
18092020-10-07 Tom Tromey <tromey@adacore.com>
1810
1811 * unittests/search-memory-selftests.c: New file.
1812 * Makefile.in (SELFTESTS_SRCS): Add
1813 unittests/search-memory-selftests.c.
1814
3a135a91
TT
18152020-10-07 Tom Tromey <tromey@adacore.com>
1816
1817 PR gdb/16930:
1818 * findcmd.c (_initialize_mem_search): Mention that the range is
1819 inclusive.
1820
4a72de73
TT
18212020-10-07 Tom Tromey <tromey@adacore.com>
1822
1823 * target.h (simple_search_memory): Don't declare.
1824 * target.c (simple_search_memory): Move to gdbsupport.
1825 (default_search_memory): Update.
1826 * remote.c (remote_target::search_memory): Update.
1827
a038ffd8
SM
18282020-10-07 Simon Marchi <simon.marchi@efficios.com>
1829
1830 * Makefile.in (COMPILE): Add CXXFLAGS.
1831 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
1832 (check-headers): Add CXXFLAGS.
1833
cc463201
AK
18342020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
1835
1836 * arc-linux-tdep.h: New file.
1837 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
1838 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
1839 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
1840 arc_linux_gregset, arc_linux_v2_regset,
1841 arc_linux_iterate_over_regset_sections,
1842 arc_linux_core_read_description): Implement.
1843 (arc_linux_init_osabi): Set iterate_over_regset_sections.
1844 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
1845 (arc_gdbarch_features_create): Add.
1846 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
1847
e4bd363f
SV
18482020-10-07 Shahab Vahedi <shahab@synopsys.com>
1849
1850 * arch/arc.h: Rename "arc_gdbarch_features" to
1851 "arc_arch_features".
1852 * arc-tdep.h: Likewise.
1853 * arc-tdep.c: Likewise.
1854
b68bef99
TBA
18552020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1856
1857 * infcmd.c (attach_command): Remove the redundant call to
1858 `clear_proceed_status`.
1859
4641551a
KR
18602020-10-07 Kamil Rytarowski <n54@gmx.com>
1861
1862 * nat/netbsd-nat.c (write_memory, read_memory): Update.
1863
91e5e8db
KR
18642020-10-07 Kamil Rytarowski <n54@gmx.com>
1865
1866 * nat/netbsd-nat.c (write_memory, read_memory): Add.
1867 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
1868 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
1869
64c03bdb
SM
18702020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
1871
1872 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
1873 (_initialize_break_catch_sig): Don't allocate array.
1874
31a8f60f
AB
18752020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
1876
1877 * symtab.c (find_pc_line): Return unmapped addresses when the
1878 requested address is also unmapped.
1879
9e6dbd8b
SM
18802020-10-05 Simon Marchi <simon.marchi@efficios.com>
1881
1882 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
1883 tui/tui-out.h.
1884
a1d217e8
SM
18852020-10-05 Simon Marchi <simon.marchi@efficios.com>
1886
1887 * amd64-windows-tdep.c (amd64_windows_return_value): Use
1888 type::is_vector instead of TYPE_VECTOR.
1889
7d144117
SM
18902020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
1891
1892 * auto-load.c (auto_load_objfile_script_1): Don't use
1893 debugfile_holder as temporary variable when stripping drive
1894 letter.
1895
cd096ec8
HD
18962020-10-05 Hannes Domani <ssbssa@yahoo.de>
1897
1898 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
1899 Add TYPE_CODE_COMPLEX.
1900 (amd64_windows_return_value): Fix types returned via XMM0.
1901
b58e7f72
AH
19022020-10-05 Alan Hayward <alan.hayward@arm.com>
1903
1904 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
1905 AArch64/ARM maintainers.
1906
8d378f27
SM
19072020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
1908
1909 * NEWS: Mention set/show debug event-loop.
1910
d5519913
TT
19112020-10-02 Tom Tromey <tromey@adacore.com>
1912
1913 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
1914 REG_EXTENDED.
1915
18b67edc
SM
19162020-10-02 Simon Marchi <simon.marchi@efficios.com>
1917
1918 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
1919 * procfs.c (procfs_inferior_created): Remove.
1920 (_initialize_procfs): Don't register procfs_inferior_created.
1921
6b01403b
SM
19222020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1923
1924 * async-event.c (invoke_async_signal_handlers): Add debug
1925 print.
1926 (check_async_event_handlers): Likewise.
1927 * event-top.c (show_debug_event_loop): New function.
1928 (_initialize_event_top): Register "set debug event-loop"
1929 setting.
1930
ba988419
SM
19312020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1932
1933 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
1934 * debug.h: Remove.
1935 * infrun.c: Include gdbsupport/common-debug.h.
1936 * linux-nat.c: Likewise.
1937
db20ebdf
SM
19382020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1939
1940 * async-event.h (create_async_signal_handler): Add name
1941 parameter.
1942 (create_async_event_handler): Likewise.
1943 * async-event.c (struct async_signal_handler) <name>: New field.
1944 (struct async_event_handler) <name>: New field.
1945 (create_async_signal_handler): Assign name.
1946 (create_async_event_handler): Assign name.
1947 * event-top.c (async_init_signals): Pass name when creating
1948 handler.
1949 * infrun.c (_initialize_infrun): Likewise.
1950 * record-btrace.c (record_btrace_push_target): Likewise.
1951 * record-full.c (record_full_open): Likewise.
1952 * remote-notif.c (remote_notif_state_allocate): Likewise.
1953 * remote.c (remote_target::open_1): Likewise.
1954 * tui/tui-win.c (tui_initialize_win): Likewise.
1955
2554f6f5
SM
19562020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1957
1958 * async-event.c (initialize_async_signal_handlers): Pass name to
1959 add_file_handler
1960 * event-top.c (ui_register_input_event_handler): Likewise.
1961 * linux-nat.c (linux_nat_target::async): Likewise.
1962 * run-on-main-thread.c (_initialize_run_on_main_thread):
1963 Likewise
1964 * ser-base.c (reschedule): Likewise.
1965 (ser_base_async): Likewise.
1966 * tui/tui-io.c: Likewise.
1967 * top.h (struct ui) <num>: New field.
1968 * top.c (highest_ui_num): New variable.
1969 (ui::ui): Initialize num.
1970
a7aba266
SM
19712020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1972
1973 * observable.h <inferior_created>: Remove parameters. Update all
1974 listeners.
1975 * inferior.h (post_create_inferior): Remove target parameter.
1976 Update all callers.
1977
048fde1e 19782020-10-02 Nitika Achra <Nitika.Achra@amd.com>
1979
1980 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
1981 and DW_MACRO_undef_strx.
1982 (dwarf_decode_macros): Likewise
1983 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
1984 which is the value of DW_AT_str_offsets_base.
1985 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
1986 str_offsets_base.
1987
064280be
KR
19882020-10-01 Kamil Rytarowski <n54@gmx.com>
1989
1990 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
1991
6ff33035
KR
19922020-10-01 Kamil Rytarowski <n54@gmx.com>
1993
1994 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
1995 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
1996
1eb6eb79
KR
19972020-10-01 Kamil Rytarowski <n54@gmx.com>
1998
1999 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
2000
95eb9e54
TV
20012020-09-30 Tom de Vries <tdevries@suse.de>
2002
2003 PR symtab/26683
2004 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
2005
cae21f8e
TT
20062020-09-30 Tom Tromey <tromey@adacore.com>
2007
2008 * dwarf2/read.c (handle_variant): Use constant_value.
2009
529908cb
TT
20102020-09-29 Tom Tromey <tom@tromey.com>
2011
2012 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
2013 (read_file_scope, dwarf2_get_pc_bounds)
2014 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
2015 (read_structure_type, handle_struct_member_die)
2016 (read_enumeration_type, read_array_type, read_set_type)
2017 (read_tag_pointer_type, read_tag_reference_type)
2018 (read_subroutine_type, read_base_type, read_subrange_type)
2019 (read_full_die_1, partial_die_info::read)
2020 (partial_die_info::read, by, new_symbol)
2021 (dwarf2_const_value_data, dwarf2_const_value_attr)
2022 (dump_die_shallow, dwarf2_fetch_constant_bytes)
2023 (prepare_one_comp_unit): Update.
2024 * dwarf2/attribute.h (DW_UNSND): Remove.
2025
c45bc3f8
TT
20262020-09-29 Tom Tromey <tom@tromey.com>
2027
2028 * dwarf2/read.c (read_func_scope, prototyped_function_p)
2029 (read_subroutine_type, partial_die_info::read)
2030 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
2031 (dwarf2_add_member_fn): Update.
2032 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
2033 * dwarf2/attribute.c (attribute::as_boolean): New method.
2034
23dca5c3
TT
20352020-09-29 Tom Tromey <tom@tromey.com>
2036
2037 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
2038 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
2039 method.
2040 * dwarf2/attribute.c (attribute::as_virtuality): New method.
2041
52c14d11
TT
20422020-09-29 Tom Tromey <tom@tromey.com>
2043
2044 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
2045 the attribute's form.
2046
e8e5c158
TT
20472020-09-29 Tom Tromey <tom@tromey.com>
2048
2049 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
2050 (dwarf2_add_member_fn): Update.
2051 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
2052 * dwarf2/attribute.c (attribute::defaulted): New method, from
2053 is_valid_DW_AT_defaulted.
2054
d4df075e
TT
20552020-09-29 Tom Tromey <tom@tromey.com>
2056
2057 * dwarf2/read.c (dw2_get_file_names_reader)
2058 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
2059 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
2060 (dwarf2_symbol_mark_computed): Use as_unsigned.
2061 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
2062 method.
2063 <form_is_section_offset>: Update comment.
2064
bf23a268
TT
20652020-09-29 Tom Tromey <tom@tromey.com>
2066
2067 * dwarf2/read.c (dwarf2_access_attribute): Rename from
2068 dwarf2_default_access_attribute. Look up attribute.
2069 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
2070 Update.
2071
7a5f294d
TT
20722020-09-29 Tom Tromey <tom@tromey.com>
2073
2074 * dwarf2/read.c (skip_one_die): Update.
2075 (read_full_die_1): Change how reprocessing is done.
2076 (partial_die_info::read): Update.
2077 (read_attribute_value): Remove need_reprocess parameter.
2078 (read_attribute): Likewise.
2079 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
2080 New method.
2081
36d378cf
TT
20822020-09-29 Tom Tromey <tom@tromey.com>
2083
2084 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
2085 (dwarf2_const_value_attr, dump_die_shallow)
2086 (dwarf2_fetch_constant_bytes): Update.
2087 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
2088 comment.
2089 <set_address>: New method.
2090 (DW_ADDR): Remove.
2091 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
2092 (attribute::as_string, attribute::as_address): Add assert.
2093
fe56917a
TT
20942020-09-29 Tom Tromey <tom@tromey.com>
2095
2096 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
2097 (read_attribute_reprocess, read_attribute_value): Update.
2098 (read_attribute): Clear requires_reprocessing.
2099 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
2100 form_requires_reprocessing>: New methods.
2101 <string_init>: Clear requires_reprocessing.
2102 <set_unsigned_reprocess>: New method.
2103 <name>: Shrink by one bit.
2104 <requires_reprocessing>: New member.
2105 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
2106 method.
2107
414ad644
TT
21082020-09-29 Tom Tromey <tom@tromey.com>
2109
2110 * dwarf2/read.c (read_attribute_value): Update.
2111 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
2112 set_unsigned>: New methods.
2113 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
2114
1bc397c5
TT
21152020-09-29 Tom Tromey <tom@tromey.com>
2116
2117 * dwarf2/read.c (get_alignment, read_array_order)
2118 (read_attribute_value, dwarf2_const_value_attr)
2119 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
2120 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
2121 New methods.
2122 (DW_SND): Remove.
2123
630ed6b9
TT
21242020-09-29 Tom Tromey <tom@tromey.com>
2125
2126 * dwarf2/read.c (read_attribute_value, lookup_die_type)
2127 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
2128 Update.
2129 * dwarf2/attribute.h (struct attribute) <as_signature,
2130 set_signature>: New methods.
2131 (DW_SIGNATURE): Remove.
2132
9d2246fc
TT
21332020-09-29 Tom Tromey <tom@tromey.com>
2134
2135 * dwarf2/read.c (read_call_site_scope)
2136 (handle_data_member_location, dwarf2_add_member_fn)
2137 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
2138 (partial_die_info::read, read_attribute_value)
2139 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
2140 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
2141 (dwarf2_symbol_mark_computed): Update.
2142 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
2143 methods.
2144 (DW_BLOCK): Remove.
2145 * dwarf2/attribute.c (attribute::form_is_block): Add
2146 DW_FORM_data16.
2147
c6481205
TT
21482020-09-29 Tom Tromey <tom@tromey.com>
2149
2150 * dwarf2/read.c (read_cutu_die_from_dwo)
2151 (read_attribute_reprocess, read_attribute_value, read_attribute)
2152 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
2153 (dwarf2_fetch_constant_bytes): Update.
2154 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
2155 <set_string_noncanonical, set_string_canonical>: New methods.
2156 <string_is_canonical>: Update comment.
2157 <canonical_string_p>: Add assert.
2158 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
2159 * dwarf2/attribute.c (attribute::form_is_string): New method.
2160 (attribute::string): Use it.
2161
3b64bf15
TT
21622020-09-29 Tom Tromey <tom@tromey.com>
2163
2164 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
2165 (dump_die_shallow): Use canonical_string_p.
2166 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
2167 method.
2168
2c830f54
TT
21692020-09-29 Tom Tromey <tom@tromey.com>
2170
2171 * dwarf2/read.c (partial_die_info::read)
2172 (dwarf2_const_value_attr, anonymous_struct_prefix, )
2173 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
2174 attribute::as_string.
2175
6c412691
TT
21762020-09-29 Tom Tromey <tom@tromey.com>
2177
2178 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
2179 DW_ADDR.
2180 (attribute::string): Don't use DW_STRING.
2181 (attribute::get_ref_die_offset): Don't use DW_UNSND.
2182 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
2183
95f982e5
TT
21842020-09-29 Tom Tromey <tom@tromey.com>
2185
2186 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
2187 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
2188 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
2189 * dwarf2/attribute.h (struct attribute): Rename methods.
2190 * dwarf2/attribute.c (attribute::as_address): Rename from
2191 value_as_address.
2192 (attribute::as_string): Rename from value_as_string.
2193
f800b00e
TT
21942020-09-29 Tom Tromey <tom@tromey.com>
2195
2196 * dwarf2/read.c (partial_die_info::read) <case
2197 DW_AT_linkage_name>: Use value_as_string.
2198 (dwarf2_string_attr): Use value_as_string.
2199 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
2200 method.
2201 * dwarf2/attribute.c (attribute::value_as_string): New method.
2202
de38d64a
PA
22032020-09-29 Pedro Alves <pedro@palves.net>
2204
2205 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
2206 defined before using '#pragma GCC diagnostic' instead of checking
2207 __clang__.
2208
9aed480c
TT
22092020-09-28 Tom Tromey <tom@tromey.com>
2210
2211 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
2212 (handle_signal_stop): Update.
2213 * procfs.c (procfs_target::insert_watchpoint): Update.
2214 * target.h (target_have_steppable_watchpoint): Now a function.
2215
8a3ecb79
TT
22162020-09-28 Tom Tromey <tom@tromey.com>
2217
2218 * infrun.c (set_schedlock_func): Update.
2219 * target.h (target_can_lock_scheduler): Now a function.
2220
55f6301a
TT
22212020-09-28 Tom Tromey <tom@tromey.com>
2222
2223 * inferior.h (class inferior) <has_execution>: Update.
2224 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2225 * valops.c (find_function_in_inferior)
2226 (value_allocate_space_in_inferior): Update.
2227 * top.c (kill_or_detach): Update.
2228 * target.c (target_preopen, set_target_permissions): Update.
2229 (target_has_execution_current): Remove.
2230 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
2231 Update.
2232 * solib.c (update_solib_list, reload_shared_libraries): Update.
2233 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
2234 * solib-dsbt.c (enable_break): Update.
2235 * score-tdep.c (score7_fetch_inst): Update.
2236 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
2237 Update.
2238 * remote.c (remote_target::start_remote)
2239 (remote_target::remote_check_symbols, remote_target::open_1)
2240 (remote_target::remote_detach_1, remote_target::verify_memory)
2241 (remote_target::xfer_partial, remote_target::read_description)
2242 (remote_target::get_min_fast_tracepoint_insn_len): Update.
2243 * record-full.c (record_full_open_1): Update.
2244 * record-btrace.c (record_btrace_target_open): Update.
2245 * objc-lang.c (lookup_objc_class, lookup_child_selector)
2246 (value_nsstring): Update.
2247 * linux-thread-db.c (add_thread_db_info)
2248 (thread_db_find_new_threads_silently, check_thread_db_callback)
2249 (try_thread_db_load_1, record_thread): Update.
2250 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
2251 Update.
2252 * linux-fork.c (checkpoint_command): Update.
2253 * infrun.c (set_non_stop, set_observer_mode)
2254 (check_multi_target_resumption, for_each_just_stopped_thread)
2255 (maybe_remove_breakpoints, normal_stop)
2256 (class infcall_suspend_state): Update.
2257 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
2258 (info_program_command, attach_command): Update.
2259 * infcall.c (call_function_by_hand_dummy): Update.
2260 * inf-loop.c (inferior_event_handler): Update.
2261 * gcore.c (gcore_command, derive_heap_segment): Update.
2262 * exec.c (exec_file_command): Update.
2263 * eval.c (evaluate_subexp): Update.
2264 * compile/compile.c (compile_to_object): Update.
2265 * cli/cli-dump.c (restore_command): Update.
2266 * breakpoint.c (update_watchpoint)
2267 (update_inserted_breakpoint_locations)
2268 (insert_breakpoint_locations, get_bpstat_thread): Update.
2269 * target.h (target_has_execution): Remove macro.
2270 (target_has_execution_current): Don't declare.
2271 (target_has_execution): Rename from target_has_execution_1. Add
2272 argument default.
2273
05374cfd
TT
22742020-09-28 Tom Tromey <tom@tromey.com>
2275
2276 * mi/mi-main.c (exec_reverse_continue)
2277 (mi_cmd_list_target_features): Update.
2278 * infrun.c (set_exec_direction_func): Update.
2279 * target.c (default_execution_direction): Update.
2280 * reverse.c (exec_reverse_once): Update.
2281 * target.h (target_can_execute_reverse): Now a function.
2282
9dccd06e
TT
22832020-09-28 Tom Tromey <tom@tromey.com>
2284
2285 * tui/tui-regs.c (tui_get_register)
2286 (tui_data_window::show_registers): Update.
2287 * thread.c (scoped_restore_current_thread::restore)
2288 (scoped_restore_current_thread::scoped_restore_current_thread):
2289 Update.
2290 * regcache-dump.c (regcache_print): Update.
2291 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2292 Update.
2293 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
2294 * mep-tdep.c (current_me_module, current_options): Update.
2295 * linux-thread-db.c (thread_db_load): Update.
2296 * infcmd.c (registers_info, info_vector_command)
2297 (info_float_command): Update.
2298 * ia64-tdep.c (ia64_frame_prev_register)
2299 (ia64_sigtramp_frame_prev_register): Update.
2300 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
2301 * gcore.c (derive_stack_segment): Update.
2302 * frame.c (get_current_frame, has_stack_frames): Update.
2303 * findvar.c (language_defn::read_var_value): Update.
2304 * arm-tdep.c (arm_pc_is_thumb): Update.
2305 * target.c (target_has_registers): Rename from
2306 target_has_registers_1.
2307 * target.h (target_has_registers): Remove macro.
2308 (target_has_registers): Rename from target_has_registers_1.
2309
841de120
TT
23102020-09-28 Tom Tromey <tom@tromey.com>
2311
2312 * windows-tdep.c (tlb_make_value): Update.
2313 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2314 * thread.c (scoped_restore_current_thread::restore)
2315 (scoped_restore_current_thread::scoped_restore_current_thread)
2316 (thread_command): Update.
2317 * stack.c (backtrace_command_1, frame_apply_level_command)
2318 (frame_apply_all_command, frame_apply_command): Update.
2319 * infrun.c (siginfo_make_value, restore_infcall_control_state):
2320 Update.
2321 * gcore.c (derive_stack_segment): Update.
2322 * frame.c (get_current_frame, has_stack_frames): Update.
2323 * auxv.c (info_auxv_command): Update.
2324 * ada-tasks.c (ada_build_task_list): Update.
2325 * target.c (target_has_stack): Rename from target_has_stack_1.
2326 * target.h (target_has_stack): Remove macro.
2327 (target_has_stack): Rename from target_has_stack_1.
2328
a739972c
TT
23292020-09-28 Tom Tromey <tom@tromey.com>
2330
2331 * target.c (target_has_memory): Rename from target_has_memory_1.
2332 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2333 * thread.c (scoped_restore_current_thread::restore)
2334 (scoped_restore_current_thread::scoped_restore_current_thread):
2335 Update.
2336 * frame.c (get_current_frame, has_stack_frames): Update.
2337 * target.h (target_has_memory): Remove macro.
2338 (target_has_memory): Rename from target_has_memory_1.
2339
5b8a4776
TT
23402020-09-28 Tom Tromey <tom@tromey.com>
2341
2342 * target.c (target_has_all_memory_1): Remove.
2343 * target.h (target_has_all_memory): Remove define.
2344 (target_has_all_memory_1): Don't declare.
2345
bd356ec6
SM
23462020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
2347
2348 * ser-base.c: Adjust comments formatting.
2349
2c72d5e5
TT
23502020-09-27 Tom Tromey <tom@tromey.com>
2351
2352 PR tui/25342:
2353 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
2354
35a98237
TT
23552020-09-27 Tom Tromey <tom@tromey.com>
2356
2357 PR tui/25342:
2358 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
2359
9e820dec
TT
23602020-09-27 Tom Tromey <tom@tromey.com>
2361
2362 * unittests/tui-selftests.c: Update.
2363 * tui/tui-winsource.h (struct tui_source_window_base)
2364 <extra_margin, show_line_number, refresh_pad>: New methods.
2365 <m_max_length, m_pad>: New members.
2366 (tui_copy_source_line): Update.
2367 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
2368 first_col, line_width, ndigits parameters. Add length.
2369 (tui_source_window_base::show_source_line): Write to pad. Line
2370 number now 0-based.
2371 (tui_source_window_base::refresh_pad): New method.
2372 (tui_source_window_base::show_source_content): Write to pad. Call
2373 refresh_pad.
2374 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
2375 not refill.
2376 (tui_source_window_base::update_exec_info): Call
2377 show_line_number.
2378 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
2379 method.
2380 <m_digits>: New member.
2381 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
2382 and m_max_length.
2383 (tui_source_window::show_line_number): New method.
2384 * tui/tui-io.h (tui_puts): Fix comment.
2385 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
2386 m_max_length.
2387
c15c15c8
TT
23882020-09-27 Tom Tromey <tom@tromey.com>
2389
2390 * tui/tui-winsource.c
2391 (tui_source_window_base::set_is_exec_point_at): Don't call
2392 show_source_line.
2393
149830c1
TT
23942020-09-27 Tom Tromey <tom@tromey.com>
2395
2396 * python/py-tui.c (class tui_py_window) <refresh_window>: New
2397 method.
2398 <erase>: Update.
2399 <cursor_x, cursor_y>: Remove.
2400 <m_inner_window>: New member.
2401 (tui_py_window::rerender): Create inner window.
2402 (tui_py_window::output): Write to inner window.
2403
8f9929bb
GR
24042020-09-26 Gareth Rees <grees@undo.io> (tiny change)
2405
2406 PR python/26586
2407 * cli/cli-script.c (execute_control_commands): don't set
2408 instream to nullptr here as this breaks the from_tty argument
2409 to gdb.execute in Python.
2410 (execute_user_command): set instream to nullptr here instead.
2411
956bdb59
SM
24122020-09-25 Simon Marchi <simon.marchi@efficios.com>
2413
2414 * infrun.h (infrun_debug_printf): Fix formatting.
2415 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
2416
3b93626b
SJ
24172020-09-25 Saagar Jha <saagar@saagarjha.com>
2418
2419 * compile/compile-object-load.h (struct munmap_list): Add
2420 explicitly-defined move constructor.
2421
b551a89f
TT
24222020-09-24 Tom Tromey <tromey@adacore.com>
2423
2424 PR tui/26638:
2425 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
2426 method.
2427 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
2428 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
2429 (tui_prev_win): Rewrite.
2430
99bb393f
HD
24312020-09-23 Hannes Domani <ssbssa@yahoo.de>
2432
2433 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
2434 in WOW64 processes as SIGINT.
2435 * nat/windows-nat.h: Make wow64_process a shared variable.
2436 * windows-nat.c: Remove static wow64_process variable.
2437
20a5fcbd
TT
24382020-09-23 Tom Tromey <tom@tromey.com>
2439
2440 PR symtab/25470:
2441 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
2442 offset and bit size.
2443 * printcmd.c (print_scalar_formatted): Handle zero-length
2444 integer.
2445 (print_scalar_formatted): Use bit_size_differs_p.
2446 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
2447 constant.
2448 (union type_specific): <int_stuff>: New member.
2449 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
2450 methods.
2451 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
2452 TYPE_SPECIFIC_FIELD.
2453 (recursive_dump_type, copy_type_recursive): Update.
2454 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
2455 DW_AT_data_bit_offset.
2456
bac51ab7
TT
24572020-09-23 Tom Tromey <tom@tromey.com>
2458
2459 * utils.h (class gdb_argv): Add move operators.
2460 <append>: New methods.
2461 * compile/compile.c (build_argc_argv): Remove.
2462 (compile_args_argc): Remove.
2463 (compile_args_argv): Change type.
2464 (set_compile_args): Simplify.
2465 (append_args): Remove.
2466 (filter_args): Remove argcp parameter.
2467 (get_args): Return gdb_argv. Simplify.
2468 (compile_to_object): Update.
2469
92677124
TT
24702020-09-23 Tom Tromey <tom@tromey.com>
2471
2472 * compile/compile-object-run.c (do_module_cleanup)
2473 <~do_module_cleanup> :Remove.
2474 (do_module_cleanup): Update.
2475 * compile/compile-object-load.h (struct munmap_list): Add move
2476 assignment operator.
2477 <source_file>: Now a std::string.
2478 <munmap_list>: Rename. No longer a pointer.
2479 * compile/compile-object-load.c (struct setup_sections_data): Add
2480 constructor.
2481 <setup_one_section>: Declare.
2482 <munmap_list>: Move earlier.
2483 <m_bfd>: New member.
2484 <m_last_size, m_last_section_first, m_last_prot,
2485 m_last_max_alignment>: Rename, add initializers where needed.
2486 (setup_sections_data::setup_one_section): Rename from
2487 setup_sections. Update.
2488 (compile_object_load): Update. Don't use bfd_map_over_sections.
2489
e616f60a
TT
24902020-09-23 Tom Tromey <tom@tromey.com>
2491
2492 * compile/compile-object-run.c (struct do_module_cleanup): Add
2493 parameters to constructor. Update destructor.
2494 <source_file, scope, scope_data, out_value_type, out_value_addr,
2495 munmap_list_head, objfile_name_string>: Remove.
2496 <module>: New member.
2497 (do_module_cleanup): Update.
2498 (compile_object_run): Update.
2499
e947a848
TT
25002020-09-23 Tom Tromey <tom@tromey.com>
2501
2502 * compile/compile.c (eval_compile_command): Update.
2503 * compile/compile-object-run.h (compile_object_run): Take a
2504 compile_module_up.
2505 * compile/compile-object-run.c (compile_object_run): Take a
2506 compile_module_up.
2507 * compile/compile-object-load.h (struct compile_module): Add
2508 constructor, destructor.
2509 (compile_module_up): New typedef.
2510 (compile_object_load): Return compile_object_up.
2511 * compile/compile-object-load.c (compile_object_load): Return
2512 compile_module_up.
2513
0dbf6ee6
TT
25142020-09-23 Tom Tromey <tom@tromey.com>
2515
2516 * compile/compile-object-run.c (struct do_module_cleanup): Add
2517 constructor, destructor.
2518 <objfile_name_string>: Don't use struct hack.
2519 (do_module_cleanup): Use delete.
2520 (compile_object_run): Use new.
2521
ebe824f5
TT
25222020-09-23 Tom Tromey <tom@tromey.com>
2523
2524 * compile/compile-cplus-types.c
2525 (compile_cplus_convert_struct_or_union): Use std::vector.
2526 (compile_cplus_convert_func): Likewise.
2527 * compile/compile-c-types.c (convert_func): Use std::vector.
2528
5dd918d9
TT
25292020-09-21 Tom Tromey <tromey@adacore.com>
2530
2531 * sparc-tdep.c (sparc32_skip_prologue): Use
2532 skip_prologue_using_sal.
2533
5486c517
TT
25342020-09-19 Tom Tromey <tom@tromey.com>
2535
2536 * symfile.c (add_section_size_callback): Remove.
2537 (load_one_section): Rename from load_section_callback. Change
2538 parameters.
2539 (generic_load): Use foreach.
2540
8a6bb1d1
TT
25412020-09-19 Tom Tromey <tom@tromey.com>
2542
2543 * exec.c (add_to_section_table): Remove.
2544 (build_section_table): Use foreach.
2545
08f93a1a
TT
25462020-09-19 Tom Tromey <tom@tromey.com>
2547
2548 * elfread.c (elf_locate_sections): Change parameters.
2549 (elf_symfile_read): Use foreach.
2550
03cd72b8
TT
25512020-09-19 Tom Tromey <tom@tromey.com>
2552
2553 * cli/cli-dump.c (struct callback_data): Remove.
2554 (restore_one_section): Rename from restore_section_callback.
2555 Change parameters.
2556 (restore_binary_file): Change parameters.
2557 (restore_command): Use foreach.
2558
f4f2b85f
TT
25592020-09-19 Tom Tromey <tom@tromey.com>
2560
2561 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
2562 (gcore_copy_callback): Likewise.
2563 (gcore_memory_sections): Use foreach.
2564
b35c1d1c
TT
25652020-09-19 Tom Tromey <tom@tromey.com>
2566
2567 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
2568 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
2569 parameters.
2570 (generic_elf_osabi_sniffer): Use foreach.
2571 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
2572 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
2573
5bb6e9dd
TT
25742020-09-19 Tom Tromey <tom@tromey.com>
2575
2576 * dwarf2/read.c (locate_dwz_sections): Change parameters.
2577 (dwarf2_get_dwz_file): Use foreach.
2578 (dwarf2_locate_dwo_sections): Change parameters.
2579 (open_and_init_dwo_file): Use foreach.
2580 (dwarf2_locate_common_dwp_sections): Change parameters.
2581 (open_and_init_dwp_file): Use foreach.
2582
ad7277da
TT
25832020-09-19 Tom Tromey <tom@tromey.com>
2584
2585 * symfile.h: (find_lowest_section): Don't declare.
2586 * symfile.c (find_lowest_section): Now static. Change
2587 parameters.
2588 (struct place_section_arg): Remove.
2589 (place_section): Change parameters.
2590 (addr_info_make_relative): Use foreach.
2591 (symfile_dummy_outputs): Remove.
2592 (default_symfile_relocate): Use foreach.
2593
cb814f2e
TT
25942020-09-19 Tom Tromey <tom@tromey.com>
2595
2596 * objfiles.c (add_to_objfile_sections): Rename from
2597 add_to_objfile_sections_full.
2598 (add_to_objfile_sections): Remove.
2599 (build_objfile_section_table): Use foreach.
2600
3cabfd26
TT
26012020-09-19 Tom Tromey <tom@tromey.com>
2602
2603 * stap-probe.c (get_stap_base_address_1): Remove.
2604 (get_stap_base_address): Use foreach.
2605
1ce51eb5
TT
26062020-09-19 Tom Tromey <tom@tromey.com>
2607
2608 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
2609 parameters.
2610 (gdb_bfd_close_or_warn): Use foreach.
2611
a190fabb
TT
26122020-09-19 Tom Tromey <tom@tromey.com>
2613
2614 * corelow.c (add_to_thread_list): Change parameters.
2615 (core_target_open): Use foreach.
2616
cafb0d81
TT
26172020-09-19 Tom Tromey <tom@tromey.com>
2618
2619 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
2620 existing function.
2621
c8d5abea
AB
26222020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2623
2624 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
2625 for arrays.
2626
6d816919
AB
26272020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2628
2629 * eval.c: Remove 'f-lang.h' include.
2630 (value_f90_subarray): Moved to f-lang.c.
2631 (eval_call): Renamed to...
2632 (evaluate_subexp_do_call): ...this, is no longer static, header
2633 comment moved into header file.
2634 (evaluate_funcall): Update call to eval_call.
2635 (skip_undetermined_arglist): Moved to f-lang.c.
2636 (fortran_value_subarray): Likewise.
2637 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
2638 moved to evaluate_subexp_f.
2639 (calc_f77_array_dims): Moved to f-lang.c
2640 * expprint.c (print_subexp_funcall): New function.
2641 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
2642 moved to print_subexp_f, OP_FUNCALL uses new function.
2643 (dump_subexp_body_funcall): New function.
2644 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
2645 moved to dump_subexp_f, OP_FUNCALL uses new function.
2646 * expression.h (evaluate_subexp_do_call): Declare.
2647 * f-lang.c (value_f90_subarray): Moved from eval.c.
2648 (skip_undetermined_arglist): Likewise.
2649 (calc_f77_array_dims): Likewise.
2650 (fortran_value_subarray): Likewise.
2651 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
2652 (operator_length_f): Likewise.
2653 (print_subexp_f): Likewise.
2654 (dump_subexp_body_f): Likewise.
2655 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
2656 declaration of this operation to here.
2657 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
2658 support moved to operator_length_f.
2659 * parser-defs.h (dump_subexp_body_funcall): Declare.
2660 (print_subexp_funcall): Declare.
2661 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
2662 fortran-operator.def.
2663
8c37706a
AB
26642020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2665
2666 * eval.c (fortran_value_subarray): New function, content is taken
2667 from...
2668 (evaluate_subexp_standard): ...here, in two places. Now arrays
2669 and strings both call the new function.
2670 (calc_f77_array_dims): Add header comment, handle strings.
2671
14f9473c
VC
26722020-09-18 Victor Collod <vcollod@nvidia.com>
2673
2674 PR gdb/26635
2675 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
2676 (i386_analyze_prologue): Call i386_skip_endbr.
2677
b60cea74
TT
26782020-09-18 Tom Tromey <tromey@adacore.com>
2679
2680 * windows-nat.c (struct windows_nat_target) <wait>: Update.
2681 (windows_nat_target::wait): Update.
2682 * target/wait.h (enum target_wait_flag): New. Use
2683 DEF_ENUM_FLAGS_TYPE.
2684 * target/target.h (target_wait): Change type of options.
2685 * target.h (target_options_to_string, default_target_wait):
2686 Update.
2687 (struct target_ops) <wait>: Change type of options.
2688 * target.c (target_wait, default_target_wait, do_option): Change
2689 type of "options".
2690 (target_options_to_string): Likewise.
2691 * target-delegates.c: Rebuild.
2692 * target-debug.h (target_debug_print_target_wait_flags): Rename
2693 from target_debug_print_options.
2694 * sol-thread.c (class sol_thread_target) <wait>: Update.
2695 (sol_thread_target::wait): Update.
2696 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
2697 (rs6000_nat_target::wait): Update.
2698 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
2699 Update.
2700 (remote_target::wait_ns, remote_target::wait_as): Change type of
2701 "options".
2702 (remote_target::wait): Update.
2703 * remote-sim.c (struct gdbsim_target) <wait>: Update.
2704 (gdbsim_target::wait): Update.
2705 * record-full.c (class record_full_base_target) <wait>: Update.
2706 (record_full_wait_1): Change type of "options".
2707 (record_full_base_target::wait): Update.
2708 * record-btrace.c (class record_btrace_target) <wait>: Update.
2709 (record_btrace_target::wait): Update.
2710 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
2711 Update.
2712 (ravenscar_thread_target::wait): Update.
2713 * procfs.c (class procfs_target) <wait>: Update.
2714 (procfs_target::wait): Update.
2715 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
2716 * obsd-nat.c (obsd_nat_target::wait): Update.
2717 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
2718 (nto_procfs_target::wait): Update.
2719 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
2720 * nbsd-nat.c (nbsd_wait): Change type of "options".
2721 (nbsd_nat_target::wait): Update.
2722 * linux-thread-db.c (class thread_db_target) <wait>: Update.
2723 (thread_db_target::wait): Update.
2724 * linux-nat.h (class linux_nat_target) <wait>: Update.
2725 * linux-nat.c (linux_nat_target::wait): Update.
2726 (linux_nat_wait_1): Update.
2727 * infrun.c (do_target_wait_1, do_target_wait): Change type of
2728 "options".
2729 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
2730 * inf-ptrace.c (inf_ptrace_target::wait): Update.
2731 * go32-nat.c (struct go32_nat_target) <wait>: Update.
2732 (go32_nat_target::wait): Update.
2733 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
2734 * gnu-nat.c (gnu_nat_target::wait): Update.
2735 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
2736 * fbsd-nat.c (fbsd_nat_target::wait): Update.
2737 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
2738 * darwin-nat.c (darwin_nat_target::wait): Update.
2739 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
2740 (bsd_uthread_target::wait): Update.
2741 * aix-thread.c (class aix_thread_target) <wait>: Update.
2742 (aix_thread_target::wait): Update.
2743
0295dde6
AB
27442020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
2745
2746 * compile/compile-object-run.c (create_copied_type_recursive): New
2747 function.
2748 (compile_object_run): Use new function.
2749
d3483b43
JT
27502020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
2751
2752 * NEWS: Mention x86_64 Cygwin core file support.
2753
e7d612ad
JT
27542020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2755
2756 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
2757 (core_process_module_section): Handle NOTE_INFO_MODULE64.
2758
aff9d387
JT
27592020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2760
62a5151b
JT
2761 * windows-tdep.h: Add prototypes.
2762 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
2763 (i386_windows_core_pid_to_str): Move and rename ...
2764 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
2765 (windows_core_pid_to_str): ... and here.
2766 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
2767
27682020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
2769 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
2770 (amd64_windows_init_abi_common): ... and register.
2771
7d155da3
JT
27722020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2773
2774 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
2775 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
2776
e8ef12b9
PA
27772020-09-18 Pedro Alves <pedro@palves.net>
2778
2779 PR gdb/26631
2780 * thread.c (thread_find_command): Switch inferior before calling
2781 target methods.
2782
c1e1314d
TT
27832020-09-17 Tom Tromey <tromey@adacore.com>
2784
2785 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
2786 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
2787 (tdesc_arch_data_up): New typedef.
2788 (tdesc_use_registers, tdesc_data_alloc): Update.
2789 (tdesc_data_cleanup): Don't declare.
2790 * target-descriptions.c (tdesc_data_alloc): Return a
2791 tdesc_arch_data_up.
2792 (tdesc_arch_data_deleter::operator()): Rename from
2793 tdesc_data_cleanup. Change argument type.
2794 (tdesc_use_registers): Change early_data to an rvalue reference.
2795 (tdesc_use_registers): Don't use delete.
2796 * sparc-tdep.c (sparc32_gdbarch_init): Update.
2797 * s390-tdep.c (s390_gdbarch_init): Update.
2798 * rx-tdep.c (rx_gdbarch_init): Update.
2799 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2800 * riscv-tdep.c (riscv_gdbarch_init): Update.
2801 * or1k-tdep.c (or1k_gdbarch_init): Update.
2802 * nios2-tdep.c (nios2_gdbarch_init): Update.
2803 * nds32-tdep.c (nds32_gdbarch_init): Update.
2804 * mips-tdep.c (mips_gdbarch_init): Update.
2805 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
2806 * m68k-tdep.c (m68k_gdbarch_init): Update.
2807 * i386-tdep.c (i386_gdbarch_init): Update.
2808 * arm-tdep.c (arm_gdbarch_init): Update.
2809 * arc-tdep.c (arc_tdesc_init): Update.
2810 (arc_gdbarch_init): Update.
2811 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
2812
0363df3d
HD
28132020-09-17 Hannes Domani <ssbssa@yahoo.de>
2814
2815 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
2816 for WOW64 processes.
2817
280a9412
TT
28182020-09-17 Tom Tromey <tom@tromey.com>
2819
2820 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
2821
6108fd18
TT
28222020-09-17 Tom Tromey <tom@tromey.com>
2823
2824 * value.c (preserve_values): Update.
2825 * python/py-type.c (save_objfile_types): Update.
2826 * guile/scm-type.c (save_objfile_types): Update.
2827 * gdbtypes.h (create_copied_types_hash): Return htab_up.
2828 * gdbtypes.c (create_copied_types_hash): Return htab_up.
2829 * compile/compile-object-run.c (compile_object_run): Update.
2830
fa9b1164
TT
28312020-09-17 Tom Tromey <tom@tromey.com>
2832
2833 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
2834 Remove.
2835 <m_table>: Now htab_up.
2836 * typeprint.c (typedef_hash_table::recursively_update)
2837 (typedef_hash_table::add_template_parameters)
2838 (typedef_hash_table::typedef_hash_table): Update.
2839 (typedef_hash_table::~typedef_hash_table): Remove.
2840 (typedef_hash_table::typedef_hash_table)
2841 (typedef_hash_table::find_global_typedef)
2842 (typedef_hash_table::find_typedef): Update.
2843
eb53f105
TT
28442020-09-17 Tom Tromey <tom@tromey.com>
2845
2846 * target-descriptions.c (tdesc_use_registers): Use htab_up.
2847
7a8a5d47
TT
28482020-09-17 Tom Tromey <tom@tromey.com>
2849
2850 * linespec.c (class decode_compound_collector)
2851 <~decode_compound_collector>: Remove.
2852 <m_unique_syms>: Now htab_up.
2853 (decode_compound_collector::operator ()): Update.
2854 (class symtab_collector) <~symtab_collector>: Remove.
2855 <m_symtab_table>: Now htab_up.
2856 (symtab_collector::operator ()): Update.
2857
99032cfc
TT
28582020-09-17 Tom Tromey <tom@tromey.com>
2859
2860 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
2861 (filename_seen_cache::clear): Update.
2862 (~filename_seen_cache): Remove.
2863 (filename_seen_cache::seen): Update.
2864 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
2865 htab_up.
2866 <~filename_seen_cache>: Remove.
2867 <traverse>: Update.
2868
32580f6d
TT
28692020-09-17 Tom Tromey <tom@tromey.com>
2870
2871 * completer.c (completion_tracker::discard_completions)
2872 (completion_tracker::~completion_tracker)
2873 (completion_tracker::maybe_add_completion)
2874 (completion_tracker::remove_completion)
2875 (completion_tracker::recompute_lowest_common_denominator)
2876 (completion_tracker::build_completion_result): Update.
2877 * completer.h (class completion_tracker) <have_completions>:
2878 Update.
2879 <m_entries_hash>: Now htab_up.
2880
c1fb9836
TT
28812020-09-17 Tom Tromey <tom@tromey.com>
2882
2883 * breakpoint.c (ambiguous_names_p): Use htab_up.
2884
88f07206
TT
28852020-09-17 Tom Tromey <tom@tromey.com>
2886
2887 * auto-load.c (struct auto_load_pspace_info)
2888 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
2889 <loaded_script_files, loaded_script_texts>: Change type to
2890 htab_up.
2891 (~auto_load_pspace_info) Remove.
2892 (init_loaded_scripts_info, maybe_add_script_file)
2893 (maybe_add_script_text, auto_load_info_scripts): Update.
2894
9519b2ee
TT
28952020-09-17 Tom Tromey <tromey@adacore.com>
2896
2897 * c-exp.y (name_obstack): Now static.
2898
d2cd4113
CC
28992020-09-17 Chungyi Chi <demonic@csie.io>
2900
2901 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
2902
b650a282
SM
29032020-09-16 Simon Marchi <simon.marchi@efficios.com>
2904
2905 * breakpoint.h (init_catchpoint): Change int parameter to bool.
2906 (add_solib_catchpoint): Likewise.
2907 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
2908 to bool.
2909 (add_solib_catchpoint): Change int parameter/variable to bool.
2910 (catch_load_or_unload): Likewise.
2911 (init_catchpoint): Likewise.
2912 (create_fork_vfork_event_catchpoint): Likewise.
2913 (catch_fork_command_1): Likewise.
2914 (catch_exec_command_1): Likewise.
2915
4d0bcfcf
SM
29162020-09-16 Simon Marchi <simon.marchi@efficios.com>
2917
2918 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
2919 Change instance_flags to m_instance_flags.
2920
fe830662
TT
29212020-09-16 Tom Tromey <tromey@adacore.com>
2922
2923 PR gdb/26598:
2924 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
2925
fe5ddfc3
JB
29262020-09-16 John Baldwin <jhb@FreeBSD.org>
2927
2928 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
2929 PL_FLAG_EXEC.
2930 (fbsd_nat_target::insert_exec_catchpoint)
2931 (fbsd_nat_target::remove_exec_catchpoint): Always define.
2932 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
2933 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
2934
e911c666
JB
29352020-09-16 John Baldwin <jhb@FreeBSD.org>
2936
2937 * configure.ac: Remove check for kinfo_getvmmap().
2938 * configure, config.in: Regenerate.
2939 * fbsd-nat.c (fbsd_read_mapping): Remove
2940 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
2941 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
2942 kinfo_get_vmmap() are always present.
2943
1f17d372
JB
29442020-09-16 John Baldwin <jhb@FreeBSD.org>
2945
2946 * fbsd-nat.c: Always include support for
2947 TARGET_OBJECT_SIGNAL_INFO.
2948
bcb1da7f
JB
29492020-09-16 John Baldwin <jhb@FreeBSD.org>
2950
2951 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
2952 sysctl and remove procfs fallback.
2953
5515f729
JB
29542020-09-16 John Baldwin <jhb@FreeBSD.org>
2955
2956 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
2957 * fbsd-nat.h: Likewise.
2958
da1df1db
TBA
29592020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2960
2961 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
2962 argument.
2963
0e25e767
AB
29642020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2965
2966 * ada-lang.c (ada_language_data): Delete.
2967 (ada_language): Remove references to ada_language_data.
2968 * c-lang.c (c_language_data): Delete.
2969 (c_language): Remove references to c_language_data.
2970 (cplus_language_data): Delete.
2971 (cplus_language): Remove references to cplus_language_data.
2972 (asm_language_data): Delete.
2973 (asm_language): Remove references to asm_language_data.
2974 (minimal_language_data): Delete.
2975 (minimal_language): Remove references to minimal_language_data.
2976 * d-lang.c (d_language_data): Delete.
2977 (d_language): Remove references to d_language_data.
2978 * f-lang.c (f_language_data): Delete.
2979 (f_language): Remove references to f_language_data.
2980 * go-lang.c (go_language_data): Delete.
2981 (go_language): Remove references to go_language_data.
2982 * language.c (unknown_language_data): Delete.
2983 (unknown_language): Remove references to unknown_language_data.
2984 (auto_language_data): Delete.
2985 (auto_language): Remove references to auto_language_data.
2986 * language.h (language_data): Delete struct.
2987 (language_defn): No longer inherit from language_data.
2988 * m2-lang.c (m2_language_data): Delete.
2989 (m2_language): Remove references to m2_language_data.
2990 * objc-lang.c (objc_language_data): Delete.
2991 (objc_language): Remove references to objc_language_data.
2992 * opencl-lang.c (opencl_language_data): Delete.
2993 (opencl_language): Remove references to opencl_language_data.
2994 * p-lang.c (pascal_language_data): Delete.
2995 (pascal_language): Remove references to pascal_language_data.
2996 * rust-lang.c (rust_language_data): Delete.
2997 (rust_language): Remove references to rust_language_data.
2998
b7c6e27d
AB
29992020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3000
3001 * ada-lang.c (ada_language_data): Remove la_op_print_tab
3002 initializer.
3003 (ada_language::opcode_print_table): New member function.
3004 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
3005 (c_language::opcode_print_table): New member function.
3006 (cplus_language_data): Remove la_op_print_tab initializer.
3007 (cplus_language::opcode_print_table): New member function.
3008 (asm_language_data): Remove la_op_print_tab initializer.
3009 (asm_language::opcode_print_table): New member function.
3010 (minimal_language_data): Remove la_op_print_tab initializer.
3011 (minimal_language::opcode_print_table): New member function.
3012 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
3013 (d_language::opcode_print_table): New member function.
3014 * expprint.c (print_subexp_standard): Update call to
3015 opcode_print_table.
3016 (op_string): Likewise.
3017 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
3018 (f_language::opcode_print_table): New member function.
3019 * go-lang.c (go_language_data): Remove la_op_print_tab
3020 initializer.
3021 (go_language::opcode_print_table): New member function.
3022 * language.c (unknown_language_data): Remove la_op_print_tab
3023 initializer.
3024 (unknown_language::opcode_print_table): New member function.
3025 (auto_language_data): Remove la_op_print_tab initializer.
3026 (auto_language::opcode_print_table): New member function.
3027 * language.h (language_data): Remove la_op_print_tab field.
3028 (language_defn::opcode_print_table): Declare new member function.
3029 * m2-lang.c (m2_language_data): Remove la_op_print_tab
3030 initializer.
3031 (m2_language::opcode_print_table): New member function.
3032 * objc-lang.c (objc_language_data): Remove la_op_print_tab
3033 initializer.
3034 (objc_language::opcode_print_table): New member function.
3035 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
3036 initializer.
3037 (opencl_language::opcode_print_table): New member function.
3038 * p-lang.c (pascal_language_data): Remove la_op_print_tab
3039 initializer.
3040 (pascal_language::opcode_print_table): New member function.
3041 * rust-lang.c (rust_language_data): Remove la_op_print_tab
3042 initializer.
3043 (rust_language::opcode_print_table): New member function.
3044
5aba6ebe
AB
30452020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3046
3047 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
3048 (ada_language::expression_ops): New member function.
3049 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
3050 (c_language::expression_ops): New member function.
3051 (cplus_language_data): Remove la_exp_desc initializer.
3052 (cplus_language::expression_ops): New member function.
3053 (asm_language_data): Remove la_exp_desc initializer.
3054 (asm_language::expression_ops): New member function.
3055 (minimal_language_data): Remove la_exp_desc initializer.
3056 (minimal_language::expression_ops): New member function.
3057 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
3058 (d_language::expression_ops): New member function.
3059 * eval.c (evaluate_subexp): Update call to expression_ops.
3060 * expprint.c (print_subexp): Likewise.
3061 (op_name): Likewise.
3062 (dump_subexp_body): Likewise.
3063 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
3064 (f_language::expression_ops): New member function.
3065 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
3066 (go_language::expression_ops): New member function.
3067 * language.c (language_defn::expression_ops): New function.
3068 (unknown_language_data): Remove la_exp_desc initializer.
3069 (auto_language_data): Likewise.
3070 * language.h (language_data): Remove la_exp_desc field.
3071 (language_defn::expression_ops): Declare new member function.
3072 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
3073 (m2_language::expression_ops): New member function.
3074 * objc-lang.c (objc_language_data): Remove la_exp_desc
3075 initializer.
3076 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
3077 initializer.
3078 (opencl_language::expression_ops): New member function.
3079 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
3080 * parse.c (operator_length): Update call to expression_ops.
3081 (exp_iterate): Likewise.
3082 * rust-lang.c (rust_language_data): Remove la_exp_desc
3083 initializer.
3084 (ruse_language::expression_ops): New member function.
3085
b63a3f3f
AB
30862020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3087
3088 * ada-lang.c (ada_language_data): Remove la_varobj_ops
3089 initializer.
3090 (ada_language::varobj_ops): New member function.
3091 * c-lang.c (c_language_data): Remove la_varobj_ops
3092 initializer.
3093 (cplus_language_data): Likewise.
3094 (cplus_language::varobj_ops): New member function.
3095 (asm_language_data): Remove la_varobj_ops initializer.
3096 (minimal_language_data): Likewise.
3097 * d-lang.c (d_language_data): Likewise.
3098 * f-lang.c (f_language_data): Likewise.
3099 * go-lang.c (go_language_data): Likewise.
3100 * language.c (language_defn::varobj_ops): New function.
3101 (unknown_language_data): Remove la_varobj_ops
3102 initializer.
3103 (auto_language_data): Likewise.
3104 * language.h (language_data): Remove la_varobj_ops field.
3105 (language_defn::varobj_ops): Declare new member function.
3106 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
3107 * objc-lang.c (objc_language_data): Likewise.
3108 * opencl-lang.c (opencl_language_data): Likewise.
3109 * p-lang.c (pascal_language_data): Likewise.
3110 * rust-lang.c (rust_language_data): Likewise.
3111 * varobj.c (varobj_create): Update call to varobj_ops.
3112 * varobj.h (default_varobj_ops): Delete define.
3113
1ac14a04
AB
31142020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3115
3116 * ada-lang.c (ada_language_data): Remove la_macro_expansion
3117 initializer.
3118 * c-lang.c (c_language_data): Likewise.
3119 (c_language::macro_expansion): New member function.
3120 (cplus_language_data): Likewise.
3121 (cplus_language::macro_expansion): New member function.
3122 (asm_language_data): Likewise.
3123 (asm_language::macro_expansion): New member function.
3124 (minimal_language_data): Likewise.
3125 (minimal_language::macro_expansion): New member function.
3126 * d-lang.c (d_language_data): Remove la_macro_expansion
3127 initializer.
3128 * f-lang.c (f_language_data): Likewise.
3129 * go-lang.c (go_language_data): Likewise.
3130 * language.c (unknown_language_data): Likewise.
3131 (auto_language_data): Likewise.
3132 * language.h (language_data): Remove la_macro_expansion field.
3133 (language_defn::macro_expansion): New member function.
3134 * m2-lang.c (m2_language_data): Remove la_macro_expansion
3135 initializer.
3136 * objc-lang.c (objc_language_data): Likewise.
3137 (objc_language::macro_expansion): New member function.
3138 * opencl-lang.c (opencl_language_data): Likewise.
3139 (opencl_language::macro_expansion): New member function.
3140 * p-lang.c (pascal_language_data): Remove la_macro_expansion
3141 initializer.
3142 * rust-lang.c (rust_language_data): Likewise.
3143 * symtab.c (default_collect_symbol_completion_matches_break_on):
3144 Update call to macro_expansion.
3145
3a3440fb
AB
31462020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3147
3148 * ada-lang.c (ada_language_data): Remove la_array_ordering
3149 initializer.
3150 * c-lang.c (c_language_data): Likewise.
3151 (cplus_language_data): Likewise.
3152 (asm_language_data): Likewise.
3153 (minimal_language_data): Likewise.
3154 * d-lang.c (d_language_data): Likewise.
3155 * dwarf2/read.c (read_array_order): Update for call to
3156 array_ordering.
3157 * f-lang.c (f_language_data): Remove la_array_ordering
3158 initializer.
3159 (f_language::array_ordering): New member function.
3160 * go-lang.c (go_language_data): Remove la_array_ordering
3161 initializer.
3162 * language.c (unknown_language_data): Likewise.
3163 (auto_language_data): Likewise.
3164 * language.h (language_data): Delete la_array_ordering field.
3165 (language_defn::array_ordering): New member function.
3166 * m2-lang.c (m2_language_data): Remove la_array_ordering
3167 initializer.
3168 * objc-lang.c (objc_language_data): Likewise.
3169 * opencl-lang.c (opencl_language_data): Likewise.
3170 * p-lang.c (pascal_language_data): Likewise.
3171 * rust-lang.c (rust_language_data): Likewise.
3172
0d201fa4
AB
31732020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3174
3175 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
3176 initializer.
3177 * c-lang.c (c_language_data): Likewise.
3178 (cplus_language_data): Likewise.
3179 (asm_language_data): Likewise.
3180 (minimal_language_data): Likewise.
3181 * d-lang.c (d_language_data): Likewise.
3182 * f-lang.c (f_language_data): Likewise.
3183 (f_language::case_sensitivity): New member function.
3184 * go-lang.c (go_language_data): Remove la_case_sensitivity
3185 initializer.
3186 * language.c (enum case_mode): Moved here from language.h.
3187 (case_mode): Make static.
3188 (show_case_command): Update for case_sensitivity being a method.
3189 (set_case_command): Likewise.
3190 (set_range_case): Likewise.
3191 (unknown_language_data): Remove la_case_sensitivity initializer.
3192 (auto_language_data): Likewise.
3193 * language.h (case_mode): Delete, move enum declaration to
3194 language.c.
3195 (language_data): Delete la_case_sensitivity field.
3196 (language_defn::case_sensitivity): New member function.
3197 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
3198 initializer.
3199 * objc-lang.c (objc_language_data): Likewise.
3200 * opencl-lang.c (opencl_language_data): Likewise.
3201 * p-lang.c (pascal_language_data): Likewise.
3202 * rust-lang.c (rust_language_data): Likewise.
3203
efdf6a73
AB
32042020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3205
3206 * ada-lang.c (ada_language_data): Remove la_range_check
3207 initializer.
3208 * c-lang.c (c_language_data): Likewise.
3209 (cplus_language_data): Likewise.
3210 (asm_language_data): Likewise.
3211 (minimal_language_data): Likewise.
3212 * d-lang.c (d_language_data): Likewise.
3213 * f-lang.c (f_language_data): Likewise.
3214 (f_language::range_checking_on_by_default): New member function.
3215 * go-lang.c (go_language_data): Remove la_range_check initializer.
3216 * language.c (enum range_mode): Moved here from language.h.
3217 (range_mode): Made static.
3218 (show_range_command): Update to use
3219 range_checking_on_by_default.
3220 (set_range_command): Likewise.
3221 (set_range_case): Likewise.
3222 (unknown_language_data): Remove la_range_check initializer.
3223 (auto_language_data): Likewise.
3224 * language.h (range_mode): Delete. Enum definition moved to
3225 language.c.
3226 (language_data): Remove la_range_check field.
3227 (language_defn::range_checking_on_by_default): New member
3228 function.
3229 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
3230 (m2_language::range_checking_on_by_default): New member function.
3231 * objc-lang.c (objc_language_data): Remove la_range_check
3232 initializer.
3233 * opencl-lang.c (opencl_language_data): Likewise.
3234 * p-lang.c (pascal_language_data): Likewise.
3235 (pascal_language::range_checking_on_by_default): New member
3236 function.
3237 * rust-lang.c (rust_language_data): Remove la_range_check
3238 initializer.
3239 (rust_language::range_checking_on_by_default): New member
3240 function.
3241
bf92aec5
AB
32422020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3243
3244 * dwarf2/read.c (dwarf2_physname): Remove special case for
3245 language_go.
3246 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
3247 member function.
3248
d3355e4d
AB
32492020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3250
3251 * ada-lang.c (ada_language_data): Remove
3252 la_store_sym_names_in_linkage_form_p initializer.
3253 (ada_language::store_sym_names_in_linkage_form_p): New member
3254 function.
3255 * c-lang.c (c_language_data): Remove
3256 la_store_sym_names_in_linkage_form_p initializer.
3257 (c_language::store_sym_names_in_linkage_form_p): New member
3258 function.
3259 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
3260 initializer.
3261 (asm_language_data): Likewise.
3262 (asm_language::store_sym_names_in_linkage_form_p): New member
3263 function.
3264 (minimal_language_data): Remove
3265 la_store_sym_names_in_linkage_form_p initializer.
3266 (minimal_language::store_sym_names_in_linkage_form_p): New member
3267 function.
3268 * d-lang.c (d_language_data): Remove
3269 la_store_sym_names_in_linkage_form_p initializer.
3270 * dwarf2/read.c (dwarf2_physname): Update call to
3271 store_sym_names_in_linkage_form_p.
3272 * f-lang.c (f_language_data): Remove
3273 la_store_sym_names_in_linkage_form_p initializer.
3274 * go-lang.c (go_language_data): Remove
3275 la_store_sym_names_in_linkage_form_p initializer.
3276 * language.c (unknown_language_data): Remove
3277 la_store_sym_names_in_linkage_form_p initializer.
3278 (unknown_language::store_sym_names_in_linkage_form_p): New member
3279 function.
3280 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
3281 initializer.
3282 (auto_language::store_sym_names_in_linkage_form_p): New member
3283 function.
3284 * language.h (language_data): Remove
3285 la_store_sym_names_in_linkage_form_p member variable.
3286 (language_defn::store_sym_names_in_linkage_form_p): New member
3287 function.
3288 * m2-lang.c (m2_language_data): Remove
3289 la_store_sym_names_in_linkage_form_p initializer.
3290 * objc-lang.c (objc_language_data): Likewise.
3291 * opencl-lang.c (opencl_language_data): Likewise.
3292 * p-lang.c (pascal_language_data): Likewise.
3293 * rust-lang.c (rust_language_data): Likewise.
3294
22c12a6c
AB
32952020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3296
3297 * ada-lang.c (ada_language_data): Remove string_lower_bound
3298 initializer.
3299 * c-lang.c (c_language_data): Likewise.
3300 (cplus_language_data): Likewise.
3301 (asm_language_data): Likewise.
3302 (minimal_language_data): Likewise.
3303 * d-lang.c (d_language_data): Likewise.
3304 * f-lang.c (f_language_data): Likewise.
3305 * go-lang.c (go_language_data): Likewise.
3306 * language.c (unknown_language_data): Likewise.
3307 (auto_language_data): Likewise.
3308 * language.h (language_data): Remove string_lower_bound field.
3309 (language_defn::string_lower_bound): New member function.
3310 * m2-lang.c (m2_language_data): Remove string_lower_bound
3311 initializer.
3312 (m2_language::string_lower_bound): New member function.
3313 * objc-lang.c (objc_language_data): Remove string_lower_bound
3314 initializer.
3315 * opencl-lang.c (opencl_language_data): Likewise.
3316 * p-lang.c (pascal_language_data): Likewise.
3317 * rust-lang.c (rust_language_data): Likewise.
3318 * valops.c (value_cstring): Update call to string_lower_bound.
3319 (value_string): Likewise.
3320 * value.c (allocate_repeated_value): Likewise.
3321
1c236ddd
AB
33222020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3323
3324 * valops.c (value_repeat): Fix incorrect argument name in comment.
3325
67bd3fd5
AB
33262020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3327
3328 * ada-lang.c (ada_language_data): Remove c_style_arrays
3329 initializer.
3330 (ada_language::c_style_arrays_p): New member fuction.
3331 * c-lang.c (c_language_data): Remove c_style_arrays
3332 initializer.
3333 (cplus_language_data): Likewise.
3334 (asm_language_data): Likewise.
3335 (minimal_language_data): Likewise.
3336 * d-lang.c (d_language_data): Likewise.
3337 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
3338 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
3339 (f_language::c_style_arrays_p): New member function.
3340 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
3341 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
3342 * language.c (unknown_language_data): Remove c_style_arrays
3343 initializer.
3344 (auto_language_data): Likewise.
3345 * language.h (language_data): Remove c_style_arrays field.
3346 (language_defn::c_style_arrays_p): New member function.
3347 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
3348 (m2_language::c_style_arrays_p): New member function.
3349 * objc-lang.c (objc_language_data): Remove c_style_arrays
3350 initializer.
3351 * opencl-lang.c (opencl_language_data): Likewise.
3352 * p-lang.c (pascal_language_data): Likewise.
3353 * rust-lang.c (rust_language_data): Likewise.
3354 * valarith.c (value_subscript): Update call to c_style_arrays_p,
3355 and update local variable to a bool.
3356 * valops.c (value_cast): Update call to c_style_arrays_p.
3357 (value_array): Likewise.
3358 * value.c (coerce_array): Likewise.
3359
85967615
AB
33602020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3361
3362 * ada-lang.c (ada_language_data): Remove la_language initializer.
3363 * c-lang.c (c_language_data): Likewise.
3364 (cplus_language_data): Likewise.
3365 (asm_language_data): Likewise.
3366 (minimal_language_data): Likewise.
3367 * d-lang.c (d_language_data): Likewise.
3368 * f-lang.c (f_language_data): Likewise.
3369 * go-lang.c (go_language_data): Likewise.
3370 * language.c (unknown_language_data): Likewise.
3371 (auto_language_data): Likewise.
3372 * language.h (language_data): Remove la_language field.
3373 (language_defn::language_defn): Initialise la_language field.
3374 (language_defn::la_language): New member variable.
3375 * m2-lang.c (m2_language_data): Remove la_language field.
3376 * objc-lang.c (objc_language_data): Likewise.
3377 * opencl-lang.c (opencl_language_data): Likewise.
3378 * p-lang.c (pascal_language_data): Likewise.
3379 * rust-lang.c (rust_language_data): Likewise.
3380
e171d6f1
AB
33812020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3382
3383 * ada-lang.c (ada_extensions): Delete, moved into
3384 ada_language::filename_extensions.
3385 (ada_language_data): Remove la_filename_extensions initializer.
3386 (ada_language::filename_extensions): New member function.
3387 * c-lang.c (c_extensions): Delete, moved into
3388 c_language::filename_extensions.
3389 (c_language_data): Remove la_filename_extensions initializer.
3390 (c_language::filename_extensions): New member function.
3391 (cplus_extensions): Delete, moved into
3392 cplus_language::filename_extensions.
3393 (cplus_language_data): Remove la_filename_extensions initializer.
3394 (cplus_language::filename_extensions): New member function.
3395 (asm_extensions): Delete, moved into
3396 asm_language::filename_extensions.
3397 (asm_language_data): Remove la_filename_extensions initializer.
3398 (asm_language::filename_extensions): New member function.
3399 (minimal_language_data): Remove la_filename_extensions
3400 initializer.
3401 * d-lang.c (d_extensions): Delete, moved into
3402 d_language::filename_extensions.
3403 (d_language_data): Remove la_filename_extensions initializer.
3404 (d_language::filename_extensions): New member function.
3405 * f-lang.c (f_extensions): Delete, moved into
3406 f_language::filename_extensions.
3407 (f_language_data): Remove la_filename_extensions initializer.
3408 (f_language::filename_extensions): New member function.
3409 * go-lang.c (go_language_data): Remove la_filename_extensions
3410 initializer.
3411 * language.c (add_set_language_command): Update now that
3412 filename_extensions returns a vector.
3413 (unknown_language_data): Remove la_filename_extensions
3414 initializer.
3415 (auto_language_data): Likewise.
3416 * language.h (language_data): Remove la_filename_extensions field.
3417 (language_defn::filename_extensions): New member function.
3418 * m2-lang.c (m2_language_data): Remove la_filename_extensions
3419 initializer.
3420 * objc-lang.c (objc_extensions): Delete, moved into
3421 objc_language::filename_extensions.
3422 (objc_language_data): Remove la_filename_extensions initializer.
3423 (objc_language::filename_extensions): New member function.
3424 * opencl-lang.c (opencl_language_data): Remove
3425 la_filename_extensions initializer.
3426 * p-lang.c (pascal_extensions): Delete, moved into
3427 pascal_language::filename_extensions.
3428 (pascal_language_data): Remove la_filename_extensions initializer.
3429 (pascal_language::filename_extensions): New member function.
3430 * rust-lang.c (rust_extensions): Delete, moved into
3431 rust_language::filename_extensions.
3432 (rust_language_data): Remove la_filename_extensions initializer.
3433 (rust_language::filename_extensions): New member function.
3434 * symfile.c (add_filename_language): Add new assert.
3435
6f7664a9
AB
34362020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3437
3438 * ada-lang.c (ada_language_data): Remove la_name and
3439 la_natural_name initializers.
3440 (ada_language::name): New member function.
3441 (ada_language::natural_name): New member function.
3442 * c-lang.c (c_language_data): Remove la_name and
3443 la_natural_name initializers.
3444 (c_language::name): New member function.
3445 (c_language::natural_name): New member function.
3446 (cplus_language_data): Remove la_name and
3447 la_natural_name initializers.
3448 (cplus_language::name): New member function.
3449 (cplus_language::natural_name): New member function.
3450 (asm_language_data): Remove la_name and
3451 la_natural_name initializers.
3452 (asm_language::name): New member function.
3453 (asm_language::natural_name): New member function.
3454 (minimal_language_data): Remove la_name and
3455 la_natural_name initializers.
3456 (minimal_language::name): New member function.
3457 (minimal_language::natural_name): New member function.
3458 * compile/compile.c (compile_to_object): Update call to
3459 lanugage_defn::name.
3460 * d-lang.c (d_language_data): Remove la_name and
3461 la_natural_name initializers.
3462 (d_language::name): New member function.
3463 (d_language::natural_name): New member function.
3464 * expprint.c (print_subexp_standard): Update call to
3465 language_defn::name.
3466 (dump_raw_expression): Likewise
3467 (dump_prefix_expression): Likewise.
3468 * f-lang.c (f_language_data): Remove la_name and
3469 la_natural_name initializers.
3470 (f_language::name): New member function.
3471 (f_language::natural_name): New member function.
3472 * go-lang.c (go_language_data): Remove la_name and
3473 la_natural_name initializers.
3474 (go_language::name): New member function.
3475 (go_language::natural_name): New member function.
3476 * language.c (show_language_command): Update call to
3477 language_defn::name.
3478 (set_language_command): Likewise.
3479 (language_enum): Likewise.
3480 (language_str): Likewise.
3481 (add_set_language_command): Likewise, use
3482 language_defn::natural_name in the doc string.
3483 (unknown_language_data): Remove la_name and
3484 la_natural_name initializers.
3485 (unknown_language::name): New member function.
3486 (unknown_language::natural_name): New member function.
3487 (auto_language_data): Remove la_name and
3488 la_natural_name initializers.
3489 (auto_language::name): New member function.
3490 (auto_language::natural_name): New member function.
3491 (language_lookup_primitive_type_as_symbol): Update call to
3492 language_defn::name.
3493 * language.h (language_data): Remove la_name and la_natural_name
3494 member variables.
3495 (language_defn::name): New member function.
3496 (language_defn::natural_name): New member function.
3497 * m2-lang.c (m2_language_data): Remove la_name and
3498 la_natural_name initializers.
3499 (m2_language::name): New member function.
3500 (m2_language::natural_name): New member function.
3501 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
3502 language_defn::natural_name.
3503 * objc-lang.c (objc_language_data): Remove la_name and
3504 la_natural_name initializers.
3505 (objc_language::name): New member function.
3506 (objc_language::natural_name): New member function.
3507 * opencl-lang.c (opencl_language_data): Remove la_name and
3508 la_natural_name initializers.
3509 (opencl_language::name): New member function.
3510 (opencl_language::natural_name): New member function.
3511 * p-lang.c (pascal_language_data): Remove la_name and
3512 la_natural_name initializers.
3513 (pascal_language::name): New member function.
3514 (pascal_language::natural_name): New member function.
3515 * rust-lang.c (rust_language_data): Remove la_name and
3516 la_natural_name initializers.
3517 (rust_language::name): New member function.
3518 (rust_language::natural_name): New member function.
3519 * symtab.c (lookup_language_this): Update call to
3520 language_defn::name.
3521
5bae7c4e
AB
35222020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3523
3524 * ada-lang.c (ada_language_data): Remove la_name_of_this
3525 initializer.
3526 * ax-gdb.c (gen_expr): Update call to name_of_this.
3527 * c-exp.y (classify_name): Likewise.
3528 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
3529 (cplus_language_data): Likewise.
3530 (cplus_language::name_of_this): New member function.
3531 (asm_language_data): Remove la_name_of_this initializer.
3532 (minimal_language_data): Likewise.
3533 * d-lang.c (d_language_data): Likewise.
3534 (d_language::name_of_this): New member function.
3535 * expprint.c (print_subexp_standard): Update call to name_of_this.
3536 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
3537 * go-lang.c (go_language_data): Likewise.
3538 * language.c (unknown_language_data): Likewise.
3539 (unknown_language::name_of_this): New member function.
3540 (auto_language_data): Remove la_name_of_this initializer.
3541 (auto_language::name_of_this): New member function.
3542 * language.h (language_data): Delete la_name_of_this member
3543 variable.
3544 (language_defn::name_of_this): New member function.
3545 * m2-lang.c (m2_language_data): Remove la_name_of_this
3546 initializer.
3547 * objc-lang.c (objc_language_data): Likewise.
3548 (objc_language::name_of_this): New member function.
3549 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
3550 initializer.
3551 * p-lang.c (pascal_language_data): Likewise.
3552 (pascal_language::name_of_this): New member function.
3553 * rust-lang.c (rust_language_data): Remove la_name_of_this
3554 initializer.
3555 * symtab.c (lookup_language_this): Update call to name_of_this.
3556 (lookup_symbol_aux): Likewise.
3557 * valops.c (value_of_this): Likewise.
3558
22e3f3ed
AB
35592020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3560
3561 * ada-lang.c (ada_language_data): Remove
3562 la_struct_too_deep_ellipsis initializer.
3563 (ada_language::struct_too_deep_ellipsis): New member function.
3564 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
3565 initializer.
3566 (cplus_language_data): Likewise.
3567 (asm_language_data): Likewise.
3568 (minimal_language_data): Likewise.
3569 * cp-valprint.c (cp_print_value): Update call to
3570 struct_too_deep_ellipsis.
3571 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
3572 initializer.
3573 * f-lang.c (f_language_data): Likewise.
3574 (f_language::struct_too_deep_ellipsis): New member function.
3575 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
3576 initializer.
3577 * language.c (unknown_language_data): Likewise.
3578 (auto_language_data): Likewise.
3579 * language.h (language_data): Delete la_struct_too_deep_ellipsis
3580 member variable.
3581 (language_defn::struct_too_deep_ellipsis): New member function.
3582 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
3583 initializer.Q
3584 * objc-lang.c (objc_language_data): Likewise.
3585 * opencl-lang.c (opencl_language_data): Likewise.
3586 * p-lang.c (pascal_language_data): Likewise.
3587 * rust-lang.c (rust_language_data): Likewise.
3588 * valprint.c (val_print_check_max_depth): Update call to
3589 struct_too_deep_ellipsis.
3590
ed29e1c7
FW
35912020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
3592
3593 * MAINTAINERS (Write After Approval): Add myself.
3594
12d8f940
TT
35952020-09-15 Tom Tromey <tom@tromey.com>
3596
3597 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
3598 Remove.
3599
6b5a7bc7
TT
36002020-09-15 Tom Tromey <tom@tromey.com>
3601
3602 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
3603 and TYPE_CODE_METHODPTR cases.
3604 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
3605 (c_value_print_inner): Update.
3606 * valprint.c (generic_value_print_memberptr): New function, from
3607 c_value_print_memberptr.
3608 (generic_value_print): Use it. Call cplus_print_method_ptr.
3609
47f0e2ff
TT
36102020-09-15 Tom Tromey <tromey@adacore.com>
3611
3612 * python/python-internal.h (PyInt_FromLong): Remove define.
3613 * python/py-value.c (convert_value_from_python): Use
3614 gdb_py_object_from_longest.
3615 * python/py-type.c (typy_get_code): Use
3616 gdb_py_object_from_longest.
3617 * python/py-symtab.c (salpy_get_line): Use
3618 gdb_py_object_from_longest.
3619 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
3620 gdb_py_object_from_longest.
3621 * python/py-record.c (recpy_gap_reason_code): Use
3622 gdb_py_object_from_longest.
3623 * python/py-record-btrace.c (recpy_bt_insn_size)
3624 (recpy_bt_func_level, btpy_list_count): Use
3625 gdb_py_object_from_longest.
3626 * python/py-infthread.c (gdbpy_create_ptid_object): Use
3627 gdb_py_object_from_longest. Fix error handling.
3628 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
3629 gdb_py_object_from_longest.
3630 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
3631 gdb_py_object_from_longest.
3632 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
3633 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
3634 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
3635
512116ce
TT
36362020-09-15 Tom Tromey <tromey@adacore.com>
3637
3638 * python/python.c (gdbpy_parameter_value): Use
3639 gdb_py_object_from_ulongest.
3640
4ab1029c
TT
36412020-09-15 Tom Tromey <tromey@adacore.com>
3642
3643 * python/py-infevents.c (create_register_changed_event_object):
3644 Use gdb_py_object_from_longest.
3645 * python/py-exitedevent.c (create_exited_event_object): Use
3646 gdb_py_object_from_longest.
3647
062534d4
TT
36482020-09-15 Tom Tromey <tromey@adacore.com>
3649
3650 * python/python.c (gdbpy_parameter_value): Use
3651 gdb_py_object_from_longest.
3652 * python/py-type.c (convert_field, typy_range): Use
3653 gdb_py_object_from_longest.
3654 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
3655 gdb_py_object_from_longest.
3656 * python/py-lazy-string.c (stpy_get_length): Use
3657 gdb_py_object_from_longest.
3658 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
3659 gdb_py_object_from_longest.
3660 * python/py-infevents.c (create_memory_changed_event_object): Use
3661 gdb_py_object_from_longest.
3662 * python/py-inferior.c (infpy_get_num): Use
3663 gdb_py_object_from_longest.
3664 (infpy_get_pid): Likewise.
3665
d1cab987
TT
36662020-09-15 Tom Tromey <tromey@adacore.com>
3667
3668 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
3669 defines.
3670 * python/py-value.c (valpy_long): Use
3671 gdb_py_object_from_ulongest.
3672 * python/py-symtab.c (salpy_get_pc): Use
3673 gdb_py_object_from_ulongest.
3674 (salpy_get_last): Likewise.
3675 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
3676 gdb_py_object_from_ulongest.
3677 * python/py-lazy-string.c (stpy_get_address): Use
3678 gdb_py_object_from_ulongest.
3679 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
3680 * python/py-arch.c (archpy_disassemble): Use
3681 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
3682 error handling.
3683
4bde49dc
TT
36842020-09-15 Tom Tromey <tromey@adacore.com>
3685
3686 * python/python-internal.h (gdb_py_long_from_longest): Remove
3687 defines.
3688 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
3689 * python/py-type.c (convert_field, typy_get_sizeof): Use
3690 gdb_py_object_from_longest.
3691 * python/py-record-btrace.c (btpy_list_index): Use
3692 gdb_py_object_from_longest.
3693
37431074
TT
36942020-09-15 Tom Tromey <tromey@adacore.com>
3695
3696 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
3697 * python/py-record.c (recpy_element_number): Use
3698 gdb_py_object_from_longest.
3699 (recpy_gap_number): Likewise.
3700
cbe25684
TT
37012020-09-15 Tom Tromey <tromey@adacore.com>
3702
3703 * top.c (ui::ui): Update.
3704 (highest_ui_num): Remove.
3705 * top.h (struct ui) <num>: Remove.
3706
db92ac45
TT
37072020-09-15 Tom Tromey <tromey@adacore.com>
3708
3709 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
3710 * ui-style.c (ansi_regex_text): Now array.
3711 * rust-exp.y (number_regex_text): Now array.
3712 * linespec.c (linespec_quote_characters): Now array.
3713 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
3714 Now arrays.
3715
d2b31b67
SM
37162020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3717
3718 * debuginfod-support.c (debuginfod_client_deleter): New.
3719 (debuginfod_client_up): New.
3720 (debuginfod_init): Return debuginfod_client_up.
3721 (debuginfod_source_query): Adjust.
3722 (debuginfod_debuginfo_query): Adjust.
3723
3246bd8e
SM
37242020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3725
3726 * debuginfod-support.c (debuginfod_source_query): Use
3727 make_unique_xstrdup.
3728
10242f36
SM
37292020-09-14 Simon Marchi <simon.marchi@efficios.com>
3730
3731 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
3732 with `type::instance_flags`.
3733
e1044e6a
MM
37342020-09-14 Michael Mullin <masmullin@gmail.com>
3735
3736 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
3737 Remove baton parameter.
3738
04902b09
PA
37392020-09-14 Pedro Alves <pedro@palves.net>
3740
3741 * Makefile.in (SELFTESTS_SRCS): Add
3742 unittests/enum-flags-selftests.c.
3743 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
3744 btrace_function_flags instead of enum btrace_function_flag.
3745 * compile/compile-c-types.c (convert_qualified): Use
3746 enum_flags::raw.
3747 * compile/compile-cplus-symbols.c (convert_one_symbol)
3748 (convert_symbol_bmsym):
3749 * compile/compile-cplus-types.c (compile_cplus_convert_method)
3750 (compile_cplus_convert_struct_or_union_methods)
3751 (compile_cplus_instance::convert_qualified_base):
3752 * go-exp.y (parse_string_or_char): Add cast to int.
3753 * unittests/enum-flags-selftests.c: New file.
3754 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
3755 type to btrace_thread_flags from btrace_thread_flag.
3756 (record_btrace_cancel_resume, record_btrace_step_thread): Change
3757 local's type to btrace_thread_flags from btrace_thread_flag. Add
3758 cast in DEBUG call.
3759
69896a2c
PA
37602020-09-14 Pedro Alves <pedro@palves.net>
3761
3762 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
3763 * gdbtypes.c (address_space_name_to_int): Rename to ...
3764 (address_space_name_to_type_instance_flags): ... this.
3765 (address_space_int_to_name): Rename to ...
3766 (address_space_type_instance_flags_to_name): ... this.
3767 * gdbtypes.h (address_space_name_to_int): Rename to ...
3768 (address_space_name_to_type_instance_flags): ... this.
3769 (address_space_int_to_name): Rename to ...
3770 (address_space_type_instance_flags_to_name): ... this.
3771 * type-stack.c (type_stack::insert): Adjust to rename.
3772 * type-stack.h (type_stack::insert): Likewise.
3773
314ad88d
PA
37742020-09-14 Pedro Alves <pedro@palves.net>
3775 Andrew Burgess <andrew.burgess@embecosm.com>
3776
3777 * avr-tdep.c (avr_address_class_type_flags): Return
3778 type_instance_flags.
3779 (avr_address_class_type_flags_to_name): Take a
3780 type_instance_flags.
3781 (avr_address_class_name_to_type_flags): Return bool and take a
3782 type_instance_flags.
3783 * d-lang.c (build_d_types): Use type::set_instance_flags.
3784 * ft32-tdep.c (ft32_address_class_type_flags): Return
3785 type_instance_flags.
3786 (ft32_address_class_type_flags_to_name): Take a
3787 type_instance_flags.
3788 (ft32_address_class_name_to_type_flags): Return bool and take a
3789 type_instance_flags.
3790 (ft32_gdbarch_init): Use type::set_instance_flags.
3791 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
3792 * gdbarch.h, gdbarch.c: Regenerate.
3793 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
3794 (address_class_name_to_type_flags): Use type_instance_flags and
3795 bool.
3796 * gdbtypes.c (address_space_name_to_int)
3797 (address_space_int_to_name, make_qualified_type): Use
3798 type_instance_flags.
3799 (make_qualified_type): Use type_instance_flags and
3800 type::set_instance_flags.
3801 (make_type_with_address_space, make_cv_type, make_vector_type)
3802 (check_typedef): Use type_instance_flags.
3803 (recursive_dump_type): Cast type_instance_flags to unsigned for
3804 printing.
3805 (copy_type_recursive): Use type::set_instance_flags.
3806 (gdbtypes_post_init): Use type::set_instance_flags.
3807 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
3808 <m_instance_flags>: ... this.
3809 <instance_flags, set_instance_flags>: New methods.
3810 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
3811 (SET_TYPE_INSTANCE_FLAGS): New.
3812 (address_space_name_to_int, address_space_int_to_name)
3813 (make_type_with_address_space): Pass flags using
3814 type_instance_flags instead of int.
3815 * stabsread.c (cleanup_undefined_types_noname): Use
3816 type::set_instance_flags.
3817 * s390-tdep.c (s390_address_class_type_flags): Return
3818 type_instance_flags.
3819 (s390_address_class_type_flags_to_name): Take a
3820 type_instance_flags.
3821 (s390_address_class_name_to_type_flags): Return bool and take a
3822 type_instance_flags.
3823 * type-stack.c (type_stack::follow_types): Use
3824 type_instance_flags.
3825 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
3826
27087b7f
TT
38272020-09-14 Tom Tromey <tromey@adacore.com>
3828
3829 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
3830 * x86-tdep.c (x86_is_thunk_register_name)
3831 (x86_in_indirect_branch_thunk): Update.
3832 * sparc64-tdep.c (sparc64_fpu_register_names)
3833 (sparc64_cp0_register_names, sparc64_register_names)
3834 (sparc64_pseudo_register_names): Now const.
3835 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
3836 cp0_registers_num>: Now const.
3837 * sparc-tdep.c (sparc_core_register_names)
3838 (sparc32_fpu_register_names, sparc32_cp0_register_names)
3839 (sparc32_pseudo_register_names): Now const.
3840 (validate_tdesc_registers): Update.
3841 * rust-lang.c (rust_extensions): Now const.
3842 * p-lang.c (p_extensions): Now const.
3843 * objc-lang.c (objc_extensions): Now const.
3844 * nto-tdep.c (nto_thread_state_str): Now const.
3845 * moxie-tdep.c (moxie_register_names): Now const.
3846 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
3847 Now const.
3848 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
3849 (mips_linux_reg_names): Now const.
3850 (mips_gdbarch_init): Update.
3851 * microblaze-tdep.c (microblaze_register_names): Now const.
3852 * m68k-tdep.c (m68k_register_names): Now const.
3853 * m32r-tdep.c (m32r_register_names): Now const.
3854 * ia64-tdep.c (ia64_register_names): Now const.
3855 * i386-tdep.h (struct gdbarch_tdep) <register_names,
3856 ymmh_register_names, ymm16h_regnum, mpx_register_names,
3857 k_register_names, zmmh_register_names, xmm_avx512_register_names,
3858 ymm_avx512_register_names, pkeys_register_names>: Now const.
3859 * i386-tdep.c (i386_register_names, i386_zmm_names)
3860 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
3861 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
3862 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
3863 * f-lang.c (f_extensions): Now const.
3864 * d-lang.c (d_extensions): Now const.
3865 * csky-tdep.c (csky_register_names): Now const.
3866 * charset.c (default_charset_names, charset_enum): Now const.
3867 (_initialize_charset): Update.
3868 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
3869 const.
3870 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
3871 (bsd_uthread_solib_loaded): Update.
3872 (bsd_uthread_state): Now const.
3873 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
3874 (amd64_ymm_avx512_names, amd64_ymmh_names)
3875 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
3876 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
3877 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
3878 (amd64_dword_names): Now const.
3879 * agent.c (can_use_agent_enum): Now const.
3880 * ada-tasks.c (task_states, long_task_states): Now const.
3881 * ada-lang.c (known_runtime_file_name_patterns)
3882 (known_auxiliary_function_name_patterns, attribute_names)
3883 (standard_exc, ada_extensions): Now const.
3884
89806626
SM
38852020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3886
3887 * bcache.h (struct bcache) <bcache>: Remove constructor.
3888 <m_hash_function, m_compare_function>: Remove.
3889 <~bcache>: Make virtual.
3890 <compare>: Remove static method, introduce virtual method.
3891 <default_hash>: Remove.
3892 <hash>: New virtual method.
3893 * bcache.c (bcache::expand_hash_table): Update.
3894 (bcache::insert): Update.
3895 (bcache::hash): New.
3896 (bcache::compare): Update comment and parameter names.
3897 * gdbtypes.c (types_deeply_equal): Update.
3898 * psymtab.h (struct psymbol_bcache): New struct.
3899 (class psymtab_storage) <psymtab_storage>: Make default.
3900 <psymbol_cache>: Change type to psymbol_bcache.
3901 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
3902 (psymbol_hash): Change to...
3903 (psymbol_bcache::hash): ... this.
3904 (psymbol_compare): Change to...
3905 (psymbol_bcache::compare): ... this.
3906
677c92fe
SM
39072020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3908
3909 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
3910 checking for initial lwp.
3911
3eba3a01
TT
39122020-09-14 Tom Tromey <tromey@adacore.com>
3913
3914 * m68k-tdep.c (m68k_extract_return_value): Use
3915 pointer_result_regnum.
3916 (m68k_store_return_value): Likewise.
3917 (m68k_reg_struct_return_p): Handle vectors and arrays.
3918 (m68k_return_value): Handle arrays.
3919 (m68k_svr4_return_value): Fix single-element aggregate handling.
3920 Handle long double. Adjust for embedded ABI.
3921 (m68k_svr4_init_abi): Set pointer_result_regnum.
3922 (m68k_embedded_init_abi): New function.
3923 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
3924 (m68k_osabi_sniffer): New function.
3925 (_initialize_m68k_tdep): Register osabi sniffer.
3926 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
3927 member.
3928
33f4dd48
SM
39292020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3930
3931 * xml-support.c (xml_fetch_content_from_file): Replace xfree
3932 with gdb::unique_xmalloc_ptr<char>.
3933
8400a90d
SM
39342020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3935
3936 * xml-support.h (xml_fetch_another): Change type to be a
3937 function_view.
3938 (xml_process_xincludes): Remove baton parameter.
3939 (xml_fetch_content_from_file): Change baton parameter to
3940 dirname.
3941 * xml-support.c (struct xinclude_parsing_data)
3942 <xinclude_parsing_data>: Remove baton parameter.
3943 <fetcher_baton>: Remove.
3944 (xinclude_start_include): Adjust.
3945 (xml_process_xincludes): Adjust.
3946 (xml_fetch_content_from_file): Replace baton parameter with
3947 dirname.
3948 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
3949 (xml_init_syscalls_info): Use a lambda.
3950 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
3951 (file_read_description_xml): Use a lambda.
3952 (fetch_available_features_from_target): Change baton parameter
3953 to target_ops.
3954 (target_read_description_xml): Use a lambda.
3955 (target_fetch_description_xml): Use a lambda.
3956 (string_read_description_xml): Update.
3957
04f5bab2
SM
39582020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3959
3960 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
3961 uses with type::endianity_is_not_default.
3962
db558e34
SM
39632020-09-14 Simon Marchi <simon.marchi@efficios.com>
3964
3965 * gdbtypes.h (struct type) <endianity_is_not_default,
3966 set_endianity_is_not_default>: New methods.
3967 (TYPE_ENDIANITY_NOT_DEFAULT): Use
3968 type::endianity_is_not_default, change all write call sites to
3969 use type::set_endianity_is_not_default.
3970
22c4c60c
SM
39712020-09-14 Simon Marchi <simon.marchi@efficios.com>
3972
3973 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
3974 uses with type::is_fixed_instance.
3975
9cdd0d12
SM
39762020-09-14 Simon Marchi <simon.marchi@efficios.com>
3977
3978 * gdbtypes.h (struct type) <is_fixed_instance,
3979 set_is_fixed_instance>: New methods.
3980 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
3981 write call sites to use type::set_is_fixed_instance.
3982
0becda7a
SM
39832020-09-14 Simon Marchi <simon.marchi@efficios.com>
3984
3985 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
3986 uses with type::is_gnu_ifunc.
3987
03cc7249
SM
39882020-09-14 Simon Marchi <simon.marchi@efficios.com>
3989
3990 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
3991 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
3992 use type::set_is_gnu_ifunc.
3993
3f46044c
SM
39942020-09-14 Simon Marchi <simon.marchi@efficios.com>
3995
3996 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
3997 uses with type::stub_is_supported.
3998
9baccff6
SM
39992020-09-14 Simon Marchi <simon.marchi@efficios.com>
4000
4001 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
4002 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
4003 use type::set_stub_is_supported.
4004
bd63c870
SM
40052020-09-14 Simon Marchi <simon.marchi@efficios.com>
4006
4007 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
4008 uses with type::is_vector.
4009
2062087b
SM
40102020-09-14 Simon Marchi <simon.marchi@efficios.com>
4011
4012 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
4013 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
4014 use type::set_is_vector.
4015
a409645d
SM
40162020-09-14 Simon Marchi <simon.marchi@efficios.com>
4017
4018 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
4019 uses with type::has_varargs.
4020
1d6286ed
SM
40212020-09-14 Simon Marchi <simon.marchi@efficios.com>
4022
4023 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
4024 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
4025 use type::set_has_varargs.
4026
7f9f399b
SM
40272020-09-14 Simon Marchi <simon.marchi@efficios.com>
4028
4029 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
4030 uses with type::is_prototyped.
4031
27e69b7a
SM
40322020-09-14 Simon Marchi <simon.marchi@efficios.com>
4033
4034 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
4035 New methods.
4036 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
4037 call sites to use type::set_is_prototyped.
4038
d2183968
SM
40392020-09-14 Simon Marchi <simon.marchi@efficios.com>
4040
4041 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
4042 uses with type::target_is_stub.
4043
8f53807e
SM
40442020-09-14 Simon Marchi <simon.marchi@efficios.com>
4045
4046 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
4047 New methods.
4048 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
4049 sites to use type::set_target_is_stub.
4050
e46d3488
SM
40512020-09-14 Simon Marchi <simon.marchi@efficios.com>
4052
4053 * gdbtypes.h (TYPE_STUB): Remove, replace all
4054 uses with type::is_stub.
4055
b4b73759
SM
40562020-09-14 Simon Marchi <simon.marchi@efficios.com>
4057
4058 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
4059 (TYPE_STUB): Use type::is_stub, change all write call sites to
4060 use type::set_is_stub.
4061
20ce4123
SM
40622020-09-14 Simon Marchi <simon.marchi@efficios.com>
4063
4064 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
4065 type::has_no_signedness.
4066
15152a54
SM
40672020-09-14 Simon Marchi <simon.marchi@efficios.com>
4068
4069 * gdbtypes.h (struct type) <has_no_signedness,
4070 set_has_no_signedness>: New methods.
4071 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
4072 call sites to use type::set_has_no_signedness.
4073
c6d940a9
SM
40742020-09-14 Simon Marchi <simon.marchi@efficios.com>
4075
4076 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
4077 type::is_unsigned.
4078
653223d3
SM
40792020-09-14 Simon Marchi <simon.marchi@efficios.com>
4080
4081 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
4082 methods.
4083 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
4084 sites to use type::set_is_unsigned.
4085
55ea94da 40862020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 4087 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 4088
e851246a
SM
4089 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
4090 pointer and stack frame offset when unwinding.
55ea94da 4091
6791b117
PA
40922020-09-13 Pedro Alves <pedro@palves.net>
4093
4094 * NEWS: Document "-break-insert --qualified".
4095 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
4096
77f2120b
PA
40972020-09-13 Pedro Alves <pedro@palves.net>
4098
4099 * linespec.c (classify_mtype, compare_msyms): Delete.
4100 (search_minsyms_for_name): Remove classification logic. Instead
4101 filter out trampoline symbols if we also found an external
4102 function of the same name.
4103
ed6a896c
JB
41042020-09-13 Joel Brobecker <brobecker@adacore.com>
4105
4106 * NEWS: Create a new section for the next release branch.
4107 Rename the section of the current branch, now that it has
4108 been cut.
4109
32aea73e
JB
41102020-09-13 Joel Brobecker <brobecker@adacore.com>
4111
4112 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
4113 * version.in: Bump version to 11.0.50.DATE-git.
4114
8087c3fa
JB
41152020-09-12 Joel Brobecker <brobecker@adacore.com>
4116
4117 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
4118
2a67f09d
FW
41192020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
4120 Felix Willgerodt <Felix.Willgerodt@intel.com>
4121
4122 * gdbarch.sh: Added bfloat16 type.
4123 * gdbarch.c: Regenerated.
4124 * gdbarch.h: Regenerated.
4125 * gdbtypes.c (floatformats_bfloat16): New struct.
4126 (gdbtypes_post_init): Add builtin_bfloat16.
4127 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
4128 (floatformats_bfloat16): New struct.
4129 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
4130 (i386_ymm_type): Add field "v16_bfloat16"
4131 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
4132 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
4133 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
4134 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
4135 * features/i386/64bit-avx512.xml: Add bfloat16 type.
4136 * features/i386/64bit-avx512.c: Regenerated.
4137 * features/i386/64bit-sse.xml: Add bfloat16 type.
4138 * features/i386/64bit-sse.c: Regenerated.
4139
1347d111
FW
41402020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
4141
4142 * i386-tdep.c (i386_zmm_type): Fix field names.
4143 (i386_ymm_type): Fix field names.
4144
7a4e8e7d
TBA
41452020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4146
4147 * breakpoint.c: Fix typo in the help message of the
4148 "set breakpoint condition-evaluation" command.
4149
cf4ac4be
KR
41502020-09-10 Kamil Rytarowski <n54@gmx.com>
4151
4152 * nbsd-nat.c: Include "nat/netbsd-nat.h".
4153 * (nbsd_nat_target::pid_to_exec_file)
4154 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
4155 (nbsd_nat_target::post_startup_inferior)
4156 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
4157 (nbsd_add_threads): Switch local code to common gdb/nat functions.
4158 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
4159 * (nbsd_thread_lister): Remove.
4160
f404573e
KR
41612020-09-10 Kamil Rytarowski <n54@gmx.com>
4162
4163 * fork-inferior.c (startup_inferior): Avoid double free.
4164
1ccb2c17
KR
41652020-09-10 Kamil Rytarowski <n54@gmx.com>
4166
4167 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
4168 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
4169
feedfcc7
KR
41702020-09-10 Kamil Rytarowski <n54@gmx.com>
4171
4172 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
4173 * netbsd-nat.c: Include <sys/ptrace.h>.
4174 * (netbsd_nat::enable_proc_events): Add.
4175
c489f8c6
KR
41762020-09-10 Kamil Rytarowski <n54@gmx.com>
4177
4178 * netbsd-nat.h: Include "gdbsupport/function-view.h".
4179 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4180 (netbsd_nat::for_each_thread): Add.
4181 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
4182 "gdbsupport/common-debug.h".
4183 * (netbsd_nat::netbsd_thread_lister)
4184 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4185 (netbsd_nat::for_each_thread): Add.
4186
330662f6
KR
41872020-09-10 Kamil Rytarowski <n54@gmx.com>
4188
4189 * netbsd-nat.h: Include <unistd.h>.
4190 * (netbsd_nat::pid_to_exec_file): Add.
4191 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
4192 * (netbsd_nat::pid_to_exec_file) Add.
4193
70b67307
KR
41942020-09-10 Kamil Rytarowski <n54@gmx.com>
4195
4196 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
4197
99cf6da6
KR
41982020-09-10 Kamil Rytarowski <n54@gmx.com>
4199
4200 * netbsd-nat.h: New file.
4201 * netbsd-nat.c: Likewise.
4202
1b788fb6
TT
42032020-09-09 Tom Tromey <tromey@adacore.com>
4204
4205 * ada-lang.c (remove_extra_symbols): Do not increment when
4206 removing an element
4207
03b0a45f
TT
42082020-09-08 Tom Tromey <tromey@adacore.com>
4209
4210 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
4211
3cae4447
TT
42122020-09-08 Tom Tromey <tromey@adacore.com>
4213
4214 PR win32/25302:
4215 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
4216 (gdb_bfd_init_data): New function.
4217 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
4218
7f08fd51
TBA
42192020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4220
4221 * infrun.c (fetch_inferior_event): Use
4222 `switch_to_target_no_thread` to switch the target.
4223
3e6ff933
TT
42242020-09-06 Tom Tromey <tom@tromey.com>
4225
4226 * symfile.h (dwarf2_free_objfile): Don't declare.
4227
e56798df
AKS
42282020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4229
4230 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
4231 to match 16 byte real/complex type generated by Flang compiler.
4232
8f5c6526
TV
42332020-09-03 Tom de Vries <tdevries@suse.de>
4234
4235 PR breakpoint/26546
4236 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
4237 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
4238
c5065df0
SM
42392020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
4240
4241 * maint.c (index_digits): New function.
4242 (struct maint_print_section_data): Remove.
4243 (print_bfd_section_info): Remove print_data parameter, add arg
4244 and index_digits.
4245 (print_objfile_section_info): Likewise.
4246 (print_bfd_section_info_maybe_relocated): Likewise (plus
4247 objfile).
4248 (maintenance_info_sections): Adjust calls.
4249
02c6f3f1
TT
42502020-09-02 Tom Tromey <tromey@adacore.com>
4251
4252 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
4253 for null pointers.
4254 (ada_varobj_adjust_for_child_access): Special-case null pointers.
4255
ef5e5b0b
SM
42562020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
4257
4258 * bcache.h (struct bcache) <insert>: Change type of `added` to
4259 pointer to bool.
4260 * bcache.c (bcache::insert): Likewise.
4261 * gdbtypes.c (check_types_worklist): Adjust.
4262 * psymtab.c (add_psymbol_to_bcache): Adjust.
4263
973695d6
KB
42642020-08-31 Kevin Buettner <kevinb@redhat.com>
4265
4266 * corelow.c (unordered_set): Include.
4267 (class core_target): Add field 'm_core_unavailable_mappings'.
4268 (core_target::build_file_mappings): Print only one warning
4269 per inaccessible file. Add unavailable/broken mappings
4270 to m_core_unavailable_mappings.
4271 (core_target::xfer_partial): Call...
4272 (core_target::xfer_memory_via_mappings): New method.
4273
264fc0e2
SM
42742020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4275
4276 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
4277 type to bool.
4278
2de01bdb
SM
42792020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4280
4281 * dwarf2/read.c (struct field_info): Fix indentation.
4282
f3bd50f1
SM
42832020-08-31 Simon Marchi <simon.marchi@efficios.com>
4284
4285 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
4286 ordering in comment.
4287 * frame.c (frame_id_eq): Fix indentation.
4288
22b9b4b0
SL
42892020-08-31 Scott Linder <scott@scottlinder.com>
4290 Simon Marchi <simon.marchi@efficios.com>
4291
4292 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
4293 inline frame ids in outer frame.
4294
84154d16
SM
42952020-08-31 Simon Marchi <simon.marchi@efficios.com>
4296
4297 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
4298 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
4299 (outer_frame_id): Use FID_STACK_OUTER instead of
4300 FID_STACK_INVALID.
4301 (frame_id_p): Don't check for outer_frame_id.
4302
8efaf6b3
SM
43032020-08-31 Simon Marchi <simon.marchi@efficios.com>
4304
4305 * frame-unwind.c (frame_unwind_got_optimized): Don't set
4306 regnum/frame in value. Call allocate_value_lazy.
4307 * frame.c (frame_unwind_register_value): Use
4308 val_print_not_saved.
4309
fe1fe7ea
SM
43102020-08-31 Simon Marchi <simon.marchi@efficios.com>
4311
4312 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
4313
f7c7700d
PA
43142020-08-29 Pedro Alves <pedro@palves.net>
4315
4316 * progspace.c (print_program_space): Use all_inferiors. Switch to
4317 the inferior before calling target_pid_to_str.
4318
e0814aae
TT
43192020-08-28 Tom Tromey <tom@tromey.com>
4320
4321 * xcoffread.c (xcoff_end_psymtab): Update comment.
4322 * dbxread.c (dbx_end_psymtab): Update comment.
4323
626d2320
TV
43242020-08-28 Tom de Vries <tdevries@suse.de>
4325
4326 PR breakpoint/26544
4327 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
4328 event_location.
4329 (create_breakpoint): Same.
4330 (base_breakpoint_decode_location): Same.
4331 (bkpt_create_sals_from_location): Same.
4332 (bkpt_decode_location): Same.
4333 (bkpt_probe_create_sals_from_location): Same.
4334 (bkpt_probe_decode_location): Same.
4335 (tracepoint_create_sals_from_location): Same.
4336 (tracepoint_decode_location): Same.
4337 (tracepoint_probe_decode_location): Same.
4338 (strace_marker_create_sals_from_location): Same.
4339 (strace_marker_decode_location): Same.
4340 (create_sals_from_location_default): Same.
4341 (decode_location_default): Same.
4342 * breakpoint.h (struct breakpoint_ops): Same.
4343 (create_breakpoint): Same.
4344 * linespec.h (decode_line_full): Same.
4345 * linespec.c (decode_line_full): Same. Throw error if
4346 result.size () == 0.
4347
df631783
PA
43482020-08-27 Pedro Alves <pedro@palves.net>
4349
4350 PR gdb/26524
4351 * breakpoint.c (until_break_fsm) <location_breakpoint,
4352 caller_breakpoint>: Delete fields.
4353 <breakpoints>: New field.
4354 <until_break_fsm>: Adjust to save a breakpoint vector instead of
4355 two individual breakpoints.
4356 (until_break_fsm::should_stop): Loop over breakpoints in the
4357 breakpoint vector.
4358 (until_break_fsm::clean_up): Adjust to clear the breakpoints
4359 vector.
4360 (until_break_command): Handle location expanding into multiple
4361 sals.
4362
b2b38aa4
PA
43632020-08-27 Pedro Alves <pedro@palves.net>
4364
4365 PR gdb/26523
4366 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
4367 bp_until breakpoints user-specified locations. Update intro
4368 comment.
4369
b886559f
SM
43702020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
4371
4372 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
4373 gdb_bfd_sections): New.
4374 * maint.c (print_bfd_section_info): Change param type to
4375 maint_print_section_data.
4376 (print_objfile_section_info): Likewise.
4377 (print_bfd_section_info_maybe_relocated): Likewise.
4378 (maintenance_info_sections): Use gdb_bfd_sections.
4379
4c6e63bf
SV
43802020-08-25 Shahab Vahedi <shahab@synopsys.com>
4381
4382 * MAINTAINERS: Add ARC target and maintainer.
4383
8d7f0635
AK
43842020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
4385
4386 * configure.tgt: ARC support for GNU/Linux.
4387 * Makefile.in (ALL_TARGET_OBJS): Likewise.
4388 * arc-linux-tdep.c: New file.
4389 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
4390 * arc-tdep.c (arc_write_pc): Use it.
4391
fdd8731b
SV
43922020-08-25 Shahab Vahedi <shahab@synopsys.com>
4393
4394 * arc-tdep.c (arc_check_for_hardware_loop): New.
4395 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
4396
22459524
SV
43972020-08-25 Shahab Vahedi <shahab@synopsys.com>
4398
4399 * arc-tdep.h: Include "gdbarch.h".
4400
995d3a19
SV
44012020-08-25 Shahab Vahedi <shahab@synopsys.com>
4402
4403 * arch/arc.h
4404 (arc_gdbarch_features): New class to stir the selection of target XML.
4405 (arc_create_target_description): Use FEATURES to choose XML target.
4406 (arc_lookup_target_description): Use arc_create_target_description
4407 to create _new_ target descriptions or return the already created
4408 ones if the FEATURES is the same.
4409 * arch/arc.c: Implementation of prototypes described above.
4410 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
4411 (arc_gdbarch_features_init): Initialize the FEATURES struct.
4412 * arc-tdep.c (*_feature_name): Make feature names consistent.
4413 (arc_register_feature): A new struct to hold information about
4414 registers of a particular target/feature.
4415 (arc_check_tdesc_feature): Check if XML provides registers in
4416 compliance with ARC_REGISTER_FEATURE structs.
4417 (arc_update_acc_reg_names): Add aliases for r58 and r59.
4418 (determine_*_reg_feature_set): Which feature name to look for.
4419 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
4420 (mach_type_to_arc_isa): Convert from a set of binutils machine types
4421 to expected ISA enums to be used in arc_gdbarch_features structs.
4422 * features/Makefile (FEATURE_XMLFILES): Add new files.
4423 * gdb/features/arc/v1-aux.c: New file.
4424 * gdb/features/arc/v1-aux.xml: Likewise.
4425 * gdb/features/arc/v1-core.c: Likewise.
4426 * gdb/features/arc/v1-core.xml: Likewise.
4427 * gdb/features/arc/v2-aux.c: Likewise.
4428 * gdb/features/arc/v2-aux.xml: Likewise.
4429 * gdb/features/arc/v2-core.c: Likewise.
4430 * gdb/features/arc/v2-core.xml: Likewise.
4431 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
4432
3945d2d7
GM
44332020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
4434 Andrew Burgess <andrew.burgess@embecosm.com>
4435
4436 PR m2/26372
fc5d6901 4437 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
4438 an assert. Remove single element array indexing pattern as the
4439 MULTI_SUBSCRIPT support will handle this case too.
4440
2677f2d3
SM
44412020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
4442
4443 * value.h (valprint_check_validity): Move declaration from
4444 here...
4445 * valprint.h (valprint_check_validity): ... to here.
4446
c426fddb
SM
44472020-08-24 Simon Marchi <simon.marchi@efficios.com>
4448
4449 * debug.h: New file.
4450 * debug.c (debug_prefixed_vprintf): New function.
4451 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
4452 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
4453
1eb8556f
SM
44542020-08-24 Simon Marchi <simon.marchi@efficios.com>
4455
4456 * infrun.h (infrun_debug_printf_1): New function declaration.
4457 (infrun_debug_printf): New macro.
4458 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
4459 throughout.
4460 (infrun_debug_printf): New function.
4461 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
4462 (handle_jit_event): Likewise.
4463
b8fff44e
MW
44642020-08-21 Mark Wielaard <mark@klomp.org>
4465
4466 * ada-lex.l: Extend register warnings diagnostics comment for g++.
4467
d19c3068
SM
44682020-08-22 Simon Marchi <simon.marchi@efficios.com>
4469
4470 * frame.c (enum class frame_id_status): New.
4471 (struct frame_info) <this_id::p>: Change type to frame_id_status.
4472 (fprintf_frame): Update.
4473 (compute_frame_id): Set frame id status to "computing" on entry.
4474 Set it back to "not_computed" on failure and to "computed" on
4475 success.
4476 (get_frame_id): Assert the frame id is not being computed.
4477 (create_sentinel_frame): Use frame_id_status::COMPUTED.
4478 (create_new_frame): Likewise.
4479 (frame_cleanup_after_sniffer): Update assert.
4480
b70e516e
SM
44812020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4482
4483 * regcache.c (pid_ptid_regcache_map): New type.
4484 (target_ptid_regcache_map): Remove.
4485 (target_pid_ptid_regcache_map): New type.
4486 (regcaches): Change type to target_pid_ptid_regcache_map.
4487 (get_thread_arch_aspace_regcache): Update.
4488 (regcache_thread_ptid_changed): Update, handle pid-like ptid
4489 case.
4490 (regcaches_size): Update.
4491 (regcache_count): Update.
4492 (registers_changed_ptid_target_pid_test): New.
4493 (_initialize_regcache): Register new test.
4494
cdd9148a
SM
44952020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4496
4497 * regcache.c (regcache_count): New.
4498 (struct regcache_test_data): New.
4499 (regcache_test_data_up): New.
4500 (populate_regcaches_for_test): New.
4501 (regcaches_test): Remove.
4502 (get_thread_arch_aspace_regcache_test): New.
4503 (registers_changed_ptid_all_test): New.
4504 (registers_changed_ptid_target_test): New.
4505 (registers_changed_ptid_target_ptid_test): New.
4506 (regcache_thread_ptid_changed): Remove regcache_count lambda.
4507 (_initialize_regcache): Register new tests.
4508
dd125343
SM
45092020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4510
4511 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
4512 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
4513 gdbarch and aspace parameter. Use current inferior's aspace.
4514 Validate regcache's arch value.
4515 (regcaches_test): Update.
4516
3ee93972
SM
45172020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4518
4519 * regcache.c (regcaches_test): Call registers_changed.
4520
33bf4c5c
TBA
45212020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4522
4523 * infrun.c (process_event_stop_test): Fix typo "breapoint".
4524
c2fd7fae
AKS
45252020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4526
4527 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
4528 to find the end of prologue for flang compiled binaries.
4529 * arm-tdep.c (arm_skip_prologue): Likewise.
4530 * i386-tdep.c (i386_skip_prologue): Likewise.
4531 * producer.c (producer_is_llvm): New function.
4532 (producer_parsing_tests): Added new tests for clang/flang.
4533 * producer.h (producer_is_llvm): New declaration.
4534
9327494e
SM
45352020-08-18 Simon Marchi <simon.marchi@efficios.com>
4536
4537 * linux-nat.c (linux_nat_debug_printf): New function.
4538 (linux_nat_debug_printf_1): New macro. Use throughout the file.
4539
d138725a
AM
45402020-08-18 Aaron Merey <amerey@redhat.com>
4541
4542 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
4543 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
4544 (CLIBS): Add DEBUGINFOD_LIBS.
4545
f9b11e6b
ST
45462020-08-17 Sergei Trofimovich <siarheit@google.com>
4547
4548 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
4549 'gdbarch_num_regs'.
4550
3ae7ab99
TT
45512020-08-17 Tom Tromey <tromey@adacore.com>
4552
4553 * ada-varobj.c (ada_varobj_decode_var): Handle case where
4554 ada_get_decoded_value returns NULL.
4555
b017825f
TT
45562020-08-17 Tom Tromey <tromey@adacore.com>
4557
4558 * python/py-inferior.c (infpy_search_memory): Use
4559 gdb_py_object_from_ulongest.
4560 * python/py-infevents.c (create_inferior_call_event_object)
4561 (create_memory_changed_event_object): Use
4562 gdb_py_object_from_ulongest.
4563 * python/py-linetable.c (ltpy_entry_get_pc): Use
4564 gdb_py_object_from_ulongest.
4565
7635cf79
SM
45662020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
4567
4568 * loc.c (class symbol_needs_eval_context): Fix indentation.
4569
f54be24b
SM
45702020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
4571
4572 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
4573 bool.
4574
53d5a2a5
TV
45752020-08-17 Tom de Vries <tdevries@suse.de>
4576
4577 PR gdb/26393
4578 * gdbtypes.c (dump_dynamic_prop): New function.
4579 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
4580
547ce8f0
TV
45812020-08-15 Tom de Vries <tdevries@suse.de>
4582
4583 PR backtrace/26390
4584 * stack.c (print_frame_args): Temporarily set the selected
4585 frame to FRAME while printing the frame's arguments.
4586
6ea815e7
PFC
45872020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4588
4589 PR breakpoints/26385
4590 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
4591 Always clear watchpoint with PTRACE_SET_DEBUGREG.
4592
6e562fa3
PFC
45932020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4594
4595 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
4596 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
4597 and >= to check return value instead of == -1 and != -1.
4598
d369b608
SM
45992020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
4600
4601 * utils.h (class gdb_argv) <as_array_view>: New method.
4602 * utils.c (gdb_argv_as_array_view_test): New.
4603 (_initialize_utils): Register selftest.
4604 * maint.c (maintenance_selftest): Use the new method.
4605
b31488a3
KR
46062020-08-13 Kamil Rytarowski <n54@gmx.com>
4607
4608 * target.h (supports_dumpcore, dumpcore): New
4609 function declarations.
4610 * target.c (supports_dumpcore, dumpcore): New
4611 functions.
4612 * target-delegates.c: Rebuild.
4613 * gcore.c (gcore_command): Use target_supports_dumpcore ()
4614 and target_dumpcore ().
4615
002a3166
AM
46162020-08-13 Aaron Merey <amerey@redhat.com>
4617
4618 * debuginfod-support.c: Replace global variables with user_data.
4619
ece5bc8a
SM
46202020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
4621
4622 * maint.c (maintenance_selftest): Split args and pass array_view
4623 to run_tests.
4624
6d8a0a5e
LM
46252020-08-12 Luis Machado <luis.machado@linaro.org>
4626
4627 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
4628 type's length.
4629 Use %s and pulongest to print the length.
4630
7cf663a9
PA
46312020-08-12 Pedro Alves <palves@redhat.com>
4632
4633 * NEWS: Move "Multi-target debugging support" item to the
4634 "Changes since GDB 9" section.
4635
27c7b875
PA
46362020-08-12 Pedro Alves <palves@redhat.com>
4637
4638 PR gdb/26336
4639 * progspace.c (program_space::remove_objfile): Invalidate the
4640 frame cache.
4641
1796a2a1
TV
46422020-08-11 Tom de Vries <tdevries@suse.de>
4643
4644 * MAINTAINERS: Mark ms1 as deleted.
4645
f8e3fe0d
LM
46462020-08-10 Luis Machado <luis.machado@linaro.org>
4647
4648 PR gdb/26310
4649
4650 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
4651 act accordingly.
4652 (aarch64_analyze_prologue_test): Add more unit tests to exercise
4653 movz/str/stur/stp skipping behavior.
4654
cc308722
LM
46552020-08-10 Luis Machado <luis.machado@linaro.org>
4656
4657 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
4658 struct user_sve_header instead of struct sve_context.
4659
041d9819
SM
46602020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
4661
4662 * read.h (dwarf2_fetch_die_loc_sect_off,
4663 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
4664 `void *` parameter with function_view.
4665 * read.c (dwarf2_fetch_die_loc_sect_off,
4666 dwarf2_fetch_die_loc_cu_off): Likewise.
4667 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
4668 (per_cu_dwarf_call): Adjust.
4669 (get_frame_address_in_block_wrapper): Remove.
4670 (indirect_synthetic_pointer): Adjust.
4671 (get_ax_pc): Remove.
4672 (dwarf2_compile_expr_to_ax): Adjust.
4673
38f8aa06
TV
46742020-08-08 Tom de Vries <tdevries@suse.de>
4675
4676 PR build/26344
4677 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
4678 constructor.
4679 * regcache.c (get_thread_arch_aspace_regcache): Same.
4680
a52b3ae2
TT
46812020-08-07 Tom Tromey <tromey@adacore.com>
4682
4683 * ravenscar-thread.c
4684 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
4685 New method.
4686 (ravenscar_thread_target::wait): Check
4687 runtime_initialized.
4688 (ravenscar_thread_target::prepare_to_store)
4689 (ravenscar_thread_target::stopped_by_sw_breakpoint)
4690 (ravenscar_thread_target::stopped_by_hw_breakpoint)
4691 (ravenscar_thread_target::stopped_by_watchpoint)
4692 (ravenscar_thread_target::stopped_data_address)
4693 (ravenscar_thread_target::core_of_thread): Use
4694 scoped_restore_current_thread and
4695 set_base_thread_from_ravenscar_task.
4696
0e29517d
TT
46972020-08-07 Tom Tromey <tromey@adacore.com>
4698
4699 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
4700
592f9bd7
TT
47012020-08-07 Tom Tromey <tromey@adacore.com>
4702
4703 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
4704 update_inferior_ptid before update_thread_list.
4705 (temporarily_change_regcache_ptid): New class.
4706 (ravenscar_thread_target::fetch_registers)
4707 (ravenscar_thread_target::store_registers)
4708 (ravenscar_thread_target::prepare_to_store): Use base thread when
4709 forwarding operation.
4710
39e2018a
TT
47112020-08-07 Tom Tromey <tromey@adacore.com>
4712
4713 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
4714 "is_pid" case.
4715
2080266b
TT
47162020-08-07 Tom Tromey <tromey@adacore.com>
4717
4718 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
4719 New methods.
4720 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
4721 first.
4722 (ravenscar_thread_target::add_thread): Rename from
4723 ravenscar_add_thread.
4724 (ravenscar_thread_target::update_thread_list): Use a lambda.
4725 (ravenscar_thread_target::xfer_partial): New method.
4726
78c02f21
TT
47272020-08-07 Tom Tromey <tromey@adacore.com>
4728
4729 * ada-lang.h (ada_task_list_iterator_ftype): Now a
4730 gdb::function_view.
4731 (iterate_over_live_ada_tasks): Change type of argument.
4732 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
4733 of argument.
4734
d5d833af
TT
47352020-08-07 Tom Tromey <tromey@adacore.com>
4736
4737 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
4738 Remove.
4739 (ravenscar_thread_target::extra_thread_info): Remove.
4740 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
4741 defer to target beneath for non-Ravenscar threads.
4742
a8ac85bb
TT
47432020-08-07 Tom Tromey <tromey@adacore.com>
4744
4745 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
4746 get_base_thread_from_ravenscar_task>: Now methods.
4747 <m_cpu_map>: New member.
4748 (ravenscar_thread_target::get_thread_base_cpu): Rename from
4749 ravenscar_get_thread_base_cpu. Check m_cpu_map.
4750 (ravenscar_thread_target::task_is_currently_active): Update.
4751 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
4752 Now a method.
4753 (ravenscar_thread_target::add_active_thread): Put initial thread
4754 into the m_cpu_map.
4755
550ab58d
TT
47562020-08-07 Tom Tromey <tromey@adacore.com>
4757
4758 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
4759 event_ptid.
4760
e9546579
TT
47612020-08-07 Tom Tromey <tromey@adacore.com>
4762
4763 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
4764 runtime_initialized.
4765
3d4470e5
TT
47662020-08-07 Tom Tromey <tromey@adacore.com>
4767
4768 * ravenscar-thread.c (ravenscar_thread_target): Don't call
4769 add_active_thread.
4770 (ravenscar_thread_target::add_active_thread): Now public.
4771 (ravenscar_inferior_created): Call add_active_thread after pushing
4772 the target.
4773
888bdb2b
SM
47742020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
4775
4776 * regcache.c (ptid_regcache_map): New type.
4777 (target_ptid_regcache_map): New type.
4778 (regcaches): Change type to target_ptid_regcache_map.
4779 (get_thread_arch_aspace_regcache): Update to regcaches' new
4780 type.
4781 (regcache_thread_ptid_changed): Likewise.
4782 (registers_changed_ptid): Likewise.
4783 (regcaches_size): Likewise.
4784 (regcaches_test): Update.
4785 (regcache_thread_ptid_changed): Update.
4786 * regcache.h (regcache_up): New type.
4787 * gdbsupport/ptid.h (hash_ptid): New struct.
4788
b161a60d
SM
47892020-08-07 Simon Marchi <simon.marchi@efficios.com>
4790
4791 * observable.h (thread_ptid_changed): Add parameter
4792 `process_stratum_target *`.
4793 * infrun.c (infrun_thread_ptid_changed): Add parameter
4794 `process_stratum_target *` and use it.
4795 (selftests): New namespace.
4796 (infrun_thread_ptid_changed): New function.
4797 (_initialize_infrun): Register selftest.
4798 * regcache.c (regcache_thread_ptid_changed): Add parameter
4799 `process_stratum_target *` and use it.
4800 (regcache_thread_ptid_changed): New function.
4801 (_initialize_regcache): Register selftest.
4802 * thread.c (thread_change_ptid): Pass target to
4803 thread_ptid_changed observable.
4804
d2854d8d
CT
48052020-08-06 Caroline Tice <cmtice@google.com>
4806
fe4c3d43
SM
4807 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
4808 (struct dwp_sections): Update field comments. Add loclists and
4809 rnglists fields.
4810 (struct virtual_v2_dwo_sections): Rename struct to
4811 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
4812 size & offset fields for loclists and rnglists.
4813 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
4814 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
4815 skipping dummy type units.
4816 (create_dwp_hash_table): Update the large comment above the function to
4817 discuss Version 5 DWP files as well, with references. Update all the
4818 version checks in the function to check for version 5 as well. Add new
4819 section at the end to create dwp hash table for version 5.
4820 (create_dwp_v2_section): Rename function to
4821 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
4822 Add V5 to error message text.
4823 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
4824 into calls to create_dwp_v2_or_v5_section.
4825 (create_dwo_unit_in_dwp_v5): New function.
4826 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
4827 check for version2; add else clause to handle version 5.
4828 (open_and_init_dwo_file): Add code to check dwarf version & only call
4829 create_debug_types_hash_table (with sections.types) if version is not 5;
4830 else call create_debug_type_hash_table, with sections.info.
4831 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
4832 version 5.
4833 (dwarf2_locate_v5_dwp_sections): New function.
4834 (open_and_init_dwp_file): Add else-if clause for version 5 to call
4835 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 4836
159ed7d9
SM
48372020-08-06 Simon Marchi <simon.marchi@efficios.com>
4838
4839 * regcache.h (class regcache): Remove friend
4840 registers_changed_ptid.
4841 <regcache_thread_ptid_changed>: Remove.
4842 <regcaches>: Remove.
4843 * regcache.c (regcache::regcaches): Rename to...
4844 (regcaches): ... this. Make static.
4845 (get_thread_arch_aspace_regcache): Update.
4846 (regcache::regcache_thread_ptid_changed): Rename to...
4847 (regcache_thread_ptid_changed): ... this. Update.
4848 (class regcache_access): Remove.
4849 (regcaches_test): Update.
4850 (_initialize_regcache): Update.
4851 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
4852 <forward_list>.
4853
174981ae
SM
48542020-08-06 Simon Marchi <simon.marchi@efficios.com>
4855
4856 * regcache.h (class regcache) <current_regcache>: Rename to...
4857 <regcaches>: ... this. Move doc here.
4858 * regcache.c (regcache::current_regcache) Rename to...
4859 (regcache::regcaches): ... this. Move doc to header.
4860 (get_thread_arch_aspace_regcache): Update.
4861 (regcache::regcache_thread_ptid_changed): Update.
4862 (registers_changed_ptid): Update.
4863 (class regcache_access) <current_regcache_size>: Rename to...
4864 <regcaches_size>: ... this.
4865 (current_regcache_test): Rename to...
4866 (regcaches_test): ... this.
4867 (_initialize_regcache): Update.
4868
ed908db6
VC
48692020-08-06 Victor Collod <vcollod@nvidia.com>
4870
4871 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
4872
b5582ab7
KB
48732020-08-05 Kevin Buettner <kevinb@redhat.com>
4874
4875 * corelow.c (core_target::build_file_mappings): Don't output
4876 null pathname in warning.
4877
ea946b86
SM
48782020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
4879
4880 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
4881 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
4882 gdb.dwarf2/dw2-single-line-discriminators.exp,
4883 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
4884
57d02173
TT
48852020-08-05 Tom Tromey <tromey@adacore.com>
4886
4887 PR rust/26197:
4888 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
4889 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
4890 Fix off-by-one and type size errors in ordinary case.
4891
5555c86d
TV
48922020-08-05 Tom de Vries <tdevries@suse.de>
4893
4894 * gdbtypes.c (type_not_allocated, type_not_associated): Use
4895 "prop->const_val () == 0" instead of "prop->const_val () != 0".
4896
97916bfe
SM
48972020-08-04 Simon Marchi <simon.marchi@efficios.com>
4898
4899 * frame.h (frame_id_p): Return bool.
4900 (frame_id_artificial_p): Return bool.
4901 (frame_id_eq): Return bool.
4902 (has_stack_frames): Return bool.
4903 (get_selected_frame): Fix typo in comment.
4904 (get_frame_pc_if_available): Return bool.
4905 (get_frame_address_in_block_if_available): Return bool.
4906 (get_frame_func_if_available): Return bool.
4907 (read_frame_register_unsigned): Return bool.
4908 (get_frame_register_bytes): Return bool.
4909 (safe_frame_unwind_memory): Return bool.
4910 (deprecated_frame_register_read): Return bool.
4911 (frame_unwinder_is): Return bool.
4912 * frame.c (struct frame_info) <prev_arch::p>: Change type to
4913 bool.
4914 <this_id::p>: Likewise.
4915 <prev_p>: Likewise.
4916 (frame_stash_add): Return bool.
4917 (get_frame_id): Use bool.
4918 (frame_id_build_special) Use bool.
4919 (frame_id_build_unavailable_stack): Use bool.
4920 (frame_id_build): Use bool.
4921 (frame_id_p): Return bool, use true/false instead of 1/0.
4922 (frame_id_artificial_p): Likewise.
4923 (frame_id_eq): Likewise.
4924 (frame_id_inner): Likewise.
4925 (get_frame_func_if_available): Likewise.
4926 (read_frame_register_unsigned): Likewise.
4927 (deprecated_frame_register_read): Likewise.
4928 (get_frame_register_bytes): Likewise.
4929 (has_stack_frames): Likewise.
4930 (inside_main_func): Likewise.
4931 (inside_entry_func): Likewise.
4932 (get_frame_pc_if_available): Likewise.
4933 (get_frame_address_in_block_if_available): Likewise.
4934 (frame_unwinder_is): Likewise.
4935 (safe_frame_unwind_memory): Likewise.
4936 (frame_unwind_arch): Likewise.
4937
fedfee88
SM
49382020-08-04 Simon Marchi <simon.marchi@efficios.com>
4939
4940 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
4941 type to cached_copy_status.
4942 (fprintf_frame): Adjust.
4943 (get_frame_func_if_available): Adjust.
4944 (frame_cleanup_after_sniffer): Adjust.
4945
6cfa9b59
MW
49462020-08-04 Mark Wielaard <mark@klomp.org>
4947
4948 * MAINTAINERS (Write After Approval): Update email address.
4949
66d6346b
SM
49502020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4951
4952 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
4953 dynamic_prop::const_val.
4954
8a6d5e35
SM
49552020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4956
4957 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
4958 dynamic_prop::kind.
4959
51d6067d
SM
49602020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4961
4962 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
4963
b26e2ae7
JM
49642020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
4965
4966 * configure.tgt: Set gdb_sim for bpf-*-* targets.
4967
39791af2
JM
49682020-08-04 Weimin Pan <weimin.pan@oracle.com>
4969 Jose E. Marchesi <jose.marchesi@oracle.com>
4970
4971 * configure.tgt: Add entry for bpf-*-*.
4972 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
4973 (ALLDEPFILES): Add bpf-tdep.c.
4974 * bpf-tdep.c: New file.
4975 * MAINTAINERS: Add bpf target and maintainer.
4976 * NEWS: Mention the support for the new target.
4977
521894aa
TV
49782020-08-04 Tom de Vries <tdevries@suse.de>
4979
4980 PR symtab/23270
4981 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
4982 Error.
4983
5d6356e9
JB
49842020-08-03 John Baldwin <jhb@FreeBSD.org>
4985
4986 * syscalls/freebsd.xml: Regenerate.
4987
0cf82b81
JB
49882020-08-03 John Baldwin <jhb@FreeBSD.org>
4989
4990 * syscalls/update-freebsd.sh: Fix usage and year range.
4991
8f34b746
TV
49922020-08-03 Tom de Vries <tdevries@suse.de>
4993
4994 PR symtab/26333
4995 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
4996 DW_LNE_lo_user/DW_LNE_hi_user range.
4997
5e500d33
SM
49982020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
4999
5000 PR ada/26318
5001 * ada-lang.c (ada_modulus): Return 0 if property is not of const
5002 kind.
5003
78319c15
TBA
50042020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5005
5006 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
5007
4c55e970
TBA
50082020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5009
5010 * breakpoint.c (set_breakpoint_condition): Update the condition
5011 expressions after checking that the input condition string parses
5012 successfully and does not contain junk at the end.
5013
1e620590
TBA
50142020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5015
5016 * breakpoint.c (set_breakpoint_condition): Update the
5017 condition string after parsing the new condition successfully.
5018
c8693053
RO
50192020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5020
5021 * proc-api.c (_STRUCTURED_PROC): Don't define.
5022 * proc-events.c: Likewise.
5023 * proc-flags.c: Likewise.
5024 * proc-why.c: Likewise.
5025 * procfs.c: Likewise.
5026
5027 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
5028 * configure, config.in: Regenerate.
5029
5a99adb8
TV
50302020-07-30 Tom de Vries <tdevries@suse.de>
5031
5032 PR build/26320
5033 * ui-style.h (struct ui_file_style::color): Wrap m_value and
5034 m_red/m_green/m_blue in a union.
5035
8ba83e91
TV
50362020-07-29 Tom de Vries <tdevries@suse.de>
5037
5038 PR tdep/26280
5039 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
5040
f75a0693
AB
50412020-07-28 Tom Tromey <tromey@adacore.com>
5042
5043 PR symtab/26270:
5044 * symtab.h (find_pc_partial_function_sym): Declare.
5045 * cli/cli-cmds.c (disassemble_command): Use
5046 find_pc_partial_function_sym. Check asm_demangle.
5047 * blockframe.c (cache_pc_function_sym): New global.
5048 (cache_pc_function_name): Remove.
5049 (clear_pc_function_cache): Update.
5050 (find_pc_partial_function_sym): New function, from
5051 find_pc_partial_function.
5052 (find_pc_partial_function): Rewrite using
5053 find_pc_partial_function_sym.
5054
16f3242c
TT
50552020-07-28 Tom Tromey <tromey@adacore.com>
5056
5057 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
5058 help. Add usage.
5059
4888741a
TT
50602020-07-28 Tom Tromey <tromey@adacore.com>
5061
5062 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
5063 <DW_OP_GNU_variable_value>: Cast to address type.
5064
4d46f402
KR
50652020-07-28 Kamil Rytarowski <n54@gmx.com>
5066
5067 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
5068 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
5069 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
5070 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
5071 (nbsd_get_siginfo_type): New.
5072 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
5073 (_initialize_nbsd_tdep): New.
5074
d70f978b
L
50752020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5076
5077 PR binutils/26301
5078 * configure: Regenerated.
5079
377170fa
L
50802020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5081
5082 PR binutils/26301
5083 * configure: Regenerated.
5084
43d5901d
AB
50852020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5086
5087 * python/py-frame.c: Remove 'user-regs.h' include.
5088 (frapy_read_register): Rewrite to make use of
5089 gdbpy_parse_register_id.
5090 * python/py-registers.c (gdbpy_parse_register_id): New function,
5091 moved here from python/py-unwind.c. Updated the return type, and
5092 also accepts register descriptor objects.
5093 * python/py-unwind.c: Remove 'user-regs.h' include.
5094 (pyuw_parse_register_id): Moved to python/py-registers.c.
5095 (unwind_infopy_add_saved_register): Update to use
5096 gdbpy_parse_register_id.
5097 (pending_framepy_read_register): Likewise.
5098 * python/python-internal.h (gdbpy_parse_register_id): Declare.
5099
14fa8fb3
AB
51002020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5101
5102 * python/py-registers.c: Add 'user-regs.h' include.
5103 (register_descriptor_iter_find): New function.
5104 (register_descriptor_iterator_object_methods): New static global
5105 methods array.
5106 (register_descriptor_iterator_object_type): Add pointer to methods
5107 array.
5108
ddce1758
JB
51092020-07-27 John Baldwin <jhb@FreeBSD.org>
5110
5111 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
5112 for all architectures on FreeBSD 11.3 and later.
5113
a4089f52
TT
51142020-07-27 Tom Tromey <tromey@adacore.com>
5115
5116 * gcore.h (load_corefile): Don't declare.
5117
95420d30
TV
51182020-07-27 Tom de Vries <tdevries@suse.de>
5119
5120 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
5121 * config.in: Regenerate.
5122 * configure: Regenerate.
5123
05a6b8c2
EZ
51242020-07-26 Eli Zaretskii <eliz@gnu.org>
5125
5126 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
5127 ws2tcpip.h. When checking whether socklen_t type is defined, use
5128 ws2tcpip.h if it is available and sys/socket.h isn't.
5129 * configure: Regenerate.
5130 * config.in: Regenerate.
5131
e79eb02f
AB
51322020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
5133
5134 PR fortran/23051
5135 PR fortran/26139
5136 * valops.c (value_ind): Pass address to
5137 readjust_indirect_value_type.
5138 * value.c (readjust_indirect_value_type): Make parameter
5139 non-const, and add extra address parameter. Resolve original type
5140 before using it.
5141 * value.h (readjust_indirect_value_type): Update function
5142 signature and comment.
5143
876518dd
TV
51442020-07-25 Tom de Vries <tdevries@suse.de>
5145
5146 PR symtab/26243
5147 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
5148 entries.
5149
f6720b1c
AM
51502020-07-24 Aaron Merey <amerey@redhat.com>
5151
5152 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
5153 * configure: Rebuild.
5154
513487e1
KB
51552020-07-23 Kevin Buettner <kevinb@redhat.com>
5156
5157 PR corefiles/26294
5158 * corelow.c (_initialize_corelow): Add period to help text
5159 for "maintenance print core-file-backed-mappings".
5160
e7bc9db8
PA
51612020-07-23 Pedro Alves <pedro@palves.net>
5162
5163 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
5164 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
5165 meanwhile.
5166 * frame.c (frame_cache_generation, get_frame_cache_generation):
5167 New.
5168 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
5169 (get_prev_frame_if_no_cycle): On exception, don't touch
5170 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
5171 * frame.h (get_frame_cache_generation): Declare.
5172
90fcc466
TV
51732020-07-23 Tom de Vries <tdevries@suse.de>
5174
5175 PR tui/26282
5176 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
5177 New default constructor.
5178
78344df7
AB
51792020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
5180
5181 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
5182 exclude non-statement entries.
5183
b089853a
KB
51842020-07-22 Kevin Buettner <kevinb@redhat.com>
5185
5186 * NEWS (New commands): Mention new command
5187 "maintenance print core-file-backed-mappings".
5188
09c2f5d4
KB
51892020-07-22 Kevin Buettner <kevinb@redhat.com>
5190
5191 * corelow.c (gdbcmd.h): Include.
5192 (core_target::info_proc_mappings): New method.
5193 (get_current_core_target): New function.
5194 (maintenance_print_core_file_backed_mappings): New function.
5195 (_initialize_corelow): Add core-file-backed-mappings to
5196 "maint print" commands.
5197
9c5ec5c2 51982020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 5199
9c5ec5c2
KB
5200 * linux-tdep.c (dump_note_entry_p): New function.
5201 (linux_dump_mapping_p_ftype): New typedef.
5202 (linux_find_memory_regions_full): Add new parameter,
5203 should_dump_mapping_p.
5204 (linux_find_memory_regions): Adjust call to
5205 linux_find_memory_regions_full.
5206 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
5207 call to linux_find_memory_regions_full.
5208
db082f59
KB
52092020-07-22 Kevin Buettner <kevinb@redhat.com>
5210
5211 * corelow.c (solist.h, unordered_map): Include.
5212 (class core_target): Add field m_core_file_mappings and
5213 method build_file_mappings.
5214 (core_target::core_target): Call build_file_mappings.
5215 (core_target::~core_target): Free memory associated with
5216 m_core_file_mappings.
5217 (core_target::build_file_mappings): New method.
5218 (core_target::xfer_partial): Use m_core_file_mappings
5219 for memory transfers.
5220 * linux-tdep.c (linux_read_core_file_mappings): New
5221 function.
5222 (linux_core_info_proc_mappings): Rewrite to use
5223 linux_read_core_file_mappings.
5224 (linux_init_abi): Register linux_read_core_file_mappings.
5225
7e183d27
KB
52262020-07-22 Kevin Buettner <kevinb@redhat.com>
5227
5228 * arch-utils.c (default_read_core_file_mappings): New function.
5229 * arch-utils.c (default_read_core_file_mappings): Declare.
5230 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
5231 * gdbarch.h, gdbarch.c: Regenerate.
5232
2735d421
KB
52332020-07-22 Kevin Buettner <kevinb@redhat.com>
5234
5235 PR corefiles/25631
5236 * corelow.c (core_target:xfer_partial): Revise
5237 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
5238 case after first checking the stratum beneath the core
5239 target.
5240 (has_all_memory): Return true.
5241 * target.c (raw_memory_xfer_partial): Revise comment
5242 regarding use of has_all_memory.
5243
e56cb451
KB
52442020-07-22 Kevin Buettner <kevinb@redhat.com>
5245
5246 * exec.h (section_table_xfer_memory): Revise declaration,
5247 replacing section name parameter with an optional callback
5248 predicate.
5249 * exec.c (section_table_xfer_memory): Likewise.
5250 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
5251 of section_table_xfer_memory.
5252
32fa152e
TT
52532020-07-22 Tom Tromey <tromey@adacore.com>
5254
5255 * mi/mi-cmd-stack.c (list_args_or_locals): Use
5256 lookup_symbol_search_name.
5257
a67a1c41
AB
52582020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5259
5260 * python/py-registers.c (gdbpy_register_object_data_init): Remove
5261 redundant local variable.
5262 (gdbpy_get_register_descriptor): Extract descriptor vector as a
5263 reference, not pointer, update code accordingly.
5264
a7b4ff4f
SM
52652020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5266 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5267
5268 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
5269 * jit.c (jit_breakpoint_re_set_internal): Use the
5270 `skip_jit_symbol_lookup` field.
5271
2340e834
SM
52722020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5273 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5274
5275 * jit.c (jit_read_descriptor): Define the descriptor address once,
5276 use twice.
5277 (jit_breakpoint_deleted): Move the declaration of the loop variable
5278 `iter` into the loop header.
5279 (jit_breakpoint_re_set_internal): Move the declaration of the local
5280 variable `objf_data` to the first point of definition.
5281 (jit_event_handler): Move the declaration of local variables
5282 `code_entry`, `entry_addr`, and `objf` to their first point of use.
5283 Rename `objf` to `jited`.
5284
c1072906
SM
52852020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5286
5287 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
5288 Remove.
5289 * jit.c (get_jiter_objfile_data): Update.
5290
c8474dc3
TBA
52912020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5292 Simon Marchi <simon.marchi@polymtl.ca>
5293
5294 * jit.c (struct jit_program_space_data): Remove.
5295 (jit_program_space_key): Remove.
5296 (jiter_objfile_data::~jiter_objfile_data): Remove program space
5297 stuff.
5298 (get_jit_program_space_data): Remove.
5299 (jit_breakpoint_deleted): Iterate on all of the program space's
5300 objfiles.
5301 (jit_inferior_init): Likewise.
5302 (jit_breakpoint_re_set_internal): Likewise. Also change return
5303 type to void.
5304 (jit_breakpoint_re_set): Pass current_program_space to
5305 jit_breakpoint_re_set_internal.
5306
77208eb7
SM
53072020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5308
5309 * jit.h (struct jiter_objfile_data) <cached_code_address,
5310 jit_breakpoint>: Move to here from ...
5311 * jit.c (jit_program_space_data): ... here.
5312 (jiter_objfile_data::~jiter_objfile_data): Update.
5313 (jit_breakpoint_deleted): Update.
5314 (jit_breakpoint_re_set_internal): Update.
5315
8c1c720f
SM
53162020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5317
5318 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
5319 checks.
5320 (jit_read_descriptor): Remove NULL check.
5321 (jit_event_handler): Add an assertion.
5322
0e74a041
SM
53232020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5324
5325 * jit.h (struct jit_objfile_data): Split into...
5326 (struct jiter_objfile_data): ... this ...
5327 (struct jited_objfile_data): ... and this.
5328 * objfiles.h (struct objfile) <jit_data>: Remove.
5329 <jiter_data, jited_data>: New fields.
5330 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
5331 (jiter_objfile_data::~jiter_objfile_data): ... this.
5332 (get_jit_objfile_data): Rename to ...
5333 (get_jiter_objfile_data): ... this.
5334 (add_objfile_entry): Update.
5335 (jit_read_descriptor): Use get_jiter_objfile_data.
5336 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
5337 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
5338 (jit_inferior_exit_hook): Use objfile's jited_data field.
5339
238b5c9f
SM
53402020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5341
5342 * jit.h: Forward-declare `struct minimal_symbol`.
5343 (struct jit_objfile_data): Migrate to here from jit.c; also add a
5344 constructor, destructor, and an objfile* field.
5345 * jit.c (jit_objfile_data): Remove.
5346 (struct jit_objfile_data): Migrate from here to jit.h.
5347 (jit_objfile_data::~jit_objfile_data): New destructor
5348 implementation with code moved from free_objfile_data.
5349 (free_objfile_data): Delete.
5350 (get_jit_objfile_data): Update to use the jit_data field of objfile.
5351 (jit_find_objf_with_entry_addr): Ditto.
5352 (jit_inferior_exit_hook): Ditto.
5353 (_initialize_jit): Remove the call to
5354 register_objfile_data_with_cleanup.
5355 * objfiles.h (struct objfile) <jit_data>: New field.
5356
fe053b9e
TBA
53572020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5358
5359 * jit.h: Forward-declare `struct objfile`.
5360 (jit_event_handler): Add a second parameter, the JITer objfile.
5361 * jit.c (jit_read_descriptor): Change the signature to take the
5362 JITer objfile as an argument instead of the jit_program_space_data.
5363 (jit_inferior_init): Update the call to jit_read_descriptor.
5364 (jit_event_handler): Use the new JITer objfile argument when calling
5365 jit_read_descriptor.
5366 * breakpoint.c (handle_jit_event): Update the call to
5367 jit_event_handler to pass the JITer objfile.
5368
4cec0c66
JB
53692020-07-21 John Baldwin <jhb@FreeBSD.org>
5370
5371 * gdbarch.c: Regenerate.
5372 * gdbarch.h: Regenerate.
5373 * gdbarch.sh (handle_segmentation_fault): Remove method.
5374 * infrun.c (handle_segmentation_fault): Remove.
5375 (print_signal_received_reason): Remove call to
5376 handle_segmentation_fault.
5377
0e42f66a
JB
53782020-07-21 John Baldwin <jhb@FreeBSD.org>
5379
5380 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
5381 Rename to sparc64_linux_report_signal_info and add siggnal
5382 argument.
5383 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
5384 instead of sparc64_linux_handle_segmentation_fault.
5385
77bdfeb2
JB
53862020-07-21 John Baldwin <jhb@FreeBSD.org>
5387
5388 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
5389 i386_linux_report_signal_info instead of
5390 i386_linux_handle_segmentation_fault.
5391 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
5392 to i386_linux_report_signal_info and add siggnal argument.
5393 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
5394 of i386_linux_handle_segmentation_fault.
5395 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
5396 to i386_linux_report_signal_info and add siggnal argument.
5397
ad97bfc5
JB
53982020-07-21 John Baldwin <jhb@FreeBSD.org>
5399
5400 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
5401 hook if present.
5402
272bb05c
JB
54032020-07-21 John Baldwin <jhb@FreeBSD.org>
5404
5405 * gdbarch.c: Regenerate.
5406 * gdbarch.h: Regenerate.
5407 * gdbarch.sh (report_signal_info): New method.
5408 * infrun.c (print_signal_received_reason): Invoke gdbarch
5409 report_signal_info hook if present.
5410
baf8791e
AB
54112020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
5412
5413 * python/py-registers.c : Add 'unordered_map' include.
5414 (gdbpy_new_reggroup): Renamed to...
5415 (gdbpy_get_reggroup): ...this. Update to only create register
5416 group descriptors when needed.
5417 (gdbpy_reggroup_iter_next): Update.
5418
f7306dac
AB
54192020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
5420
5421 * python/py-registers.c (gdbpy_register_object_data): New static
5422 global.
5423 (gdbpy_register_object_data_init): New function.
5424 (gdbpy_new_register_descriptor): Renamed to...
5425 (gdbpy_get_register_descriptor): ...this, and update to reuse
5426 existing register descriptors where possible.
5427 (gdbpy_register_descriptor_iter_next): Update.
5428 (gdbpy_initialize_registers): Register new gdbarch data.
5429
05c309a8
SM
54302020-07-21 Simon Marchi <simon.marchi@efficios.com>
5431
5432 * linux-nat.c (stopped_pids): Make static.
5433
d1fd641e
SM
54342020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
5435
5436 PR ada/26235
5437 * gdbtypes.c (ada_discrete_type_low_bound,
5438 ada_discrete_type_high_bound): Handle undefined bounds.
5439
1de14d77
KR
54402020-07-21 Kamil Rytarowski <n54@gmx.com>
5441
5442 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
5443 declaration.
5444 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
5445 function.
5446
ed810cc7
JB
54472020-07-20 John Baldwin <jhb@FreeBSD.org>
5448
5449 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
5450 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
5451 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
5452 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
5453 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
5454 method.
5455
ae5369e7
LC
54562020-07-20 Ludovic Courtès <ludo@gnu.org>
5457
5458 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
5459 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
5460 which are deprecated in Guile 3.0.
5461 * configure.ac (try_guile_versions): Add "guile-3.0".
5462 * configure (try_guile_versions): Regenerate.
5463 * NEWS: Update entry.
5464
68cf161c
LC
54652020-07-20 Ludovic Courtès <ludo@gnu.org>
5466 Doug Evans <dje@google.com>
5467
5468 PR gdb/21104
5469 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
5470 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
5471 USING_GUILE_BEFORE_2_2.
5472 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
5473 Change type to 'scm_t_port_type *'.
5474 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
5475 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
5476 parameter and honor it. Update callers.
5477 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
5478 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
5479 functions.
5480 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
5481 USING_GUILE_BEFORE_2_2.
5482 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
5483 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
5484 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
5485 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
5486 and 'SCM_PORT_TYPE'.
5487 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
5488 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
5489 (gdbscm_memory_port_read, gdbscm_memory_port_write)
5490 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
5491 [!USING_GUILE_BEFORE_2_2]: New functions.
5492 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
5493 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
5494 'gdbscm_memory_port_read'.
5495 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
5496 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
5497 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
5498 function.
5499 (ioscm_init_memory_port): Remove.
5500 (ioscm_init_memory_port_stream): New function
5501 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
5502 function.
5503 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
5504 Return scm_from_uint (0).
5505 (gdbscm_set_memory_port_read_buffer_size_x)
5506 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
5507 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
5508 Return scm_from_uint (0).
5509 (gdbscm_set_memory_port_write_buffer_size_x)
5510 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
5511 * configure.ac (try_guile_versions): Add "guile-2.2".
5512 * configure: Regenerate.
5513 * NEWS: Add entry.
5514
aee91db3
TT
55152020-07-18 Tom Tromey <tom@tromey.com>
5516
5517 * linux-nat.c (linux_multi_process): Remove.
5518 (linux_nat_target::supports_multi_process): Return true.
5519
0e267416
AB
55202020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
5521
5522 * arch/riscv.c (riscv_tdesc_cache): Change map type.
5523 (riscv_lookup_target_description): Return pointer out of
5524 unique_ptr.
5525 * target-descriptions.c (allocate_target_description): Add
5526 comment.
5527 (target_desc_deleter::operator()): Likewise.
5528 * target-descriptions.h (struct target_desc_deleter): Moved to
5529 gdbsupport/tdesc.h.
5530 (target_desc_up): Likewise.
5531
f80c8ec4
TT
55322020-07-17 Tom Tromey <tromey@adacore.com>
5533
5534 * linux-nat.c (linux_nat_target::supports_non_stop)
5535 (linux_nat_target::always_non_stop_p): Use "true".
5536 (linux_nat_target::supports_disable_randomization): Use "true" and
5537 "false".
5538
d0ce17d8
CT
55392020-07-16 Caroline Tice <cmtice@google.com>
5540
5541 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
5542 (RNGLIST_HEADER_SIZE64): New constant definition.
5543 (struct dwop_section_names): Add rnglists_dwo.
5544 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
5545 (struct loclist_header): Rename to 'loclists_rnglists_header'.
5546 (struct dwo_sections): Add rnglists field.
5547 (read_attribut_reprocess): Add tag parameter.
5548 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
5549 (cu_debug_rnglists_section): New function (decl & definition).
5550 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
5551 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
5552 die whose range is being checked; get rnglist section from
5553 cu_debug_rnglists_section, to get from either objfile or dwo file as
5554 appropriate. Add cases for DW_RLE_base_addressx,
5555 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
5556 the base address to DW_RLE_offset_pairs (not to all ranges), moving
5557 test inside if-condition and updating complaint message.
5558 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
5559 dwarf2_rnglists_process.
5560 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
5561 dwarf2_ranges_process.
5562 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
5563 need_ranges_base and update comment appropriately. Also pass die tag
5564 to dwarf2_ranges_read.
5565 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
5566 need_ranges_base and update comment appropriately. Also pass die tag
5567 to dwarf2_ranges_process.
5568 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
5569 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
5570 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
5571 need_ranges_base and update comment appropriately. Also pass die tag
5572 to read_attribute_reprocess and dwarf2_ranges_read.
5573 (read_loclist_header): Rename function to read_loclists_rnglists_header,
5574 and update function comment appropriately.
5575 (read_loclist_index): Call read_loclists_rnglists_header instead of
5576 read_loclist_header.
5577 (read_rnglist_index): New function.
5578 (read_attribute_reprocess): Add tag parameter. Add code for
5579 DW_FORM_rnglistx, passing tag to read_rnglist_index.
5580 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
5581
3dcc261c
AB
55822020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
5583
5584 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
5585 being resolved.
5586
ccb9eba6
AB
55872020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
5588
5589 * arch-utils.c (show_architecture): Update formatting of messages.
5590
cf88be68
SM
55912020-07-12 Simon Marchi <simon.marchi@efficios.com>
5592
5593 * gdbtypes.h (struct type) <bounds>: Handle array and string
5594 types.
5595 * ada-lang.c (assign_aggregate): Use type::bounds on
5596 array/string type.
5597 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
5598 * c-varobj.c (c_number_of_children): Likewise.
5599 (c_describe_child): Likewise.
5600 * eval.c (evaluate_subexp_for_sizeof): Likewise.
5601 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
5602 (f_type_print_base): Likewise.
5603 * f-valprint.c (f77_array_offset_tbl): Likewise.
5604 (f77_get_upperbound): Likewise.
5605 (f77_print_array_1): Likewise.
5606 * guile/scm-type.c (gdbscm_type_range): Likewise.
5607 * m2-typeprint.c (m2_array): Likewise.
5608 (m2_is_long_set_of_type): Likewise.
5609 * m2-valprint.c (get_long_set_bounds): Likewise.
5610 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
5611 * python/py-type.c (typy_range): Likewise.
5612 * rust-lang.c (rust_internal_print_type): Likewise.
5613 * type-stack.c (type_stack::follow_types): Likewise.
5614 * valarith.c (value_subscripted_rvalue): Likewise.
5615 * valops.c (value_cast): Likewise.
5616
509971ae
SM
56172020-07-12 Simon Marchi <simon.marchi@efficios.com>
5618
5619 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
5620 callers to use the equivalent accessor methods.
5621
107406b7
SM
56222020-07-12 Simon Marchi <simon.marchi@efficios.com>
5623
5624 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
5625 (struct type) <bit_stride>: New method.
5626 (TYPE_BIT_STRIDE): Remove.
5627 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
5628
bb789949
SM
56292020-07-12 Simon Marchi <simon.marchi@efficios.com>
5630
5631 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
5632 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
5633 callers to use the equivalent accessor methods instead.
5634
39498edb
SM
56352020-07-12 Simon Marchi <simon.marchi@efficios.com>
5636
5637 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
5638 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
5639 callers to use the equivalent accessor methods instead.
5640
3b606f38
SM
56412020-07-12 Simon Marchi <simon.marchi@efficios.com>
5642
5643 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
5644 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
5645 to use dynamic_prop::kind.
5646
064d9cb9
SM
56472020-07-12 Simon Marchi <simon.marchi@efficios.com>
5648
5649 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
5650 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
5651 to get the bound property's kind and check against
5652 PROP_UNDEFINED.
5653
5537ddd0
SM
56542020-07-12 Simon Marchi <simon.marchi@efficios.com>
5655
5656 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
5657 all callers to use type::range_bounds followed by
5658 dynamic_prop::{low,high}.
5659
8c2e4e06
SM
56602020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
5661
5662 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
5663 const_val, set_const_val, baton, set_locexpr, set_loclist,
5664 set_addr_offset, variant_parts, set_variant_parts,
5665 original_type, set_original_type>: New methods.
5666 <kind>: Rename to...
5667 <m_kind>: ... this. Update all users to use the new methods
5668 instead.
5669 <data>: Rename to...
5670 <m_data>: ... this. Update all users to use the new methods
5671 instead.
5672
7c6f2712
SM
56732020-07-12 Simon Marchi <simon.marchi@efficios.com>
5674
5675 * gdbtypes.c (get_discrete_bounds): Return failure if
5676 the range type's bounds are not both defined and constant
5677 values.
5678 (get_array_bounds): Update comment. Remove undefined bound check.
5679
599088e3
SM
56802020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
5681
5682 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
5683 the type::bounds method directly.
5684
c4dfcb36
SM
56852020-07-12 Simon Marchi <simon.marchi@efficios.com>
5686
5687 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
5688 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
5689 are used to set the range type's bounds to use set_bounds.
5690
0a278aa7
PW
56912020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5692
5693 * exec.c (_initialize_exec): Update exec-file-mismatch help.
5694
cce20f10
PA
56952020-07-10 Pedro Alves <pedro@palves.net>
5696
5697 * gdbthread.h (inferior_ref): Define.
5698 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
5699 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
5700 * thread.c
5701 (scoped_restore_current_thread::restore):
5702 Adjust to gdb::ref_ptr.
5703 (scoped_restore_current_thread::~scoped_restore_current_thread):
5704 Remove manual decref handling.
5705 (scoped_restore_current_thread::scoped_restore_current_thread):
5706 Adjust to use
5707 inferior_ref::new_reference/thread_info_ref::new_reference.
5708 Incref the thread before calling get_frame_id instead of after.
5709 Let TARGET_CLOSE_ERROR propagate.
5710
6d7aa592
PA
57112020-07-10 Pedro Alves <pedro@palves.net>
5712
5713 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
5714 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
5715 NOT_AVAILABLE_ERROR.
5716 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
5717 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
5718
b3e3a4c1
SM
57192020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5720 Pedro Alves <pedro@palves.net>
5721
5722 PR gdb/26199
5723 * infrun.c (threads_are_resumed_pending_p): Delete.
5724 (do_target_wait): Remove threads_are_executing and
5725 threads_are_resumed_pending_p checks from the inferior_matches
5726 lambda. Update comments.
5727
d6cc5d98
PA
57282020-07-10 Pedro Alves <pedro@palves.net>
5729
5730 PR gdb/26199
5731 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
5732 executing threads.
5733
7d3badc6
PA
57342020-07-10 Pedro Alves <pedro@palves.net>
5735
5736 PR gdb/26199
5737 * infrun.c (handle_no_resumed): Handle multiple targets.
5738
42bd97a6
PA
57392020-07-10 Pedro Alves <pedro@palves.net>
5740
5741 PR gdb/26199
5742 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
5743 target_is_async_p.
5744
43667cc6
PA
57452020-07-10 Pedro Alves <pedro@palves.net>
5746
5747 PR gdb/26199
5748 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
5749 threads, not all threads.
5750
96118d11
PA
57512020-07-10 Pedro Alves <pedro@palves.net>
5752
5753 PR gdb/26199
5754 * remote.c (remote_target::open_1): Pass remote target pointer as
5755 data to create_async_event_handler.
5756 (remote_async_inferior_event_handler): Mark async event handler
5757 before returning if the remote target still has either pending
5758 events or unacknowledged notifications.
5759
54904d81
JB
57602020-07-10 John Baldwin <jhb@FreeBSD.org>
5761
5762 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
5763 declaration.
5764 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
5765 function.
5766
f37e5866
JB
57672020-07-09 John Baldwin <jhb@FreeBSD.org>
5768
5769 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
5770 inferior_ptid.
5771
fc238d4a
JB
57722020-07-09 John Baldwin <jhb@FreeBSD.org>
5773
5774 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
5775 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
5776 AT_FREEBSD_PS_STRINGS.
5777
6e2469ff
HD
57782020-07-08 Hannes Domani <ssbssa@yahoo.de>
5779
5780 * auto-load.c (auto_load_objfile_script_1): Convert drive part
5781 of debugfile path on Windows.
5782
d1076c41
JB
57832020-07-08 John Baldwin <jhb@FreeBSD.org>
5784
5785 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
5786 argument to 'data'.
5787
15f3b077
TT
57882020-07-08 Tom Tromey <tromey@adacore.com>
5789
5790 * ada-lang.c (ada_exception_message_1): Use read_memory.
5791
9fc501fd
AB
57922020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5793
5794 PR python/22748
5795 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
5796 special handling for inline frames.
5797 * findvar.c (value_of_register_lazy): Skip inline frames when
5798 creating lazy register values.
5799 * frame.c (frame_id_computed_p): Delete definition.
5800 * frame.h (frame_id_computed_p): Delete declaration.
5801
64cb3757
AB
58022020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5803
5804 * NEWS: Mention additions to Python API.
5805 * python/py-arch.c (archpy_register_groups): New function.
5806 (arch_object_methods): Add 'register_groups' method.
5807 * python/py-registers.c (reggroup_iterator_object): New struct.
5808 (reggroup_object): New struct.
5809 (gdbpy_new_reggroup): New function.
5810 (gdbpy_reggroup_to_string): New function.
5811 (gdbpy_reggroup_name): New function.
5812 (gdbpy_reggroup_iter): New function.
5813 (gdbpy_reggroup_iter_next): New function.
5814 (gdbpy_new_reggroup_iterator): New function
5815 (gdbpy_initialize_registers): Register new types.
5816 (reggroup_iterator_object_type): Define new Python type.
5817 (gdbpy_reggroup_getset): New static global.
5818 (reggroup_object_type): Define new Python type.
5819 * python/python-internal.h
5820
0f767f94
AB
58212020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5822
5823 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
5824 * python/py-arch.c (archpy_registers): New function.
5825 (arch_object_methods): Add 'registers' method.
5826 * python/py-registers.c: New file.
5827 * python/python-internal.h
5828 (gdbpy_new_register_descriptor_iterator): Declare.
5829 (gdbpy_initialize_registers): Declare.
5830 * python/python.c (do_start_initialization): Call
5831 gdbpy_initialize_registers.
5832 * NEWS: Mention additions to the Python API.
5833
87dbc774
AB
58342020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5835
5836 * NEWS: Mention new Python API method.
5837 * python/py-unwind.c (pending_framepy_architecture): New function.
5838 (pending_frame_object_methods): Add architecture method.
5839
3bc98c0c
AB
58402020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5841
5842 * gdbarch.c: Regenerate.
5843 * gdbarch.h: Regenerate.
5844 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
5845 (gdbarch_data): Use internal_error for the case where
5846 deprecated_set_gdbarch_data was originally needed.
5847 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
5848 and use passed in obstack.
5849 (libunwind_frame_set_descr): Should no longer get back NULL from
5850 gdbarch_data.
5851 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
5852 type.
5853 * user-regs.c (user_regs_init): Update parameters, and use passed
5854 in obstack.
5855 (user_reg_add): Should no longer get back NULL from gdbarch_data.
5856 (_initialize_user_regs): Register as a pre-init gdbarch data type.
5857
d8cc8af6
TV
58582020-07-06 Tom de Vries <tdevries@suse.de>
5859
5860 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
5861 End-Of-Sequence in lte_is_less_than.
5862 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
5863 "gdb: Don't reorder line table entries too much when sorting".
5864
947f7597
TV
58652020-07-06 Tom de Vries <tdevries@suse.de>
5866
5867 PR tui/26205
5868 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
5869
1e7c1b22
TV
58702020-07-05 Tom de Vries <tdevries@suse.de>
5871
5872 PR build/26187
5873 * inferior.h (struct infcall_suspend_state_deleter): If available, use
5874 std::uncaught_exceptions instead of deprecated
5875 std::uncaught_exception.
5876
a36158ec
SM
58772020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5878
5879 * macroexp.h (macro_stringify): Return
5880 gdb::unique_xmalloc_ptr<char>.
5881 * macroexp.c (macro_stringify): Likewise.
5882 * macrotab.c (fixup_definition): Update.
5883
14d960c8
SM
58842020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5885
5886 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
5887 (lex_one_token): Update.
5888 * macroexp.c (struct macro_buffer) <release>: Return
5889 gdb::unique_xmalloc_ptr<char>.
5890 (macro_stringify): Update.
5891 (macro_expand): Update.
5892 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
5893 * macroexp.h (macro_expand_next): Likewise.
5894
211d5b1c
SM
58952020-07-02 Simon Marchi <simon.marchi@efficios.com>
5896
5897 * macroexp.h (macro_lookup_ftype): Remove.
5898 (macro_expand, macro_expand_once, macro_expand_next): Remove
5899 lookup function parameters, add scope parameter.
5900 * macroexp.c (scan, substitute_args, expand, maybe_expand,
5901 macro_expand, macro_expand_once, macro_expand_next): Likewise.
5902 * macroscope.h (standard_macro_lookup): Change parameter type
5903 to macro_scope.
5904 * macroscope.c (standard_macro_lookup): Likewise.
5905 * c-exp.y (lex_one_token): Update.
5906 * macrocmd.c (macro_expand_command): Likewise.
5907 (macro_expand_once_command): Likewise.
5908
b1a35af2
SM
59092020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5910
5911 * inf-loop.c (inferior_event_handler): Remove client_data param.
5912 * inf-loop.h (inferior_event_handler): Likewise.
5913 * infcmd.c (step_1): Adjust.
5914 * infrun.c (proceed): Adjust.
5915 (fetch_inferior_event): Remove client_data param.
5916 (infrun_async_inferior_event_handler): Adjust.
5917 * infrun.h (fetch_inferior_event): Remove `void *` param.
5918 * linux-nat.c (handle_target_event): Adjust.
5919 * record-btrace.c (record_btrace_handle_async_inferior_event):
5920 Adjust.
5921 * record-full.c (record_full_async_inferior_event_handler):
5922 Adjust.
5923 * remote.c (remote_async_inferior_event_handler): Adjust.
5924
1cdf9e33
TT
59252020-07-01 Tom Tromey <tom@tromey.com>
5926
5927 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
5928 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
5929
32c1e210
TT
59302020-07-01 Tom Tromey <tom@tromey.com>
5931
5932 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
5933 tui_gen_win_info.
5934 (tui_win_info::make_window): Merge with
5935 tui_gen_win_info::make_window.
5936 (tui_win_info::make_visible): Move from tui_gen_win_info.
5937 * tui/tui-win.c (tui_win_info::max_width): Move from
5938 tui_gen_win_info.
5939 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
5940 type.
5941 <window_factory>: Likewise.
5942 * tui/tui-layout.c (tui_win_info::resize): Move from
5943 tui_gen_win_info.
5944 (make_standard_window): Change return type.
5945 (get_locator_window, tui_get_window_by_name): Likewise.
5946 (tui_layout_window::apply): Remove a cast.
5947 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
5948 (struct tui_win_info): Merge with tui_gen_win_info.
5949 (struct tui_gen_win_info): Remove.
5950
a30cb6da
TT
59512020-07-01 Tom Tromey <tom@tromey.com>
5952
5953 * tui/tui-stack.h (struct tui_locator_window): Derive from
5954 tui_win_info.
5955 <do_scroll_horizontal, do_scroll_vertical>: New methods.
5956 <can_box>: New method.
5957
1eb2161f
TT
59582020-07-01 Tom Tromey <tom@tromey.com>
5959
5960 * tui/tui-stack.h (struct tui_locator_window): Remove body.
5961
7134f2eb
TT
59622020-07-01 Tom Tromey <tom@tromey.com>
5963
5964 * tui/tui-regs.c (tui_data_window::display_registers_from)
5965 (tui_data_window::display_registers_from)
5966 (tui_data_window::first_data_item_displayed)
5967 (tui_data_window::delete_data_content_windows): Update.
5968 (tui_data_window::refresh_window, tui_data_window::no_refresh):
5969 Remove.
5970 (tui_data_window::check_register_values): Update.
5971 (tui_data_item_window::rerender): Add parameters. Update.
5972 (tui_data_item_window::refresh_window): Remove.
5973 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
5974 virtual.
5975 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
5976 tui_gen_win_info.
5977 <refresh_window, max_height, min_height>: Remove.
5978 <rerender>: Add parameters.
5979 <x, y, visible>: New members.
5980 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
5981 <m_item_width>: New member.
5982
22b7b041
TT
59832020-07-01 Tom Tromey <tom@tromey.com>
5984
5985 * tui/tui-regs.c (tui_data_window::show_register_group)
5986 (tui_data_window::check_register_values): Update.
5987 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
5988 from item_no.
5989
c9753adb
TT
59902020-07-01 Tom Tromey <tom@tromey.com>
5991
5992 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
5993 useless "if".
5994
9ab26b4a
TT
59952020-07-01 Tom Tromey <tom@tromey.com>
5996
5997 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
5998 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
5999
e555083f
TT
60002020-07-01 Tom Tromey <tom@tromey.com>
6001
6002 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
6003 * tui/tui-winsource.h (enum tui_line_or_address_kind)
6004 (struct tui_line_or_address): Move from tui-data.h.
6005 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
6006 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
6007 (tui_cmd_window, tui_source_window_base, tui_source_window)
6008 (tui_disasm_window): Don't declare.
6009 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
6010 to tui-winsource.h.
6011 (SINGLE_KEY): Move to tui-stack.c.
6012
7a02bab7
TT
60132020-07-01 Tom Tromey <tom@tromey.com>
6014
6015 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
6016 std::string.
6017 * tui/tui-regs.c (class tab_expansion_file): New.
6018 (tab_expansion_file::write): New method.
6019 (tui_register_format): Change return type. Use
6020 tab_expansion_file.
6021 (tui_get_register, tui_data_window::display_registers_from)
6022 (tui_data_item_window::rerender): Update.
6023 * tui/tui-io.h (tui_expand_tabs): Don't declare.
6024 * tui/tui-io.c (tui_expand_tabs): Remove.
6025
ea68593b
TT
60262020-07-01 Tom Tromey <tom@tromey.com>
6027
6028 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
6029
a8caed5d
FS
60302020-07-01 Fangrui Song <maskray@google.com>
6031
6032 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
6033
9cdf9820
AKS
60342020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6035
6036 * dwarf2/read.c (set_die_type): Removed conditions to restrict
6037 forms for DW_AT_associated and DW_AT_allocated attributes,
6038 which is already checked in function attr_to_dynamic_prop.
6039
a1520ad8
TT
60402020-06-30 Tom Tromey <tromey@adacore.com>
6041
6042 * dwarf2/read.c (quirk_rust_enum): Correctly call
6043 alloc_rust_variant for default-less enum.
6044
5ac58899
TT
60452020-06-30 Tom Tromey <tromey@adacore.com>
6046
6047 PR build/26183:
6048 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
6049 gdb::to_string.
6050
19b187a9
SM
60512020-06-29 Simon Marchi <simon.marchi@efficios.com>
6052
6053 * gdbarch.sh (displaced_step_copy_insn): Update doc.
6054 * gdbarch.h: Re-generate.
6055
cd4c4c07
TT
60562020-06-28 Tom Tromey <tom@tromey.com>
6057
6058 * command.h (cmd_types): Remove.
6059 (cmd_type): Don't declare.
6060 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
6061 typedef.
6062 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
6063 * cli/cli-decode.c (cmd_type): Remove.
6064
05779d57
PA
60652020-06-27 Pedro Alves <palves@redhat.com>
6066
6067 * fork-child.c (prefork_hook): Adjust.
6068 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
6069 Delete.
6070 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
6071 * inferior.c (inferior::set_tty, inferior::tty): New methods.
6072 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
6073 Remove declarations.
6074 (struct inferior) <set_tty, tty>: New methods.
6075 (struct inferior) <terminal>: Rename to ...
6076 (struct inferior) <m_terminal>: ... this and make private.
6077 * main.c (captured_main_1): Adjust.
6078 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
6079 (mi_cmd_inferior_tty_show): Adjust.
6080 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
6081 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
6082
1776e3e5
NA
60832020-06-26 Nick Alcock <nick.alcock@oracle.com>
6084
6085 * configure.ac: Add --enable-libctf: handle --disable-static
6086 properly.
6087 * acinclude.m4: sinclude ../config/enable.m4.
6088 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
6089 (LIBCTF): Substitute in.
6090 (CTF_DEPS): New, likewise.
6091 (CLIBS): libctf needs symbols from libbfd: move earlier.
6092 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
6093 flags.
6094 * ctfread.c: Surround in ENABLE_LIBCTF.
6095 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
6096 * configure: Regenerate.
6097 * config.in: Likewise.
6098
58373b80
SM
60992020-06-25 Simon Marchi <simon.marchi@efficios.com>
6100
6101 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
6102
277474ee
SM
61032020-06-25 Simon Marchi <simon.marchi@efficios.com>
6104
6105 * inferior.h (struct inferior) <terminal>: Change type to
6106 gdb::unique_xmalloc_ptr<char>.
6107 * inferior.c (inferior::~inferior): Don't free inf->terminal.
6108 * infcmd.c (set_inferior_io_terminal): Don't free terminal
6109 field, adjust to unique pointer.
6110 (get_inferior_io_terminal): Adjust to unique pointer.
6111
6d74da72
AB
61122020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6113
6114 * riscv-tdep.c (riscv_print_registers_info): Loop over all
6115 registers, not just the known core set of registers.
6116
2e52d038
AB
61172020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6118
6119 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
6120 fflags, frm, and fcsr registers.
6121 (riscv_register_reggroup_p): Remove unknown CSRs from save and
6122 restore groups.
6123 (riscv_tdesc_unknown_reg): New function.
6124 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
6125 tdesc_use_registers.
6126 * riscv-tdep.h (struct gdbarch_tdep): Add
6127 unknown_csrs_first_regnum, unknown_csrs_count,
6128 duplicate_fflags_regnum, duplicate_frm_regnum, and
6129 duplicate_fcsr_regnum fields.
6130
be64fd07
AB
61312020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6132
6133 * target-descriptions.c (tdesc_use_registers): Add new parameter a
6134 callback, use the callback (when not null) to help number unknown
6135 registers.
6136 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
6137 (tdesc_use_registers): Add extra parameter to declaration.
6138
3b9fce96
AB
61392020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6140
6141 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
6142 in the file.
6143 (class riscv_pending_register_alias): Likewise.
6144 (riscv_register_feature::register_info): Change 'required_p' field
6145 to 'required', and change its type. Add 'check' member function.
6146 (riscv_register_feature::register_info::check): Define new member
6147 function.
6148 (riscv_xreg_feature): Change initialisation of 'required' field.
6149 (riscv_freg_feature): Likewise.
6150 (riscv_virtual_feature): Likewise.
6151 (riscv_csr_feature): Likewise.
6152 (riscv_check_tdesc_feature): Take extra parameter, the csr
6153 tdesc_feature, rewrite the function to use the new
6154 riscv_register_feature::register_info::check function.
6155 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
6156
865bad26
AB
61572020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6158
6159 * features/Makefile: Remove all references to the deleted files
6160 below.
6161 * features/riscv/32bit-csr.c: Deleted.
6162 * features/riscv/32bit-csr.xml: Deleted.
6163 * features/riscv/64bit-csr.c: Deleted.
6164 * features/riscv/64bit-csr.xml: Deleted.
6165 * features/riscv/rebuild-csr-xml.sh: Deleted.
6166
ed69cbc8
AB
61672020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6168
6169 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
6170 whitespace error for declaration of names member variable.
6171 (struct riscv_register_feature): Add new prefer_first_name member
6172 variable, and fix whitespace error in declaration of registers.
6173 (riscv_xreg_feature): Initialize prefer_first_name field.
6174 (riscv_freg_feature): Likewise.
6175 (riscv_virtual_feature): Likewise.
6176 (riscv_csr_feature): Likewise.
6177 (riscv_register_name): Expand on comments. Remove register name
6178 modifications for CSR and virtual registers.
6179
4445e8f5
AB
61802020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6181
6182 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
6183 errors.
6184
767a879e
AB
61852020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6186
6187 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
6188 riscv-opc.h.
6189 (class riscv_pending_register_alias): New class.
6190 (riscv_check_tdesc_feature): Take vector of pending aliases and
6191 populate it as appropriate.
6192 (riscv_setup_register_aliases): Delete.
6193 (riscv_gdbarch_init): Create vector of pending aliases and pass it
6194 to riscv_check_tdesc_feature in all cases. Use the vector to
6195 create the register aliases.
6196
bb6e55f3
RO
61972020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6198
6199 * sol2-tdep.c (sol2_static_transform_name): Remove.
6200 (sol2_init_abi): Don't register it.
6201 * gdbarch.sh (static_transform_name): Remove.
6202 * gdbarch.c, gdbarch.h: Regenerate.
6203
6204 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
6205 gdbarch_static_transform_name.
6206 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
6207 * stabsread.c (define_symbol) <'X'>: Remove.
6208 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
6209 handling.
6210 <'V'>: Likewise.
6211 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
6212 <'S'>: Remove call to gdbarch_static_transform_name.
6213
c6d36836
RO
62142020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6215
6216 * procfs.c (procfs_pre_trace): New function.
6217 (procfs_target::create_inferior): Pass it to fork_inferior.
6218
a7e6196b
RO
62192020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6220
6221 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
6222 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
6223 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
6224 sol2-tdep.o, sparc-sol2-tdep.o.
6225 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
6226 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
6227 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
6228 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
6229
d412e696
RO
62302020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6231
6232 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
6233 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
6234 Call sol2_init_abi.
6235 Remove calls to set_gdbarch_skip_solib_resolver,
6236 set_gdbarch_core_pid_to_str.
6237 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
6238 (i386_sol2_static_transform_name): Remove.
6239 (i386_sol2_init_abi): Call sol2_init_abi.
6240 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6241 set_gdbarch_static_transform_name,
6242 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6243 Use sol2_sigtramp_p.
6244 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
6245 (sol2_sigtramp_p): New function.
6246 (sol2_static_transform_name): New function.
6247 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
6248 (sol2_init_abi): New function.
6249 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
6250 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
6251 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
6252 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
6253 (sparc_sol2_static_transform_name): Remove.
6254 (sparc32_sol2_init_abi): Call sol2_init_abi.
6255 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6256 set_gdbarch_static_transform_name,
6257 set_gdbarch_skip_solib_resolver,
6258 set_gdbarch_core_pid_to_str.
6259 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
6260 (sparc_sol2_static_transform_name): Remove
6261 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
6262 call sol2_sigtramp_p.
6263 (sparc64_sol2_init_abi): Call sol2_init_abi.
6264 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6265 set_gdbarch_static_transform_name,
6266 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6267
a8654e7d
PW
62682020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6269
6270 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
6271 * exec.c (validate_exec_file): If from_tty, set both
6272 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
6273 * symfile.c (symbol_file_add_with_addrs): if always_confirm
6274 and from_tty, unconditionally ask a confirmation.
6275
caa7fd04
AB
62762020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6277
6278 * target-descriptions.c (tdesc_architecture_name): Protect against
6279 NULL pointer dereference.
6280 (maint_print_xml_tdesc_cmd): New function.
6281 (_initialize_target_descriptions): Register new 'maint print
6282 xml-tdesc' command and give it the filename completer.
6283 * NEWS: Mention new 'maint print xml-tdesc' command.
6284
fbf42f4e
AB
62852020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6286
6287 * target-descriptions.c (class tdesc_compatible_info): New class.
6288 (struct target_desc): Change type of compatible vector.
6289 (tdesc_compatible_p): Update for change in type of
6290 target_desc::compatible.
6291 (tdesc_compatible_info_list): New function.
6292 (tdesc_compatible_info_arch_name): New function.
6293 (tdesc_add_compatible): Update for change in type of
6294 target_desc::compatible.
6295 (print_c_tdesc::visit_pre): Likewise.
6296
20821f4e
AB
62972020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6298
6299 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
6300 whitespace to underscore.
6301 (maint_print_c_tdesc_cmd): Use fake filename for target
6302 descriptions that came from the target.
6303 (_initialize_target_descriptions): Add filename command completion
6304 for 'maint print c-tdesc'.
6305
1fb5ee62
SM
63062020-06-23 Simon Marchi <simon.marchi@efficios.com>
6307
6308 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
6309 lines.
6310
fc3ecb3e
SM
63112020-06-23 Simon Marchi <simon.marchi@efficios.com>
6312
6313 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
6314 lines.
6315 (dwarf2_find_location_expression): Likewise.
6316 (call_site_parameter_matches): Likewise.
6317 (dwarf2_compile_expr_to_ax): Likewise.
6318 (disassemble_dwarf_expression): Likewise.
6319 (loclist_describe_location): Likewise.
6320
236ef034
PA
63212020-06-23 Pedro Alves <palves@redhat.com>
6322
6323 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
6324 progspace-and-thread.h. Include scoped-mock-context.h instead.
6325 (register_to_value_test): Use scoped_mock_context.
6326 * regcache.c: Include "scoped-mock-context.h".
6327 (cooked_read_test): Don't error out if a target is already pushed.
6328 Use scoped_mock_context. Adjust.
6329 * scoped-mock-context.h: New file.
6330
39e7ecca
AB
63312020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6332
6333 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
6334 initializer.
6335 (ada_language::is_string_type_p): New member function.
6336 * c-lang.c (c_language_data): Delete la_is_string_type_p
6337 initializer.
6338 (cplus_language_data): Likewise.
6339 (asm_language_data): Likewise.
6340 (minimal_language_data): Likewise.
6341 * d-lang.c (d_language_data): Likewise.
6342 * f-lang.c (f_is_string_type_p): Delete function, implementation
6343 moved to f_language::is_string_type_p.
6344 (f_language_data): Delete la_is_string_type_p initializer.
6345 (f_language::is_string_type_p): New member function,
6346 implementation from f_is_string_type_p.
6347 * go-lang.c (go_is_string_type_p): Delete function, implementation
6348 moved to go_language::is_string_type_p.
6349 (go_language_data): Delete la_is_string_type_p initializer.
6350 (go_language::is_string_type_p): New member function,
6351 implementation from go_is_string_type_p.
6352 * language.c (language_defn::is_string_type_p): Define new member
6353 function.
6354 (default_is_string_type_p): Make static, add comment copied from
6355 header file.
6356 (unknown_language_data): Delete la_is_string_type_p initializer.
6357 (unknown_language::is_string_type_p): New member function.
6358 (auto_language_data): Delete la_is_string_type_p initializer.
6359 (auto_language::is_string_type_p): New member function.
6360 * language.h (language_data): Delete la_is_string_type_p field.
6361 (language_defn::is_string_type_p): Declare new function.
6362 (default_is_string_type_p): Delete desclaration, move comment to
6363 definition.
6364 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
6365 moved to m2_language::is_string_type_p.
6366 (m2_language_data): Delete la_is_string_type_p initializer.
6367 (m2_language::is_string_type_p): New member function,
6368 implementation from m2_is_string_type_p.
6369 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
6370 initializer.
6371 * opencl-lang.c (opencl_language_data): Likewise.
6372 * p-lang.c (pascal_is_string_type_p): Delete function,
6373 implementation moved to pascal_language::is_string_type_p.
6374 (pascal_language_data): Delete la_is_string_type_p initializer.
6375 (pascal_language::is_string_type_p): New member function,
6376 implementation from pascal_is_string_type_p.
6377 * rust-lang.c (rust_is_string_type_p): Delete function,
6378 implementation moved to rust_language::is_string_type_p.
6379 (rust_language_data): Delete la_is_string_type_p initializer.
6380 (rust_language::is_string_type_p): New member function,
6381 implementation from rust_is_string_type_p.
6382 * valprint.c (val_print_scalar_or_string_type_p): Update call to
6383 is_string_type_p.
6384
4ffc13fb
AB
63852020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6386
6387 * ada-lang.c (ada_language_data): Delete la_print_typedef
6388 initializer.
6389 (ada_language::print_typedef): New member function.
6390 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
6391 (cplus_language_data): Likewise.
6392 (asm_language_data): Likewise.
6393 (minimal_language_data): Likewise.
6394 * d-lang.c (d_language_data): Likewise.
6395 * f-lang.c (f_language_data): Likewise.
6396 (f_language::print_typedef): New member function.
6397 * go-lang.c (go_language_data): Delete la_print_typedef
6398 initializer.
6399 * language.c (language_defn::print_typedef): Define member
6400 function.
6401 (unknown_language_data): Delete la_print_typedef initializer.
6402 (unknown_language::print_typedef): New member function.
6403 (auto_language_data): Delete la_print_typedef initializer.
6404 (auto_language::print_typedef): New member function.
6405 * language.h (language_data): Delete la_print_typedef field.
6406 (language_defn::print_typedef): Declare new member function.
6407 (LA_PRINT_TYPEDEF): Update call to print_typedef.
6408 (default_print_typedef): Delete declaration.
6409 * m2-lang.c (m2_language_data): Delete la_print_typedef
6410 initializer.
6411 (m2_language::print_typedef): New member function.
6412 * objc-lang.c (objc_language_data): Delete la_print_typedef
6413 initializer.
6414 * opencl-lang.c (opencl_language_data): Likewise.
6415 * p-lang.c (pascal_language_data): Likewise.
6416 (pascal_language::print_typedef): New member function.
6417 * rust-lang.c (rust_print_typedef): Delete function,
6418 implementation moved to rust_language::print_typedef.
6419 (rust_language): Delete la_print_typedef initializer.
6420 (rust_language::print_typedef): New member function,
6421 implementation from rust_print_typedef.
6422 * typeprint.c (default_print_typedef): Delete.
6423
d711ee67
AB
64242020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6425
6426 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
6427 (ada_language::printstr): New member function.
6428 * c-lang.c (c_language_data): Delete la_printstr initializer.
6429 (cplus_language_data): Likewise.
6430 (asm_language_data): Likewise.
6431 (minimal_language_data): Likewise.
6432 * d-lang.c (d_language_data): Likewise.
6433 * f-lang.c (f_printstr): Rename to f_language::printstr.
6434 (f_language_data): Delete la_printstr initializer.
6435 (f_language::printstr): New member function, implementation from
6436 f_printstr.
6437 * go-lang.c (go_language_data): Delete la_printstr initializer.
6438 * language.c (language_defn::printstr): Define new member
6439 function.
6440 (unk_lang_printstr): Delete.
6441 (unknown_language_data): Delete la_printstr initializer.
6442 (unknown_language::printstr): New member function.
6443 (auto_language_data): Delete la_printstr initializer.
6444 (auto_language::printstr): New member function.
6445 * language.h (language_data): Delete la_printstr field.
6446 (language_defn::printstr): Declare new member function.
6447 (LA_PRINT_STRING): Update call to printstr.
6448 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
6449 (m2_language_data): Delete la_printstr initializer.
6450 (m2_language::printstr): New member function, implementation from
6451 m2_printstr.
6452 * objc-lang.c (objc_language_data): Delete la_printstr
6453 initializer.
6454 * opencl-lang.c (opencl_language_data): Likewise.
6455 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
6456 (pascal_language_data): Delete la_printstr initializer.
6457 (pascal_language::printstr): New member function, implementation
6458 from pascal_printstr.
6459 * p-lang.h (pascal_printstr): Delete declaration.
6460 * rust-lang.c (rust_printstr): Update header comment.
6461 (rust_language_data): Delete la_printstr initializer.
6462 (rust_language::printstr): New member function.
6463
52b50f2c
AB
64642020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6465
6466 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
6467 (ada_language::printchar): New member function.
6468 * c-lang.c (c_language_data): Delete la_printchar initializer.
6469 (cplus_language_data): Likewise.
6470 (asm_language_data): Likewise.
6471 (minimal_language_data): Likewise.
6472 * d-lang.c (d_language_data): Likewise.
6473 * f-lang.c (f_printchar): Rename to f_language::printchar.
6474 (f_language_data): Delete la_printchar initializer.
6475 (f_language::printchar): New member function, implementation from
6476 f_printchar.
6477 * go-lang.c (go_language_data): Delete la_printchar initializer.
6478 * language.c (unk_lang_printchar): Delete.
6479 (language_defn::printchar): Define new member function.
6480 (unknown_language_data): Delete la_printchar initializer.
6481 (unknown_language::printchar): New member function.
6482 (auto_language_data): Delete la_printchar initializer.
6483 (auto_language::printchar): New member function.
6484 * language.h (language_data): Delete la_printchar field.
6485 (language_defn::printchar): Declare new member function.
6486 (LA_PRINT_CHAR): Update call to printchar.
6487 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
6488 (m2_language::printchar): New member function.
6489 * objc-lang.c (objc_language_data): Delete la_printchar
6490 initializer.
6491 * opencl-lang.c (opencl_language_data): Likewise.
6492 * p-lang.c (pascal_language_data): Delete la_printchar
6493 initializer.
6494 (pascal_language::printchar): New member function.
6495 * rust-lang.c (rust_printchar): Rename to
6496 rust_language::printchar.
6497 (rust_language_data): Delete la_printchar initializer.
6498 (rust_language::printchar): New member function, implementation
6499 from rust_printchar.
6500
ec8cec5b
AB
65012020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6502
6503 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
6504 (ada_language_data): Delete la_emitchar initializer.
6505 (ada_language::emitchar): New member function, implementation from
6506 emit_char.
6507 * c-lang.c (c_language_data): Delete la_emitchar initializer.
6508 (cplus_language_data): Likewise.
6509 (asm_language_data): Likewise.
6510 (minimal_language_data): Likewise.
6511 * d-lang.c (d_language_data): Likewise.
6512 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
6513 (f_language_data): Delete la_emitchar initializer.
6514 (f_language::emitchar): New member function, implementation from
6515 f_emit_char.
6516 * go-lang.c (go_language_data): Delete la_emitchar initializer.
6517 * language.c (unk_lang_emit_char): Delete.
6518 (language_defn::emitchar): New member function definition.
6519 (unknown_language_data): Delete la_emitchar initializer.
6520 (unknown_language::emitchar): New member function.
6521 (auto_language_data): Delete la_emitchar initializer.
6522 (auto_language::emitchar): New member function.
6523 * language.h (language_data): Delete la_emitchar field.
6524 (language_defn::emitchar): New member field declaration.
6525 (LA_EMIT_CHAR): Update call to emitchar.
6526 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
6527 (m2_language_data): Delete la_emitchar initializer.
6528 (m2_language::emitchar): New member function, implementation from
6529 m2_emit_char.
6530 * objc-lang.c (objc_language_data): Delete la_emitchar
6531 initializer.
6532 * opencl-lang.c (opencl_language_data): Likewise.
6533 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
6534 (pascal_language_data): Delete la_emitchar initializer.
6535 (pascal_language::emitchar): New member function, implementation
6536 from pascal_emit_char.
6537 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
6538 (rust_language_data): Delete la_emitchar initializer.
6539 (rust_language::emitchar): New member function, implementation
6540 from rust_emitchar.
6541
1bf9c363
AB
65422020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6543
6544 * ada-lang.c (resolve): Rename to ada_language::post_parser.
6545 (ada_language_data): Delete la_post_parser initializer.
6546 (ada_language::post_parser): New member function.
6547 * c-lang.c (c_language_data): Delete la_post_parser initializer.
6548 (cplus_language_data): Likewise.
6549 (asm_language_data): Likewise.
6550 (minimal_language_data): Likewise.
6551 * d-lang.c (d_language_data): Likewise.
6552 * f-lang.c (f_language_data): Likewise.
6553 * go-lang.c (go_language_data): Likewise.
6554 * language.c (unknown_language_data): Likewise.
6555 (auto_language_data): Likewise.
6556 * language.h (language_data): Delete la_post_parser field.
6557 (language_defn::post_parser): New member function.
6558 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
6559 * objc-lang.c (objc_language_data): Likewise.
6560 * opencl-lang.c (opencl_language_data): Likewise.
6561 * p-lang.c (pascal_language_data): Likewise.
6562 * parse.c (parse_exp_in_context): Update call to post_parser.
6563 (null_post_parser): Delete definition.
6564 * parser-defs.h (null_post_parser): Delete declaration.
6565 * rust-lang.c (rust_language_data): Delete la_post_parser
6566 initializer.
6567
87afa652
AB
65682020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6569
6570 * ada-lang.c (parse): Rename to ada_language::parser.
6571 (ada_language_data): Delete la_parser initializer.
6572 (ada_language::parser): New member function, implementation from
6573 parse.
6574 * c-lang.c (c_language_data): Delete la_parser initializer.
6575 (cplus_language_data): Likewise.
6576 (asm_language_data): Likewise.
6577 (minimal_language_data): Likewise.
6578 * d-lang.c (d_language_data): Likewise.
6579 (d_language::parser): New member function.
6580 * f-lang.c (f_language_data): Delete la_parser initializer.
6581 (f_language::parser): New member function.
6582 * go-lang.c (go_language_data): Delete la_parser initializer.
6583 (go_language::parser): New member function.
6584 * language.c (unk_lang_parser): Delete.
6585 (language_defn::parser): Define new member function.
6586 (unknown_language_data): Delete la_parser initializer.
6587 (unknown_language::parser): New member function.
6588 (auto_language_data): Delete la_parser initializer.
6589 (auto_language::parser): New member function.
6590 * language.h (language_data): Delete la_parser field.
6591 (language_defn::parser): Declare new member function.
6592 * m2-lang.c (m2_language_data): Delete la_parser initializer.
6593 (m2_language::parser): New member function.
6594 * objc-lang.c (objc_language_data): Delete la_parser initializer.
6595 * opencl-lang.c (opencl_language_data): Likewise.
6596 * p-lang.c (pascal_language_data): Likewise.
6597 (pascal_language::parser): New member function.
6598 * parse.c (parse_exp_in_context): Update call to parser.
6599 * rust-lang.c (rust_language_data): Delete la_parser initializer.
6600 (rust_language::parser): New member function.
6601
37825800
AB
66022020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6603
6604 * top.c (print_gdb_configuration): Print --with-python-libdir
6605 configuration value.
6606
5b860c93
PW
66072020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6608
6609 * NEWS: Mention change to the alias command.
6610
cf00cd6f
PW
66112020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6612
6613 * cli/cli-cmds.c (lookup_cmd_for_default_args)
6614 (alias_command_completer)
6615 (make_alias_options_def_group): New functions.
6616 (alias_opts, alias_option_defs): New struct and array.
6617 (alias_usage_error): Update usage.
6618 (alias_command): Handles optional DEFAULT-ARGS... arguments.
6619 Use option framework.
6620 (_initialize_cli_cmds): Update alias command help.
6621 Update aliases command help.
6622 (show_user):
6623 Add NULL for new default_args lookup_cmd argument.
6624 (valid_command_p): Rename to validate_aliased_command.
6625 Add NULL for new default_args lookup_cmd argument. Verify that the
6626 aliased_command has no default args.
6627 * cli/cli-decode.c (help_cmd): Show aliases definitions.
6628 (lookup_cmd_1, lookup_cmd): New argument default_args.
6629 (add_alias_cmd):
6630 Add NULL for new default_args lookup_cmd argument.
6631 (print_help_for_command): Show default args under the layout
6632 alias some_alias = some_aliased_cmd some_alias_default_arg.
6633 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
6634 xfree default_args in destructor.
6635 * cli/cli-script.c (process_next_line, do_define_command):
6636 Add NULL for new default_args lookup_cmd argument.
6637 * command.h: Declare new default_args argument in lookup_cmd
6638 and lookup_cmd_1.
6639 * completer.c (complete_line_internal_1):
6640 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6641 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
6642 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
6643 Likewise.
6644 * infcmd.c (_initialize_infcmd): Likewise.
6645 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
6646 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
6647 * python/py-param.c (add_setshow_generic): Likewise.
6648 * remote.c (_initialize_remote): Likewise.
6649 * top.c (execute_command): Prepend default_args if command has some.
6650 (set_verbose):
6651 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6652 * tracepoint.c (validate_actionline, encode_actions_1):
6653 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6654
bd920864
TBA
66552020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6656
6657 * jit.c (jit_read_descriptor): Use bool as the return type.
6658 (jit_breakpoint_re_set_internal): Use bool as the return type.
6659 Invert the return value logic; return true if the jit breakpoint
6660 has been successfully initialized.
6661 (jit_inferior_init): Update the call to
6662 jit_breakpoint_re_set_internal.
6663
f8098322
PA
66642020-06-22 Pedro Alves <palves@redhat.com>
6665
6666 PR gdb/25939
6667 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
6668 Use the current inferior instead. Don't return
6669 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
6670 wait again.
6671 * sol-thread.c (sol_thread_target::wait): Don't reference
6672 inferior_ptid.
6673 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
6674 (sol_update_thread_list_callback): Use the current inferior's pid
6675 instead of inferior_ptid.
6676
196535a6
RO
66772020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6678
6679 * procfs.c: Cleanup many comments.
6680
6681 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
6682 (AFTER_WATCHFLAG): Replace by value.
6683
6684 (MAIN_PROC_NAME_FORMAT): Inline ...
6685 (create_procinfo): ... here.
6686
6687 (procfs_debug_inferior): Remove SYS_exec handling.
6688 (syscall_is_exec): Likewise.
6689 (procfs_set_exec_trap): Likewise.
6690
6691 (syscall_is_lwp_exit): Inline in callers.
6692 (syscall_is_exit): Likewise.
6693 (syscall_is_exec): Likewise.
6694 (syscall_is_lwp_create): Likewise.
6695
6696 (invalidate_cache): Remove #if 0 code.
6697
6698 (make_signal_thread_runnable): Remove.
6699 (procfs_target::resume): Remove #if 0 code.
6700
cf6f3e86
RO
67012020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6702
6703 PR gdb/25939
6704 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
6705 call ...
6706 (procfs_target::create_inferior): ... here.
6707
48e9cc84
PW
67082020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6709
6710 * exec.c (validate_exec_file): Ensure the build-id is up to
6711 date by calling reopen_exec_file (that checks file timestamp
6712 to decide to re-read the file).
6713
3922b302
PA
67142020-06-18 Pedro Alves <palves@redhat.com>
6715
6716 PR gdb/25412
6717 * gdbthread.h (delete_thread, delete_thread_silent)
6718 (find_thread_ptid): Update comments.
6719 * thread.c (current_thread_): New global.
6720 (is_current_thread): Move higher, and reimplement.
6721 (inferior_thread): Reimplement.
6722 (set_thread_exited): Use bool. Add assertions.
6723 (add_thread_silent): Simplify thread-reuse handling by always
6724 calling delete_thread.
6725 (delete_thread): Remove intro comment.
6726 (find_thread_ptid): Skip exited threads.
6727 (switch_to_thread_no_regs): Write to current_thread_.
6728 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
6729 INFERIOR_PTID. Clear current_thread_.
6730
6dbdab44
PA
67312020-06-18 Pedro Alves <palves@redhat.com>
6732
6733 * aix-thread.c (pd_update): Use switch_to_thread.
6734
2da4b788
PA
67352020-06-18 Pedro Alves <palves@redhat.com>
6736
6737 * ravenscar-thread.c (ravenscar_thread_target): Update.
6738 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
6739 (ravenscar_thread_target::add_active_thread): ... this. Don't
6740 set m_base_ptid here. Update to avoid referencing inferior_ptid.
6741 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
6742
50838d1b
PA
67432020-06-18 Pedro Alves <palves@redhat.com>
6744
6745 * nat/windows-nat.c (current_windows_thread): Remove.
6746 * nat/windows-nat.h (current_windows_thread): Remove.
6747 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
6748 Adjust.
6749 (display_selectors): Adjust to fetch the current
6750 windows_thread_info based on inferior_ptid.
6751 (fake_create_process): No longer write to current_windows_thread.
6752 (windows_nat_target::get_windows_debug_event):
6753 Don't set inferior_ptid or current_windows_thread.
6754 (windows_nat_target::wait): Adjust to not rely on
6755 current_windows_thread.
6756 (do_initial_windows_stuff): Now a method of windows_nat_target.
6757 Switch to the last_ptid thread.
6758 (windows_nat_target::attach): Adjust.
6759 (windows_nat_target::detach): Use switch_to_no_thread instead of
6760 writing to inferior_ptid directly.
6761 (windows_nat_target::create_inferior): Adjust.
6762
31ce04e9
PA
67632020-06-18 Pedro Alves <palves@redhat.com>
6764
6765 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
6766
1ee1a363
PA
67672020-06-18 Pedro Alves <palves@redhat.com>
6768
6769 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
6770 after creating it, instead of writing to inferior_ptid. Don't
6771 write to inferior_ptid.
6772
6d350754
PA
67732020-06-18 Pedro Alves <palves@redhat.com>
6774
6775 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
6776
5d971d48
PA
67772020-06-18 Pedro Alves <palves@redhat.com>
6778
6779 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
6780 it, instead of writing to inferior_ptid.
6781
86e57d1b
PA
67822020-06-18 Pedro Alves <palves@redhat.com>
6783
6784 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
6785 to inferior_ptid.
6786
f2e1c129
PA
67872020-06-18 Pedro Alves <palves@redhat.com>
6788
6789 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
6790 instead of writing to inferior_ptid directly.
6791
60db1b85
PA
67922020-06-18 Pedro Alves <palves@redhat.com>
6793
6794 * corelow.c (core_target::close): Use switch_to_no_thread instead
6795 of writing to inferior_ptid directly.
6796 (add_to_thread_list, core_target_open): Use switch_to_thread
6797 instead of writing to inferior_ptid directly.
6798
fe7d6a8d
PA
67992020-06-18 Pedro Alves <palves@redhat.com>
6800
6801 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
6802 inferior_ptid.
6803 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
6804 inferior_ptid.
6805 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
6806 inferior_ptid directly.
6807 (darwin_nat_target::init_thread_list): Switch to thread, instead
6808 of writing to inferior_ptid.
6809 (darwin_nat_target::attach): Don't write to inferior_ptid.
6810 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
6811
975f8708
PA
68122020-06-18 Pedro Alves <palves@redhat.com>
6813
6814 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
6815 thread.
6816 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
6817 Instead use switch_to_thread.
6818 (gnu_nat_target::detach): Use switch_to_no_thread
6819 instead of writing to inferior_ptid directly. Used passed-in
6820 inferior instead of looking up the inferior by pid.
6821
1a204730
PA
68222020-06-18 Pedro Alves <palves@redhat.com>
6823
6824 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
6825 inferior_ptid.
6826
ebe84f23
PA
68272020-06-18 Pedro Alves <palves@redhat.com>
6828
6829 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
6830 inferior_ptid.
6831 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
6832 thread.
6833 (nto_procfs_target::detach): Avoid referencing
6834 inferior_ptid. Use switch_to_no_thread instead of writing to
6835 inferior_ptid directly.
6836 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
6837 instead of writing to inferior_ptid directly.
6838 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
6839 to thread.
6840
191f02e5
PA
68412020-06-18 Pedro Alves <palves@redhat.com>
6842
6843 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
6844 after creating it, instead of writing to inferior_ptid.
6845 (gdbsim_target_open): Use switch_to_no_thread instead of writing
6846 to inferior_ptid directly.
6847 (gdbsim_target::wait): Don't write to inferior_ptid.
6848
0ac55310
PA
68492020-06-18 Pedro Alves <palves@redhat.com>
6850
6851 * remote.c (remote_target::remote_notice_new_inferior): Use
6852 switch_to_thread instead of writing to inferior_ptid directly.
6853 (remote_target::add_current_inferior_and_thread): Use
6854 switch_to_no_thread instead of writing to inferior_ptid directly.
6855 (extended_remote_target::attach): Use switch_to_inferior_no_thread
6856 and switch_to_thread instead of using set_current_inferior or
6857 writing to inferior_ptid directly.
6858
5233f39b
PA
68592020-06-18 Pedro Alves <palves@redhat.com>
6860
6861 * tracectf.c (ctf_target_open): Switch to added thread instead of
6862 writing to inferior_ptid directly.
6863 (ctf_target::close): Use switch_to_no_thread instead of writing to
6864 inferior_ptid directly.
6865
087e161b
PA
68662020-06-18 Pedro Alves <palves@redhat.com>
6867
6868 * tracefile-tfile.c (tfile_target_open): Don't write to
6869 inferior_ptid directly, instead switch to added thread.
6870 (tfile_target::close): Use switch_to_no_thread instead of writing
6871 to inferior_ptid directly.
6872
7fb43e53
PA
68732020-06-18 Pedro Alves <palves@redhat.com>
6874
6875 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
6876 (procfs_target::detach): Use switch_to_no_thread
6877 instead of writing to inferior_ptid directly.
6878 (do_attach): Change return type to void. Switch to the added
6879 thread.
6880 (procfs_target::create_inferior): Switch to the added thread.
6881 (procfs_do_thread_registers): Don't write to inferior_ptid.
6882
18493a00
PA
68832020-06-18 Pedro Alves <palves@redhat.com>
6884
6885 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
6886 of writing to inferior_ptid.
6887 (scoped_restore_exited_inferior): Delete.
6888 (handle_vfork_child_exec_or_exit): Simplify using
6889 scoped_restore_current_pspace_and_thread. Use switch_to_thread
6890 instead of writing to inferior_ptid.
6891 (THREAD_STOPPED_BY): Delete.
6892 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
6893 (thread_stopped_by_hw_breakpoint): Delete.
6894 (save_waitstatus): Use
6895 scoped_restore_current_thread+switch_to_thread, and call
6896 target_stopped_by_watchpoint instead of
6897 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
6898 instead of thread_stopped_by_sw_breakpoint, and
6899 target_stopped_by_hw_breakpoint instead of
6900 thread_stopped_by_hw_breakpoint.
6901 (handle_inferior_event)
6902 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
6903 inferior_ptid directly, nor
6904 set_current_inferior/set_current_program_space. Use
6905 switch_to_thread / switch_to_inferior_no_thread instead.
6906
a0776b13
PA
69072020-06-18 Pedro Alves <palves@redhat.com>
6908
6909 * target.c (generic_mourn_inferior): Use switch_to_no_thread
6910 instead of writing to inferior_ptid.
6911
6155c136
PA
69122020-06-18 Pedro Alves <palves@redhat.com>
6913
6914 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
6915 added thread.
6916 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
6917 to the added thread.
6918 (inf_ptrace_target::detach_success): Use switch_to_no_thread
6919 instead of writing to inferior_ptid.
6920
c5316fc6
PA
69212020-06-18 Pedro Alves <palves@redhat.com>
6922
6923 * gdbarch-selftests.c: Include "progspace-and-thread.h".
6924 (register_to_value_test): Mock a program_space too. Heap-allocate
6925 the address space. Don't write to inferior_ptid. Use
6926 switch_to_thread instead.
6927
8df01799
PA
69282020-06-18 Pedro Alves <palves@redhat.com>
6929
6930 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
6931 Delete.
6932 (find_signalled_thread()): New, factored out from
6933 linux_make_corefile_notes and adjusted to handle exited threads.
6934 (linux_make_corefile_notes): Adjust to use the new
6935 find_signalled_thread.
6936
41792d68
PA
69372020-06-18 Pedro Alves <palves@redhat.com>
6938
6939 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
6940 of saving/restoring inferior_ptid.
6941
612f258a
TT
69422020-06-17 Tom Tromey <tom@tromey.com>
6943
6944 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
6945 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
6946 declare.
6947 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
6948
efb763a5
SM
69492020-06-15 Simon Marchi <simon.marchi@efficios.com>
6950
6951 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
6952 of partial symtabs.
6953
2951f6c0
SM
69542020-06-17 Simon Marchi <simon.marchi@efficios.com>
6955
6956 * regformats/reg-arm.dat: Remove.
6957 * regformats/reg-bfin.dat: Remove.
6958 * regformats/reg-cris.dat: Remove.
6959 * regformats/reg-crisv32.dat: Remove.
6960 * regformats/reg-m32r.dat: Remove.
6961 * regformats/reg-tilegx.dat: Remove.
6962 * regformats/reg-tilegx32.dat: Remove.
6963
7d458ea5
SM
69642020-06-17 Simon Marchi <simon.marchi@efficios.com>
6965
6966 * features/Makefile (WHICH): Remove arm files.
6967 * regformats/arm/arm-with-iwmmxt.dat: Remove.
6968 * regformats/arm/arm-with-neon.dat: Remove.
6969 * regformats/arm/arm-with-vfpv2.dat: Remove.
6970 * regformats/arm/arm-with-vfpv3.dat: Remove.
6971
3af96c0d
SM
69722020-06-17 Simon Marchi <simon.marchi@efficios.com>
6973
6974 * features/Makefile (XMLTOC): Remove rx.xml.
6975
b25e22fd
PA
69762020-06-17 Pedro Alves <palves@redhat.com>
6977
6978 * gdbthread.h (thread_control_state) <trap_expected> Update
6979 comments.
6980
a78a19b1
AB
69812020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6982
6983 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
6984 ada_language::lookup_symbol_nonlocal.
6985 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
6986 (ada_language::lookup_symbol_nonlocal): New member function,
6987 implementation from ada_lookup_symbol_nonlocal.
6988 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
6989 initializer.
6990 (cplus_language_data): Delete la_lookup_symbol_nonlocal
6991 initializer.
6992 (cplus_language::lookup_symbol_nonlocal): New member function.
6993 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
6994 (minimal_language_data) Likewise.
6995 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
6996 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
6997 initializer.
6998 (d_language::lookup_symbol_nonlocal): New member function.
6999 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
7000 initializer.
7001 (f_language::lookup_symbol_nonlocal): New member function.
7002 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
7003 initializer.
7004 * language.c (unknown_language_data): Likewise.
7005 (auto_language_data): Likewise.
7006 * language.h (language_data): Delete la_lookup_symbol_nonlocal
7007 field.
7008 (language_defn::lookup_symbol_nonlocal): New member function.
7009 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
7010 initializer.
7011 * objc-lang.c (objc_language_data): Likewise.
7012 * opencl-lang.c (opencl_language_data): Likewise.
7013 * p-lang.c (pascal_language_data): Likewise.
7014 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
7015 rust_language::lookup_symbol_nonlocal.
7016 (rust_language_data): Delete la_lookup_symbol_nonlocal
7017 initializer.
7018 (rust_language::lookup_symbol_nonlocal): New member function,
7019 implementation from rust_lookup_symbol_nonlocal.
7020 * symtab.c (lookup_symbol_aux): Update call to
7021 lookup_symbol_nonlocal.
7022 (basic_lookup_symbol_nonlocal): Rename to...
7023 (language_defn::lookup_symbol_nonlocal): ...this, and update
7024 header comment. Remove language_defn parameter, and replace with
7025 uses of `this'.
7026 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
7027
ebe2334e
AB
70282020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7029
7030 * ada-lang.c (ada_language_data): Delete la_value_print_inner
7031 initializer.
7032 (ada_language::value_print_inner): New member function.
7033 * c-lang.c (c_language_data): Delete la_value_print_inner
7034 initializer.
7035 (cplus_language_data): Likewise.
7036 (asm_language_data): Likewise.
7037 (minimal_language_data): Likewise.
7038 * d-lang.c (d_language_data): Likewise.
7039 (d_language::value_print_inner): New member function.
7040 * f-lang.c (f_language_data): Delete la_value_print_inner
7041 initializer.
7042 (f_language::value_print_inner): New member function.
7043 * f-lang.h (f_value_print_innner): Rename to...
7044 (f_value_print_inner): ...this (note spelling of 'inner').
7045 * f-valprint.c (f_value_print_innner): Rename to...
7046 (f_value_print_inner): ...this (note spelling of 'inner').
7047 * go-lang.c (go_language_data): Delete la_value_print_inner
7048 initializer.
7049 (go_language::value_print_inner): New member function.
7050 * language.c (language_defn::value_print_inner): Define new member
7051 function.
7052 (unk_lang_value_print_inner): Delete.
7053 (unknown_language_data): Delete la_value_print_inner initializer.
7054 (unknown_language::value_print_inner): New member function.
7055 (auto_language_data): Delete la_value_print_inner initializer.
7056 (auto_language::value_print_inner): New member function.
7057 * language.h (language_data): Delete la_value_print_inner field.
7058 (language_defn::value_print_inner): Delcare new member function.
7059 * m2-lang.c (m2_language_data): Delete la_value_print_inner
7060 initializer.
7061 (m2_language::value_print_inner): New member function.
7062 * objc-lang.c (objc_language_data): Delete la_value_print_inner
7063 initializer.
7064 * opencl-lang.c (opencl_language_data): Likewise.
7065 * p-lang.c (pascal_language_data): Likewise.
7066 (pascal_language::value_print_inner): New member function.
7067 * rust-lang.c (rust_language_data): Delete la_value_print_inner
7068 initializer.
7069 (rust_language::value_print_inner): New member function.
7070 * valprint.c (do_val_print): Update call to value_print_inner.
7071
a1d1fa3e
AB
70722020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7073
7074 * ada-lang.c (ada_language_data): Delete la_value_print
7075 initializer.
7076 (ada_language::value_print): New member function.
7077 * c-lang.c (c_language_data): Delete la_value_print initializer.
7078 (cplus_language_data): Likewise.
7079 (asm_language_data): Likewise.
7080 (minimal_language_data): Likewise.
7081 * d-lang.c (d_language_data): Likewise.
7082 * f-lang.c (f_language_data): Likewise.
7083 * go-lang.c (go_language_data): Likewise.
7084 * language.c (unk_lang_value_print): Delete.
7085 (language_defn::value_print): Define new member function.
7086 (unknown_language_data): Delete la_value_print initializer.
7087 (unknown_language::value_print): New member function.
7088 (auto_language_data): Delete la_value_print initializer.
7089 (auto_language::value_print): New member function.
7090 * language.h (language_data): Delete la_value_print field.
7091 (language_defn::value_print): Declare new member function.
7092 (LA_VALUE_PRINT): Update call to value_print.
7093 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
7094 * objc-lang.c (objc_language_data): Likewise.
7095 * opencl-lang.c (opencl_language_data): Likewise.
7096 * p-lang.c (pascal_language_data): Likewise.
7097 (pascal_language::value_print): New member function.
7098 * rust-lang.c (rust_language_data): Delete la_value_print
7099 initializer.
7100
f16a9f57
AB
71012020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7102
7103 * ada-lang.c (ada_watch_location_expression): Rename to
7104 ada_language::watch_location_expression.
7105 (ada_language_data): Delete la_watch_location_expression
7106 initializer.
7107 (ada_language::watch_location_expression): New member function,
7108 implementation from ada_watch_location_expression.
7109 * breakpoint.c (watch_command_1): Update call to
7110 watch_location_expression.
7111 * c-lang.c (c_watch_location_expression): Rename to
7112 language_defn::watch_location_expression.
7113 (c_language_data): Delete la_watch_location_expression
7114 initializer.
7115 (cplus_language_data): Likewise.
7116 (asm_language_data): Likewise.
7117 (minimal_language_data): Likewise.
7118 * c-lang.h (c_watch_location_expression): Delete declaration.
7119 * d-lang.c (d_language_data): Delete la_watch_location_expression
7120 initializer.
7121 * f-lang.c (f_language_data): Likewise.
7122 * go-lang.c (go_language_data): Likewise.
7123 * language.c (language_defn::watch_location_expression): Member
7124 function implementation from c_watch_location_expression.
7125 (unknown_language_data): Delete la_watch_location_expression
7126 initializer.
7127 (auto_language_data): Likewise.
7128 * language.h (language_data): Delete la_watch_location_expression
7129 field.
7130 (language_defn::watch_location_expression): Declare new member
7131 function.
7132 * m2-lang.c (m2_language_data): Delete
7133 la_watch_location_expression initializer.
7134 * objc-lang.c (objc_language_data): Likewise.
7135 * opencl-lang.c (opencl_language_data): Likewise.
7136 * p-lang.c (pascal_language_data): Likewise.
7137 * rust-lang.c (rust_watch_location_expression): Rename to
7138 rust_language::watch_location_expression.
7139 (rust_language_data): Delete la_watch_location_expression
7140 initializer.
7141 (rust_language::watch_location_expression): New member function,
7142 implementation from rust_watch_location_expression.
7143
7e56227d
AB
71442020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7145
7146 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
7147 ada_language::collect_symbol_completion_matches.
7148 (ada_language_data): Delete la_collect_symbol_completion_matches
7149 initializer.
7150 (ada_language::collect_symbol_completion_matches): New member
7151 function, implementation from
7152 ada_collect_symbol_completion_matches.
7153 * c-lang.c (c_language_data): Delete
7154 la_collect_symbol_completion_matches initializer.
7155 (cplus_language_data): Likewise.
7156 (asm_language_data): Likewise.
7157 (minimal_language_data): Likewise.
7158 * d-lang.c (d_language_data): Likewise.
7159 * f-lang.c (f_collect_symbol_completion_matches): Rename to
7160 f_language::collect_symbol_completion_matches.
7161 (f_language_data): Delete la_collect_symbol_completion_matches
7162 initializer.
7163 (f_language::collect_symbol_completion_matches) New member
7164 function, implementation from f_collect_symbol_completion_matches.
7165 * go-lang.c (go_language_data): Delete
7166 la_collect_symbol_completion_matches initializer.
7167 * language.c (unknown_language_data): Likewise.
7168 (auto_language_data): Likewise.
7169 * language.h (language_data): Delete
7170 la_collect_symbol_completion_matches field.
7171 (language_defn::collect_symbol_completion_matches): New member
7172 function.
7173 * m2-lang.c (m2_language_data): Delete
7174 la_collect_symbol_completion_matches initializer.
7175 * objc-lang.c (objc_language_data): Likewise.
7176 * opencl-lang.c (opencl_language_data): Likewise.
7177 * p-lang.c (pascal_language_data): Likewise.
7178 * rust-lang.c (rust_language_data): Likewise.
7179 * symtab.c (default_collect_symbol_completion_matches): Delete.
7180 (collect_symbol_completion_matches): Update call to
7181 collect_symbol_completion_matches.
7182 (collect_symbol_completion_matches_type): Likewise.
7183 * symtab.h (default_collect_symbol_completion_matches): Delete
7184 declaration.
7185
53fc67f8
AB
71862020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7187
7188 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
7189 (ada_language_data): Delete la_word_break_characters initializer.
7190 (ada_language::word_break_characters): New member function.
7191 * c-lang.c (c_language_data): Delete la_word_break_characters
7192 initializer.
7193 (cplus_language_data): Likewise.
7194 (asm_language_data): Likewise.
7195 (minimal_language_data): Likewise.
7196 * completer.c: Update global comment.
7197 (advance_to_expression_complete_word_point): Update call to
7198 word_break_characters.
7199 (complete_files_symbols): Likewise.
7200 (complete_line_internal_1): Likewise.
7201 (default_completer_handle_brkchars): Likewise.
7202 (skip_quoted_chars): Likewise.
7203 * d-lang.c (d_language_data): Delete la_word_break_characters
7204 initializer.
7205 * f-lang.c (f_word_break_characters): Delete.
7206 (f_language_data): Delete la_word_break_characters initializer.
7207 (f_language::word_break_characters): New member function.
7208 * go-lang.c (go_language_data): Delete la_word_break_characters
7209 initializer.
7210 * language.c (unknown_language_data): Likewise.
7211 (auto_language_data): Likewise.
7212 * language.h (default_word_break_characters): Move declaration to
7213 earlier in the file.
7214 (language_data): Delete la_word_break_characters field.
7215 (language_defn::word_break_characters): New member function.
7216 * m2-lang.c (m2_language_data): Delete la_word_break_characters
7217 initializer.
7218 * objc-lang.c (objc_language_data): Likewise.
7219 * opencl-lang.c (opencl_language_data): Likewise.
7220 * p-lang.c (pascal_language_data): Likewise.
7221 * rust-lang.c (rust_language_data): Likewise.
7222
c9debfb9
AB
72232020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7224
7225 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
7226 (ada_language_data): Delete la_get_symbol_name_matcher
7227 initializer.
7228 (language_defn::get_symbol_name_matcher_inner): New member
7229 function.
7230 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
7231 initializer.
7232 (cplus_language_data): Likewise.
7233 (cplus_language::get_symbol_name_matcher_inner): New member
7234 function.
7235 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
7236 (minimal_language_data): Likewise.
7237 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
7238 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
7239 initializer.
7240 * dictionary.c (iter_match_first_hashed): Update call to
7241 get_symbol_name_matcher.
7242 (iter_match_next_hashed): Likewise.
7243 (iter_match_next_linear): Likewise.
7244 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
7245 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
7246 initializer.
7247 (f_language::get_symbol_name_matcher_inner): New member function.
7248 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
7249 initializer.
7250 * language.c (default_symbol_name_matcher): Update header comment,
7251 make static.
7252 (language_defn::get_symbol_name_matcher): New definition.
7253 (language_defn::get_symbol_name_matcher_inner): Likewise.
7254 (get_symbol_name_matcher): Delete.
7255 (unknown_language_data): Delete la_get_symbol_name_matcher
7256 initializer.
7257 (auto_language_data): Likewise.
7258 * language.h (language_data): Delete la_get_symbol_name_matcher
7259 field.
7260 (language_defn::get_symbol_name_matcher): New member function.
7261 (language_defn::get_symbol_name_matcher_inner): Likewise.
7262 (default_symbol_name_matcher): Delete declaration.
7263 * linespec.c (find_methods): Update call to
7264 get_symbol_name_matcher.
7265 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
7266 initializer.
7267 * minsyms.c (lookup_minimal_symbol): Update call to
7268 get_symbol_name_matcher.
7269 (iterate_over_minimal_symbols): Likewise.
7270 * objc-lang.c (objc_language_data): Delete
7271 la_get_symbol_name_matcher initializer.
7272 * opencl-lang.c (opencl_language_data): Likewise.
7273 * p-lang.c (pascal_language_data): Likewise.
7274 * psymtab.c (psymbol_name_matches): Update call to
7275 get_symbol_name_matcher.
7276 * rust-lang.c (rust_language_data): Delete
7277 la_get_symbol_name_matcher initializer.
7278 * symtab.c (symbol_matches_search_name): Update call to
7279 get_symbol_name_matcher.
7280 (compare_symbol_name): Likewise.
7281
9a49ad8c
AB
72822020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7283
7284 * ada-lang.c (ada_language_data): Delete la_compute_program
7285 initializer.
7286 * c-lang.c (c_language_data): Likewise.
7287 (c_language::compute_program): New member function.
7288 (cplus_language_data): Delete la_compute_program initializer.
7289 (cplus_language::compute_program): New member function.
7290 (asm_language_data): Delete la_compute_program initializer.
7291 (minimal_language_data): Likewise.
7292 * c-lang.h (c_compute_program): Update comment.
7293 (cplus_compute_program): Likewise.
7294 * compile/compile-c-support.c (c_compute_program): Likewise.
7295 (cplus_compute_program): Likewise.
7296 * compile/compile.c (compile_to_object): Update call to
7297 la_compute_program.
7298 * d-lang.c (d_language_data): Delete la_compute_program
7299 initializer.
7300 * f-lang.c (f_language_data): Likewise.
7301 * go-lang.c (go_language_data): Likewise.
7302 * language.c (unknown_language_data): Likewise.
7303 (auto_language_data): Likewise.
7304 * language.h (language_data): Delete la_compute_program field.
7305 (language_defn::compute_program): New member function.
7306 * m2-lang.c (m2_language_data): Delete la_compute_program
7307 initializer.
7308 * objc-lang.c (objc_language_data): Likewise.
7309 * opencl-lang.c (opencl_language_data): Likewise.
7310 * p-lang.c (pascal_language_data): Likewise.
7311 * rust-lang.c (rust_language_data): Likewise.
7312
eff93b4d
AB
73132020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7314
7315 * ada-lang.c (ada_language_data) Delete
7316 la_class_name_from_physname initializer.
7317 * c-lang.c (c_language_data): Likewise.
7318 (cplus_language_data): Likewise.
7319 (cplus_language::class_name_from_physname): New member function.
7320 (asm_language_data): Delete la_class_name_from_physname
7321 initializer.
7322 (minimal_language_data): Likewise.
7323 * d-lang.c (d_language_data): Likewise.
7324 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
7325 method on language_defn class.
7326 (guess_full_die_structure_name): Likewise.
7327 * f-lang.c (f_language_data): Delete la_class_name_from_physname
7328 initializer.
7329 * go-lang.c (go_language_data): Likewise.
7330 * language.c (language_class_name_from_physname): Delete.
7331 (unk_lang_class_name): Delete.
7332 (unknown_language_data): Delete la_class_name_from_physname
7333 initializer.
7334 (auto_language_data): Likewise.
7335 * language.h (language_data): Delete la_class_name_from_physname
7336 field.
7337 (language_defn::class_name_from_physname): New function.
7338 (language_class_name_from_physname): Delete declaration.
7339 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
7340 initializer.
7341 * objc-lang.c (objc_language_data): Likewise.
7342 * opencl-lang.c (opencl_language_data): Likewise.
7343 * p-lang.c (pascal_language_data): Likewise.
7344 * rust-lang.c (rust_language_data): Likewise.
7345
de543742
TT
73462020-06-16 Tom Tromey <tom@tromey.com>
7347
7348 * tui/tui-data.h (STATUS_NAME): New macro.
7349 * tui/tui-layout.c (tui_remove_some_windows)
7350 (initialize_known_windows, tui_register_window)
7351 (tui_layout_split::remove_windows, initialize_layouts)
7352 (tui_new_layout_command): Don't use hard-coded window names.
7353
a350efd4
TT
73542020-06-16 Tom Tromey <tom@tromey.com>
7355
7356 PR tui/25348:
7357 * tui/tui.c (tui_ensure_readline_initialized): Rename from
7358 tui_initialize_readline. Only run once. Call rl_initialize.
7359 * tui/tui.h (tui_ensure_readline_initialized): Rename from
7360 tui_initialize_readline.
7361 * tui/tui-io.c (tui_setup_io): Call
7362 tui_ensure_readline_initialized.
7363 * tui/tui-interp.c (tui_interp::init): Update.
7364
39ec0490
TT
73652020-06-16 Tom Tromey <tom@tromey.com>
7366
7367 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
7368 Also preserve the status window.
7369
d2d1ea20
TT
73702020-06-16 Tom Tromey <tom@tromey.com>
7371
7372 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
7373 where m_window==nullptr.
7374
66920317
TT
73752020-06-15 Tom Tromey <tromey@adacore.com>
7376
7377 * windows-nat.c (windows_nat::handle_output_debug_string):
7378 Update.
7379 (windows_nat::handle_ms_vc_exception): Update.
7380 * target.h (target_read_string): Change API.
7381 * target.c (target_read_string): Change API.
7382 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
7383 Update.
7384 * solib-frv.c (frv_current_sos): Update.
7385 * solib-dsbt.c (dsbt_current_sos): Update.
7386 * solib-darwin.c (darwin_current_sos): Update.
7387 * linux-thread-db.c (inferior_has_bug): Update.
7388 * expprint.c (print_subexp_standard): Update.
7389 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
7390 (ada_exception_message_1): Update.
7391
a5d871dd
TT
73922020-06-15 Tom Tromey <tromey@adacore.com>
7393
7394 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
7395
670e35fa
TT
73962020-06-15 Tom Tromey <tromey@adacore.com>
7397
7398 * valprint.c (read_string): Update comment.
7399 * target.c (MIN): Remove.
7400 (target_read_string): Rewrite.
7401
f5272a3b
TT
74022020-06-15 Tom Tromey <tromey@adacore.com>
7403
7404 * corefile.c (read_memory_string): Remove.
7405 * ada-valprint.c (ada_value_print_ptr): Update.
7406 * ada-lang.h (ada_tag_name): Change return type.
7407 * ada-lang.c (type_from_tag): Update.
7408 (ada_tag_name_from_tsd): Change return type. Use
7409 target_read_string.
7410 (ada_tag_name): Likewise.
7411 * gdbcore.h (read_memory_string): Don't declare.
7412
2c074f49
HD
74132020-06-14 Hannes Domani <ssbssa@yahoo.de>
7414
7415 * symtab.c (rbreak_command): Ignore Windows drive colon.
7416
6a17d503
SM
74172020-06-12 Simon Marchi <simon.marchi@efficios.com>
7418
7419 * NEWS: Mention removed GDBserver host support.
7420
453c733f
NC
74212020-06-12 Nelson Chu <nelson.chu@sifive.com>
7422
7423 * features/riscv/rebuild-csr-xml.sh: Updated.
7424
2b4e6a3f
TT
74252020-06-11 Tom Tromey <tom@tromey.com>
7426
7427 PR gdb/18318:
7428 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
7429
4412332f
JG
74302020-06-09 Jonny Grant <jg@jguk.org>
74312020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
7432
7433 * main.c (captured_main_1): Don't print new line after help.
7434 (print_gdb_help): add mailing list and IRC channel information
7435 to --help. Add new lines between items in the footer. Remove
7436 quotes around bug url.
7437
2f33032a
KS
74382020-06-11 Keith Seitz <keiths@redhat.com>
7439
7440 PR gdb/21356
7441 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
7442 Resolve typedefs for type length calculations.
7443
7ab96794
TV
74442020-06-10 Tom de Vries <tdevries@suse.de>
7445
7446 PR ada/24713
7447 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
7448 (write_psymbols): Enable .gdb_index for ada.
7449 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
7450 ada.
7451
e5f3ece2
TV
74522020-06-10 Tom de Vries <tdevries@suse.de>
7453
7454 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
7455 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
7456 namei" instead of "const char *name" argument.
7457 (dw2_map_matching_symbols): Use "offset_type namei" variant of
7458 dw2_symtab_iter_init.
7459
940da03e
SM
74602020-06-08 Simon Marchi <simon.marchi@efficios.com>
7461
7462 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
7463 to use type::field and field::type instead.
7464
b6cdac4b
SM
74652020-06-08 Simon Marchi <simon.marchi@efficios.com>
7466
7467 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
7468 to use field::type instead.
7469
5d14b6e5
SM
74702020-06-08 Simon Marchi <simon.marchi@efficios.com>
7471
7472 * gdbtypes.h (struct field) <type, set_type>: New methods.
7473 Rename `type` field to...
7474 <m_type>: ... this. Change references throughout to use type or
7475 set_type methods.
7476 (FIELD_TYPE): Use field::type. Change call sites that modify
7477 the field's type to use field::set_type instead.
7478
3d967001
SM
74792020-06-08 Simon Marchi <simon.marchi@efficios.com>
7480
7481 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
7482 to use type::index_type instead.
7483
262abc0d
SM
74842020-06-08 Simon Marchi <simon.marchi@efficios.com>
7485
7486 * gdbtypes.h (struct type) <index_type, set_index_type>: New
7487 methods.
7488 (TYPE_INDEX_TYPE): Use type::index_type.
7489 * gdbtypes.c (create_array_type_with_stride): Likewise.
7490
82836c92
TT
74912020-06-07 Tom Tromey <tom@tromey.com>
7492
7493 * valprint.c (generic_val_print_float): Remove "embedded_offset"
7494 parameter.
7495 (generic_value_print): Update.
7496
940dace9
AB
74972020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
7498
7499 Revert commit 982a38f60b0.
7500 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
7501
982a38f6
AB
75022020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
7503
7504 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
7505 avoid use after free.
7506
82f06518
TV
75072020-06-05 Tom de Vries <tdevries@suse.de>
7508
7509 * NEWS: Fix typos.
7510
f8c41851
SM
75112020-06-04 Simon Marchi <simon.marchi@efficios.com>
7512
7513 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
7514 the per_bfd object.
7515 (dwarf2_read_debug_names): Likewise.
7516 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
7517 object when re-using a per_bfd object with an index.
7518
f9b5d5ea
TV
75192020-06-03 Tom de Vries <tdevries@suse.de>
7520
7521 PR symtab/26046
7522 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
7523 children for C++.
7524 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
7525 DW_TAG_subprogram.
7526
f6eee2d0
AB
75272020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7528
7529 * ada-lang.c (ada_language_data): Delete skip_trampoline
7530 initializer.
7531 * c-lang.c (c_language_data): Likewise.
7532 (cplus_language_data): Likewise.
7533 (cplus_language::skip_trampoline): New member function.
7534 (asm_language_data): Delete skip_trampoline initializer.
7535 (minimal_language_data): Likewise.
7536 * d-lang.c (d_language_data): Likewise.
7537 * f-lang.c (f_language_data): Likewise.
7538 * go-lang.c (go_language_data): Likewise.
7539 * language.c (unk_lang_trampoline): Delete function.
7540 (skip_language_trampoline): Update.
7541 (unknown_language_data): Delete skip_trampoline initializer.
7542 (auto_language_data): Likewise.
7543 * language.h (language_data): Delete skip_trampoline field.
7544 (language_defn::skip_trampoline): New function.
7545 * m2-lang.c (m2_language_data): Delete skip_trampoline
7546 initializer.
7547 * objc-lang.c (objc_skip_trampoline): Delete function, move
7548 implementation to objc_language::skip_trampoline.
7549 (objc_language_data): Delete skip_trampoline initializer.
7550 (objc_language::skip_trampoline): New member function with
7551 implementation from objc_skip_trampoline.
7552 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
7553 initializer.
7554 * p-lang.c (pascal_language_data): Likewise.
7555 * rust-lang.c (rust_language_data): Likewise.
7556
0a50df5d
AB
75572020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7558
7559 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
7560 (ada_language::demangle): New member function.
7561 * c-lang.c (c_language_data): Delete la_demangle initializer.
7562 (cplus_language_data): Delete la_demangle initializer.
7563 (cplus_language::demangle): New member function.
7564 (asm_language_data): Delete la_demangle initializer.
7565 (minimal_language_data): Delete la_demangle initializer.
7566 * d-lang.c (d_language_data): Delete la_demangle initializer.
7567 (d_language::demangle): New member function.
7568 * f-lang.c (f_language_data): Delete la_demangle initializer.
7569 (f_language::demangle): New member function.
7570 * go-lang.c (go_language_data): Delete la_demangle initializer.
7571 (go_language::demangle): New member function.
7572 * language.c (language_demangle): Update.
7573 (unk_lang_demangle): Delete.
7574 (unknown_language_data): Delete la_demangle initializer.
7575 (unknown_language::demangle): New member function.
7576 (auto_language_data): Delete la_demangle initializer.
7577 (auto_language::demangle): New member function.
7578 * language.h (language_data): Delete la_demangle field.
7579 (language_defn::demangle): New function.
7580 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
7581 * objc-lang.c (objc_language_data): Delete la_demangle
7582 initializer.
7583 (objc_language::demangle): New member function.
7584 * opencl-lang.c (opencl_language_data): Delete la_demangle
7585 initializer.
7586 * p-lang.c (pascal_language_data): Likewise.
7587 * rust-lang.c (rust_language_data): Likewise.
7588 (rust_language::demangle): New member function.
7589
fbfb0a46
AB
75902020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7591
7592 * ada-lang.c (ada_language_data): Delete la_print_type
7593 initializer.
7594 (ada_language::print_type): New member function.
7595 * c-lang.c (c_language_data): Delete la_print_type initializer.
7596 (c_language::print_type): New member function.
7597 (cplus_language_data): Delete la_print_type initializer.
7598 (cplus_language::print_type): New member function.
7599 (asm_language_data): Delete la_print_type initializer.
7600 (asm_language::print_type): New member function.
7601 (minimal_language_data): Delete la_print_type initializer.
7602 (minimal_language::print_type): New member function.
7603 * d-lang.c (d_language_data): Delete la_print_type initializer.
7604 (d_language::print_type): New member function.
7605 * f-lang.c (f_language_data): Delete la_print_type initializer.
7606 (f_language::print_type): New member function.
7607 * go-lang.c (go_language_data): Delete la_print_type initializer.
7608 (go_language::print_type): New member function.
7609 * language.c (unk_lang_print_type): Delete.
7610 (unknown_language_data): Delete la_print_type initializer.
7611 (unknown_language::print_type): New member function.
7612 (auto_language_data): Delete la_print_type initializer.
7613 (auto_language::print_type): New member function.
7614 * language.h (language_data): Delete la_print_type field.
7615 (language_defn::print_type): New function.
7616 (LA_PRINT_TYPE): Update.
7617 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
7618 (m2_language::print_type): New member function.
7619 * objc-lang.c (objc_language_data): Delete la_print_type
7620 initializer.
7621 (objc_language::print_type): New member function.
7622 * opencl-lang.c (opencl_print_type): Delete, implementation moved
7623 to opencl_language::print_type.
7624 (opencl_language_data): Delete la_print_type initializer.
7625 (opencl_language::print_type): New member function, implementation
7626 from opencl_print_type.
7627 * p-lang.c (pascal_language_data): Delete la_print_type
7628 initializer.
7629 (pascal_language::print_type): New member function.
7630 * rust-lang.c (rust_print_type): Delete, implementation moved to
7631 rust_language::print_type.
7632 (rust_language_data): Delete la_print_type initializer.
7633 (rust_language::print_type): New member function, implementation
7634 from rust_print_type.
7635
6f827019
AB
76362020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7637
7638 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
7639 implementation moves to...
7640 (ada_language::sniff_from_mangled_name): ...here. Update return
7641 type.
7642 (ada_language_data): Delete la_sniff_from_mangled_name
7643 initializer.
7644 * c-lang.c (c_language_data): Likewise.
7645 (cplus_language_data): Likewise.
7646 (cplus_language::sniff_from_mangled_name): New member function,
7647 implementation taken from gdb_sniff_from_mangled_name.
7648 (asm_language_data): Delete la_sniff_from_mangled_name
7649 initializer.
7650 (minimal_language_data): Likewise.
7651 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
7652 implementation moves to cplus_language::sniff_from_mangled_name.
7653 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
7654 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
7655 moves to...
7656 (d_language::sniff_from_mangled_name): ...here.
7657 (d_language_data): Delete la_sniff_from_mangled_name initializer.
7658 * f-lang.c (f_language_data): Likewise.
7659 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
7660 moves to...
7661 (go_language::sniff_from_mangled_name): ...here.
7662 (go_language_data): Delete la_sniff_from_mangled_name initializer.
7663 * language.c (language_sniff_from_mangled_name): Delete.
7664 (unknown_language_data): Delete la_sniff_from_mangled_name
7665 initializer.
7666 (auto_language_data): Likewise.
7667 * language.h (language_data): Delete la_sniff_from_mangled_name
7668 field.
7669 (language_defn::sniff_from_mangled_name): New function.
7670 (language_sniff_from_mangled_name): Delete declaration.
7671 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
7672 field.
7673 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
7674 implementation moves to...
7675 (objc_language::sniff_from_mangled_name): ...here.
7676 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
7677 * opencl-lang.c (opencl_language_data): Likewise.
7678 * p-lang.c (pascal_language_data): Likewise.
7679 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
7680 implementation moves to...
7681 (rust_language::sniff_from_mangled_name): ...here.
7682 (rust_language_data): Delete la_sniff_from_mangled_name
7683 initializer.
7684 * symtab.c (symbol_find_demangled_name): Call
7685 sniff_from_mangled_name member function.
7686
fb8006fd
AB
76872020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7688
7689 * ada-lang.c (ada_language_data): Delete la_search_name_hash
7690 initializer.
7691 * c-lang.c (c_language_data): Likewise.
7692 (cplus_language_data): Likewise.
7693 (cplus_language::search_name_hash): New member function.
7694 (asm_language_data): Delete la_search_name_hash initializer.
7695 (minimal_language_data): Likewise.
7696 * d-lang.c (d_language_data): Likewise.
7697 * dictionary.c (default_search_name_hash): Rename to...
7698 (language_defn::search_name_hash): ...this.
7699 * f-lang.c (f_language_data): Likewise.
7700 (f_language::search_name_hash): New member function.
7701 * go-lang.c (go_language_data): Delete la_search_name_hash
7702 initializer.
7703 * language.c (unknown_language_data): Likewise.
7704 (auto_language_data): Likewise.
7705 * language.h (struct language_data): Delete la_search_name_hash
7706 field.
7707 (language_defn::search_name_hash): Declare new member function.
7708 (default_search_name_hash): Delete declaration.
7709 * m2-lang.c (m2_language_data): Delete la_search_name_hash
7710 initializer.
7711 * objc-lang.c (objc_language_data): Likewise.
7712 * opencl-lang.c (opencl_language_data): Likewise.
7713 * p-lang.c (pascal_language_data): Likewise.
7714 * rust-lang.c (rust_language_data): Likewise.
7715 * symtab.c (search_name_hash): Update call.
7716
8e25bafe
AB
77172020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7718
7719 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
7720 initializer.
7721 * c-lang.c (class compile_instance): Declare.
7722 (c_language_data): Delete la_get_compile_instance initializer.
7723 (c_language::get_compile_instance): New member function.
7724 (cplus_language_data): Delete la_get_compile_instance initializer.
7725 (cplus_language::get_compile_instance): New member function.
7726 (asm_language_data): Delete la_get_compile_instance initializer.
7727 (minimal_language_data): Likewise.
7728 * c-lang.h (c_get_compile_context): Update comment.
7729 (cplus_get_compile_context): Update comment.
7730 * compile/compile.c (compile_to_object): Update calls, don't rely
7731 on function pointer being NULL.
7732 * d-lang.c (d_language_data): Delete la_get_compile_instance
7733 initializer.
7734 * f-lang.c (f_language_data): Likewise.
7735 * go-lang.c (go_language_data): Likewise.
7736 * language.c (unknown_language_data): Likewise.
7737 (auto_language_data): Likewise.
7738 * language.h (language_data): Delete la_get_compile_instance field.
7739 (language_defn::get_compile_instance): New member function.
7740 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
7741 initializer.
7742 * objc-lang.c (objc_language_data): Likewise.
7743 * opencl-lang.c (opencl_language_data): Likewise.
7744 * p-lang.c (pascal_language_data): Likewise.
7745 * rust-lang.c (rust_language_data): Likewise.
7746
4009ee92
AB
77472020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7748
7749 * ada-lang.c (ada_add_all_symbols): Update comment.
7750 (ada_iterate_over_symbols): Delete, move implementation to...
7751 (ada_language::iterate_over_symbols): ...here, a new member
7752 function, rewrite to use range based for loop.
7753 (ada_language_data): Delete la_iterate_over_symbols initializer.
7754 * c-lang.c (c_language_data): Likewise.
7755 (cplus_language_data): Likewise.
7756 (asm_language_data): Likewise.
7757 (minimal_language_data): Likewise.
7758 * d-lang.c (d_language_data): Likewise.
7759 * f-lang.c (f_language_data): Likewise.
7760 * go-lang.c (go_language_data): Likewise.
7761 * language.c (unknown_language_data): Likewise.
7762 (auto_language_data): Likewise.
7763 * language.h (language_data): Delete la_iterate_over_symbols field.
7764 (language_defn::iterate_over_symbols): New member function.
7765 (LA_ITERATE_OVER_SYMBOLS): Update.
7766 * linespec.c (iterate_over_all_matching_symtabs): Update.
7767 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
7768 initializer.
7769 * objc-lang.c (objc_language_data): Likewise.
7770 * opencl-lang.c (opencl_language_data): Likewise.
7771 * p-lang.c (pascal_language_data): Likewise.
7772 * rust-lang.c (rust_language_data): Likewise.
7773
54f4ca46
AB
77742020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7775
7776 * ada-lang.c (ada_language_data): Delete
7777 la_lookup_transparent_type initializer.
7778 * c-lang.c (c_language_data): Likewise.
7779 (cplus_language_data): Likewise.
7780 (cplus_language::lookup_transparent_type): New member function.
7781 (asm_language_data): Delete la_lookup_transparent_type
7782 initializer.
7783 (minimal_language_data): Likewise.
7784 * d-lang.c (d_language_data): Likewise.
7785 * f-lang.c (f_language_data): Likewise.
7786 * go-lang.c (go_language_data): Likewise.
7787 * language.c (unknown_language_data): Likewise.
7788 (auto_language_data): Likewise.
7789 * language.h (struct language_data): Delete
7790 la_lookup_transparent_type field.
7791 (language_defn::lookup_transparent_type): New member function.
7792 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
7793 initializer.
7794 * objc-lang.c (objc_language_data): Likewise.
7795 * opencl-lang.c (opencl_language_data): Likewise.
7796 * p-lang.c (pascal_language_data): Likewise.
7797 * rust-lang.c (rust_language_data): Likewise.
7798 * symtab.c (symbol_matches_domain): Update call.
7799
1fb314aa
AB
78002020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7801
7802 * ada-lang.c (ada_language_arch_info): Delete function, move
7803 implementation to...
7804 (ada_language::language_arch_info): ...here, a new member
7805 function.
7806 (ada_language_data): Delete la_language_arch_info.
7807 * c-lang.c (c_language_data): Likewise.
7808 (c_language::language_arch_info): New member function.
7809 (cplus_language_arch_info): Delete function, move
7810 implementation to...
7811 (cplus_language::language_arch_info): ...here, a new member
7812 function.
7813 (cplus_language_data): Delete la_language_arch_info.
7814 (asm_language_data): Likewise.
7815 (asm_language::language_arch_info): New member function.
7816 (minimal_language_data): Delete la_language_arch_info.
7817 (minimal_language::language_arch_info): New member function.
7818 * d-lang.c (d_language_arch_info): Delete function, move
7819 implementation to...
7820 (d_language::language_arch_info): ...here, a new member
7821 function.
7822 (d_language_data): Delete la_language_arch_info.
7823 * f-lang.c (f_language_arch_info): Delete function, move
7824 implementation to...
7825 (f_language::language_arch_info): ...here, a new member
7826 function.
7827 (f_language_data): Delete la_language_arch_info.
7828 * go-lang.c (go_language_arch_info): Delete function, move
7829 implementation to...
7830 (go_language::language_arch_info): ...here, a new member
7831 function.
7832 (go_language_data): Delete la_language_arch_info.
7833 * language.c (unknown_language_data): Likewise.
7834 (unknown_language::language_arch_info): New member function.
7835 (auto_language_data): Delete la_language_arch_info.
7836 (auto_language::language_arch_info): New member function.
7837 (language_gdbarch_post_init): Update call to
7838 la_language_arch_info.
7839 * language.h (language_data): Delete la_language_arch_info
7840 function pointer.
7841 (language_defn::language_arch_info): New function.
7842 * m2-lang.c (m2_language_arch_info): Delete function, move
7843 implementation to...
7844 (m2_language::language_arch_info): ...here, a new member
7845 function.
7846 (m2_language_data): Delete la_language_arch_info.
7847 * objc-lang.c (objc_language_arch_info): Delete function, move
7848 implementation to...
7849 (objc_language::language_arch_info): ...here, a new member
7850 function.
7851 (objc_language_data): Delete la_language_arch_info.
7852 * opencl-lang.c (opencl_language_arch_info): Delete function, move
7853 implementation to...
7854 (opencl_language::language_arch_info): ...here, a new member
7855 function.
7856 (opencl_language_data): Delete la_language_arch_info.
7857 * p-lang.c (pascal_language_arch_info): Delete function, move
7858 implementation to...
7859 (pascal_language::language_arch_info): ...here, a new member
7860 function.
7861 (pascal_language_data): Delete la_language_arch_info.
7862 * rust-lang.c (rust_language_arch_info): Delete function, move
7863 implementation to...
7864 (rust_language::language_arch_info): ...here, a new member
7865 function.
7866 (rust_language_data): Delete la_language_arch_info.
7867
48448202
AB
78682020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7869
7870 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
7871 initializer.
7872 * c-lang.c (c_language_data): Likewise.
7873 (cplus_language_data): Likewise.
7874 (cplus_language::pass_by_reference_info): New method.
7875 (asm_language_data): Delete la_pass_by_reference initializer.
7876 (minimal_language_data): Likewise.
7877 * cp-abi.c (cp_pass_by_reference): Remove use of
7878 default_pass_by_reference.
7879 * d-lang.c (d_language_data): Likewise.
7880 * f-lang.c (f_language_data): Likewise.
7881 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
7882 default_pass_by_reference.
7883 * go-lang.c (go_language_data): Likewise.
7884 * language.c (language_pass_by_reference): Update.
7885 (default_pass_by_reference): Delete.
7886 (unknown_language_data): Delete la_pass_by_reference
7887 initializer.
7888 (auto_language_data): Likewise.
7889 * language.h (struct language_data): Delete la_pass_by_reference
7890 field.
7891 (language_defn::pass_by_reference_info): New member function.
7892 (default_pass_by_reference): Delete declaration.
7893 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
7894 initializer.
7895 * objc-lang.c (objc_language_data): Likewise.
7896 * opencl-lang.c (opencl_language_data): Likewise.
7897 * p-lang.c (pascal_language_data): Likewise.
7898 * rust-lang.c (rust_language_data): Likewise.
7899
15e5fd35
AB
79002020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7901
7902 * ada-lang.c (ada_read_var_value): Delete function, move
7903 implementation to...
7904 (ada_language::read_var_value): ...here.
7905 (ada_language_data): Delete la_read_var_value initializer.
7906 * c-lang.c (c_language_data): Likewise.
7907 (cplus_language_data): Likewise.
7908 (minimal_language_data): Likewise.
7909 * d-lang.c (d_language_data): Likewise.
7910 * f-lang.c (f_language_data): Likewise.
7911 * findvar.c (default_read_var_value): Rename to...
7912 (language_defn::read_var_value): ...this.
7913 * findvar.c (read_var_value): Update header comment, and change to
7914 call member function instead of function pointer.
7915 * go-lang.c (go_language_data): Likewise.
7916 * language.c (unknown_language_data): Delete la_read_var_value
7917 initializer.
7918 (auto_language_data): Likewise.
7919 * language.h (struct language_data): Delete la_read_var_value
7920 field.
7921 (language_defn::read_var_value): New member function.
7922 (default_read_var_value): Delete declaration.
7923 * m2-lang.c (m2_language_data): Delete la_read_var_value
7924 initializer.
7925 * objc-lang.c (objc_language_data): Likewise.
7926 * opencl-lang.c (opencl_language_data): Likewise.
7927 * p-lang.c (pascal_language_data): Likewise.
7928 * rust-lang.c (rust_language_data): Likewise.
7929 * value.h (default_read_var_value): Delete declaration.
7930
5bd40f2a
AB
79312020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7932
7933 * ada-lang.c (ada_print_array_index): Delete function, move
7934 implementation to...
7935 (ada_language::print_array_index): ...here.
7936 (ada_language_data): Delete la_print_array_index initializer.
7937 * c-lang.c (c_language_data): Likewise.
7938 (cplus_language_data): Likewise.
7939 (minimal_language_data): Likewise.
7940 * d-lang.c (d_language_data): Likewise.
7941 * f-lang.c (f_language_data): Likewise.
7942 * go-lang.c (go_language_data): Likewise.
7943 * language.c (default_print_array_index): Delete function, move
7944 implementation to...
7945 (language_defn::print_array_index): ...here.
7946 (unknown_language_data): Delete la_print_array_index initializer.
7947 (auto_language_data): Likewise.
7948 * language.h (struct language_data): Delete la_print_array_index
7949 field.
7950 (language_defn::print_array_index): New member function.
7951 (LA_PRINT_ARRAY_INDEX): Update.
7952 (default_print_array_index): Delete declaration.
7953 * m2-lang.c (m2_language_data): Delete la_print_array_index
7954 initializer.
7955 * objc-lang.c (objc_language_data): Likewise.
7956 * opencl-lang.c (opencl_language_data): Likewise.
7957 * p-lang.c (pascal_language_data): Likewise.
7958 * rust-lang.c (rust_language_data): Likewise.
7959
0874fd07
AB
79602020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7961
7962 * gdb/ada-lang.c (ada_language_defn): Convert to...
7963 (ada_language_data): ...this.
7964 (class ada_language): New class.
7965 (ada_language_defn): New static global.
7966 * gdb/c-lang.c (c_language_defn): Convert to...
7967 (c_language_data): ...this.
7968 (class c_language): New class.
7969 (c_language_defn): New static global.
7970 (cplus_language_defn): Convert to...
7971 (cplus_language_data): ...this.
7972 (class cplus_language): New class.
7973 (cplus_language_defn): New static global.
7974 (asm_language_defn): Convert to...
7975 (asm_language_data): ...this.
7976 (class asm_language): New class.
7977 (asm_language_defn): New static global.
7978 (minimal_language_defn): Convert to...
7979 (minimal_language_data): ...this.
7980 (class minimal_language): New class.
7981 (minimal_language_defn): New static global.
7982 * gdb/d-lang.c (d_language_defn): Convert to...
7983 (d_language_data): ...this.
7984 (class d_language): New class.
7985 (d_language_defn): New static global.
7986 * gdb/f-lang.c (f_language_defn): Convert to...
7987 (f_language_data): ...this.
7988 (class f_language): New class.
7989 (f_language_defn): New static global.
7990 * gdb/go-lang.c (go_language_defn): Convert to...
7991 (go_language_data): ...this.
7992 (class go_language): New class.
7993 (go_language_defn): New static global.
7994 * gdb/language.c (unknown_language_defn): Remove declaration.
7995 (current_language): Initialize to nullptr, real initialization is
7996 moved to _initialize_language.
7997 (languages): Delete global.
7998 (language_defn::languages): Define.
7999 (set_language_command): Use language_defn::languages.
8000 (set_language): Likewise.
8001 (range_error): Likewise.
8002 (language_enum): Likewise.
8003 (language_def): Likewise.
8004 (add_set_language_command): Use language_def::languages for the
8005 language list, and language_def to lookup language pointers.
8006 (skip_language_trampoline): Use language_defn::languages.
8007 (unknown_language_defn): Convert to...
8008 (unknown_language_data): ...this.
8009 (class unknown_language): New class.
8010 (unknown_language_defn): New static global.
8011 (auto_language_defn): Convert to...
8012 (auto_language_data): ...this.
8013 (class auto_language): New class.
8014 (auto_language_defn): New static global.
8015 (language_gdbarch_post_init): Use language_defn::languages.
8016 (_initialize_language): Initialize current_language.
8017 * gdb/language.h (struct language_defn): Rename to...
8018 (struct language_data): ...this.
8019 (struct language_defn): New.
8020 (auto_language_defn): Delete.
8021 (unknown_language_defn): Delete.
8022 (minimal_language_defn): Delete.
8023 (ada_language_defn): Delete.
8024 (asm_language_defn): Delete.
8025 (c_language_defn): Delete.
8026 (cplus_language_defn): Delete.
8027 (d_language_defn): Delete.
8028 (f_language_defn): Delete.
8029 (go_language_defn): Delete.
8030 (m2_language_defn): Delete.
8031 (objc_language_defn): Delete.
8032 (opencl_language_defn): Delete.
8033 (pascal_language_defn): Delete.
8034 (rust_language_defn): Delete.
8035 * gdb/m2-lang.c (m2_language_defn): Convert to...
8036 (m2_language_data): ...this.
8037 (class m2_language): New class.
8038 (m2_language_defn): New static global.
8039 * gdb/objc-lang.c (objc_language_defn): Convert to...
8040 (objc_language_data): ...this.
8041 (class objc_language): New class.
8042 (objc_language_defn): New static global.
8043 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
8044 (opencl_language_data): ...this.
8045 (class opencl_language): New class.
8046 (opencl_language_defn): New static global.
8047 * gdb/p-lang.c (pascal_language_defn): Convert to...
8048 (pascal_language_data): ...this.
8049 (class pascal_language): New class.
8050 (pascal_language_defn): New static global.
8051 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
8052 language pointer, update comment format.
8053 * gdb/rust-lang.c (rust_language_defn): Convert to...
8054 (rust_language_data): ...this.
8055 (class rust_language): New class.
8056 (rust_language_defn): New static global.
8057
1313c56e
AB
80582020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
8059
8060 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
8061 member variable.
8062 <m_stmt_at_address>: New member variable.
8063 (lnp_state_machine::record_line): Don't record some lines, update
8064 tracking of is_stmt at the same address.
8065 (lnp_state_machine::lnp_state_machine): Initialise new member
8066 variables.
8067
b7ed9f3d
ST
80682020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
8069
8070 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
8071 "-include gnu-nat-mig.h".
8072 * gnu-nat-mig.h: New file.
8073 * gnu-nat.c: Include "gnu-nat-mig.h".
8074 (exc_server, msg_reply_server, notify_server,
8075 process_reply_server): Remove declarations.
8076
14a8ad62
ST
80772020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8078
8079 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
8080 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
8081 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
8082 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
8083 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
8084 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
8085 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
8086 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
8087 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
8088 to gnu_nat_target class.
8089 * gnu-nat.c: Likewise.
8090 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
8091 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
8092 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
8093 object.
8094 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
8095 instead of `gnu_target'.
8096
0af5e106
ST
80972020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8098
8099 * i386-gnu-tdep.c: Include "gdbcore.h"
8100 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
8101 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
8102 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
8103 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
8104 i386_gnu_sigcontext_addr): New functions
8105 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
8106 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
8107 tdep.
8108
078f2fc9
ST
81092020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8110
8111 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
8112 before fork_inferior call. Avoid calling it if target_is_pushed returns
8113 true.
8114
53dff92c
ST
81152020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8116
8117 * gnu-nat.h (gnu_target): New variable declaration.
8118 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
8119 gnu_target.
8120 * gnu-nat.c (gnu_target): New variable.
8121 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
8122 add_thread_silent, and add_thread calls.
8123 (gnu_nat_target::create_inferior): Pass gnu_target to
8124 add_thread_silent, thread_change_ptid call.
8125 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
8126 call.
8127
5a8b8627
ST
81282020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8129
8130 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
8131 (gnu_nat_target::find_memory_regions): Remove unused
8132 `old_address' variable.
8133
366f550a
ST
81342020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8135
8136 * gnu-nat.c: Include "gdbarch.h".
8137
f14871bf
ST
81382020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8139
8140 * reply_mig_hack.awk (Error return): Cast function through
8141 void *, to bypass compiler function call check.
8142
c6887cfb
ST
81432020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8144
8145 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
8146 $(srcdir)/reply_mig_hack.awk.
8147
6930bffe
ST
81482020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8149
8150 * gnu-nat.h (gnu_debug_flag): Set type to bool.
8151
112c22ed
JG
81522020-05-30 Jonny Grant <jg@jguk.org>
8153
8154 * configure.ac (ACX_BUGURL): change bug URL to https.
8155
f68f85b5
PA
81562020-05-30 Pedro Alves <palves@redhat.com>
8157
8158 * cp-support.c (replace_typedefs_template): New.
8159 (replace_typedefs_qualified_name): Handle
8160 DEMANGLE_COMPONENT_TEMPLATE.
8161
976ca316
SM
81622020-05-29 Simon Marchi <simon.marchi@efficios.com>
8163
8164 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
8165 dwarf2/index-cache.h, dwarf2/index-write.c,
8166 dwarf2/index-write.h, dwarf2/line-header.c,
8167 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
8168 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
8169 variables and fields from `dwarf2_per_objfile` to just
8170 `per_objfile` throughout.
8171
989ade05
SM
81722020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
8173
8174 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8175 <push_dwarf_reg_entry_value>: Add comment.
8176
c47bae85
KB
81772020-05-28 Kevin Buettner <kevinb@redhat.com>
8178 Keith Seitz <keiths@redhat.com>
8179
8180 * python/python.c (do_start_initialization): Call PyEval_SaveThread
8181 instead of PyEval_ReleaseLock.
8182 (class gdbpy_gil): Move to earlier in file.
8183 (finalize_python): Set gdb_python_initialized.
8184 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
8185 when not initialized.
8186
44486dcf
SM
81872020-05-28 Simon Marchi <simon.marchi@efficios.com>
8188
8189 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8190 <push_dwarf_reg_entry_value>: Remove assert. Override
8191 per_objfile with caller_per_objfile.
8192
f030440d
TV
81932020-05-28 Tom de Vries <tdevries@suse.de>
8194
8195 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
8196 PR gold/15646 workaround to symbol kind "type".
8197
f0fbb768
TT
81982020-05-27 Tom Tromey <tromey@adacore.com>
8199
8200 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
8201
af0b2a3e
TT
82022020-05-27 Tom Tromey <tromey@adacore.com>
8203
8204 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
8205 Use htab_find_with_hash.
8206 <add_abbrev>: Remove "abbrev_number" parameter.
8207 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
8208 "abbrev_number" parameter. Use htab_find_slot_with_hash.
8209 (hash_abbrev): Add comment.
8210 (abbrev_table::lookup_abbrev): Move to header file.
8211 (abbrev_table::read): Update.
8212
7d00ffec
TT
82132020-05-27 Tom Tromey <tromey@adacore.com>
8214
8215 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
8216 method.
8217 <canonical_name>: New member.
8218 <raw_name>: Rename from "name".
8219 (partial_die_info): Initialize canonical_name.
8220 (scan_partial_symbols): Check raw_name.
8221 (partial_die_parent_scope, partial_die_full_name)
8222 (add_partial_symbol, add_partial_subprogram)
8223 (add_partial_enumeration, load_partial_dies): Use "name" method.
8224 (partial_die_info::name): New method.
8225 (partial_die_info::read, guess_partial_die_structure_name)
8226 (partial_die_info::fixup): Update.
8227
697bba18
TT
82282020-05-27 Tom Tromey <tromey@adacore.com>
8229
8230 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
8231 <get_ref_die_offset>: Inline.
8232 <get_ref_die_offset_complaint>: New method.
8233 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
8234 (attribute::get_ref_die_offset_complaint): Rename from
8235 get_ref_die_offset. Just issue complaint.
8236
c17ace43
HD
82372020-05-27 Hannes Domani <ssbssa@yahoo.de>
8238
8239 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
8240
96445f0b
HD
82412020-05-27 Hannes Domani <ssbssa@yahoo.de>
8242
8243 * exec.c (exec_file_attach): Use errno value of first openp failure.
8244
ac637ec3
HD
82452020-05-27 Hannes Domani <ssbssa@yahoo.de>
8246
8247 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
8248 Don't close thread handle.
8249
17ee85fc
TT
82502020-05-27 Tom Tromey <tom@tromey.com>
8251 Simon Marchi <simon.marchi@efficios.com>
8252
8253 * objfiles.h (struct objfile) <partial_symtabs>: Now a
8254 shared_ptr.
8255 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
8256 member.
8257 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
8258 dwarf2_per_bfd_objfile_data_key>: New globals.
8259 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
8260 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
8261 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
8262 shared.
8263 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
8264 short-circuit when sharing.
8265 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
8266 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
8267
39b16f87
SM
82682020-05-27 Simon Marchi <simon.marchi@efficios.com>
8269
8270 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
8271 to...
8272 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
8273 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
8274
fcf23d5b
SM
82752020-05-27 Simon Marchi <simon.marchi@efficios.com>
8276
8277 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
8278 build_name_components, find_name_components_bounds>:
8279 Add per_objfile parameter.
8280 (struct mapped_index) <symbol_name_at>: Likewise.
8281 (struct mapped_debug_names): Remove constructor.
8282 <dwarf2_per_objfile>: Remove field.
8283 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
8284 (mapped_index_base::find_name_components_bounds,
8285 mapped_index_base::build_name_components,
8286 dw2_expand_symtabs_matching_symbol): Likewise.
8287 (class mock_mapped_index) <symbol_name_at>: Likewise.
8288 (check_match): Likewise.
8289 (check_find_bounds_finds): Likewise.
8290 (test_mapped_index_find_name_component_bounds): Update.
8291 (CHECK_MATCH): Update.
8292 (dw2_expand_symtabs_matching): Update.
8293 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
8294 per_objfile parameter.
8295 <find_vec_in_debug_names>: Likewise.
8296 <m_per_objfile>: New field.
8297 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
8298 parameter.
8299 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
8300 (dw2_debug_names_iterator::next): Update.
8301 (dw2_debug_names_lookup_symbol): Update.
8302 (dw2_debug_names_expand_symtabs_for_function): Update.
8303 (dw2_debug_names_map_matching_symbols): Update.
8304 (dw2_debug_names_expand_symtabs_matching): Update.
8305 (dwarf2_read_debug_names): Update.
8306
7188ed02
SM
83072020-05-27 Simon Marchi <simon.marchi@efficios.com>
8308
8309 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
8310 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
8311 move to dwarf2_per_objfile.
8312 <read_in_chain>: Remove.
8313 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
8314 remove_all_cus, age_comp_units>: New methods.
8315 <m_dwarf2_cus>: New member.
8316 (struct dwarf2_per_cu_data) <cu>: Remove.
8317 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
8318 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
8319 moved to methods of dwarf2_per_objfile.
8320 (dwarf2_clear_marks): Remove.
8321 (dwarf2_queue_item::~dwarf2_queue_item): Update.
8322 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
8323 (dwarf2_per_bfd::free_cached_comp_units): Remove.
8324 (dwarf2_per_objfile::remove_all_cus): New.
8325 (class free_cached_comp_units) <~free_cached_comp_units>:
8326 Update.
8327 (load_cu): Update.
8328 (dw2_do_instantiate_symtab): Adjust.
8329 (fill_in_sig_entry_from_dwo_entry): Adjust.
8330 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8331 (cutu_reader::cutu_reader): Likewise.
8332 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
8333 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
8334 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
8335 and dwarf2_per_objfile::age_comp_units.
8336 (load_partial_comp_unit): Update.
8337 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
8338 (process_queue): Likewise.
8339 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
8340 backlink.
8341 (dwarf2_read_addr_index): Likewise.
8342 (follow_die_offset): Likewise.
8343 (dwarf2_fetch_die_loc_sect_off): Likewise.
8344 (dwarf2_fetch_constant_bytes): Likewise.
8345 (dwarf2_fetch_die_type_sect_off): Likewise.
8346 (follow_die_sig_1): Likewise.
8347 (load_full_type_unit): Likewise.
8348 (read_signatured_type): Likewise.
8349 (dwarf2_cu::dwarf2_cu): Don't set cu field.
8350 (dwarf2_cu::~dwarf2_cu): Remove.
8351 (dwarf2_per_objfile::get_cu): New.
8352 (dwarf2_per_objfile::set_cu): New.
8353 (age_cached_comp_units): Rename to...
8354 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
8355 to std::unordered_map.
8356 (free_one_cached_comp_unit): Rename to...
8357 (dwarf2_per_objfile::remove_cu): ... this. Adjust
8358 to std::unordered_map.
8359 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
8360 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
8361 a dwarf2_per_objfile in data.
8362 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
8363 (dwarf2_clear_marks): Remove.
8364
2e671100
SM
83652020-05-27 Simon Marchi <simon.marchi@efficios.com>
8366
8367 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
8368 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
8369 (init_tu_and_read_dwo_dies): Likewise.
8370 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
8371 (cutu_reader::cutu_reader): Likewise.
8372 (load_partial_comp_unit): Likewise.
8373 (process_psymtab_comp_unit): Update.
8374 (build_type_psymtabs_1): Update.
8375 (process_skeletonless_type_unit): Update.
8376 (load_full_comp_unit): Update.
8377 (find_partial_die): Update.
8378 (dwarf2_read_addr_index): Update.
8379 (read_signatured_type): Update.
8380
2e6a9f79
SM
83812020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8382
8383 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
8384 m_header_read_in>: New fields.
8385 <get_header>: New method.
8386 * dwarf2/read.c (per_cu_header_read_in): Remove.
8387 (dwarf2_per_cu_data::get_header): New.
8388 (dwarf2_per_cu_data::addr_size): Update.
8389 (dwarf2_per_cu_data::offset_size): Update.
8390 (dwarf2_per_cu_data::ref_addr_size): Update.
8391
1b555f17
SM
83922020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8393
8394 * dwarf2/read.c (load_cu): Return dwarf2_cu.
8395 (dw2_do_instantiate_symtab): Update.
8396 (queue_and_load_all_dwo_tus): Change parameter from
8397 dwarf2_per_cu_data to dwarf2_cu.
8398 (dwarf2_fetch_die_loc_sect_off): Update.
8399 (dwarf2_fetch_constant_bytes): Update.
8400 (dwarf2_fetch_die_type_sect_off): Update.
8401
8fc0b21d
SM
84022020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8403
8404 * dwarf2/read.c (process_full_comp_unit,
8405 process_full_type_unit): Remove per_cu, per_objfile paramters.
8406 Add dwarf2_cu parameter.
8407 (process_queue): Update.
8408
168c9250
SM
84092020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8410
8411 * dwarf2/read.c (create_cu_from_index_list): Replace
8412 dwarf2_per_objfile parameter with dwarf2_per_bfd.
8413 (create_cus_from_index_list): Likewise.
8414 (create_cus_from_index): Likewise.
8415 (create_signatured_type_table_from_index): Likewise.
8416 (create_cus_from_debug_names_list): Likewise.
8417 (create_cus_from_debug_names): Likewise.
8418 (dwarf2_read_gdb_index): Update.
8419 (dwarf2_read_debug_names): Update.
8420
e286671b
TT
84212020-05-27 Tom Tromey <tom@tromey.com>
8422 Simon Marchi <simon.marchi@efficios.com>
8423
8424 * dwarf2/read.h (struct dwarf2_per_objfile)
8425 <get_type_for_signatured_type, set_type_for_signatured_type>:
8426 New methods.
8427 <m_type_map>: New member.
8428 (struct signatured_type) <type>: Remove.
8429 * dwarf2/read.c
8430 (dwarf2_per_objfile::get_type_for_signatured_type,
8431 dwarf2_per_objfile::set_type_for_signatured_type): New.
8432 (get_signatured_type): Use new methods.
8433
8adb8487
TT
84342020-05-27 Tom Tromey <tom@tromey.com>
8435 Simon Marchi <simon.marchi@efficios.com>
8436
8437 * dwarf2/read.h (struct type_unit_group_unshareable): New.
8438 (struct dwarf2_per_objfile) <type_units>: New member.
8439 <get_type_unit_group_unshareable>: New method.
8440 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
8441 num_symtabs, symtabs>: Remove; move to
8442 type_unit_group_unshareable.
8443 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
8444 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
8445 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
8446
127bbf4b
SM
84472020-05-27 Simon Marchi <simon.marchi@efficios.com>
8448
8449 * dwarf2/read.h (struct dwarf2_per_cu_data):
8450 <dwarf2_per_objfile>: Remove.
8451 * dwarf2/read.c (create_cu_from_index_list): Don't assign
8452 dwarf2_per_objfile.
8453 (create_signatured_type_table_from_index): Likewise.
8454 (create_signatured_type_table_from_debug_names): Likewise.
8455 (create_debug_type_hash_table): Likewise.
8456 (fill_in_sig_entry_from_dwo_entry): Likewise.
8457 (create_type_unit_group): Likewise.
8458 (read_comp_units_from_section): Likewise.
8459 (create_cus_hash_table): Likewise.
8460
f6e649dd
SM
84612020-05-27 Simon Marchi <simon.marchi@efficios.com>
8462
8463 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
8464 dwarf2_per_cu_data::dwarf2_per_objfile.
8465 (compute_compunit_symtab_includes): Likewise.
8466 (dwarf2_cu::start_symtab): Likewise.
8467
aa66c379
SM
84682020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8469
8470 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
8471 parameter.
8472 * dwarf2/read.c (get_die_type_at_offset): Likewise.
8473 (read_namespace_alias): Update.
8474 (lookup_die_type): Update.
8475 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
8476 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
8477 Update.
8478 (disassemble_dwarf_expression): Update.
8479
120ce1b5
SM
84802020-05-27 Simon Marchi <simon.marchi@efficios.com>
8481
8482 * dwarf2/read.h (struct dwarf2_queue_item): Add
8483 dwarf2_per_objfile parameter, assign new parameter.
8484 <per_objfile>: New field.
8485 * dwarf2/read.c (free_one_cached_comp_unit): Add
8486 dwarf2_per_objfile parameter.
8487 (queue_comp_unit): Likewise.
8488 (dw2_do_instantiate_symtab): Update.
8489 (process_psymtab_comp_unit): Update.
8490 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
8491 (process_imported_unit_die): Update.
8492 (queue_and_load_dwo_tu): Update.
8493 (follow_die_offset): Update.
8494 (follow_die_sig_1): Update.
8495
9f47c707
SM
84962020-05-27 Simon Marchi <simon.marchi@efficios.com>
8497
8498 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
8499 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
8500 (read_call_site_scope): Assign per_objfile.
8501 (dwarf2_per_cu_data::objfile): Remove.
8502 * gdbtypes.h (struct call_site) <per_objfile>: New member.
8503 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
8504 dwarf2_per_objfile parameter.
8505 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
8506 dwarf2_per_objfile parameter.
8507 (dwarf_expr_reg_to_entry_parameter): Add output
8508 dwarf2_per_objfile parameter.
8509 (locexpr_get_frame_base): Update.
8510 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
8511 <push_dwarf_reg_entry_value>: Update.
8512 <call_site_to_target_addr>: Update.
8513 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
8514 parameter.
8515 (value_of_dwarf_reg_entry): Update.
8516 (rw_pieced_value): Update.
8517 (indirect_synthetic_pointer): Update.
8518 (dwarf2_evaluate_property): Update.
8519 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
8520 parameter.
8521 (locexpr_read_variable): Update.
8522 (locexpr_get_symbol_read_needs): Update.
8523 (loclist_read_variable): Update.
8524
14095eb3
SM
85252020-05-27 Simon Marchi <simon.marchi@efficios.com>
8526
8527 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8528 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8529 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
8530 parameter.
8531 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8532 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8533 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
8534 parameter.
8535 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
8536 sect_variable_value): Add dwarf2_per_objfile parameter.
8537 (class dwarf_evaluate_loc_desc) <dwarf_call,
8538 dwarf_variable_value>: Update.
8539 (fetch_const_value_from_synthetic_pointer): Add
8540 dwarf2_per_objfile parameter.
8541 (fetch_const_value_from_synthetic_pointer): Update.
8542 (coerced_pieced_ref): Update.
8543 (class symbol_needs_eval_context) <dwarf_call,
8544 dwarf_variable_value>: Update.
8545 (dwarf2_compile_expr_to_ax): Update.
8546
3c3cd3d4
SM
85472020-05-27 Simon Marchi <simon.marchi@efficios.com>
8548
8549 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
8550 parameter.
8551 (dwarf2_evaluate_loc_desc_full): Update.
8552
82ca3f51
SM
85532020-05-27 Simon Marchi <simon.marchi@efficios.com>
8554
8555 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
8556 parameter.
8557 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
8558 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
8559 dwarf2_per_objfile parameter.
8560 (decode_debug_loc_dwo_addresses): Likewise.
8561 (dwarf2_find_location_expression): Update.
8562 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
8563 (locexpr_describe_location_piece): Add dwarf2_per_objfile
8564 parameter.
8565 (disassemble_dwarf_expression): Add dwarf2_per_objfile
8566 parameter.
8567 (locexpr_describe_location_1): Likewise.
8568 (locexpr_describe_location): Update.
8569
4b167ea1
SM
85702020-05-27 Simon Marchi <simon.marchi@efficios.com>
8571
8572 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
8573 Remove.
8574 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
8575 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
8576 (dwarf2_compile_property_to_c): Update.
8577 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
8578 use text offset from objfile.
8579 (locexpr_tracepoint_var_ref): Update.
8580 (locexpr_generate_c_location): Update.
8581 (loclist_describe_location): Update.
8582 (loclist_tracepoint_var_ref): Update.
8583 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
8584 dwarf2_per_objfile parameter.
8585 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
8586 use text offset from objfile.
8587 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
8588
89b07335
SM
85892020-05-27 Simon Marchi <simon.marchi@efficios.com>
8590
8591 * dwarf2/expr.h (struct dwarf_expr_context)
8592 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
8593 <offset>: Remove.
8594 <per_objfile>: New member.
8595 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
8596 dwarf2_per_objfile parameter. Don't set offset, set
8597 per_objfile.
8598 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
8599 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
8600 a dwarf2_per_objfile object instead of an offset.
8601 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
8602 constructor.
8603 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
8604 to dwarf2_expr_executor constructor. Don't set offset.
8605 (dwarf2_fetch_cfa_info): Update.
8606 (struct dwarf2_frame_cache) <text_offset>: Remove.
8607 <per_objfile>: New field.
8608 (dwarf2_frame_cache): Update.
8609 (dwarf2_frame_prev_register): Update.
8610 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8611 <dwarf_evaluate_loc_desc>: Add constructor.
8612 (dwarf2_evaluate_loc_desc_full): Update.
8613 (dwarf2_locexpr_baton_eval): Update.
8614 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
8615 Add constructor.
8616 (dwarf2_loc_desc_get_symbol_read_needs): Update.
8617
293e7e51
SM
86182020-05-27 Simon Marchi <simon.marchi@efficios.com>
8619
8620 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
8621 addr_sized_int_type>: Move to dwarf2_cu.
8622 <int_type>: Move to dwarf2_per_objfile.
8623 (struct dwarf2_per_objfile) <int_type>: Move here.
8624 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
8625 addr_sized_int_type>: Move here.
8626 (read_func_scope): Update.
8627 (read_array_type): Update.
8628 (read_tag_string_type): Update.
8629 (attr_to_dynamic_prop): Update.
8630 (dwarf2_per_cu_data::int_type): Rename to...
8631 (dwarf2_per_objfile::int_type): ... this.
8632 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
8633 (dwarf2_cu::addr_sized_int_type): ... this.
8634 (read_subrange_type): Update.
8635 (dwarf2_per_cu_data::addr_type): Rename to...
8636 (dwarf2_cu::addr_type): ... this.
8637 (set_die_type): Update.
8638
64874a40
SM
86392020-05-27 Simon Marchi <simon.marchi@efficios.com>
8640
8641 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
8642 data through per_cu->cu.
8643
4ab09049
SM
86442020-05-27 Simon Marchi <simon.marchi@efficios.com>
8645
8646 * dwarf2/read.c (lookup_dwo_comp_unit): Change
8647 dwarf2_per_cu_data parameter fo dwarf2_cu.
8648 (lookup_dwo_type_unit): Likewise.
8649 (read_cutu_die_from_dwo): Likewise.
8650 (lookup_dwo_unit): Likewise.
8651 (open_and_init_dwo_file): Likewise.
8652 (lookup_dwo_cutu): Likewise.
8653 (lookup_dwo_comp_unit): Likewise.
8654 (lookup_dwo_type_unit): Likewise.
8655 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8656 (cutu_reader::cutu_reader): Update.
8657
47b14e86
SM
86582020-05-27 Simon Marchi <simon.marchi@efficios.com>
8659
8660 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
8661 parameter.
8662 (process_full_type_unit): Likewise.
8663 (process_queue): Update.
8664
43182c09
SM
86652020-05-27 Simon Marchi <simon.marchi@efficios.com>
8666
8667 * dwarf2/read.c (recursively_compute_inclusions): Add
8668 dwarf2_per_objfile parameter.
8669 (compute_compunit_symtab_includes): Likewise.
8670 (process_cu_includes): Update.
8671
7aa104c4
SM
86722020-05-27 Simon Marchi <simon.marchi@efficios.com>
8673
8674 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
8675 parameter.
8676 (create_type_unit_group): Update.
8677 (process_psymtab_comp_unit_reader): Update.
8678 (build_type_psymtabs_reader): Update.
8679
e3beb21d
SM
86802020-05-27 Simon Marchi <simon.marchi@efficios.com>
8681
8682 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
8683 object through m_this_cu->cu.
8684
d460f660
SM
86852020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8686
8687 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
8688 the info parameter.
8689 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
8690
ab432490
SM
86912020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8692
8693 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
8694 per_objfile parameter.
8695 (load_full_type_unit): Add per_objfile parameter.
8696 (read_signatured_type): Likewise.
8697 (load_full_comp_unit): Likewise.
8698 (load_cu): Likewise.
8699 (dw2_do_instantiate_symtab): Likewise.
8700 (dw2_get_file_names): Likewise.
8701 (dw2_map_symtabs_matching_filename): Update.
8702 (dw_expand_symtabs_matching_file_matcher): Update.
8703 (dw2_map_symbol_filenames): Update.
8704 (process_psymtab_comp_unit): Add per_objfile parameter.
8705 (build_type_psymtabs_1): Update.
8706 (process_skeletonless_type_unit): Update.
8707 (dwarf2_build_psymtabs_hard): Update.
8708 (load_partial_comp_unit): Add per_objfile parameter.
8709 (scan_partial_symbols): Update.
8710 (load_full_comp_unit): Add per_objfile parameter.
8711 (process_imported_unit_die): Update.
8712 (create_cus_hash_table): Update.
8713 (find_partial_die): Update.
8714 (dwarf2_read_addr_index): Update.
8715 (follow_die_offset): Update.
8716 (dwarf2_fetch_die_loc_sect_off): Update.
8717 (dwarf2_fetch_constant_bytes): Update.
8718 (dwarf2_fetch_die_type_sect_off): Update.
8719 (follow_die_sig_1): Update.
8720 (load_full_type_unit): Add per_objfile parameter.
8721 (read_signatured_type): Likewise.
8722
313bad1b
SM
87232020-05-27 Simon Marchi <simon.marchi@efficios.com>
8724
8725 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
8726 of objfile_name.
8727
c3699833
SM
87282020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8729
8730 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
8731 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
8732 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
8733 field.
8734 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
8735 (create_cus_from_index): Update.
8736 (dwarf2_read_gdb_index): Update.
8737 (create_cus_from_debug_names): Update.
8738 (dwarf2_read_debug_names): Update.
8739 (get_abbrev_section_for_cu): Update.
8740 (create_all_comp_units): Update.
8741 (read_attribute_value): Update.
8742 (get_debug_line_section): Update.
8743 * dwarf2/index-cache.c (index_cache::store): Update.
8744 * dwarf2/index-write.c (save_gdb_index_command): Update.
8745 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
8746
1859c670
SM
87472020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8748
8749 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
8750 member.
8751 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
8752 dwarf2_per_cu_data::per_bfd.
8753 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
8754 (create_type_unit_group): Likewise.
8755 (queue_comp_unit): Remove reference to
8756 per_cu->dwarf2_per_objfile.
8757 (maybe_queue_comp_unit): Likewise.
8758 (fill_in_sig_entry_from_dwo_entry): Assign new field.
8759 (create_cus_hash_table): Assign new field.
8760
5e22e966
SM
87612020-05-27 Simon Marchi <simon.marchi@efficios.com>
8762
8763 * dwarf2/read.c: Replace
8764 dwarf2_cu->per_cu->dwarf2_per_objfile references with
8765 dwarf2_cu->per_objfile throughout.
8766
97a1449a
SM
87672020-05-27 Simon Marchi <simon.marchi@efficios.com>
8768
8769 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
8770 parameter, don't use per_cu->dwarf2_per_objfile.
8771 (dw2_instantiate_symtab): Likewise.
8772 (dw2_find_last_source_symtab): Update.
8773 (dw2_map_expand_apply): Update.
8774 (dw2_lookup_symbol): Update.
8775 (dw2_expand_symtabs_for_function): Update.
8776 (dw2_expand_all_symtabs): Update.
8777 (dw2_expand_symtabs_with_fullname): Update.
8778 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
8779 don't use per_cu->dwarf2_per_objfile.
8780 (dw2_expand_marked_cus): Update.
8781 (dw2_find_pc_sect_compunit_symtab): Update.
8782 (dw2_debug_names_lookup_symbol): Update.
8783 (dw2_debug_names_expand_symtabs_for_function): Update.
8784 (dw2_debug_names_map_matching_symbols): Update.
8785 (dwarf2_psymtab::expand_psymtab): Update.
8786
9e021579
SM
87872020-05-27 Simon Marchi <simon.marchi@efficios.com>
8788
8789 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
8790 <per_objfile>: New member.
8791 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
8792 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
8793 call to dwarf2_cu.
8794 (cutu_reader::cutu_reader): Update.
8795 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
8796
ae090bdb
SM
87972020-05-27 Simon Marchi <simon.marchi@efficios.com>
8798
8799 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
8800 struct dwarf2_per_objfile.
8801 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
8802 dwarf2_per_bfd.
8803 * dwarf2/read.c (set_die_type): Update.
8804 (get_die_type_at_offset): Update.
8805
af758d11
SM
88062020-05-27 Tom Tromey <tom@tromey.com>
8807 Simon Marchi <simon.marchi@efficios.com>
8808
8809 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
8810 method.
8811 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
8812 get_symtab, set_symtab>: New methods.
8813 <m_symtabs>: New field.
8814 (struct dwarf2_psymtab): Derive from partial_symtab.
8815 <readin_p, get_compunit_symtab>: Declare methods.
8816 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
8817 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
8818 New methods.
8819 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
8820 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
8821 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
8822 (dw2_symtab_iter_next, dw2_print_stats)
8823 (dw2_expand_symtabs_with_fullname)
8824 (dw2_expand_symtabs_matching_one)
8825 (dw_expand_symtabs_matching_file_matcher)
8826 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
8827 (dw2_debug_names_iterator::next)
8828 (dw2_debug_names_map_matching_symbols)
8829 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
8830 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
8831 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
8832 New methods.
8833 (get_compunit_symtab, process_full_comp_unit)
8834 (process_full_type_unit): Update.
8835 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
8836
5989a64e
SM
88372020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8838
8839 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
8840 then introduce a new dwarf2_per_objfile type.
8841 <read_line_string>: Move to the new dwarf2_per_objfile type.
8842 <objfile>: Likewise.
8843 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
8844 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
8845 dwarf2_per_objfile->per_bfd.
8846 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
8847 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
8848 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
8849 (dwarf2_per_bfd::free_cached_comp_units): ... this.
8850 (dwarf2_has_info): Allocate dwarf2_per_bfd.
8851 (dwarf2_per_objfile::locate_sections): Rename to...
8852 (dwarf2_per_bfd::locate_sections): ... this.
8853 (dwarf2_per_objfile::get_cutu): Rename to...
8854 (dwarf2_per_bfd::get_cutu): ... this.
8855 (dwarf2_per_objfile::get_cu): Rename to...
8856 (dwarf2_per_bfd::get_cu): ... this.
8857 (dwarf2_per_objfile::get_tu): Rename to...
8858 (dwarf2_per_bfd::get_tu): ... this.
8859 (dwarf2_per_objfile::allocate_per_cu): Rename to...
8860 (dwarf2_per_bfd::allocate_per_cu): ... this.
8861 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
8862 (dwarf2_per_bfd::allocate_signatured_type): ... this.
8863 (get_gdb_index_contents_ftype): Change parameter from
8864 dwarf2_per_objfile to dwarf2_per_bfd.
8865 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
8866 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
8867
a50264ba
TT
88682020-05-27 Tom Tromey <tom@tromey.com>
8869 Simon Marchi <simon.marchi@efficios.com>
8870
8871 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
8872 (allocate_piece_closure): Set "per_objfile" member.
8873 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
8874 (locexpr_describe_location, loclist_describe_location): Use new
8875 member.
8876 * dwarf2/read.c (read_call_site_scope)
8877 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
8878 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
8879 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
8880 handle_data_member_location): Set per_objfile member.
8881 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
8882 member.
8883 (struct dwarf2_loclist_baton) <per_objfile>: New member.
8884
d3473f0c
TT
88852020-05-27 Tom Tromey <tom@tromey.com>
8886
8887 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
8888 allocate_signatured_type>: Declare new methods.
8889 <m_num_psymtabs>: New member.
8890 (struct dwarf2_per_cu_data) <index>: New member.
8891 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
8892 (dwarf2_per_objfile::allocate_signatured_type): New methods.
8893 (create_cu_from_index_list): Use allocate_per_cu.
8894 (create_signatured_type_table_from_index)
8895 (create_signatured_type_table_from_debug_names)
8896 (create_debug_type_hash_table, add_type_unit)
8897 (read_comp_units_from_section): Use allocate_signatured_type.
8898
5717c425
TT
88992020-05-27 Tom Tromey <tom@tromey.com>
8900
8901 * psymtab.c (partial_map_expand_apply)
8902 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
8903 (psym_lookup_global_symbol_language)
8904 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
8905 (psym_print_stats, psym_expand_symtabs_for_function)
8906 (psym_map_symbol_filenames, psym_map_matching_symbols)
8907 (psym_expand_symtabs_matching)
8908 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
8909 (maintenance_check_psymtabs): Update.
8910 * psympriv.h (struct partial_symtab) <readin_p,
8911 get_compunit_symtab>: Add objfile parameter.
8912 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
8913 Likewise.
8914 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
8915 get_compunit_symtab>: Likewise.
8916 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
8917
45940949
TT
89182020-05-27 Tom Tromey <tom@tromey.com>
8919
8920 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
8921 member.
8922 * dwarf2/read.c (delete_file_name_entry): Fix comment.
8923 (create_cu_from_index_list)
8924 (create_signatured_type_table_from_index)
8925 (create_signatured_type_table_from_debug_names)
8926 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
8927 (dwarf2_create_include_psymtab)
8928 (create_debug_type_hash_table, add_type_unit)
8929 (create_type_unit_group, read_comp_units_from_section)
8930 (dwarf2_compute_name, create_cus_hash_table)
8931 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
8932 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
8933 obstack.
8934 (dw2_get_real_path): Likewise. Change argument to
8935 dwarf2_per_objfile.
8936
f8c6d152
LM
89372020-05-27 Luis Machado <luis.machado@linaro.org>
8938
8939 PR tdep/26000
8940 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
8941 for ldrd (immediate).
8942
e98d2e6d
PW
89432020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8944
8945 * command.h: Add comment giving the name of class_tui.
8946 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
8947 create the fake command for the help for class_tui.
8948
53a47a3e
TT
89492020-05-26 Tom Tromey <tromey@adacore.com>
8950
8951 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
8952 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
8953 (val_atr): New function.
8954 (value_val_atr): Use it.
8955 * ada-valprint.c (print_optional_low_bound): Change low bound
8956 handling for enums.
8957 (val_print_packed_array_elements): Don't call discrete_position.
8958 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
8959 discrete_position for enum types.
8960 * language.c (default_print_array_index): Change type.
8961 * language.h (struct language_defn) <la_print_array_index>: Add
8962 index_type parameter, change type of index_value.
8963 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
8964 (default_print_array_index): Update.
8965 * valprint.c (maybe_print_array_index): Don't call
8966 value_from_longest. Update.
8967 (value_print_array_elements): Don't call discrete_position.
8968
0bc2354b
TT
89692020-05-26 Tom Tromey <tromey@adacore.com>
8970
8971 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
8972 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
8973
1218a4bf
CDA
89742020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
8975
8976 PR gdb/13519
8977 * avr-tdep.c (avr_integer_to_address): Return data or code
8978 address accordingly to the second 'type' argument of the
8979 function.
8980
92651b1d
MW
89812020-05-25 Michael Weghorn <m.weghorn@posteo.de>
8982
8983 * infcmd.c, inferior.h: (construct_inferior_arguments):
8984 Moved function from here to gdbsupport/common-inferior.{h,cc}
8985
0a4f5f8c
TT
89862020-05-23 Tom Tromey <tom@tromey.com>
8987
8988 Revert commit eca1f90c:
8989 * NEWS: Remove entry for completion styling.
8990 * completer.c (_rl_completion_prefix_display_length): Move
8991 declaration later.
8992 (gdb_fnprint): Revert.
8993 (gdb_display_match_list_1): Likewise.
8994 * cli/cli-style.c (completion_prefix_style)
8995 (completion_difference_style, completion_suffix_style): Remove.
8996 (_initialize_cli_style): Revert.
8997 * cli/cli-style.h (completion_prefix_style)
8998 (completion_difference_style, completion_suffix_style): Don't
8999 declare.
9000
e08bd6c5
PA
90012020-05-24 Pedro Alves <palves@redhat.com>
9002
9003 * symtab.c (completion_list_add_name): Return boolean indication
9004 of whether the symbol matched.
9005 (completion_list_add_symbol): Don't try to remove C++ aliases if
9006 the symbol didn't match in the first place.
9007 * symtab.h (completion_list_add_name): Return bool.
9008
ceacbf6e
SM
90092020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
9010
9011 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
9012 type::field.
9013
26f16254
JB
90142020-05-23 Joel Brobecker <brobecker@adacore.com>
9015
9016 GDB 9.2 released.
9017
eca1f90c
TT
90182020-05-23 Tom Tromey <tom@tromey.com>
9019
9020 * NEWS: Add entry for completion styling.
9021 * completer.c (_rl_completion_prefix_display_length): Move
9022 declaration earlier.
9023 (gdb_fnprint): Use completion_style.
9024 (gdb_display_match_list_1): Likewise.
9025 * cli/cli-style.c (completion_prefix_style)
9026 (completion_difference_style, completion_suffix_style): New
9027 globals.
9028 (_initialize_cli_style): Register new globals.
9029 * cli/cli-style.h (completion_prefix_style)
9030 (completion_difference_style, completion_suffix_style): Declare.
9031
51e2cfa2
PA
90322020-05-23 Pedro Alves <palves@redhat.com>
9033
9034 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
9035 (parse_escape): Use ISDIGIT instead of isdigit.
9036 (puts_debug): Use gdb_isprint instead of isprint.
9037 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
9038 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
9039 ISSPACE instead of isspace.
9040 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
9041 instead of isspace.
9042 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
9043 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
9044 instead of isxdigit and ISDIGIT instead of isdigit.
9045
80fc5e77
SM
90462020-05-22 Simon Marchi <simon.marchi@efficios.com>
9047
9048 * gdbtypes.h (struct type) <field>: New method.
9049 (TYPE_FIELDS): Remove, replace all uses with either type::fields
9050 or type::field.
9051
3cabb6b0
SM
90522020-05-22 Simon Marchi <simon.marchi@efficios.com>
9053
9054 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
9055 (TYPE_FIELDS): Use type::fields. Change all call sites that
9056 modify the propery to use type::set_fields instead.
9057
1f704f76
SM
90582020-05-22 Simon Marchi <simon.marchi@efficios.com>
9059
9060 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
9061 type::num_fields instead.
9062
5e33d5f4
SM
90632020-05-22 Simon Marchi <simon.marchi@efficios.com>
9064
9065 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
9066 methods.
9067 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
9068 that modify the number of fields to use type::set_num_fields
9069 instead.
9070
9392ebb3
TT
90712020-05-22 Tom Tromey <tromey@adacore.com>
9072
9073 * compile/compile-object-load.h (munmap_list_free): Don't
9074 declare.
9075
7c13f4e8
AB
90762020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
9077
9078 * annotate.c (annotate_source_line): Update return type, add call
9079 to update current symtab and line.
9080 * annotate.h (annotate_source_line): Update return type, and
9081 extend header comment.
9082 * source.c (info_line_command): Check annotation_level before
9083 calling annotate_source_line.
9084 * stack.c (print_frame_info): If calling annotate_source_line
9085 returns true, then don't print any other source line information.
9086
aa370940
SM
90872020-05-21 Simon Marchi <simon.marchi@efficios.com>
9088
9089 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
9090
84d53fa9
SM
90912020-05-21 Simon Marchi <simon.marchi@efficios.com>
9092
9093 * coffread.c (patch_type): Remove NULL check before xfree.
9094 * corefile.c (set_gnutarget): Likewise.
9095 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
9096 * exec.c (build_section_table): Likewise.
9097 * remote.c (remote_target::pass_signals): Likewise.
9098 * utils.c (n_spaces): Likewise.
9099 * cli/cli-script.c (document_command): Likewise.
9100 * i386-windows-tdep.c (core_process_module_section): Likewise.
9101 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
9102
9d428aae
SM
91032020-05-20 Simon Marchi <simon.marchi@efficios.com>
9104
9105 * symfile.c (reread_symbols): Clear objfile's section_offsets
9106 vector and section indices, re-compute them by calling
9107 sym_offsets.
9108
250106a7
TT
91092020-05-20 Tom Tromey <tromey@adacore.com>
9110
9111 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 9112 (desc_one_bound, desc_index_type): Compute field name.
250106a7 9113
9a0bacfb
TV
91142020-05-20 Tom de Vries <tdevries@suse.de>
9115
9116 PR symtab/25833
9117 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
9118
7b958a48
AM
91192020-05-20 Alan Modra <amodra@gmail.com>
9120
9121 PR 25993
9122 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
9123 bfd_set_filename.
9124 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
9125 passed to bfd_set_filename.
9126 * symfile-mem.c (add_vsyscall_page): Likewise for string
9127 passed to symbol_file_add_from_memory.
9128 (symbol_file_add_from_memory): Make name param a const char* and
9129 don't strdup.
9130
c7e97679
AM
91312020-05-20 Alan Modra <amodra@gmail.com>
9132
9133 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
9134 rather than accessing bfd->filename directly.
9135 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
9136 and use bfd_section_name.
9137 * dwarf2/frame.c (decode_frame_entry): Likewise.
9138 * exec.c (exec_set_section_address): Likewise.
9139 * solib-aix.c (solib_aix_bfd_open): Likewise.
9140 * stap-probe.c (get_stap_base_address): Likewise.
9141 * symfile.c (reread_symbols): Likewise.
9142
563c591b
TT
91432020-05-19 Tom Tromey <tromey@adacore.com>
9144
9145 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
9146
f408d82c
SM
91472020-05-19 Simon Marchi <simon.marchi@efficios.com>
9148
9149 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
9150
98c59b52
PA
91512020-05-19 Pedro Alves <palves@redhat.com>
9152
9153 * NEWS (set exec-file-mismatch): Adjust entry.
9154 * exec.c: Include "build-id.h".
9155 (validate_exec_file): Try to match build IDs instead of filenames.
9156 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
9157 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
9158 and pass down 'warn_if_slow'.
9159 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
9160 gdb_bfd_open_closure to pass it down.
9161 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
9162
4111f652
PA
91632020-05-19 Pedro Alves <palves@redhat.com>
9164
9165 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
9166 * target.c (target_fileio_open_1): Rename to target_fileio_open
9167 and make extern. Use bool.
9168 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
9169 (target_fileio_read_alloc_1): Adjust.
9170 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
9171 (target_fileio_open_warn_if_slow): Delete declaration.
9172
ad80db5b
PA
91732020-05-19 Pedro Alves <palves@redhat.com>
9174
9175 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
9176 Adjust all callers.
9177
1d6ce4d3
YS
91782020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
9179
9180 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
9181 whether disp is negative.
9182
9005fbbb
SM
91832020-05-19 Simon Marchi <simon.marchi@efficios.com>
9184
9185 * symfile.h (struct symfile_segment_data)
9186 <~symfile_segment_data>: Remove.
9187 <segment_info>: Change to std::vector.
9188 * symfile.c (default_symfile_segments): Update.
9189 * elfread.c (elf_symfile_segments): Update.
9190
68b888ff
SM
91912020-05-19 Simon Marchi <simon.marchi@efficios.com>
9192
9193 * symfile.h (struct symfile_segment_data) <struct segment>: New.
9194 <segments>: New.
9195 <segment_bases, segment_sizes>: Remove.
9196 * symfile.c (default_symfile_segments): Update.
9197 * elfread.c (elf_symfile_segments): Update.
9198 * remote.c (remote_target::get_offsets): Update.
9199 * solib-target.c (solib_target_relocate_section_addresses):
9200 Update.
9201
62982abd
SM
92022020-05-19 Simon Marchi <simon.marchi@efficios.com>
9203
9204 * symfile.h (struct symfile_segment_data): Initialize fields.
9205 <~symfile_segment_data>: Add.
9206 (symfile_segment_data_up): New.
9207 (struct sym_fns) <sym_segments>: Return a
9208 symfile_segment_data_up.
9209 (default_symfile_segments): Return a symfile_segment_data_up.
9210 (free_symfile_segment_data): Remove.
9211 (get_symfile_segment_data): Return a symfile_segment_data_up.
9212 * symfile.c (default_symfile_segments): Likewise.
9213 (get_symfile_segment_data): Likewise.
9214 (free_symfile_segment_data): Remove.
9215 (symfile_find_segment_sections): Update.
9216 * elfread.c (elf_symfile_segments): Return a
9217 symfile_segment_data_up.
9218 * remote.c (remote_target::get_offsets): Update.
9219 * solib-target.c (solib_target_relocate_section_addresses):
9220 Update.
9221 * symfile-debug.c (debug_sym_segments): Return a
9222 symfile_segment_data_up.
9223
7f204339
RO
92242020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9225
e52a0f1b
RO
9226 PR build/25981
9227 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
9228 Hardcode register numbers.
9229
7f204339
RO
9230 PR build/25981
9231 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
9232 procfs_find_LDT_entry): Remove.
9233 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
9234 procfs_find_LDT_entry): Remove.
9235 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
9236 Remove.
9237
7f32a4d5
PA
92382020-05-17 Pedro Alves <palves@redhat.com>
9239 Andrew Burgess <andrew.burgess@embecosm.com>
9240 Keno Fischer <keno@juliacomputing.com>
9241
9242 PR gdb/25741
9243 * breakpoint.c (build_target_condition_list): Update comments.
9244 (build_target_command_list): Update comments and skip matching
9245 locations.
9246 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
9247 a separate function. Simplify "set breakpoint auto-hw off"
9248 handling.
9249 (insert_breakpoints): Update comment.
9250 (tracepoint_locations_match): New parameter. For breakpoints,
9251 compare location types too, if the caller wants to.
9252 (handle_automatic_hardware_breakpoints): New functions.
9253 (bp_location_is_less_than): Also sort by location type and
9254 hardware breakpoint length.
9255 (update_global_location_list): Handle "set breakpoint auto-hw on"
9256 here.
9257 (update_breakpoint_locations): Ask breakpoint_locations_match to
9258 ignore location types.
9259
7d93a1e0
SM
92602020-05-16 Simon Marchi <simon.marchi@efficios.com>
9261
9262 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
9263 type::name instead.
9264
d0e39ea2
SM
92652020-05-16 Simon Marchi <simon.marchi@efficios.com>
9266
9267 * gdbtypes.h (struct type) <name, set_name>: New methods.
9268 (TYPE_CODE): Use type::name. Change all call sites used to set
9269 the name to use type::set_name instead.
9270
2dab0c7b
TT
92712020-05-16 Tom Tromey <tom@tromey.com>
9272
9273 * top.c (quit_force): Update.
9274 * infrun.c (handle_no_resumed): Update.
9275 * top.h (all_uis): New function.
9276 (ALL_UIS): Remove.
9277
59f7bd8d
SM
92782020-05-16 Simon Marchi <simon.marchi@efficios.com>
9279
9280 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
9281
9bf058f0
PA
92822020-05-16 Pedro Alves <palves@redhat.com>
9283
9284 * ia64-linux-nat.c
9285 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
9286 Declare method.
9287 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
9288
8f86ae1a
SM
92892020-05-15 Simon Marchi <simon.marchi@efficios.com>
9290
9291 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
9292 (sparc64_adi_info): Likewise.
9293
d6bc0792
TT
92942020-05-15 Tom Tromey <tom@tromey.com>
9295
9296 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
9297 block_objfile.
9298 (lookup_objfile_from_block): Remove.
9299 (lookup_symbol_in_block, lookup_symbol_in_static_block)
9300 (lookup_global_symbol): Use block_objfile.
9301 * symtab.h (lookup_objfile_from_block): Don't declare.
9302 * printcmd.c (clear_dangling_display_expressions): Use
9303 block_objfile.
9304 * parse.c (operator_check_standard): Use block_objfile.
9305
8c14c3a3
TT
93062020-05-15 Tom Tromey <tom@tromey.com>
9307
9308 * language.c (language_alloc_type_symbol): Set
9309 SYMBOL_SECTION.
9310 * symtab.c (initialize_objfile_symbol): Remove.
9311 (allocate_symbol): Remove.
9312 (allocate_template_symbol): Remove.
9313 * dwarf2/read.c (fixup_go_packaging): Use "new".
9314 (new_symbol): Use "new".
9315 (read_variable): Don't call initialize_objfile_symbol. Use
9316 "new".
9317 (read_func_scope): Use "new".
9318 * xcoffread.c (process_xcoff_symbol): Don't call
9319 initialize_objfile_symbol.
9320 (SYMBOL_DUP): Remove.
9321 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
9322 "new".
9323 * symtab.h (allocate_symbol, initialize_objfile_symbol)
9324 (allocate_template_symbol): Don't declare.
9325 (struct symbol): Add copy constructor. Change defaults.
9326 * jit.c (finalize_symtab): Use "new".
9327 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
9328 Use "new".
9329 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
9330 (common_block_end): Use "new".
9331 * mdebugread.c (parse_symbol): Use "new".
9332 (new_symbol): Likewise.
9333
5b4a1a8d
PW
93342020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9335
9336 * NEWS: Mention changes to help and apropos.
9337
57b4f16e
PW
93382020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9339
9340 * command.h (enum command_class): Improve comments, document
9341 that class_alias is for user-defined aliases, give the class
9342 name for each class, remove unused class_xdb.
9343 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
9344 * breakpoint.c (_initialize_breakpoint): Replace class_alias
9345 by a precise class.
9346 * infcmd.c (_initialize_infcmd): Likewise.
9347 * reverse.c (_initialize_reverse): Likewise.
9348 * stack.c (_initialize_stack): Likewise.
9349 * symfile.c (_initialize_symfile): Likewise.
9350 * tracepoint.c (_initialize_tracepoint): Likewise.
9351
7c05caf7
PW
93522020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9353
9354 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
9355 when their aliased command is traversed.
9356 (help_cmd): Add fput_command_names_styled call to
9357 output command name and aliases when command has an alias.
9358
3b3aaacb
PW
93592020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9360
9361 * cli/cli-decode.h (help_cmd_list): Remove declaration.
9362 * cli/cli-decode.c (help_cmd_list): Declare as static,
9363 remove prefix argument, use bool for recurse arg, rework to show the aliases of
9364 a command together with the command.
9365 (fput_command_name_styled, fput_command_names_styled): New functions.
9366 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
9367 fput_command_name_styled.
9368 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
9369 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
9370
7aa1b46f
PW
93712020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9372
9373 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
9374 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
9375 * command.h (cmd_show_list): Likewise.
9376 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
9377 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
9378
89bcba74
PW
93792020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9380
9381 * unittests/command-def-selftests.c (traverse_command_structure):
9382 Verify all commands of a list have the same prefix command and
9383 that only the top cmdlist commands have a null prefix.
9384
3f4d92eb
PW
93852020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9386
9387 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
9388 as prefix, not one of its aliases.
9389 (set_cmd_prefix): Remove.
9390 (do_add_cmd): Centralize the setting of the prefix of a command, when
9391 command is defined after its full chain of prefix commands.
9392 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
9393 (add_setshow_cmd_full): Likewise.
9394 (update_prefix_field_of_prefixed_commands): New function.
9395 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
9396 update_prefix_field_of_prefixed_commands.
9397 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
9398 addresses of remote_set_cmdlist and remote_show_cmdlist given
9399 as argument, not the address of an argument.
9400 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
9401 * gdb/remote.c (_initialize_remote): Likewise.
9402
0605465f
PW
94032020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9404
9405 * cli/cli-cmds.c (alias_command): Check for an existing alias
9406 using lookup_cmd_composition, as valid_command_p is too strict
9407 and forbids aliases that are the prefix of an existing alias
9408 or command.
9409 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
9410 command is properly recognised as a valid command.
9411
58e6ac70
PW
94122020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9413
9414 * unittests/help-doc-selftests.c: Rename to
9415 unittests/command-def-selftests.c
9416 * unittests/command-def-selftests.c (help_doc_tests): Update some
9417 comments.
9418 (command_structure_tests, traverse_command_structure): New namespace
9419 and function.
9420 (command_structure_invariants_tests): New function.
9421 (_initialize_command_def_selftests) Renamed from
9422 _initialize_help_doc_selftests, register command_structure_invariants
9423 selftest.
9424
a7b9ceb8
PW
94252020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9426
9427 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
9428 an alias of 'show'.
9429
b2188a06
JB
94302020-05-15 Joel Brobecker <brobecker@adacore.com>
9431
9432 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
9433 ada_is_fixed_point_type. Update all callers.
9434 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
9435 all callers.
9436 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
9437 Update all callers.
9438 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
9439 print_fixed_point_type. Update all callers.
9440 * ada-valprint.c (ada_value_print_num): Replace call to
9441 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
9442
a51951c2
KB
94432020-05-14 Kevin Buettner <kevinb@redhat.com>
9444
9445 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
9446 processors.
9447 (cpu_supports_bts): Add CV_AMD case.
9448
29d6859f
LM
94492020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
9450 Simon Marchi <simon.marchi@efficios.com>
9451
9452 * infrun.c (stop_all_threads): Collect multiple wait events at
9453 each pass.
9454
78134374
SM
94552020-05-14 Simon Marchi <simon.marchi@efficios.com>
9456
9457 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
9458 type::code instead.
9459
67607e24
SM
94602020-05-14 Simon Marchi <simon.marchi@efficios.com>
9461
9462 * gdbtypes.h (struct type) <code, set_code>: New methods.
9463 (TYPE_CODE): Use type::code. Change all call sites used to set
9464 the code to use type::set_code instead.
9465
a05575d3
TBA
94662020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9467 Tom de Vries <tdevries@suse.de>
9468 Pedro Alves <palves@redhat.com>
9469
9470 PR threads/25478
9471 * infrun.c (stop_all_threads): Do NOT ignore
9472 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
9473 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
9474 received.
9475 (handle_no_resumed): Remove code handling a live inferior with no
9476 threads.
9477 * remote.c (has_single_non_exited_thread): New.
9478 (remote_target::update_thread_list): Do not delete a thread if is
9479 the last thread of the process.
9480 * thread.c (thread_select): Call delete_exited_threads instead of
9481 prune_threads.
9482
6ad82919
TBA
94832020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9484
9485 * infrun.c (stop_all_threads): Enable/disable thread events of all
9486 targets. Move a debug message denoting the end of the function
9487 into the SCOPED_EXIT block.
9488
d890404b
TBA
94892020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9490
9491 * process-stratum-target.h: Include <set>.
9492 (all_non_exited_process_targets, switch_to_target_no_thread): New
9493 function declarations.
9494 * process-stratum-target.c (all_non_exited_process_targets)
9495 (switch_to_target_no_thread): New function implementations.
9496
293b3ebc
TBA
94972020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9498
9499 * infrun.c (handle_inferior_event): Extract out a piece of code
9500 into...
9501 (mark_non_executing_threads): ...this new function.
9502
7ca9b62a
TBA
95032020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9504
9505 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
9506 use.
9507
fc75c28b
TBA
95082020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9509
9510 * regcache.c (regcache_read_pc_protected): New function
9511 implementation that returns 0 if the PC cannot read via
9512 'regcache_read_pc'.
9513 * infrun.c (proceed): Call 'regcache_read_pc_protected'
9514 instead of 'regcache_read_pc'.
9515 (keep_going_pass_signal): Ditto.
9516
a89febbd
TT
95172020-05-13 Tom Tromey <tromey@adacore.com>
9518
9519 * ada-lang.c (align_value): Remove.
9520 (ada_template_to_fixed_record_type_1): Use align_up.
9521
f7e23710
TBA
95222020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9523
9524 * async-event.c: Update the copyright year.
9525 * async-event.h: Update the copyright year.
9526
02ff80c2
SM
95272020-05-12 Simon Marchi <simon.marchi@efficios.com>
9528
9529 * objfiles.h (is_addr_in_objfile,
9530 shared_objfile_contains_address_p): Return bool.
9531 * objfile.c (is_addr_in_objfile,
9532 shared_objfile_contains_address_p): Return bool.
9533
4fd6c7e8
TT
95342020-05-11 Tom Tromey <tromey@adacore.com>
9535
9536 * cli/cli-cmds.c (info_command): Restore.
9537 (_initialize_cli_cmds): Use add_prefix_command for "info".
9538 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
9539
5eb68a39
TT
95402020-05-11 Tom Tromey <tromey@adacore.com>
9541
9542 * ada-lang.c (ada_value_primitive_field): Now public.
9543 * ada-lang.h (ada_value_primitive_field): Declare.
9544 * ada-valprint.c (print_field_values): Use
9545 ada_value_primitive_field for wrapper fields.
9546
7666722f
TV
95472020-05-11 Tom de Vries <tdevries@suse.de>
9548
9549 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
9550 MODULE_DOMAIN.
9551
3ee6bb11
TV
95522020-05-11 Tom de Vries <tdevries@suse.de>
9553
9554 PR symtab/25941
9555 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
9556 with length 0, if not gdb-produced.
9557 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
9558
43434996
TV
95592020-05-09 Tom de Vries <tdevries@suse.de>
9560
9561 PR gdb/25955
9562 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
9563 calculation.
9564
2f78cffc
TT
95652020-05-09 Tom Tromey <tom@tromey.com>
9566
9567 * top.c (server_command): Now bool.
9568 * top.h (server_command): Now bool.
9569
4f7bc5ed
TT
95702020-05-08 Tom Tromey <tromey@adacore.com>
9571
9572 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
9573 already being processed.
9574
8be4b118
TT
95752020-05-08 Tom Tromey <tom@tromey.com>
9576
9577 * printcmd.c (struct display) <next>: Remove.
9578 <display>: New constructor.
9579 <exp_string>: Now a std::string.
9580 <enabled_p>: Now a bool.
9581 (display_number): Move definition earlier.
9582 (displays): Rename from display_chain. Now a std::vector.
9583 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
9584 (display_command): Update.
9585 (do_one_display, disable_display)
9586 (enable_disable_display_command, do_enable_disable_display):
9587 Update.
9588 (free_display): Remove.
9589 (clear_displays): Rewrite.
9590 (delete_display): Update.
9591 (map_display_numbers): Use function_view. Remove "data"
9592 parameter. Update.
9593 (do_delete_display): Remove.
9594 (undisplay_command): Update.
9595 (do_one_display, do_displays, disable_display)
9596 (info_display_command): Update.
9597 (do_enable_disable_display): Remove.
9598 (enable_disable_display_command)
9599 (clear_dangling_display_expressions): Update.
9600
94c93c35
TT
96012020-05-08 Tom Tromey <tom@tromey.com>
9602
9603 * symtab.c (set_symbol_cache_size)
9604 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
9605 (maintenance_print_symbol_cache_statistics): Update.
9606 * symmisc.c (print_symbol_bcache_statistics)
9607 (print_objfile_statistics, maintenance_print_objfiles)
9608 (maintenance_info_symtabs, maintenance_check_symtabs)
9609 (maintenance_expand_symtabs, maintenance_info_line_tables):
9610 Update.
9611 * symfile-debug.c (set_debug_symfile): Update.
9612 * source.c (forget_cached_source_info): Update.
9613 * python/python.c (gdbpy_progspaces): Update.
9614 * psymtab.c (maintenance_info_psymtabs): Update.
9615 * probe.c (parse_probes): Update.
9616 * linespec.c (iterate_over_all_matching_symtabs)
9617 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
9618 * guile/scm-progspace.c (gdbscm_progspaces): Update.
9619 * exec.c (exec_target::close): Update.
9620 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
9621 * breakpoint.c (print_one_breakpoint_location)
9622 (create_longjmp_master_breakpoint)
9623 (create_std_terminate_master_breakpoint): Update.
9624 * progspace.c (program_spaces): Now a std::vector.
9625 (maybe_new_address_space): Update.
9626 (add_program_space): Remove.
9627 (program_space::program_space): Update.
9628 (remove_program_space): Update.
9629 (number_of_program_spaces): Remove.
9630 (print_program_space, update_address_spaces): Update.
9631 * progspace.h (program_spaces): Change type.
9632 (ALL_PSPACES): Remove.
9633 (number_of_program_spaces): Don't declare.
9634 (struct program_space) <next>: Remove.
9635
a1fd1ac9
TT
96362020-05-08 Tom Tromey <tom@tromey.com>
9637
9638 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
9639 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
9640 (enable_break): Update.
9641 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
9642 (frv_fdpic_find_canonical_descriptor): Update.
9643 (frv_fetch_objfile_link_map): Update.
9644 * progspace.c (program_space::free_all_objfiles): Update.
9645 (program_space::solibs): New method.
9646 * progspace.h (struct program_space) <solibs>: New method.
9647 * solist.h (master_so_list): Don't declare.
9648 (ALL_SO_LIBS): Remove.
9649 * solib.h (so_list_head): Remove.
9650 (update_solib_list): Update comment.
9651 * solib.c (master_so_list): Remove.
9652 (solib_used, update_solib_list, solib_add)
9653 (info_sharedlibrary_command, clear_solib)
9654 (reload_shared_libraries_1, remove_user_added_objfile): Update.
9655
38eae084
TT
96562020-05-08 Tom Tromey <tom@tromey.com>
9657
9658 * extension.c (extension_languages): Now a std::array.
9659 (ALL_EXTENSION_LANGUAGES): Remove.
9660 (get_ext_lang_defn, get_ext_lang_of_file)
9661 (eval_ext_lang_from_control_command): Update.
9662 (finish_ext_lang_initialization)
9663 (auto_load_ext_lang_scripts_for_objfile)
9664 (ext_lang_type_printers::ext_lang_type_printers)
9665 (apply_ext_lang_type_printers)
9666 (ext_lang_type_printers::~ext_lang_type_printers)
9667 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
9668 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
9669 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
9670 (get_matching_xmethod_workers, ext_lang_colorize)
9671 (ext_lang_before_prompt): Update.
9672 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
9673
596dc4ad
TT
96742020-05-08 Tom Tromey <tom@tromey.com>
9675
9676 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
9677 overload.
9678 <swap_string, m_string>: Remove.
9679 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
9680 Update.
9681 * stabsread.c (define_symbol, read_type): Update.
9682 * linespec.c (find_linespec_symbols): Update.
9683 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
9684 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
9685 * dbxread.c (read_dbx_symtab): Update.
9686 * cp-support.h (cp_canonicalize_string_full)
9687 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
9688 Return unique_xmalloc_ptr.
9689 * cp-support.c (inspect_type): Update.
9690 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
9691 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
9692 Likewise.
9693 * c-typeprint.c (print_name_maybe_canonical): Update.
9694 * break-catch-throw.c (check_status_exception_catchpoint):
9695 Update.
9696
bf4cb9be
TV
96972020-05-08 Tom de Vries <tdevries@suse.de>
9698
9699 * infrun.c (follow_fork): Copy current_line and current_symtab to
9700 child thread.
9701
a1b68f28
SM
97022020-05-07 Simon Marchi <simon.marchi@efficios.com>
9703
9704 * async-event.c (struct async_signal_handler, struct
9705 async_event_handler): Reformat, remove typedef.
9706
98d48915
SM
97072020-05-07 Simon Marchi <simon.marchi@efficios.com>
9708
9709 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
9710 access thistype->main_type->dyn_prop_list directly.
9711
7aa91313
SM
97122020-05-07 Simon Marchi <simon.marchi@efficios.com>
9713
9714 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
9715 (remove_dyn_prop): Remove. Update all users to use
9716 type::remove_dyn_prop.
9717 * gdbtypes.c (remove_dyn_prop): Rename to...
9718 (type::remove_dyn_prop): ... this.
9719
5c54719c
SM
97202020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
9721
9722 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
9723 (add_dyn_prop): Remove. Update all users to use
9724 type::add_dyn_prop.
9725 * gdbtypes.c (add_dyn_prop): Rename to...
9726 (type::add_dyn_prop): ... this.
9727
24e99c6c
SM
97282020-05-07 Simon Marchi <simon.marchi@efficios.com>
9729
9730 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
9731 (get_dyn_prop): Remove. Update all users to use
9732 type::dyn_prop.
9733 * gdbtypes.c (get_dyn_prop): Rename to...
9734 (type::dyn_prop): ... this.
9735
0d4bf016
SM
97362020-05-06 Simon Marchi <simon.marchi@efficios.com>
9737
9738 * gdbtypes.h (struct main_type) <flag_static>: Remove.
9739
ac4a4f1c
SM
97402020-05-06 Simon Marchi <simon.marchi@efficios.com>
9741
9742 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
9743 instruction, skip it if it's there.
9744
a3bbacc1
SM
97452020-05-05 Simon Marchi <simon.marchi@efficios.com>
9746
9747 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
9748
c3236f84
SM
97492020-05-04 Simon Marchi <simon.marchi@efficios.com>
9750
9751 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
9752 * gdbtypes.c (recursive_dump_type): Remove use of
9753 TYPE_INCOMPLETE.
9754
3b6acaee
TT
97552020-05-03 Tom Tromey <tom@tromey.com>
9756
9757 * breakpoint.c (catch_command, tcatch_command): Remove.
9758 (_initialize_breakpoint): Use add_basic_prefix_cmd,
9759 add_show_prefix_cmd.
9760 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
9761 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
9762 Remove.
9763 (add_internal_problem_command): Use add_basic_prefix_cmd,
9764 add_show_prefix_cmd.
9765 * mips-tdep.c (set_mipsfpu_command): Remove.
9766 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
9767 * dwarf2/index-cache.c (set_index_cache_command): Remove.
9768 (_initialize_index_cache): Use add_basic_prefix_cmd.
9769 * memattr.c (dummy_cmd): Remove.
9770 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
9771 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
9772 (_initialize_tui_win): Use add_basic_prefix_cmd,
9773 add_show_prefix_cmd.
9774 * cli/cli-logging.c (set_logging_command): Remove.
9775 (_initialize_cli_logging): Use add_basic_prefix_cmd,
9776 add_show_prefix_cmd.
9777 (show_logging_command): Remove.
9778 * target.c (target_command): Remove.
9779 (add_target): Use add_basic_prefix_cmd.
9780
a51119cd
HD
97812020-05-02 Hannes Domani <ssbssa@yahoo.de>
9782
9783 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
9784
652fc23a 97852020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 9786
652fc23a
PW
9787 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
9788 info_command.
9789
117539e6
KR
97902020-04-30 Kamil Rytarowski <n54@gmx.com>
9791
9792 * nbsd-nat.c (nbsd_enable_proc_events)
9793 (nbsd_nat_target::post_startup_inferior): Add.
9794 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
9795 (nbsd_nat_target::update_thread_list): Rewrite.
9796 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
9797 "PTRACE_LWP_CREATE".
9798 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
9799
102e38eb 98002020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 9801
102e38eb
PW
9802 * stack.c (_initialize_stack): Remove duplicated creation
9803 of "frame" command and "f" alias.
9804
ee9d1e5f
HD
98052020-04-30 Hannes Domani <ssbssa@yahoo.de>
9806
9807 PR gdb/18706
9808 * gdbtypes.c (check_typedef): Calculate size of array of
9809 stubbed type.
9810
627c7fb8
HD
98112020-04-30 Hannes Domani <ssbssa@yahoo.de>
9812
9813 PR gdb/15559
9814 * i386-tdep.c (i386_push_dummy_call): Call
9815 i386_thiscall_push_dummy_call.
9816 (i386_thiscall_push_dummy_call): New function.
9817 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
9818 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
9819 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
9820
ffc2844e
SM
98212020-04-29 Simon Marchi <simon.marchi@efficios.com>
9822
9823 * gdbarch.sh (do_read): Add shellcheck disable directive for
9824 warning SC2162.
9825
1207375d
SM
98262020-04-29 Simon Marchi <simon.marchi@efficios.com>
9827
9828 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
9829 "referenced but not assigned" warning.
9830
9fdb2916
SM
98312020-04-29 Simon Marchi <simon.marchi@efficios.com>
9832
9833 * gdbarch.sh: Remove code that sets fallbackdefault.
9834
759cea5e
SM
98352020-04-29 Simon Marchi <simon.marchi@efficios.com>
9836
9837 * gdbarch.sh: Use shell operators && and || instead of
9838 -a and -o.
9839
cb02ab24
SM
98402020-04-29 Simon Marchi <simon.marchi@efficios.com>
9841
9842 * gdbarch.sh: Use $(...) instead of `...`.
9843
a6fc5ffc
SM
98442020-04-29 Simon Marchi <simon.marchi@efficios.com>
9845
9846 * gdbarch.sh: Use double quotes around variables.
9847
8d113d13
SM
98482020-04-29 Simon Marchi <simon.marchi@efficios.com>
9849
9850 * gdbarch.sh: Use %s with printf, instead of variables in the
9851 format string.
9852
ed6acedd
TT
98532020-04-29 Tom Tromey <tromey@adacore.com>
9854
9855 PR ada/25875:
9856 * dwarf2/read.c (update_enumeration_type_from_children): Compute
9857 type fields here.
9858 (read_enumeration_type): Call
9859 update_enumeration_type_from_children later. Update comments.
9860 (process_enumeration_scope): Don't create type fields.
9861
b68b1b58
KR
98622020-04-29 Kamil Rytarowski <n54@gmx.com>
9863
9864 * nbsd-tdep.c: Include "xml-syscall.h".
9865 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
9866
f94b2e03
KR
98672020-04-29 Kamil Rytarowski <n54@gmx.com>
9868
9869 * nbsd-nat.c: Include "sys/wait.h".
9870 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
9871 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
9872 (nbsd_nat_target::remove_exec_catchpoint)
9873 (nbsd_nat_target::set_syscall_catchpoint): Add.
9874 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
9875 (nbsd_nat_target::insert_exec_catchpoint)
9876 (nbsd_nat_target::remove_exec_catchpoint)
9877 (nbsd_nat_target::set_syscall_catchpoint): Add.
9878 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
9879 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
9880 `nbsd_get_syscall_number'.
9881
fc49bc72
TT
98822020-04-29 Tom Tromey <tom@tromey.com>
9883
9884 * stack.c (print_block_frame_labels): Remove.
9885
d642b692
HD
98862020-04-29 Hannes Domani <ssbssa@yahoo.de>
9887
9888 PR gdb/17320
9889 * ada-valprint.c (val_print_packed_array_elements): Move array
9890 end bracket to new line.
9891 (ada_val_print_string): Remove extra spaces before first array
9892 element.
9893 * c-valprint.c (c_value_print_array): Likewise.
9894 * m2-valprint.c (m2_print_array_contents): Likewise.
9895 (m2_value_print_inner): Likewise.
9896 * p-valprint.c (pascal_value_print_inner): Likewise.
9897 * valprint.c (generic_val_print_array): Likewise.
9898 (value_print_array_elements): Move first array element and array
9899 end bracket to new line.
9900
ea90f227
TV
99012020-04-29 Tom de Vries <tdevries@suse.de>
9902
9903 PR symtab/25889
9904 * linespec.c (find_method): Fix ix calculation.
9905
4498ef4f
KR
99062020-04-28 Kamil Rytarowski <n54@gmx.com>
9907
9908 * syscalls/update-netbsd.sh: New file.
9909 * syscalls/netbsd.xml: Regenerate.
9910 * data-directory/Makefile.in: Register `netbsd.xml' in
9911 `SYSCALLS_FILES'.
9912
a55e30b5
SM
99132020-04-28 Simon Marchi <simon.marchi@efficios.com>
9914
9915 * syscalls/update-freebsd.sh: Add double quotes.
9916
2b2fbab8
TT
99172020-04-28 Tom Tromey <tom@tromey.com>
9918
9919 * NEWS: Update.
9920 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
9921 (cmdpy_init): Allow class_tui.
9922
a65189c9
TV
99232020-04-28 Mark Williams <mark@myosotissp.com>
9924
9925 PR gdb/24480
9926 * dwarf2read.c: Add missing assingments to list_in_scope when
9927 start_symtab was already called.
9928
1b95cdb7
SM
99292020-04-28 Simon Marchi <simon.marchi@efficios.com>
9930
9931 PR gdb/25881
9932 * dwarf2/read.c (offset_map_type): Use
9933 gdb:hash_enum<sect_offset> as hash function.
9934
15cd93d0
TV
99352020-04-28 Tom de Vries <tdevries@suse.de>
9936
9937 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
9938 with DW_AT_signature.
9939
1eb39914
SM
99402020-04-27 Simon Marchi <simon.marchi@efficios.com>
9941
9942 * configure.ac: Remove check for fs_base/gs_base in
9943 user_regs_struct.
9944 * configure: Re-generate.
9945 * config.in: Re-generate.
9946 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
9947 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
9948 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
9949
991a3e2e
LM
99502020-04-27 Luis Machado <luis.machado@linaro.org>
9951
9952 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
9953 problematic inline frame unwinding situation.
9954 * frame.c (frame_id_computed_p): New function.
9955 * frame.h (frame_id_computed_p): New prototype.
9956
361ba0e8
TT
99572020-04-26 Tom Tromey <tom@tromey.com>
9958
9959 * command.h (enum command_class) <class_pseudo>: Remove.
9960
bc3609fd
PW
99612020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9962
9963 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
9964 and whitespace.
9965
b9771db7
KR
99662020-04-25 Kamil Rytarowski <n54@gmx.com>
9967
ec16513e
SM
9968 * inf-ptrace.c (inf_ptrace_target::wait): Remove
9969 `PT_GET_PROCESS_STATE' block.
b9771db7 9970
7151c1af
TT
99712020-04-24 Tom Tromey <tom@tromey.com>
9972
9973 * symtab.h (symbol_get_demangled_name): Don't declare.
9974 * symtab.c (symbol_get_demangled_name): Remove.
9975 (general_symbol_info::natural_name)
9976 (general_symbol_info::demangled_name): Update.
9977
906bb4c5
TT
99782020-04-24 Tom Tromey <tom@tromey.com>
9979
9980 PR rust/25025:
9981 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
9982
bcfe6157
TT
99832020-04-24 Tom Tromey <tom@tromey.com>
9984
9985 PR symtab/12707:
9986 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
9987 exists.
9988 (new_symbol): Likewise.
9989 * compile/compile-object-load.c (get_out_value_type): Use
9990 symbol_matches_search_name.
9991
f049a313
TT
99922020-04-24 Tom Tromey <tom@tromey.com>
9993
9994 * dwarf2/read.c (add_partial_symbol): Do not call
9995 compute_and_set_names.
9996
76e288d1
TT
99972020-04-24 Tom Tromey <tom@tromey.com>
9998
9999 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
10000 overload.
10001
2467f4f6
TT
100022020-04-24 Tom Tromey <tom@tromey.com>
10003
10004 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
10005 (add_psymbol_to_list): New overload. Make old overload call new
10006 one.
10007 * psympriv.h (add_psymbol_to_list): New overload.
10008
e61108c9
TT
100092020-04-24 Tom Tromey <tom@tromey.com>
10010
10011 * dwarf2/read.c (partial_die_info::read) <case
10012 DW_AT_linkage_name>: Use value_as_string.
10013 (dwarf2_string_attr): Use value_as_string.
10014 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
10015 method.
10016 * dwarf2/attribute.c (attribute::value_as_string): New method.
10017
8c87a452
TT
100182020-04-24 Tom Tromey <tom@tromey.com>
10019
10020 * symtab.c (general_symbol_info::natural_name)
10021 (general_symbol_info::demangled_name): Check for language_rust.
10022
787de330
TT
100232020-04-24 Tom Tromey <tom@tromey.com>
10024
10025 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
10026 (dwarf2_physname): ... from here.
10027 (partial_die_info::read): Add Rust "{" hack.
10028
ff985671
TT
100292020-04-24 Tom Tromey <tom@tromey.com>
10030
10031 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
10032 method.
10033 (symbol_set_demangled_name): Don't declare.
10034 * symtab.c (general_symbol_info::set_demangled_name): Rename from
10035 symbol_set_demangled_name.
10036 (general_symbol_info::set_language)
10037 (general_symbol_info::compute_and_set_names): Update.
10038 * minsyms.c (minimal_symbol_reader::install): Update.
10039 * dwarf2/read.c (new_symbol): Update.
10040
1acda803
TT
100412020-04-24 Tom Tromey <tromey@adacore.com>
10042
10043 PR python/23662:
10044 * python/py-type.c (convert_field): Handle
10045 FIELD_LOC_KIND_DWARF_BLOCK.
10046 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
10047 (typy_get_dynamic): Nw function.
10048 (type_object_getset): Add "dynamic".
10049 * NEWS: Add entry.
10050
d656f129
TT
100512020-04-24 Tom Tromey <tromey@adacore.com>
10052
10053 * ada-typeprint.c (print_choices, print_variant_part)
10054 (print_record_field_types_dynamic): New functions.
10055 (print_record_field_types): Use print_record_field_types_dynamic.
10056
7d79de9a
TT
100572020-04-24 Tom Tromey <tromey@adacore.com>
10058
10059 * dwarf2/read.c (handle_data_member_location): New overload.
10060 (dwarf2_add_field): Use it.
10061 (decode_locdesc): Add "computed" parameter. Update comment.
10062 * gdbtypes.c (is_dynamic_type_internal): Also look for
10063 FIELD_LOC_KIND_DWARF_BLOCK.
10064 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
10065 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
10066 virtual base classes.
10067 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
10068 FIELD_LOC_KIND_DWARF_BLOCK.
10069
f8e89861
TT
100702020-04-24 Tom Tromey <tromey@adacore.com>
10071
10072 * dwarf2/read.c (read_structure_type): Handle dynamic length.
10073 * gdbtypes.c (is_dynamic_type_internal): Check
10074 TYPE_HAS_DYNAMIC_LENGTH.
10075 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
10076 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
10077 New macros.
10078 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
10079 constant.
10080
9c6a1327
TT
100812020-04-24 Tom Tromey <tromey@adacore.com>
10082
10083 * dwarf2/read.c (struct variant_field): Rewrite.
10084 (struct variant_part_builder): New.
10085 (struct nextfield): Remove "variant" field. Add "offset".
10086 (struct field_info): Add "current_variant_part" and
10087 "variant_parts".
10088 (alloc_discriminant_info): Remove.
10089 (alloc_rust_variant): New function.
10090 (quirk_rust_enum): Update.
10091 (dwarf2_add_field): Set "offset" member. Don't handle
10092 DW_TAG_variant_part.
10093 (offset_map_type): New typedef.
10094 (convert_variant_range, create_one_variant)
10095 (create_one_variant_part, create_variant_parts)
10096 (add_variant_property): New functions.
10097 (dwarf2_attach_fields_to_type): Call add_variant_property.
10098 (read_structure_type): Don't handle DW_TAG_variant_part.
10099 (handle_variant_part, handle_variant): New functions.
10100 (handle_struct_member_die): Use them.
10101 (process_structure_scope): Don't handle variant parts.
10102 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
10103 (struct discriminant_info): Remove.
10104 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
10105 (struct main_type) <flag_discriminated_union>: Remove.
10106 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
10107 (rust_enum_variant): Return int. Remove "contents". Rewrite.
10108 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
10109 Update.
10110 * valops.c (value_union_variant): Remove.
10111 * value.h (value_union_variant): Don't declare.
10112
b249d2c2
TT
101132020-04-24 Tom Tromey <tromey@adacore.com>
10114
10115 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
10116 (ada_value_primitive_packed_val): Update.
10117 * ada-valprint.c (ada_value_print_1): Update.
10118 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
10119 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
10120 just an address. Use evaluate_for_locexpr_baton.
10121 (dwarf2_evaluate_property): Update.
10122 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
10123 array_view.
10124 * findvar.c (default_read_var_value): Update.
10125 * gdbtypes.c (compute_variant_fields_inner)
10126 (resolve_dynamic_type_internal): Update.
10127 (resolve_dynamic_type): Change type of valaddr parameter.
10128 * gdbtypes.h (resolve_dynamic_type): Update.
10129 * valarith.c (value_subscripted_rvalue): Update.
10130 * value.c (value_from_contents_and_address): Update.
10131
61122aa9
TT
101322020-04-24 Tom Tromey <tromey@adacore.com>
10133
10134 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
10135 "push_initial_value" parameter.
10136 (dwarf2_evaluate_property): Likewise.
10137 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
10138
ef83a141
TT
101392020-04-24 Tom Tromey <tromey@adacore.com>
10140
10141 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
10142 (variant::matches, compute_variant_fields_recurse)
10143 (compute_variant_fields_inner, compute_variant_fields): New
10144 functions.
10145 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
10146 Use resolved_type after type is made.
10147 (operator==): Add new cases.
10148 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
10149 (struct discriminant_range, struct variant, struct variant_part):
10150 New.
10151 (union dynamic_prop_data) <variant_parts, original_type>: New
10152 members.
10153 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
10154 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
10155 constants.
10156 * value.c (unpack_bits_as_long): Now public.
10157 * value.h (unpack_bits_as_long): Declare.
10158
675127ec
TT
101592020-04-24 Tom Tromey <tromey@adacore.com>
10160
10161 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
10162 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
10163
9852ceef
HD
101642020-04-24 Hannes Domani <ssbssa@yahoo.de>
10165
10166 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
10167
7632c6ce
KR
101682020-04-24 Kamil Rytarowski <n54@gmx.com>
10169
10170 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
10171 (remove_fork_catchpoint, post_startup_inferior)
10172 (post_attach): Move...
10173 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
10174 (remove_fork_catchpoint, post_startup_inferior)
10175 (post_attach): ...here.
10176 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
10177 (remove_fork_catchpoint, post_startup_inferior)
10178 (post_attach): Move...
10179 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
10180 (remove_fork_catchpoint, post_startup_inferior)
10181 (post_attach): ...here.
10182
7be2bb4f
TT
101832020-04-24 Tom Tromey <tromey@adacore.com>
10184
10185 * nat/windows-nat.h (struct windows_thread_info)
10186 <pc_adjusted>: New member.
10187 * windows-nat.c (windows_fetch_one_register): Check
10188 pc_adjusted.
10189 (windows_nat_target::get_windows_debug_event)
10190 (windows_nat_target::wait): Set pc_adjusted.
10191
f80cb3b4
TV
101922020-04-24 Tom de Vries <tdevries@suse.de>
10193
10194 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
10195 Run gdb-add-index inside temp dir.
10196
29514b87
TT
101972020-04-23 Tom Tromey <tromey@adacore.com>
10198
10199 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
10200 in loop.
10201
5939967b
LM
102022020-04-23 Luis Machado <luis.machado@linaro.org>
10203
10204 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10205 get_frame_register instead of gdbarch_unwind_pc.
10206
70bc38f5
TV
102072020-04-23 Tom de Vries <tdevries@suse.de>
10208
10209 * symtab.c (lookup_global_symbol): Prefer def over decl.
10210
de82891c
TV
102112020-04-23 Tom de Vries <tdevries@suse.de>
10212
10213 PR symtab/25807
10214 * block.c (best_symbol, better_symbol): Promote to external.
10215 * block.h (best_symbol, better_symbol): Declare.
10216 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
10217 decl.
10218
ecc6c606
TT
102192020-04-23 Tom Tromey <tromey@adacore.com>
10220
10221 PR ada/25837:
10222 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
10223 "const char *", not a "const std::string &".
10224 <name_and_matcher::operator==>: Update.
10225 * unittests/lookup_name_info-selftests.c: Change type of
10226 "result".
10227
740480b8
TT
102282020-04-23 Tom Tromey <tom@tromey.com>
10229
10230 * inferior.h (iterate_over_inferiors): Don't declare.
10231 * inferior.c (iterate_over_inferiors): Remove.
10232 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
10233 Remove.
10234 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
10235 use iterate_over_inferiors.
10236 (darwin_resume_inferior_it)
10237 (struct resume_inferior_threads_param)
10238 (darwin_resume_inferior_threads_it): Remove.
10239 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
10240
ae3ab1f0
TV
102412020-04-23 Tom de Vries <tdevries@suse.de>
10242
10243 * blockframe.c (find_pc_partial_function): Use
10244 find_pc_sect_compunit_symtab rather than
10245 objfile->sf->qf->find_pc_sect_compunit_symtab.
10246
317d2668
TV
102472020-04-22 Tom de Vries <tdevries@suse.de>
10248
10249 PR symtab/25764
10250 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
10251 in psymtabs.
10252
eea9e357
TV
102532020-04-22 Tom de Vries <tdevries@suse.de>
10254
10255 PR symtab/25801
10256 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
10257 symtabs.
10258
3d5afab3
TV
102592020-04-22 Tom de Vries <tdevries@suse.de>
10260
10261 PR symtab/25700
10262 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
10263 CU if already created.
10264
d43b7a2d
TBA
102652020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10266
10267 * infrun.c (displaced_step_fixup): Switch to the event_thread
10268 before calling displaced_step_restore, not after.
10269
d89edf9b
MM
102702020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10271
10272 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
10273 its inferior is not recorded by us.
10274 (record_btrace_target_open): Replace call to
10275 all_non_exited_threads () with call to current_inferior
10276 ()->non_exited_threads ().
10277 (record_btrace_target::stop_recording): Likewise.
10278 (record_btrace_target::close): Likewise.
10279 (record_btrace_target::wait): Likewise.
10280 (record_btrace_target::record_stop_replaying): Likewise.
10281
5897fd49
MM
102822020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10283
10284 * btrace.c (btrace_enable): Throw an error on double enables and
10285 when enabling recording fails.
10286 (btrace_disable): Throw an error if the thread is not recorded.
10287
1a476b6d
MM
102882020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10289
10290 * record-btrace.c (record_btrace_target::fetch_registers): Forward
10291 request if we do not have a thread_info.
10292
4778a5f8
TV
102932020-04-21 Tom de Vries <tdevries@suse.de>
10294
10295 PR gdb/25471
10296 * thread.c
10297 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
10298 exception in get_frame_id.
10299
0fa7617d
TT
103002020-04-20 Tom Tromey <tromey@adacore.com>
10301
10302 * python/python.c (struct gdbpy_event): Mark move constructor as
10303 noexcept.
10304 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
10305 constructor as noexcept.
10306 * completer.h (struct completion_result): Mark move constructor as
10307 noexcept.
10308 * completer.c (completion_result::completion_result): Use
10309 initialization style. Don't call reset_match_list.
10310
ad23bda0
MS
103112020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
10312
10313 * MAINTAINERS (Write After Approval): Add myself.
10314
45e1f031
TT
103152020-04-18 Tom Tromey <tom@tromey.com>
10316
10317 * windows-tdep.c (init_w32_command_list)
10318 (w32_prefix_command_valid): Restore.
10319 (_initialize_windows_tdep): Call init_w32_command_list.
10320
08feed99
TT
103212020-04-18 Tom Tromey <tom@tromey.com>
10322
10323 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
10324 * value.c (value_fn_field): Update.
10325 * valops.c (find_function_in_inferior)
10326 (value_allocate_space_in_inferior): Update.
10327 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10328 Update.
10329 * tui/tui-source.c (tui_source_window::set_contents): Update.
10330 * symtab.c (lookup_global_or_static_symbol)
10331 (find_function_start_sal_1, skip_prologue_sal)
10332 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
10333 * symmisc.c (dump_msymbols, dump_symtab_1)
10334 (maintenance_print_one_line_table): Update.
10335 * symfile.c (init_entry_point_info, section_is_mapped)
10336 (list_overlays_command, simple_read_overlay_table)
10337 (simple_overlay_update_1): Update.
10338 * stap-probe.c (handle_stap_probe): Update.
10339 * stabsread.c (dbx_init_float_type, define_symbol)
10340 (read_one_struct_field, read_enum_type, read_range_type): Update.
10341 * source.c (info_line_command): Update.
10342 * python/python.c (gdbpy_source_objfile_script)
10343 (gdbpy_execute_objfile_script): Update.
10344 * python/py-type.c (save_objfile_types): Update.
10345 * python/py-objfile.c (py_free_objfile): Update.
10346 * python/py-inferior.c (python_new_objfile): Update.
10347 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
10348 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
10349 (maintenance_check_psymtabs): Update.
10350 * printcmd.c (info_address_command): Update.
10351 * objfiles.h (struct objfile) <arch>: New method, from
10352 get_objfile_arch.
10353 (get_objfile_arch): Don't declare.
10354 * objfiles.c (get_objfile_arch): Remove.
10355 (filter_overlapping_sections): Update.
10356 * minsyms.c (msymbol_is_function): Update.
10357 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
10358 (output_nondebug_symbol): Update.
10359 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
10360 (mdebug_expand_psymtab): Update.
10361 * machoread.c (macho_add_oso_symfile): Update.
10362 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
10363 Update.
10364 * linux-fork.c (checkpoint_command): Update.
10365 * linespec.c (convert_linespec_to_sals): Update.
10366 * jit.c (finalize_symtab): Update.
10367 * infrun.c (insert_exception_resume_from_probe): Update.
10368 * ia64-tdep.c (ia64_find_unwind_table): Update.
10369 * hppa-tdep.c (internalize_unwinds): Update.
10370 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
10371 Update.
10372 * gcore.c (call_target_sbrk): Update.
10373 * elfread.c (record_minimal_symbol, elf_symtab_read)
10374 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
10375 (elf_gnu_ifunc_resolve_by_got): Update.
10376 * dwarf2/read.c (create_addrmap_from_index)
10377 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10378 (read_debug_names_from_section)
10379 (process_psymtab_comp_unit_reader, add_partial_symbol)
10380 (add_partial_subprogram, process_full_comp_unit)
10381 (read_file_scope, read_func_scope, read_lexical_block_scope)
10382 (read_call_site_scope, dwarf2_ranges_read)
10383 (dwarf2_record_block_ranges, dwarf2_add_field)
10384 (mark_common_block_symbol_computed, read_tag_pointer_type)
10385 (read_tag_string_type, dwarf2_init_float_type)
10386 (dwarf2_init_complex_target_type, read_base_type)
10387 (partial_die_info::read, partial_die_info::read)
10388 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
10389 (dwarf2_fetch_die_loc_sect_off): Update.
10390 * dwarf2/loc.c (dwarf2_find_location_expression)
10391 (class dwarf_evaluate_loc_desc, rw_pieced_value)
10392 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
10393 (dwarf2_loc_desc_get_symbol_read_needs)
10394 (locexpr_describe_location_piece, locexpr_describe_location_1)
10395 (loclist_describe_location): Update.
10396 * dwarf2/index-write.c (write_debug_names): Update.
10397 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
10398 * dtrace-probe.c (dtrace_process_dof): Update.
10399 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
10400 (process_one_symbol): Update.
10401 * ctfread.c (ctf_init_float_type, read_base_type): Update.
10402 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
10403 (coff_read_enum_type): Update.
10404 * cli/cli-cmds.c (edit_command, list_command): Update.
10405 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
10406 * breakpoint.c (create_overlay_event_breakpoint)
10407 (create_longjmp_master_breakpoint)
10408 (create_std_terminate_master_breakpoint)
10409 (create_exception_master_breakpoint, get_sal_arch): Update.
10410 * block.c (block_gdbarch): Update.
10411 * annotate.c (annotate_source_line): Update.
10412
0743fc83
TT
104132020-04-17 Tom Tromey <tromey@adacore.com>
10414
10415 * auto-load.c (show_auto_load_cmd): Remove.
10416 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
10417 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
10418 (maintenance_print_arc_command): Remove.
10419 * tui/tui-win.c (tui_command): Remove.
10420 (tui_get_cmd_list): Use add_basic_prefix_cmd.
10421 * tui/tui-layout.c (tui_layout_command): Remove.
10422 (_initialize_tui_layout): Use add_basic_prefix_cmd.
10423 * python/python.c (user_set_python, user_show_python): Remove.
10424 (_initialize_python): Use add_basic_prefix_cmd,
10425 add_show_prefix_cmd.
10426 * guile/guile.c (set_guile_command, show_guile_command): Remove.
10427 (install_gdb_commands): Use add_basic_prefix_cmd,
10428 add_show_prefix_cmd.
10429 (info_guile_command): Remove.
10430 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
10431 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
10432 add_show_prefix_cmd.
10433 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
10434 Remove do_set and do_show parameters.
10435 * cli/cli-style.c (set_style, show_style): Remove.
10436 (_initialize_cli_style): Use add_basic_prefix_cmd,
10437 add_show_prefix_cmd.
10438 (cli_style_option::add_setshow_commands): Remove do_set and
10439 do_show parameters.
10440 (cli_style_option::add_setshow_commands): Use
10441 add_basic_prefix_cmd, add_show_prefix_cmd.
10442 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
10443 (set_style_name): Remove.
10444 * cli/cli-dump.c (dump_command, append_command): Remove.
10445 (srec_dump_command, ihex_dump_command, verilog_dump_command)
10446 (tekhex_dump_command, binary_dump_command)
10447 (binary_append_command): Remove.
10448 (_initialize_cli_dump): Use add_basic_prefix_cmd.
10449 * windows-tdep.c (w32_prefix_command_valid): Remove global.
10450 (init_w32_command_list): Remove; move into ...
10451 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
10452 * valprint.c (set_print, show_print, set_print_raw)
10453 (show_print_raw): Remove.
10454 (_initialize_valprint): Use add_basic_prefix_cmd,
10455 add_show_prefix_cmd.
10456 * typeprint.c (set_print_type, show_print_type): Remove.
10457 (_initialize_typeprint): Use add_basic_prefix_cmd,
10458 add_show_prefix_cmd.
10459 * record.c (set_record_command, show_record_command): Remove.
10460 (_initialize_record): Use add_basic_prefix_cmd,
10461 add_show_prefix_cmd.
10462 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
10463 add_show_prefix_cmd.
10464 (info_command, show_command, set_debug, show_debug): Remove.
10465 * top.h (set_history, show_history): Don't declare.
10466 * top.c (set_history, show_history): Remove.
10467 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
10468 (unset_tdesc_cmd): Remove.
10469 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
10470 add_show_prefix_cmd.
10471 * symtab.c (info_module_command): Remove.
10472 (_initialize_symtab): Use add_basic_prefix_cmd.
10473 * symfile.c (overlay_command): Remove.
10474 (_initialize_symfile): Use add_basic_prefix_cmd.
10475 * sparc64-tdep.c (info_adi_command): Remove.
10476 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
10477 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
10478 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
10479 add_show_prefix_cmd.
10480 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
10481 (_initialize_serial): Use add_basic_prefix_cmd,
10482 add_show_prefix_cmd.
10483 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
10484 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
10485 add_show_prefix_cmd.
10486 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
10487 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
10488 add_show_prefix_cmd.
10489 * riscv-tdep.c (show_riscv_command, set_riscv_command)
10490 (show_debug_riscv_command, set_debug_riscv_command): Remove.
10491 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
10492 add_show_prefix_cmd.
10493 * remote.c (remote_command, set_remote_cmd): Remove.
10494 (_initialize_remote): Use add_basic_prefix_cmd.
10495 * record-full.c (set_record_full_command)
10496 (show_record_full_command): Remove.
10497 (_initialize_record_full): Use add_basic_prefix_cmd,
10498 add_show_prefix_cmd.
10499 * record-btrace.c (cmd_set_record_btrace)
10500 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
10501 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
10502 (cmd_show_record_btrace_pt): Remove.
10503 (_initialize_record_btrace): Use add_basic_prefix_cmd,
10504 add_show_prefix_cmd.
10505 * ravenscar-thread.c (set_ravenscar_command)
10506 (show_ravenscar_command): Remove.
10507 (_initialize_ravenscar): Use add_basic_prefix_cmd,
10508 add_show_prefix_cmd.
10509 * mips-tdep.c (show_mips_command, set_mips_command)
10510 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
10511 add_show_prefix_cmd.
10512 * maint.c (maintenance_command, maintenance_info_command)
10513 (maintenance_check_command, maintenance_print_command)
10514 (maintenance_set_cmd, maintenance_show_cmd): Remove.
10515 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
10516 add_show_prefix_cmd.
10517 (show_per_command_cmd): Remove.
10518 * maint-test-settings.c (maintenance_set_test_settings_cmd):
10519 Remove.
10520 (maintenance_show_test_settings_cmd): Remove.
10521 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
10522 add_show_prefix_cmd.
10523 * maint-test-options.c (maintenance_test_options_command):
10524 Remove.
10525 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
10526 * macrocmd.c (macro_command): Remove
10527 (_initialize_macrocmd): Use add_basic_prefix_cmd.
10528 * language.c (set_check, show_check): Remove.
10529 (_initialize_language): Use add_basic_prefix_cmd,
10530 add_show_prefix_cmd.
10531 * infcmd.c (unset_command): Remove.
10532 (_initialize_infcmd): Use add_basic_prefix_cmd.
10533 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
10534 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
10535 add_show_prefix_cmd.
10536 * go32-nat.c (go32_info_dos_command): Remove.
10537 (_initialize_go32_nat): Use add_basic_prefix_cmd.
10538 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
10539 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
10540 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
10541 (_initialize_frame): Use add_basic_prefix_cmd,
10542 add_show_prefix_cmd.
10543 * dcache.c (set_dcache_command, show_dcache_command): Remove.
10544 (_initialize_dcache): Use add_basic_prefix_cmd,
10545 add_show_prefix_cmd.
10546 * cp-support.c (maint_cplus_command): Remove.
10547 (_initialize_cp_support): Use add_basic_prefix_cmd.
10548 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
10549 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
10550 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
10551 add_basic_prefix_cmd, add_show_prefix_cmd.
10552 * breakpoint.c (save_command): Remove.
10553 (_initialize_breakpoint): Use add_basic_prefix_cmd.
10554 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
10555 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
10556 add_show_prefix_cmd.
10557 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
10558 (set_ada_command, show_ada_command): Remove.
10559 (_initialize_ada_language): Use add_basic_prefix_cmd,
10560 add_show_prefix_cmd.
10561 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
10562
3557f442
KR
105632020-04-16 Kamil Rytarowski <n54@gmx.com>
10564
10565 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
10566 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
10567
16197208
SM
105682020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
10569
10570 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
10571 warning messages.
10572
00ac85d3
SM
105732020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
10574
10575 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
10576 import table is not at beginning of .idata section.
10577
381ce63f
PA
105782020-04-16 Pedro Alves <palves@redhat.com>
10579
10580 * inferior.c (delete_inferior): Use delete operator directly
10581 instead of delete_program_space.
10582 * progspace.c (add_program_space): New, factored out from
10583 program_space::program_space.
10584 (remove_program_space): New, factored out from
10585 delete_program_space.
10586 (program_space::program_space): Remove intro comment. Rewrite.
10587 (program_space::~program_space): Remove intro comment. Call
10588 remove_program_space.
10589 (delete_program_space): Delete.
10590 * progspace.h (program_space::program_space): Make explicit. Move
10591 intro comment here, adjusted.
10592 (program_space::~program_space): Move intro comment here,
10593 adjusted.
10594 (delete_program_space): Remove.
10595
a010605f
TT
105962020-04-16 Tom Tromey <tromey@adacore.com>
10597
10598 * windows-nat.c (windows_nat::handle_access_violation): New
10599 function.
10600 * nat/windows-nat.h (handle_access_violation): Declare.
10601 * nat/windows-nat.c (handle_exception): Move Cygwin code to
10602 windows-nat.c. Call handle_access_violation.
10603
efba5c23
TV
106042020-04-16 Tom de Vries <tdevries@suse.de>
10605
10606 PR symtab/25791
10607 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
10608 CUs without psymtab.
10609
97ed802d
KB
106102020-04-16 Kevin Buettner <kevinb@redhat.com>
10611
10612 * python/python.c (do_start_initialization): Don't call
10613 PyEval_InitThreads for Python 3.9 and beyond.
10614
c7d64809
KR
106152020-04-15 Kamil Rytarowski <n54@gmx.com>
10616
10617 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
10618 thread functions.
10619 (obsd_nat_target::wait): Likewise.
10620
ce127a96
TT
106212020-04-15 Tom Tromey <tromey@adacore.com>
10622
10623 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
10624 (DEBUG_EXCEPT): Use debug_printf.
10625
99f1bc6a
AB
106262020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
10627
10628 * completer.c (class completion_tracker::completion_hash_entry)
10629 <hash_name>: New member function.
10630 (completion_tracker::discard_completions): New callback to hash a
10631 completion_hash_entry, pass this to htab_create_alloc.
10632
a0e9b532
JT
106332016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
10634
10635 * windows-nat.c (windows_make_so): Warn rather than stopping with
10636 an error if realpath() fails.
10637
06ca5dd4
KR
106382020-04-14 Kamil Rytarowski <n54@gmx.com>
10639
10640 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
10641 (nbsd_nat_target::info_proc): Add do_status.
10642
194d088f
TV
106432020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
10644 Tom de Vries <tdevries@suse.de>
10645
10646 PR symtab/25718
10647 * psympriv.h (struct partial_symtab::read_symtab)
10648 (struct partial_symtab::expand_psymtab)
10649 (struct partial_symtab::read_dependencies): Update comments.
10650 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
10651 read_symtab for includer.
10652 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
10653 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
10654 (struct dwarf2_include_psymtab::m_readin): Remove.
10655 (struct dwarf2_include_psymtab::includer): New member function.
10656 (dwarf2_psymtab::expand_psymtab): Assert !readin.
10657
c1a66c06
TV
106582020-04-14 Tom de Vries <tdevries@suse.de>
10659
10660 PR symtab/25720
10661 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
10662 with NULL symbol_matcher and lookup_name.
10663 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
10664 and lookup_name.
10665 * dwarf2/read.c (dw2_expand_symtabs_matching)
10666 (dw2_debug_names_expand_symtabs_matching): Same.
10667 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
10668 Make lookup_name a pointer. Update comment.
10669 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
10670 lookup_name being a pointer.
10671 * symfile.c (expand_symtabs_matching): Same.
10672 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
10673 * linespec.c (iterate_over_all_matching_symtabs): Same.
10674
400b5eca
TT
106752020-04-13 Tom Tromey <tom@tromey.com>
10676
10677 * run-on-main-thread.c: Update include.
10678 * unittests/main-thread-selftests.c: Update include.
10679 * tui/tui-win.c: Update include.
10680 * tui/tui-io.c: Update include.
10681 * tui/tui-interp.c: Update include.
10682 * tui/tui-hooks.c: Update include.
10683 * top.h: Update include.
10684 * top.c: Update include.
10685 * ser-base.c: Update include.
10686 * remote.c: Update include.
10687 * remote-notif.c: Update include.
10688 * remote-fileio.c: Update include.
10689 * record-full.c: Update include.
10690 * record-btrace.c: Update include.
10691 * python/python.c: Update include.
10692 * posix-hdep.c: Update include.
10693 * mingw-hdep.c: Update include.
10694 * mi/mi-main.c: Update include.
10695 * mi/mi-interp.c: Update include.
10696 * main.c: Update include.
10697 * linux-nat.c: Update include.
10698 * interps.c: Update include.
10699 * infrun.c: Update include.
10700 * inf-loop.c: Update include.
10701 * event-top.c: Update include.
10702 * event-loop.c: Move to ../gdbsupport/.
10703 * event-loop.h: Move to ../gdbsupport/.
10704 * async-event.h: Update include.
10705 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
10706
93b54c8e
TT
107072020-04-13 Tom Tromey <tom@tromey.com>
10708
10709 * tui/tui-win.c: Include async-event.h.
10710 * remote.c: Include async-event.h.
10711 * remote-notif.c: Include async-event.h.
10712 * record-full.c: Include async-event.h.
10713 * record-btrace.c: Include async-event.h.
10714 * infrun.c: Include async-event.h.
10715 * event-top.c: Include async-event.h.
10716 * event-loop.h: Move some declarations to async-event.h.
10717 * event-loop.c: Don't include ser-event.h or top.h. Move some
10718 code to async-event.c.
10719 * async-event.h: New file.
10720 * async-event.c: New file.
10721 * Makefile.in (COMMON_SFILES): Add async-event.c.
10722 (HFILES_NO_SRCDIR): Add async-event.h.
10723
c1cd3163
TT
107242020-04-13 Tom Tromey <tom@tromey.com>
10725
10726 * utils.c (flush_streams): New function.
10727 * event-loop.c (gdb_wait_for_event): Call flush_streams.
10728
29f2bf4f
TT
107292020-04-13 Tom Tromey <tom@tromey.com>
10730
10731 * event-loop.c (handle_file_event): Use warning, not
10732 printf_unfiltered.
10733
98029d02
TT
107342020-04-13 Tom Tromey <tom@tromey.com>
10735
10736 * event-loop.c: Include <chrono>.
10737
06cc9596
TT
107382020-04-13 Tom Tromey <tom@tromey.com>
10739
10740 * gdb_select.h: Move to ../gdbsupport/.
10741 * event-loop.c: Update include path.
10742 * top.c: Update include path.
10743 * ser-base.c: Update include path.
10744 * ui-file.c: Update include path.
10745 * ser-tcp.c: Update include path.
10746 * guile/scm-ports.c: Update include path.
10747 * posix-hdep.c: Update include path.
10748 * ser-unix.c: Update include path.
10749 * gdb_usleep.c: Update include path.
10750 * mingw-hdep.c: Update include path.
10751 * inflow.c: Update include path.
10752 * infrun.c: Update include path.
10753 * event-top.c: Update include path.
10754
8ae8e197
TT
107552020-04-13 Tom Tromey <tom@tromey.com>
10756
10757 * configure: Rebuild.
10758 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
10759
58cf28e8
TT
107602020-04-13 Tom Tromey <tom@tromey.com>
10761
10762 * event-loop.h (start_event_loop): Don't declare.
10763 * event-loop.c (start_event_loop): Move...
10764 * main.c (start_event_loop): ...here. Now static.
10765
b7f999ae
SDJ
107662020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
10767
10768 * MAINTAINERS: Update my email address.
10769
1085dfd4
KR
107702020-04-12 Kamil Rytarowski <n54@gmx.com>
10771
10772 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
10773 IP_ALL.
10774
49d1d1f5
KR
107752020-04-12 Kamil Rytarowski <n54@gmx.com>
10776
10777 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 10778 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 10779
b4848d2a
KR
107802020-04-12 Kamil Rytarowski <n54@gmx.com>
10781
10782 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 10783 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 10784
51c133d5
KR
107852020-04-12 Kamil Rytarowski <n54@gmx.com>
10786
10787 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
10788
54b8cbd0
KR
107892020-04-11 Kamil Rytarowski <n54@gmx.com>
10790
10791 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
10792 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
10793 (nbsd_nat_target::info_proc): New functions.
10794 * nbsd-nat.c (kinfo_get_vmmap): New function.
10795 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
10796 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
10797 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
10798 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
10799 functions.
10800 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
10801 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
10802 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
10803 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
10804 (KINFO_VME_FLAG_GROWS_DOWN): New.
10805
cf83625d
AS
108062020-04-10 Artur Shepilko <nomadbyte@gmail.com>
10807
10808 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
10809 bit shift.
10810
0c4311ab
TT
108112020-04-10 Tom Tromey <tromey@adacore.com>
10812
10813 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
10814
3e65b3e9
TT
108152020-04-10 Tom Tromey <tromey@adacore.com>
10816
10817 * symtab.c (get_symbol_address, get_msymbol_address): Skip
10818 separate debug files.
10819
13302e95
HD
108202020-04-10 Hannes Domani <ssbssa@yahoo.de>
10821
10822 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
10823 Move to...
10824 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
10825 ... here.
10826 * windows-nat.c (windows_nat_target::get_windows_debug_event):
10827 Check for STATUS_WX86_BREAKPOINT.
10828 (windows_nat_target::wait): Same.
10829
bdfc1e8a
TV
108302020-04-10 Tom de Vries <tdevries@suse.de>
10831
10832 PR cli/25808
10833 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
10834
f4460aec
SM
108352020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10836
10837 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
10838 (Write After Approval): Remove Tom de Vries.
10839
a25198bb
BE
108402020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
10841
10842 revert partially:
10843 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10844
aac66a4c
SM
10845 * buildsym.c (record_line): Fix undefined behavior and preserve
10846 lines at eof.
a25198bb 10847
206c98a6
KR
108482020-04-09 Kamil Rytarowski <n54@gmx.com>
10849
10850 * auxv.h (svr4_auxv_parse): New.
10851 * auxv.c (default_auxv_parse): Split into default_auxv_parse
10852 and generic_auxv_parse.
10853 (svr4_auxv_parse): Add.
10854 * obsd-tdep.c: Include "auxv.h".
10855 (obsd_auxv_parse): Remove.
10856 (obsd_init_abi): Remove comment.
10857 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
10858 from `obsd_auxv_parse' to `svr4_auxv_parse'.
10859 * nbsd-tdep.c: Include "auxv.h".
10860 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
10861
71fbdbaf
TT
108622020-04-08 Tom Tromey <tromey@adacore.com>
10863
10864 * nat/windows-nat.h (last_wait_event): Don't declare.
10865 (wait_for_debug_event): Update comment.
10866 * nat/windows-nat.c (last_wait_event): Now static.
10867
2c1d95e8
TT
108682020-04-08 Tom Tromey <tromey@adacore.com>
10869
10870 * windows-nat.c (wait_for_debug_event): Move to
10871 nat/windows-nat.c.
10872 * nat/windows-nat.h (wait_for_debug_event): Declare.
10873 * nat/windows-nat.c (wait_for_debug_event): Move from
10874 windows-nat.c. No longer static.
10875
d2977bc4
TT
108762020-04-08 Tom Tromey <tromey@adacore.com>
10877
10878 * windows-nat.c (get_windows_debug_event): Use
10879 fetch_pending_stop.
10880 * nat/windows-nat.h (fetch_pending_stop): Declare.
10881 * nat/windows-nat.c (fetch_pending_stop): New function.
10882
e758e19c
TT
108832020-04-08 Tom Tromey <tromey@adacore.com>
10884
10885 * windows-nat.c (windows_continue): Use matching_pending_stop and
10886 continue_last_debug_event.
10887 * nat/windows-nat.h (matching_pending_stop)
10888 (continue_last_debug_event): Declare.
10889 * nat/windows-nat.c (DEBUG_EVENTS): New define.
10890 (matching_pending_stop, continue_last_debug_event): New
10891 functions.
10892
8d30e395
TT
108932020-04-08 Tom Tromey <tromey@adacore.com>
10894
10895 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
10896 (handle_exception_result): Move to nat/windows-nat.h.
10897 (DEBUG_EXCEPTION_SIMPLE): Remove.
10898 (windows_nat::handle_ms_vc_exception): New function.
10899 (handle_exception): Move to nat/windows-nat.c.
10900 (get_windows_debug_event): Update.
10901 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
10902 nat/windows-nat.c.
10903 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
10904 (handle_exception_result): Move from windows-nat.c.
10905 (handle_exception): Declare.
10906 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
10907 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
10908 windows-nat.c.
10909
29de418d
TT
109102020-04-08 Tom Tromey <tromey@adacore.com>
10911
10912 * windows-nat.c (exception_count, event_count): Remove.
10913 (handle_exception, get_windows_debug_event)
10914 (do_initial_windows_stuff): Update.
10915
a816ba18
TT
109162020-04-08 Tom Tromey <tromey@adacore.com>
10917
10918 * windows-nat.c (windows_nat::handle_load_dll)
10919 (windows_nat::handle_unload_dll): Rename. No longer static.
10920 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
10921 Declare.
10922
a00caa12
TT
109232020-04-08 Tom Tromey <tromey@adacore.com>
10924
10925 * complaints.h (stop_whining): Declare at top-level.
10926 (complaint): Don't declare stop_whining.
10927
d41b524f
TT
109282020-04-08 Tom Tromey <tromey@adacore.com>
10929
10930 * windows-nat.c (windows_nat::handle_output_debug_string):
10931 Rename. No longer static.
10932 * nat/windows-nat.h (handle_output_debug_string): Declare.
10933
3c76026d
TT
109342020-04-08 Tom Tromey <tromey@adacore.com>
10935
10936 * windows-nat.c (current_process_handle, current_process_id)
10937 (main_thread_id, last_sig, current_event, last_wait_event)
10938 (current_windows_thread, desired_stop_thread_id, pending_stops)
10939 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
10940 (display_selectors, fake_create_process)
10941 (get_windows_debug_event): Update.
10942 * nat/windows-nat.h (current_process_handle, current_process_id)
10943 (main_thread_id, last_sig, current_event, last_wait_event)
10944 (current_windows_thread, desired_stop_thread_id, pending_stops)
10945 (struct pending_stop, siginfo_er): Move from windows-nat.c.
10946 * nat/windows-nat.c (current_process_handle, current_process_id)
10947 (main_thread_id, last_sig, current_event, last_wait_event)
10948 (current_windows_thread, desired_stop_thread_id, pending_stops)
10949 (siginfo_er): New globals. Move from windows-nat.c.
10950
9d8679cc
TT
109512020-04-08 Tom Tromey <tromey@adacore.com>
10952
10953 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
10954 (handle_load_dll): Update.
10955 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
10956
28688adf
TT
109572020-04-08 Tom Tromey <tromey@adacore.com>
10958
10959 * windows-nat.c (enum thread_disposition_type): Move to
10960 nat/windows-nat.h.
10961 (windows_nat::thread_rec): Rename from thread_rec. No longer
10962 static.
10963 (windows_add_thread, windows_nat_target::fetch_registers)
10964 (windows_nat_target::store_registers, handle_exception)
10965 (windows_nat_target::resume, get_windows_debug_event)
10966 (windows_nat_target::get_tib_address)
10967 (windows_nat_target::thread_name)
10968 (windows_nat_target::thread_alive): Update.
10969 * nat/windows-nat.h (enum thread_disposition_type): Move from
10970 windows-nat.c.
10971 (thread_rec): Declare.
10972
4834dad0
TT
109732020-04-08 Tom Tromey <tromey@adacore.com>
10974
10975 * windows-nat.c: Add "using namespace".
10976 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
10977 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
10978
65bafd5b
TT
109792020-04-08 Tom Tromey <tromey@adacore.com>
10980
10981 * nat/windows-nat.h (struct windows_thread_info): Declare
10982 destructor.
10983 * nat/windows-nat.c (~windows_thread_info): New.
10984
0a4afda3
TT
109852020-04-08 Tom Tromey <tromey@adacore.com>
10986
10987 PR gdb/22992
10988 * windows-nat.c (current_event): Update comment.
10989 (last_wait_event, desired_stop_thread_id): New globals.
10990 (struct pending_stop): New.
10991 (pending_stops): New global.
10992 (windows_nat_target) <stopped_by_sw_breakpoint>
10993 <supports_stopped_by_sw_breakpoint>: New methods.
10994 (windows_fetch_one_register): Add assertions. Adjust PC.
10995 (windows_continue): Handle pending stops. Suspend other threads
10996 when stepping. Use last_wait_event
10997 (wait_for_debug_event): New function.
10998 (get_windows_debug_event): Use wait_for_debug_event. Handle
10999 pending stops. Queue spurious stops.
11000 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
11001 (windows_nat_target::kill): Use wait_for_debug_event.
11002 * nat/windows-nat.h (struct windows_thread_info)
11003 <stopped_at_software_breakpoint>: New field.
11004 * nat/windows-nat.c (windows_thread_info::resume): Clear
11005 stopped_at_software_breakpoint.
11006
8e61ebec
TT
110072020-04-08 Tom Tromey <tromey@adacore.com>
11008
11009 * windows-nat.c (enum thread_disposition_type): New.
11010 (thread_rec): Replace "get_context" parameter with "disposition";
11011 change type.
11012 (windows_add_thread, windows_nat_target::fetch_registers)
11013 (windows_nat_target::store_registers, handle_exception)
11014 (windows_nat_target::resume, get_windows_debug_event)
11015 (windows_nat_target::get_tib_address)
11016 (windows_nat_target::thread_name)
11017 (windows_nat_target::thread_alive): Update.
11018
98a03287
TT
110192020-04-08 Tom Tromey <tromey@adacore.com>
11020
11021 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
11022 (windows_continue): Use windows_continue::resume.
11023 * nat/windows-nat.h (struct windows_thread_info) <suspend,
11024 resume>: Declare new methods.
11025 * nat/windows-nat.c: New file.
11026 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
11027
7c7411bc
TT
110282020-04-08 Tom Tromey <tromey@adacore.com>
11029
11030 * windows-nat.c (windows_add_thread, windows_delete_thread)
11031 (windows_nat_target::fetch_registers)
11032 (windows_nat_target::store_registers, fake_create_process)
11033 (windows_nat_target::resume, windows_nat_target::resume)
11034 (get_windows_debug_event, windows_nat_target::wait)
11035 (windows_nat_target::pid_to_str)
11036 (windows_nat_target::get_tib_address)
11037 (windows_nat_target::get_ada_task_ptid)
11038 (windows_nat_target::thread_name)
11039 (windows_nat_target::thread_alive): Use lwp, not tid.
11040
2950fdf7
TT
110412020-04-08 Tom Tromey <tromey@adacore.com>
11042
11043 * windows-nat.c (handle_exception)
11044 (windows_nat_target::thread_name): Update.
11045 * nat/windows-nat.h (windows_thread_info): Remove destructor.
11046 <name>: Now unique_xmalloc_ptr.
11047
62fe396b
TT
110482020-04-08 Tom Tromey <tromey@adacore.com>
11049
11050 * windows-nat.c (thread_rec)
11051 (windows_nat_target::fetch_registers): Update.
11052 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
11053 Update comment.
11054 <debug_registers_changed, reload_context>: Now bool.
11055
e9534bd2
TT
110562020-04-08 Tom Tromey <tromey@adacore.com>
11057
11058 * windows-nat.c (windows_add_thread): Use new.
11059 (windows_init_thread_list, windows_delete_thread): Use delete.
11060 (get_windows_debug_event): Update.
11061 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
11062 destructor, and initializers.
11063
ae1f8880
TT
110642020-04-08 Tom Tromey <tromey@adacore.com>
11065
11066 * windows-nat.c (struct windows_thread_info): Remove.
11067 * nat/windows-nat.h: New file.
11068
55a1e039
TT
110692020-04-08 Tom Tromey <tromey@adacore.com>
11070
11071 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
11072 (thread_rec, windows_add_thread, windows_delete_thread)
11073 (windows_continue): Update.
11074
93366324
TT
110752020-04-08 Tom Tromey <tromey@adacore.com>
11076
11077 * windows-nat.c (struct windows_thread_info): Remove typedef.
11078 (thread_head): Remove.
11079 (thread_list): New global.
11080 (thread_rec, windows_add_thread, windows_init_thread_list)
11081 (windows_delete_thread, windows_continue): Update.
11082
0f2265e2
SM
110832020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11084
11085 * windows-tdep.h (windows_init_abi): Add comment.
11086 (cygwin_init_abi): New declaration.
11087 * windows-tdep.c: Split signal enumeration in two, one for
11088 Windows and one for Cygwin.
11089 (windows_gdb_signal_to_target): Only deal with signal of the
11090 Windows OS ABI.
11091 (cygwin_gdb_signal_to_target): New function.
11092 (windows_init_abi): Rename to windows_init_abi_common, don't set
11093 gdb_signal_to_target gdbarch method. Add new new function with
11094 this name.
11095 (cygwin_init_abi): New function.
11096 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
11097 comment. Don't call windows_init_abi.
11098 (amd64_windows_init_abi): Add comment, call windows_init_abi.
11099 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
11100 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
11101 i386_windows_init_abi_common, don't call windows_init_abi. Add
11102 a new function of this name.
11103 (i386_cygwin_init_abi): New function.
11104 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
11105 OS ABI Cygwin.
11106
3810f182
SM
111072020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11108
11109 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
11110 parameter.c.
11111 (dwarf2_read_gdb_index): Update.
11112
063f8e80
KR
111132020-04-07 Kamil Rytarowski <n54@gmx.com>
11114
11115 * nbsd-tdep.c: Include "objfiles.h".
11116 (nbsd_skip_solib_resolver): New.
11117 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
11118
85a9510c 111192020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11120
11121 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
11122 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
11123 with DW_LLE_base_addressx are being emitted in DWARFv5.
11124 Add the newly added kind DW_LOC_OFFSET_PAIR also.
11125 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
11126 unsigned integer.
11127
9fc3eaae 111282020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11129
11130 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
11131 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
11132 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
11133 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
11134 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
11135 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
11136 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
11137
11138
41144253 111392020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11140
11141 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
11142 (read_loclist_index): New function definition.
11143 (lookup_loclist_base): New function definition.
11144 (read_loclist_header): New function definition.
11145 (dwarf2_cu): Add loclist_base and loclist_header field.
11146 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
11147 (read_full_die_1): Read the value of DW_AT_loclists_base.
11148 (read_attribute_reprocess): Handle DW_FORM_loclistx.
11149 (read_attribute_value): Handle DW_FORM_loclistx.
11150 (skip_one_die): Handle DW_FORM_loclistx.
11151 (loclist_header): New structure declaration.
11152 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
11153
9f4e76a4
SM
111542020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11155
11156 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
11157 constructor. Remove `addr` parameter from other constructor and
11158 add `per_cu` parameter.
11159 * dwarf2/read.c (create_partial_symtab): Update.
11160
25c11aca
TV
111612020-04-07 Tom de Vries <tdevries@suse.de>
11162
11163 PR symtab/25796
11164 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
11165 (partial_die_info::fixup): Inherit has_const_value.
11166
5707e24b
TV
111672020-04-07 Tom de Vries <tdevries@suse.de>
11168
11169 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
11170 symbols without address.
11171
05f00e22
KR
111722020-04-06 Kamil Rytarowski <n54@gmx.com>
11173
11174 * nbsd-nat.h (struct thread_info): Add forward declaration.
11175 (nbsd_nat_target::thread_alive): Add.
11176 (nbsd_nat_target::thread_name): Likewise.
11177 (nbsd_nat_target::update_thread_list): Likewise.
11178 (update_thread_list::post_attach): Likewise.
11179 (post_attach::pid_to_str): Likewise.
11180 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
11181 (nbsd_thread_lister): Add.
11182 (nbsd_nat_target::thread_alive): Likewise.
11183 (nbsd_nat_target::thread_name): Likewise.
11184 (nbsd_add_threads): Likewise.
11185 (update_thread_list::post_attach): Likewise.
11186 (nbsd_nat_target::update_thread_list): Likewise.
11187 (post_attach::pid_to_str): Likewise.
11188
6ee448cc
TT
111892020-04-06 Tom Tromey <tromey@adacore.com>
11190
11191 * ada-valprint.c (print_variant_part): Extract the variant field.
11192 (print_field_values): Use the field as the outer value when
11193 recursing.
11194
dea34e8c
TT
111952020-04-06 Tom Tromey <tromey@adacore.com>
11196
11197 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
11198 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
11199 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
11200 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
11201 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
11202
93689ce9
TT
112032020-04-06 Tom Tromey <tromey@adacore.com>
11204
11205 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
11206 TYPE_CODE_ERROR.
11207
79743962
KR
112082020-04-06 Kamil Rytarowski <n54@gmx.com>
11209
11210 * nbsd-tdep.c: Include "gdbarch.h".
11211 Define enum with NetBSD signal numbers.
11212 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
11213 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
11214 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
11215 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
11216 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
11217 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
11218 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
11219 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11220 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
11221 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
11222 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
11223 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
11224
9e7c9a03
HD
112252020-04-03 Hannes Domani <ssbssa@yahoo.de>
11226
11227 PR gdb/25325
11228 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
11229
d9e49b61
TT
112302020-04-03 Tom Tromey <tromey@adacore.com>
11231
11232 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
11233 Read constant block.
11234
e0fc5c3f
SM
112352020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11236
11237 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
11238 (gdb_bfd_get_full_section_contents): New declaration.
11239 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
11240 * windows-tdep.c (is_linked_with_cygwin_dll): Use
11241 gdb_bfd_get_full_section_contents.
11242
e2ff18a0
SM
112432020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11244
11245 * exec.c (build_section_table): Replace internal_error with
11246 gdb_assert.
11247 (section_table_xfer_memory_partial): Likewise.
11248 * mdebugread.c (parse_partial_symbols): Likewise.
11249 * psymtab.c (lookup_partial_symbol): Likewise.
11250 * utils.c (wrap_here): Likewise.
11251
0830d301
TT
112522020-04-02 Tom Tromey <tromey@adacore.com>
11253
11254 * f-lang.c (build_fortran_types): Use arch_type to initialize
11255 builtin_complex_s32 in the TYPE_CODE_ERROR case.
11256
e7da7f8f
TT
112572020-04-02 Tom Tromey <tromey@adacore.com>
11258
11259 * dwarf2/read.c (partial_die_info::read): Do not create a vector
11260 of attributes.
11261
c90d28ac
AB
112622020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
11263 Bernd Edlinger <bernd.edlinger@hotmail.de>
11264 Tom Tromey <tromey@adacore.com>
11265
11266 * buildsym.c (buildsym_compunit::record_line): Remove
11267 deduplication code.
11268
1aa98955
TV
112692020-04-02 Tom de Vries <tdevries@suse.de>
11270
11271 PR ada/24671
11272 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
11273
d3214198
TV
112742020-04-02 Tom de Vries <tdevries@suse.de>
11275
11276 * dwarf2/read.c (dwarf2_gdb_index_functions,
11277 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
11278 NULL.
11279 * psymtab.c (psym_lookup_global_symbol_language): New function.
11280 (psym_functions): Init psym_lookup_global_symbol_language with
11281 psym_lookup_global_symbol_language.
11282 * symfile-debug.c (debug_sym_quick_functions): Init
11283 lookup_global_symbol_language with NULL.
11284 * symfile.c (set_initial_language): Remove fixme comment.
11285 * symfile.h (struct quick_symbol_functions): Add
11286 lookup_global_symbol_language.
11287 * symtab.c (find_quick_global_symbol_language): New function.
11288 (find_main_name): Use find_quick_global_symbol_language.
11289
2836752f
SM
112902020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
11291
11292 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
11293
64dc2d4b
BE
112942020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11295
11296 * buildsym.c (record_line): Fix undefined behavior and preserve
11297 lines at eof.
11298
bbe3dc41
BE
112992020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11300
11301 * buildsym.c (record_line): Fix the resizing condition.
11302
6b4a335b
TT
113032020-04-01 Tom Tromey <tom@tromey.com>
11304
11305 * value.h (value_literal_complex): Add comment.
11306 * valops.c (value_literal_complex): Refer to value.h.
11307
3638a098
TT
113082020-04-01 Tom Tromey <tom@tromey.com>
11309
11310 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
11311 (scalar_type): New rule, from typebase.
11312 (typebase): Use scalar_type. Recognize complex types.
11313 (field_name): Handle FLOAT_KEYWORD.
11314 (ident_tokens): Add _Complex and __complex__.
11315
c34e8714
TT
113162020-04-01 Tom Tromey <tom@tromey.com>
11317
11318 PR exp/25299:
11319 * valarith.c (promotion_type, complex_binop): New functions.
11320 (scalar_binop): Handle complex numbers. Use promotion_type.
11321 (value_pos, value_neg, value_complement): Handle complex numbers.
11322
fa649bb7
TT
113232020-04-01 Tom Tromey <tom@tromey.com>
11324
11325 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
11326 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
11327 (parse_number): Handle complex numbers.
11328
981c08ce
TT
113292020-04-01 Tom Tromey <tom@tromey.com>
11330
11331 * c-valprint.c (c_decorations): Change complex suffix to "i".
11332
4c99290d
TT
113332020-04-01 Tom Tromey <tom@tromey.com>
11334
11335 * valprint.c (generic_value_print_complex): Use accessors.
11336 * value.h (value_real_part, value_imaginary_part): Declare.
11337 * valops.c (value_real_part, value_imaginary_part): New
11338 functions.
11339 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
11340
5b930b45
TT
113412020-04-01 Tom Tromey <tom@tromey.com>
11342
11343 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
11344 (read_range_type): Update.
11345 * mdebugread.c (basic_type): Update.
11346 * go-lang.c (build_go_types): Use init_complex_type.
11347 * gdbtypes.h (struct main_type) <complex_type>: New member.
11348 (init_complex_type): Update.
11349 (arch_complex_type): Don't declare.
11350 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
11351 Make name if none given. Use alloc_type_copy. Look for cached
11352 complex type.
11353 (arch_complex_type): Remove.
11354 (gdbtypes_post_init): Use init_complex_type.
11355 * f-lang.c (build_fortran_types): Use init_complex_type.
11356 * dwarf2/read.c (read_base_type): Update.
11357 * d-lang.c (build_d_types): Use init_complex_type.
11358 * ctfread.c (read_base_type): Update.
11359
53cccef1
TBA
113602020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11361
11362 * infrun.c (stop_all_threads): Update assertion, plus when
11363 stopping threads, take into account that we might be trying
11364 to stop an all-stop target.
11365 (stop_waiting): Call 'stop_all_threads' if there exists a
11366 non-stop target.
11367
a0714d30
TBA
113682020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11369
11370 * target.h (exists_non_stop_target): New function declaration.
11371 * target.c (exists_non_stop_target): New function.
11372
60e22c1e
HD
113732020-04-01 Hannes Domani <ssbssa@yahoo.de>
11374
11375 PR gdb/24789
11376 * eval.c (is_integral_or_integral_reference): New function.
11377 (evaluate_subexp_standard): Allow integer references in
11378 pointer arithmetic.
11379
e139a727
TBA
113802020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11381
11382 * remote.c (remote_target::remote_parse_stop_reply): Remove the
11383 check for no ptid in the stop reply when the target is non-stop.
11384
e0802d59
TT
113852020-04-01 Tom Tromey <tromey@adacore.com>
11386
11387 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
11388 "name" parameter to rvalue reference. Initialize m_name_holder.
11389 <lookup_name_info>: New overloads.
11390 <name>: Return gdb::string_view.
11391 <c_str>: New method.
11392 <make_ignore_params>: Update.
11393 <search_name_hash>: Update.
11394 <language_lookup_name>: Return const char *.
11395 <m_name>: Change type.
11396 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
11397 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
11398 (lookup_name_info::match_any): Update.
11399 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
11400 Update.
11401 * minsyms.c (linkage_name_str): Update.
11402 * language.c (default_symbol_name_matcher): Update.
11403 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
11404 Update.
11405 * ada-lang.c (ada_fold_name): Change parameter to string_view.
11406 (ada_lookup_name_info::ada_lookup_name_info): Update.
11407 (literal_symbol_name_matcher): Update.
11408
8c072cb6
TT
114092020-04-01 Tom Tromey <tromey@adacore.com>
11410
11411 * psymtab.c (psymtab_search_name): Remove function.
11412 (psym_lookup_symbol): Create search name and lookup name here.
11413 (lookup_partial_symbol): Remove "name" parameter; add
11414 lookup_name.
11415 (psym_expand_symtabs_for_function): Update.
11416
6f29a534
TT
114172020-03-31 Joel Jones <joelkevinjones@gmail.com>
11418
11419 PR tui/25597:
11420 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
11421
af62665e
TT
114222020-03-31 Tom Tromey <tromey@adacore.com>
11423
11424 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
11425 memcpy.
11426
d1a89da5
NC
114272020-03-30 Nelson Chu <nelson.chu@sifive.com>
11428
11429 * features/riscv/32bit-csr.xml: Regenerated.
11430 * features/riscv/64bit-csr.xml: Regenerated.
11431
d8af9068
TT
114322020-03-30 Tom Tromey <tromey@adacore.com>
11433
11434 * ada-valprint.c (print_variant_part): Update.
11435 * ada-lang.h (ada_which_variant_applies): Update.
11436 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
11437 outer_valaddr parameters; replace with "outer" value parameter.
11438 (to_fixed_variant_branch_type): Update.
11439
227c0bf4
PFC
114402020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11441
11442 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
11443 <list>. Remove inclusion of observable.h.
11444 (PPC_DEBUG_CURRENT_VERSION): Move up define.
11445 (struct arch_lwp_info): New struct.
11446 (class ppc_linux_dreg_interface): New class.
11447 (struct ppc_linux_process_info): New struct.
11448 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
11449 <low_new_clone, low_forget_process, low_prepare_to_resume>
11450 <copy_thread_dreg_state, mark_thread_stale>
11451 <mark_debug_registers_changed, register_hw_breakpoint>
11452 <clear_hw_breakpoint, register_wp, clear_wp>
11453 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
11454 <num_memory_accesses, get_trigger_type>
11455 <create_watchpoint_request, hwdebug_point_cmp>
11456 <init_arch_lwp_info, get_arch_lwp_info>
11457 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
11458 methods.
11459 <struct ptid_hash>: New inner struct.
11460 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
11461 members.
11462 (saved_dabr_value, hwdebug_info, max_slots_number)
11463 (struct hw_break_tuple, struct thread_points, ppc_threads)
11464 (have_ptrace_hwdebug_interface)
11465 (hwdebug_find_thread_points_by_tid)
11466 (hwdebug_insert_point, hwdebug_remove_point): Remove.
11467 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
11468 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
11469 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
11470 use m_dreg_interface.
11471 (hwdebug_point_cmp): Change to...
11472 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
11473 reference arguments instead of pointers.
11474 (ppc_linux_nat_target::ranged_break_num_registers): Use
11475 m_dreg_interface.
11476 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
11477 m_dreg_interface. Call register_hw_breakpoint.
11478 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
11479 m_dreg_interface. Call clear_hw_breakpoint.
11480 (get_trigger_type): Change to...
11481 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
11482 comment.
11483 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
11484 use m_dreg_interface. Call register_hw_breakpoint.
11485 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
11486 use m_dreg_interface. Call clear_hw_breakpoint.
11487 (can_use_watchpoint_cond_accel): Change to...
11488 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
11489 method. Update comment, use m_dreg_interface and
11490 m_process_info.
11491 (calculate_dvc): Change to...
11492 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
11493 m_dreg_interface.
11494 (num_memory_accesses): Change to...
11495 (ppc_linux_nat_target::num_memory_accesses): ...this method.
11496 (check_condition): Change to...
11497 (ppc_linux_nat_target::check_condition): ...this method.
11498 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
11499 comment, use m_dreg_interface.
11500 (create_watchpoint_request): Change to...
11501 (ppc_linux_nat_target::create_watchpoint_request): ...this
11502 method. Use m_dreg_interface.
11503 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
11504 m_dreg_interface. Call register_hw_breakpoint or register_wp.
11505 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
11506 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
11507 (ppc_linux_nat_target::low_forget_process)
11508 (ppc_linux_nat_target::low_new_fork)
11509 (ppc_linux_nat_target::low_new_clone)
11510 (ppc_linux_nat_target::low_delete_thread)
11511 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
11512 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
11513 only call mark_thread_stale.
11514 (ppc_linux_thread_exit): Remove.
11515 (ppc_linux_nat_target::stopped_data_address): Change to...
11516 (ppc_linux_nat_target::low_stopped_data_address): This. Add
11517 comment, use m_dreg_interface and m_thread_hw_breakpoints.
11518 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
11519 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
11520 comment. Call low_stopped_data_address.
11521 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
11522 m_dreg_interface.
11523 (ppc_linux_nat_target::masked_watch_num_registers): Use
11524 m_dreg_interface.
11525 (ppc_linux_nat_target::copy_thread_dreg_state)
11526 (ppc_linux_nat_target::mark_thread_stale)
11527 (ppc_linux_nat_target::mark_debug_registers_changed)
11528 (ppc_linux_nat_target::register_hw_breakpoint)
11529 (ppc_linux_nat_target::clear_hw_breakpoint)
11530 (ppc_linux_nat_target::register_wp)
11531 (ppc_linux_nat_target::clear_wp)
11532 (ppc_linux_nat_target::init_arch_lwp_info)
11533 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
11534 (_initialize_ppc_linux_nat): Remove observer callback.
11535
4db10d8f
PFC
115362020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11537
11538 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
11539 (ppc_linux_nat_target::auxv_parse)
11540 (ppc_linux_nat_target::read_description)
11541 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
11542 Move up.
11543
1310c1b0
PFC
115442020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11545
11546 * linux-nat.h (low_new_clone): New method.
11547 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
11548
69b037c3
SM
115492020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
11550
11551 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
11552 (dbx_expand_psymtab): ... this.
11553 (start_psymtab): Update.
11554 * mdebugread.c (psymtab_to_symtab_1): Rename to...
11555 (mdebug_expand_psymtab): ... this.
11556 (parse_partial_symbols): Update.
11557 (new_psymtab): Update.
11558 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
11559 (xcoff_expand_psymtab): ... this.
11560 (xcoff_start_psymtab): Update.
11561
48993951
SM
115622020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
11563
11564 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
11565 <expand_dependencies>: ... this.
11566 * psymtab.c (partial_symtab::read_dependencies): Rename to...
11567 (partial_symtab::expand_dependencies): ... this.
11568 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
11569 Update.
11570 (dwarf2_psymtab::expand_psymtab): Update.
11571 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
11572 * mdebugread.c (psymtab_to_symtab_1): Update.
11573 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
11574
3ad83046
SM
115752020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
11576
11577 * psympriv.h (discard_psymtab): Remove.
11578 * dbxread.c (dbx_end_psymtab): Update.
11579 * xcoffread.c (xcoff_end_psymtab): Update.
11580
4d1b9ab6
TT
115812020-03-28 Tom Tromey <tom@tromey.com>
11582
11583 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
11584 comment.
11585
f1749218
TT
115862020-03-28 Tom Tromey <tom@tromey.com>
11587
11588 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
11589
ebea7626
HD
115902020-03-27 Hannes Domani <ssbssa@yahoo.de>
11591
11592 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
11593
a879b4d5
JB
115942020-03-26 John Baldwin <jhb@FreeBSD.org>
11595
11596 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
11597
0826b30a
TT
115982020-03-26 Tom Tromey <tom@tromey.com>
11599
11600 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
11601 (mark_common_block_symbol_computed, read_tag_string_type)
11602 (attr_to_dynamic_prop, read_subrange_type): Update.
11603 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
11604 to be methods on struct attribute.
11605 (skip_one_die, process_imported_unit_die, read_namespace_alias)
11606 (read_call_site_scope, partial_die_info::read)
11607 (partial_die_info::read, lookup_die_type, follow_die_ref):
11608 Update.
11609 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
11610 from dwarf2_get_ref_die_offset.
11611 (attribute::constant_value): New method, from
11612 dwarf2_get_attr_constant_value.
11613 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
11614 Declare method.
11615 <constant_value>: New method.
11616
2b2558bf
TT
116172020-03-26 Tom Tromey <tom@tromey.com>
11618
11619 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
11620 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
11621 (dwarf_type_encoding_name): Move to stringify.c.
11622 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
11623 * dwarf2/stringify.c: New file.
11624 * dwarf2/stringify.h: New file.
11625
eeb64781
TT
116262020-03-26 Tom Tromey <tom@tromey.com>
11627
11628 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
11629 Rewrite.
11630
a39fdb41
TT
116312020-03-26 Tom Tromey <tom@tromey.com>
11632
11633 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
11634 methods.
11635 * dwarf2/read.c (lookup_addr_base): Move to die.h.
11636 (lookup_ranges_base): Likewise.
11637 (read_cutu_die_from_dwo, read_full_die_1): Update.
11638
436c571c
TT
116392020-03-26 Tom Tromey <tom@tromey.com>
11640
11641 * dwarf2/read.c (read_import_statement, read_file_scope)
11642 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
11643 (read_lexical_block_scope, read_call_site_scope)
11644 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
11645 (handle_struct_member_die, process_structure_scope)
11646 (update_enumeration_type_from_children)
11647 (process_enumeration_scope, read_array_type, read_common_block)
11648 (read_namespace, read_module, read_subroutine_type): Update.
11649 (sibling_die): Remove.
11650
052c8bb8
TT
116512020-03-26 Tom Tromey <tom@tromey.com>
11652
11653 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
11654 (build_type_psymtabs_reader, read_structure_type)
11655 (read_enumeration_type, read_full_die_1): Update.
11656 (dwarf2_attr_no_follow): Move to die.h.
11657 * dwarf2/die.h (struct die_info) <attr>: New method.
11658
2b24b6e4
TT
116592020-03-26 Tom Tromey <tom@tromey.com>
11660
11661 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
11662 <base_address>: Now an optional.
11663 (dwarf2_find_base_address, dwarf2_rnglists_process)
11664 (dwarf2_ranges_process, fill_in_loclist_baton)
11665 (dwarf2_symbol_mark_computed): Update.
11666
c2d50fd0
TT
116672020-03-26 Tom Tromey <tom@tromey.com>
11668
11669 * dwarf2/read.c (struct die_info): Move to die.h.
11670 * dwarf2/die.h: New file.
11671
0df7ad3a
TT
116722020-03-26 Tom Tromey <tom@tromey.com>
11673
11674 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
11675 * dwarf2/read.c
11676 (dwarf2_statement_list_fits_in_line_number_section_complaint):
11677 Move to line-header.c.
11678 (read_checked_initial_length_and_offset, read_formatted_entries):
11679 Likewise.
11680 (dwarf_decode_line_header): Split into two.
11681 * dwarf2/line-header.c
11682 (dwarf2_statement_list_fits_in_line_number_section_complaint):
11683 Move from read.c.
11684 (read_checked_initial_length_and_offset, read_formatted_entries):
11685 Likewise.
11686 (dwarf_decode_line_header): New function, split from read.c.
11687
86c0bb4c
TT
116882020-03-26 Tom Tromey <tom@tromey.com>
11689
11690 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
11691 Declare method.
11692 * dwarf2/read.c (read_attribute_value): Update.
11693 (dwarf2_per_objfile::read_line_string): Rename from
11694 read_indirect_line_string.
11695 (read_formatted_entries): Update.
11696
2ef46c2f
TT
116972020-03-26 Tom Tromey <tom@tromey.com>
11698
11699 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
11700 variable.
11701
4f9c1eda
TT
117022020-03-26 Tom Tromey <tom@tromey.com>
11703
11704 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
11705 const.
11706 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
11707 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
11708 parameter const.
11709
5a0e026f
TT
117102020-03-26 Tom Tromey <tom@tromey.com>
11711
11712 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
11713 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
11714 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
11715 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
11716
8844c11b
TT
117172020-03-26 Tom Tromey <tom@tromey.com>
11718
11719 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
11720 file_names_size, file_full_name, file_file_name>: Use const.
11721 <file_name_at, file_names>: Add const overload.
11722 * dwarf2/line-header.c (line_header::file_file_name)
11723 (line_header::file_full_name): Update.
11724
c90ec28a
TT
117252020-03-26 Tom Tromey <tom@tromey.com>
11726
11727 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
11728 (macro_start_file, consume_improper_spaces)
11729 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
11730 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
11731 (dwarf_decode_macros): Move to macro.c.
11732 * dwarf2/macro.c: New file.
11733 * dwarf2/macro.h: New file.
11734 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
11735
4f44ae6c
TT
117362020-03-26 Tom Tromey <tom@tromey.com>
11737
11738 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
11739 method.
11740 * dwarf2/section.c: New method. From
11741 read_indirect_string_at_offset_from.
11742 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
11743 (read_indirect_string_at_offset_from): Move to section.c.
11744 (read_indirect_string_at_offset): Rewrite.
11745 (read_indirect_line_string_at_offset): Remove.
11746 (read_indirect_string, read_indirect_line_string)
11747 (dwarf_decode_macro_bytes): Update.
11748
a0194fa8
TT
117492020-03-26 Tom Tromey <tom@tromey.com>
11750
11751 * dwarf2/section.h (struct dwarf2_section_info)
11752 <overload_complaint>: Declare.
11753 (dwarf2_section_buffer_overflow_complaint): Don't declare.
11754 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
11755 Rename from dwarf2_section_buffer_overflow_complaint.
11756 * dwarf2/read.c (skip_one_die, partial_die_info::read)
11757 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
11758
3d27bbdb
TT
117592020-03-26 Tom Tromey <tom@tromey.com>
11760
11761 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
11762 Declare.
11763 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
11764 Move from read.c.
11765 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
11766 to section.c.
11767
9eac9650
TT
117682020-03-26 Tom Tromey <tom@tromey.com>
11769
11770 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
11771
bf80d710
TT
117722020-03-26 Tom Tromey <tom@tromey.com>
11773
11774 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
11775 "builder".
11776 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
11777 parameter.
11778 (dwarf_decode_macros): Update.
11779
0314b390
TT
117802020-03-26 Tom Tromey <tom@tromey.com>
11781
11782 * dwarf2/read.c (read_attribute_value): Update.
11783 (read_indirect_string_from_dwz): Move to dwz.c; change into
11784 method.
11785 (dwarf_decode_macro_bytes): Update.
11786 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
11787 * dwarf2/dwz.c: New file.
11788 * Makefile.in (COMMON_SFILES): Add dwz.c.
11789
9fda78b6
TT
117902020-03-26 Tom Tromey <tom@tromey.com>
11791
11792 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
11793 * dwarf2/read.c: Add include.
11794 * dwarf2/index-write.c: Add include.
11795 * dwarf2/index-cache.c: Add include.
11796 * dwarf2/dwz.h: New file.
11797
33aa3c10
TT
117982020-03-25 Tom Tromey <tom@tromey.com>
11799
11800 * compile/compile-object-load.c (get_out_value_type): Mention
11801 correct symbol name in error message.
11802
d503b685
HD
118032020-03-25 Hannes Domani <ssbssa@yahoo.de>
11804
11805 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
11806
7b1eff95
TV
118072020-03-25 Tom de Vries <tdevries@suse.de>
11808
11809 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
11810 * symmisc.c (dump_symtab_1): Print user and includes fields.
11811 (maintenance_info_symtabs): Same.
11812
dd895392
AB
118132020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
11814
11815 PR gdb/25534
11816 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
11817 (riscv_regcache_cooked_write): New function.
11818 (riscv_push_dummy_call): Use new function.
11819 (riscv_return_value): Likewise.
11820
5ab2fbf1
SM
118212020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
11822
11823 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
11824 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
11825 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
11826 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
11827 * infrun.c (follow_fork): Likewise.
11828 (follow_fork_inferior): Likewise.
11829 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
11830 * linux-nat.h (class linux_nat_target): Likewise.
11831 * remote.c (class remote_target) <follow_fork>: Likewise.
11832 (remote_target::follow_fork): Likewise.
11833 * target-delegates.c: Re-generate.
11834 * target.c (default_follow_fork): Likewise.
11835 (target_follow_fork): Likewise.
11836 * target.h (struct target_ops) <follow_fork>: Likewise.
11837 (target_follow_fork): Likewise.
11838
a64fafb5
TV
118392020-03-24 Tom de Vries <tdevries@suse.de>
11840
11841 * psymtab.c (maintenance_info_psymtabs): Print user field.
11842
fe26d3a3
TT
118432020-03-20 Tom Tromey <tromey@adacore.com>
11844
11845 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
11846 const.
11847 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
11848 const.
11849
c884cc46
SM
118502020-03-20 Simon Marchi <simon.marchi@efficios.com>
11851
11852 * ptrace.m4: Don't check for ptrace declaration.
11853 * config.in: Re-generate.
11854 * configure: Re-generate.
11855 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
11856 not defined.
11857
1ff700c2
KR
118582020-03-20 Kamil Rytarowski <n54@gmx.com>
11859
11860 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
11861 `PTRACE_TYPE_RET'.
11862 * i386-bsd-nat.c (gdb_ptrace): Likewise.
11863 * sparc-nat.c (gdb_ptrace): Likewise.
11864 * x86-bsd-nat.c (gdb_ptrace): Likewise.
11865
f7d4f0b1
TT
118662020-03-20 Tom Tromey <tromey@adacore.com>
11867
11868 * c-exp.y (lex_one_token): Fix assert.
11869
f67210ff
TT
118702020-03-20 Tom Tromey <tromey@adacore.com>
11871
11872 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
11873 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
11874 strncpy call.
11875
1773be9e
TT
118762020-03-20 Tom Tromey <tromey@adacore.com>
11877
11878 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
11879
70304be9
TT
118802020-03-20 Tom Tromey <tromey@adacore.com>
11881
11882 * ada-valprint.c (print_variant_part): Remove parameters; switch
11883 to value-based API.
11884 (print_field_values): Likewise.
11885 (ada_val_print_struct_union): Likewise.
11886 (ada_value_print_1): Update.
11887
9faa006d
KR
118882020-03-20 Kamil Rytarowski <n54@gmx.com>
11889
11890 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
11891 nbsd_nat_target instead of inf_ptrace_target.
11892 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11893 nbsd_nat_target.
11894
4a90f062
KR
118952020-03-20 Kamil Rytarowski <n54@gmx.com>
11896
11897 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
11898 it to the ptrace call.
11899 * (store_registers): Likewise.
11900
119012020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
11902
11903 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
11904 it to the ptrace call.
11905 * (store_registers): Likewise.
11906
2d07da27
LM
119072020-03-19 Luis Machado <luis.machado@linaro.org>
11908
11909 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
11910 valid, fetch vg value from ptrace.
11911
f09db380
KR
119122020-03-19 Kamil Rytarowski <n54@gmx.com>
11913 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
11914 * inf-ptrace.c: Likewise.
11915 * (gdb_ptrace): Add.
11916 * (inf_ptrace_target::resume): Update.
11917 * (inf_ptrace_target::xfer_partial): Likewise.
11918 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
11919 * (inf_ptrace_peek_poke): Update.
11920
fcc7376e
KR
119212020-03-19 Kamil Rytarowski <n54@gmx.com>
11922
11923 * x86-bsd-nat.c (gdb_ptrace): New.
11924 * (x86bsd_dr_set): Add new argument `ptid'.
11925 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
11926 x86bsd_dr_set_addr): Update.
11927
cada5fc9
AB
119282020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
11929
11930 * remote.c (remote_target::process_stop_reply): Handle events for
11931 all threads differently.
11932
19a2740f
AB
119332020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
11934
11935 * completer.c (completion_tracker::remove_completion): Define new
11936 function.
11937 * completer.h (completion_tracker::remove_completion): Declare new
11938 function.
11939 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
11940 when adding a C++ function symbol.
11941
724fd9ba
AB
119422020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
11943
11944 * completer.c (completion_tracker::completion_hash_entry): Define
11945 new class.
11946 (advance_to_filename_complete_word_point): Call
11947 recompute_lowest_common_denominator.
11948 (completion_tracker::completion_tracker): Call discard_completions
11949 to setup the hash table.
11950 (completion_tracker::discard_completions): Allow for being called
11951 from the constructor, pass new equal function, and element deleter
11952 when constructing the hash table. Initialise new class member
11953 variables.
11954 (completion_tracker::maybe_add_completion): Remove use of
11955 m_entries_vec, and store more information into m_entries_hash.
11956 (completion_tracker::recompute_lcd_visitor): New function, most
11957 content taken from...
11958 (completion_tracker::recompute_lowest_common_denominator):
11959 ...here, this now just visits each item in the hash calling the
11960 above visitor.
11961 (completion_tracker::build_completion_result): Remove use of
11962 m_entries_vec, call recompute_lowest_common_denominator.
11963 * completer.h (completion_tracker::have_completions): Remove use
11964 of m_entries_vec.
11965 (completion_tracker::completion_hash_entry): Declare new class.
11966 (completion_tracker::recompute_lowest_common_denominator): Change
11967 function signature.
11968 (completion_tracker::recompute_lcd_visitor): Declare new function.
11969 (completion_tracker::m_entries_vec): Delete.
11970 (completion_tracker::m_entries_hash): Initialize to NULL.
11971 (completion_tracker::m_lowest_common_denominator_valid): New
11972 member variable.
11973 (completion_tracker::m_lowest_common_denominator_max_length): New
11974 member variable.
11975
5a82b8a1
KR
119762020-03-17 Kamil Rytarowski <n54@gmx.com>
11977
11978 * regformats/regdef.h: Put reg in gdb namespace.
11979
fb516a69
KR
119802020-03-17 Kamil Rytarowski <n54@gmx.com>
11981
11982 * i386-bsd-nat.c (gdb_ptrace): New.
11983 * (i386bsd_fetch_inferior_registers,
11984 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
11985 * (i386bsd_fetch_inferior_registers,
11986 i386bsd_store_inferior_registers) Use gdb_ptrace.
11987
1c0aa1fb
KR
119882020-03-17 Kamil Rytarowski <n54@gmx.com>
11989
11990 * amd64-bsd-nat.c (gdb_ptrace): New.
11991 * (amd64bsd_fetch_inferior_registers,
11992 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
11993 * (amd64bsd_fetch_inferior_registers,
11994 amd64bsd_store_inferior_registers) Use gdb_ptrace.
11995
5ccd2fb7
KR
119962020-03-17 Kamil Rytarowski <n54@gmx.com>
11997
11998 * user-regs.c (user_reg::read): Rename to...
11999 (user_reg::xread): ...this.
12000 * (append_user_reg): Rename argument `read' to `xread'.
12001 * (user_reg_add_builtin): Likewise.
12002 * (user_reg_add): Likewise.
12003 * (value_of_user_reg): Likewise.
12004
2108a63a
KR
120052020-03-17 Kamil Rytarowski <n54@gmx.com>
12006
12007 * sparc-nat.c (gdb_ptrace): New.
12008 * sparc-nat.c (sparc_fetch_inferior_registers)
12009 (sparc_store_inferior_registers) Remove obsolete comment.
12010 * sparc-nat.c (sparc_fetch_inferior_registers)
12011 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
12012 * sparc-nat.c (sparc_fetch_inferior_registers)
12013 (sparc_store_inferior_registers) Use gdb_ptrace.
12014
a225c9a8
KR
120152020-03-17 Kamil Rytarowski <n54@gmx.com>
12016
12017 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
12018 it to the ptrace call.
12019 * sh-nbsd-nat.c (store_registers): Likewise.
12020
98097623
KR
120212020-03-17 Kamil Rytarowski <n54@gmx.com>
12022
12023 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
12024 nbsd_nat_target instead of inf_ptrace_target.
12025 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12026 nbsd_nat_target.
12027
9e38d619
KR
120282020-03-17 Kamil Rytarowski <n54@gmx.com>
12029
12030 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
12031
a2ecbe9f
KR
120322020-03-17 Kamil Rytarowski <n54@gmx.com>
12033
12034 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
12035 <sys/sysctl.h>.
12036 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
12037
58990295
TV
120382020-03-17 Tom de Vries <tdevries@suse.de>
12039
12040 PR gdb/23710
12041 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
12042 fields.
12043 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
12044 fields.
12045 (process_imported_unit_die): Skip import of c++ CUs.
12046
771dd3a8
TT
120472020-03-16 Tom Tromey <tom@tromey.com>
12048
12049 * p-valprint.c (pascal_object_print_value): Initialize
12050 base_value.
12051
817a7585
AK
120522020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
12053 Shahab Vahedi <shahab@synopsys.com>
12054
12055 * Makefile.in: Add arch/arc.o
12056 * configure.tgt: Likewise.
12057 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
12058 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 12059 (arc_read_description): New function to cache target descriptions.
817a7585
AK
12060 * arc-tdep.h (arc_read_description): Add proto type.
12061 * arch/arc.c: New file.
12062 * arch/arc.h: Likewise.
12063 * features/Makefile: Replace old target descriptions with new.
12064 * features/arc-arcompact.c: Remove.
12065 * features/arc-arcompact.xml: Likewise.
12066 * features/arc-v2.c: Likewise
12067 * features/arc-v2.xml: Likewise
12068 * features/arc/aux-arcompact.xml: New file.
12069 * features/arc/aux-v2.xml: Likewise.
12070 * features/arc/core-arcompact.xml: Likewise.
12071 * features/arc/core-v2.xml: Likewise.
12072 * features/arc/aux-arcompact.c: Generate.
12073 * features/arc/aux-v2.c: Likewise.
12074 * features/arc/core-arcompact.c: Likewise.
12075 * features/arc/core-v2.c: Likewise.
12076 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
12077
67430cd0
TT
120782020-03-16 Tom Tromey <tromey@adacore.com>
12079
12080 PR gdb/25663:
12081 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
12082 putting value into bcache.
12083
30efb6c7
SM
120842020-03-16 Simon Marchi <simon.marchi@efficios.com>
12085
12086 PR gdb/21500
12087 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
12088 to...
12089 (amd64_windows_init_abi_common): ... this. Don't set size of
12090 long type.
12091 (amd64_windows_init_abi): New function.
12092 (amd64_cygwin_init_abi): New function.
12093 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
12094 the Cygwin OS ABI.
12095 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
12096 comment.
12097
8db52437
SM
120982020-03-16 Simon Marchi <simon.marchi@efficios.com>
12099
12100 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
12101 * windows-tdep.c (CYGWIN_DLL_NAME): New.
12102 (pe_import_directory_entry): New struct type.
12103 (is_linked_with_cygwin_dll): New function.
12104 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
12105 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
12106 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
12107
5982a56a
SM
121082020-03-16 Simon Marchi <simon.marchi@efficios.com>
12109
12110 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
12111 i386_cygwin_core_osabi_sniffer.
12112
7a1998df
SM
121132020-03-16 Simon Marchi <simon.marchi@efficios.com>
12114
12115 * i386-cygwin-tdep.c: Rename to...
12116 * i386-windows-tdep.c: ... this.
12117 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
12118 i386-windows-tdep.c.
12119 * configure.tgt: Likewise.
12120
053205cc
SM
121212020-03-16 Simon Marchi <simon.marchi@efficios.com>
12122
12123 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
12124 * osabi.c (gdb_osabi_names): Add "Windows".
12125 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
12126 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
12127 (i386_cygwin_core_osabi_sniffer): New function, extracted from
12128 i386_cygwin_osabi_sniffer.
12129 (_initialize_i386_cygwin_tdep): Register OS ABI
12130 GDB_OSABI_WINDOWS for i386.
12131 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
12132 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
12133 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
12134 for x86-64.
12135 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
12136 when the target matches '*-*-mingw*'.
12137
fe4b2ee6
SM
121382020-03-16 Simon Marchi <simon.marchi@efficios.com>
12139
12140 * defs.h (enum gdb_osabi): Move to...
12141 * osabi.h (enum gdb_osabi): ... here.
12142 * gdbarch.sh: Include osabi.h in gdbarch.h.
12143 * gdbarch.h: Re-generate.
12144
cb9b645d
SM
121452020-03-16 Simon Marchi <simon.marchi@efficios.com>
12146
12147 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
12148 function.
12149 (_initialize_amd64_windows_tdep): Register osabi sniffer.
12150
3293bbaf
TT
121512020-03-14 Tom Tromey <tom@tromey.com>
12152
12153 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
12154 for C++.
12155 (c_type_print_modifier): Likewise. Add "language" parameter.
12156 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
12157 (c_type_print_base_1): Update.
12158 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
12159 constants.
12160 * type-stack.c (type_stack::insert): Handle tp_atomic and
12161 tp_restrict.
12162 (type_stack::follow_type_instance_flags): Likewise.
12163 (type_stack::follow_types): Likewise. Merge type-following code.
12164 * c-exp.y (RESTRICT, ATOMIC): New tokens.
12165 (space_identifier, cv_with_space_id)
12166 (const_or_volatile_or_space_identifier_noopt)
12167 (const_or_volatile_or_space_identifier): Remove.
12168 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
12169 rules.
12170 (ptr_operator, typebase): Update.
12171 (enum token_flag) <FLAG_C>: New constant.
12172 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
12173 "_Atomic".
12174 (lex_one_token): Handle FLAG_C.
12175
154151a6
KR
121762020-03-14 Kamil Rytarowski <n54@gmx.com>
12177
12178 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
12179 it to the ptrace call.
12180 * m68k-bsd-nat.c (store_registers): Likewise.
12181
bc107784
KR
121822020-03-14 Kamil Rytarowski <n54@gmx.com>
12183
12184 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
12185 gdb_byte *.
12186 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
12187 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
12188 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
12189
01a80117
KR
121902020-03-14 Kamil Rytarowski <n54@gmx.com>
12191
12192 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
12193 nbsd_nat_target instead of inf_ptrace_target.
12194 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12195 nbsd_nat_target.
12196
f90280ca
KR
121972020-03-14 Kamil Rytarowski <n54@gmx.com>
12198
12199 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
12200 register_t.
12201
6def66f1
KR
122022020-03-14 Kamil Rytarowski <n54@gmx.com>
12203
12204 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
12205 it to the ptrace call.
12206 * alpha-bsd-nat.c (store_registers): Likewise.
12207
66eaca97
KR
122082020-03-14 Kamil Rytarowski <n54@gmx.com>
12209
12210 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
12211 includes.
12212 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
12213 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
12214 fill_fpregset): Likewise.
12215
4fed520b
KR
122162020-03-14 Kamil Rytarowski <n54@gmx.com>
12217
12218 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
12219 nbsd_nat_target instead of inf_ptrace_target.
12220 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12221 nbsd_nat_target.
12222
2190cf06
KR
122232020-03-14 Kamil Rytarowski <n54@gmx.com>
12224
12225 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
12226 register_t.
12227
75c56d3d
KR
122282020-03-14 Kamil Rytarowski <n54@gmx.com>
12229
12230 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
12231 it to the ptrace call.
12232 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
12233 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
12234 * arm-nbsd-nat.c (store_register): Likewise.
12235 * arm-nbsd-nat.c (store_regs): Likewise.
12236 * arm-nbsd-nat.c (store_fp_register): Likewise.
12237 * arm-nbsd-nat.c (store_fp_regs): Likewise.
12238
6018d381
KR
122392020-03-14 Kamil Rytarowski <n54@gmx.com>
12240
12241 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
12242 nbsd_nat_target instead of inf_ptrace_target.
12243 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12244 nbsd_nat_target.
12245
013f99f0
KR
122462020-03-14 Kamil Rytarowski <n54@gmx.com>
12247
12248 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
12249 it to the ptrace call.
12250 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
12251
12753073
KR
122522020-03-14 Kamil Rytarowski <n54@gmx.com>
12253
6227b330
KR
12254 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
12255 it to the ptrace call.
12256 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
12257
122582020-03-14 Kamil Rytarowski <n54@gmx.com>
12259
12260 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
12261 gdb_byte *.
12753073
KR
12262 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
12263
d5be5fa4
KR
122642020-03-14 Kamil Rytarowski <n54@gmx.com>
12265
12266 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
12267 instead of inf_ptrace_target.
12268 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12269 nbsd_nat_target.
12270
8110f842
KR
122712020-03-14 Kamil Rytarowski <n54@gmx.com>
12272
12273 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12274 register_t.
12275
52feded7
KR
122762020-03-14 Kamil Rytarowski <n54@gmx.com>
12277
12278 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12279 register_t.
12280
25567eee
KR
122812020-03-14 Kamil Rytarowski <n54@gmx.com>
12282
12283 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
12284 register_t.
12285
426a9c18
TT
122862020-03-13 Tom Tromey <tom@tromey.com>
12287
12288 * value.h (val_print): Don't declare.
12289 * valprint.h (val_print_array_elements)
12290 (val_print_scalar_formatted, generic_val_print): Don't declare.
12291 * valprint.c (generic_val_print_array): Take a struct value.
12292 (generic_val_print_ptr, generic_val_print_memberptr)
12293 (generic_val_print_bool, generic_val_print_int)
12294 (generic_val_print_char, generic_val_print_complex)
12295 (generic_val_print): Remove.
12296 (generic_value_print): Update.
12297 (do_val_print): Remove unused parameters. Don't call
12298 la_val_print.
12299 (val_print): Remove.
12300 (common_val_print): Update. Don't call value_check_printable.
12301 (val_print_scalar_formatted, val_print_array_elements): Remove.
12302 * rust-lang.c (rust_val_print): Remove.
12303 (rust_language_defn): Update.
12304 * p-valprint.c (pascal_val_print): Remove.
12305 (pascal_value_print_inner): Update.
12306 (pascal_object_print_val_fields, pascal_object_print_val):
12307 Remove.
12308 (pascal_object_print_static_field): Update.
12309 * p-lang.h (pascal_val_print): Don't declare.
12310 * p-lang.c (pascal_language_defn): Update.
12311 * opencl-lang.c (opencl_language_defn): Update.
12312 * objc-lang.c (objc_language_defn): Update.
12313 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
12314 * m2-lang.h (m2_val_print): Don't declare.
12315 * m2-lang.c (m2_language_defn): Update.
12316 * language.h (struct language_defn) <la_val_print>: Remove.
12317 * language.c (unk_lang_value_print_inner): Rename. Change
12318 argument types.
12319 (unknown_language_defn, auto_language_defn): Update.
12320 * go-valprint.c (go_val_print): Remove.
12321 * go-lang.h (go_val_print): Don't declare.
12322 * go-lang.c (go_language_defn): Update.
12323 * f-valprint.c (f_val_print): Remove.
12324 * f-lang.h (f_value_print): Don't declare.
12325 * f-lang.c (f_language_defn): Update.
12326 * d-valprint.c (d_val_print): Remove.
12327 * d-lang.h (d_value_print): Don't declare.
12328 * d-lang.c (d_language_defn): Update.
12329 * cp-valprint.c (cp_print_value_fields)
12330 (cp_print_value_fields_rtti, cp_print_value): Remove.
12331 (cp_print_static_field): Update.
12332 * c-valprint.c (c_val_print_array, c_val_print_ptr)
12333 (c_val_print_struct, c_val_print_union, c_val_print_int)
12334 (c_val_print_memberptr, c_val_print): Remove.
12335 * c-lang.h (c_val_print_array, cp_print_value_fields)
12336 (cp_print_value_fields_rtti): Don't declare.
12337 * c-lang.c (c_language_defn, cplus_language_defn)
12338 (asm_language_defn, minimal_language_defn): Update.
12339 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
12340 (ada_val_print_enum): Take a struct value.
12341 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
12342 (ada_val_print): Remove.
12343 (ada_value_print_1): Update.
12344 (printable_val_type): Remove.
12345 * ada-lang.h (ada_val_print): Don't declare.
12346 * ada-lang.c (ada_language_defn): Update.
12347
42331a1e
TT
123482020-03-13 Tom Tromey <tom@tromey.com>
12349
12350 * valprint.c (do_val_print): Update.
12351 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
12352 a struct value.
12353 (value_to_value_object_no_release): Declare.
12354 * python/py-value.c (value_to_value_object_no_release): New
12355 function.
12356 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
12357 struct value.
12358 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
12359 function.
12360 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
12361 a struct value.
12362 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
12363 Declare.
12364 (gdbscm_apply_val_pretty_printer): Take a struct value.
12365 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
12366 value.
12367 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
12368 value.
12369 * extension-priv.h (struct extension_language_ops)
12370 <apply_val_pretty_printer>: Take a struct value.
12371 * cp-valprint.c (cp_print_value): Create a struct value.
12372 (cp_print_value): Update.
12373
3a916a97
TT
123742020-03-13 Tom Tromey <tom@tromey.com>
12375
12376 * ada-valprint.c (print_field_values): Call common_val_print.
12377
b59eac37
TT
123782020-03-13 Tom Tromey <tom@tromey.com>
12379
12380 * ada-valprint.c (val_print_packed_array_elements): Remove
12381 bitoffset and val parameters. Call common_val_print.
12382 (ada_val_print_string): Remove offset, address, and original_value
12383 parameters.
12384 (ada_val_print_array): Update.
12385 (ada_value_print_array): New function.
12386 (ada_value_print_1): Call it.
12387
03371129
TT
123882020-03-13 Tom Tromey <tom@tromey.com>
12389
12390 * ada-valprint.c (ada_value_print): Use common_val_print.
12391
2e088f8b
TT
123922020-03-13 Tom Tromey <tom@tromey.com>
12393
12394 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
12395
39ef85a8
TT
123962020-03-13 Tom Tromey <tom@tromey.com>
12397
12398 * ada-valprint.c (ada_value_print_num): New function.
12399 (ada_value_print_1): Use it.
12400
b9fa6e07
TT
124012020-03-13 Tom Tromey <tom@tromey.com>
12402
12403 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
12404
416595d6
TT
124052020-03-13 Tom Tromey <tom@tromey.com>
12406
12407 * ada-valprint.c (ada_value_print_ptr): New function.
12408 (ada_value_print_1): Use it.
12409
5b5e15ec
TT
124102020-03-13 Tom Tromey <tom@tromey.com>
12411
12412 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
12413 call common_val_print.
12414 (ada_val_print_1): Update.
12415 (ada_value_print_1): New function.
12416 (ada_value_print_inner): Rewrite.
12417
fbf54e75
TT
124182020-03-13 Tom Tromey <tom@tromey.com>
12419
12420 * cp-valprint.c (cp_print_value_fields): Update.
12421 (cp_print_value): New function.
12422
64b653ca
TT
124232020-03-13 Tom Tromey <tom@tromey.com>
12424
12425 * m2-valprint.c (m2_value_print_inner): Use
12426 cp_print_value_fields.
12427 * cp-valprint.c (cp_print_value_fields): New function.
12428 * c-valprint.c (c_value_print_struct): New function.
12429 (c_value_print_inner): Use c_value_print_struct.
12430 * c-lang.h (cp_print_value_fields): Declare.
12431
6999f067
TT
124322020-03-13 Tom Tromey <tom@tromey.com>
12433
12434 * c-valprint.c (c_value_print_array): New function.
12435 (c_value_print_inner): Use it.
12436
ce80b8bd
TT
124372020-03-13 Tom Tromey <tom@tromey.com>
12438
12439 * c-valprint.c (c_value_print_memberptr): New function.
12440 (c_value_print_inner): Use it.
12441
2faac269
TT
124422020-03-13 Tom Tromey <tom@tromey.com>
12443
12444 * c-valprint.c (c_value_print_int): New function.
12445 (c_value_print_inner): Use it.
12446
da3e2c29
TT
124472020-03-13 Tom Tromey <tom@tromey.com>
12448
12449 * c-valprint.c (c_value_print_ptr): New function.
12450 (c_value_print_inner): Use it.
12451
50836231
TT
124522020-03-13 Tom Tromey <tom@tromey.com>
12453
12454 * c-valprint.c (c_value_print_inner): Rewrite.
12455
4f412b6e
TT
124562020-03-13 Tom Tromey <tom@tromey.com>
12457
12458 * valprint.c (generic_value_print_complex): New function.
12459 (generic_value_print): Use it.
12460
f5354008
TT
124612020-03-13 Tom Tromey <tom@tromey.com>
12462
12463 * valprint.c (generic_val_print_float): Don't call
12464 val_print_scalar_formatted.
12465 (generic_val_print, generic_value_print): Update.
12466
3eec3b05
TT
124672020-03-13 Tom Tromey <tom@tromey.com>
12468
12469 * valprint.c (generic_value_print_char): New function
12470 (generic_value_print): Use it.
12471
fdddfccb
TT
124722020-03-13 Tom Tromey <tom@tromey.com>
12473
12474 * valprint.c (generic_value_print_int): New function.
12475 (generic_value_print): Use it.
12476
6dde7521
TT
124772020-03-13 Tom Tromey <tom@tromey.com>
12478
12479 * valprint.c (generic_value_print_bool): New function.
12480 (generic_value_print): Use it.
12481
4112d2e6
TT
124822020-03-13 Tom Tromey <tom@tromey.com>
12483
12484 * valprint.c (generic_val_print_func): Simplify.
12485 (generic_val_print, generic_value_print): Update.
12486
65786af6
TT
124872020-03-13 Tom Tromey <tom@tromey.com>
12488
12489 * valprint.c (generic_val_print_flags): Remove.
12490 (generic_val_print, generic_value_print): Update.
12491 (val_print_type_code_flags): Add original_value parameter.
12492
40f3ce18
TT
124932020-03-13 Tom Tromey <tom@tromey.com>
12494
12495 * valprint.c (generic_val_print): Update.
12496 (generic_value_print): Update.
12497 * valprint.c (generic_val_print_enum): Don't call
12498 val_print_scalar_formatted.
12499
2a5b130b
TT
125002020-03-13 Tom Tromey <tom@tromey.com>
12501
12502 * valprint.c (generic_value_print): Call generic_value_print_ptr.
12503 * valprint.c (generic_value_print_ptr): New function.
12504
abc66ce9
TT
125052020-03-13 Tom Tromey <tom@tromey.com>
12506
12507 * valprint.c (generic_value_print): Rewrite.
12508
07a32858
TT
125092020-03-13 Tom Tromey <tom@tromey.com>
12510
12511 * p-valprint.c (pascal_object_print_value_fields)
12512 (pascal_object_print_value): New functions.
12513
64d64d3a
TT
125142020-03-13 Tom Tromey <tom@tromey.com>
12515
12516 * p-valprint.c (pascal_value_print_inner): Rewrite.
12517
6a95a1f5
TT
125182020-03-13 Tom Tromey <tom@tromey.com>
12519
12520 * f-valprint.c (f_value_print_innner): Rewrite.
12521
59fcdac6
TT
125222020-03-13 Tom Tromey <tom@tromey.com>
12523
12524 * m2-valprint.c (m2_print_unbounded_array): New overload.
12525 (m2_print_unbounded_array): Update.
12526 (m2_print_array_contents): Take a struct value.
12527 (m2_value_print_inner): Rewrite.
12528
d133c3e1
TT
125292020-03-13 Tom Tromey <tom@tromey.com>
12530
12531 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
12532 (d_value_print_inner): New function.
12533 * d-lang.h (d_value_print_inner): Declare.
12534 * d-lang.c (d_language_defn): Use d_value_print_inner.
12535
23b0f06b
TT
125362020-03-13 Tom Tromey <tom@tromey.com>
12537
12538 * go-valprint.c (go_value_print_inner): New function.
12539 * go-lang.h (go_value_print_inner): Declare.
12540 * go-lang.c (go_language_defn): Use go_value_print_inner.
12541
5f56f7cb
TT
125422020-03-13 Tom Tromey <tom@tromey.com>
12543
12544 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
12545 API.
12546 (rust_val_print): Rewrite.
12547 (rust_value_print_inner): New function, from rust_val_print.
12548 (rust_language_defn): Use rust_value_print_inner.
12549
26792ee0
TT
125502020-03-13 Tom Tromey <tom@tromey.com>
12551
12552 * ada-valprint.c (ada_value_print_inner): New function.
12553 * ada-lang.h (ada_value_print_inner): Declare.
12554 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
12555
24051bbe
TT
125562020-03-13 Tom Tromey <tom@tromey.com>
12557
12558 * f-valprint.c (f_value_print_innner): New function.
12559 * f-lang.h (f_value_print_innner): Declare.
12560 * f-lang.c (f_language_defn): Use f_value_print_innner.
12561
c0941be6
TT
125622020-03-13 Tom Tromey <tom@tromey.com>
12563
12564 * p-valprint.c (pascal_value_print_inner): New function.
12565 * p-lang.h (pascal_value_print_inner): Declare.
12566 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
12567
62c4663d
TT
125682020-03-13 Tom Tromey <tom@tromey.com>
12569
12570 * m2-valprint.c (m2_value_print_inner): New function.
12571 * m2-lang.h (m2_value_print_inner): Declare.
12572 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
12573
62182190
TT
125742020-03-13 Tom Tromey <tom@tromey.com>
12575
12576 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
12577 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
12578 * c-valprint.c (c_value_print_inner): New function.
12579 * c-lang.h (c_value_print_inner): Declare.
12580 * c-lang.c (c_language_defn, cplus_language_defn)
12581 (asm_language_defn, minimal_language_defn): Use
12582 c_value_print_inner.
12583
1e592a8a
TT
125842020-03-13 Tom Tromey <tom@tromey.com>
12585
12586 * p-valprint.c (pascal_object_print_value_fields): Now static.
12587 * p-lang.h (pascal_object_print_value_fields): Don't declare.
12588
7fe471e9
TT
125892020-03-13 Tom Tromey <tom@tromey.com>
12590
12591 * c-valprint.c (c_val_print_array): Simplify.
12592
d121c6ce
TT
125932020-03-13 Tom Tromey <tom@tromey.com>
12594
12595 * valprint.c (value_print_array_elements): New function.
12596 * valprint.h (value_print_array_elements): Declare.
12597
4dba70ee
TT
125982020-03-13 Tom Tromey <tom@tromey.com>
12599
12600 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
12601 * mips-tdep.c (mips_print_register): Use
12602 value_print_scalar_formatted.
12603
4f9ae810
TT
126042020-03-13 Tom Tromey <tom@tromey.com>
12605
12606 * valprint.h (value_print_scalar_formatted): Declare.
12607 * valprint.c (value_print_scalar_formatted): New function.
12608
156bfec9
TT
126092020-03-13 Tom Tromey <tom@tromey.com>
12610
12611 * valprint.h (generic_value_print): Declare.
12612 * valprint.c (generic_value_print): New function.
12613
2b4e573d
TT
126142020-03-13 Tom Tromey <tom@tromey.com>
12615
12616 * valprint.c (do_val_print): Call la_value_print_inner, if
12617 available.
12618 * rust-lang.c (rust_language_defn): Update.
12619 * p-lang.c (pascal_language_defn): Update.
12620 * opencl-lang.c (opencl_language_defn): Update.
12621 * objc-lang.c (objc_language_defn): Update.
12622 * m2-lang.c (m2_language_defn): Update.
12623 * language.h (struct language_defn) <la_value_print_inner>: New
12624 member.
12625 * language.c (unknown_language_defn, auto_language_defn): Update.
12626 * go-lang.c (go_language_defn): Update.
12627 * f-lang.c (f_language_defn): Update.
12628 * d-lang.c (d_language_defn): Update.
12629 * c-lang.c (c_language_defn, cplus_language_defn)
12630 (asm_language_defn, minimal_language_defn): Update.
12631 * ada-lang.c (ada_language_defn): Update.
12632
a1f6a07c
TT
126332020-03-13 Tom Tromey <tom@tromey.com>
12634
12635 * c-valprint.c (c_value_print): Use common_val_print.
12636
410cf315
TT
126372020-03-13 Tom Tromey <tom@tromey.com>
12638
12639 * cp-valprint.c (cp_print_static_field): Use common_val_print.
12640
72a45c93
TT
126412020-03-13 Tom Tromey <tom@tromey.com>
12642
12643 * f-valprint.c (f77_print_array_1, f_val_print): Use
12644 common_val_print.
12645
040f66bd
TT
126462020-03-13 Tom Tromey <tom@tromey.com>
12647
12648 * riscv-tdep.c (riscv_print_one_register_info): Use
12649 common_val_print.
12650
a6e05a6c
TT
126512020-03-13 Tom Tromey <tom@tromey.com>
12652
12653 * mi/mi-main.c (output_register): Use common_val_print.
12654
3444c526
TT
126552020-03-13 Tom Tromey <tom@tromey.com>
12656
12657 * infcmd.c (default_print_one_register_info): Use
12658 common_val_print.
12659
c2a44efe
TT
126602020-03-13 Tom Tromey <tom@tromey.com>
12661
12662 * valprint.h (common_val_print_checked): Declare.
12663 * valprint.c (common_val_print_checked): New function.
12664 * stack.c (print_frame_arg): Use common_val_print_checked.
12665
b0c26e99
TT
126662020-03-13 Tom Tromey <tom@tromey.com>
12667
12668 * valprint.c (do_val_print): New function, from val_print.
12669 (val_print): Use do_val_print.
12670 (common_val_print): Use do_val_print.
12671
ce3acbe9
TT
126722020-03-13 Tom Tromey <tom@tromey.com>
12673
12674 * valprint.c (value_print): Use scoped_value_mark.
12675
96c7f873
TV
126762020-03-13 Tom de Vries <tdevries@suse.de>
12677
12678 PR symtab/25646
12679 * psymtab.c (partial_symtab::partial_symtab): Don't set
12680 globals_offset and statics_offset. Push element onto
12681 current_global_psymbols and current_static_psymbols stacks.
12682 (concat): New function.
12683 (end_psymtab_common): Set globals_offset and statics_offset. Pop
12684 element from current_global_psymbols and current_static_psymbols
12685 stacks. Concat popped elements to global_psymbols and
12686 static_symbols.
12687 (add_psymbol_to_list): Use current_global_psymbols and
12688 current_static_psymbols stacks.
12689 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
12690 current_static_psymbols fields.
12691
6ba0a321
CB
126922020-03-12 Christian Biesinger <cbiesinger@google.com>
12693
12694 * corelow.c (sniff_core_bfd): Remove.
12695 (class core_target) <m_core_vec>: Remove.
12696 (core_target::core_target): Update.
12697 (core_file_fns): Remove.
12698 (deprecated_add_core_fns): Remove.
12699 (default_core_sniffer): Remove.
12700 (sniff_core_bfd): Remove.
12701 (default_check_format): Remove.
12702 (gdb_check_format): Remove.
12703 (core_target_open): Update.
12704 (core_target::get_core_register_section): Update.
12705 (get_core_registers_cb): Update.
12706 (core_target::fetch_registers): Update.
12707 * gdbcore.h (struct core_fns): Remove.
12708 (deprecated_add_core_fns): Remove.
12709 (default_core_sniffer): Remove.
12710 (default_check_format): Remove.
12711
227031b2
TT
127122020-03-12 Tom Tromey <tom@tromey.com>
12713
12714 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
12715 CORE_ADDR.
12716 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
12717
53807e9f
TT
127182020-03-12 Tom Tromey <tom@tromey.com>
12719
12720 * remote.c (remote_target::download_tracepoint)
12721 (remote_target::enable_tracepoint)
12722 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
12723 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
12724 sprintf_vma.
12725
64f25102
TT
127262020-03-12 Tom Tromey <tom@tromey.com>
12727
12728 * symfile-mem.c: Update CORE_ADDR size assert.
12729
272cd5a3
SM
127302020-03-12 Simon Marchi <simon.marchi@efficios.com>
12731
12732 * selftest.m4: Move to gdbsupport/.
12733 * acinclude.m4: Update path to selftest.m4.
12734
74cd3f9d
SM
127352020-03-12 Simon Marchi <simon.marchi@efficios.com>
12736
12737 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
12738 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
12739 gdbarch-selfselftests.c and selftest-arch.c.
12740 (SUBDIR_UNITTESTS_OBS): Rename to...
12741 (SELFTESTS_OBS): ... this.
12742 (COMMON_SFILES): Remove disasm-selftests.c and
12743 gdbarch-selftests.c.
12744 * configure.ac: Don't add selftest-arch.{c,o} to
12745 CONFIG_{SRCS,OBS}.
12746 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
12747 preprocessor conditions.
12748
db6878ac
SM
127492020-03-12 Simon Marchi <simon.marchi@efficios.com>
12750
12751 * configure.ac: Don't source bfd/development.sh.
12752 * selftest.m4: Modify comment.
12753 * configure: Re-generate.
12754
4d696a5c
SM
127552020-03-12 Simon Marchi <simon.marchi@efficios.com>
12756
12757 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
12758 not "true" or "false".
12759 * configure: Re-generate.
12760
8dd8e1c7
CB
127612020-03-12 Christian Biesinger <cbiesinger@google.com>
12762
12763 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
12764 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
12765 renamed to arm_nbsd_supply_gregset.
12766 (fetch_register): Update to call arm_nbsd_supply_gregset.
12767 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
12768 (arm_netbsd_nat_target::fetch_registers): Update.
12769 (fetch_elfcore_registers): Removed.
12770 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
12771 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
12772 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
12773 not require NetBSD system headers.
12774 (arm_nbsd_regset): New struct.
12775 (arm_nbsd_iterate_over_regset_sections): New function.
12776 (arm_netbsd_init_abi_common): Updated to call
12777 set_gdbarch_iterate_over_regset_sections.
12778 * arm-nbsd-tdep.h: New file.
12779
dd69bf7a
KB
127802020-03-11 Kevin Buettner <kevinb@redhat.com>
12781
12782 * symtab.c (find_pc_sect_line): Add check which prevents infinite
12783 recursion.
12784
a0761e34
SM
127852020-03-11 Simon Marchi <simon.marchi@efficios.com>
12786
12787 * configure: Re-generate.
12788
e7a82140
TT
127892020-03-11 Tom Tromey <tromey@adacore.com>
12790
12791 * ada-typeprint.c (print_choices): Fix comment.
12792
dcc050c8
AB
127932020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
12794
12795 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
12796 previous item in the list, when the list has no items.
12797
1c33af77
TV
127982020-03-11 Tom de Vries <tdevries@suse.de>
12799
12800 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
12801 PROP_LOCLIST handling code.
12802
8c95582d
AB
128032020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
12804
12805 * buildsym-legacy.c (record_line): Pass extra parameter to
12806 record_line.
12807 * buildsym.c (buildsym_compunit::record_line): Take an extra
12808 parameter, reduce duplication in the line table, and record the
12809 is_stmt flag in the line table.
12810 * buildsym.h (buildsym_compunit::record_line): Add extra
12811 parameter.
12812 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
12813 non-statement lines.
12814 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
12815 this to the symtab builder.
12816 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
12817 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
12818 through to dwarf_record_line_1.
12819 * infrun.c (process_event_stop_test): When stepping, don't stop at
12820 a non-statement instruction, and only refresh the step info when
12821 we land in the middle of a line's range. Also add an extra
12822 comment.
12823 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
12824 field.
12825 * record-btrace.c (btrace_find_line_range): Only record lines
12826 marked as is-statement.
12827 * stack.c (frame_show_address): Show the frame address if we are
12828 in a non-statement sal.
12829 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
12830 (maintenance_print_one_line_table): Print a header for the is_stmt
12831 column, and include is_stmt information in the output.
12832 * symtab.c (find_pc_sect_line): Find lines marked as statements in
12833 preference to non-statements.
12834 (find_pcs_for_symtab_line): Prefer is-statement entries.
12835 (find_line_common): Likewise.
12836 * symtab.h (struct linetable_entry): Add is_stmt field.
12837 (struct symtab_and_line): Likewise.
12838 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
12839 arranging the line table.
12840
e4003a34
TV
128412020-03-07 Tom de Vries <tdevries@suse.de>
12842
12843 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
12844 DIE.
12845
e8932576
TT
128462020-03-07 Tom Tromey <tom@tromey.com>
12847
12848 * valops.c (value_literal_complex): Remove obsolete comment.
12849 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
12850 comment.
12851
29734269
SM
128522020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
12853
12854 * infrun.h: Forward-declare thread_info.
12855 (set_step_info): Add thread_info parameter, add doc.
12856 * infrun.c (set_step_info): Add thread_info parameter, move doc
12857 to header.
12858 * infrun.c (process_event_stop_test): Pass thread to
12859 set_step_info call.
12860 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
12861 set_step_info.
12862 (prepare_one_step): Add thread_info parameter, pass it to
12863 set_step_frame and prepare_one_step (recursive) call.
12864 (step_1): Pass thread to prepare_one_step call.
12865 (step_command_fsm::should_stop): Pass thread to
12866 prepare_one_step.
12867 (until_next_fsm): Pass thread to set_step_frame call.
12868 (finish_command): Pass thread to set_step_info call.
12869
b7d64b29
HD
128702020-03-06 Hannes Domani <ssbssa@yahoo.de>
12871
12872 * windows-tdep.c (windows_solib_create_inferior_hook):
12873 Check if inferior is running.
12874
09f2921c
TV
128752020-03-06 Tom de Vries <tdevries@suse.de>
12876
12877 * NEWS: Fix "the the".
12878 * ctfread.c: Same.
12879
fd760e79
TV
128802020-03-06 Tom de Vries <tdevries@suse.de>
12881
12882 * psymtab.c (psymtab_to_symtab): Don't print "done.".
12883
20ea4a60
AB
128842020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12885
12886 * .dir-locals.el: Add a comment referencing the other copies of
12887 this file.
12888
0afbabf0
JB
128892020-03-05 John Baldwin <jhb@FreeBSD.org>
12890
12891 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
12892 psargs.
12893
842806cb
TBA
128942020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12895
12896 * .gitattributes: New file.
12897
be1e3d3e
TT
128982020-03-04 Tom Tromey <tom@tromey.com>
12899
12900 * symmisc.c (print_symbol_bcache_statistics)
12901 (print_objfile_statistics): Update.
12902 * symfile.c (allocate_symtab): Use intern.
12903 * psymtab.c (partial_symtab::partial_symtab): Use intern.
12904 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
12905 macro_cache>: Remove.
12906 <string_cache>: New member.
12907 (struct objfile) <intern>: New methods.
12908 * elfread.c (elf_symtab_read): Use intern.
12909 * dwarf2/read.c (fixup_go_packaging): Intern package name.
12910 (dwarf2_compute_name, dwarf2_physname)
12911 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
12912 names.
12913 (guess_partial_die_structure_name): Update.
12914 (partial_die_info::fixup): Intern name.
12915 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
12916 name.
12917 (dwarf2_name): Intern name. Update.
12918 * buildsym.c (buildsym_compunit::get_macro_table): Use
12919 string_cache.
12920
4e7625fd
TT
129212020-03-04 Tom Tromey <tom@tromey.com>
12922
12923 * jit.c (bfd_open_from_target_memory): Make "target" const.
12924 * corefile.c (gnutarget): Now const.
12925 * gdbcore.h (gnutarget): Now const.
12926
46f9f931
HD
129272020-03-04 Hannes Domani <ssbssa@yahoo.de>
12928
12929 * NEWS: Mention support for WOW64 processes.
12930 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
12931 (amd64_windows_segment_register_p): Remove static.
12932 (_initialize_amd64_windows_nat): Update.
12933 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
12934 * i386-windows-nat.c (context_offset): Update.
12935 (i386_mappings): Rename and remove static.
12936 (i386_windows_segment_register_p): Remove static.
12937 (_initialize_i386_windows_nat): Update.
12938 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
12939 (STATUS_WX86_SINGLE_STEP): New macro.
12940 (EnumProcessModulesEx): New macro.
12941 (Wow64SuspendThread): New macro.
12942 (Wow64GetThreadContext): New macro.
12943 (Wow64SetThreadContext): New macro.
12944 (Wow64GetThreadSelectorEntry): New macro.
12945 (windows_set_context_register_offsets): Add static.
12946 (windows_set_segment_register_p): Likewise.
12947 (windows_add_thread): Adapt for WOW64 processes.
12948 (windows_fetch_one_register): Likewise.
12949 (windows_nat_target::fetch_registers): Likewise.
12950 (windows_store_one_register): Likewise.
12951 (display_selector): Likewise.
12952 (display_selectors): Likewise.
12953 (handle_exception): Likewise.
12954 (windows_continue): Likewise.
12955 (windows_nat_target::resume): Likewise.
12956 (windows_add_all_dlls): Likewise.
12957 (do_initial_windows_stuff): Likewise.
12958 (windows_nat_target::attach): Likewise.
12959 (windows_get_exec_module_filename): Likewise.
12960 (windows_nat_target::create_inferior): Likewise.
12961 (windows_xfer_siginfo): Likewise.
12962 (_initialize_loadable): Initialize Wow64SuspendThread,
12963 Wow64GetThreadContext, Wow64SetThreadContext,
12964 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
12965 * windows-nat.h (windows_set_context_register_offsets):
12966 Remove declaration.
12967 (windows_set_segment_register_p): Likewise.
12968 (i386_windows_segment_register_p): Add declaration.
12969 (amd64_windows_segment_register_p): Likewise.
12970
440cf44e
LM
129712020-03-04 Luis Machado <luis.machado@linaro.org>
12972
12973 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
12974 in "info registers" for AArch64/ARM.
12975
12976 The change caused "info registers" to not print GPR's.
12977
12978 gdb/ChangeLog:
12979
12980 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
12981
12982 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
12983 when reg->group is empty and reggroup is not.
12984
1009d92f
TT
129852020-03-03 Tom Tromey <tromey@adacore.com>
12986
12987 * dwarf2/frame.c (struct dwarf2_frame_cache)
12988 <checked_tailcall_bottom, entry_cfa_sp_offset,
12989 entry_cfa_sp_offset_p>: Remove members.
12990 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
12991 (dwarf2_frame_prev_register): Don't call
12992 dwarf2_tailcall_sniffer_first.
12993 (dwarf2_append_unwinders): Don't append tailcall unwinder.
12994 * frame-unwind.c (add_unwinder): New fuction.
12995 (frame_unwind_init): Use it. Add tailcall unwinder.
12996
5e5d66b6
AB
129972020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
12998 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12999
13000 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
13001 value should be printed as true.
13002
584cf46d
HD
130032020-03-03 Hannes Domani <ssbssa@yahoo.de>
13004
13005 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
13006 (windows_init_abi): Set and use windows_so_ops.
13007
7b973adc
SDJ
130082020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
13009
13010 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
13011 when verifying if dealing with a convenience variable.
13012
bb7b70ab
LM
130132020-03-03 Luis Machado <luis.machado@linaro.org>
13014
13015 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
13016
9822cb57
SM
130172020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
13018
13019 * infrun.c (gdbarch_supports_displaced_stepping): New.
13020 (use_displaced_stepping): Break up conditions in smaller pieces.
13021 Use gdbarch_supports_displaced_stepping.
13022 (displaced_step_prepare_throw): Use
13023 gdbarch_supports_displaced_stepping.
13024
63e163f2
AB
130252020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13026
13027 * NEWS: Mention new behaviour of the history filename.
13028 * top.c (write_history_p): Add comment.
13029 (show_write_history_p): Add header comment, give a different
13030 message when history writing is on, but the history filename is
13031 empty.
13032 (history_filename): Add comment.
13033 (history_filename_empty): New function.
13034 (show_history_filename): Add header comment, give a different
13035 message when the filename is empty.
13036 (init_history): Compare history_filename against nullptr, and only
13037 read history if the filename is not empty.
13038 (set_history_filename): Add header comment, and only make
13039 non-empty filenames absolute.
13040 (init_main): Make the filename argument to 'set history filename'
13041 optional.
13042
81b86b97
CB
130432020-03-02 Christian Biesinger <cbiesinger@google.com>
13044
13045 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
13046 (arm_supply_vfpregset): ...this, and update to use VFP registers.
13047 (fetch_fp_register): Update.
13048 (fetch_fp_regs): Update.
13049 (store_fp_register): Update.
13050 (store_fp_regs): Update.
13051 (arm_netbsd_nat_target::read_description): New function.
13052 (fetch_elfcore_registers): Update.
13053
24ed6739
AB
130542020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13055
13056 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
13057 general_thread if the stop reply is missing a thread-id.
13058 (remote_target::process_stop_reply): Use the first non-exited
13059 thread if the target didn't pass a thread-id.
13060 * infrun.c (do_target_wait): Move call to
13061 switch_to_inferior_no_thread to ....
13062 (do_target_wait_1): ... here.
13063
a84bb2a0
JT
130642020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
13065
13066 * debuginfod-support.c: Include defs.h first.
13067
658dadf0
TV
130682020-02-28 Tom de Vries <tdevries@suse.de>
13069
13070 * symfile.c (set_initial_language): Use default language for lookup.
13071
4ebe4877
SM
130722020-02-28 Simon Marchi <simon.marchi@efficios.com>
13073
13074 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
13075 reader variable, pass `this` to read_cutu_die_from_dwo.
13076
e5da1139
AM
130772020-02-27 Aaron Merey <amerey@redhat.com>
13078
13079 * source.c (open_source_file): Check for nullptr when computing
13080 srcpath.
13081
317f7127
TT
130822020-02-27 Tom Tromey <tromey@adacore.com>
13083
13084 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
13085 member.
13086 (dwarf2_add_field): Don't update nfields.
13087 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
13088
3104d9ee
AB
130892020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13090
13091 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
13092 abs.
13093
b83470bf
TT
130942020-02-26 Tom Tromey <tom@tromey.com>
13095
13096 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
13097 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
13098 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
13099 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
13100 per_cu_data.
13101
edfe0a0c
TT
131022020-02-26 Tom Tromey <tom@tromey.com>
13103
13104 * dwarf2/index-write.c (psym_index_map): Change type.
13105 (add_address_entry_worker, write_one_signatured_type)
13106 (recursively_count_psymbols, recursively_write_psymbols)
13107 (class debug_names, psyms_seen_size, write_gdbindex)
13108 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
13109
0d79cdc4
AM
131102020-02-26 Aaron Merey <amerey@redhat.com>
13111
13112 * Makefile.in: Handle optional debuginfod support.
13113 * NEWS: Update.
13114 * README: Add --with-debuginfod summary.
13115 * config.in: Regenerate.
13116 * configure: Regenerate.
13117 * configure.ac: Handle optional debuginfod support.
13118 * debuginfod-support.c: debuginfod helper functions.
13119 * debuginfod-support.h: Ditto.
13120 * doc/gdb.texinfo: Add --with-debuginfod to configure options
13121 summary.
13122 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
13123 when a dwz file cannot be found.
13124 * elfread.c (elf_symfile_read): Query debuginfod servers when a
13125 debuginfo file cannot be found.
13126 * source.c (open_source_file): Query debuginfod servers when a
13127 source file cannot be found.
13128 * top.c (print_gdb_configuration): Include
13129 --{with,without}-debuginfod in the output.
13130
b65ce565
JG
131312020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
13132
13133 * thread.c (thr_try_catch_cmd): Print thread name.
13134
d4c9a4f8
SM
131352020-02-26 Simon Marchi <simon.marchi@efficios.com>
13136
13137 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
13138 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13139 dwarf2_fetch_die_type_sect_off): Move to...
13140 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
13141 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13142 dwarf2_fetch_die_type_sect_off): ... here.
13143 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
13144 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13145 dwarf2_fetch_die_type_sect_off): Move doc to header file.
13146
0dce4280
TV
131472020-02-26 Tom de Vries <tdevries@suse.de>
13148
13149 PR gdb/25603
13150 * symfile.c (set_initial_language): Exit-early if
13151 language_mode == language_mode_manual.
13152
450a1bfc
SM
131532020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13154
13155 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
13156 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
13157 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
13158
9e80cfa1
AB
131592020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
13160
13161 * gdbtypes.c (create_array_type_with_stride): Handle negative
13162 array strides.
13163 * valarith.c (value_subscripted_rvalue): Likewise.
13164
09624f1f
LM
131652020-02-25 Luis Machado <luis.machado@linaro.org>
13166
13167 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
13168
8cb5117c
SM
131692020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13170
13171 * loc.h (dwarf2_get_die_type): Move to...
13172 * read.h (dwarf2_get_die_type): ... here.
13173 * read.c (dwarf2_get_die_type): Move doc to header.
13174
c325c44e
JB
131752020-02-25 Joel Brobecker <brobecker@adacore.com>
13176
13177 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
13178 'gnulib/Makefile.in' to the list.
13179
4ac93832
TT
131802020-02-24 Tom Tromey <tom@tromey.com>
13181
13182 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
13183 Remove.
13184 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
13185 XOBNEWVEC.
13186
197400e8
TT
131872020-02-24 Tom Tromey <tom@tromey.com>
13188
13189 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
13190 New method.
13191 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
13192 (dw2_do_instantiate_symtab, dw2_get_file_names)
13193 (build_type_psymtab_dependencies, load_full_type_unit): Update.
13194
76935768
TT
131952020-02-24 Tom Tromey <tom@tromey.com>
13196
13197 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
13198 make_scoped_restore.
13199 (dwarf2_psymtab::read_symtab): Don't clear
13200 reading_partial_symbols.
13201
a88ef40d
TV
132022020-02-24 Tom de Vries <tdevries@suse.de>
13203
13204 PR gdb/25592
13205 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
13206
c9af6521
TV
132072020-02-24 Tom de Vries <tdevries@suse.de>
13208
13209 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
13210 commands layout next/prev/regs.
13211
5707a07a
TT
132122020-02-22 Tom Tromey <tom@tromey.com>
13213
13214 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
13215 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
13216
3b0fb49e
TT
132172020-02-22 Tom Tromey <tom@tromey.com>
13218
13219 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
13220
283be8bf
TT
132212020-02-22 Tom Tromey <tom@tromey.com>
13222
13223 * tui/tui-win.c (_initialize_tui_win): Add usage text.
13224 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
13225 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
13226 * tui/tui.c (_initialize_tui): Add usage text.
13227
ca793b96
TT
132282020-02-22 Tom Tromey <tom@tromey.com>
13229
13230 * tui/tui-win.c (tui_set_focus_command)
13231 (tui_set_win_height_command): Use error_no_arg.
13232 (_initialize_tui_win): Update help text.
13233 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
13234
432b5c40
TT
132352020-02-22 Tom Tromey <tom@tromey.com>
13236
13237 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
13238 * tui/tui-disasm.h (struct tui_disasm_window)
13239 <display_start_addr>: Declare.
13240 * tui/tui-source.h (struct tui_source_window)
13241 <display_start_addr>: Declare.
13242 * tui/tui-winsource.h (struct tui_source_window_base)
13243 <show_source_line, display_start_addr>: New methods.
13244 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
13245 Rename and move to protected section.
13246 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
13247 (tui_source_window_base::do_erase_source_content): Update.
13248 (tui_source_window_base::show_source_line): Now a method.
13249 (tui_source_window_base::show_source_content)
13250 (tui_source_window_base::tui_source_window_base)
13251 (tui_source_window_base::rerender)
13252 (tui_source_window_base::refill)
13253 (tui_source_window_base::do_scroll_horizontal)
13254 (tui_source_window_base::set_is_exec_point_at)
13255 (tui_source_window_base::update_breakpoint_info)
13256 (tui_source_window_base::update_exec_info): Update.
13257 * tui/tui-source.c (tui_source_window::set_contents)
13258 (tui_source_window::showing_source_p)
13259 (tui_source_window::do_scroll_vertical)
13260 (tui_source_window::location_matches_p)
13261 (tui_source_window::line_is_displayed): Update.
13262 (tui_source_window::display_start_addr): New method.
13263 * tui/tui-disasm.c (tui_disasm_window::set_contents)
13264 (tui_disasm_window::do_scroll_vertical)
13265 (tui_disasm_window::location_matches_p): Update.
13266 (tui_disasm_window::display_start_addr): New method.
13267
01b1af32
TT
132682020-02-22 Tom Tromey <tom@tromey.com>
13269
13270 * NEWS: Add entry for gdb.register_window_type.
13271 * tui/tui-layout.h (window_factory): New typedef.
13272 (tui_register_window): Declare.
13273 * tui/tui-layout.c (saved_tui_windows): New global.
13274 (tui_apply_current_layout): Use it.
13275 (tui_register_window): New function.
13276 * python/python.c (do_start_initialization): Call
13277 gdbpy_initialize_tui.
13278 (python_GdbMethods): Add "register_window_type" function.
13279 * python/python-internal.h (gdbpy_register_tui_window)
13280 (gdbpy_initialize_tui): Declare.
13281 * python/py-tui.c: New file.
13282 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
13283
fc96d20b
TT
132842020-02-22 Tom Tromey <tom@tromey.com>
13285
13286 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
13287
935c78c0
TT
132882020-02-22 Tom Tromey <tom@tromey.com>
13289
13290 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
13291 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
13292 * tui/tui-data.c (tui_set_win_with_focus): Remove.
13293 (tui_set_win_focus_to): Move from tui-win.c.
13294
0240c8f1
TT
132952020-02-22 Tom Tromey <tom@tromey.com>
13296
13297 * tui/tui-layout.c (make_standard_window, get_locator_window): New
13298 functions.
13299 (known_window_types): New global.
13300 (tui_get_window_by_name): Reimplement.
13301 (initialize_known_windows): New function.
13302 (validate_window_name): Rewrite.
13303 (_initialize_tui_layout): Call initialize_known_windows.
13304
fdb01f0c
TT
133052020-02-22 Tom Tromey <tom@tromey.com>
13306
13307 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
13308 Remove constants.
13309 * tui/tui-winsource.h (struct tui_source_window_base)
13310 <tui_source_window_base>: Remove parameter.
13311 * tui/tui-winsource.c
13312 (tui_source_window_base::tui_source_window_base): Remove
13313 parameter.
13314 (tui_source_window_base::refill): Update.
13315 * tui/tui-stack.h (struct tui_locator_window)
13316 <tui_locator_window>: Update.
13317 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
13318 Default the constructor.
13319 * tui/tui-regs.h (struct tui_data_item_window)
13320 <tui_data_item_window>: Default the constructor.
13321 (struct tui_data_window) <tui_data_window>: Likewise.
13322 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
13323 Default the constructor.
13324 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
13325 Default the constructor.
13326 <type>: Remove.
13327 (struct tui_win_info) <tui_win_info>: Default the constructor.
13328 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
13329 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
13330 Default the constructor.
13331
865a5aec
TT
133322020-02-22 Tom Tromey <tom@tromey.com>
13333
13334 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
13335 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
13336 * tui/tui-win.c (tui_resize_all): Don't call
13337 tui_delete_invisible_windows.
13338 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
13339 done.
13340 (tui_set_layout): Update.
13341 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
13342 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
13343 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
13344
e098d18c
TT
133452020-02-22 Tom Tromey <tom@tromey.com>
13346
13347 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
13348 correctly.
13349
eb9c8874
TT
133502020-02-22 Tom Tromey <tom@tromey.com>
13351
13352 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
13353
7eed1a8e
TT
133542020-02-22 Tom Tromey <tom@tromey.com>
13355
13356 * tui/tui-winsource.h (struct tui_source_window_iterator)
13357 <inner_iterator>: New etytypedef.
13358 <tui_source_window_iterator>: Take "end" parameter.
13359 <tui_source_window_iterator>: Take iterator.
13360 <operator*, advance>: Update.
13361 <m_iter>: Change type.
13362 <m_end>: New field.
13363 (struct tui_source_windows) <begin, end>: Update.
13364 * tui/tui-layout.c (tui_windows): New global.
13365 (tui_apply_current_layout): Clear tui_windows.
13366 (tui_layout_window::apply): Update tui_windows.
13367 * tui/tui-data.h (tui_windows): Declare.
13368 (all_tui_windows): Now inline function.
13369 (class tui_window_iterator, struct all_tui_windows): Remove.
13370
7c043ba6
TT
133712020-02-22 Tom Tromey <tom@tromey.com>
13372
13373 PR tui/17850:
13374 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
13375 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
13376 "height" argument.
13377 (class tui_layout_window) <get_sizes>: Likewise.
13378 (class tui_layout_split) <tui_layout_split>: Add "vertical"
13379 argument.
13380 <get_sizes>: Add "height" argument.
13381 <m_vertical>: New field.
13382 * tui/tui-layout.c (tui_layout_split::clone): Update.
13383 (tui_layout_split::get_sizes): Add "height" argument.
13384 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
13385 (tui_new_layout_command): Parse "-horizontal".
13386 (_initialize_tui_layout): Update help string.
13387 (tui_layout_split::specification): Add "-horizontal" when needed.
13388 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
13389 argument.
13390 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
13391 New methods.
13392
6bc56648
TT
133932020-02-22 Tom Tromey <tom@tromey.com>
13394
13395 * tui/tui-layout.h (enum tui_adjust_result): New.
13396 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
13397 (class tui_layout_window) <adjust_size>: Return
13398 tui_adjust_result. Rewrite.
13399 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
13400 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
13401
c22fef7e
TT
134022020-02-22 Tom Tromey <tom@tromey.com>
13403
13404 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
13405 parameter and return types.
13406 (class tui_layout_base) <specification>: Add "depth".
13407 (class tui_layout_window) <specification>: Add "depth".
13408 (class tui_layout_split) <specification>: Add "depth".
13409 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
13410 and return types.
13411 (tui_new_layout_command): Parse sub-layouts.
13412 (_initialize_tui_layout): Update help string.
13413 (tui_layout_window::specification): Add "depth".
13414 (add_layout_command): Update.
13415
ee325b61
TT
134162020-02-22 Tom Tromey <tom@tromey.com>
13417
13418 * NEWS: Add "tui new-layout" item.
13419 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
13420 Add new-layout command to help text.
13421 (validate_window_name): New function.
13422 (tui_new_layout_command): New function.
13423 (_initialize_tui_layout): Register "new-layout".
13424 (tui_layout_window::specification): New method.
13425 (tui_layout_window::specification): New method.
13426 * tui/tui-layout.h (class tui_layout_base) <specification>: New
13427 method.
13428 (class tui_layout_window) <specification>: New method.
13429 (class tui_layout_split) <specification>: New method.
13430
416eb92d
TT
134312020-02-22 Tom Tromey <tom@tromey.com>
13432
13433 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
13434 * tui/tui-win.c (window_name_completer): Update comment.
13435 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
13436 Declare method.
13437 (class tui_layout_window) <replace_window>: Likewise.
13438 (class tui_layout_split) <replace_window>: Likewise.
13439 (tui_set_layout): Don't declare.
13440 (tui_set_initial_layout): Declare function.
13441 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
13442 (asm_regs_layout): New globals.
13443 (tui_current_layout, show_layout): Remove.
13444 (tui_set_layout, tui_add_win_to_layout): Rewrite.
13445 (find_layout, tui_apply_layout): New function.
13446 (layout_completer): Remove.
13447 (tui_next_layout): Reimplement.
13448 (tui_next_layout_command): New function.
13449 (tui_set_initial_layout, tui_prev_layout_command): New functions.
13450 (tui_regs_layout): Reimplement.
13451 (tui_regs_layout_command): New function.
13452 (extract_display_start_addr): Rewrite.
13453 (next_layout, prev_layout): Remove.
13454 (tui_layout_window::replace_window): New method.
13455 (tui_layout_split::replace_window): New method.
13456 (destroy_layout): New function.
13457 (layout_list): New global.
13458 (add_layout_command): New function.
13459 (initialize_layouts): Update.
13460 (tui_layout_command): New function.
13461 (_initialize_tui_layout): Install "layout" commands.
13462 * tui/tui-data.h (enum tui_layout_type): Remove.
13463 (tui_current_layout): Don't declare.
13464
0dbc2fc7
TT
134652020-02-22 Tom Tromey <tom@tromey.com>
13466
13467 * tui/tui-regs.c (tui_reg_layout): Remove.
13468 (tui_reg_command): Use tui_regs_layout.
13469 * tui/tui-layout.h (tui_reg_command): Declare.
13470 * tui/tui-layout.c (tui_reg_command): New function.
13471
5afe342e
TT
134722020-02-22 Tom Tromey <tom@tromey.com>
13473
13474 * tui/tui.c (tui_rl_delete_other_windows): Call
13475 tui_remove_some_windows.
13476 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
13477 Declare method.
13478 (class tui_layout_window) <remove_windows>: New method.
13479 (class tui_layout_split) <remove_windows>: Declare.
13480 (tui_remove_some_windows): Declare.
13481 * tui/tui-layout.c (tui_remove_some_windows): New function.
13482 (tui_layout_split::remove_windows): New method.
13483
427326a8
TT
134842020-02-22 Tom Tromey <tom@tromey.com>
13485
13486 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
13487 * tui/tui-layout.h (tui_next_layout): Declare.
13488 * tui/tui-layout.c (tui_next_layout): New function.
13489
3fe12b6d
TT
134902020-02-22 Tom Tromey <tom@tromey.com>
13491
13492 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
13493 correct coordinates.
13494
59b8b5d2
TT
134952020-02-22 Tom Tromey <tom@tromey.com>
13496
13497 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
13498 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
13499 DATA_WIN case.
13500
2a3d458b
TT
135012020-02-22 Tom Tromey <tom@tromey.com>
13502
13503 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
13504 TUI_DISASM_WIN, not tui_win_list.
13505
3f0cbb04
TT
135062020-02-22 Tom Tromey <tom@tromey.com>
13507
13508 * valprint.c (generic_val_print_enum_1)
13509 (val_print_type_code_flags): Style member names.
13510 * rust-lang.c (val_print_struct, rust_print_enum)
13511 (rust_print_struct_def, rust_internal_print_type): Style member
13512 names.
13513 * p-valprint.c (pascal_object_print_value_fields): Style member
13514 names. Only call fprintf_symbol_filtered for static members.
13515 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
13516 * f-valprint.c (f_val_print): Style member names.
13517 * f-typeprint.c (f_type_print_base): Style member names.
13518 * cp-valprint.c (cp_print_value_fields): Style member names. Only
13519 call fprintf_symbol_filtered for static members.
13520 (cp_print_class_member): Style member names.
13521 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
13522 member names.
13523 * ada-valprint.c (ada_print_scalar): Style enum names.
13524 (ada_val_print_enum): Likewise.
13525 * ada-typeprint.c (print_enum_type): Style enum names.
13526
d4d947ae
TT
135272020-02-21 Tom Tromey <tom@tromey.com>
13528
13529 * psympriv.h (struct partial_symtab): Update comment.
13530
e94e944b
TT
135312020-02-21 Tom Tromey <tromey@adacore.com>
13532
13533 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
13534 type is CORE_ADDR.
13535
1eb73179
TV
135362020-02-21 Tom de Vries <tdevries@suse.de>
13537
13538 PR gdb/25534
13539 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
13540 if dependencies[i]->user != NULL.
13541
4f180d53
AT
135422020-02-21 Ali Tamur <tamur@google.com>
13543
13544 * dwarf2/read.c (dwarf2_name): Add null check.
13545
22b6cd70
TT
135462020-02-20 Tom Tromey <tom@tromey.com>
13547
13548 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
13549 ">=", in binary search.
13550 (dwarf2_find_containing_comp_unit): New overload.
13551 (run_test): New self-test.
13552 (_initialize_dwarf2_read): Register new test.
13553
bd0cf5a6
NC
135542020-02-20 Nelson Chu <nelson.chu@sifive.com>
13555
13556 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
13557 * riscv-tdep.h: Likewise.
13558 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
13559 rv32-only CSR.
13560 * features/riscv/64bit-csr.xml: Regenerated.
13561
3f702acd
SDJ
135622020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
13563 Tom Tromey <tom@tromey.com>
13564
13565 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
13566 of 'fputc_unfiltered'.
13567 (putchar_unfiltered): Call 'fputc_unfiltered'.
13568 (fputc_unfiltered): Call 'fputs_unfiltered'.
13569
d13c7322
AB
135702020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
13571
13572 * config.in: Regenerate.
13573 * configure: Regenerate.
13574 * configure.ac: Add --with-python-libdir option.
13575 * main.c: Use WITH_PYTHON_LIBDIR.
13576
869d8950
TT
135772020-02-19 Tom Tromey <tom@tromey.com>
13578
13579 * symtab.c (general_symbol_info::compute_and_set_names): Use
13580 obstack_strndup. Simplify call to symbol_set_demangled_name.
13581
298e9637
SM
135822020-02-19 Simon Marchi <simon.marchi@efficios.com>
13583
13584 * dwarf2/read.c (allocate_signatured_type_table,
13585 allocate_dwo_unit_table, allocate_type_unit_groups_table,
13586 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
13587 Remove objfile parameter, update all callers.
13588
08410482
DE
135892020-02-19 Doug Evans <dje@google.com>
13590
13591 PR rust/25535
13592 * rust-lang.c (rust_print_enum): Apply embedded_offset to
13593 rust_enum_variant calculation.
13594
dfdeeca1
TT
135952020-02-19 Tom Tromey <tromey@adacore.com>
13596
13597 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
13598
2ef5453b
TT
135992020-02-19 Tom Tromey <tromey@adacore.com>
13600
13601 * ada-lang.c (cache_symbol): Use obstack_strdup.
13602
9f1528a1
AB
136032020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
13604
13605 * configure: Regenerate.
13606
d3c22fa8
TT
136072020-02-19 Tom Tromey <tromey@adacore.com>
13608
13609 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
13610 NULL check.
13611
bf84f706
MR
136122020-02-19 Maciej W. Rozycki <macro@wdc.com>
13613
13614 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
13615
d1c9b20f
AB
136162020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
13617
13618 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
13619 if GDBSERVER is not defined.
13620 (riscv_tdesc_cache): Likewise, also store const target_desc.
13621 (STATIC_IN_GDB): Define.
13622 (riscv_create_target_description): Update declaration with
13623 STATIC_IN_GDB.
13624 (riscv_lookup_target_description): New function, only define if
13625 GDBSERVER is not defined.
13626 * arch/riscv.h (riscv_create_target_description): Declare only
13627 when GDBSERVER is defined.
13628 (riscv_lookup_target_description): New declaration when GDBSERVER
13629 is not defined.
13630 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
13631 (riscv_linux_read_features): ...this, and return
13632 riscv_gdbarch_features instead of target_desc.
13633 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
13634 (riscv_linux_read_description): Rename to...
13635 (riscv_linux_read_features): ...this.
13636 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
13637 Update to use riscv_gdbarch_features and
13638 riscv_lookup_target_description.
13639 * riscv-tdep.c (riscv_find_default_target_description): Use
13640 riscv_lookup_target_description instead of
13641 riscv_create_target_description.
13642
373d7ac0
SM
136432020-02-18 Simon Marchi <simon.marchi@efficios.com>
13644
13645 * valprint.c (generic_val_print_enum_1): When printing a flag
13646 enum with value 0 and there is no enumerator with value 0, print
13647 just "0" instead of "(unknown: 0x0)".
13648
b29a2df0
SM
136492020-02-18 Simon Marchi <simon.marchi@efficios.com>
13650
13651 * valprint.c (generic_val_print_enum_1): Print unknown part of
13652 flag enum in hex.
13653
6740f0cc
SM
136542020-02-18 Simon Marchi <simon.marchi@efficios.com>
13655
13656 * dwarf2/read.c (update_enumeration_type_from_children): Allow
13657 flag enums to contain duplicate enumerators.
13658 * valprint.c (generic_val_print_enum_1): Update comment.
13659
edd45eb0
SM
136602020-02-18 Simon Marchi <simon.marchi@efficios.com>
13661
13662 * dwarf2/read.c: Include "count-one-bits.h".
13663 (update_enumeration_type_from_children): If an enumerator has
13664 multiple bits set, don't treat the enumeration as a "flag enum".
13665 * valprint.c (generic_val_print_enum_1): Assert that enumerators
13666 of flag enums have 0 or 1 bit set.
13667
6d0cf446
BE
136682020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
13669
13670 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
13671 conversion.
13672 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13673 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
13674 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13675 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
13676 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13677
7001c1b7
SM
136782020-02-18 Simon Marchi <simon.marchi@efficios.com>
13679
13680 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
13681
fdb61c6c
SM
136822020-02-14 Simon Marchi <simon.marchi@efficios.com>
13683
13684 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
13685 displaced_step_closure_up.
13686 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
13687 (struct displaced_step_closure_up):
13688 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13689 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
13690 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
13691 Likewise.
13692 * gdbarch.sh (displaced_step_copy_insn): Likewise.
13693 * gdbarch.c, gdbarch.h: Re-generate.
13694 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
13695 displaced_step_closure_up.
13696 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13697 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
13698 * infrun.h (displaced_step_closure_up): New type alias.
13699 (struct displaced_step_inferior_state) <step_closure>: Change
13700 type to displaced_step_closure_up.
13701 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
13702 displaced_step_closure_up.
13703 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13704
a4a38eb4
TT
137052020-02-14 Tom Tromey <tom@tromey.com>
13706
13707 * minidebug.c (gnu_debug_key): New global.
13708 (find_separate_debug_file_in_section): Use it.
13709
e8217e61
SM
137102020-02-14 Simon Marchi <simon.marchi@efficios.com>
13711
13712 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
13713 std::unique_ptr.
13714 * gdbarch.c: Re-generate.
13715 * gdbarch.h: Re-generate.
13716 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
13717 change.
13718 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
13719 type to std::unique_ptr.
13720 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
13721 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13722 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
13723 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
13724 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
13725 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13726 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
13727 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
13728 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13729
d8d83535
SM
137302020-02-14 Simon Marchi <simon.marchi@efficios.com>
13731
13732 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
13733 std::unique_ptr.
13734 (displaced_step_clear): Rename to...
13735 (displaced_step_reset): ... this. Just call displaced->reset ().
13736 (displaced_step_clear_cleanup): Rename to...
13737 (displaced_step_reset_cleanup): ... this.
13738 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
13739 (displaced_step_fixup): Likewise.
13740 (resume_1): Likewise.
13741 (handle_inferior_event): Restore child's memory before calling
13742 displaced_step_fixup on the parent.
13743 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
13744 to std::unique_ptr.
13745 <step_closure>: Change type to std::unique_ptr.
13746
5f661e03
SM
137472020-02-14 Simon Marchi <simon.marchi@efficios.com>
13748
13749 * arm-tdep.c: Include count-one-bits.h.
13750 (cleanup_block_store_pc): Use count_one_bits.
13751 (cleanup_block_load_pc): Use count_one_bits.
13752 (arm_copy_block_xfer): Use count_one_bits.
13753 (thumb2_copy_block_xfer): Use count_one_bits.
13754 (thumb_copy_pop_pc_16bit): Use count_one_bits.
13755 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
13756 (thumb_get_next_pcs_raw): Use count_one_bits.
13757 (arm_get_next_pcs_raw): Use count_one_bits_l.
13758 * arch/arm.c (bitcount): Remove.
13759 * arch/arm.h (bitcount): Remove.
13760
8084e579
TT
137612020-02-14 Tom Tromey <tromey@adacore.com>
13762
13763 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
13764 Update.
13765 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
13766 * dwarf2/loc.c (call_site_find_chain_1): Return
13767 unique_xmalloc_ptr.
13768 (call_site_find_chain): Likewise.
13769
258bf0ee
RB
137702020-02-14 Richard Biener <rguenther@suse.de>
13771
13772 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
13773 on expression with division operators.
13774
f98a8458
AKS
137752020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13776
13777 * MAINTAINERS (Write After Approval): Adding myself.
13778
d1437c0e
TT
137792020-02-12 Tom Tromey <tom@tromey.com>
13780
13781 * event-loop.c (event_data, gdb_event, event_handler_func):
13782 Remove.
13783
3d4560f7
TT
137842020-02-12 Tom Tromey <tom@tromey.com>
13785
13786 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
13787 (dwarf2_frame_objfile_data): Add comment.
13788 (find_comp_unit, set_comp_unit): New functions.
13789 (dwarf2_frame_find_fde): Use find_comp_unit.
13790 (dwarf2_build_frame_info): Use set_comp_unit.
13791
21982304
TT
137922020-02-12 Tom Tromey <tom@tromey.com>
13793
13794 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
13795 (comp_unit): Don't initialize objfile.
13796 (execute_cfa_program): Add text_offset parameter.
13797 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
13798 (dwarf2_frame_cache): Update.
13799 (dwarf2_build_frame_info): Don't set "objfile" member.
13800
4debb237
TT
138012020-02-12 Tom Tromey <tom@tromey.com>
13802
13803 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
13804 (decode_frame_entry): Likewise.
13805 (dwarf2_build_frame_info): Update.
13806
0d404d44
TT
138072020-02-12 Tom Tromey <tom@tromey.com>
13808
13809 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
13810 (decode_frame_entry_1): Use the comp_unit obstack.
13811
a7a3ae5c
TT
138122020-02-12 Tom Tromey <tom@tromey.com>
13813
13814 * dwarf2/frame.c (struct comp_unit): Add initializers and
13815 constructor.
13816 (dwarf2_frame_objfile_data): Store a comp_unit.
13817 (dwarf2_frame_find_fde): Update.
13818 (dwarf2_build_frame_info): Use "new".
13819
a9d65418
TT
138202020-02-12 Tom Tromey <tom@tromey.com>
13821
13822 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
13823 (dwarf2_fde_table): Typedef for std::vector.
13824 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
13825 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
13826 (decode_frame_entry): Update.
13827 (dwarf2_build_frame_info): Use "new".
13828
7559c217
CB
138292020-02-12 Christian Biesinger <cbiesinger@google.com>
13830
13831 * arm-tdep.c (arm_gdbarch_init): Update.
13832 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
13833 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
13834 have_neon, is_m>: Change to bool.
13835
aeefc73c
CB
138362020-02-12 Christian Biesinger <cbiesinger@google.com>
13837
13838 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
13839
d27b8e5f
TT
138402020-02-12 Tom Tromey <tom@tromey.com>
13841
13842 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
13843
cd5900f3
HD
138442020-02-12 Hannes Domani <ssbssa@yahoo.de>
13845
13846 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
13847 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
13848
f056b22b
TT
138492020-02-11 Tom Tromey <tom@tromey.com>
13850
13851 * psymtab.h: Update comment.
13852
f92ff6b5
TT
138532020-02-11 Tom Tromey <tom@tromey.com>
13854
13855 * gdb_obstack.h (struct auto_obstack): Use
13856 DISABLE_COPY_AND_ASSIGN.
13857
3fd6912b
TT
138582020-02-11 Tom Tromey <tom@tromey.com>
13859
13860 * dwarf2/frame.h (struct objfile): Don't forward declare.
13861
69ed9b74
CB
138622020-02-11 Christian Biesinger <cbiesinger@google.com>
13863
13864 * cris-tdep.c (cris_supply_gregset): Change signature to match
13865 what struct regset expects.
13866 (cris_regset): New struct.
13867 (fetch_core_registers): Remove.
13868 (cris_iterate_over_regset_sections): New function.
13869 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
13870 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
13871
bda874f6
CB
138722020-02-11 Christian Biesinger <cbiesinger@google.com>
13873
13874 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
13875 registers.
13876
754e1564
CB
138772020-02-11 Christian Biesinger <cbiesinger@google.com>
13878
13879 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
13880
8ddd8e0e
SM
138812020-02-11 Simon Marchi <simon.marchi@efficios.com>
13882
13883 * configure: Re-generate.
13884
898e7f60
SM
138852020-02-11 Simon Marchi <simon.marchi@efficios.com>
13886
13887 * configure: Re-generate.
13888
58df732b
SM
138892020-02-11 Simon Marchi <simon.marchi@efficios.com>
13890
13891 * acinclude: Update warning.m4 path.
13892 * warning.m4: Move to gdbsupport.
13893
da5bd37e
TT
138942020-02-11 Tom Tromey <tromey@adacore.com>
13895
13896 * remote.c (remote_console_output): Update.
13897 * printcmd.c (printf_command): Update.
13898 * event-loop.c (gdb_wait_for_event): Update.
13899 * linux-nat.c (sigchld_handler): Update.
13900 * remote-sim.c (gdb_os_write_stdout): Update.
13901 (gdb_os_flush_stdout): Update.
13902 (gdb_os_flush_stderr): Update.
13903 (gdb_os_write_stderr): Update.
13904 * exceptions.c (print_exception): Update.
13905 * remote-fileio.c (remote_fileio_func_read): Update.
13906 (remote_fileio_func_write): Update.
13907 * tui/tui.c (tui_enable): Update.
13908 * tui/tui-interp.c (tui_interp::init): Update.
13909 * utils.c (init_page_info): Update.
13910 (putchar_unfiltered, fputc_unfiltered): Update.
13911 (gdb_flush): Update.
13912 (emit_style_escape): Update.
13913 (flush_wrap_buffer, fputs_maybe_filtered): Update.
13914 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
13915 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
13916 (stderr_file::write): Update.
13917 (stderr_file::puts): Update.
13918 * ui-file.h (ui_file_isatty, ui_file_write)
13919 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
13920 (ui_file_puts): Don't declare.
13921
85f0dd3c
TV
139222020-02-10 Tom de Vries <tdevries@suse.de>
13923
13924 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
13925 sentinel to char *.
13926
2e927613
TV
139272020-02-09 Tom de Vries <tdevries@suse.de>
13928
13929 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
13930 filename if it matches "<artificial>".
13931
6bafc845
HD
139322020-02-09 Hannes Domani <ssbssa@yahoo.de>
13933
13934 * windows-tdep.c (struct enum_value_name): New struct.
13935 (create_enum): New function.
13936 (windows_get_siginfo_type): Create and use enum types.
13937
7928d571
HD
139382020-02-09 Hannes Domani <ssbssa@yahoo.de>
13939
13940 * NEWS: Mention $_siginfo support for Windows.
13941 * windows-nat.c (handle_exception): Set siginfo_er.
13942 (windows_nat_target::mourn_inferior): Reset siginfo_er.
13943 (windows_xfer_siginfo): New function.
13944 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
13945 * windows-tdep.c (struct windows_gdbarch_data): New struct.
13946 (init_windows_gdbarch_data): New function.
13947 (get_windows_gdbarch_data): New function.
13948 (windows_get_siginfo_type): New function.
13949 (windows_init_abi): Register windows_get_siginfo_type.
13950 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
13951
6751ebae
TT
139522020-02-08 Tom Tromey <tom@tromey.com>
13953
13954 * dwarf2/read.c (class cutu_reader) <cutu_reader,
13955 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
13956 <keep>: Declare method.
13957 <m_keep>: Remove member.
13958 <~cutu_reader>: Remove.
13959 (cutu_reader::init_tu_and_read_dwo_dies): Update.
13960 (cutu_reader::cutu_reader): Update.
13961 (cutu_reader::keep): Rename from ~cutu_reader.
13962 (process_psymtab_comp_unit, build_type_psymtabs_1)
13963 (process_skeletonless_type_unit, load_partial_comp_unit)
13964 (load_full_comp_unit, dwarf2_read_addr_index)
13965 (read_signatured_type): Update.
13966
135f5437
TT
139672020-02-08 Tom Tromey <tom@tromey.com>
13968
13969 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
13970 "want_partial_unit" parameter.
13971 (process_psymtab_comp_unit): Change want_partial_unit to bool.
13972 Inline check for DW_TAG_partial_unit.
13973 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
13974
9f66ff1c
TT
139752020-02-08 Tom Tromey <tom@tromey.com>
13976
13977 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
13978 read.c.
13979 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
13980 read.c.
13981
c8a7a66f
TT
139822020-02-08 Tom Tromey <tom@tromey.com>
13983
13984 * dwarf2/read.c (read_address): Move to comp-unit.c.
13985 (dwarf2_rnglists_process, dwarf2_ranges_process)
13986 (read_attribute_value, dwarf_decode_lines_1)
13987 (var_decode_location, decode_locdesc): Update.
13988 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
13989 read.c. Remove "cu" parameter.
13990 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
13991 method.
13992
8266302d
TT
139932020-02-08 Tom Tromey <tom@tromey.com>
13994
13995 * dwarf2/read.c (read_attribute_value, read_indirect_string)
13996 (read_indirect_line_string): Update.
13997 * dwarf2/comp-unit.c (read_offset): Remove.
13998 (read_comp_unit_head): Update.
13999 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
14000 method.
14001 (read_offset): Don't declare.
14002
4057dfde
TT
140032020-02-08 Tom Tromey <tom@tromey.com>
14004
14005 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
14006 * dwarf2/read.c (struct comp_unit_head): Move to
14007 dwarf2/comp-unit.h.
14008 (enum class rcuh_kind): Move to comp-unit.h.
14009 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
14010 (read_comp_unit_head, error_check_comp_unit_head)
14011 (read_and_check_comp_unit_head): Move to comp-unit.c.
14012 (read_offset, dwarf_unit_type_name): Likewise.
14013 (create_debug_type_hash_table, read_cutu_die_from_dwo)
14014 (cutu_reader::cutu_reader, read_call_site_scope)
14015 (find_partial_die, follow_die_offset): Update.
14016 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
14017
24aa364d
TT
140182020-02-08 Tom Tromey <tom@tromey.com>
14019
14020 * dwarf2/read.c (read_offset_1): Move to leb.c.
14021 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
14022 (dwarf_decode_macro_bytes): Update.
14023 * dwarf2/leb.c (read_offset): Rename; move from read.c.
14024 * dwarf2/leb.h (read_offset): Declare.
14025
2c7d5afc
TT
140262020-02-08 Tom Tromey <tom@tromey.com>
14027
14028 * dwarf2/read.c (dwarf2_section_size): Remove.
14029 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
14030 Update.
14031 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
14032
4075cb26
TT
140332020-02-08 Tom Tromey <tom@tromey.com>
14034
14035 * dwarf2/read.c (read_initial_length): Move to leb.c.
14036 * dwarf2/leb.h (read_initial_length): Declare.
14037 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
14038 handle_nonstd parameter.
14039 * dwarf2/frame.c (read_initial_length): Remove.
14040 (decode_frame_entry_1): Update.
14041
09ba997f
TT
140422020-02-08 Tom Tromey <tom@tromey.com>
14043
14044 * dwarf2/loc.c (dwarf2_find_location_expression)
14045 (dwarf_evaluate_loc_desc::get_tls_address)
14046 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
14047 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
14048 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
14049 (dwarf2_compile_property_to_c)
14050 (dwarf2_loc_desc_get_symbol_read_needs)
14051 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
14052 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
14053 (loclist_describe_location, loclist_tracepoint_var_ref)
14054 (loclist_generate_c_location): Update.
14055 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
14056 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
14057 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
14058 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
14059 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
14060 (dwarf2_per_cu_data::addr_size)
14061 (dwarf2_per_cu_data::ref_addr_size)
14062 (dwarf2_per_cu_data::text_offset)
14063 (dwarf2_per_cu_data::addr_type): Now methods.
14064 (per_cu_header_read_in): Make per_cu "const".
14065 (dwarf2_version): Remove.
14066 (dwarf2_per_cu_data::int_type): Now a method.
14067 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
14068 (set_die_type, read_array_type, read_subrange_index_type)
14069 (read_tag_string_type, read_subrange_type): Update.
14070 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
14071 offset_size, ref_addr_size, text_offset, addr_type, version,
14072 objfile, int_type, addr_sized_int_type>: Declare methods.
14073
96c738c0
TT
140742020-02-08 Tom Tromey <tom@tromey.com>
14075
14076 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
14077 Move earlier.
14078
8fdd972c
TT
140792020-02-08 Tom Tromey <tom@tromey.com>
14080
14081 * dwarf2/read.h (dwarf_line_debug): Declare.
14082 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
14083 * dwarf2/read.c: Move line_header code to new files.
14084 (dwarf_line_debug): No longer static.
14085 * dwarf2/line-header.c: New file.
14086 * dwarf2/line-header.h: New file.
14087
03075812
TT
140882020-02-08 Tom Tromey <tom@tromey.com>
14089
14090 * dwarf2/read.c (struct line_header) <file_full_name,
14091 file_file_name>: Return unique_xmalloc_ptr.
14092 (line_header::file_file_name): Update.
14093 (line_header::file_full_name): Update.
14094 (dw2_get_file_names_reader): Update.
14095 (macro_start_file): Update.
14096
bb822404
TT
140972020-02-08 Tom Tromey <tom@tromey.com>
14098
14099 * dwarf2/read.c (struct line_header) <file_full_name,
14100 file_file_name>: Declare methods.
14101 (dw2_get_file_names_reader): Update.
14102 (file_file_name): Now a method.
14103 (file_full_name): Likewise.
14104 (macro_start_file): Update.
14105
009b64fc
TT
141062020-02-08 Tom Tromey <tom@tromey.com>
14107
14108 * dwarf2/read.c (dwarf_always_disassemble)
14109 (show_dwarf_always_disassemble): Move to loc.c.
14110 (_initialize_dwarf2_read): Move "always-disassemble" registration
14111 to loc.c.
14112 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
14113 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
14114 static.
14115 (show_dwarf_always_disassemble): Move from read.c.
14116 (_initialize_dwarf2loc): Move always-disassemble from read.c.
14117
5895093f
TT
141182020-02-08 Tom Tromey <tom@tromey.com>
14119
14120 * dwarf2/read.c (~dwarf2_per_objfile): Update.
14121 (create_quick_file_names_table): Return htab_up.
14122 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
14123 Update.
14124 * dwarf2/read.h (struct dwarf2_per_objfile)
14125 <quick_file_names_table>: Now htab_up.
14126
b3b32279
TT
141272020-02-08 Tom Tromey <tom@tromey.com>
14128
14129 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
14130
1d33d811
TT
141312020-02-08 Tom Tromey <tom@tromey.com>
14132
14133 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
14134 Rewrite.
14135 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
14136 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
14137 (abbrev_table::abbrev_table): No longer inline.
14138 (ABBREV_HASH_SIZE): Remove.
14139 (abbrev_table::m_abbrevs): Now an htab_up.
14140
86de1d91
TT
141412020-02-08 Tom Tromey <tom@tromey.com>
14142
14143 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
14144 (cutu_reader): Update.
14145 (build_type_psymtabs_1): Update.
14146 * dwarf2/abbrev.c (abbrev_table::read): Rename.
14147 (abbrev_table::alloc_abbrev): Update.
14148 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
14149 (abbrev_table::read): New static method, renamed from
14150 abbrev_table_read_table.
14151 (abbrev_table::alloc_abbrev)
14152 (abbrev_table::add_abbrev): Now private.
14153 (abbrev_table::abbrev_table): Now private.
14154 (abbrev_table::m_abbrev_obstack): Now private. Rename.
14155
0335378b
TT
141562020-02-08 Tom Tromey <tom@tromey.com>
14157
14158 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
14159 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
14160 htab_up.
14161
48b490f2
TT
141622020-02-08 Tom Tromey <tom@tromey.com>
14163
14164 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
14165 htab_up.
14166 (lookup_dwo_unit_in_dwp): Update.
14167 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
14168 on obstack.
14169
bc68fb19
TT
141702020-02-08 Tom Tromey <tom@tromey.com>
14171
14172 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
14173 obstack.
14174
d15acc42
TT
141752020-02-08 Tom Tromey <tom@tromey.com>
14176
14177 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
14178 line_header_hash.
14179 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
14180 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
14181 Change type to htab_up.
14182
eaa5fa8b
TT
141832020-02-08 Tom Tromey <tom@tromey.com>
14184
14185 * dwarf2/read.c (allocate_type_unit_groups_table): Return
14186 htab_up. Don't allocate on obstack.
14187 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
14188 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
14189 Change type to htab_up.
14190
b0b6a987
TT
141912020-02-08 Tom Tromey <tom@tromey.com>
14192
14193 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
14194 Change type to htab_up.
14195 * dwarf2/read.c (create_signatured_type_table_from_index)
14196 (create_signatured_type_table_from_debug_names)
14197 (create_all_type_units, add_type_unit)
14198 (lookup_dwo_signatured_type, lookup_signatured_type)
14199 (process_skeletonless_type_unit): Update.
14200 (create_debug_type_hash_table, create_debug_types_hash_table):
14201 Change type of types_htab.
14202 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
14203 htab_up. Don't allocate on obstack.
14204 (create_cus_hash_table): Change type of cus_htab parameter.
14205 (struct dwo_file) <cus, tus>: Now htab_up.
14206 (lookup_dwo_signatured_type, lookup_dwo_cutu)
14207 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
14208 (queue_and_load_all_dwo_tus): Update.
14209 * dwarf2/index-write.c (write_gdbindex): Update.
14210 (write_debug_names): Update.
14211
39856def
TT
142122020-02-08 Tom Tromey <tom@tromey.com>
14213
14214 * dwarf2/read.h (struct dwarf2_queue_item): Move from
14215 dwarf2/read.c. Remove "next" member. Add constructor ntad
14216 destructor.
14217 (struct dwarf2_per_objfile) <queue>: New member.
14218 * dwarf2/read.c (struct dwarf2_queue_item): Move to
14219 dwarf2/read.h.
14220 (dwarf2_queue, dwarf2_queue_tail): Remove.
14221 (class dwarf2_queue_guard): Add parameter to constructor. Use
14222 DISABLE_COPY_AND_ASSIGN.
14223 <m_per_objfile>: New member.
14224 <~dwarf2_queue_guard>: Rewrite.
14225 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
14226 Update.
14227 (~dwarf2_queue_item): New.
14228
3e225074
TT
142292020-02-08 Tom Tromey <tom@tromey.com>
14230
14231 * dwarf2/read.c (struct die_info) <has_children>: New member.
14232 (dw2_get_file_names_reader): Remove has_children.
14233 (dw2_get_file_names): Update.
14234 (read_cutu_die_from_dwo): Remove has_children.
14235 (cutu_reader::init_tu_and_read_dwo_dies)
14236 (cutu_reader::cutu_reader): Update.
14237 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
14238 Remove has_children.
14239 (build_type_psymtabs_1, process_skeletonless_type_unit)
14240 (load_partial_comp_unit, load_full_comp_unit): Update.
14241 (create_dwo_cu_reader): Remove has_children.
14242 (create_cus_hash_table, read_die_and_children): Update.
14243 (read_full_die_1,read_full_die): Remove has_children.
14244 (read_signatured_type): Update.
14245 (class cutu_reader) <has_children>: Remove.
14246
82ca8957
TT
142472020-02-08 Tom Tromey <tom@tromey.com>
14248
14249 * dwarf2/expr.c: Rename from dwarf2expr.c.
14250 * dwarf2/expr.h: Rename from dwarf2expr.h.
14251 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
14252 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
14253 * dwarf2/frame.c: Rename from dwarf2-frame.c.
14254 * dwarf2/frame.h: Rename from dwarf2-frame.h.
14255 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
14256 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
14257 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
14258 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
14259 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
14260 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
14261 * dwarf2/loc.c: Rename from dwarf2loc.c.
14262 * dwarf2/loc.h: Rename from dwarf2loc.h.
14263 * dwarf2/read.c: Rename from dwarf2read.c.
14264 * dwarf2/read.h: Rename from dwarf2read.h.
14265 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
14266 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
14267 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
14268 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
14269 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
14270 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
14271 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
14272 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
14273 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
14274 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
14275 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
14276 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
14277 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
14278 Update.
14279 * Makefile.in (COMMON_SFILES): Update.
14280 (HFILES_NO_SRCDIR): Update.
14281
9e35d499
TT
142822020-02-08 Tom Tromey <tom@tromey.com>
14283
14284 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
14285 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
14286
1eba2311
TT
142872020-02-08 Tom Tromey <tom@tromey.com>
14288
14289 * dwarf2read.h (struct die_info): Don't declare.
14290
e41c2da2
TT
142912020-02-08 Tom Tromey <tom@tromey.com>
14292
14293 * dwarf2read.h (die_info_ptr): Remove typedef.
14294
4fc6c0d5
TT
142952020-02-08 Tom Tromey <tom@tromey.com>
14296
14297 * dwarf2read.c (read_call_site_scope)
14298 (handle_data_member_location, dwarf2_add_member_fn)
14299 (mark_common_block_symbol_computed, read_common_block)
14300 (attr_to_dynamic_prop, partial_die_info::read)
14301 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
14302 (dwarf2_symbol_mark_computed, set_die_type): Update.
14303 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
14304 method.
14305 (attr_form_is_block): Don't declare.
14306 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
14307
cd6c91b4
TT
143082020-02-08 Tom Tromey <tom@tromey.com>
14309
14310 * dwarf2read.c (dwarf2_find_base_address, )
14311 (read_call_site_scope, rust_containing_type)
14312 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
14313 (handle_data_member_location, dwarf2_add_member_fn)
14314 (get_alignment, read_structure_type, process_structure_scope)
14315 (mark_common_block_symbol_computed, read_common_block)
14316 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
14317 (partial_die_info::read, read_attribute_value, new_symbol)
14318 (lookup_die_type, dwarf2_get_ref_die_offset)
14319 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
14320 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
14321 (dwarf2_symbol_mark_computed): Update.
14322 * dwarf2/attribute.h (struct attribute) <value_as_address,
14323 form_is_section_offset, form_is_constant, form_is_ref>: Declare
14324 methods.
14325 (value_as_address, attr_form_is_section_offset)
14326 (attr_form_is_constant, attr_form_is_ref): Don't declare.
14327 * dwarf2/attribute.c (attribute::value_as_address)
14328 (attribute::form_is_section_offset, attribute::form_is_constant)
14329 (attribute::form_is_ref): Now methods.
14330
162dce55
TT
143312020-02-08 Tom Tromey <tom@tromey.com>
14332
14333 * dwarf2read.c (struct attribute, DW_STRING)
14334 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
14335 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
14336 (attr_form_is_block, attr_form_is_section_offset)
14337 (attr_form_is_constant, attr_form_is_ref): Move.
14338 * dwarf2/attribute.h: New file.
14339 * dwarf2/attribute.c: New file, from dwarf2read.c.
14340 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
14341
3054dd54
TT
143422020-02-08 Tom Tromey <tom@tromey.com>
14343
14344 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
14345 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
14346 Move.
14347 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
14348 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
14349 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
14350 abbrev.c.
14351 * dwarf2/abbrev.h: New file.
14352 * dwarf2/abbrev.c: New file, from dwarf2read.c.
14353 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
14354
96b79293
TT
143552020-02-08 Tom Tromey <tom@tromey.com>
14356
14357 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
14358 (dwarf2_section_size, dwarf2_get_section_info)
14359 (create_signatured_type_table_from_debug_names)
14360 (create_addrmap_from_aranges, read_debug_names_from_section)
14361 (get_gdb_index_contents_from_section, read_comp_unit_head)
14362 (error_check_comp_unit_head, read_abbrev_offset)
14363 (create_debug_type_hash_table, init_cu_die_reader)
14364 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
14365 (read_comp_units_from_section, create_cus_hash_table)
14366 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
14367 (create_dwp_v2_section, dwarf2_rnglists_process)
14368 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
14369 (abbrev_table_read_table, read_indirect_string_at_offset_from)
14370 (read_indirect_string_from_dwz, read_addr_index_1)
14371 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
14372 (dwarf_decode_macro_bytes, dwarf_decode_macros)
14373 (fill_in_loclist_baton): Update.
14374 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
14375 get_containing_section, get_bfd_owner, get_bfd_section,
14376 get_file_name, get_id, get_flags, empty, read>: Declare methods.
14377 (dwarf2_read_section, get_section_name, get_section_file_name)
14378 (get_containing_section, get_section_bfd_owner)
14379 (get_section_bfd_section, get_section_name, get_section_file_name)
14380 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
14381 declare.
14382 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
14383 (dwarf2_section_info::get_bfd_owner)
14384 (dwarf2_section_info::get_bfd_section)
14385 (dwarf2_section_info::get_name)
14386 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
14387 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
14388 (dwarf2_section_info::read): Now methods.
14389 * dwarf-index-write.c (class debug_names): Update.
14390
2c86cff9
TT
143912020-02-08 Tom Tromey <tom@tromey.com>
14392
14393 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
14394 Move to dwarf2/section.h.
14395 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
14396 (get_section_bfd_section, get_section_name)
14397 (get_section_file_name, get_section_id, get_section_flags)
14398 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
14399 dwarf2/section.c.
14400 * dwarf2/section.h: New file.
14401 * dwarf2/section.c: New file, from dwarf2read.c.
14402 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
14403
f4382c45
TT
144042020-02-08 Tom Tromey <tom@tromey.com>
14405
14406 * dwarf2read.h (read_unsigned_leb128): Don't declare.
14407 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
14408 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
14409 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
14410 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
14411 * dwarf2/leb.h: New file, from dwarf2read.c.
14412 * dwarf2/leb.c: New file, from dwarf2read.c.
14413 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
14414 Remove.
14415 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
14416 (COMMON_SFILES): Add dwarf2/leb.c.
14417
01840b7a
JB
144182020-02-08 Joel Brobecker <brobecker@adacore.com>
14419
14420 GDB 9.1 released.
14421
dfcb27e4
IB
144222020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
14423
14424 PR gdb/25190:
aac66a4c
SM
14425 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
14426 * gdb/remote.c (remote_console_output): Update.
14427 * gdb/ui-file.c (fputs_unfiltered): Rename to...
14428 (ui_file_puts): ...this.
14429 * gdb/ui-file.h (ui_file_puts): Add declaration.
14430 * gdb/utils.c (emit_style_escape): Update.
14431 (flush_wrap_buffer): Update.
14432 (fputs_maybe_filtered): Update.
14433 (fputs_unfiltered): Add function.
dfcb27e4 14434
faa17681
IB
144352020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
14436
aac66a4c
SM
14437 * gdb/event-loop.c (gdb_wait_for_event): Update.
14438 * gdb/printcmd.c (printf_command): Update.
14439 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
14440 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
14441 (gdb_os_flush_stderr): Update.
14442 * gdb/remote.c (remote_console_output): Update.
14443 * gdb/ui-file.c (gdb_flush): Rename to...
14444 (ui_file_flush): ...this.
14445 (stderr_file::write): Update.
14446 (stderr_file::puts): Update.
14447 * gdb/ui-file.h (gdb_flush): Rename to...
14448 (ui_file_flush): ...this.
14449 * gdb/utils.c (gdb_flush): Add function.
14450 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 14451
5abbbe1d
TT
144522020-02-07 Tom Tromey <tromey@adacore.com>
14453
14454 PR breakpoints/24915:
14455 * source.c (find_and_open_source): Do not check basenames_may_differ.
14456
919adfe8
TT
144572020-02-07 Tom Tromey <tom@tromey.com>
14458
14459 * README: Update gdbserver documentation.
14460 * gdbserver: Move to top level.
14461 * configure.tgt (build_gdbserver): Remove.
14462 * configure.ac: Remove --enable-gdbserver.
14463 * configure: Rebuild.
14464 * Makefile.in (distclean): Don't mention gdbserver.
14465
1d5d29e7
SV
144662020-02-06 Shahab Vahedi <shahab@synopsys.com>
14467
14468 * source-cache.c (source_cache::ensure): Surround
14469 get_plain_source_lines with a try/catch.
14470 (source_cache::get_line_charpos): Get rid of try/catch
14471 and only check for the return value of "ensure".
14472 * tui/tui-source.c (tui_source_window::set_contents):
14473 Simplify "nlines" calculation.
14474
6eb1129c
SV
144752020-02-06 Shahab Vahedi <shahab@synopsys.com>
14476
14477 * MAINTAINERS (Write After Approval): Add myself.
14478
c6a42d11
CB
144792020-02-05 Christian Biesinger <cbiesinger@google.com>
14480
14481 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
14482 function call.
14483
c8ecdda6
CB
144842020-02-05 Christian Biesinger <cbiesinger@google.com>
14485
14486 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
14487
f6480e70
MR
144882020-02-05 Maciej W. Rozycki <macro@wdc.com>
14489
14490 * nat/riscv-linux-tdesc.h: New file.
14491 * nat/riscv-linux-tdesc.c: New file, taking code from...
14492 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
14493 ... here.
14494 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
14495 NATDEPFILES.
14496
dcc9fbc6
AB
144972020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
14498
14499 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
14500 we don't set the fake simulator ptid to the null_ptid.
14501
719546c4
SM
145022020-02-03 Simon Marchi <simon.marchi@efficios.com>
14503
14504 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
14505 * gdbthread.h (class thread_info) <resumed>: Likewise.
14506 * infrun.c (resume_1): Likewise.
14507 (proceed): Likewise.
14508 (infrun_thread_stop_requested): Likewise.
14509 (stop_all_threads): Likewise.
14510 (handle_inferior_event): Likewise.
14511 (restart_threads): Likewise.
14512 (finish_step_over): Likewise.
14513 (keep_going_stepped_thread): Likewise.
14514 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
14515 (linux_handle_extended_wait): Likewise.
14516 * record-btrace.c (get_thread_current_frame_id): Likewise.
14517 * record-full.c (record_full_wait_1): Likewise.
14518 * remote.c (remote_target::process_initial_stop_replies): Likewise.
14519 * target.c (target_resume): Likewise.
14520 * thread.c (set_running_thread): Likewise.
14521
e409c542
AKS
145222020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14523
14524 * f-valprint.c (f77_print_array_1): Changed datatype of index
14525 variable to LONGEST from int to enable it to contain bound
14526 values correctly.
14527
ee98c0da
MR
145282020-02-03 Maciej W. Rozycki <macro@wdc.com>
14529
14530 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
14531 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
14532 offsets according to FLEN determined.
14533 (riscv_linux_nat_target::read_description): Determine FLEN
14534 dynamically.
14535 (riscv_linux_nat_target::fetch_registers): Size regset buffer
14536 according to FLEN determined.
14537 (riscv_linux_nat_target::store_registers): Likewise.
14538
aa66aac4
SV
145392020-02-01 Shahab Vahedi <shahab@synopsys.com>
14540
14541 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
14542 when reg->group is empty and reggroup is not.
14543
fd9faca8
TT
145442020-01-31 Tom Tromey <tromey@adacore.com>
14545
14546 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
14547 Call beneath target's mourn_inferior after unpushing.
14548
42330a68
AB
145492020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
14550
14551 PR tui/9765
14552 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
14553 have enough lines to fill the screen, still return the lowest
14554 address we found.
14555
7a27a45b
AB
145562020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
14557
14558 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
14559 '-', '<', and '>' commands.
14560
c47f70e2
PA
145612020-01-29 Pedro Alves <palves@redhat.com>
14562 Sergio Durigan Junior <sergiodj@redhat.com>
14563
14564 * infcmd.c (construct_inferior_arguments): Assert that
14565 'argc' is greater than 0.
14566
5133a315
LM
145672020-01-29 Luis Machado <luis.machado@linaro.org>
14568
14569 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
14570 (BRK_INSN_MASK): Define to 0xd4200000.
14571 (aarch64_program_breakpoint_here_p): New function.
14572 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
14573 * arch-utils.c (default_program_breakpoint_here_p): Moved from
14574 breakpoint.c.
14575 * arch-utils.h (default_program_breakpoint_here_p): Moved from
14576 breakpoint.h
14577 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
14578 call gdbarch_program_breakpoint_here_p.
14579 (program_breakpoint_here): Moved to arch-utils.c, renamed to
14580 default_program_breakpoint_here_p, changed return type to bool and
14581 simplified.
14582 * breakpoint.h (program_breakpoint_here): Moved prototype to
14583 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
14584 return type to bool.
14585 * gdbarch.c: Regenerate.
14586 * gdbarch.h: Regenerate.
14587 * gdbarch.sh (program_breakpoint_here_p): New method.
14588 * infrun.c (handle_signal_stop): Call
14589 gdbarch_program_breakpoint_here_p.
14590
168f8c6b
TT
145912020-01-26 Tom Tromey <tom@tromey.com>
14592
14593 * ctfread.c (struct ctf_fp_info): Reindent.
14594 (_initialize_ctfread): Remove.
14595
128a391f
TT
145962020-01-26 Tom Tromey <tom@tromey.com>
14597
14598 * psymtab.c (partial_map_expand_apply)
14599 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
14600 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
14601 (psym_print_stats, psym_expand_symtabs_for_function)
14602 (psym_map_symbol_filenames, psym_map_matching_symbols)
14603 (psym_expand_symtabs_matching)
14604 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
14605 (maintenance_check_psymtabs): Use new methods.
14606 * psympriv.h (struct partial_symtab) <readin_p,
14607 get_compunit_symtab>: New methods.
14608 <readin, compunit_symtab>: Remove members.
14609 (struct standard_psymtab): New.
14610 (struct legacy_psymtab): Derive from standard_psymtab.
14611 * dwarf2read.h (struct dwarf2_psymtab): Derive from
14612 standard_psymtab.
14613 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
14614
0494dbec
TT
146152020-01-26 Tom Tromey <tom@tromey.com>
14616
14617 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
14618 read_dependencies. Add assert.
14619 * psymtab.c (partial_symtab::read_dependencies): New method.
14620 * psympriv.h (struct partial_symtab) <read_dependencies>: New
14621 method.
14622 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
14623 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
14624 read_dependencies.
14625 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
14626 Add assert.
14627
8566b89b
TT
146282020-01-26 Tom Tromey <tom@tromey.com>
14629
14630 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
14631 Call expand_psymtab.
14632 (xcoff_read_symtab): Call expand_psymtab.
14633 (xcoff_start_psymtab, xcoff_end_psymtab): Set
14634 legacy_expand_psymtab.
14635 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
14636 method.
14637 (struct legacy_psymtab) <expand_psymtab>: Implement.
14638 <legacy_expand_psymtab>: New member.
14639 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
14640 (parse_partial_symbols): Set legacy_expand_psymtab.
14641 (psymtab_to_symtab_1): Change argument order. Call
14642 expand_psymtab.
14643 (new_psymtab): Set legacy_expand_psymtab.
14644 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
14645 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
14646 expand_psymtab.
14647 (dwarf2_psymtab::expand_psymtab): Rename from
14648 psymtab_to_symtab_1. Call expand_psymtab.
14649 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
14650 (dbx_end_psymtab): Likewise.
14651 (dbx_psymtab_to_symtab_1): Change argument order. Call
14652 expand_psymtab.
14653 (dbx_read_symtab): Call expand_psymtab.
14654 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
14655 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
14656 (ctf_psymtab::read_symtab): Call expand_psymtab.
14657
077cbab2
TT
146582020-01-26 Tom Tromey <tom@tromey.com>
14659
14660 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
14661 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
14662 messages.
14663 * mdebugread.c (mdebug_read_symtab): Remove prints.
14664 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
14665 assert.
14666 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
14667
891813be
TT
146682020-01-26 Tom Tromey <tom@tromey.com>
14669
14670 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
14671 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
14672 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
14673 legacy_symtab.
14674 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
14675 * psymtab.c (psymtab_to_symtab): Call method.
14676 (dump_psymtab): Update.
14677 * psympriv.h (struct partial_symtab): Add virtual destructor.
14678 <read_symtab>: New method.
14679 (struct legacy_symtab): New.
14680 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
14681 (struct pst_map) <pst>: Now a legacy_psymtab.
14682 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
14683 (new_psymtab): Use legacy_psymtab.
14684 * dwarf2read.h (struct dwarf2_psymtab): New.
14685 (struct dwarf2_per_cu_data) <psymtab>: Use it.
14686 * dwarf2read.c (dwarf2_create_include_psymtab)
14687 (dwarf2_build_include_psymtabs, create_type_unit_group)
14688 (create_partial_symtab, process_psymtab_comp_unit_reader)
14689 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
14690 (set_partial_user): Use dwarf2_psymtab.
14691 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
14692 (psymtab_to_symtab_1, process_full_comp_unit)
14693 (process_full_type_unit, dwarf2_ranges_read)
14694 (dwarf2_get_pc_bounds, psymtab_include_file_name)
14695 (dwarf_decode_lines): Use dwarf2_psymtab.
14696 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
14697 (add_address_entry_worker, write_one_signatured_type)
14698 (recursively_count_psymbols, recursively_write_psymbols)
14699 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
14700 (write_debug_names): Likewise.
14701 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
14702 <pst>: Now a legacy_psymtab.
14703 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
14704 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
14705 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
14706 * ctfread.c (struct ctf_psymtab): New.
14707 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
14708 ctf_psymtab.
14709 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
14710 (create_partial_symtab): Return a ctf_psymtab.
14711 (scan_partial_symbols): Update.
14712
c3693a1d
TT
147132020-01-26 Tom Tromey <tom@tromey.com>
14714
14715 * xcoffread.c (xcoff_start_psymtab): Use new.
14716 * psymtab.c (partial_symtab::partial_symtab): New constructor,
14717 renamed from start_psymtab_common.
14718 * psympriv.h (struct partial_symtab): Add new constructor.
14719 (start_psymtab_common): Don't declare.
14720 * mdebugread.c (parse_partial_symbols): Use new.
14721 * dwarf2read.c (create_partial_symtab): Use new.
14722 * dbxread.c (start_psymtab): Use new.
14723 * ctfread.c (create_partial_symtab): Use new.
14724
32caafd0
TT
147252020-01-26 Tom Tromey <tom@tromey.com>
14726
14727 * xcoffread.c (xcoff_end_psymtab): Use new.
14728 * psymtab.c (start_psymtab_common): Use new.
14729 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
14730 Update.
14731 * psympriv.h (struct partial_symtab): Add parameters to
14732 constructor. Don't inline.
14733 (allocate_psymtab): Don't declare.
14734 * mdebugread.c (new_psymtab): Use new.
14735 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
14736 * dbxread.c (dbx_end_psymtab): Use new.
14737
abaa2f23
TT
147382020-01-26 Tom Tromey <tom@tromey.com>
14739
14740 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
14741 allocate_psymtab. Update documentation.
14742 * psymtab.c (psymtab_storage::install_psymtab): Rename from
14743 allocate_psymtab. Do not use new.
14744 (allocate_psymtab): Use new. Update.
14745
6d94535f
TT
147462020-01-26 Tom Tromey <tom@tromey.com>
14747
14748 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
14749 * psymtab.c (psym_print_stats): Update.
14750 * psympriv.h (struct partial_symtab) <readin,
14751 psymtabs_addrmap_supported, anonymous>: Now bool.
14752 * mdebugread.c (psymtab_to_symtab_1): Update.
14753 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
14754 (build_type_psymtabs_reader, psymtab_to_symtab_1)
14755 (process_full_comp_unit, process_full_type_unit): Update.
14756 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
14757 * ctfread.c (psymtab_to_symtab): Update.
14758
6f17252b
TT
147592020-01-26 Tom Tromey <tom@tromey.com>
14760
14761 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
14762 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
14763 * psymtab.c (psymtab_storage): Delete psymtabs.
14764 (psymtab_storage::allocate_psymtab): Use new.
14765 (psymtab_storage::discard_psymtab): Use delete.
14766 * psympriv.h (struct partial_symtab): Add constructor and
14767 initializers.
14768
f6f1cebc
TT
147692020-01-26 Tom Tromey <tom@tromey.com>
14770
14771 * machoread.c: Do not include psympriv.h.
14772
e47e48f6
PW
147732020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14774
14775 * NEWS: Mention the new option and the set/show commands.
14776
a2fedca9
PW
147772020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14778
14779 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
14780 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
14781 (validate_exec_file): New variables, enums, functions.
14782 (exec_file_locate_attach, print_section_info): Style the filenames.
14783 (_initialize_exec): Install show_exec_file_mismatch_command and
14784 set_exec_file_mismatch_command.
14785 * gdbcore.h (validate_exec_file): Declare.
14786 * infcmd.c (attach_command): Call validate_exec_file.
14787 * remote.c ( remote_target::remote_add_inferior): Likewise.
14788
7ffa82e1
AB
147892020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14790
14791 * frame.c (find_frame_sal): Move call to get_next_frame into more
14792 inner scope.
14793 * inline-frame.c (inilne_state) <inline_state>: Update argument
14794 types.
14795 (inilne_state) <skipped_symbol>: Rename to...
14796 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
14797 (skip_inline_frames): Build vector of skipped symbols and use this
14798 to reate the inline_state.
14799 (inline_skipped_symbol): Add a comment and some assertions, fetch
14800 skipped symbol from the list.
14801
3d92a3e3
AB
148022020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14803
14804 * buildsym.c (lte_is_less_than): Delete.
14805 (buildsym_compunit::end_symtab_with_blockvector): Create local
14806 lambda function to sort line table entries, and use
14807 std::stable_sort instead of std::sort.
14808 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
14809 markers when looking for a previous line.
14810
94a72be7
AB
148112020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14812
14813 * dwarf2read.c (lnp_state_machine::record_line): Include
14814 end_sequence parameter in debug print out. Record the line if we
14815 are at an end_sequence marker even if it's not the start of a
14816 statement.
14817 * symmisc.c (maintenance_print_one_line_table): Print end of
14818 sequence markers with 'END' not '0'.
14819
53af73bf
PA
148202020-01-24 Pedro Alves <palves@redhat.com>
14821
14822 PR gdb/25410
14823 * thread.c (scoped_restore_current_thread::restore): Use
14824 switch_to_inferior_no_thread.
14825 * exec.c: Include "progspace-and-thread.h".
14826 (add_target_sections, remove_target_sections):
14827 scoped_restore_current_pspace_and_thread instead of
14828 scoped_restore_current_thread.
14829 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
14830 and aspace to the inferior before calling clone_program_space.
14831 Remove stale comment.
14832
3050c6f4
CB
148332020-01-24 Christian Biesinger <cbiesinger@google.com>
14834
14835 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
14836 (arm_netbsd_nat_target::fetch_registers): ...this.
14837 (arm_nbsd_nat_target::store_registers): Rename to...
14838 (arm_netbsd_nat_target::store_registers): ...this.
14839
73685c7e
CB
148402020-01-24 Christian Biesinger <cbiesinger@google.com>
14841
14842 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
14843 register_t.
14844
89203d40
CB
148452020-01-24 Christian Biesinger <cbiesinger@google.com>
14846
14847 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
14848 Update comment.
14849 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
14850 Likewise.
14851 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
14852 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
14853 the correct replacement (iterate_over_regset_sections).
14854 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
14855 Update comment.
14856
1ba1ac88
AB
148572020-01-24 Graham Markall <graham.markall@embecosm.com>
14858
14859 PR gdb/23718
14860 * gdb/python/python.c (execute_gdb_command): Call
14861 async_enable_stdin in catch block.
14862
f3364a6d
AB
148632020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14864
14865 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
14866 SWITCH_THRU_ALL_UIS.
14867
733d0a67
AB
148682020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14869
14870 PR tui/9765
14871 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
14872 comment, add extra parameter, and update to store previous symbol
14873 when appropriate.
14874 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
14875 add extra parameter.
14876 * tui/tui-disasm.c (tui_disassemble): Update header comment,
14877 remove unneeded parameter, add try/catch around gdb_print_insn,
14878 rewrite to add items to asm_lines vector.
14879 (tui_find_backward_disassembly_start_address): New function.
14880 (tui_find_disassembly_address): Updated throughout.
14881 (tui_disasm_window::set_contents): Update for changes to
14882 tui_disassemble.
14883 (tui_disasm_window::do_scroll_vertical): No need to adjust the
14884 number of lines to scroll.
14885
b3b3bada
SM
148862020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
14887
14888 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
14889 (SECT_OFF_DATA): Likewise.
14890 (SECT_OFF_RODATA): Likewise.
14891 (SECT_OFF_TEXT): Likewise.
14892 (SECT_OFF_BSS): Likewise.
14893 (struct objfile) <text_section_offset, data_section_offset>: New
14894 methods.
14895 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
14896 objfile::text_section_offset.
14897 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
14898 * coffread.c (coff_symtab_read): Likewise.
14899 (enter_linenos): Likewise.
14900 (process_coff_symbol): Likewise.
14901 * ctfread.c (get_objfile_text_range): Likewise.
14902 * dtrace-probe.c (dtrace_probe::get_relocated_address):
14903 Use objfile::data_section_offset.
14904 * dwarf2-frame.c (execute_cfa_program): Use
14905 objfile::text_section_offset.
14906 (dwarf2_frame_find_fde): Likewise.
14907 * dwarf2read.c (create_addrmap_from_index): Likewise.
14908 (create_addrmap_from_aranges): Likewise.
14909 (dw2_find_pc_sect_compunit_symtab): Likewise.
14910 (process_psymtab_comp_unit_reader): Likewise.
14911 (add_partial_symbol): Likewise.
14912 (add_partial_subprogram): Likewise.
14913 (process_full_comp_unit): Likewise.
14914 (read_file_scope): Likewise.
14915 (read_func_scope): Likewise.
14916 (read_lexical_block_scope): Likewise.
14917 (read_call_site_scope): Likewise.
14918 (dwarf2_rnglists_process): Likewise.
14919 (dwarf2_ranges_process): Likewise.
14920 (dwarf2_ranges_read): Likewise.
14921 (dwarf_decode_lines_1): Likewise.
14922 (new_symbol): Likewise.
14923 (dwarf2_fetch_die_loc_sect_off): Likewise.
14924 (dwarf2_per_cu_text_offset): Likewise.
14925 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
14926 * hppa-tdep.c (read_unwind_info): Likewise.
14927 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
14928 * psympriv.h (struct partial_symtab): Likewise.
14929 * psymtab.c (find_pc_sect_psymtab): Likewise.
14930 * solib-svr4.c (enable_break): Likewise.
14931 * stap-probe.c (relocate_address): Use
14932 objfile::data_section_offset.
14933 * xcoffread.c (enter_line_range): Use
14934 objfile::text_section_offset.
14935 (read_xcoff_symtab): Likewise.
14936
ab53f382
SM
149372020-01-23 Simon Marchi <simon.marchi@efficios.com>
14938
14939 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
14940 declaration to narrower scopes.
14941
e7eee665
SM
149422020-01-23 Simon Marchi <simon.marchi@efficios.com>
14943
14944 * darwin-nat.h (struct darwin_exception_msg, enum
14945 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
14946 Move up.
14947 (class darwin_nat_target) <wait_1, check_new_threads,
14948 decode_exception_message, decode_message, stop_inferior,
14949 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
14950 * darwin-nat.c (darwin_check_new_threads): Rename to...
14951 (darwin_nat_target::check_new_threads): ... this.
14952 (darwin_suspend_inferior_it): Remove.
14953 (darwin_decode_exception_message): Rename to...
14954 (darwin_nat_target::decode_exception_message): ... this.
14955 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
14956 (darwin_decode_message): Rename to...
14957 (darwin_nat_target::decode_message): ... this.
14958 (cancel_breakpoint): Rename to...
14959 (darwin_nat_target::cancel_breakpoint): ... this.
14960 (darwin_wait): Rename to...
14961 (darwin_nat_target::wait_1): ... this. Use range-based for loop
14962 instead of iterate_over_inferiors.
14963 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
14964 (darwin_stop_inferior): Rename to...
14965 (darwin_nat_target::stop_inferior): ... this.
14966 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
14967 (darwin_init_thread_list): Rename to...
14968 (darwin_nat_target::init_thread_list): ... this.
14969 (darwin_ptrace_him): Rename to...
14970 (darwin_nat_target::ptrace_him): ... this.
14971 (darwin_nat_target::create_inferior): Pass lambda function to
14972 fork_inferior.
14973 (darwin_nat_target::detach): Call stop_inferior instead of
14974 darwin_stop_inferior.
14975 * fork-inferior.h (fork_inferior): Change init_trace_fun
14976 parameter to gdb::function_view.
14977 * fork-inferior.c (fork_inferior): Likewise.
14978
c162ed3e
HD
149792020-01-23 Hannes Domani <ssbssa@yahoo.de>
14980
14981 * i386-cygwin-tdep.c (core_process_module_section): Update.
14982 * windows-nat.c (struct lm_info_windows): Add text_offset.
14983 (windows_xfer_shared_libraries): Update.
14984 * windows-tdep.c (windows_xfer_shared_library):
14985 Add text_offset_cached argument.
14986 * windows-tdep.h (windows_xfer_shared_library): Update.
14987
a1237872
SM
149882020-01-21 Simon Marchi <simon.marchi@efficios.com>
14989
14990 * gdbarch.sh: Add declaration for _initialize_gdbarch.
14991
b3ee6dd9
SM
149922020-01-21 Simon Marchi <simon.marchi@efficios.com>
14993
14994 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
14995 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
14996 replace with range-based for.
14997 (gdbsim_interrupt_inferior): Remove.
14998 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
14999 with a range-based for. Inline code from
15000 gdbsim_interrupt_inferior.
15001
f9fac3c8
SM
150022020-01-21 Simon Marchi <simon.marchi@efficios.com>
15003
15004 * infrun.c (proceed): Fix indentation.
15005
f6474de9
TT
150062020-01-21 Tom Tromey <tromey@adacore.com>
15007
15008 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
15009 * python/python.c (python_extension_ops): Update.
15010 (gdbpy_colorize): New function.
15011 * python/lib/gdb/__init__.py (colorize): New function.
15012 * extension.h (ext_lang_colorize): Declare.
15013 * extension.c (ext_lang_colorize): New function.
15014 * extension-priv.h (struct extension_language_ops) <colorize>: New
15015 member.
15016 * cli/cli-style.c (_initialize_cli_style): Update help text.
15017
f0c702d4
LM
150182020-01-21 Luis Machado <luis.machado@linaro.org>
15019
15020 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
15021 <cond>: Change type to bool.
15022 (aarch64_displaced_step_b_cond): Update cond to use bool type.
15023 (aarch64_displaced_step_cb): Likewise.
15024 (aarch64_displaced_step_tb): Likewise.
15025
1ab139e5
LM
150262020-01-21 Luis Machado <luis.machado@linaro.org>
15027
15028 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
15029 output.
15030
0c271889
LM
150312020-01-21 Luis Machado <luis.machado@linaro.org>
15032
15033 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
15034 <pc_adjust>: Adjust the documentation.
15035 (aarch64_displaced_step_fixup): Check if PC really moved before
15036 adjusting it.
15037
4d89c1c7
TT
150382020-01-19 Tom Tromey <tom@tromey.com>
15039
15040 * disasm.c (~gdb_disassembler): New destructor.
15041 (gdb_buffered_insn_length): Call disassemble_free_target.
15042 * disasm.h (class gdb_disassembler): Declare destructor. Use
15043 DISABLE_COPY_AND_ASSIGN.
15044
c0ab21c2
TT
150452020-01-19 Tom Tromey <tom@tromey.com>
15046
15047 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
15048 (die_reader_func_ftype): Remove.
15049 (cutu_reader): New class.
15050 (dw2_get_file_names_reader): Remove "data" parameter.
15051 (dw2_get_file_names): Use cutu_reader.
15052 (create_debug_type_hash_table): Update.
15053 (read_cutu_die_from_dwo): Update comment.
15054 (lookup_dwo_unit): Add dwo_name parameter.
15055 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
15056 die_reader_func_ftype and data parameters.
15057 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
15058 Remove die_reader_func_ftype and data parameters.
15059 (~cutu_reader): New; from init_cutu_and_read_dies.
15060 (cutu_reader::cutu_reader): Rename from
15061 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
15062 and data parameters.
15063 (init_cutu_and_read_dies_simple): Remove.
15064 (struct process_psymtab_comp_unit_data): Remove.
15065 (process_psymtab_comp_unit_reader): Remove data parameter; add
15066 want_partial_unit and pretend_language parameters.
15067 (process_psymtab_comp_unit): Use cutu_reader.
15068 (build_type_psymtabs_reader): Remove data parameter.
15069 (build_type_psymtabs_1): Use cutu_reader.
15070 (process_skeletonless_type_unit): Likewise.
15071 (load_partial_comp_unit_reader): Remove.
15072 (load_partial_comp_unit): Use cutu_reader.
15073 (load_full_comp_unit_reader): Remove.
15074 (load_full_comp_unit): Use cutu_reader.
15075 (struct create_dwo_cu_data): Remove.
15076 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
15077 dwo_unit parameters.
15078 (create_cus_hash_table): Use cutu_reader.
15079 (struct dwarf2_read_addr_index_data): Remove.
15080 (dwarf2_read_addr_index_reader): Remove.
15081 (dwarf2_read_addr_index): Use cutu_reader.
15082 (read_signatured_type_reader): Remove.
15083 (read_signatured_type): Use cutu_reader.
15084
45bbae5c
TT
150852020-01-19 Tom Tromey <tom@tromey.com>
15086
15087 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
15088 * tui/tui-wingeneral.h (class tui_suppress_output): New.
15089 (tui_wrefresh): Declare.
15090 * tui/tui-wingeneral.c (suppress_output): New global.
15091 (tui_suppress_output, ~tui_suppress_output): New constructor and
15092 destructor.
15093 (tui_wrefresh): New function.
15094 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
15095 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
15096 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
15097 method.
15098 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
15099 tui_wrefresh.
15100 (tui_data_window::no_refresh): New method.
15101 (tui_data_item_window::refresh_window): Call tui_wrefresh.
15102 (tui_reg_command): Use tui_suppress_output
15103 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
15104 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
15105 method.
15106 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
15107
4f13c1c0
TT
151082020-01-19 Tom Tromey <tom@tromey.com>
15109
15110 * tui/tui-winsource.c (tui_update_source_windows_with_line):
15111 Handle case where symtab is null.
15112
fa47e446
SM
151132020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
15114
15115 * linux-fork.c (one_fork_p): Simplify.
15116
26f42329
SM
151172020-01-17 Simon Marchi <simon.marchi@efficios.com>
15118
15119 * top.c (struct qt_args): Remove.
15120 (kill_or_detach): Change return type to void, replace `void *`
15121 parameter with a proper one.
15122 (print_inferior_quit_action): Likewise.
15123 (quit_confirm): Use range-based for loop to iterate over inferiors.
15124 (quit_force): Likewise.
15125
a9ac81b1
SM
151262020-01-17 Simon Marchi <simon.marchi@efficios.com>
15127
15128 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
15129 `void *` parameter with proper parameters.
15130 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
15131 (print_one_inferior): Change return type to void, replace `void *`
15132 parameter with proper parameters.
15133 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
15134 inferiors.
15135 (get_other_inferior): Remove.
15136 (mi_cmd_remove_inferior): Use range-based loop to iterate over
15137 inferiors.
15138
788eca49
SM
151392020-01-17 Simon Marchi <simon.marchi@efficios.com>
15140
15141 * mi/mi-interp.c (report_initial_inferior): Remove.
15142 (mi_interp::init): Use range-based for to iterate over inferiors.
15143
d9bc85b6
SM
151442020-01-17 Simon Marchi <simon.marchi@efficios.com>
15145
15146 * python/py-inferior.c (build_inferior_list): Remove.
15147 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
15148
40c94099
CB
151492020-01-16 Christian Biesinger <cbiesinger@google.com>
15150
15151 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
15152 (btrace_stitch_trace): Likewise.
15153 * charset.c (intermediate_encoding): Likewise (vaild).
15154 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
15155 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
15156 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
15157
e0cdfe3c
HD
151582020-01-16 Hannes Domani <ssbssa@yahoo.de>
15159
15160 * windows-tdep.c (windows_get_tlb_type):
15161 Add rtl_user_process_parameters type.
15162
790f1718 151632020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 15164 Norbert Lange <nolange79@gmail.com>
790f1718
PA
15165
15166 PR build/24805
15167 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
15168 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
15169 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
15170 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
15171 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
15172 (ps_plog): Redeclare exported functions with default visibility.
15173
3112ed97
NA
151742020-01-16 Nitika Achra <Nitika.Achra@amd.com>
15175
15176 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
15177 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
15178
8dc3273e
SM
151792020-01-15 Simon Marchi <simon.marchi@efficios.com>
15180
15181 * infcmd.c (post_create_inferior): Use get_thread_regcache
15182 instead of get_current_regcache.
15183
ff47f4f0
TT
151842020-01-14 Tom Tromey <tom@tromey.com>
15185
15186 PR symtab/12535:
15187 * python/python.c (gdbpy_decode_line): Treat empty string the same
15188 as no argument.
15189
975f45b7
TT
151902020-01-14 Tom Tromey <tom@tromey.com>
15191
15192 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
15193
25e57356
TT
151942020-01-14 Tom Tromey <tom@tromey.com>
15195
15196 * nat/linux-btrace.c: Don't include <config.h>.
15197 * nat/linux-ptrace.c: Don't include <config.h>.
15198 * nat/x86-linux-dregs.c: Don't include <config.h>.
15199
05ea2a05
TT
152002020-01-14 Tom Tromey <tom@tromey.com>
15201
15202 * configure: Rebuild.
15203 * configure.ac: Move many checks to ../gdbsupport/common.m4.
15204
01027315
TT
152052020-01-14 Tom Tromey <tom@tromey.com>
15206
15207 * nat/x86-linux-dregs.c: Include configh.h.
15208 * nat/linux-ptrace.c: Include configh.h.
15209 * nat/linux-btrace.c: Include configh.h.
15210 * defs.h: Include config.h, bfd.h.
15211 * configure.ac: Don't source common.host.
15212 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
15213 * configure: Rebuild.
15214 * acinclude.m4: Update path.
15215 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
15216 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
15217 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
15218 (CLIBS): Add LIBSUPPORT.
15219 (CDEPS): Likewise.
15220 (COMMON_SFILES): Remove gdbsupport files.
15221 (HFILES_NO_SRCDIR): Likewise.
15222 (stamp-version): Update path to create-version.sh.
15223 (ALLDEPFILES): Remove gdbsupport files.
15224
b2ceabe8
TT
152252020-01-14 Tom Tromey <tom@tromey.com>
15226
15227 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
15228 USE_WIN32API when needed.
15229 * configure.ac (USE_WIN32API): Don't define.
15230 (WIN32LIBS): Use WIN32APILIBS.
15231 * configure: Rebuild.
15232
25c51f71
TT
152332020-01-14 Tom Tromey <tom@tromey.com>
15234
15235 * configure: Rebuild.
15236 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
15237
717c684d
BE
152382020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
15239
15240 * skip.c (skip_function_command): Make skip w/o arguments use the
15241 name of the inlined function if pc is inside any inlined function.
15242
7da6a5b9
LM
152432020-01-14 Luis Machado <luis.machado@linaro.org>
15244
15245 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
15246 * infrun.c (resume_1): Likewise.
15247 (handle_inferior_event): Remove stale comment.
15248 * linux-nat.c (linux_nat_target::resume): Update comments.
15249 (save_stop_reason): Likewise.
15250 (linux_nat_filter_event): Likewise.
15251 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
15252
44e4c775
AB
152532020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15254
15255 * elfread.c (record_minimal_symbol): Set section index to 0 for
15256 non-allocatable sections.
15257
18a8505e
AT
15258
152592020-01-13 Ali Tamur <tamur@google.com>
15260
15261 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
15262 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
15263 to gdb::optional. Update comments.
15264 (dwo_file): Update comments.
15265 (read_attribute): Update API to take an additional out parameter,
15266 need_reprocess. This is used to mark attributes that need other
15267 attributes (e.g. str_offsets_base) for correct computation which may not
15268 have been read yet.
15269 (read_attribute_reprocess): New function declaration.
15270 (read_addr_index): Likewise.
15271 (read_dwo_str_index): Likewise.
15272 (read_stub_str_index): Likewise.
15273 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
15274 (lookup_addr_base): New function definition.
15275 (lookup_ranges_base): Likewise.
15276 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
15277 lookup_ranges_base.
15278 (init_cutu_and_read_dies): Update comments.
15279 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
15280 unit. This is used to inherit parent's str_offsets_base and addr_base.
15281 Update comments.
15282 (init_cutu_and_read_dies_simple): Reflect API changes.
15283 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
15284 (create_cus_hash_table): Change API to take parent compile unit.
15285 Reflect API changes.
15286 (open_and_init_dwo_file): Reflect API changes.
15287 (dwarf2_get_pc_bounds): Update comments.
15288 (dwarf2_record_block_ranges): Likewise.
15289 (read_full_die_1): Change implementation to reprocess attributes that
15290 need str_offsets_base and addr_base.
15291 (partial_die_info::read): Likewise.
15292 (read_attribute_reprocess): New function definition.
15293 (read_attribute_value): Change API to take an additional out parameter,
15294 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
15295 when a non-dwo compile unit has index based attributes.
15296 (read_attribute): Reflect API changes.
15297 (read_addr_index_1): Reflect API changes. Update comments.
15298 (dwarf2_read_addr_index_data): Reflect API changes.
15299 (dwarf2_read_addr_index): Likewise.
15300 (read_str_index): Change API and implementation. This becomes a helper
15301 to be used by the new string index related methods. Update error
15302 message and comments.
15303 (read_dwo_str_index): New function definition.
15304 (read_stub_str_index): Likewise.
15305 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
15306 * symfile.h (dwarf2_debug_sections): Likewise.
15307 * xcoffread.c (dwarf2_debug_sections): Likewise.
15308
0cac9354
SM
153092020-01-13 Simon Marchi <simon.marchi@efficios.com>
15310
15311 * gdbcore.h (struct core_fns) <core_read_registers>: Change
15312 core_reg_sect type to gdb_byte *.
15313 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
15314 * cris-tdep.c (fetch_core_registers): Likewise.
15315 * corelow.c (core_target::get_core_register_section): Change
15316 type of `contents` to gdb::byte_vector.
15317
9a6d629c
AB
153182020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15319
15320 * tui/tui-wingeneral.c (box_win): Position the title in the center
15321 of the border.
15322
d8b2f9e3
SM
153232020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15324
15325 * corelow.c (core_target::get_core_register_section): Use
15326 std::vector instead of alloca.
15327
bb564c58
SM
153282020-01-13 Simon Marchi <simon.marchi@efficios.com>
15329
15330 * warning.m4: Add -Wmissing-declarations to build_warnings.
15331 * configure: Re-generate.
15332
6b366111
SM
153332020-01-13 Simon Marchi <simon.marchi@efficios.com>
15334
15335 * python/python.c (init__gdb_module): Add declaration.
15336
6c265988
SM
153372020-01-13 Simon Marchi <simon.marchi@efficios.com>
15338
15339 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
15340 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
15341 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
15342 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
15343 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
15344 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
15345 * ada-exp.y (_initialize_ada_exp): Add declaration.
15346 * ada-lang.c (_initialize_ada_language): Add declaration.
15347 * ada-tasks.c (_initialize_tasks): Add declaration.
15348 * agent.c (_initialize_agent): Add declaration.
15349 * aix-thread.c (_initialize_aix_thread): Add declaration.
15350 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
15351 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
15352 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
15353 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
15354 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
15355 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
15356 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
15357 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
15358 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
15359 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
15360 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
15361 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
15362 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
15363 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
15364 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
15365 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
15366 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
15367 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
15368 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
15369 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
15370 * annotate.c (_initialize_annotate): Add declaration.
15371 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
15372 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
15373 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
15374 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
15375 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
15376 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
15377 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
15378 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
15379 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
15380 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
15381 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
15382 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
15383 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
15384 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
15385 * auto-load.c (_initialize_auto_load): Add declaration.
15386 * auxv.c (_initialize_auxv): Add declaration.
15387 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
15388 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
15389 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
15390 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
15391 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
15392 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
15393 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
15394 * breakpoint.c (_initialize_breakpoint): Add declaration.
15395 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
15396 * btrace.c (_initialize_btrace): Add declaration.
15397 * charset.c (_initialize_charset): Add declaration.
15398 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
15399 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
15400 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
15401 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
15402 * cli/cli-script.c (_initialize_cli_script): Add declaration.
15403 * cli/cli-style.c (_initialize_cli_style): Add declaration.
15404 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
15405 * coffread.c (_initialize_coffread): Add declaration.
15406 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
15407 * compile/compile.c (_initialize_compile): Add declaration.
15408 * complaints.c (_initialize_complaints): Add declaration.
15409 * completer.c (_initialize_completer): Add declaration.
15410 * copying.c (_initialize_copying): Add declaration.
15411 * corefile.c (_initialize_core): Add declaration.
15412 * corelow.c (_initialize_corelow): Add declaration.
15413 * cp-abi.c (_initialize_cp_abi): Add declaration.
15414 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
15415 * cp-support.c (_initialize_cp_support): Add declaration.
15416 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
15417 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
15418 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
15419 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
15420 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
15421 * ctfread.c (_initialize_ctfread): Add declaration.
15422 * d-lang.c (_initialize_d_language): Add declaration.
15423 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
15424 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
15425 * dbxread.c (_initialize_dbxread): Add declaration.
15426 * dcache.c (_initialize_dcache): Add declaration.
15427 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
15428 * disasm.c (_initialize_disasm): Add declaration.
15429 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
15430 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
15431 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
15432 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
15433 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
15434 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
15435 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
15436 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
15437 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
15438 * elfread.c (_initialize_elfread): Add declaration.
15439 * exec.c (_initialize_exec): Add declaration.
15440 * extension.c (_initialize_extension): Add declaration.
15441 * f-lang.c (_initialize_f_language): Add declaration.
15442 * f-valprint.c (_initialize_f_valprint): Add declaration.
15443 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
15444 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
15445 * filesystem.c (_initialize_filesystem): Add declaration.
15446 * findcmd.c (_initialize_mem_search): Add declaration.
15447 * findvar.c (_initialize_findvar): Add declaration.
15448 * fork-child.c (_initialize_fork_child): Add declaration.
15449 * frame-base.c (_initialize_frame_base): Add declaration.
15450 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
15451 * frame.c (_initialize_frame): Add declaration.
15452 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
15453 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
15454 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
15455 * gcore.c (_initialize_gcore): Add declaration.
15456 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
15457 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
15458 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
15459 * gdbarch.c (_initialize_gdbarch): Add declaration.
15460 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
15461 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
15462 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
15463 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
15464 * go-lang.c (_initialize_go_language): Add declaration.
15465 * go32-nat.c (_initialize_go32_nat): Add declaration.
15466 * guile/guile.c (_initialize_guile): Add declaration.
15467 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
15468 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
15469 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
15470 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
15471 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
15472 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
15473 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
15474 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
15475 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
15476 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
15477 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
15478 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
15479 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
15480 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
15481 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
15482 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
15483 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
15484 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
15485 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
15486 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
15487 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
15488 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
15489 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
15490 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
15491 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
15492 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
15493 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
15494 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
15495 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
15496 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
15497 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
15498 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
15499 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
15500 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
15501 * infcall.c (_initialize_infcall): Add declaration.
15502 * infcmd.c (_initialize_infcmd): Add declaration.
15503 * inflow.c (_initialize_inflow): Add declaration.
15504 * infrun.c (_initialize_infrun): Add declaration.
15505 * interps.c (_initialize_interpreter): Add declaration.
15506 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
15507 * jit.c (_initialize_jit): Add declaration.
15508 * language.c (_initialize_language): Add declaration.
15509 * linux-fork.c (_initialize_linux_fork): Add declaration.
15510 * linux-nat.c (_initialize_linux_nat): Add declaration.
15511 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
15512 * linux-thread-db.c (_initialize_thread_db): Add declaration.
15513 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
15514 * m2-lang.c (_initialize_m2_language): Add declaration.
15515 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
15516 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
15517 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
15518 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
15519 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
15520 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
15521 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
15522 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
15523 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
15524 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
15525 * machoread.c (_initialize_machoread): Add declaration.
15526 * macrocmd.c (_initialize_macrocmd): Add declaration.
15527 * macroscope.c (_initialize_macroscope): Add declaration.
15528 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
15529 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
15530 * maint.c (_initialize_maint_cmds): Add declaration.
15531 * mdebugread.c (_initialize_mdebugread): Add declaration.
15532 * memattr.c (_initialize_mem): Add declaration.
15533 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
15534 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
15535 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
15536 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
15537 * mi/mi-main.c (_initialize_mi_main): Add declaration.
15538 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
15539 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
15540 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
15541 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
15542 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
15543 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
15544 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
15545 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
15546 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
15547 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
15548 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
15549 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
15550 * mipsread.c (_initialize_mipsread): Add declaration.
15551 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
15552 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
15553 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
15554 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
15555 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
15556 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
15557 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
15558 * nto-procfs.c (_initialize_procfs): Add declaration.
15559 * objc-lang.c (_initialize_objc_language): Add declaration.
15560 * observable.c (_initialize_observer): Add declaration.
15561 * opencl-lang.c (_initialize_opencl_language): Add declaration.
15562 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
15563 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
15564 * osabi.c (_initialize_gdb_osabi): Add declaration.
15565 * osdata.c (_initialize_osdata): Add declaration.
15566 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
15567 * parse.c (_initialize_parse): Add declaration.
15568 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
15569 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
15570 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
15571 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
15572 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
15573 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
15574 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
15575 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
15576 * printcmd.c (_initialize_printcmd): Add declaration.
15577 * probe.c (_initialize_probe): Add declaration.
15578 * proc-api.c (_initialize_proc_api): Add declaration.
15579 * proc-events.c (_initialize_proc_events): Add declaration.
15580 * proc-service.c (_initialize_proc_service): Add declaration.
15581 * procfs.c (_initialize_procfs): Add declaration.
15582 * producer.c (_initialize_producer): Add declaration.
15583 * psymtab.c (_initialize_psymtab): Add declaration.
15584 * python/python.c (_initialize_python): Add declaration.
15585 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
15586 * record-btrace.c (_initialize_record_btrace): Add declaration.
15587 * record-full.c (_initialize_record_full): Add declaration.
15588 * record.c (_initialize_record): Add declaration.
15589 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
15590 * regcache.c (_initialize_regcache): Add declaration.
15591 * reggroups.c (_initialize_reggroup): Add declaration.
15592 * remote-notif.c (_initialize_notif): Add declaration.
15593 * remote-sim.c (_initialize_remote_sim): Add declaration.
15594 * remote.c (_initialize_remote): Add declaration.
15595 * reverse.c (_initialize_reverse): Add declaration.
15596 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
15597 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
15598 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
15599 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
15600 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
15601 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
15602 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
15603 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
15604 Add declaration.
15605 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
15606 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
15607 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
15608 * rust-exp.y (_initialize_rust_exp): Add declaration.
15609 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
15610 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
15611 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
15612 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
15613 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
15614 * score-tdep.c (_initialize_score_tdep): Add declaration.
15615 * ser-go32.c (_initialize_ser_dos): Add declaration.
15616 * ser-mingw.c (_initialize_ser_windows): Add declaration.
15617 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
15618 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
15619 * ser-uds.c (_initialize_ser_socket): Add declaration.
15620 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
15621 * serial.c (_initialize_serial): Add declaration.
15622 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
15623 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
15624 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
15625 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
15626 * skip.c (_initialize_step_skip): Add declaration.
15627 * sol-thread.c (_initialize_sol_thread): Add declaration.
15628 * solib-aix.c (_initialize_solib_aix): Add declaration.
15629 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
15630 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
15631 * solib-frv.c (_initialize_frv_solib): Add declaration.
15632 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
15633 * solib-target.c (_initialize_solib_target): Add declaration.
15634 * solib.c (_initialize_solib): Add declaration.
15635 * source-cache.c (_initialize_source_cache): Add declaration.
15636 * source.c (_initialize_source): Add declaration.
15637 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
15638 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
15639 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
15640 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
15641 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
15642 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
15643 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
15644 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
15645 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
15646 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
15647 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
15648 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
15649 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
15650 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
15651 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
15652 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
15653 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
15654 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
15655 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
15656 * stabsread.c (_initialize_stabsread): Add declaration.
15657 * stack.c (_initialize_stack): Add declaration.
15658 * stap-probe.c (_initialize_stap_probe): Add declaration.
15659 * std-regs.c (_initialize_frame_reg): Add declaration.
15660 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
15661 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
15662 * symfile.c (_initialize_symfile): Add declaration.
15663 * symmisc.c (_initialize_symmisc): Add declaration.
15664 * symtab.c (_initialize_symtab): Add declaration.
15665 * target.c (_initialize_target): Add declaration.
15666 * target-connection.c (_initialize_target_connection): Add
15667 declaration.
15668 * target-dcache.c (_initialize_target_dcache): Add declaration.
15669 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
15670 * thread.c (_initialize_thread): Add declaration.
15671 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
15672 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
15673 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
15674 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
15675 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
15676 * tracectf.c (_initialize_ctf): Add declaration.
15677 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
15678 * tracefile.c (_initialize_tracefile): Add declaration.
15679 * tracepoint.c (_initialize_tracepoint): Add declaration.
15680 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
15681 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
15682 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
15683 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
15684 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
15685 * tui/tui-win.c (_initialize_tui_win): Add declaration.
15686 * tui/tui.c (_initialize_tui): Add declaration.
15687 * typeprint.c (_initialize_typeprint): Add declaration.
15688 * ui-style.c (_initialize_ui_style): Add declaration.
15689 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
15690 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
15691 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
15692 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
15693 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
15694 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
15695 * unittests/filtered_iterator-selftests.c
15696 (_initialize_filtered_iterator_selftests): Add declaration.
15697 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
15698 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
15699 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
15700 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
15701 * unittests/main-thread-selftests.c
15702 (_initialize_main_thread_selftests): Add declaration.
15703 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
15704 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
15705 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
15706 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
15707 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
15708 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
15709 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
15710 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
15711 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
15712 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
15713 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
15714 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
15715 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
15716 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
15717 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
15718 declaration.
15719 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
15720 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
15721 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
15722 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
15723 * user-regs.c (_initialize_user_regs): Add declaration.
15724 * utils.c (_initialize_utils): Add declaration.
15725 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
15726 * valops.c (_initialize_valops): Add declaration.
15727 * valprint.c (_initialize_valprint): Add declaration.
15728 * value.c (_initialize_values): Add declaration.
15729 * varobj.c (_initialize_varobj): Add declaration.
15730 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
15731 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
15732 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
15733 * windows-nat.c (_initialize_windows_nat): Add declaration.
15734 (_initialize_check_for_gdb_ini): Add declaration.
15735 (_initialize_loadable): Add declaration.
15736 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
15737 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
15738 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
15739 * xcoffread.c (_initialize_xcoffread): Add declaration.
15740 * xml-support.c (_initialize_xml_support): Add declaration.
15741 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
15742 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
15743 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
15744 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
15745
e2de1eec
SM
157462020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15747
15748 * regformats/regdat.sh: Generate declaration for init function.
15749
e0037b4c
SM
157502020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15751
15752 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
15753 up.
15754 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
15755 close_one_inferior>: New methods.
15756 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
15757 pass down target to find_inferior_pid.
15758 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
15759 Pass down target to find_inferior_ptid.
15760 (gdbsim_target::create_inferior): Pass down target to
15761 add_thread_silent.
15762 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
15763 target down to find_inferior_ptid and switch_to_thread.
15764 (gdbsim_target::close): Update to call close_one_inferior.
15765 (struct resume_data): Remove.
15766 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
15767 directly, rather than through a void pointer.
15768 (gdbsim_target::resume): Update to call resume_one_inferior.
15769
58920b5b
SM
157702020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
15771
15772 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
15773
4ec89149
PA
157742020-01-12 Pedro Alves <palves@redhat.com>
15775
15776 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
15777 directly for the current inferior instead of
15778 discard_all_inferiors.
15779 (discard_all_inferiors): Delete.
15780
7c392d1d
TT
157812020-01-11 Tom Tromey <tom@tromey.com>
15782
15783 * tui/tui-wingeneral.c (box_win): Check cli_styling.
15784 * tui/tui-winsource.c (tui_source_window_base::refill): Use
15785 deprecated_safe_get_selected_frame.
15786
d9ebdab7
TBA
157872020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
15788
15789 * inferior.c (print_inferior): Switch inferior before printing it.
15790
f3c469b9
PA
157912020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
15792 Pedro Alves <palves@redhat.com>
15793
15794 * progspace-and-thread.c (switch_to_program_space_and_thread):
15795 Assert there's an inferior for PSPACE. Use
15796 switch_to_inferior_no_thread to switch the inferior too.
15797 * progspace.c (program_space::~program_space): Call
15798 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
15799 (program_space::free_all_objfiles): Don't call clear_symtab_users
15800 here.
15801 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
15802
65c574f6
PA
158032020-01-10 Pedro Alves <palves@redhat.com>
15804
15805 * NEWS: Mention multi-target debugging, "info connections", and
15806 "add-inferior -no-connection".
15807
2f4fcf00
PA
158082020-01-10 Pedro Alves <palves@redhat.com>
15809
15810 * infrun.c: Include "target-connection.h".
15811 (check_multi_target_resumption): New.
15812 (proceed): Call it.
15813 * target-connection.c (make_target_connection_string): Make
15814 extern.
15815 * target-connection.h (make_target_connection_string): Declare.
15816
121b3efd
PA
158172020-01-10 Pedro Alves <palves@redhat.com>
15818
15819 * Makefile.in (COMMON_SFILES): Add target-connection.c.
15820 * inferior.c (uiout_field_connection): New function.
15821 (print_inferior): Add new "connection-id" column.
15822 (add_inferior_command): Show connection number/string of added
15823 inferior.
15824 * process-stratum-target.h
15825 (process_stratum_target::connection_string): New virtual method.
15826 (process_stratum_target::connection_number): New field.
15827 * remote.c (remote_target::connection_string): New override.
15828 * target-connection.c: New file.
15829 * target-connection.h: New file.
15830 * target.c (decref_target): Remove process_stratum targets from
15831 the connection list.
15832 (target_stack::push): Add process_stratum targets to the
15833 connection list.
15834
4f837581
PA
158352020-01-10 Pedro Alves <palves@redhat.com>
15836
15837 Revert:
15838 2016-04-12 Pedro Alves <palves@redhat.com>
15839 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
15840 Remove references to name.
15841 * serial.h (struct serial) <name>: Delete.
15842
f4ec508e
PA
158432020-01-10 Pedro Alves <palves@redhat.com>
15844
15845 * gdbarch-selftests.c (register_to_value_test): Remove "target
15846 already pushed" check.
15847
5b6d1e4f
PA
158482020-01-10 Pedro Alves <palves@redhat.com>
15849 John Baldwin <jhb@FreeBSD.org>
15850
15851 * aarch64-linux-nat.c
15852 (aarch64_linux_nat_target::thread_architecture): Adjust.
15853 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
15854 (task_command_1): Likewise.
15855 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
15856 (aix_thread_target::wait, aix_thread_target::fetch_registers)
15857 (aix_thread_target::store_registers)
15858 (aix_thread_target::thread_alive): Adjust.
15859 * amd64-fbsd-tdep.c: Include "inferior.h".
15860 (amd64fbsd_get_thread_local_address): Pass down target.
15861 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
15862 thread's gdbarch instead of target_gdbarch.
15863 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
15864 get_last_target_status.
15865 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
15866 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
15867 inferiors.
15868 (update_inserted_breakpoint_locations): Skip if inferiors with no
15869 execution.
15870 (update_global_location_list): When handling moribund locations,
15871 find representative inferior for location's pspace, and use thread
15872 count of its process_stratum target.
15873 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
15874 * bsd-uthread.c (bsd_uthread_target::wait): Use
15875 as_process_stratum_target and adjust thread_change_ptid and
15876 add_thread calls.
15877 (bsd_uthread_target::update_thread_list): Use
15878 as_process_stratum_target and adjust find_thread_ptid,
15879 thread_change_ptid and add_thread calls.
15880 * btrace.c (maint_btrace_packet_history_cmd): Adjust
15881 find_thread_ptid call.
15882 * corelow.c (add_to_thread_list): Adjust add_thread call.
15883 (core_target_open): Adjust add_thread_silent and thread_count
15884 calls.
15885 (core_target::pid_to_str): Adjust find_inferior_ptid call.
15886 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
15887 * event-top.c (async_disconnect): Pop targets from all inferiors.
15888 * exec.c (add_target_sections): Push exec target on all inferiors
15889 sharing the program space.
15890 (remove_target_sections): Remove the exec target from all
15891 inferiors sharing the program space.
15892 (exec_on_vfork): New.
15893 * exec.h (exec_on_vfork): Declare.
15894 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
15895 Pass it down.
15896 (fbsd_nat_target::update_thread_list): Adjust.
15897 (fbsd_nat_target::resume): Adjust.
15898 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
15899 down.
15900 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
15901 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
15902 get_thread_arch_regcache call.
15903 * fork-child.c (gdb_startup_inferior): Pass target down to
15904 startup_inferior and set_executing.
15905 * gdbthread.h (struct process_stratum_target): Forward declare.
15906 (add_thread, add_thread_silent, add_thread_with_info)
15907 (in_thread_list): Add process_stratum_target parameter.
15908 (find_thread_ptid(inferior*, ptid_t)): New overload.
15909 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
15910 parameter.
15911 (all_threads()): Delete overload.
15912 (all_threads, all_non_exited_threads): Add process_stratum_target
15913 parameter.
15914 (all_threads_safe): Use brace initialization.
15915 (thread_count): Add process_stratum_target parameter.
15916 (set_resumed, set_running, set_stop_requested, set_executing)
15917 (threads_are_executing, finish_thread_state): Add
15918 process_stratum_target parameter.
15919 (switch_to_thread): Use is_current_thread.
15920 * i386-fbsd-tdep.c: Include "inferior.h".
15921 (i386fbsd_get_thread_local_address): Pass down target.
15922 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
15923 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
15924 have_inferiors check.
15925 * inf-ptrace.c (inf_ptrace_target::create_inferior)
15926 (inf_ptrace_target::attach): Adjust.
15927 * infcall.c (run_inferior_call): Adjust.
15928 * infcmd.c (run_command_1): Pass target to
15929 scoped_finish_thread_state.
15930 (proceed_thread_callback): Skip inferiors with no execution.
15931 (continue_command): Rename 'all_threads' local to avoid hiding
15932 'all_threads' function. Adjust get_last_target_status call.
15933 (prepare_one_step): Adjust set_running call.
15934 (signal_command): Use user_visible_resume_target. Compare thread
15935 pointers instead of inferior_ptid.
15936 (info_program_command): Adjust to pass down target.
15937 (attach_command): Mark target's 'thread_executing' flag.
15938 (stop_current_target_threads_ns): New, factored out from ...
15939 (interrupt_target_1): ... this. Switch inferior before making
15940 target calls.
15941 * inferior-iter.h
15942 (struct all_inferiors_iterator, struct all_inferiors_range)
15943 (struct all_inferiors_safe_range)
15944 (struct all_non_exited_inferiors_range): Filter on
15945 process_stratum_target too. Remove explicit.
15946 * inferior.c (inferior::inferior): Push dummy target on target
15947 stack.
15948 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
15949 Add process_stratum_target parameter, and pass it down.
15950 (have_live_inferiors): Adjust.
15951 (switch_to_inferior_and_push_target): New.
15952 (add_inferior_command, clone_inferior_command): Handle
15953 "-no-connection" parameter. Use
15954 switch_to_inferior_and_push_target.
15955 (_initialize_inferior): Mention "-no-connection" option in
15956 the help of "add-inferior" and "clone-inferior" commands.
15957 * inferior.h: Include "process-stratum-target.h".
15958 (interrupt_target_1): Use bool.
15959 (struct inferior) <push_target, unpush_target, target_is_pushed,
15960 find_target_beneath, top_target, process_target, target_at,
15961 m_stack>: New.
15962 (discard_all_inferiors): Delete.
15963 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
15964 (all_inferiors, all_non_exited_inferiors): Add
15965 process_stratum_target parameter.
15966 * infrun.c: Include "gdb_select.h" and <unordered_map>.
15967 (target_last_proc_target): New global.
15968 (follow_fork_inferior): Push target on new inferior. Pass target
15969 to add_thread_silent. Call exec_on_vfork. Handle target's
15970 reference count.
15971 (follow_fork): Adjust get_last_target_status call. Also consider
15972 target.
15973 (follow_exec): Push target on new inferior.
15974 (struct execution_control_state) <target>: New field.
15975 (user_visible_resume_target): New.
15976 (do_target_resume): Call target_async.
15977 (resume_1): Set target's threads_executing flag. Consider resume
15978 target.
15979 (commit_resume_all_targets): New.
15980 (proceed): Also consider resume target. Skip threads of inferiors
15981 with no execution. Commit resumtion in all targets.
15982 (start_remote): Pass current inferior to wait_for_inferior.
15983 (infrun_thread_stop_requested): Consider target as well. Pass
15984 thread_info pointer to clear_inline_frame_state instead of ptid.
15985 (infrun_thread_thread_exit): Consider target as well.
15986 (random_pending_event_thread): New inferior parameter. Use it.
15987 (do_target_wait): Rename to ...
15988 (do_target_wait_1): ... this. Add inferior parameter, and pass it
15989 down.
15990 (threads_are_resumed_pending_p, do_target_wait): New.
15991 (prepare_for_detach): Adjust calls.
15992 (wait_for_inferior): New inferior parameter. Handle it. Use
15993 do_target_wait_1 instead of do_target_wait.
15994 (fetch_inferior_event): Adjust. Switch to representative
15995 inferior. Pass target down.
15996 (set_last_target_status): Add process_stratum_target parameter.
15997 Save target in global.
15998 (get_last_target_status): Add process_stratum_target parameter and
15999 handle it.
16000 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
16001 (context_switch): Check inferior_ptid == null_ptid before calling
16002 inferior_thread().
16003 (get_inferior_stop_soon): Pass down target.
16004 (wait_one): Rename to ...
16005 (poll_one_curr_target): ... this.
16006 (struct wait_one_event): New.
16007 (wait_one): New.
16008 (stop_all_threads): Adjust.
16009 (handle_no_resumed, handle_inferior_event): Adjust to consider the
16010 event's target.
16011 (switch_back_to_stepped_thread): Also consider target.
16012 (print_stop_event): Update.
16013 (normal_stop): Update. Also consider the resume target.
16014 * infrun.h (wait_for_inferior): Remove declaration.
16015 (user_visible_resume_target): New declaration.
16016 (get_last_target_status, set_last_target_status): New
16017 process_stratum_target parameter.
16018 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16019 process_stratum_target parameter, and use it.
16020 (clear_inline_frame_state (thread_info*)): New.
16021 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16022 process_stratum_target parameter.
16023 (clear_inline_frame_state (thread_info*)): Declare.
16024 * linux-fork.c (delete_checkpoint_command): Pass target down to
16025 find_thread_ptid.
16026 (checkpoint_command): Adjust.
16027 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
16028 instead of just tweaking inferior_ptid.
16029 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
16030 (exit_lwp): Pass target down to find_thread_ptid.
16031 (attach_proc_task_lwp_callback): Pass target down to
16032 add_thread/set_running/set_executing.
16033 (linux_nat_target::attach): Pass target down to
16034 thread_change_ptid.
16035 (get_detach_signal): Pass target down to find_thread_ptid.
16036 Consider last target status's target.
16037 (linux_resume_one_lwp_throw, resume_lwp)
16038 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
16039 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
16040 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
16041 (linux_nat_target::async_wait_fd): New.
16042 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
16043 target down.
16044 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
16045 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
16046 * linux-thread-db.c (struct thread_db_info::process_target): New
16047 field.
16048 (add_thread_db_info): Save target.
16049 (get_thread_db_info): New process_stratum_target parameter. Also
16050 match target.
16051 (delete_thread_db_info): New process_stratum_target parameter.
16052 Also match target.
16053 (thread_from_lwp): Adjust to pass down target.
16054 (thread_db_notice_clone): Pass down target.
16055 (check_thread_db_callback): Pass down target.
16056 (try_thread_db_load_1): Always push the thread_db target.
16057 (try_thread_db_load, record_thread): Pass target down.
16058 (thread_db_target::detach): Pass target down. Always unpush the
16059 thread_db target.
16060 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
16061 target down. Always unpush the thread_db target.
16062 (find_new_threads_callback, thread_db_find_new_threads_2)
16063 (thread_db_target::update_thread_list): Pass target down.
16064 (thread_db_target::pid_to_str): Pass current inferior down.
16065 (thread_db_target::get_thread_local_address): Pass target down.
16066 (thread_db_target::resume, maintenance_check_libthread_db): Pass
16067 target down.
16068 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
16069 * procfs.c (procfs_target::procfs_init_inferior): Declare.
16070 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
16071 (procfs_init_inferior): Rename to ...
16072 (procfs_target::procfs_init_inferior): ... this and adjust.
16073 (procfs_target::create_inferior, procfs_notice_thread)
16074 (procfs_do_thread_registers): Adjust.
16075 * ppc-fbsd-tdep.c: Include "inferior.h".
16076 (ppcfbsd_get_thread_local_address): Pass down target.
16077 * proc-service.c (ps_xfer_memory): Switch current inferior and
16078 program space as well.
16079 (get_ps_regcache): Pass target down.
16080 * process-stratum-target.c
16081 (process_stratum_target::thread_address_space)
16082 (process_stratum_target::thread_architecture): Pass target down.
16083 * process-stratum-target.h
16084 (process_stratum_target::threads_executing): New field.
16085 (as_process_stratum_target): New.
16086 * ravenscar-thread.c
16087 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
16088 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
16089 down.
16090 * record-btrace.c (record_btrace_target::info_record): Adjust.
16091 (record_btrace_target::record_method)
16092 (record_btrace_target::record_is_replaying)
16093 (record_btrace_target::fetch_registers)
16094 (get_thread_current_frame_id, record_btrace_target::resume)
16095 (record_btrace_target::wait, record_btrace_target::stop): Pass
16096 target down.
16097 * record-full.c (record_full_wait_1): Switch to event thread.
16098 Pass target down.
16099 * regcache.c (regcache::regcache)
16100 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
16101 process_stratum_target parameter and handle it.
16102 (current_thread_target): New global.
16103 (get_thread_regcache): Add process_stratum_target parameter and
16104 handle it. Switch inferior before calling target method.
16105 (get_thread_regcache): Pass target down.
16106 (get_thread_regcache_for_ptid): Pass target down.
16107 (registers_changed_ptid): Add process_stratum_target parameter and
16108 handle it.
16109 (registers_changed_thread, registers_changed): Pass target down.
16110 (test_get_thread_arch_aspace_regcache): New.
16111 (current_regcache_test): Define a couple local test_target_ops
16112 instances and use them for testing.
16113 (readwrite_regcache): Pass process_stratum_target parameter.
16114 (cooked_read_test, cooked_write_test): Pass mock_target down.
16115 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
16116 (get_thread_arch_aspace_regcache): Add process_stratum_target
16117 parameter.
16118 (regcache::target): New method.
16119 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
16120 (regcache::registers_changed_ptid): Add process_stratum_target
16121 parameter.
16122 (regcache::m_target): New field.
16123 (registers_changed_ptid): Add process_stratum_target parameter.
16124 * remote.c (remote_state::supports_vCont_probed): New field.
16125 (remote_target::async_wait_fd): New method.
16126 (remote_unpush_and_throw): Add remote_target parameter.
16127 (get_current_remote_target): Adjust.
16128 (remote_target::remote_add_inferior): Push target.
16129 (remote_target::remote_add_thread)
16130 (remote_target::remote_notice_new_inferior)
16131 (get_remote_thread_info): Pass target down.
16132 (remote_target::update_thread_list): Skip threads of inferiors
16133 bound to other targets. (remote_target::close): Don't discard
16134 inferiors. (remote_target::add_current_inferior_and_thread)
16135 (remote_target::process_initial_stop_replies)
16136 (remote_target::start_remote)
16137 (remote_target::remote_serial_quit_handler): Pass down target.
16138 (remote_target::remote_unpush_target): New remote_target
16139 parameter. Unpush the target from all inferiors.
16140 (remote_target::remote_unpush_and_throw): New remote_target
16141 parameter. Pass it down.
16142 (remote_target::open_1): Check whether the current inferior has
16143 execution instead of checking whether any inferior is live. Pass
16144 target down.
16145 (remote_target::remote_detach_1): Pass down target. Use
16146 remote_unpush_target.
16147 (extended_remote_target::attach): Pass down target.
16148 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
16149 (remote_target::append_resumption): Pass down target.
16150 (remote_target::append_pending_thread_resumptions)
16151 (remote_target::remote_resume_with_hc, remote_target::resume)
16152 (remote_target::commit_resume): Pass down target.
16153 (remote_target::remote_stop_ns): Check supports_vCont_probed.
16154 (remote_target::interrupt_query)
16155 (remote_target::remove_new_fork_children)
16156 (remote_target::check_pending_events_prevent_wildcard_vcont)
16157 (remote_target::remote_parse_stop_reply)
16158 (remote_target::process_stop_reply): Pass down target.
16159 (first_remote_resumed_thread): New remote_target parameter. Pass
16160 it down.
16161 (remote_target::wait_as): Pass down target.
16162 (unpush_and_perror): New remote_target parameter. Pass it down.
16163 (remote_target::readchar, remote_target::remote_serial_write)
16164 (remote_target::getpkt_or_notif_sane_1)
16165 (remote_target::kill_new_fork_children, remote_target::kill): Pass
16166 down target.
16167 (remote_target::mourn_inferior): Pass down target. Use
16168 remote_unpush_target.
16169 (remote_target::core_of_thread)
16170 (remote_target::remote_btrace_maybe_reopen): Pass down target.
16171 (remote_target::pid_to_exec_file)
16172 (remote_target::thread_handle_to_thread_info): Pass down target.
16173 (remote_target::async_wait_fd): New.
16174 * riscv-fbsd-tdep.c: Include "inferior.h".
16175 (riscv_fbsd_get_thread_local_address): Pass down target.
16176 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
16177 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
16178 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
16179 Adjust.
16180 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
16181 * solib-svr4.c (enable_break): Pass down target.
16182 * spu-multiarch.c (parse_spufs_run): Pass down target.
16183 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
16184 * target-delegates.c: Regenerate.
16185 * target.c (g_target_stack): Delete.
16186 (current_top_target): Return the current inferior's top target.
16187 (target_has_execution_1): Refer to the passed-in inferior's top
16188 target.
16189 (target_supports_terminal_ours): Check whether the initial
16190 inferior was already created.
16191 (decref_target): New.
16192 (target_stack::push): Incref/decref the target.
16193 (push_target, push_target, unpush_target): Adjust.
16194 (target_stack::unpush): Defref target.
16195 (target_is_pushed): Return bool. Adjust to refer to the current
16196 inferior's target stack.
16197 (dispose_inferior): Delete, and inline parts ...
16198 (target_preopen): ... here. Only dispose of the current inferior.
16199 (target_detach): Hold strong target reference while detaching.
16200 Pass target down.
16201 (target_thread_name): Add assertion.
16202 (target_resume): Pass down target.
16203 (target_ops::beneath, find_target_at): Adjust to refer to the
16204 current inferior's target stack.
16205 (get_dummy_target): New.
16206 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
16207 has a thread running.
16208 (initialize_targets): Rename to ...
16209 (_initialize_target): ... this.
16210 * target.h: Include "gdbsupport/refcounted-object.h".
16211 (struct target_ops): Inherit refcounted_object.
16212 (target_ops::shortname, target_ops::longname): Make const.
16213 (target_ops::async_wait_fd): New method.
16214 (decref_target): Declare.
16215 (struct target_ops_ref_policy): New.
16216 (target_ops_ref): New typedef.
16217 (get_dummy_target): Declare function.
16218 (target_is_pushed): Return bool.
16219 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
16220 (all_matching_threads_iterator::all_matching_threads_iterator):
16221 Handle filter target.
16222 * thread-iter.h (struct all_matching_threads_iterator, struct
16223 all_matching_threads_range, class all_non_exited_threads_range):
16224 Filter by target too. Remove explicit.
16225 * thread.c (threads_executing): Delete.
16226 (inferior_thread): Pass down current inferior.
16227 (clear_thread_inferior_resources): Pass down thread pointer
16228 instead of ptid_t.
16229 (add_thread_silent, add_thread_with_info, add_thread): Add
16230 process_stratum_target parameter. Use it for thread and inferior
16231 searches.
16232 (is_current_thread): New.
16233 (thread_info::deletable): Use it.
16234 (find_thread_ptid, thread_count, in_thread_list)
16235 (thread_change_ptid, set_resumed, set_running): New
16236 process_stratum_target parameter. Pass it down.
16237 (set_executing): New process_stratum_target parameter. Pass it
16238 down. Adjust reference to 'threads_executing'.
16239 (threads_are_executing): New process_stratum_target parameter.
16240 Adjust reference to 'threads_executing'.
16241 (set_stop_requested, finish_thread_state): New
16242 process_stratum_target parameter. Pass it down.
16243 (switch_to_thread): Also match inferior.
16244 (switch_to_thread): New process_stratum_target parameter. Pass it
16245 down.
16246 (update_threads_executing): Reimplement.
16247 * top.c (quit_force): Pop targets from all inferior.
16248 (gdb_init): Don't call initialize_targets.
16249 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
16250 Declare.
16251 (windows_add_thread, windows_delete_thread): Adjust.
16252 (get_windows_debug_event): Rename to ...
16253 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
16254 * tracefile-tfile.c (tfile_target_open): Pass down target.
16255 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
16256 Forward declare.
16257 (switch_to_thread): Add process_stratum_target parameter.
16258 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
16259 parameter. Use it.
16260 (mi_on_resume): Pass target down.
16261 * nat/fork-inferior.c (startup_inferior): Add
16262 process_stratum_target parameter. Pass it down.
16263 * nat/fork-inferior.h (startup_inferior): Add
16264 process_stratum_target parameter.
16265 * python/py-threadevent.c (py_get_event_thread): Pass target down.
16266
75c6c844
PA
162672020-01-10 Pedro Alves <palves@redhat.com>
16268
16269 * remote.c (remote_target::start_remote): Don't set inferior_ptid
16270 directly. Instead find the first thread in the thread list and
16271 use switch_to_thread.
16272
78f2c40a
PA
162732020-01-10 Pedro Alves <palves@redhat.com>
16274
16275 * remote.c (remote_target::remote_add_inferior): Don't bind a
16276 process to the current inferior if the current inferior is already
16277 bound to a process.
16278
e7af6c70
TBA
162792020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16280 Pedro Alves <palves@redhat.com>
16281
16282 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
16283 If no process is specified, return null_ptid instead of
16284 inferior_ptid.
16285 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
16286 TARGET_WAITKIND_SIGNALLED with no pid.
16287
31ba933e
PA
162882020-01-10 Pedro Alves <palves@redhat.com>
16289
16290 * remote.c (first_remote_resumed_thread): New.
16291 (remote_target::wait_as): Use it as default event_ptid instead of
16292 inferior_ptid.
16293
735fc2ca
PA
162942020-01-10 Pedro Alves <palves@redhat.com>
16295
16296 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
16297
c17e02e1
PA
162982020-01-10 Pedro Alves <palves@redhat.com>
16299
16300 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
16301 not -1.
16302
ab1ddbcf
PA
163032020-01-10 Pedro Alves <palves@redhat.com>
16304
16305 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
16306 ptid to get_last_target_status.
16307 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
16308 ptid to get_last_target_status.
16309 * infcmd.c (continue_command): Don't pass a target_waitstatus to
16310 get_last_target_status.
16311 (info_program_command): Don't pass a target_waitstatus to
16312 get_last_target_status.
16313 * infrun.c (init_wait_for_inferior): Use
16314 nullify_last_target_wait_ptid.
16315 (get_last_target_status): Handle nullptr arguments.
16316 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
16317 (print_stop_event): Don't pass a ptid to get_last_target_status.
16318 (normal_stop): Don't pass a ptid to get_last_target_status.
16319 * infrun.h (get_last_target_status, set_last_target_status): Move
16320 comments here and update.
16321 (nullify_last_target_wait_ptid): Declare.
16322 * linux-fork.c (fork_load_infrun_state): Remove local extern
16323 declaration of nullify_last_target_wait_ptid.
16324 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
16325 to get_last_target_status.
16326
f3f8ece4
PA
163272020-01-10 Pedro Alves <palves@redhat.com>
16328
16329 * gdbthread.h (scoped_restore_current_thread)
16330 <dont_restore, restore, m_dont_restore>: Declare.
16331 * thread.c (thread_alive): Add assertion. Return bool.
16332 (switch_to_thread_if_alive): New.
16333 (prune_threads): Switch inferior/thread.
16334 (print_thread_info_1): Switch thread before calling target methods.
16335 (scoped_restore_current_thread::restore): New, factored out from
16336 ...
16337 (scoped_restore_current_thread::~scoped_restore_current_thread):
16338 ... this.
16339 (scoped_restore_current_thread::scoped_restore_current_thread):
16340 Add assertion.
16341 (thread_apply_all_command, thread_select): Use
16342 switch_to_thread_if_alive.
16343 * infrun.c (proceed, restart_threads, handle_signal_stop)
16344 (switch_back_to_stepped_thread): Switch current thread before
16345 calling target methods.
16346
db2d40f7
PA
163472020-01-10 Pedro Alves <palves@redhat.com>
16348
16349 * inferior.c (switch_to_inferior_no_thread): New function,
16350 factored out from ...
16351 (inferior_command): ... here.
16352 * inferior.h (switch_to_inferior_no_thread): Declare.
16353 * mi/mi-main.c (run_one_inferior): Use
16354 switch_to_inferior_no_thread.
16355
bd420a2d
PA
163562020-01-10 Pedro Alves <palves@redhat.com>
16357
16358 * infcmd.c (kill_command): Remove dead code.
16359
ddf5db90
PA
163602020-01-10 Pedro Alves <palves@redhat.com>
16361
16362 * remote.c (remote_target::mourn_inferior): No longer check
16363 whether the target is running.
16364
5018ce90
PA
163652020-01-10 Pedro Alves <palves@redhat.com>
16366
16367 * corelow.c (core_target::has_execution): Change parameter type to
16368 inferior pointer.
16369 * inferior.c (number_of_live_inferiors): Use
16370 inferior::has_execution instead of target_has_execution_1.
16371 * inferior.h (inferior::has_execution): New.
16372 * linux-thread-db.c (thread_db_target::update_thread_list): Use
16373 inferior::has_execution instead of target_has_execution_1.
16374 * process-stratum-target.c
16375 (process_stratum_target::has_execution): Change parameter type to
16376 inferior pointer. Check the inferior's PID instead of
16377 inferior_ptid.
16378 * process-stratum-target.h
16379 (process_stratum_target::has_execution): Change parameter type to
16380 inferior pointer.
16381 * record-full.c (record_full_core_target::has_execution): Change
16382 parameter type to inferior pointer.
16383 * target.c (target_has_execution_1): Change parameter type to
16384 inferior pointer.
16385 (target_has_execution_current): Adjust.
16386 * target.h (target_ops::has_execution): Change parameter type to
16387 inferior pointer.
16388 (target_has_execution_1): Change parameter type to inferior
16389 pointer. Change return type to bool.
16390 * tracefile.h (tracefile_target::has_execution): Change parameter
16391 type to inferior pointer.
16392
74375d18
PA
163932020-01-10 Pedro Alves <palves@redhat.com>
16394
16395 * exceptions.c (print_flush): Remove current_top_target() check.
16396
acdf84a6
PA
163972020-01-10 Pedro Alves <palves@redhat.com>
16398
16399 * remote.c (show_remote_exec_file): Show the current inferior's
16400 exec-file instead of the command variable's value.
16401
ec506636
PA
164022020-01-10 Pedro Alves <palves@redhat.com>
16403
16404 * record-full.c (record_full_resume_ptid): New global.
16405 (record_full_target::resume): Set it.
16406 (record_full_wait_1): Use record_full_resume_ptid instead of
16407 inferior_ptid.
16408
873657b9
PA
164092020-01-10 Pedro Alves <palves@redhat.com>
16410
16411 * gdbthread.h (scoped_restore_current_thread)
16412 <dont_restore, restore, m_dont_restore>: Declare.
16413 * thread.c (thread_alive): Add assertion. Return bool.
16414 (switch_to_thread_if_alive): New.
16415 (prune_threads): Switch inferior/thread.
16416 (print_thread_info_1): Switch thread before calling target methods.
16417 (scoped_restore_current_thread::restore): New, factored out from
16418 ...
16419 (scoped_restore_current_thread::~scoped_restore_current_thread):
16420 ... this.
16421 (scoped_restore_current_thread::scoped_restore_current_thread):
16422 Add assertion.
16423 (thread_apply_all_command, thread_select): Use
16424 switch_to_thread_if_alive.
16425
7f0ae84c
GB
164262020-01-10 George Barrett <bob@bob131.so>
16427
16428 * stap-probe.c (stap_modify_semaphore): Don't check for null
16429 semaphores.
16430 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
16431 for null semaphores.
16432
f5a7c406
AB
164332020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16434
16435 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
16436 all source windows, and maintain horizontal scroll status while
16437 doing so.
16438
9ae6bf64
TT
164392020-01-09 Tom Tromey <tom@tromey.com>
16440
16441 PR tui/18932:
16442 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
16443 update_source_window, not print_source_lines.
16444
b2efe70c
AB
164452020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16446
16447 * tui/tui.c (tui_enable): Register tui hooks after calling
16448 tui_display_main.
16449
5f23a082
CB
164502020-01-09 Christian Biesinger <cbiesinger@google.com>
16451
16452 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
16453
3061113b
SM
164542020-01-08 Simon Marchi <simon.marchi@efficios.com>
16455
16456 * thread.c (print_thread_info_1): Fix indentation.
16457
57d75002
CB
164582020-01-09 Christian Biesinger <cbiesinger@google.com>
16459
16460 * symtab.c (general_symbol_info::compute_and_set_names): Move the
16461 unique_xmalloc_ptr outside the if to always free the demangled name.
16462
6a053cb1
TT
164632020-01-08 Tom Tromey <tromey@adacore.com>
16464
16465 * xcoffread.c (enter_line_range, read_xcoff_symtab)
16466 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
16467 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
16468 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
16469 Remove.
16470 (section_offsets): New typedef.
16471 * symtab.c (fixup_section, get_msymbol_address): Update.
16472 * symmisc.c (dump_msymbols): Update.
16473 * symfile.h (relative_addr_info_to_section_offsets)
16474 (symfile_map_offsets_to_segments): Update.
16475 * symfile.c (build_section_addr_info_from_objfile)
16476 (init_objfile_sect_indices): Update.
16477 (struct place_section_arg): Change type of "offsets".
16478 (place_section): Update.
16479 (relative_addr_info_to_section_offsets): Change type of
16480 "section_offsets". Remove "num_sections" parameter.
16481 (default_symfile_offsets, syms_from_objfile_1)
16482 (set_objfile_default_section_offset): Update.
16483 (reread_symbols): No need to preserve section offsets by hand.
16484 (symfile_map_offsets_to_segments): Change type of "offsets".
16485 * stap-probe.c (relocate_address): Update.
16486 * stabsread.h (process_one_symbol): Update.
16487 * solib-target.c (struct lm_info_target) <offsets>: Change type.
16488 (solib_target_relocate_section_addresses): Update.
16489 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
16490 Update.
16491 * solib-frv.c (frv_relocate_main_executable): Update.
16492 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
16493 * solib-aix.c (solib_aix_get_section_offsets): Change return
16494 type.
16495 (solib_aix_solib_create_inferior_hook): Update.
16496 * remote.c (remote_target::get_offsets): Update.
16497 * psymtab.c (find_pc_sect_psymtab): Update.
16498 * psympriv.h (struct partial_symbol) <address, text_low,
16499 text_high>: Update.
16500 * objfiles.h (obj_section_offset): Update.
16501 (struct objfile) <section_offsets>: Change type.
16502 <num_sections>: Remove.
16503 (objfile_relocate): Update.
16504 * objfiles.c (entry_point_address_query): Update
16505 (relocate_one_symbol): Change type of "section_offsets".
16506 (objfile_relocate1, objfile_relocate1): Change type of
16507 "new_offsets".
16508 (objfile_rebase1): Update.
16509 * mipsread.c (mipscoff_symfile_read): Update.
16510 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
16511 parameter.
16512 * mdebugread.c (parse_symbol): Change type of "section_offsets".
16513 (parse_external, psymtab_to_symtab_1): Update.
16514 * machoread.c (macho_symfile_offsets): Update.
16515 * ia64-tdep.c (ia64_find_unwind_table): Update.
16516 * hppa-tdep.c (read_unwind_info): Update.
16517 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
16518 * dwarf2read.c (create_addrmap_from_index)
16519 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
16520 (process_psymtab_comp_unit_reader, add_partial_symbol)
16521 (add_partial_subprogram, process_full_comp_unit)
16522 (read_file_scope, read_func_scope, read_lexical_block_scope)
16523 (read_call_site_scope, dwarf2_rnglists_process)
16524 (dwarf2_ranges_process, dwarf2_ranges_read)
16525 (dwarf_decode_lines_1, var_decode_location, new_symbol)
16526 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
16527 Update.
16528 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
16529 Update.
16530 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
16531 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
16532 (process_one_symbol): Change type of "section_offsets".
16533 * ctfread.c (get_objfile_text_range): Update.
16534 * coffread.c (coff_symtab_read, enter_linenos)
16535 (process_coff_symbol): Update.
16536 * coff-pe-read.c (add_pe_forwarded_sym): Update.
16537 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
16538
456e800a
TT
165392020-01-08 Tom Tromey <tromey@adacore.com>
16540
16541 * dwarf2read.c (parse_macro_definition): Use std::string.
16542 (parse_macro_definition): Likewise.
16543
6dfa2fc2
TT
165442020-01-08 Tom Tromey <tromey@adacore.com>
16545
16546 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
16547 (ATTR_ALLOC_CHUNK): Remove.
16548
421d1616
TT
165492020-01-08 Tom Tromey <tromey@adacore.com>
16550
16551 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
16552
43816ebc
TT
165532020-01-08 Tom Tromey <tromey@adacore.com>
16554
16555 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
16556 (dwarf2_compute_name, open_dwo_file): Likewise.
16557 (process_enumeration_scope): Use std::vector.
16558 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
16559 (partial_die_info::fixup, dwarf2_start_subfile)
16560 (guess_full_die_structure_name, dwarf2_name): Likewise.
16561 (determine_prefix): Update.
16562 (guess_full_die_structure_name): Make return type const.
16563 (partial_die_full_name): Return unique_xmalloc_ptr.
16564 (DW_FIELD_ALLOC_CHUNK): Remove.
16565
4212d509
TT
165662020-01-07 Tom Tromey <tromey@adacore.com>
16567
16568 PR build/24937:
16569 * stap-probe.c (class stap_static_probe_ops): Add constructor.
16570
06a6207a
JT
165712020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
16572
16573 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
16574
153d79c4
AB
165752020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
16576
16577 * stack.c (print_frame_info): Move disassemble_next_line code
16578 inside source_print block.
16579
66182876
EZ
165802020-01-06 Eli Zaretskii <eliz@gnu.org>
16581
16582 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
16583 gdb/signals.h, as we are now using native signal symbols.
16584
cbfa8581
SV
165852020-01-06 Shahab Vahedi <shahab@synopsys.com>
16586
16587 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
16588 overflow by an early check of content vs threshold.
aac66a4c 16589 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
16590 Likewise.
16591
3f602821
EZ
165922020-01-06 Eli Zaretskii <eliz@gnu.org>
16593
16594 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
16595
a08c904d
JT
165962020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
16597
16598 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
16599 export table if no section contains it's RVA.
16600
89a65580
EZ
166012020-01-06 Eli Zaretskii <eliz@gnu.org>
16602
16603 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
16604
8b7fcda2
HD
166052020-01-06 Hannes Domani <ssbssa@yahoo.de>
16606
16607 * source.c (print_source_lines_base): Set last_line_listed.
16608
a61b4f69
SV
166092020-01-06 Shahab Vahedi <shahab@synopsys.com>
16610
16611 * tui/tui-disasm.c: Remove trailing spaces.
16612
559e7e50
EZ
166132020-01-06 Eli Zaretskii <eliz@gnu.org>
16614 Pedro Alves <palves@redhat.com>
16615
16616 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
16617 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
16618 (windows_gdb_signal_to_target): New function, uses the above
16619 enumeration to convert GDB internal signal codes to equivalent
16620 Windows codes.
16621 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
16622 * windows-nat.c: Include "gdb_wait.h".
16623 (get_windows_debug_event): Extract the fatal exception from the
16624 exit status and convert to the equivalent Posix signal number.
16625 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
16626 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
16627 * gdbsupport/gdb_wait.c: New file, implements
16628 windows_status_to_termsig.
16629 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
16630 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
16631
f2302a34
AB
166322020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
16633
16634 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
16635 show_layout.
16636
6a5206eb
LM
166372020-01-05 Luis Machado <luis.machado@linaro.org>
16638
16639 * aarch64-linux-nat.c
16640 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
16641 and bfd_mach_aarch64.
16642
6ec1d75e
PW
166432020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16644
16645 * ui-file.c (stdio_file::can_emit_style_escape)
16646 (tee_file::can_emit_style_escape): Ensure style is used also on
16647 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
16648 to gdb_stdout.
16649 * main.c (set_gdb_data_directory): Use file style to output the
16650 warning that the given pathname is not a directory.
16651 * top.c (show_history_filename, gdb_safe_append_history)
16652 (show_gdb_datadir): Use file style.
16653
44f81a76
HD
166542020-01-03 Hannes Domani <ssbssa@yahoo.de>
16655
16656 * solib-target.c (struct lm_info_target):
16657 Change offsets to be a unique_xmalloc_ptr.
16658 (solib_target_relocate_section_addresses): Update.
16659
25057eb0
HD
166602020-01-03 Hannes Domani <ssbssa@yahoo.de>
16661
16662 * windows-nat.c (windows_clear_solib): Free so_list linked list.
16663
6e2118f5
BE
166642020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
16665
16666 * MAINTAINERS (Write After Approval): Add myself.
16667
8133c7dc
LM
166682020-01-02 Luis Machado <luis.machado@linaro.org>
16669
16670 * proc-service.c (get_ps_regcache): Remove reference to obsolete
16671 Cell BE architecture.
16672 * target.h (struct target_ops) <thread_architecture>: Likewise.
16673
48189bec
HD
166742020-01-01 Hannes Domani <ssbssa@yahoo.de>
16675
16676 * Makefile.in: Use INSTALL_PROGRAM_ENV.
16677
ead1063b
HD
166782020-01-01 Hannes Domani <ssbssa@yahoo.de>
16679
16680 * MAINTAINERS (Write After Approval): Add myself.
16681
e5d78223
JB
166822020-01-01 Joel Brobecker <brobecker@adacore.com>
16683
16684 * gdbarch.sh: Update copyright year range of generated files.
16685
b811d2c2
JB
166862020-01-01 Joel Brobecker <brobecker@adacore.com>
16687
16688 Update copyright year range in all GDB files.
16689
5f4def5c
JB
166902020-01-01 Joel Brobecker <brobecker@adacore.com>
16691
16692 * copyright.py: Convert to Python 3.
16693
51fd4002
JB
166942020-01-01 Joel Brobecker <brobecker@adacore.com>
16695
16696 * copyright.py: Adapt after move of gnulib directory from gdb
16697 directory to toplevel directory.
16698
5fb651f2
JB
166992020-01-01 Joel Brobecker <brobecker@adacore.com>
16700
16701 * copyright.py (main): Exit if run from the wrong directory.
16702
5dd8bf88
JB
167032020-01-01 Joel Brobecker <brobecker@adacore.com>
16704
16705 * top.c (print_gdb_version): Change copyright year to 2020.
16706
9f71dacb 167072020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 16708
9f71dacb 16709 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 16710
9f71dacb 16711For older changes see ChangeLog-2019.
c906108c
SS
16712\f
16713Local Variables:
16714mode: change-log
16715left-margin: 8
16716fill-column: 74
16717version-control: never
57da7796 16718coding: utf-8
c906108c 16719End:
This page took 4.662741 seconds and 4 git commands to generate.