]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Synthesize array descriptors with -fgnat-encodings=minimal
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
57567375
TT
12020-11-04 Tom Tromey <tromey@adacore.com>
2
3 * dwarf2/read.c (recognize_bound_expression)
4 (quirk_ada_thick_pointer): New functions.
5 (read_array_type): Call quirk_ada_thick_pointer.
6 (set_die_type): Add "skip_data_location" parameter.
7 (quirk_ada_thick_pointer): New function.
8 (process_structure_scope): Call quirk_ada_thick_pointer.
9 * ada-lang.c (ada_is_unconstrained_packed_array_type)
10 (decode_packed_array_bitsize): Handle thick pointers without
11 parallel types.
12 (ada_is_gnat_encoded_packed_array_type): Rename from
13 ada_is_packed_array_type.
14 (ada_is_constrained_packed_array_type): Update.
15 * ada-valprint.c (ada_val_print_gnat_array): Remove.
16 (ada_value_print_1): Use ada_get_decoded_value.
17
a7400e44
TT
182020-11-04 Tom Tromey <tromey@adacore.com>
19
20 * ada-lang.c (recursively_update_array_bitsize): New function.
21 (decode_constrained_packed_array_type): Call it.
22
75fd6a26
TT
232020-11-04 Tom Tromey <tromey@adacore.com>
24
25 * ada-lang.c (to_fixed_array_type): Error if
26 decode_constrained_packed_array_type returns NULL.
27
93f9561e
TT
282020-11-04 Tom Tromey <tromey@adacore.com>
29
30 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
31
257e02d8
TT
322020-11-02 Tom Tromey <tromey@adacore.com>
33
34 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
35 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
36 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
37 * amd64-ravenscar-thread.c: New file.
38 * amd64-ravenscar-thread.h: New file.
39 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
40 * configure.tgt (amd64_tobjs): Add ravenscar objects.
41
74d877e5
AB
422020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
43
44 * main.c (execute_cmdargs): New function.
45 (captured_main_1): Make use of execute_cmdargs.
46
64aaad63
AB
472020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
48
49 * NEWS: Mention changes to config file search path.
50 * main.c
51
5b3d3560
TT
522020-11-02 Tom Tromey <tromey@adacore.com>
53
54 * python/python.c: Consolidate two HAVE_PYTHON blocks.
55 (python_GdbModuleDef): Move earlier. Now static.
56 (do_start_initialization): Consolidate some IS_PY3K blocks.
57
dda83cd7
SM
582020-11-02 Simon Marchi <simon.marchi@efficios.com>
59
60 * aarch64-linux-tdep.c: Fix indentation.
61 * aarch64-ravenscar-thread.c: Fix indentation.
62 * aarch64-tdep.c: Fix indentation.
63 * aarch64-tdep.h: Fix indentation.
64 * ada-lang.c: Fix indentation.
65 * ada-lang.h: Fix indentation.
66 * ada-tasks.c: Fix indentation.
67 * ada-typeprint.c: Fix indentation.
68 * ada-valprint.c: Fix indentation.
69 * ada-varobj.c: Fix indentation.
70 * addrmap.c: Fix indentation.
71 * addrmap.h: Fix indentation.
72 * agent.c: Fix indentation.
73 * aix-thread.c: Fix indentation.
74 * alpha-bsd-nat.c: Fix indentation.
75 * alpha-linux-tdep.c: Fix indentation.
76 * alpha-mdebug-tdep.c: Fix indentation.
77 * alpha-nbsd-tdep.c: Fix indentation.
78 * alpha-obsd-tdep.c: Fix indentation.
79 * alpha-tdep.c: Fix indentation.
80 * amd64-bsd-nat.c: Fix indentation.
81 * amd64-darwin-tdep.c: Fix indentation.
82 * amd64-linux-nat.c: Fix indentation.
83 * amd64-linux-tdep.c: Fix indentation.
84 * amd64-nat.c: Fix indentation.
85 * amd64-obsd-tdep.c: Fix indentation.
86 * amd64-tdep.c: Fix indentation.
87 * amd64-windows-tdep.c: Fix indentation.
88 * annotate.c: Fix indentation.
89 * arc-tdep.c: Fix indentation.
90 * arch-utils.c: Fix indentation.
91 * arch/arm-get-next-pcs.c: Fix indentation.
92 * arch/arm.c: Fix indentation.
93 * arm-linux-nat.c: Fix indentation.
94 * arm-linux-tdep.c: Fix indentation.
95 * arm-nbsd-tdep.c: Fix indentation.
96 * arm-pikeos-tdep.c: Fix indentation.
97 * arm-tdep.c: Fix indentation.
98 * arm-tdep.h: Fix indentation.
99 * arm-wince-tdep.c: Fix indentation.
100 * auto-load.c: Fix indentation.
101 * auxv.c: Fix indentation.
102 * avr-tdep.c: Fix indentation.
103 * ax-gdb.c: Fix indentation.
104 * ax-general.c: Fix indentation.
105 * bfin-linux-tdep.c: Fix indentation.
106 * block.c: Fix indentation.
107 * block.h: Fix indentation.
108 * blockframe.c: Fix indentation.
109 * bpf-tdep.c: Fix indentation.
110 * break-catch-sig.c: Fix indentation.
111 * break-catch-syscall.c: Fix indentation.
112 * break-catch-throw.c: Fix indentation.
113 * breakpoint.c: Fix indentation.
114 * breakpoint.h: Fix indentation.
115 * bsd-uthread.c: Fix indentation.
116 * btrace.c: Fix indentation.
117 * build-id.c: Fix indentation.
118 * buildsym-legacy.h: Fix indentation.
119 * buildsym.c: Fix indentation.
120 * c-typeprint.c: Fix indentation.
121 * c-valprint.c: Fix indentation.
122 * c-varobj.c: Fix indentation.
123 * charset.c: Fix indentation.
124 * cli/cli-cmds.c: Fix indentation.
125 * cli/cli-decode.c: Fix indentation.
126 * cli/cli-decode.h: Fix indentation.
127 * cli/cli-script.c: Fix indentation.
128 * cli/cli-setshow.c: Fix indentation.
129 * coff-pe-read.c: Fix indentation.
130 * coffread.c: Fix indentation.
131 * compile/compile-cplus-types.c: Fix indentation.
132 * compile/compile-object-load.c: Fix indentation.
133 * compile/compile-object-run.c: Fix indentation.
134 * completer.c: Fix indentation.
135 * corefile.c: Fix indentation.
136 * corelow.c: Fix indentation.
137 * cp-abi.h: Fix indentation.
138 * cp-namespace.c: Fix indentation.
139 * cp-support.c: Fix indentation.
140 * cp-valprint.c: Fix indentation.
141 * cris-linux-tdep.c: Fix indentation.
142 * cris-tdep.c: Fix indentation.
143 * darwin-nat-info.c: Fix indentation.
144 * darwin-nat.c: Fix indentation.
145 * darwin-nat.h: Fix indentation.
146 * dbxread.c: Fix indentation.
147 * dcache.c: Fix indentation.
148 * disasm.c: Fix indentation.
149 * dtrace-probe.c: Fix indentation.
150 * dwarf2/abbrev.c: Fix indentation.
151 * dwarf2/attribute.c: Fix indentation.
152 * dwarf2/expr.c: Fix indentation.
153 * dwarf2/frame.c: Fix indentation.
154 * dwarf2/index-cache.c: Fix indentation.
155 * dwarf2/index-write.c: Fix indentation.
156 * dwarf2/line-header.c: Fix indentation.
157 * dwarf2/loc.c: Fix indentation.
158 * dwarf2/macro.c: Fix indentation.
159 * dwarf2/read.c: Fix indentation.
160 * dwarf2/read.h: Fix indentation.
161 * elfread.c: Fix indentation.
162 * eval.c: Fix indentation.
163 * event-top.c: Fix indentation.
164 * exec.c: Fix indentation.
165 * exec.h: Fix indentation.
166 * expprint.c: Fix indentation.
167 * f-lang.c: Fix indentation.
168 * f-typeprint.c: Fix indentation.
169 * f-valprint.c: Fix indentation.
170 * fbsd-nat.c: Fix indentation.
171 * fbsd-tdep.c: Fix indentation.
172 * findvar.c: Fix indentation.
173 * fork-child.c: Fix indentation.
174 * frame-unwind.c: Fix indentation.
175 * frame-unwind.h: Fix indentation.
176 * frame.c: Fix indentation.
177 * frv-linux-tdep.c: Fix indentation.
178 * frv-tdep.c: Fix indentation.
179 * frv-tdep.h: Fix indentation.
180 * ft32-tdep.c: Fix indentation.
181 * gcore.c: Fix indentation.
182 * gdb_bfd.c: Fix indentation.
183 * gdbarch.sh: Fix indentation.
184 * gdbarch.c: Re-generate
185 * gdbarch.h: Re-generate.
186 * gdbcore.h: Fix indentation.
187 * gdbthread.h: Fix indentation.
188 * gdbtypes.c: Fix indentation.
189 * gdbtypes.h: Fix indentation.
190 * glibc-tdep.c: Fix indentation.
191 * gnu-nat.c: Fix indentation.
192 * gnu-nat.h: Fix indentation.
193 * gnu-v2-abi.c: Fix indentation.
194 * gnu-v3-abi.c: Fix indentation.
195 * go32-nat.c: Fix indentation.
196 * guile/guile-internal.h: Fix indentation.
197 * guile/scm-cmd.c: Fix indentation.
198 * guile/scm-frame.c: Fix indentation.
199 * guile/scm-iterator.c: Fix indentation.
200 * guile/scm-math.c: Fix indentation.
201 * guile/scm-ports.c: Fix indentation.
202 * guile/scm-pretty-print.c: Fix indentation.
203 * guile/scm-value.c: Fix indentation.
204 * h8300-tdep.c: Fix indentation.
205 * hppa-linux-nat.c: Fix indentation.
206 * hppa-linux-tdep.c: Fix indentation.
207 * hppa-nbsd-nat.c: Fix indentation.
208 * hppa-nbsd-tdep.c: Fix indentation.
209 * hppa-obsd-nat.c: Fix indentation.
210 * hppa-tdep.c: Fix indentation.
211 * hppa-tdep.h: Fix indentation.
212 * i386-bsd-nat.c: Fix indentation.
213 * i386-darwin-nat.c: Fix indentation.
214 * i386-darwin-tdep.c: Fix indentation.
215 * i386-dicos-tdep.c: Fix indentation.
216 * i386-gnu-nat.c: Fix indentation.
217 * i386-linux-nat.c: Fix indentation.
218 * i386-linux-tdep.c: Fix indentation.
219 * i386-nto-tdep.c: Fix indentation.
220 * i386-obsd-tdep.c: Fix indentation.
221 * i386-sol2-nat.c: Fix indentation.
222 * i386-tdep.c: Fix indentation.
223 * i386-tdep.h: Fix indentation.
224 * i386-windows-tdep.c: Fix indentation.
225 * i387-tdep.c: Fix indentation.
226 * i387-tdep.h: Fix indentation.
227 * ia64-libunwind-tdep.c: Fix indentation.
228 * ia64-libunwind-tdep.h: Fix indentation.
229 * ia64-linux-nat.c: Fix indentation.
230 * ia64-linux-tdep.c: Fix indentation.
231 * ia64-tdep.c: Fix indentation.
232 * ia64-tdep.h: Fix indentation.
233 * ia64-vms-tdep.c: Fix indentation.
234 * infcall.c: Fix indentation.
235 * infcmd.c: Fix indentation.
236 * inferior.c: Fix indentation.
237 * infrun.c: Fix indentation.
238 * iq2000-tdep.c: Fix indentation.
239 * language.c: Fix indentation.
240 * linespec.c: Fix indentation.
241 * linux-fork.c: Fix indentation.
242 * linux-nat.c: Fix indentation.
243 * linux-tdep.c: Fix indentation.
244 * linux-thread-db.c: Fix indentation.
245 * lm32-tdep.c: Fix indentation.
246 * m2-lang.c: Fix indentation.
247 * m2-typeprint.c: Fix indentation.
248 * m2-valprint.c: Fix indentation.
249 * m32c-tdep.c: Fix indentation.
250 * m32r-linux-tdep.c: Fix indentation.
251 * m32r-tdep.c: Fix indentation.
252 * m68hc11-tdep.c: Fix indentation.
253 * m68k-bsd-nat.c: Fix indentation.
254 * m68k-linux-nat.c: Fix indentation.
255 * m68k-linux-tdep.c: Fix indentation.
256 * m68k-tdep.c: Fix indentation.
257 * machoread.c: Fix indentation.
258 * macrocmd.c: Fix indentation.
259 * macroexp.c: Fix indentation.
260 * macroscope.c: Fix indentation.
261 * macrotab.c: Fix indentation.
262 * macrotab.h: Fix indentation.
263 * main.c: Fix indentation.
264 * mdebugread.c: Fix indentation.
265 * mep-tdep.c: Fix indentation.
266 * mi/mi-cmd-catch.c: Fix indentation.
267 * mi/mi-cmd-disas.c: Fix indentation.
268 * mi/mi-cmd-env.c: Fix indentation.
269 * mi/mi-cmd-stack.c: Fix indentation.
270 * mi/mi-cmd-var.c: Fix indentation.
271 * mi/mi-cmds.c: Fix indentation.
272 * mi/mi-main.c: Fix indentation.
273 * mi/mi-parse.c: Fix indentation.
274 * microblaze-tdep.c: Fix indentation.
275 * minidebug.c: Fix indentation.
276 * minsyms.c: Fix indentation.
277 * mips-linux-nat.c: Fix indentation.
278 * mips-linux-tdep.c: Fix indentation.
279 * mips-nbsd-tdep.c: Fix indentation.
280 * mips-tdep.c: Fix indentation.
281 * mn10300-linux-tdep.c: Fix indentation.
282 * mn10300-tdep.c: Fix indentation.
283 * moxie-tdep.c: Fix indentation.
284 * msp430-tdep.c: Fix indentation.
285 * namespace.h: Fix indentation.
286 * nat/fork-inferior.c: Fix indentation.
287 * nat/gdb_ptrace.h: Fix indentation.
288 * nat/linux-namespaces.c: Fix indentation.
289 * nat/linux-osdata.c: Fix indentation.
290 * nat/netbsd-nat.c: Fix indentation.
291 * nat/x86-dregs.c: Fix indentation.
292 * nbsd-nat.c: Fix indentation.
293 * nbsd-tdep.c: Fix indentation.
294 * nios2-linux-tdep.c: Fix indentation.
295 * nios2-tdep.c: Fix indentation.
296 * nto-procfs.c: Fix indentation.
297 * nto-tdep.c: Fix indentation.
298 * objfiles.c: Fix indentation.
299 * objfiles.h: Fix indentation.
300 * opencl-lang.c: Fix indentation.
301 * or1k-tdep.c: Fix indentation.
302 * osabi.c: Fix indentation.
303 * osabi.h: Fix indentation.
304 * osdata.c: Fix indentation.
305 * p-lang.c: Fix indentation.
306 * p-typeprint.c: Fix indentation.
307 * p-valprint.c: Fix indentation.
308 * parse.c: Fix indentation.
309 * ppc-linux-nat.c: Fix indentation.
310 * ppc-linux-tdep.c: Fix indentation.
311 * ppc-nbsd-nat.c: Fix indentation.
312 * ppc-nbsd-tdep.c: Fix indentation.
313 * ppc-obsd-nat.c: Fix indentation.
314 * ppc-ravenscar-thread.c: Fix indentation.
315 * ppc-sysv-tdep.c: Fix indentation.
316 * ppc64-tdep.c: Fix indentation.
317 * printcmd.c: Fix indentation.
318 * proc-api.c: Fix indentation.
319 * producer.c: Fix indentation.
320 * producer.h: Fix indentation.
321 * prologue-value.c: Fix indentation.
322 * prologue-value.h: Fix indentation.
323 * psymtab.c: Fix indentation.
324 * python/py-arch.c: Fix indentation.
325 * python/py-bpevent.c: Fix indentation.
326 * python/py-event.c: Fix indentation.
327 * python/py-event.h: Fix indentation.
328 * python/py-finishbreakpoint.c: Fix indentation.
329 * python/py-frame.c: Fix indentation.
330 * python/py-framefilter.c: Fix indentation.
331 * python/py-inferior.c: Fix indentation.
332 * python/py-infthread.c: Fix indentation.
333 * python/py-objfile.c: Fix indentation.
334 * python/py-prettyprint.c: Fix indentation.
335 * python/py-registers.c: Fix indentation.
336 * python/py-signalevent.c: Fix indentation.
337 * python/py-stopevent.c: Fix indentation.
338 * python/py-stopevent.h: Fix indentation.
339 * python/py-threadevent.c: Fix indentation.
340 * python/py-tui.c: Fix indentation.
341 * python/py-unwind.c: Fix indentation.
342 * python/py-value.c: Fix indentation.
343 * python/py-xmethods.c: Fix indentation.
344 * python/python-internal.h: Fix indentation.
345 * python/python.c: Fix indentation.
346 * ravenscar-thread.c: Fix indentation.
347 * record-btrace.c: Fix indentation.
348 * record-full.c: Fix indentation.
349 * record.c: Fix indentation.
350 * reggroups.c: Fix indentation.
351 * regset.h: Fix indentation.
352 * remote-fileio.c: Fix indentation.
353 * remote.c: Fix indentation.
354 * reverse.c: Fix indentation.
355 * riscv-linux-tdep.c: Fix indentation.
356 * riscv-ravenscar-thread.c: Fix indentation.
357 * riscv-tdep.c: Fix indentation.
358 * rl78-tdep.c: Fix indentation.
359 * rs6000-aix-tdep.c: Fix indentation.
360 * rs6000-lynx178-tdep.c: Fix indentation.
361 * rs6000-nat.c: Fix indentation.
362 * rs6000-tdep.c: Fix indentation.
363 * rust-lang.c: Fix indentation.
364 * rx-tdep.c: Fix indentation.
365 * s12z-tdep.c: Fix indentation.
366 * s390-linux-tdep.c: Fix indentation.
367 * score-tdep.c: Fix indentation.
368 * ser-base.c: Fix indentation.
369 * ser-mingw.c: Fix indentation.
370 * ser-uds.c: Fix indentation.
371 * ser-unix.c: Fix indentation.
372 * serial.c: Fix indentation.
373 * sh-linux-tdep.c: Fix indentation.
374 * sh-nbsd-tdep.c: Fix indentation.
375 * sh-tdep.c: Fix indentation.
376 * skip.c: Fix indentation.
377 * sol-thread.c: Fix indentation.
378 * solib-aix.c: Fix indentation.
379 * solib-darwin.c: Fix indentation.
380 * solib-frv.c: Fix indentation.
381 * solib-svr4.c: Fix indentation.
382 * solib.c: Fix indentation.
383 * source.c: Fix indentation.
384 * sparc-linux-tdep.c: Fix indentation.
385 * sparc-nbsd-tdep.c: Fix indentation.
386 * sparc-obsd-tdep.c: Fix indentation.
387 * sparc-ravenscar-thread.c: Fix indentation.
388 * sparc-tdep.c: Fix indentation.
389 * sparc64-linux-tdep.c: Fix indentation.
390 * sparc64-nbsd-tdep.c: Fix indentation.
391 * sparc64-obsd-tdep.c: Fix indentation.
392 * sparc64-tdep.c: Fix indentation.
393 * stabsread.c: Fix indentation.
394 * stack.c: Fix indentation.
395 * stap-probe.c: Fix indentation.
396 * stubs/ia64vms-stub.c: Fix indentation.
397 * stubs/m32r-stub.c: Fix indentation.
398 * stubs/m68k-stub.c: Fix indentation.
399 * stubs/sh-stub.c: Fix indentation.
400 * stubs/sparc-stub.c: Fix indentation.
401 * symfile-mem.c: Fix indentation.
402 * symfile.c: Fix indentation.
403 * symfile.h: Fix indentation.
404 * symmisc.c: Fix indentation.
405 * symtab.c: Fix indentation.
406 * symtab.h: Fix indentation.
407 * target-float.c: Fix indentation.
408 * target.c: Fix indentation.
409 * target.h: Fix indentation.
410 * tic6x-tdep.c: Fix indentation.
411 * tilegx-linux-tdep.c: Fix indentation.
412 * tilegx-tdep.c: Fix indentation.
413 * top.c: Fix indentation.
414 * tracefile-tfile.c: Fix indentation.
415 * tracepoint.c: Fix indentation.
416 * tui/tui-disasm.c: Fix indentation.
417 * tui/tui-io.c: Fix indentation.
418 * tui/tui-regs.c: Fix indentation.
419 * tui/tui-stack.c: Fix indentation.
420 * tui/tui-win.c: Fix indentation.
421 * tui/tui-winsource.c: Fix indentation.
422 * tui/tui.c: Fix indentation.
423 * typeprint.c: Fix indentation.
424 * ui-out.h: Fix indentation.
425 * unittests/copy_bitwise-selftests.c: Fix indentation.
426 * unittests/memory-map-selftests.c: Fix indentation.
427 * utils.c: Fix indentation.
428 * v850-tdep.c: Fix indentation.
429 * valarith.c: Fix indentation.
430 * valops.c: Fix indentation.
431 * valprint.c: Fix indentation.
432 * valprint.h: Fix indentation.
433 * value.c: Fix indentation.
434 * value.h: Fix indentation.
435 * varobj.c: Fix indentation.
436 * vax-tdep.c: Fix indentation.
437 * windows-nat.c: Fix indentation.
438 * windows-tdep.c: Fix indentation.
439 * xcoffread.c: Fix indentation.
440 * xml-syscall.c: Fix indentation.
441 * xml-tdesc.c: Fix indentation.
442 * xstormy16-tdep.c: Fix indentation.
443 * xtensa-config.c: Fix indentation.
444 * xtensa-linux-nat.c: Fix indentation.
445 * xtensa-linux-tdep.c: Fix indentation.
446 * xtensa-tdep.c: Fix indentation.
447
e1f57067
AB
4482020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
449 Craig Blackmore <craig.blackmore@embecosm.com>
450
451 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
452 as an unsigned value.
453
ae7754b2
TT
4542020-11-01 Tom Tromey <tom@tromey.com>
455
456 * dbxread.c (dbx_end_psymtab): Update.
457 * dwarf2/read.c (process_psymtab_comp_unit_reader)
458 (build_type_psymtabs_reader): Update.
459 * xcoffread.c (xcoff_end_psymtab): Update.
460 * ctfread.c (scan_partial_symbols): Update.
461 * psymtab.c (sort_pst_symbols): Remove.
462 (partial_symtab::end): Rename from end_psymtab_common. Inline
463 sort_pst_symbols.
464 * psympriv.h (struct partial_symtab) <end>: New method.
465 (end_psymtab_common): Don't declare.
466
0684bb51
TT
4672020-11-01 Tom Tromey <tom@tromey.com>
468
469 * symmisc.c (count_psyms): New function.
470 (print_objfile_statistics): Use it.
471 * psymtab.c (append_psymbol_to_list): Remove.
472 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
473 * objfiles.h (struct objstats) <n_psyms>: Remove.
474
089002bb
TT
4752020-11-01 Tom Tromey <tom@tromey.com>
476
477 * dbxread.c (dbx_end_psymtab): Update.
478 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
479 (build_type_psymtabs_reader): Update.
480 * xcoffread.c (xcoff_end_psymtab): Update.
481 * ctfread.c (scan_partial_symbols): Update.
482 * psympriv.h (end_psymtab_common): Update.
483 * psymtab.c (end_psymtab_common): Remove objfile parameter.
484 (sort_pst_symbols): Likewise.
485
525454d6
TT
4862020-11-01 Tom Tromey <tom@tromey.com>
487
488 * dbxread.c (dbx_symfile_read): Update.
489 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
490 * xcoffread.c (xcoff_initial_scan): Update.
491 * psympriv.h (init_psymbol_list): Don't declare.
492 * psymtab.c (init_psymbol_list): Remove.
493
60bd1d53
JB
4942020-11-01 Joel Brobecker <brobecker@adacore.com>
495
496 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
497 gnat_encoded_fixed_type_info. Update all callers.
498
db99d0d0
JB
4992020-11-01 Joel Brobecker <brobecker@adacore.com>
500
501 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
502 line too long.
503
75f24e86
JB
5042020-11-01 Joel Brobecker <brobecker@adacore.com>
505
506 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
507 cast_from_fixed. Update all callers.
508 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
509 Update all callers.
510 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
511 Update all callers.
512 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
513 ada_scaling_factor.
514 * ada-typeprint.c: Replace call to ada_scaling_factor by call
515 to print_gnat_encoded_fixed_point_type.
516 * ada-valprint.c: Likewise.
517
4f0469cd
AB
5182020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
519
520 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
521 (debug_prefixed_printf): Add check of debug_displaced flag.
522 * linux-nat.c (linux_nat_debug_printf): Add check of
523 debug_linux_nat flag.
524
17417fb0
SM
5252020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
526
527 * infrun.c (infrun_debug_printf_1): Remove.
528 (displaced_debug_printf_1): Remove.
529 (stop_all_threads): Use debug_prefixed_printf.
530 * infrun.h (infrun_debug_printf_1): Remove.
531 (infrun_debug_printf): Use debug_prefixed_printf.
532 (displaced_debug_printf_1): Remove.
533 (displaced_debug_printf): Use debug_prefixed_printf.
534 * linux-nat.c (linux_nat_debug_printf_1): Remove.
535 (linux_nat_debug_printf): Use debug_prefixed_printf.
536
ad6dba1c
SM
5372020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
538
539 * configure: Re-generate.
540 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
541 AC_LANG_PROGRAM.
542
b6fb30ed
SM
5432020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
544
545 * configure: Re-generate.
546
5164c117
SM
5472020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
548
549 * configure: Re-generate.
550
864ca435
SM
5512020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
552
553 * configure: Re-generate.
554
b9442ec1
SM
5552020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
556
557 * configure: Re-generate.
558
294f2697
SM
5592020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
560
561 * acinclude.m4: Modernize.
562 * configure: Re-generate.
563
5593a99a
SM
5642020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
565
566 * configure.ac: Modernize.
567 * configure: Re-generate.
568
e41fda1d
SM
5692020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
570
571 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
572 * configure: Re-generate.
573 * configure.ac: Remove AM_PROG_CC_STDC.
574
91e1a0ed
SM
5752020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
576
577 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
578 AC_CANONICAL_SYSTEM.
579 * configure: Re-generate.
580
136821d9
SM
5812020-10-30 Simon Marchi <simon.marchi@efficios.com>
582
583 * infrun.h (displaced_debug_printf): New macro. Replace
584 displaced debug prints throughout to use it.
585 (displaced_debug_printf_1): New declaration.
586 (displaced_step_dump_bytes): Return string, remove ui_file
587 parameter, update all callers.
588 * infrun.c (displaced_debug_printf_1): New function.
589 (displaced_step_dump_bytes): Return string, remove ui_file
590 parameter
591
aa2045e7
SM
5922020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
593
594 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
595
b1ec2735
TT
5962020-10-30 Tom Tromey <tromey@adacore.com>
597
598 * Makefile.in (stamp-init): Depend on config.status.
599
b78b3a29
TBA
6002020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
601
602 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
603
d70bdd3c
PA
6042020-10-30 Pedro Alves <pedro@palves.net>
605
606 * thread.c (lookup_selected_frame): Move ...
607 * frame.c (lookup_selected_frame): ... here.
608
79952e69
PA
6092020-10-30 Pedro Alves <pedro@palves.net>
610
611 * blockframe.c (block_innermost_frame): Use get_selected_frame.
612 * frame.c
613 (scoped_restore_selected_frame::scoped_restore_selected_frame):
614 Use save_selected_frame. Save language as well.
615 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
616 Use restore_selected_frame, and restore language as well.
617 (selected_frame_id, selected_frame_level): New.
618 (selected_frame): Update comments.
619 (save_selected_frame, restore_selected_frame): New.
620 (get_selected_frame): Use lookup_selected_frame.
621 (get_selected_frame_if_set): Delete.
622 (select_frame): Record selected_frame_level and selected_frame_id.
623 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
624 fields.
625 (get_selected_frame): Make 'message' parameter optional.
626 (get_selected_frame_if_set): Delete declaration.
627 (select_frame): Update comments.
628 (save_selected_frame, restore_selected_frame)
629 (lookup_selected_frame): Declare.
630 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
631 * infrun.c (struct infcall_control_state) <selected_frame_level>:
632 New field.
633 (save_infcall_control_state): Use save_selected_frame.
634 (restore_selected_frame): Delete.
635 (restore_infcall_control_state): Use restore_selected_frame.
636 * stack.c (select_frame_command_core, frame_command_core): Use
637 get_selected_frame.
638 * thread.c (restore_selected_frame): Rename to ...
639 (lookup_selected_frame): ... this and make extern. Select the
640 current frame if the frame level is -1.
641 (scoped_restore_current_thread::restore): Also restore the
642 language.
643 (scoped_restore_current_thread::~scoped_restore_current_thread):
644 Don't try/catch.
645 (scoped_restore_current_thread::scoped_restore_current_thread):
646 Save the language as well. Use save_selected_frame.
647
58103c33
SM
6482020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
649
650 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
651 documentation.
652 * gdbarch.h: Re-generate.
653
40a53766
SM
6542020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
655
656 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
657 parameter.
658 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
659 Likewise.
660 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
661 Likewise.
662 * arch-utils.c (default_displaced_step_hw_singlestep):
663 Likewise.
664 * arch-utils.h (default_displaced_step_hw_singlestep):
665 Likewise.
666 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
667 Likewise.
668 * s390-tdep.c (s390_displaced_step_hw_singlestep):
669 Likewise.
670 * gdbarch.c: Re-generate.
671 * gdbarch.h: Re-generate.
672 * infrun.c (resume_1): Adjust.
673
8407f91b
TT
6742020-10-29 Tom Tromey <tom@tromey.com>
675
676 * progspace.c (program_space::~program_space): Don't call
677 exec_close.
678
5008b3b2
TT
6792020-10-29 Tom Tromey <tom@tromey.com>
680
681 * exec.c (exec_target::close): Don't change current program
682 space.
683
d9eebde0
TT
6842020-10-29 Tom Tromey <tom@tromey.com>
685
686 * symfile.c (add_symbol_file_command): Update.
687 * exec.c (program_space::add_target_sections): Rename.
688 * symfile-mem.c (symbol_file_add_from_memory): Update.
689 * progspace.h (struct program_space) <add_target_sections>:
690 Declare new overload.
691 * exec.h (add_target_sections_of_objfile): Don't declare.
692
3769e227
TT
6932020-10-29 Tom Tromey <tom@tromey.com>
694
695 * solib.c (solib_map_sections): Update.
696 * exec.c (program_space::add_target_sections): Now a method.
697 (exec_file_attach): Update.
698 * exec.h (add_target_sections): Don't declare.
699 * progspace.h (struct program_space) <add_target_sections>:
700 Declare.
701
2a3f84af
TT
7022020-10-29 Tom Tromey <tom@tromey.com>
703
704 * progspace.h (struct program_space) <remove_target_sections>:
705 Declare.
706 * exec.c (program_space::remove_target_sections): Now a method.
707 * exec.h (remove_target_sections): Don't declare.
708
004eecfd
TT
7092020-10-29 Tom Tromey <tom@tromey.com>
710
711 * inferior.c (delete_inferior): Update.
712 * progspace.c (program_space::empty): Rename from
713 program_space_empty_p. Return bool.
714 * progspace.h (struct program_space) <empty>: New method.
715 (program_space_empty_p): Don't declare.
716
e39fb971
TT
7172020-10-29 Tom Tromey <tom@tromey.com>
718
719 * progspace.c (program_space::~program_space): Don't call
720 clear_program_space_solib_cache.
721 (program_space::clear_solib_cache): Rename from
722 clear_solib_cache.
723 * solib.c (handle_solib_event): Update.
724 * progspace.h (struct program_space) <clear_solib_cache>: New
725 method.
726 (clear_program_space_solib_cache): Don't declare.
727
a42d7dd8
TT
7282020-10-29 Tom Tromey <tom@tromey.com>
729
730 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
731 * target.c (info_target_command): Update.
732 * symfile.c (syms_from_objfile_1, finish_new_objfile)
733 (symbol_file_clear, reread_symbols): Update.
734 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
735 * stabsread.c (scan_file_globals): Update.
736 * solib.c (update_solib_list): Update.
737 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
738 (svr4_fetch_objfile_link_map, enable_break)
739 (svr4_relocate_main_executable)
740 (svr4_iterate_over_objfiles_in_search_order): Update.
741 * solib-frv.c (lm_base, enable_break)
742 (frv_relocate_main_executable): Update.
743 (main_got, frv_fdpic_find_canonical_descriptor): Update.
744 (frv_fetch_objfile_link_map): Update.
745 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
746 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
747 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
748 * remote.c (remote_target::get_offsets): Update.
749 (remote_target::start_remote)
750 (extended_remote_target::post_attach): Update.
751 * objfiles.c (entry_point_address_query): Update.
752 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
753 * minsyms.c (get_symbol_leading_char): Update.
754 * frame.c (inside_main_func): Update.
755 * progspace.h (symfile_objfile): Remove macro.
756
19f6550e
TT
7572020-10-29 Tom Tromey <tom@tromey.com>
758
759 * exec.c (exec_file_attach): Update.
760 * progspace.c (program_space::exec_close): Update.
761 * progspace.h (struct program_space) <ebfd>: Now a
762 gdb_bfd_ref_ptr.
763 <set_exec_bfd>: Change argument type.
764 <exec_bfd>: Update.
765
7e10abd1
TT
7662020-10-29 Tom Tromey <tom@tromey.com>
767
768 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
769 * symfile.c (reread_symbols): Update.
770 * symfile-mem.c (add_symbol_file_from_memory_command)
771 (add_vsyscall_page): Update.
772 * source-cache.c (source_cache::get_plain_source_lines): Update.
773 * solib-svr4.c (find_program_interpreter, elf_locate_base)
774 (svr4_current_sos_direct, svr4_exec_displacement)
775 (svr4_relocate_main_executable): Update.
776 (svr4_iterate_over_objfiles_in_search_order): Update.
777 * solib-frv.c (enable_break2, enable_break): Update.
778 * solib-dsbt.c (lm_base, enable_break): Update.
779 * solib-darwin.c (find_program_interpreter)
780 (darwin_solib_create_inferior_hook): Update.
781 * sol-thread.c (rw_common, ps_pdmodel): Update.
782 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
783 * remote.c (compare_sections_command)
784 (remote_target::trace_set_readonly_regions): Update.
785 * remote-sim.c (get_sim_inferior_data)
786 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
787 (gdbsim_target_open, gdbsim_target::files_info): Update.
788 * exec.h (exec_bfd): Remove macro.
789 * progspace.c (initialize_progspace): Update.
790 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
791 Update.
792 * nto-procfs.c (nto_procfs_target::post_attach)
793 (nto_procfs_target::create_inferior): Update.
794 * maint.c (maintenance_info_sections): Update.
795 * linux-thread-db.c (thread_db_target::get_thread_local_address):
796 Update.
797 * infcmd.c (post_create_inferior): Update.
798 * gcore.c (default_gcore_arch, default_gcore_target): Update.
799 (objfile_find_memory_regions): Update.
800 * exec.c (validate_exec_file, exec_file_attach)
801 (exec_read_partial_read_only, print_section_info): Update.
802 * corelow.c (core_target_open): Update.
803 * corefile.c (reopen_exec_file, validate_files): Update.
804 * arm-tdep.c (gdb_print_insn_arm): Update.
805 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
806 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
807 methods.
808
b55221ab
TT
8092020-10-29 Tom Tromey <tom@tromey.com>
810
811 * progspace.h (current_target_sections): Remove macro.
812 * solib-svr4.c (scan_dyntag): Update.
813 * solib-dsbt.c (scan_dyntag): Update.
814 * exec.c (exec_target::close): Update.
815 (add_target_sections, add_target_sections_of_objfile)
816 (remove_target_sections, exec_target::get_section_table)
817 (exec_target::files_info, set_section_command)
818 (exec_set_section_address, exec_target::has_memory)
819 (exec_target::has_memory): Update.
820
5a36e715
TT
8212020-10-29 Tom Tromey <tom@tromey.com>
822
823 * source-cache.c (source_cache::get_plain_source_lines): Use
824 current_program_space.
825 * corefile.c (reopen_exec_file): Use current_program_space.
826 * exec.c (exec_file_attach): Use current_program_space.
827 * exec.h (exec_bfd_mtime): Remove.
828
784c8592
TT
8292020-10-29 Tom Tromey <tom@tromey.com>
830
831 * gcore.c (default_gcore_mach): Remove.
832 (create_gcore_bfd): Update.
833
8a4f1402
TT
8342020-10-29 Tom Tromey <tom@tromey.com>
835
836 * progspace.c (program_space::exec_close): New method, from
837 exec_close in exec.c.
838 * exec.c (exec_close): Move to progspace.c.
839 (exec_target::close, exec_file_attach): Update.
840 * progspace.h (struct program_space) <exec_close>: Declare
841 method.
842
c20cb686
TT
8432020-10-29 Tom Tromey <tom@tromey.com>
844
845 * progspace.h (struct program_space) <exec_filename>: Rename from
846 pspace_exec_filename. Now a unique_xmalloc_ptr.
847 * inferior.c (print_selected_inferior): Update.
848 (print_inferior): Update.
849 * mi/mi-main.c (print_one_inferior): Update.
850 * exec.h (exec_filename): Remove macro.
851 * corefile.c (get_exec_file): Update.
852 * exec.c (exec_close): Update.
853 (exec_file_attach): Update.
854 * progspace.c (clone_program_space): Update.
855 (print_program_space): Update.
856
6be2a9ab
TT
8572020-10-29 Tom Tromey <tom@tromey.com>
858
859 * target-section.h (struct target_section): Add constructor.
860 * exec.c (build_section_table, add_target_sections_of_objfile):
861 Update.
862 * corelow.c (core_target::build_file_mappings): Update.
863
cfaa8f76
TBA
8642020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
865
866 PR gdb/19318
867 * inferior.c (detach_inferior_command): Restore the current thread.
868 (kill_inferior_command): Ditto.
869
1b00ef06
TV
8702020-10-28 Tom de Vries <tdevries@suse.de>
871
872 PR symtab/26772
873 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
874 map, check it in the "best match" loop.
875
7f40ce1a
SM
8762020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
877
878 * m32c-tdep.c: Remove unused includes.
879
5eb9e3f5
SM
8802020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
881
882 * xtensa-tdep.c: Remove includes.
883
b1d4d8d1
TBA
8842020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
885
886 * breakpoint.c (struct condition_command_opts): New struct.
887 (condition_command_option_defs): New static global.
888 (make_condition_command_options_def_group): New function.
889 (condition_completer): Update to consider the '-force' flag.
890 (condition_command): Use gdb::option for the '-force' flag.
891
bd24c5d6
TV
8922020-10-27 Tom de Vries <tdevries@suse.de>
893
894 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
895 symbols in section check.
896
61eb46a4
TV
8972020-10-27 Tom de Vries <tdevries@suse.de>
898
899 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
900
733d554a
TBA
9012020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
902
903 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
904 * breakpoint.c: Update the help text of the 'condition' and 'break'
905 commands.
906 (set_breakpoint_condition): Take a new bool parameter
907 to control whether condition definition should be forced even when
908 the condition expression is invalid in all of the current locations.
909 (condition_command): Update the call to 'set_breakpoint_condition'.
910 (find_condition_and_thread): Take the "-force-condition" flag into
911 account.
912 * linespec.c (linespec_keywords): Add "-force-condition" as an
913 element.
914 (FORCE_KEYWORD_INDEX): New #define.
915 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
916 as a keyword.
917 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
918 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
919 * python/py-breakpoint.c (bppy_set_condition): Ditto.
920 * NEWS: Mention the changes to the 'break' and 'condition' commands.
921
b5fa468f
TBA
9222020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
923
924 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
925 * breakpoint.c (set_breakpoint_location_condition): New function.
926 (set_breakpoint_condition): Disable a breakpoint location if parsing
927 the condition string gives an error.
928 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
929 (build_target_condition_list): Ditto.
930 (build_target_command_list): Ditto.
931 (build_bpstat_chain): Ditto.
932 (print_one_breakpoint_location): Ditto.
933 (print_one_breakpoint): Ditto.
934 (breakpoint_1): Ditto.
935 (bp_location::bp_location): Ditto.
936 (locations_are_equal): Ditto.
937 (update_breakpoint_locations): Ditto.
938 (enable_disable_bp_num_loc): Ditto.
939 (init_breakpoint_sal): Use set_breakpoint_location_condition.
940 (find_condition_and_thread_for_sals): New static function.
941 (create_breakpoint): Call find_condition_and_thread_for_sals.
942 (location_to_sals): Call find_condition_and_thread_for_sals instead
943 of find_condition_and_thread.
944
1c47ec3e
TV
9452020-10-26 Tom de Vries <tdevries@suse.de>
946
947 * dwarf2/read.c (process_full_comp_unit): Call
948 dwarf2_find_base_address.
949
6390859c
TT
9502020-10-26 Tom Tromey <tromey@adacore.com>
951
952 * gdbtypes.c (create_range_type): Revert previous patch. Add
953 comment.
954
d744f0f9
PA
9552020-10-26 Pedro Alves <pedro@palves.net>
956
957 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
958 (my_waitpid): Use gdb::handle_eintr.
959
006811bc
SM
9602020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
961
962 * acinclude.m4: Update ptrace.m4 path.
963 * ptrace.m4: Moved to gdbsupport.
964
c75e31a1
SM
9652020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
966
967 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
968 instead of target_gdbarch.
969
32495661
SM
9702020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
971
972 * jit.c (jit_reader_load_command): Pass current inferior.
973 (jit_inferior_init): Change parameter type to inferior, use it.
974 (jit_inferior_created): Remove.
975 (jit_inferior_created_hook): Pass inferior parameter down.
976 (_initialize_jit): Use jit_inferior_created_hook instead of
977 jit_inferior_created.
978 * jit.h (jit_inferior_created_hook): Add inferior parameter.
979 * infrun.c (follow_exec): Pass inferior to
980 jit_inferior_created_hook.
981
3f66685e
SM
9822020-10-24 Simon Marchi <simon.marchi@efficios.com>
983
984 * linux-thread-db.c (check_pid_namespace_match): Add inferior
985 parameter and use it.
986 (thread_db_inferior_created): Pass inferior argument.
987
a0ff652f
SM
9882020-10-24 Simon Marchi <simon.marchi@efficios.com>
989
990 * aix-thread.c (aix_thread_inferior_created): Add inferior
991 parameter.
992 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
993 * dummy-frame.c (cleanup_dummy_frames): Likewise.
994 * jit.c (jit_inferior_created): Likewise.
995 * linux-thread-db.c (thread_db_inferior_created): Likewise.
996 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
997 * observable.h (inferior_created): Likewise.
998 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
999 * symfile-mem.c (add_vsyscall_page): Likewise.
1000 * infcmd.c (post_create_inferior): Pass inferior argument.
1001
3c67532c
JB
10022020-10-24 Joel Brobecker <brobecker@adacore.com>
1003
1004 GDB 10.1 released.
1005
8747316e
JB
10062020-10-23 Joel Brobecker <brobecker@adacore.com>
1007
1008 * ada-typeprint.c (ada_print_type): Remove superfluous second call
1009 to ada_check_typedef.
1010
1a0ea399
AB
10112020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1012
1013 * f-exp.y (f_parse): Rename to...
1014 (f_language::parser): ...this.
1015 * f-lang.c (f_get_encoding): Rename to...
1016 (f_language::get_encoding): ...this.
1017 (f_op_print_tab): Rename to...
1018 (f_language::op_print_tab): ...this.
1019 (exp_descriptor_f): Rename to...
1020 (f_language::exp_descriptor_tab): ...this.
1021 (class f_language): Moved to f-lang.h.
1022 (f_language::language_arch_info): New function, moved out of class
1023 declaration.
1024 (f_language::search_name_hash): Likewise.
1025 (f_language::lookup_symbol_nonlocal): Likewise.
1026 (f_language::get_symbol_name_matcher_inner): Likewise.
1027 * f-lang.h: Add 'valprint.h' include.
1028 (class f_language): Moved here from f-lang.c.
1029 * f-typeprint.c (f_type_print_args): Delete commented out
1030 declaration.
1031 (f_print_typedef): Rename to...
1032 (f_language::print_typedef): ...this.
1033 (f_print_type): Rename to...
1034 (f_language::print_type): ...this.
1035 (f_type_print_varspec_prefix): Delete declaration and rename to...
1036 (f_language::f_type_print_varspec_prefix): ...this.
1037 (f_type_print_varspec_suffix): Delete declaration and rename to...
1038 (f_language::f_type_print_varspec_suffix): ...this.
1039 (f_type_print_base): Delete declaration and rename to...
1040 (f_language::f_type_print_base): ...this.
1041 * f-valprint.c (f_value_print_inner): Rename to...
1042 (f_language::value_print_inner): ...this.
1043 * parse.c: Delete 'f-lang.h' include.
1044
88cefd9b
AB
10452020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1046
1047 * language.h (language_defn::print_type): Add variable names in
1048 declaration, and update header comment.
1049
5399db93
AB
10502020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1051
1052 * ada-lang.c (ada_language::demangle): Rename to...
1053 (ada_language::demangle_symbol): ...this.
1054 * c-lang.c (cplus_language::demangle): Rename to...
1055 (cplus_language::demangle_symbol): ...this.
1056 * d-lang.c (d_language::demangle): Rename to...
1057 (d_language::demangle_symbol): ...this.
1058 * f-lang.c (f_language::demangle): Rename to...
1059 (f_language::demangle_symbol): ...this.
1060 * go-lang.c (go_language::demangle): Rename to...
1061 (go_language::demangle_symbol): ...this.
1062 * language.c (language_demangle): Update call to demangle_symbol.
1063 (auto_or_unknown_language::demangle): Rename to...
1064 (auto_or_unknown_language::demangle_symbol): ...this.
1065 * language.h (language_defn::demangle): Rename to...
1066 (language_defn::demangle_symbol): ...this.
1067 * objc-lang.c (objc_language::demangle): Rename to...
1068 (objc_language::demangle_symbol): ...this.
1069 * rust-lang.c (rust_language::demangle): Rename to...
1070 (rust_language::demangle_symbol): ...this.
1071
4b2f86ef
AB
10722020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1073
1074 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
1075 (iterate_over_file_blocks): Replace use of macro with the macros
1076 definition.
1077
e74b39de
AB
10782020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1079
1080 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
1081 * valprint.c (maybe_print_array_index): Replace use of macro with
1082 the macros definition.
1083
00c696a6
AB
10842020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1085
1086 * ada-lang.c (ada_language::print_array_index): Call value_print
1087 directly.
1088 * language.c (language_defn::print_array_index): Likewise.
1089 * language.h (LA_VALUE_PRINT): Delete.
1090 * valprint.c (value_print): Call value_print on the
1091 current_language directly.
1092
d3b67c56
AB
10932020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1094
1095 * language.h (LA_PRINT_TYPEDEF): Delete.
1096 * typeprint.c (typedef_print): Call print_typedef directly on the
1097 current_language object.
1098
790e2a12
AB
10992020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1100
1101 * m2-exp.y (m2_parse): Rename to...
1102 (m2_language::parser): ...this. Update function signature.
1103 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
1104 (m2_op_print): Rename to...
1105 (m2_language::op_print_tab): ...this, and make const.
1106 (exp_descriptor_modula2): Rename to...
1107 (m2_language::exp_descriptor_modula2): ...this.
1108 (class m2_language): Move to m2-lang.h.
1109 (m2_language::language_arch_info): New function, moved out of
1110 class declaration.
1111 (m2_language::printchar): New function, body from m2_printchar.
1112 (m2_language::printstr): New function, moved out of class
1113 declaration.
1114 (m2_language::emitchar): Likewise.
1115 * m2-lang.h (m2_parse): Delete declaration.
1116 (m2_print_typedef): Delete declaration.
1117 (m2_value_print_inner): Delete declaration.
1118 (class m2_language): Class declaration moved from m2-lang.c,
1119 larger functions are left in m2-lang.c.
1120 * m2-typeprint.c (m2_print_typedef): Rename to...
1121 (m2_language::print_typedef): ...this, and update function
1122 signature.
1123 * m2-valprint.c (m2_value_print_inner): Rename to...
1124 (m2_language::value_print_inner): ...this, replace use of
1125 LA_PRINT_STRING with a direct call to printstr member function,
1126 and update recursive call.
1127
b01175fc
AB
11282020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1129
1130 * language.c (default_is_string_type_p): Delete, implementation
1131 moved into auto_or_unknown_language::is_string_type_p.
1132 (unk_op_print_tab): Moved into
1133 auto_or_unknown_language::opcode_print_table.
1134 (unknown_language_arch_info): Delete, implementation moved into
1135 auto_or_unknown_language::language_arch_info.
1136 (class auto_or_unknown_language): New class, member functions
1137 copied from unknown_language class, with some updates.
1138 (class unknown_language): Most member functions moved into
1139 auto_or_unknown_language class. Inherit from
1140 auto_or_unknown_language class.
1141 (class auto_language): Inherit from auto_or_unknown_language.
1142 Delete most member functions.
1143
1a97fe8c
HD
11442020-10-22 Hannes Domani <ssbssa@yahoo.de>
1145
1146 * stabsread.c (read_member_functions): Remove gdb_assert.
1147
6b9d0dfd
HD
11482020-10-22 Hannes Domani <ssbssa@yahoo.de>
1149
1150 * gdbtypes.c (init_complex_type): Check target type name.
1151
4b4bb603
SM
11522020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1153
1154 * target-debug.h (target_debug_print_struct_target_ops_p):
1155 Remove.
1156 (target_debug_print_async_callback_ftype_p): Remove.
1157 (target_debug_print_struct_trace_state_variable_p): Remove.
1158 (target_debug_print_struct_traceframe_info_p): Remove.
1159 (target_debug_print_VEC__btrace_block_s__pp): Remove.
1160 (target_debug_print_enum_btrace_format): Remove.
1161 (target_debug_print_enum_info_proc_what): Remove.
1162 (target_debug_print_thread_info_pp): Remove.
1163
24f5300a
SM
11642020-10-22 Simon Marchi <simon.marchi@efficios.com>
1165
1166 * target.h (struct target_ops) <make_corefile_notes>:
1167 Change return type to unique pointer.
1168 * target.c (dummy_make_corefile_notes): Likewise.
1169 * exec.c (struct exec_target) <make_corefile_notes>:
1170 Likewise.
1171 (exec_target::make_corefile_notes): Likewise.
1172 * procfs.c (class procfs_target) <make_corefile_notes>:
1173 Likewise.
1174 (procfs_do_thread_registers): Adjust to unique pointer.
1175 (struct procfs_corefile_thread_data): Add constructor.
1176 <note_data>: Change type to unique pointer.
1177 (procfs_corefile_thread_callback): Adjust to unique pointer.
1178 (procfs_target::make_corefile_notes): Change return type to
1179 unique pointer.
1180 * target-delegates.c: Re-generate.
1181 * gcore.c (write_gcore_file_1): Adjust.
1182 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
1183 New.
1184
5fb4027f
TV
11852020-10-22 Tom de Vries <tdevries@suse.de>
1186
1187 * block.c (find_block_in_blockvector): Make sure the returned block
1188 contains pc.
1189
4a636814
SM
11902020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1191
1192 PR gdb/26693
1193 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
1194 parameter.
1195 (load_cu): Pass existing CU.
1196 (process_imported_unit_die): Likewise.
1197 (follow_die_offset): Likewise.
1198
1bd57575
LM
11992020-10-22 Luis Machado <luis.machado@linaro.org>
1200
1201 * corelow.c (core_target::xfer_partial): Also check for an empty
1202 m_core_unavailable_mappings vector.
1203
6b4c676c
AB
12042020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1205
1206 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
1207 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
1208 * f-exp.y (arglist): Allow for a series of subranges.
1209 (subrange): Add cases for subranges with strides.
1210 * f-lang.c (value_f90_subarray): Catch use of array strides and
1211 throw an error.
1212 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
1213
f2d8e4c5
AB
12142020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1215
1216 * expprint.c (print_subexp_standard): Change enum range_type to
1217 range_flag and rename variables to match.
1218 (dump_subexp_body_standard): Likewise.
1219 * expression.h (enum range_type): Rename to...
1220 (enum range_flag): ...this.
1221 (range_types): Rename to...
1222 (range_flags): ...this.
1223 * f-lang.c (value_f90_subarray): Change enum range_type to
1224 range_flag and rename variables to match.
1225 * parse.c (operator_length_standard): Likewise.
1226 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
1227 range_type to range_flag.
1228 * rust-lang.c (rust_evaluate_funcall): Likewise.
1229 (rust_range): Likewise.
1230 (rust_compute_range): Likewise.
1231 (rust_subscript): Likewise.
1232
2f1b18db
AB
12332020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1234
1235 * expprint.c (print_subexp_standard): Update to reflect changes to
1236 enum range_type.
1237 (dump_subexp_body_standard): Likewise.
1238 * expression.h (enum range_type): Convert to a bit field enum, and
1239 make the enum unsigned.
1240 * f-exp.y (subrange): Update to reflect changes to enum
1241 range_type.
1242 * f-lang.c (value_f90_subarray): Likewise.
1243 * parse.c (operator_length_standard): Likewise.
1244 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
1245 * rust-lang.c (rust_range): Likewise.
1246 (rust_compute_range): Likewise.
1247 (rust_subscript): Likewise.
1248
a46d1843
SM
12492020-10-21 Simon Marchi <simon.marchi@efficios.com>
1250
1251 * infrun.c (displaced_step_in_progress_thread): Fix comment.
1252 (displaced_step_in_progress): Fix comment.
1253
c21f37a8
SM
12542020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
1255
1256 * gdbarch.sh (make_corefile_notes): Return unique pointer.
1257 * gdbarch.c: Re-generate.
1258 * gdbarch.h: Re-generate.
1259 * gcore.c (write_gcore_file_1): Adjust.
1260 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
1261 constructor.
1262 <note_data>: Change type to unique pointer.
1263 <abort_iteration>: Change type to bool.
1264 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
1265 (fbsd_collect_thread_registers): Return void, adjust.
1266 (struct fbsd_corefile_thread_data): Add construtor.
1267 <note_data>: Change type to unique pointer.
1268 (fbsd_corefile_thread): Adjust.
1269 (fbsd_make_corefile_notes): Return unique pointer, adjust.
1270 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
1271 to unique pointer, adjust.
1272 (struct linux_collect_regset_section_cb_data): Add constructor.
1273 <note_data>: Change type to unique pointer.
1274 <abort_iteration>: Change type to bool.
1275 (linux_collect_thread_registers): Return void, adjust.
1276 (struct linux_corefile_thread_data): Add constructor.
1277 <note_data>: Change type to unique pointer.
1278 (linux_corefile_thread): Adjust.
1279 (linux_make_corefile_notes): Return unique pointer, adjust.
1280
07fbbd01
SM
12812020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1282
1283 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
1284 * gdbarch.c: Re-generate.
1285 * gdbarch.h: Re-generate.
1286 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
1287 bool.
1288 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1289 Likewise.
1290 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
1291 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
1292 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
1293 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
1294
39535193
SM
12952020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1296
1297 * gdbarch.sh: Make generated predicates return bool.
1298 * gdbarch.c: Re-generate.
1299 * gdbarch.h: Re-generate.
1300
ad523d01
TT
13012020-10-20 Tom Tromey <tom@tromey.com>
1302
1303 * varobj-iter.h (struct varobj_item): Remove typedef.
1304
c4464ade
SM
13052020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1306
1307 * infrun.c (currently_stepping): Change int to bool
1308 (maybe_software_singlestep): Likewise.
1309 (show_stop_on_solib_events): Likewise.
1310 (stepping_past_nonsteppable_watchpoint): Likewise.
1311 (displaced_step_in_progress_any_inferior): Likewise.
1312 (displaced_step_in_progress_thread): Likewise.
1313 (keep_going_stepped_thread): Likewise.
1314 (thread_still_needs_step_over): Likewise.
1315 (start_step_over): Likewise.
1316 (do_target_resume): Likewise.
1317 (resume_1): Likewise.
1318 (clear_proceed_status): Likewise.
1319 (thread_still_needs_step_over_bp): Likewise.
1320 (proceed): Likewise.
1321 (switch_back_to_stepped_thread): Likewise.
1322 (adjust_pc_after_break): Likewise.
1323 (stepped_in_from): Likewise.
1324 (handle_stop_requested): Likewise.
1325 (handle_syscall_event): Likewise.
1326 (handle_no_resumed): Likewise.
1327 (handle_inferior_event): Likewise.
1328 (finish_step_over): Likewise.
1329 (handle_signal_stop): Likewise.
1330 (process_event_stop_test): Likewise.
1331
2eb20436
SM
13322020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1333
1334 * infrun.c (get_displaced_stepping_state): Fix comment.
1335
e0c45ded
AS
13362020-10-20 Andreas Schwab <schwab@linux-m68k.org>
1337
1338 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
1339
22cc388e
TT
13402020-10-19 Tom Tromey <tromey@adacore.com>
1341
1342 PR tui/26719
1343 * tui/tui-winsource.h (struct tui_source_window_base)
1344 <refresh_window>: Rename from refresh_pad.
1345 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
1346 Rename from refresh_pad.
1347 (tui_source_window_base::show_source_content)
1348 (tui_source_window_base::do_scroll_horizontal): Update.
1349
3c6eb4d4
TBA
13502020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1351
1352 * thread.c (_initialize_thread): Fine-tune the help text of
1353 'info threads'.
1354
26703721
TBA
13552020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1356
1357 * frame.c: Remove the unused 'uinteger_option_def' type alias.
1358
61c26be8
MS
13592020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
1360
1361 * breakpoint.c (handle_jit_event): Add an argument, change how
1362 `jit_event_handler` is called.
1363
932539d7
TT
13642020-10-17 Tom Tromey <tom@tromey.com>
1365
1366 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
1367 (scan_xcoff_symtab): Update.
1368 * psymtab.h (class psymtab_storage) <global_psymbols,
1369 static_psymbols, current_global_psymbols,
1370 current_static_psymbols>: Remove.
1371 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
1372 (match_partial_symbol, lookup_partial_symbol): Update.
1373 (print_partial_symbols): Change parameters.
1374 (dump_psymtab, recursively_search_psymtabs)
1375 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
1376 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
1377 (concat): Remove.
1378 (end_psymtab_common): Simplify.
1379 (append_psymbol_to_list): Change parameters.
1380 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
1381 (init_psymbol_list): Simplify.
1382 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
1383 * psympriv.h (struct partial_symtab) <empty>: New method.
1384 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
1385 Remove.
1386 <global_psymbols, static_psymbols>: New members.
1387 <add_psymbol>: New methods.
1388 (add_psymbol_to_list): Don't declare.
1389 (psymbol_placement): Move earlier.
1390 * mdebugread.c (parse_partial_symbols): Update.
1391 (handle_psymbol_enumerators): Change parameters.
1392 (mdebug_expand_psymtab): Update.
1393 * dwarf2/read.c (process_psymtab_comp_unit_reader)
1394 (add_partial_symbol): Update.
1395 * dwarf2/index-write.c (write_psymbols): Change parameters.
1396 (write_one_signatured_type): Update.
1397 (recursively_count_psymbols): Update.
1398 (recursively_write_psymbols): Update.
1399 (class debug_names) <recursively_write_psymbols>: Update.
1400 <write_psymbols>: Change parameters.
1401 <write_one_signatured_type>: Update.
1402 * dbxread.c (read_dbx_symtab): Update.
1403 (dbx_end_psymtab): Use partial_symtab::empty.
1404 * ctfread.c (struct ctf_context) <pst>: New member.
1405 (create_partial_symtab): Set it.
1406 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
1407 (scan_partial_symbols): Use the psymtab's context. Update.
1408
cfabbd35
TT
14092020-10-17 Tom Tromey <tom@tromey.com>
1410
1411 * valprint.c (generic_value_print): Remove comment.
1412 * m2-valprint.c (m2_value_print_inner): Remove comment.
1413 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
1414 type.
1415
520596f2
TV
14162020-10-17 Tom de Vries <tdevries@suse.de>
1417
1418 PR symtab/26317
1419 * source.c (select_source_symtab): Handling sal.symtab == NULL for
1420 symbol main.
1421
76547ab3
TV
14222020-10-14 Tom de Vries <tdevries@suse.de>
1423
1424 PR gdb/26733
1425 * solib.c (solib_contains_address_p): Handle
1426 'solib->sections == nullptr'.
1427
d3a07122
SM
14282020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
1429
1430 PR gdb/26642
1431 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
1432 target can't do async.
1433 * target.c (target_wait): Assert that we don't pass
1434 TARGET_WNOHANG to a target that can't async.
1435
1b71cfcf
KR
14362020-10-13 Kamil Rytarowski <n54@gmx.com>
1437
1438 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
1439 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
1440 * alpha-bsd-nat.c: Adjust include.
1441 * alpha-bsd-tdep.h: Adjust comment.
1442 * alpha-nbsd-tdep.c: Rename to ...
1443 * alpha-netbsd-tdep.c: ... this, adjust include.
1444 * amd64-nbsd-nat.c: Rename to ...
1445 * amd64-netbsd-nat.c: ... this, adjust include.
1446 * amd64-nbsd-tdep.c: Rename to ...
1447 * amd64-netbsd-tdep.c: ... this, adjust include.
1448 * amd64-tdep.h: Adjust include.
1449 * arm-nbsd-nat.c: Rename to ...
1450 * arm-netbsd-nat.c: ... this, adjust include.
1451 * arm-nbsd-tdep.c: Rename to ...
1452 * arm-netbsd-tdep.c: ... this, adjust include.
1453 * arm-nbsd-tdep.h: Rename to ...
1454 * arm-netbsd-tdep.h: ... this, adjust include.
1455 * configure.nat: Adjust file lists.
1456 * configure.tgt: Likewise.
1457 * hppa-nbsd-nat.c: Rename to ...
1458 * hppa-netbsd-nat.c: ... this, adjust include.
1459 * hppa-nbsd-tdep.c: Rename to ...
1460 * hppa-netbsd-tdep.c: ... this, adjust include.
1461 * i386-nbsd-nat.c: Rename to ...
1462 * i386-netbsd-nat.c: ... this, adjust include.
1463 * i386-nbsd-tdep.c: Rename to ...
1464 * i386-netbsd-tdep.c: ... this, adjust include.
1465 * m68k-bsd-nat.c: Adjust include.
1466 * mips-nbsd-nat.c: Rename to ...
1467 * mips-netbsd-nat.c: ... this, adjust include.
1468 * mips-nbsd-tdep.c: Rename to ...
1469 * mips-netbsd-tdep.c: ... this, adjust include.
1470 * mips-nbsd-tdep.h: Rename to ...
1471 * mips-netbsd-tdep.h: ... this.
1472 * nbsd-nat.c: Rename to ...
1473 * netbsd-nat.c: ... this, adjust include.
1474 * nbsd-nat.h: Rename to ...
1475 * netbsd-nat.h: ... this, adjust include.
1476 * nbsd-tdep.c: Rename to ...
1477 * netbsd-tdep.c: ... this, adjust include.
1478 * nbsd-tdep.h: Rename to ...
1479 * netbsd-tdep.h: ... this.
1480 * ppc-nbsd-nat.c: Rename to ...
1481 * ppc-netbsd-nat.c: ... this, adjust include.
1482 * ppc-nbsd-tdep.c: Rename to ...
1483 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
1484 * ppc-nbsd-tdep.h: Rename to ...
1485 * ppc-netbsd-tdep.h: ... this.
1486 * sh-nbsd-nat.c: Rename to ...
1487 * sh-netbsd-nat.c: ... this, adjust include.
1488 * sh-nbsd-tdep.c: Rename to ...
1489 * sh-netbsd-tdep.c: ... this, adjust include.
1490 * sparc-nbsd-nat.c: Rename to ...
1491 * sparc-netbsd-nat.c: ... this.
1492 * sparc-nbsd-tdep.c: Rename to ...
1493 * sparc-netbsd-tdep.c: ... this, adjust include.
1494 * sparc64-nbsd-nat.c: Rename to ...
1495 * sparc64-netbsd-nat.c: ... this.
1496 * sparc64-nbsd-tdep.c: Rename to ...
1497 * sparc64-netbsd-tdep.c: ... this, adjust include.
1498 * sparc64-tdep.h: Adjust comment.
1499 * vax-bsd-nat.c: Adjust include.
1500 * vax-nbsd-tdep.c: Rename to ...
1501 * vax-netbsd-tdep.c: ... this, adjust include.
1502
d7a78e5c
TT
15032020-10-12 Tom Tromey <tom@tromey.com>
1504
1505 * target.h (struct target_ops) <get_section_table>: Update.
1506 (target_get_section_table): Update.
1507 * target.c (target_get_section_table, target_section_by_addr)
1508 (memory_xfer_partial_1): Update.
1509 * target-section.h (target_section_table): Now an alias.
1510 * target-delegates.c: Rebuild.
1511 * target-debug.h (target_debug_print_target_section_table_p):
1512 Rename from target_debug_print_struct_target_section_table_p.
1513 * symfile.c (build_section_addr_info_from_section_table): Update.
1514 * solib.c (solib_map_sections, solib_contains_address_p): Update.
1515 * solib-svr4.c (scan_dyntag): Update.
1516 * solib-dsbt.c (scan_dyntag): Update.
1517 * remote.c (remote_target::remote_xfer_live_readonly_partial):
1518 Update.
1519 * record-full.c (record_full_core_target::xfer_partial): Update.
1520 * progspace.h (struct program_space) <target_sections>: Update.
1521 * exec.h (print_section_info): Update.
1522 * exec.c (exec_target::close, build_section_table)
1523 (add_target_sections, add_target_sections_of_objfile)
1524 (remove_target_sections, exec_on_vfork)
1525 (section_table_available_memory)
1526 (section_table_xfer_memory_partial)
1527 (exec_target::get_section_table, exec_target::xfer_partial)
1528 (print_section_info, set_section_command)
1529 (exec_set_section_address, exec_target::has_memory): Update.
1530 * corelow.c (core_target::build_file_mappings)
1531 (core_target::xfer_partial, core_target::info_proc_mappings)
1532 (core_target::info_proc_mappings): Update.
1533 * bfd-target.c (class target_bfd): Update
1534
eda214ce
TT
15352020-10-12 Tom Tromey <tom@tromey.com>
1536
1537 * progspace.c (program_space::~program_space): Don't call
1538 clear_section_table.
1539 * exec.h (clear_section_table): Don't declare.
1540 * exec.c (exec_target::close): Update.
1541 (clear_section_table): Remove.
1542
91840ee3
TT
15432020-10-12 Tom Tromey <tom@tromey.com>
1544
1545 * exec.c (add_target_sections_of_objfile): Simplify.
1546
2d128614
TT
15472020-10-12 Tom Tromey <tom@tromey.com>
1548
1549 * solib.c (solib_map_sections): Update.
1550 * record-full.c (record_full_core_open_1): Update.
1551 * exec.h (build_section_table): Return a target_section_table.
1552 * exec.c (exec_file_attach): Update.
1553 (build_section_table): Return a target_section_table.
1554 * corelow.c (core_target::core_target): Update.
1555 * bfd-target.c (target_bfd::target_bfd): Update.
1556
bb2a6777
TT
15572020-10-12 Tom Tromey <tom@tromey.com>
1558
1559 * target.c (target_section_by_addr, memory_xfer_partial_1):
1560 Update.
1561 * target-section.h (struct target_section_table): Use
1562 std::vector.
1563 * symfile.h (build_section_addr_info_from_section_table): Take a
1564 target_section_table.
1565 * symfile.c (build_section_addr_info_from_section_table): Take a
1566 target_section_table.
1567 * solist.h (struct so_list) <sections>: Change type.
1568 <sections_end>: Remove.
1569 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
1570 (solib_contains_address_p): Update.
1571 * solib-svr4.c (scan_dyntag): Update.
1572 * solib-dsbt.c (scan_dyntag): Update.
1573 * remote.c (remote_target::remote_xfer_live_readonly_partial):
1574 Update.
1575 * record-full.c (record_full_core_start, record_full_core_end):
1576 Remove.
1577 (record_full_core_sections): New global.
1578 (record_full_core_open_1, record_full_core_target::xfer_partial):
1579 Update.
1580 * exec.h (build_section_table, section_table_xfer_memory_partial)
1581 (add_target_sections): Take a target_section_table.
1582 * exec.c (exec_file_attach, clear_section_table): Update.
1583 (resize_section_table): Remove.
1584 (build_section_table, add_target_sections): Take a
1585 target_section_table.
1586 (add_target_sections_of_objfile, remove_target_sections)
1587 (exec_on_vfork): Update.
1588 (section_table_available_memory): Take a target_section_table.
1589 (section_table_read_available_memory): Update.
1590 (section_table_xfer_memory_partial): Take a target_section_table.
1591 (print_section_info, set_section_command)
1592 (exec_set_section_address, exec_target::has_memory): Update.
1593 * corelow.c (class core_target) <m_core_section_table,
1594 m_core_file_mappings>: Remove braces.
1595 <~core_target>: Remove.
1596 (core_target::core_target): Update.
1597 (core_target::~core_target): Remove.
1598 (core_target::build_file_mappings)
1599 (core_target::xfer_memory_via_mappings)
1600 (core_target::xfer_partial, core_target::info_proc_mappings):
1601 Update.
1602 * bfd-target.c (target_bfd::xfer_partial): Update.
1603 (target_bfd::target_bfd): Update.
1604 (target_bfd::~target_bfd): Remove.
1605
7b466b10
TT
16062020-10-12 Tom Tromey <tom@tromey.com>
1607
1608 * target.h (struct target_section, struct target_section_table):
1609 Move to target-section.h.
1610 * target-section.h: New file.
1611
87a37e5e
PA
16122020-10-12 Pedro Alves <pedro@palves.net>
1613
1614 PR exp/26602
1615 * valops.c (struct struct_field_searcher): New.
1616 (update_search_result): Rename to ...
1617 (struct_field_searcher::update_result): ... this. Simplify
1618 prototype. Record all found fields.
1619 (do_search_struct_field): Rename to ...
1620 (struct_field_searcher::search): ... this. Simplify prototype.
1621 Maintain stack of visited baseclass path. Call update_result for
1622 fields too. Keep searching fields in baseclasses instead of
1623 stopping at the first found field.
1624 (search_struct_field): Use struct_field_searcher. When looking
1625 for fields, report ambiguous access attempts.
1626
9370fd51
AB
16272020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
1628
1629 * frame.c (inside_main_func): Check full symbols as well as
1630 minimal symbols.
1631
59c8a30b
JB
16322020-10-09 Joel Brobecker <brobecker@adacore.com>
1633
1634 * ada-lang.c (advance_wild_match): Rewrite the function's
1635 description. Change the type of target0, t0 and t1 to char.
1636
7c184d33
TT
16372020-10-09 Tom Tromey <tromey@adacore.com>
1638
1639 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
1640
5c4258f4
TT
16412020-10-09 Tom Tromey <tromey@adacore.com>
1642
1643 * ada-lang.h (ada_encode): Return std::string.
1644 * ada-lang.c (ada_encode_1): Return std::string.
1645 (ada_encode): Likewise.
1646 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
1647 Update.
1648 * ada-exp.y (block_lookup, write_var_or_type): Update.
1649
3d87245c
HD
16502020-10-09 Hannes Domani <ssbssa@yahoo.de>
1651
1652 PR exp/26714
1653 * printcmd.c (print_formatted): Handle void results as
1654 unformatted prints.
1655
bbb826f5
AB
16562020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
1657
1658 * arch/aarch32.c (aarch32_create_target_description): Release the
1659 target_desc_up as late as possible.
1660 * arch/aarch64.c (aarch64_create_target_description): Likewise.
1661 * arch/amd64.c (amd64_create_target_description): Likewise.
1662 * arch/arc.c (arc_create_target_description): Return a
1663 target_desc_up, don't release it.
1664 * arch/arc.h (arc_create_target_description): Update declaration.
1665 (arc_lookup_target_description): Move target_desc_up into the
1666 cache, and return a borrowed pointer.
1667 * arch/arm.c (arm_create_target_description): Release the
1668 target_desc_up as late as possible.
1669 * arch/i386.c (i386_create_target_description): Likewise.
1670 * arch/riscv.h (riscv_create_target_description): Update
1671 declaration to match definition.
1672 * arch/tic6x.c (tic6x_create_target_description): Release the
1673 target_desc_up as late as possible.
1674
361cb219
AB
16752020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
1676
1677 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
1678 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
1679
f5c4b229
JV
16802020-10-09 Jan Vrany <jan.vrany@labware.com>
1681
1682 * source.c (directory_command): Notify observers that "directories"
1683 parameter has changed.
1684
b2701685
TT
16852020-10-08 Tom Tromey <tom@tromey.com>
1686
1687 * cli/cli-cmds.c (print_disassembly): Style function name and
1688 addresses. Add _() wrappers.
1689
ada508b6
SV
16902020-10-08 Shahab Vahedi <shahab@synopsys.com>
1691
1692 * NEWS: Mention ARC support in GDBserver.
1693
51a948fd
AB
16942020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
1695
1696 * arch/aarch32.c (aarch32_create_target_description): Release
1697 unique_ptr returned from allocate_target_description.
1698 * arch/aarch64.c (aarch64_create_target_description): Likewise.
1699 * arch/amd64.c (amd64_create_target_description): Likewise.
1700 * arch/arc.c (arc_create_target_description): Likewise.
1701 * arch/arm.c (arm_create_target_description): Likewise.
1702 * arch/i386.c (i386_create_target_description): Likewise.
1703 * arch/riscv.c (riscv_create_target_description): Update return
1704 type. Handle allocate_target_description returning a unique_ptr.
1705 (riscv_lookup_target_description): Update to handle unique_ptr.
1706 * arch/tic6x.c (tic6x_create_target_description): Release
1707 unique_ptr returned from allocate_target_description.
1708 * features/microblaze-with-stack-protect.c: Regenerate.
1709 * features/microblaze.c: Regenerate.
1710 * features/mips-dsp-linux.c: Regenerate.
1711 * features/mips-linux.c: Regenerate.
1712 * features/mips64-dsp-linux.c: Regenerate.
1713 * features/mips64-linux.c: Regenerate.
1714 * features/nds32.c: Regenerate.
1715 * features/nios2.c: Regenerate.
1716 * features/or1k.c: Regenerate.
1717 * features/rs6000/powerpc-32.c: Regenerate.
1718 * features/rs6000/powerpc-32l.c: Regenerate.
1719 * features/rs6000/powerpc-403.c: Regenerate.
1720 * features/rs6000/powerpc-403gc.c: Regenerate.
1721 * features/rs6000/powerpc-405.c: Regenerate.
1722 * features/rs6000/powerpc-505.c: Regenerate.
1723 * features/rs6000/powerpc-601.c: Regenerate.
1724 * features/rs6000/powerpc-602.c: Regenerate.
1725 * features/rs6000/powerpc-603.c: Regenerate.
1726 * features/rs6000/powerpc-604.c: Regenerate.
1727 * features/rs6000/powerpc-64.c: Regenerate.
1728 * features/rs6000/powerpc-64l.c: Regenerate.
1729 * features/rs6000/powerpc-7400.c: Regenerate.
1730 * features/rs6000/powerpc-750.c: Regenerate.
1731 * features/rs6000/powerpc-860.c: Regenerate.
1732 * features/rs6000/powerpc-altivec32.c: Regenerate.
1733 * features/rs6000/powerpc-altivec32l.c: Regenerate.
1734 * features/rs6000/powerpc-altivec64.c: Regenerate.
1735 * features/rs6000/powerpc-altivec64l.c: Regenerate.
1736 * features/rs6000/powerpc-e500.c: Regenerate.
1737 * features/rs6000/powerpc-e500l.c: Regenerate.
1738 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
1739 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
1740 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
1741 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
1742 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
1743 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
1744 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
1745 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
1746 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
1747 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
1748 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
1749 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
1750 * features/rs6000/powerpc-vsx32.c: Regenerate.
1751 * features/rs6000/powerpc-vsx32l.c: Regenerate.
1752 * features/rs6000/powerpc-vsx64.c: Regenerate.
1753 * features/rs6000/powerpc-vsx64l.c: Regenerate.
1754 * features/rs6000/rs6000.c: Regenerate.
1755 * features/rx.c: Regenerate.
1756 * features/s390-gs-linux64.c: Regenerate.
1757 * features/s390-linux32.c: Regenerate.
1758 * features/s390-linux32v1.c: Regenerate.
1759 * features/s390-linux32v2.c: Regenerate.
1760 * features/s390-linux64.c: Regenerate.
1761 * features/s390-linux64v1.c: Regenerate.
1762 * features/s390-linux64v2.c: Regenerate.
1763 * features/s390-te-linux64.c: Regenerate.
1764 * features/s390-tevx-linux64.c: Regenerate.
1765 * features/s390-vx-linux64.c: Regenerate.
1766 * features/s390x-gs-linux64.c: Regenerate.
1767 * features/s390x-linux64.c: Regenerate.
1768 * features/s390x-linux64v1.c: Regenerate.
1769 * features/s390x-linux64v2.c: Regenerate.
1770 * features/s390x-te-linux64.c: Regenerate.
1771 * features/s390x-tevx-linux64.c: Regenerate.
1772 * features/s390x-vx-linux64.c: Regenerate.
1773 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
1774 from allocate_target_description.
1775 * target-descriptions.c (allocate_target_description): Update
1776 return type.
1777 (print_c_tdesc::visit_pre): Release unique_ptr returned from
1778 allocate_target_description.
1779
485c47e5
TT
17802020-10-07 Tom Tromey <tromey@adacore.com>
1781
1782 * unittests/search-memory-selftests.c: New file.
1783 * Makefile.in (SELFTESTS_SRCS): Add
1784 unittests/search-memory-selftests.c.
1785
3a135a91
TT
17862020-10-07 Tom Tromey <tromey@adacore.com>
1787
1788 PR gdb/16930:
1789 * findcmd.c (_initialize_mem_search): Mention that the range is
1790 inclusive.
1791
4a72de73
TT
17922020-10-07 Tom Tromey <tromey@adacore.com>
1793
1794 * target.h (simple_search_memory): Don't declare.
1795 * target.c (simple_search_memory): Move to gdbsupport.
1796 (default_search_memory): Update.
1797 * remote.c (remote_target::search_memory): Update.
1798
a038ffd8
SM
17992020-10-07 Simon Marchi <simon.marchi@efficios.com>
1800
1801 * Makefile.in (COMPILE): Add CXXFLAGS.
1802 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
1803 (check-headers): Add CXXFLAGS.
1804
cc463201
AK
18052020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
1806
1807 * arc-linux-tdep.h: New file.
1808 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
1809 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
1810 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
1811 arc_linux_gregset, arc_linux_v2_regset,
1812 arc_linux_iterate_over_regset_sections,
1813 arc_linux_core_read_description): Implement.
1814 (arc_linux_init_osabi): Set iterate_over_regset_sections.
1815 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
1816 (arc_gdbarch_features_create): Add.
1817 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
1818
e4bd363f
SV
18192020-10-07 Shahab Vahedi <shahab@synopsys.com>
1820
1821 * arch/arc.h: Rename "arc_gdbarch_features" to
1822 "arc_arch_features".
1823 * arc-tdep.h: Likewise.
1824 * arc-tdep.c: Likewise.
1825
b68bef99
TBA
18262020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1827
1828 * infcmd.c (attach_command): Remove the redundant call to
1829 `clear_proceed_status`.
1830
4641551a
KR
18312020-10-07 Kamil Rytarowski <n54@gmx.com>
1832
1833 * nat/netbsd-nat.c (write_memory, read_memory): Update.
1834
91e5e8db
KR
18352020-10-07 Kamil Rytarowski <n54@gmx.com>
1836
1837 * nat/netbsd-nat.c (write_memory, read_memory): Add.
1838 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
1839 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
1840
64c03bdb
SM
18412020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
1842
1843 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
1844 (_initialize_break_catch_sig): Don't allocate array.
1845
31a8f60f
AB
18462020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
1847
1848 * symtab.c (find_pc_line): Return unmapped addresses when the
1849 requested address is also unmapped.
1850
9e6dbd8b
SM
18512020-10-05 Simon Marchi <simon.marchi@efficios.com>
1852
1853 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
1854 tui/tui-out.h.
1855
a1d217e8
SM
18562020-10-05 Simon Marchi <simon.marchi@efficios.com>
1857
1858 * amd64-windows-tdep.c (amd64_windows_return_value): Use
1859 type::is_vector instead of TYPE_VECTOR.
1860
7d144117
SM
18612020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
1862
1863 * auto-load.c (auto_load_objfile_script_1): Don't use
1864 debugfile_holder as temporary variable when stripping drive
1865 letter.
1866
cd096ec8
HD
18672020-10-05 Hannes Domani <ssbssa@yahoo.de>
1868
1869 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
1870 Add TYPE_CODE_COMPLEX.
1871 (amd64_windows_return_value): Fix types returned via XMM0.
1872
b58e7f72
AH
18732020-10-05 Alan Hayward <alan.hayward@arm.com>
1874
1875 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
1876 AArch64/ARM maintainers.
1877
8d378f27
SM
18782020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
1879
1880 * NEWS: Mention set/show debug event-loop.
1881
d5519913
TT
18822020-10-02 Tom Tromey <tromey@adacore.com>
1883
1884 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
1885 REG_EXTENDED.
1886
18b67edc
SM
18872020-10-02 Simon Marchi <simon.marchi@efficios.com>
1888
1889 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
1890 * procfs.c (procfs_inferior_created): Remove.
1891 (_initialize_procfs): Don't register procfs_inferior_created.
1892
6b01403b
SM
18932020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1894
1895 * async-event.c (invoke_async_signal_handlers): Add debug
1896 print.
1897 (check_async_event_handlers): Likewise.
1898 * event-top.c (show_debug_event_loop): New function.
1899 (_initialize_event_top): Register "set debug event-loop"
1900 setting.
1901
ba988419
SM
19022020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1903
1904 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
1905 * debug.h: Remove.
1906 * infrun.c: Include gdbsupport/common-debug.h.
1907 * linux-nat.c: Likewise.
1908
db20ebdf
SM
19092020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1910
1911 * async-event.h (create_async_signal_handler): Add name
1912 parameter.
1913 (create_async_event_handler): Likewise.
1914 * async-event.c (struct async_signal_handler) <name>: New field.
1915 (struct async_event_handler) <name>: New field.
1916 (create_async_signal_handler): Assign name.
1917 (create_async_event_handler): Assign name.
1918 * event-top.c (async_init_signals): Pass name when creating
1919 handler.
1920 * infrun.c (_initialize_infrun): Likewise.
1921 * record-btrace.c (record_btrace_push_target): Likewise.
1922 * record-full.c (record_full_open): Likewise.
1923 * remote-notif.c (remote_notif_state_allocate): Likewise.
1924 * remote.c (remote_target::open_1): Likewise.
1925 * tui/tui-win.c (tui_initialize_win): Likewise.
1926
2554f6f5
SM
19272020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1928
1929 * async-event.c (initialize_async_signal_handlers): Pass name to
1930 add_file_handler
1931 * event-top.c (ui_register_input_event_handler): Likewise.
1932 * linux-nat.c (linux_nat_target::async): Likewise.
1933 * run-on-main-thread.c (_initialize_run_on_main_thread):
1934 Likewise
1935 * ser-base.c (reschedule): Likewise.
1936 (ser_base_async): Likewise.
1937 * tui/tui-io.c: Likewise.
1938 * top.h (struct ui) <num>: New field.
1939 * top.c (highest_ui_num): New variable.
1940 (ui::ui): Initialize num.
1941
a7aba266
SM
19422020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1943
1944 * observable.h <inferior_created>: Remove parameters. Update all
1945 listeners.
1946 * inferior.h (post_create_inferior): Remove target parameter.
1947 Update all callers.
1948
048fde1e 19492020-10-02 Nitika Achra <Nitika.Achra@amd.com>
1950
1951 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
1952 and DW_MACRO_undef_strx.
1953 (dwarf_decode_macros): Likewise
1954 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
1955 which is the value of DW_AT_str_offsets_base.
1956 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
1957 str_offsets_base.
1958
064280be
KR
19592020-10-01 Kamil Rytarowski <n54@gmx.com>
1960
1961 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
1962
6ff33035
KR
19632020-10-01 Kamil Rytarowski <n54@gmx.com>
1964
1965 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
1966 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
1967
1eb6eb79
KR
19682020-10-01 Kamil Rytarowski <n54@gmx.com>
1969
1970 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
1971
95eb9e54
TV
19722020-09-30 Tom de Vries <tdevries@suse.de>
1973
1974 PR symtab/26683
1975 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
1976
cae21f8e
TT
19772020-09-30 Tom Tromey <tromey@adacore.com>
1978
1979 * dwarf2/read.c (handle_variant): Use constant_value.
1980
529908cb
TT
19812020-09-29 Tom Tromey <tom@tromey.com>
1982
1983 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
1984 (read_file_scope, dwarf2_get_pc_bounds)
1985 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
1986 (read_structure_type, handle_struct_member_die)
1987 (read_enumeration_type, read_array_type, read_set_type)
1988 (read_tag_pointer_type, read_tag_reference_type)
1989 (read_subroutine_type, read_base_type, read_subrange_type)
1990 (read_full_die_1, partial_die_info::read)
1991 (partial_die_info::read, by, new_symbol)
1992 (dwarf2_const_value_data, dwarf2_const_value_attr)
1993 (dump_die_shallow, dwarf2_fetch_constant_bytes)
1994 (prepare_one_comp_unit): Update.
1995 * dwarf2/attribute.h (DW_UNSND): Remove.
1996
c45bc3f8
TT
19972020-09-29 Tom Tromey <tom@tromey.com>
1998
1999 * dwarf2/read.c (read_func_scope, prototyped_function_p)
2000 (read_subroutine_type, partial_die_info::read)
2001 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
2002 (dwarf2_add_member_fn): Update.
2003 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
2004 * dwarf2/attribute.c (attribute::as_boolean): New method.
2005
23dca5c3
TT
20062020-09-29 Tom Tromey <tom@tromey.com>
2007
2008 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
2009 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
2010 method.
2011 * dwarf2/attribute.c (attribute::as_virtuality): New method.
2012
52c14d11
TT
20132020-09-29 Tom Tromey <tom@tromey.com>
2014
2015 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
2016 the attribute's form.
2017
e8e5c158
TT
20182020-09-29 Tom Tromey <tom@tromey.com>
2019
2020 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
2021 (dwarf2_add_member_fn): Update.
2022 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
2023 * dwarf2/attribute.c (attribute::defaulted): New method, from
2024 is_valid_DW_AT_defaulted.
2025
d4df075e
TT
20262020-09-29 Tom Tromey <tom@tromey.com>
2027
2028 * dwarf2/read.c (dw2_get_file_names_reader)
2029 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
2030 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
2031 (dwarf2_symbol_mark_computed): Use as_unsigned.
2032 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
2033 method.
2034 <form_is_section_offset>: Update comment.
2035
bf23a268
TT
20362020-09-29 Tom Tromey <tom@tromey.com>
2037
2038 * dwarf2/read.c (dwarf2_access_attribute): Rename from
2039 dwarf2_default_access_attribute. Look up attribute.
2040 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
2041 Update.
2042
7a5f294d
TT
20432020-09-29 Tom Tromey <tom@tromey.com>
2044
2045 * dwarf2/read.c (skip_one_die): Update.
2046 (read_full_die_1): Change how reprocessing is done.
2047 (partial_die_info::read): Update.
2048 (read_attribute_value): Remove need_reprocess parameter.
2049 (read_attribute): Likewise.
2050 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
2051 New method.
2052
36d378cf
TT
20532020-09-29 Tom Tromey <tom@tromey.com>
2054
2055 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
2056 (dwarf2_const_value_attr, dump_die_shallow)
2057 (dwarf2_fetch_constant_bytes): Update.
2058 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
2059 comment.
2060 <set_address>: New method.
2061 (DW_ADDR): Remove.
2062 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
2063 (attribute::as_string, attribute::as_address): Add assert.
2064
fe56917a
TT
20652020-09-29 Tom Tromey <tom@tromey.com>
2066
2067 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
2068 (read_attribute_reprocess, read_attribute_value): Update.
2069 (read_attribute): Clear requires_reprocessing.
2070 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
2071 form_requires_reprocessing>: New methods.
2072 <string_init>: Clear requires_reprocessing.
2073 <set_unsigned_reprocess>: New method.
2074 <name>: Shrink by one bit.
2075 <requires_reprocessing>: New member.
2076 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
2077 method.
2078
414ad644
TT
20792020-09-29 Tom Tromey <tom@tromey.com>
2080
2081 * dwarf2/read.c (read_attribute_value): Update.
2082 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
2083 set_unsigned>: New methods.
2084 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
2085
1bc397c5
TT
20862020-09-29 Tom Tromey <tom@tromey.com>
2087
2088 * dwarf2/read.c (get_alignment, read_array_order)
2089 (read_attribute_value, dwarf2_const_value_attr)
2090 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
2091 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
2092 New methods.
2093 (DW_SND): Remove.
2094
630ed6b9
TT
20952020-09-29 Tom Tromey <tom@tromey.com>
2096
2097 * dwarf2/read.c (read_attribute_value, lookup_die_type)
2098 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
2099 Update.
2100 * dwarf2/attribute.h (struct attribute) <as_signature,
2101 set_signature>: New methods.
2102 (DW_SIGNATURE): Remove.
2103
9d2246fc
TT
21042020-09-29 Tom Tromey <tom@tromey.com>
2105
2106 * dwarf2/read.c (read_call_site_scope)
2107 (handle_data_member_location, dwarf2_add_member_fn)
2108 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
2109 (partial_die_info::read, read_attribute_value)
2110 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
2111 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
2112 (dwarf2_symbol_mark_computed): Update.
2113 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
2114 methods.
2115 (DW_BLOCK): Remove.
2116 * dwarf2/attribute.c (attribute::form_is_block): Add
2117 DW_FORM_data16.
2118
c6481205
TT
21192020-09-29 Tom Tromey <tom@tromey.com>
2120
2121 * dwarf2/read.c (read_cutu_die_from_dwo)
2122 (read_attribute_reprocess, read_attribute_value, read_attribute)
2123 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
2124 (dwarf2_fetch_constant_bytes): Update.
2125 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
2126 <set_string_noncanonical, set_string_canonical>: New methods.
2127 <string_is_canonical>: Update comment.
2128 <canonical_string_p>: Add assert.
2129 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
2130 * dwarf2/attribute.c (attribute::form_is_string): New method.
2131 (attribute::string): Use it.
2132
3b64bf15
TT
21332020-09-29 Tom Tromey <tom@tromey.com>
2134
2135 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
2136 (dump_die_shallow): Use canonical_string_p.
2137 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
2138 method.
2139
2c830f54
TT
21402020-09-29 Tom Tromey <tom@tromey.com>
2141
2142 * dwarf2/read.c (partial_die_info::read)
2143 (dwarf2_const_value_attr, anonymous_struct_prefix, )
2144 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
2145 attribute::as_string.
2146
6c412691
TT
21472020-09-29 Tom Tromey <tom@tromey.com>
2148
2149 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
2150 DW_ADDR.
2151 (attribute::string): Don't use DW_STRING.
2152 (attribute::get_ref_die_offset): Don't use DW_UNSND.
2153 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
2154
95f982e5
TT
21552020-09-29 Tom Tromey <tom@tromey.com>
2156
2157 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
2158 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
2159 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
2160 * dwarf2/attribute.h (struct attribute): Rename methods.
2161 * dwarf2/attribute.c (attribute::as_address): Rename from
2162 value_as_address.
2163 (attribute::as_string): Rename from value_as_string.
2164
f800b00e
TT
21652020-09-29 Tom Tromey <tom@tromey.com>
2166
2167 * dwarf2/read.c (partial_die_info::read) <case
2168 DW_AT_linkage_name>: Use value_as_string.
2169 (dwarf2_string_attr): Use value_as_string.
2170 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
2171 method.
2172 * dwarf2/attribute.c (attribute::value_as_string): New method.
2173
de38d64a
PA
21742020-09-29 Pedro Alves <pedro@palves.net>
2175
2176 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
2177 defined before using '#pragma GCC diagnostic' instead of checking
2178 __clang__.
2179
9aed480c
TT
21802020-09-28 Tom Tromey <tom@tromey.com>
2181
2182 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
2183 (handle_signal_stop): Update.
2184 * procfs.c (procfs_target::insert_watchpoint): Update.
2185 * target.h (target_have_steppable_watchpoint): Now a function.
2186
8a3ecb79
TT
21872020-09-28 Tom Tromey <tom@tromey.com>
2188
2189 * infrun.c (set_schedlock_func): Update.
2190 * target.h (target_can_lock_scheduler): Now a function.
2191
55f6301a
TT
21922020-09-28 Tom Tromey <tom@tromey.com>
2193
2194 * inferior.h (class inferior) <has_execution>: Update.
2195 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2196 * valops.c (find_function_in_inferior)
2197 (value_allocate_space_in_inferior): Update.
2198 * top.c (kill_or_detach): Update.
2199 * target.c (target_preopen, set_target_permissions): Update.
2200 (target_has_execution_current): Remove.
2201 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
2202 Update.
2203 * solib.c (update_solib_list, reload_shared_libraries): Update.
2204 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
2205 * solib-dsbt.c (enable_break): Update.
2206 * score-tdep.c (score7_fetch_inst): Update.
2207 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
2208 Update.
2209 * remote.c (remote_target::start_remote)
2210 (remote_target::remote_check_symbols, remote_target::open_1)
2211 (remote_target::remote_detach_1, remote_target::verify_memory)
2212 (remote_target::xfer_partial, remote_target::read_description)
2213 (remote_target::get_min_fast_tracepoint_insn_len): Update.
2214 * record-full.c (record_full_open_1): Update.
2215 * record-btrace.c (record_btrace_target_open): Update.
2216 * objc-lang.c (lookup_objc_class, lookup_child_selector)
2217 (value_nsstring): Update.
2218 * linux-thread-db.c (add_thread_db_info)
2219 (thread_db_find_new_threads_silently, check_thread_db_callback)
2220 (try_thread_db_load_1, record_thread): Update.
2221 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
2222 Update.
2223 * linux-fork.c (checkpoint_command): Update.
2224 * infrun.c (set_non_stop, set_observer_mode)
2225 (check_multi_target_resumption, for_each_just_stopped_thread)
2226 (maybe_remove_breakpoints, normal_stop)
2227 (class infcall_suspend_state): Update.
2228 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
2229 (info_program_command, attach_command): Update.
2230 * infcall.c (call_function_by_hand_dummy): Update.
2231 * inf-loop.c (inferior_event_handler): Update.
2232 * gcore.c (gcore_command, derive_heap_segment): Update.
2233 * exec.c (exec_file_command): Update.
2234 * eval.c (evaluate_subexp): Update.
2235 * compile/compile.c (compile_to_object): Update.
2236 * cli/cli-dump.c (restore_command): Update.
2237 * breakpoint.c (update_watchpoint)
2238 (update_inserted_breakpoint_locations)
2239 (insert_breakpoint_locations, get_bpstat_thread): Update.
2240 * target.h (target_has_execution): Remove macro.
2241 (target_has_execution_current): Don't declare.
2242 (target_has_execution): Rename from target_has_execution_1. Add
2243 argument default.
2244
05374cfd
TT
22452020-09-28 Tom Tromey <tom@tromey.com>
2246
2247 * mi/mi-main.c (exec_reverse_continue)
2248 (mi_cmd_list_target_features): Update.
2249 * infrun.c (set_exec_direction_func): Update.
2250 * target.c (default_execution_direction): Update.
2251 * reverse.c (exec_reverse_once): Update.
2252 * target.h (target_can_execute_reverse): Now a function.
2253
9dccd06e
TT
22542020-09-28 Tom Tromey <tom@tromey.com>
2255
2256 * tui/tui-regs.c (tui_get_register)
2257 (tui_data_window::show_registers): Update.
2258 * thread.c (scoped_restore_current_thread::restore)
2259 (scoped_restore_current_thread::scoped_restore_current_thread):
2260 Update.
2261 * regcache-dump.c (regcache_print): Update.
2262 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2263 Update.
2264 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
2265 * mep-tdep.c (current_me_module, current_options): Update.
2266 * linux-thread-db.c (thread_db_load): Update.
2267 * infcmd.c (registers_info, info_vector_command)
2268 (info_float_command): Update.
2269 * ia64-tdep.c (ia64_frame_prev_register)
2270 (ia64_sigtramp_frame_prev_register): Update.
2271 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
2272 * gcore.c (derive_stack_segment): Update.
2273 * frame.c (get_current_frame, has_stack_frames): Update.
2274 * findvar.c (language_defn::read_var_value): Update.
2275 * arm-tdep.c (arm_pc_is_thumb): Update.
2276 * target.c (target_has_registers): Rename from
2277 target_has_registers_1.
2278 * target.h (target_has_registers): Remove macro.
2279 (target_has_registers): Rename from target_has_registers_1.
2280
841de120
TT
22812020-09-28 Tom Tromey <tom@tromey.com>
2282
2283 * windows-tdep.c (tlb_make_value): Update.
2284 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2285 * thread.c (scoped_restore_current_thread::restore)
2286 (scoped_restore_current_thread::scoped_restore_current_thread)
2287 (thread_command): Update.
2288 * stack.c (backtrace_command_1, frame_apply_level_command)
2289 (frame_apply_all_command, frame_apply_command): Update.
2290 * infrun.c (siginfo_make_value, restore_infcall_control_state):
2291 Update.
2292 * gcore.c (derive_stack_segment): Update.
2293 * frame.c (get_current_frame, has_stack_frames): Update.
2294 * auxv.c (info_auxv_command): Update.
2295 * ada-tasks.c (ada_build_task_list): Update.
2296 * target.c (target_has_stack): Rename from target_has_stack_1.
2297 * target.h (target_has_stack): Remove macro.
2298 (target_has_stack): Rename from target_has_stack_1.
2299
a739972c
TT
23002020-09-28 Tom Tromey <tom@tromey.com>
2301
2302 * target.c (target_has_memory): Rename from target_has_memory_1.
2303 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2304 * thread.c (scoped_restore_current_thread::restore)
2305 (scoped_restore_current_thread::scoped_restore_current_thread):
2306 Update.
2307 * frame.c (get_current_frame, has_stack_frames): Update.
2308 * target.h (target_has_memory): Remove macro.
2309 (target_has_memory): Rename from target_has_memory_1.
2310
5b8a4776
TT
23112020-09-28 Tom Tromey <tom@tromey.com>
2312
2313 * target.c (target_has_all_memory_1): Remove.
2314 * target.h (target_has_all_memory): Remove define.
2315 (target_has_all_memory_1): Don't declare.
2316
bd356ec6
SM
23172020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
2318
2319 * ser-base.c: Adjust comments formatting.
2320
2c72d5e5
TT
23212020-09-27 Tom Tromey <tom@tromey.com>
2322
2323 PR tui/25342:
2324 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
2325
35a98237
TT
23262020-09-27 Tom Tromey <tom@tromey.com>
2327
2328 PR tui/25342:
2329 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
2330
9e820dec
TT
23312020-09-27 Tom Tromey <tom@tromey.com>
2332
2333 * unittests/tui-selftests.c: Update.
2334 * tui/tui-winsource.h (struct tui_source_window_base)
2335 <extra_margin, show_line_number, refresh_pad>: New methods.
2336 <m_max_length, m_pad>: New members.
2337 (tui_copy_source_line): Update.
2338 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
2339 first_col, line_width, ndigits parameters. Add length.
2340 (tui_source_window_base::show_source_line): Write to pad. Line
2341 number now 0-based.
2342 (tui_source_window_base::refresh_pad): New method.
2343 (tui_source_window_base::show_source_content): Write to pad. Call
2344 refresh_pad.
2345 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
2346 not refill.
2347 (tui_source_window_base::update_exec_info): Call
2348 show_line_number.
2349 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
2350 method.
2351 <m_digits>: New member.
2352 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
2353 and m_max_length.
2354 (tui_source_window::show_line_number): New method.
2355 * tui/tui-io.h (tui_puts): Fix comment.
2356 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
2357 m_max_length.
2358
c15c15c8
TT
23592020-09-27 Tom Tromey <tom@tromey.com>
2360
2361 * tui/tui-winsource.c
2362 (tui_source_window_base::set_is_exec_point_at): Don't call
2363 show_source_line.
2364
149830c1
TT
23652020-09-27 Tom Tromey <tom@tromey.com>
2366
2367 * python/py-tui.c (class tui_py_window) <refresh_window>: New
2368 method.
2369 <erase>: Update.
2370 <cursor_x, cursor_y>: Remove.
2371 <m_inner_window>: New member.
2372 (tui_py_window::rerender): Create inner window.
2373 (tui_py_window::output): Write to inner window.
2374
8f9929bb
GR
23752020-09-26 Gareth Rees <grees@undo.io> (tiny change)
2376
2377 PR python/26586
2378 * cli/cli-script.c (execute_control_commands): don't set
2379 instream to nullptr here as this breaks the from_tty argument
2380 to gdb.execute in Python.
2381 (execute_user_command): set instream to nullptr here instead.
2382
956bdb59
SM
23832020-09-25 Simon Marchi <simon.marchi@efficios.com>
2384
2385 * infrun.h (infrun_debug_printf): Fix formatting.
2386 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
2387
3b93626b
SJ
23882020-09-25 Saagar Jha <saagar@saagarjha.com>
2389
2390 * compile/compile-object-load.h (struct munmap_list): Add
2391 explicitly-defined move constructor.
2392
b551a89f
TT
23932020-09-24 Tom Tromey <tromey@adacore.com>
2394
2395 PR tui/26638:
2396 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
2397 method.
2398 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
2399 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
2400 (tui_prev_win): Rewrite.
2401
99bb393f
HD
24022020-09-23 Hannes Domani <ssbssa@yahoo.de>
2403
2404 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
2405 in WOW64 processes as SIGINT.
2406 * nat/windows-nat.h: Make wow64_process a shared variable.
2407 * windows-nat.c: Remove static wow64_process variable.
2408
20a5fcbd
TT
24092020-09-23 Tom Tromey <tom@tromey.com>
2410
2411 PR symtab/25470:
2412 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
2413 offset and bit size.
2414 * printcmd.c (print_scalar_formatted): Handle zero-length
2415 integer.
2416 (print_scalar_formatted): Use bit_size_differs_p.
2417 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
2418 constant.
2419 (union type_specific): <int_stuff>: New member.
2420 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
2421 methods.
2422 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
2423 TYPE_SPECIFIC_FIELD.
2424 (recursive_dump_type, copy_type_recursive): Update.
2425 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
2426 DW_AT_data_bit_offset.
2427
bac51ab7
TT
24282020-09-23 Tom Tromey <tom@tromey.com>
2429
2430 * utils.h (class gdb_argv): Add move operators.
2431 <append>: New methods.
2432 * compile/compile.c (build_argc_argv): Remove.
2433 (compile_args_argc): Remove.
2434 (compile_args_argv): Change type.
2435 (set_compile_args): Simplify.
2436 (append_args): Remove.
2437 (filter_args): Remove argcp parameter.
2438 (get_args): Return gdb_argv. Simplify.
2439 (compile_to_object): Update.
2440
92677124
TT
24412020-09-23 Tom Tromey <tom@tromey.com>
2442
2443 * compile/compile-object-run.c (do_module_cleanup)
2444 <~do_module_cleanup> :Remove.
2445 (do_module_cleanup): Update.
2446 * compile/compile-object-load.h (struct munmap_list): Add move
2447 assignment operator.
2448 <source_file>: Now a std::string.
2449 <munmap_list>: Rename. No longer a pointer.
2450 * compile/compile-object-load.c (struct setup_sections_data): Add
2451 constructor.
2452 <setup_one_section>: Declare.
2453 <munmap_list>: Move earlier.
2454 <m_bfd>: New member.
2455 <m_last_size, m_last_section_first, m_last_prot,
2456 m_last_max_alignment>: Rename, add initializers where needed.
2457 (setup_sections_data::setup_one_section): Rename from
2458 setup_sections. Update.
2459 (compile_object_load): Update. Don't use bfd_map_over_sections.
2460
e616f60a
TT
24612020-09-23 Tom Tromey <tom@tromey.com>
2462
2463 * compile/compile-object-run.c (struct do_module_cleanup): Add
2464 parameters to constructor. Update destructor.
2465 <source_file, scope, scope_data, out_value_type, out_value_addr,
2466 munmap_list_head, objfile_name_string>: Remove.
2467 <module>: New member.
2468 (do_module_cleanup): Update.
2469 (compile_object_run): Update.
2470
e947a848
TT
24712020-09-23 Tom Tromey <tom@tromey.com>
2472
2473 * compile/compile.c (eval_compile_command): Update.
2474 * compile/compile-object-run.h (compile_object_run): Take a
2475 compile_module_up.
2476 * compile/compile-object-run.c (compile_object_run): Take a
2477 compile_module_up.
2478 * compile/compile-object-load.h (struct compile_module): Add
2479 constructor, destructor.
2480 (compile_module_up): New typedef.
2481 (compile_object_load): Return compile_object_up.
2482 * compile/compile-object-load.c (compile_object_load): Return
2483 compile_module_up.
2484
0dbf6ee6
TT
24852020-09-23 Tom Tromey <tom@tromey.com>
2486
2487 * compile/compile-object-run.c (struct do_module_cleanup): Add
2488 constructor, destructor.
2489 <objfile_name_string>: Don't use struct hack.
2490 (do_module_cleanup): Use delete.
2491 (compile_object_run): Use new.
2492
ebe824f5
TT
24932020-09-23 Tom Tromey <tom@tromey.com>
2494
2495 * compile/compile-cplus-types.c
2496 (compile_cplus_convert_struct_or_union): Use std::vector.
2497 (compile_cplus_convert_func): Likewise.
2498 * compile/compile-c-types.c (convert_func): Use std::vector.
2499
5dd918d9
TT
25002020-09-21 Tom Tromey <tromey@adacore.com>
2501
2502 * sparc-tdep.c (sparc32_skip_prologue): Use
2503 skip_prologue_using_sal.
2504
5486c517
TT
25052020-09-19 Tom Tromey <tom@tromey.com>
2506
2507 * symfile.c (add_section_size_callback): Remove.
2508 (load_one_section): Rename from load_section_callback. Change
2509 parameters.
2510 (generic_load): Use foreach.
2511
8a6bb1d1
TT
25122020-09-19 Tom Tromey <tom@tromey.com>
2513
2514 * exec.c (add_to_section_table): Remove.
2515 (build_section_table): Use foreach.
2516
08f93a1a
TT
25172020-09-19 Tom Tromey <tom@tromey.com>
2518
2519 * elfread.c (elf_locate_sections): Change parameters.
2520 (elf_symfile_read): Use foreach.
2521
03cd72b8
TT
25222020-09-19 Tom Tromey <tom@tromey.com>
2523
2524 * cli/cli-dump.c (struct callback_data): Remove.
2525 (restore_one_section): Rename from restore_section_callback.
2526 Change parameters.
2527 (restore_binary_file): Change parameters.
2528 (restore_command): Use foreach.
2529
f4f2b85f
TT
25302020-09-19 Tom Tromey <tom@tromey.com>
2531
2532 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
2533 (gcore_copy_callback): Likewise.
2534 (gcore_memory_sections): Use foreach.
2535
b35c1d1c
TT
25362020-09-19 Tom Tromey <tom@tromey.com>
2537
2538 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
2539 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
2540 parameters.
2541 (generic_elf_osabi_sniffer): Use foreach.
2542 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
2543 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
2544
5bb6e9dd
TT
25452020-09-19 Tom Tromey <tom@tromey.com>
2546
2547 * dwarf2/read.c (locate_dwz_sections): Change parameters.
2548 (dwarf2_get_dwz_file): Use foreach.
2549 (dwarf2_locate_dwo_sections): Change parameters.
2550 (open_and_init_dwo_file): Use foreach.
2551 (dwarf2_locate_common_dwp_sections): Change parameters.
2552 (open_and_init_dwp_file): Use foreach.
2553
ad7277da
TT
25542020-09-19 Tom Tromey <tom@tromey.com>
2555
2556 * symfile.h: (find_lowest_section): Don't declare.
2557 * symfile.c (find_lowest_section): Now static. Change
2558 parameters.
2559 (struct place_section_arg): Remove.
2560 (place_section): Change parameters.
2561 (addr_info_make_relative): Use foreach.
2562 (symfile_dummy_outputs): Remove.
2563 (default_symfile_relocate): Use foreach.
2564
cb814f2e
TT
25652020-09-19 Tom Tromey <tom@tromey.com>
2566
2567 * objfiles.c (add_to_objfile_sections): Rename from
2568 add_to_objfile_sections_full.
2569 (add_to_objfile_sections): Remove.
2570 (build_objfile_section_table): Use foreach.
2571
3cabfd26
TT
25722020-09-19 Tom Tromey <tom@tromey.com>
2573
2574 * stap-probe.c (get_stap_base_address_1): Remove.
2575 (get_stap_base_address): Use foreach.
2576
1ce51eb5
TT
25772020-09-19 Tom Tromey <tom@tromey.com>
2578
2579 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
2580 parameters.
2581 (gdb_bfd_close_or_warn): Use foreach.
2582
a190fabb
TT
25832020-09-19 Tom Tromey <tom@tromey.com>
2584
2585 * corelow.c (add_to_thread_list): Change parameters.
2586 (core_target_open): Use foreach.
2587
cafb0d81
TT
25882020-09-19 Tom Tromey <tom@tromey.com>
2589
2590 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
2591 existing function.
2592
c8d5abea
AB
25932020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2594
2595 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
2596 for arrays.
2597
6d816919
AB
25982020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2599
2600 * eval.c: Remove 'f-lang.h' include.
2601 (value_f90_subarray): Moved to f-lang.c.
2602 (eval_call): Renamed to...
2603 (evaluate_subexp_do_call): ...this, is no longer static, header
2604 comment moved into header file.
2605 (evaluate_funcall): Update call to eval_call.
2606 (skip_undetermined_arglist): Moved to f-lang.c.
2607 (fortran_value_subarray): Likewise.
2608 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
2609 moved to evaluate_subexp_f.
2610 (calc_f77_array_dims): Moved to f-lang.c
2611 * expprint.c (print_subexp_funcall): New function.
2612 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
2613 moved to print_subexp_f, OP_FUNCALL uses new function.
2614 (dump_subexp_body_funcall): New function.
2615 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
2616 moved to dump_subexp_f, OP_FUNCALL uses new function.
2617 * expression.h (evaluate_subexp_do_call): Declare.
2618 * f-lang.c (value_f90_subarray): Moved from eval.c.
2619 (skip_undetermined_arglist): Likewise.
2620 (calc_f77_array_dims): Likewise.
2621 (fortran_value_subarray): Likewise.
2622 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
2623 (operator_length_f): Likewise.
2624 (print_subexp_f): Likewise.
2625 (dump_subexp_body_f): Likewise.
2626 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
2627 declaration of this operation to here.
2628 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
2629 support moved to operator_length_f.
2630 * parser-defs.h (dump_subexp_body_funcall): Declare.
2631 (print_subexp_funcall): Declare.
2632 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
2633 fortran-operator.def.
2634
8c37706a
AB
26352020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2636
2637 * eval.c (fortran_value_subarray): New function, content is taken
2638 from...
2639 (evaluate_subexp_standard): ...here, in two places. Now arrays
2640 and strings both call the new function.
2641 (calc_f77_array_dims): Add header comment, handle strings.
2642
14f9473c
VC
26432020-09-18 Victor Collod <vcollod@nvidia.com>
2644
2645 PR gdb/26635
2646 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
2647 (i386_analyze_prologue): Call i386_skip_endbr.
2648
b60cea74
TT
26492020-09-18 Tom Tromey <tromey@adacore.com>
2650
2651 * windows-nat.c (struct windows_nat_target) <wait>: Update.
2652 (windows_nat_target::wait): Update.
2653 * target/wait.h (enum target_wait_flag): New. Use
2654 DEF_ENUM_FLAGS_TYPE.
2655 * target/target.h (target_wait): Change type of options.
2656 * target.h (target_options_to_string, default_target_wait):
2657 Update.
2658 (struct target_ops) <wait>: Change type of options.
2659 * target.c (target_wait, default_target_wait, do_option): Change
2660 type of "options".
2661 (target_options_to_string): Likewise.
2662 * target-delegates.c: Rebuild.
2663 * target-debug.h (target_debug_print_target_wait_flags): Rename
2664 from target_debug_print_options.
2665 * sol-thread.c (class sol_thread_target) <wait>: Update.
2666 (sol_thread_target::wait): Update.
2667 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
2668 (rs6000_nat_target::wait): Update.
2669 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
2670 Update.
2671 (remote_target::wait_ns, remote_target::wait_as): Change type of
2672 "options".
2673 (remote_target::wait): Update.
2674 * remote-sim.c (struct gdbsim_target) <wait>: Update.
2675 (gdbsim_target::wait): Update.
2676 * record-full.c (class record_full_base_target) <wait>: Update.
2677 (record_full_wait_1): Change type of "options".
2678 (record_full_base_target::wait): Update.
2679 * record-btrace.c (class record_btrace_target) <wait>: Update.
2680 (record_btrace_target::wait): Update.
2681 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
2682 Update.
2683 (ravenscar_thread_target::wait): Update.
2684 * procfs.c (class procfs_target) <wait>: Update.
2685 (procfs_target::wait): Update.
2686 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
2687 * obsd-nat.c (obsd_nat_target::wait): Update.
2688 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
2689 (nto_procfs_target::wait): Update.
2690 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
2691 * nbsd-nat.c (nbsd_wait): Change type of "options".
2692 (nbsd_nat_target::wait): Update.
2693 * linux-thread-db.c (class thread_db_target) <wait>: Update.
2694 (thread_db_target::wait): Update.
2695 * linux-nat.h (class linux_nat_target) <wait>: Update.
2696 * linux-nat.c (linux_nat_target::wait): Update.
2697 (linux_nat_wait_1): Update.
2698 * infrun.c (do_target_wait_1, do_target_wait): Change type of
2699 "options".
2700 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
2701 * inf-ptrace.c (inf_ptrace_target::wait): Update.
2702 * go32-nat.c (struct go32_nat_target) <wait>: Update.
2703 (go32_nat_target::wait): Update.
2704 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
2705 * gnu-nat.c (gnu_nat_target::wait): Update.
2706 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
2707 * fbsd-nat.c (fbsd_nat_target::wait): Update.
2708 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
2709 * darwin-nat.c (darwin_nat_target::wait): Update.
2710 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
2711 (bsd_uthread_target::wait): Update.
2712 * aix-thread.c (class aix_thread_target) <wait>: Update.
2713 (aix_thread_target::wait): Update.
2714
0295dde6
AB
27152020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
2716
2717 * compile/compile-object-run.c (create_copied_type_recursive): New
2718 function.
2719 (compile_object_run): Use new function.
2720
d3483b43
JT
27212020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
2722
2723 * NEWS: Mention x86_64 Cygwin core file support.
2724
e7d612ad
JT
27252020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2726
2727 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
2728 (core_process_module_section): Handle NOTE_INFO_MODULE64.
2729
aff9d387
JT
27302020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2731
62a5151b
JT
2732 * windows-tdep.h: Add prototypes.
2733 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
2734 (i386_windows_core_pid_to_str): Move and rename ...
2735 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
2736 (windows_core_pid_to_str): ... and here.
2737 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
2738
27392020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
2740 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
2741 (amd64_windows_init_abi_common): ... and register.
2742
7d155da3
JT
27432020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2744
2745 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
2746 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
2747
e8ef12b9
PA
27482020-09-18 Pedro Alves <pedro@palves.net>
2749
2750 PR gdb/26631
2751 * thread.c (thread_find_command): Switch inferior before calling
2752 target methods.
2753
c1e1314d
TT
27542020-09-17 Tom Tromey <tromey@adacore.com>
2755
2756 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
2757 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
2758 (tdesc_arch_data_up): New typedef.
2759 (tdesc_use_registers, tdesc_data_alloc): Update.
2760 (tdesc_data_cleanup): Don't declare.
2761 * target-descriptions.c (tdesc_data_alloc): Return a
2762 tdesc_arch_data_up.
2763 (tdesc_arch_data_deleter::operator()): Rename from
2764 tdesc_data_cleanup. Change argument type.
2765 (tdesc_use_registers): Change early_data to an rvalue reference.
2766 (tdesc_use_registers): Don't use delete.
2767 * sparc-tdep.c (sparc32_gdbarch_init): Update.
2768 * s390-tdep.c (s390_gdbarch_init): Update.
2769 * rx-tdep.c (rx_gdbarch_init): Update.
2770 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2771 * riscv-tdep.c (riscv_gdbarch_init): Update.
2772 * or1k-tdep.c (or1k_gdbarch_init): Update.
2773 * nios2-tdep.c (nios2_gdbarch_init): Update.
2774 * nds32-tdep.c (nds32_gdbarch_init): Update.
2775 * mips-tdep.c (mips_gdbarch_init): Update.
2776 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
2777 * m68k-tdep.c (m68k_gdbarch_init): Update.
2778 * i386-tdep.c (i386_gdbarch_init): Update.
2779 * arm-tdep.c (arm_gdbarch_init): Update.
2780 * arc-tdep.c (arc_tdesc_init): Update.
2781 (arc_gdbarch_init): Update.
2782 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
2783
0363df3d
HD
27842020-09-17 Hannes Domani <ssbssa@yahoo.de>
2785
2786 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
2787 for WOW64 processes.
2788
280a9412
TT
27892020-09-17 Tom Tromey <tom@tromey.com>
2790
2791 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
2792
6108fd18
TT
27932020-09-17 Tom Tromey <tom@tromey.com>
2794
2795 * value.c (preserve_values): Update.
2796 * python/py-type.c (save_objfile_types): Update.
2797 * guile/scm-type.c (save_objfile_types): Update.
2798 * gdbtypes.h (create_copied_types_hash): Return htab_up.
2799 * gdbtypes.c (create_copied_types_hash): Return htab_up.
2800 * compile/compile-object-run.c (compile_object_run): Update.
2801
fa9b1164
TT
28022020-09-17 Tom Tromey <tom@tromey.com>
2803
2804 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
2805 Remove.
2806 <m_table>: Now htab_up.
2807 * typeprint.c (typedef_hash_table::recursively_update)
2808 (typedef_hash_table::add_template_parameters)
2809 (typedef_hash_table::typedef_hash_table): Update.
2810 (typedef_hash_table::~typedef_hash_table): Remove.
2811 (typedef_hash_table::typedef_hash_table)
2812 (typedef_hash_table::find_global_typedef)
2813 (typedef_hash_table::find_typedef): Update.
2814
eb53f105
TT
28152020-09-17 Tom Tromey <tom@tromey.com>
2816
2817 * target-descriptions.c (tdesc_use_registers): Use htab_up.
2818
7a8a5d47
TT
28192020-09-17 Tom Tromey <tom@tromey.com>
2820
2821 * linespec.c (class decode_compound_collector)
2822 <~decode_compound_collector>: Remove.
2823 <m_unique_syms>: Now htab_up.
2824 (decode_compound_collector::operator ()): Update.
2825 (class symtab_collector) <~symtab_collector>: Remove.
2826 <m_symtab_table>: Now htab_up.
2827 (symtab_collector::operator ()): Update.
2828
99032cfc
TT
28292020-09-17 Tom Tromey <tom@tromey.com>
2830
2831 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
2832 (filename_seen_cache::clear): Update.
2833 (~filename_seen_cache): Remove.
2834 (filename_seen_cache::seen): Update.
2835 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
2836 htab_up.
2837 <~filename_seen_cache>: Remove.
2838 <traverse>: Update.
2839
32580f6d
TT
28402020-09-17 Tom Tromey <tom@tromey.com>
2841
2842 * completer.c (completion_tracker::discard_completions)
2843 (completion_tracker::~completion_tracker)
2844 (completion_tracker::maybe_add_completion)
2845 (completion_tracker::remove_completion)
2846 (completion_tracker::recompute_lowest_common_denominator)
2847 (completion_tracker::build_completion_result): Update.
2848 * completer.h (class completion_tracker) <have_completions>:
2849 Update.
2850 <m_entries_hash>: Now htab_up.
2851
c1fb9836
TT
28522020-09-17 Tom Tromey <tom@tromey.com>
2853
2854 * breakpoint.c (ambiguous_names_p): Use htab_up.
2855
88f07206
TT
28562020-09-17 Tom Tromey <tom@tromey.com>
2857
2858 * auto-load.c (struct auto_load_pspace_info)
2859 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
2860 <loaded_script_files, loaded_script_texts>: Change type to
2861 htab_up.
2862 (~auto_load_pspace_info) Remove.
2863 (init_loaded_scripts_info, maybe_add_script_file)
2864 (maybe_add_script_text, auto_load_info_scripts): Update.
2865
9519b2ee
TT
28662020-09-17 Tom Tromey <tromey@adacore.com>
2867
2868 * c-exp.y (name_obstack): Now static.
2869
d2cd4113
CC
28702020-09-17 Chungyi Chi <demonic@csie.io>
2871
2872 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
2873
b650a282
SM
28742020-09-16 Simon Marchi <simon.marchi@efficios.com>
2875
2876 * breakpoint.h (init_catchpoint): Change int parameter to bool.
2877 (add_solib_catchpoint): Likewise.
2878 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
2879 to bool.
2880 (add_solib_catchpoint): Change int parameter/variable to bool.
2881 (catch_load_or_unload): Likewise.
2882 (init_catchpoint): Likewise.
2883 (create_fork_vfork_event_catchpoint): Likewise.
2884 (catch_fork_command_1): Likewise.
2885 (catch_exec_command_1): Likewise.
2886
4d0bcfcf
SM
28872020-09-16 Simon Marchi <simon.marchi@efficios.com>
2888
2889 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
2890 Change instance_flags to m_instance_flags.
2891
fe830662
TT
28922020-09-16 Tom Tromey <tromey@adacore.com>
2893
2894 PR gdb/26598:
2895 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
2896
fe5ddfc3
JB
28972020-09-16 John Baldwin <jhb@FreeBSD.org>
2898
2899 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
2900 PL_FLAG_EXEC.
2901 (fbsd_nat_target::insert_exec_catchpoint)
2902 (fbsd_nat_target::remove_exec_catchpoint): Always define.
2903 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
2904 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
2905
e911c666
JB
29062020-09-16 John Baldwin <jhb@FreeBSD.org>
2907
2908 * configure.ac: Remove check for kinfo_getvmmap().
2909 * configure, config.in: Regenerate.
2910 * fbsd-nat.c (fbsd_read_mapping): Remove
2911 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
2912 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
2913 kinfo_get_vmmap() are always present.
2914
1f17d372
JB
29152020-09-16 John Baldwin <jhb@FreeBSD.org>
2916
2917 * fbsd-nat.c: Always include support for
2918 TARGET_OBJECT_SIGNAL_INFO.
2919
bcb1da7f
JB
29202020-09-16 John Baldwin <jhb@FreeBSD.org>
2921
2922 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
2923 sysctl and remove procfs fallback.
2924
5515f729
JB
29252020-09-16 John Baldwin <jhb@FreeBSD.org>
2926
2927 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
2928 * fbsd-nat.h: Likewise.
2929
da1df1db
TBA
29302020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2931
2932 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
2933 argument.
2934
0e25e767
AB
29352020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2936
2937 * ada-lang.c (ada_language_data): Delete.
2938 (ada_language): Remove references to ada_language_data.
2939 * c-lang.c (c_language_data): Delete.
2940 (c_language): Remove references to c_language_data.
2941 (cplus_language_data): Delete.
2942 (cplus_language): Remove references to cplus_language_data.
2943 (asm_language_data): Delete.
2944 (asm_language): Remove references to asm_language_data.
2945 (minimal_language_data): Delete.
2946 (minimal_language): Remove references to minimal_language_data.
2947 * d-lang.c (d_language_data): Delete.
2948 (d_language): Remove references to d_language_data.
2949 * f-lang.c (f_language_data): Delete.
2950 (f_language): Remove references to f_language_data.
2951 * go-lang.c (go_language_data): Delete.
2952 (go_language): Remove references to go_language_data.
2953 * language.c (unknown_language_data): Delete.
2954 (unknown_language): Remove references to unknown_language_data.
2955 (auto_language_data): Delete.
2956 (auto_language): Remove references to auto_language_data.
2957 * language.h (language_data): Delete struct.
2958 (language_defn): No longer inherit from language_data.
2959 * m2-lang.c (m2_language_data): Delete.
2960 (m2_language): Remove references to m2_language_data.
2961 * objc-lang.c (objc_language_data): Delete.
2962 (objc_language): Remove references to objc_language_data.
2963 * opencl-lang.c (opencl_language_data): Delete.
2964 (opencl_language): Remove references to opencl_language_data.
2965 * p-lang.c (pascal_language_data): Delete.
2966 (pascal_language): Remove references to pascal_language_data.
2967 * rust-lang.c (rust_language_data): Delete.
2968 (rust_language): Remove references to rust_language_data.
2969
b7c6e27d
AB
29702020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2971
2972 * ada-lang.c (ada_language_data): Remove la_op_print_tab
2973 initializer.
2974 (ada_language::opcode_print_table): New member function.
2975 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
2976 (c_language::opcode_print_table): New member function.
2977 (cplus_language_data): Remove la_op_print_tab initializer.
2978 (cplus_language::opcode_print_table): New member function.
2979 (asm_language_data): Remove la_op_print_tab initializer.
2980 (asm_language::opcode_print_table): New member function.
2981 (minimal_language_data): Remove la_op_print_tab initializer.
2982 (minimal_language::opcode_print_table): New member function.
2983 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
2984 (d_language::opcode_print_table): New member function.
2985 * expprint.c (print_subexp_standard): Update call to
2986 opcode_print_table.
2987 (op_string): Likewise.
2988 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
2989 (f_language::opcode_print_table): New member function.
2990 * go-lang.c (go_language_data): Remove la_op_print_tab
2991 initializer.
2992 (go_language::opcode_print_table): New member function.
2993 * language.c (unknown_language_data): Remove la_op_print_tab
2994 initializer.
2995 (unknown_language::opcode_print_table): New member function.
2996 (auto_language_data): Remove la_op_print_tab initializer.
2997 (auto_language::opcode_print_table): New member function.
2998 * language.h (language_data): Remove la_op_print_tab field.
2999 (language_defn::opcode_print_table): Declare new member function.
3000 * m2-lang.c (m2_language_data): Remove la_op_print_tab
3001 initializer.
3002 (m2_language::opcode_print_table): New member function.
3003 * objc-lang.c (objc_language_data): Remove la_op_print_tab
3004 initializer.
3005 (objc_language::opcode_print_table): New member function.
3006 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
3007 initializer.
3008 (opencl_language::opcode_print_table): New member function.
3009 * p-lang.c (pascal_language_data): Remove la_op_print_tab
3010 initializer.
3011 (pascal_language::opcode_print_table): New member function.
3012 * rust-lang.c (rust_language_data): Remove la_op_print_tab
3013 initializer.
3014 (rust_language::opcode_print_table): New member function.
3015
5aba6ebe
AB
30162020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3017
3018 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
3019 (ada_language::expression_ops): New member function.
3020 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
3021 (c_language::expression_ops): New member function.
3022 (cplus_language_data): Remove la_exp_desc initializer.
3023 (cplus_language::expression_ops): New member function.
3024 (asm_language_data): Remove la_exp_desc initializer.
3025 (asm_language::expression_ops): New member function.
3026 (minimal_language_data): Remove la_exp_desc initializer.
3027 (minimal_language::expression_ops): New member function.
3028 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
3029 (d_language::expression_ops): New member function.
3030 * eval.c (evaluate_subexp): Update call to expression_ops.
3031 * expprint.c (print_subexp): Likewise.
3032 (op_name): Likewise.
3033 (dump_subexp_body): Likewise.
3034 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
3035 (f_language::expression_ops): New member function.
3036 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
3037 (go_language::expression_ops): New member function.
3038 * language.c (language_defn::expression_ops): New function.
3039 (unknown_language_data): Remove la_exp_desc initializer.
3040 (auto_language_data): Likewise.
3041 * language.h (language_data): Remove la_exp_desc field.
3042 (language_defn::expression_ops): Declare new member function.
3043 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
3044 (m2_language::expression_ops): New member function.
3045 * objc-lang.c (objc_language_data): Remove la_exp_desc
3046 initializer.
3047 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
3048 initializer.
3049 (opencl_language::expression_ops): New member function.
3050 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
3051 * parse.c (operator_length): Update call to expression_ops.
3052 (exp_iterate): Likewise.
3053 * rust-lang.c (rust_language_data): Remove la_exp_desc
3054 initializer.
3055 (ruse_language::expression_ops): New member function.
3056
b63a3f3f
AB
30572020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3058
3059 * ada-lang.c (ada_language_data): Remove la_varobj_ops
3060 initializer.
3061 (ada_language::varobj_ops): New member function.
3062 * c-lang.c (c_language_data): Remove la_varobj_ops
3063 initializer.
3064 (cplus_language_data): Likewise.
3065 (cplus_language::varobj_ops): New member function.
3066 (asm_language_data): Remove la_varobj_ops initializer.
3067 (minimal_language_data): Likewise.
3068 * d-lang.c (d_language_data): Likewise.
3069 * f-lang.c (f_language_data): Likewise.
3070 * go-lang.c (go_language_data): Likewise.
3071 * language.c (language_defn::varobj_ops): New function.
3072 (unknown_language_data): Remove la_varobj_ops
3073 initializer.
3074 (auto_language_data): Likewise.
3075 * language.h (language_data): Remove la_varobj_ops field.
3076 (language_defn::varobj_ops): Declare new member function.
3077 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
3078 * objc-lang.c (objc_language_data): Likewise.
3079 * opencl-lang.c (opencl_language_data): Likewise.
3080 * p-lang.c (pascal_language_data): Likewise.
3081 * rust-lang.c (rust_language_data): Likewise.
3082 * varobj.c (varobj_create): Update call to varobj_ops.
3083 * varobj.h (default_varobj_ops): Delete define.
3084
1ac14a04
AB
30852020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3086
3087 * ada-lang.c (ada_language_data): Remove la_macro_expansion
3088 initializer.
3089 * c-lang.c (c_language_data): Likewise.
3090 (c_language::macro_expansion): New member function.
3091 (cplus_language_data): Likewise.
3092 (cplus_language::macro_expansion): New member function.
3093 (asm_language_data): Likewise.
3094 (asm_language::macro_expansion): New member function.
3095 (minimal_language_data): Likewise.
3096 (minimal_language::macro_expansion): New member function.
3097 * d-lang.c (d_language_data): Remove la_macro_expansion
3098 initializer.
3099 * f-lang.c (f_language_data): Likewise.
3100 * go-lang.c (go_language_data): Likewise.
3101 * language.c (unknown_language_data): Likewise.
3102 (auto_language_data): Likewise.
3103 * language.h (language_data): Remove la_macro_expansion field.
3104 (language_defn::macro_expansion): New member function.
3105 * m2-lang.c (m2_language_data): Remove la_macro_expansion
3106 initializer.
3107 * objc-lang.c (objc_language_data): Likewise.
3108 (objc_language::macro_expansion): New member function.
3109 * opencl-lang.c (opencl_language_data): Likewise.
3110 (opencl_language::macro_expansion): New member function.
3111 * p-lang.c (pascal_language_data): Remove la_macro_expansion
3112 initializer.
3113 * rust-lang.c (rust_language_data): Likewise.
3114 * symtab.c (default_collect_symbol_completion_matches_break_on):
3115 Update call to macro_expansion.
3116
3a3440fb
AB
31172020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3118
3119 * ada-lang.c (ada_language_data): Remove la_array_ordering
3120 initializer.
3121 * c-lang.c (c_language_data): Likewise.
3122 (cplus_language_data): Likewise.
3123 (asm_language_data): Likewise.
3124 (minimal_language_data): Likewise.
3125 * d-lang.c (d_language_data): Likewise.
3126 * dwarf2/read.c (read_array_order): Update for call to
3127 array_ordering.
3128 * f-lang.c (f_language_data): Remove la_array_ordering
3129 initializer.
3130 (f_language::array_ordering): New member function.
3131 * go-lang.c (go_language_data): Remove la_array_ordering
3132 initializer.
3133 * language.c (unknown_language_data): Likewise.
3134 (auto_language_data): Likewise.
3135 * language.h (language_data): Delete la_array_ordering field.
3136 (language_defn::array_ordering): New member function.
3137 * m2-lang.c (m2_language_data): Remove la_array_ordering
3138 initializer.
3139 * objc-lang.c (objc_language_data): Likewise.
3140 * opencl-lang.c (opencl_language_data): Likewise.
3141 * p-lang.c (pascal_language_data): Likewise.
3142 * rust-lang.c (rust_language_data): Likewise.
3143
0d201fa4
AB
31442020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3145
3146 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
3147 initializer.
3148 * c-lang.c (c_language_data): Likewise.
3149 (cplus_language_data): Likewise.
3150 (asm_language_data): Likewise.
3151 (minimal_language_data): Likewise.
3152 * d-lang.c (d_language_data): Likewise.
3153 * f-lang.c (f_language_data): Likewise.
3154 (f_language::case_sensitivity): New member function.
3155 * go-lang.c (go_language_data): Remove la_case_sensitivity
3156 initializer.
3157 * language.c (enum case_mode): Moved here from language.h.
3158 (case_mode): Make static.
3159 (show_case_command): Update for case_sensitivity being a method.
3160 (set_case_command): Likewise.
3161 (set_range_case): Likewise.
3162 (unknown_language_data): Remove la_case_sensitivity initializer.
3163 (auto_language_data): Likewise.
3164 * language.h (case_mode): Delete, move enum declaration to
3165 language.c.
3166 (language_data): Delete la_case_sensitivity field.
3167 (language_defn::case_sensitivity): New member function.
3168 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
3169 initializer.
3170 * objc-lang.c (objc_language_data): Likewise.
3171 * opencl-lang.c (opencl_language_data): Likewise.
3172 * p-lang.c (pascal_language_data): Likewise.
3173 * rust-lang.c (rust_language_data): Likewise.
3174
efdf6a73
AB
31752020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3176
3177 * ada-lang.c (ada_language_data): Remove la_range_check
3178 initializer.
3179 * c-lang.c (c_language_data): Likewise.
3180 (cplus_language_data): Likewise.
3181 (asm_language_data): Likewise.
3182 (minimal_language_data): Likewise.
3183 * d-lang.c (d_language_data): Likewise.
3184 * f-lang.c (f_language_data): Likewise.
3185 (f_language::range_checking_on_by_default): New member function.
3186 * go-lang.c (go_language_data): Remove la_range_check initializer.
3187 * language.c (enum range_mode): Moved here from language.h.
3188 (range_mode): Made static.
3189 (show_range_command): Update to use
3190 range_checking_on_by_default.
3191 (set_range_command): Likewise.
3192 (set_range_case): Likewise.
3193 (unknown_language_data): Remove la_range_check initializer.
3194 (auto_language_data): Likewise.
3195 * language.h (range_mode): Delete. Enum definition moved to
3196 language.c.
3197 (language_data): Remove la_range_check field.
3198 (language_defn::range_checking_on_by_default): New member
3199 function.
3200 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
3201 (m2_language::range_checking_on_by_default): New member function.
3202 * objc-lang.c (objc_language_data): Remove la_range_check
3203 initializer.
3204 * opencl-lang.c (opencl_language_data): Likewise.
3205 * p-lang.c (pascal_language_data): Likewise.
3206 (pascal_language::range_checking_on_by_default): New member
3207 function.
3208 * rust-lang.c (rust_language_data): Remove la_range_check
3209 initializer.
3210 (rust_language::range_checking_on_by_default): New member
3211 function.
3212
bf92aec5
AB
32132020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3214
3215 * dwarf2/read.c (dwarf2_physname): Remove special case for
3216 language_go.
3217 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
3218 member function.
3219
d3355e4d
AB
32202020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3221
3222 * ada-lang.c (ada_language_data): Remove
3223 la_store_sym_names_in_linkage_form_p initializer.
3224 (ada_language::store_sym_names_in_linkage_form_p): New member
3225 function.
3226 * c-lang.c (c_language_data): Remove
3227 la_store_sym_names_in_linkage_form_p initializer.
3228 (c_language::store_sym_names_in_linkage_form_p): New member
3229 function.
3230 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
3231 initializer.
3232 (asm_language_data): Likewise.
3233 (asm_language::store_sym_names_in_linkage_form_p): New member
3234 function.
3235 (minimal_language_data): Remove
3236 la_store_sym_names_in_linkage_form_p initializer.
3237 (minimal_language::store_sym_names_in_linkage_form_p): New member
3238 function.
3239 * d-lang.c (d_language_data): Remove
3240 la_store_sym_names_in_linkage_form_p initializer.
3241 * dwarf2/read.c (dwarf2_physname): Update call to
3242 store_sym_names_in_linkage_form_p.
3243 * f-lang.c (f_language_data): Remove
3244 la_store_sym_names_in_linkage_form_p initializer.
3245 * go-lang.c (go_language_data): Remove
3246 la_store_sym_names_in_linkage_form_p initializer.
3247 * language.c (unknown_language_data): Remove
3248 la_store_sym_names_in_linkage_form_p initializer.
3249 (unknown_language::store_sym_names_in_linkage_form_p): New member
3250 function.
3251 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
3252 initializer.
3253 (auto_language::store_sym_names_in_linkage_form_p): New member
3254 function.
3255 * language.h (language_data): Remove
3256 la_store_sym_names_in_linkage_form_p member variable.
3257 (language_defn::store_sym_names_in_linkage_form_p): New member
3258 function.
3259 * m2-lang.c (m2_language_data): Remove
3260 la_store_sym_names_in_linkage_form_p initializer.
3261 * objc-lang.c (objc_language_data): Likewise.
3262 * opencl-lang.c (opencl_language_data): Likewise.
3263 * p-lang.c (pascal_language_data): Likewise.
3264 * rust-lang.c (rust_language_data): Likewise.
3265
22c12a6c
AB
32662020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3267
3268 * ada-lang.c (ada_language_data): Remove string_lower_bound
3269 initializer.
3270 * c-lang.c (c_language_data): Likewise.
3271 (cplus_language_data): Likewise.
3272 (asm_language_data): Likewise.
3273 (minimal_language_data): Likewise.
3274 * d-lang.c (d_language_data): Likewise.
3275 * f-lang.c (f_language_data): Likewise.
3276 * go-lang.c (go_language_data): Likewise.
3277 * language.c (unknown_language_data): Likewise.
3278 (auto_language_data): Likewise.
3279 * language.h (language_data): Remove string_lower_bound field.
3280 (language_defn::string_lower_bound): New member function.
3281 * m2-lang.c (m2_language_data): Remove string_lower_bound
3282 initializer.
3283 (m2_language::string_lower_bound): New member function.
3284 * objc-lang.c (objc_language_data): Remove string_lower_bound
3285 initializer.
3286 * opencl-lang.c (opencl_language_data): Likewise.
3287 * p-lang.c (pascal_language_data): Likewise.
3288 * rust-lang.c (rust_language_data): Likewise.
3289 * valops.c (value_cstring): Update call to string_lower_bound.
3290 (value_string): Likewise.
3291 * value.c (allocate_repeated_value): Likewise.
3292
1c236ddd
AB
32932020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3294
3295 * valops.c (value_repeat): Fix incorrect argument name in comment.
3296
67bd3fd5
AB
32972020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3298
3299 * ada-lang.c (ada_language_data): Remove c_style_arrays
3300 initializer.
3301 (ada_language::c_style_arrays_p): New member fuction.
3302 * c-lang.c (c_language_data): Remove c_style_arrays
3303 initializer.
3304 (cplus_language_data): Likewise.
3305 (asm_language_data): Likewise.
3306 (minimal_language_data): Likewise.
3307 * d-lang.c (d_language_data): Likewise.
3308 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
3309 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
3310 (f_language::c_style_arrays_p): New member function.
3311 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
3312 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
3313 * language.c (unknown_language_data): Remove c_style_arrays
3314 initializer.
3315 (auto_language_data): Likewise.
3316 * language.h (language_data): Remove c_style_arrays field.
3317 (language_defn::c_style_arrays_p): New member function.
3318 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
3319 (m2_language::c_style_arrays_p): New member function.
3320 * objc-lang.c (objc_language_data): Remove c_style_arrays
3321 initializer.
3322 * opencl-lang.c (opencl_language_data): Likewise.
3323 * p-lang.c (pascal_language_data): Likewise.
3324 * rust-lang.c (rust_language_data): Likewise.
3325 * valarith.c (value_subscript): Update call to c_style_arrays_p,
3326 and update local variable to a bool.
3327 * valops.c (value_cast): Update call to c_style_arrays_p.
3328 (value_array): Likewise.
3329 * value.c (coerce_array): Likewise.
3330
85967615
AB
33312020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3332
3333 * ada-lang.c (ada_language_data): Remove la_language initializer.
3334 * c-lang.c (c_language_data): Likewise.
3335 (cplus_language_data): Likewise.
3336 (asm_language_data): Likewise.
3337 (minimal_language_data): Likewise.
3338 * d-lang.c (d_language_data): Likewise.
3339 * f-lang.c (f_language_data): Likewise.
3340 * go-lang.c (go_language_data): Likewise.
3341 * language.c (unknown_language_data): Likewise.
3342 (auto_language_data): Likewise.
3343 * language.h (language_data): Remove la_language field.
3344 (language_defn::language_defn): Initialise la_language field.
3345 (language_defn::la_language): New member variable.
3346 * m2-lang.c (m2_language_data): Remove la_language field.
3347 * objc-lang.c (objc_language_data): Likewise.
3348 * opencl-lang.c (opencl_language_data): Likewise.
3349 * p-lang.c (pascal_language_data): Likewise.
3350 * rust-lang.c (rust_language_data): Likewise.
3351
e171d6f1
AB
33522020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3353
3354 * ada-lang.c (ada_extensions): Delete, moved into
3355 ada_language::filename_extensions.
3356 (ada_language_data): Remove la_filename_extensions initializer.
3357 (ada_language::filename_extensions): New member function.
3358 * c-lang.c (c_extensions): Delete, moved into
3359 c_language::filename_extensions.
3360 (c_language_data): Remove la_filename_extensions initializer.
3361 (c_language::filename_extensions): New member function.
3362 (cplus_extensions): Delete, moved into
3363 cplus_language::filename_extensions.
3364 (cplus_language_data): Remove la_filename_extensions initializer.
3365 (cplus_language::filename_extensions): New member function.
3366 (asm_extensions): Delete, moved into
3367 asm_language::filename_extensions.
3368 (asm_language_data): Remove la_filename_extensions initializer.
3369 (asm_language::filename_extensions): New member function.
3370 (minimal_language_data): Remove la_filename_extensions
3371 initializer.
3372 * d-lang.c (d_extensions): Delete, moved into
3373 d_language::filename_extensions.
3374 (d_language_data): Remove la_filename_extensions initializer.
3375 (d_language::filename_extensions): New member function.
3376 * f-lang.c (f_extensions): Delete, moved into
3377 f_language::filename_extensions.
3378 (f_language_data): Remove la_filename_extensions initializer.
3379 (f_language::filename_extensions): New member function.
3380 * go-lang.c (go_language_data): Remove la_filename_extensions
3381 initializer.
3382 * language.c (add_set_language_command): Update now that
3383 filename_extensions returns a vector.
3384 (unknown_language_data): Remove la_filename_extensions
3385 initializer.
3386 (auto_language_data): Likewise.
3387 * language.h (language_data): Remove la_filename_extensions field.
3388 (language_defn::filename_extensions): New member function.
3389 * m2-lang.c (m2_language_data): Remove la_filename_extensions
3390 initializer.
3391 * objc-lang.c (objc_extensions): Delete, moved into
3392 objc_language::filename_extensions.
3393 (objc_language_data): Remove la_filename_extensions initializer.
3394 (objc_language::filename_extensions): New member function.
3395 * opencl-lang.c (opencl_language_data): Remove
3396 la_filename_extensions initializer.
3397 * p-lang.c (pascal_extensions): Delete, moved into
3398 pascal_language::filename_extensions.
3399 (pascal_language_data): Remove la_filename_extensions initializer.
3400 (pascal_language::filename_extensions): New member function.
3401 * rust-lang.c (rust_extensions): Delete, moved into
3402 rust_language::filename_extensions.
3403 (rust_language_data): Remove la_filename_extensions initializer.
3404 (rust_language::filename_extensions): New member function.
3405 * symfile.c (add_filename_language): Add new assert.
3406
6f7664a9
AB
34072020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3408
3409 * ada-lang.c (ada_language_data): Remove la_name and
3410 la_natural_name initializers.
3411 (ada_language::name): New member function.
3412 (ada_language::natural_name): New member function.
3413 * c-lang.c (c_language_data): Remove la_name and
3414 la_natural_name initializers.
3415 (c_language::name): New member function.
3416 (c_language::natural_name): New member function.
3417 (cplus_language_data): Remove la_name and
3418 la_natural_name initializers.
3419 (cplus_language::name): New member function.
3420 (cplus_language::natural_name): New member function.
3421 (asm_language_data): Remove la_name and
3422 la_natural_name initializers.
3423 (asm_language::name): New member function.
3424 (asm_language::natural_name): New member function.
3425 (minimal_language_data): Remove la_name and
3426 la_natural_name initializers.
3427 (minimal_language::name): New member function.
3428 (minimal_language::natural_name): New member function.
3429 * compile/compile.c (compile_to_object): Update call to
3430 lanugage_defn::name.
3431 * d-lang.c (d_language_data): Remove la_name and
3432 la_natural_name initializers.
3433 (d_language::name): New member function.
3434 (d_language::natural_name): New member function.
3435 * expprint.c (print_subexp_standard): Update call to
3436 language_defn::name.
3437 (dump_raw_expression): Likewise
3438 (dump_prefix_expression): Likewise.
3439 * f-lang.c (f_language_data): Remove la_name and
3440 la_natural_name initializers.
3441 (f_language::name): New member function.
3442 (f_language::natural_name): New member function.
3443 * go-lang.c (go_language_data): Remove la_name and
3444 la_natural_name initializers.
3445 (go_language::name): New member function.
3446 (go_language::natural_name): New member function.
3447 * language.c (show_language_command): Update call to
3448 language_defn::name.
3449 (set_language_command): Likewise.
3450 (language_enum): Likewise.
3451 (language_str): Likewise.
3452 (add_set_language_command): Likewise, use
3453 language_defn::natural_name in the doc string.
3454 (unknown_language_data): Remove la_name and
3455 la_natural_name initializers.
3456 (unknown_language::name): New member function.
3457 (unknown_language::natural_name): New member function.
3458 (auto_language_data): Remove la_name and
3459 la_natural_name initializers.
3460 (auto_language::name): New member function.
3461 (auto_language::natural_name): New member function.
3462 (language_lookup_primitive_type_as_symbol): Update call to
3463 language_defn::name.
3464 * language.h (language_data): Remove la_name and la_natural_name
3465 member variables.
3466 (language_defn::name): New member function.
3467 (language_defn::natural_name): New member function.
3468 * m2-lang.c (m2_language_data): Remove la_name and
3469 la_natural_name initializers.
3470 (m2_language::name): New member function.
3471 (m2_language::natural_name): New member function.
3472 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
3473 language_defn::natural_name.
3474 * objc-lang.c (objc_language_data): Remove la_name and
3475 la_natural_name initializers.
3476 (objc_language::name): New member function.
3477 (objc_language::natural_name): New member function.
3478 * opencl-lang.c (opencl_language_data): Remove la_name and
3479 la_natural_name initializers.
3480 (opencl_language::name): New member function.
3481 (opencl_language::natural_name): New member function.
3482 * p-lang.c (pascal_language_data): Remove la_name and
3483 la_natural_name initializers.
3484 (pascal_language::name): New member function.
3485 (pascal_language::natural_name): New member function.
3486 * rust-lang.c (rust_language_data): Remove la_name and
3487 la_natural_name initializers.
3488 (rust_language::name): New member function.
3489 (rust_language::natural_name): New member function.
3490 * symtab.c (lookup_language_this): Update call to
3491 language_defn::name.
3492
5bae7c4e
AB
34932020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3494
3495 * ada-lang.c (ada_language_data): Remove la_name_of_this
3496 initializer.
3497 * ax-gdb.c (gen_expr): Update call to name_of_this.
3498 * c-exp.y (classify_name): Likewise.
3499 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
3500 (cplus_language_data): Likewise.
3501 (cplus_language::name_of_this): New member function.
3502 (asm_language_data): Remove la_name_of_this initializer.
3503 (minimal_language_data): Likewise.
3504 * d-lang.c (d_language_data): Likewise.
3505 (d_language::name_of_this): New member function.
3506 * expprint.c (print_subexp_standard): Update call to name_of_this.
3507 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
3508 * go-lang.c (go_language_data): Likewise.
3509 * language.c (unknown_language_data): Likewise.
3510 (unknown_language::name_of_this): New member function.
3511 (auto_language_data): Remove la_name_of_this initializer.
3512 (auto_language::name_of_this): New member function.
3513 * language.h (language_data): Delete la_name_of_this member
3514 variable.
3515 (language_defn::name_of_this): New member function.
3516 * m2-lang.c (m2_language_data): Remove la_name_of_this
3517 initializer.
3518 * objc-lang.c (objc_language_data): Likewise.
3519 (objc_language::name_of_this): New member function.
3520 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
3521 initializer.
3522 * p-lang.c (pascal_language_data): Likewise.
3523 (pascal_language::name_of_this): New member function.
3524 * rust-lang.c (rust_language_data): Remove la_name_of_this
3525 initializer.
3526 * symtab.c (lookup_language_this): Update call to name_of_this.
3527 (lookup_symbol_aux): Likewise.
3528 * valops.c (value_of_this): Likewise.
3529
22e3f3ed
AB
35302020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3531
3532 * ada-lang.c (ada_language_data): Remove
3533 la_struct_too_deep_ellipsis initializer.
3534 (ada_language::struct_too_deep_ellipsis): New member function.
3535 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
3536 initializer.
3537 (cplus_language_data): Likewise.
3538 (asm_language_data): Likewise.
3539 (minimal_language_data): Likewise.
3540 * cp-valprint.c (cp_print_value): Update call to
3541 struct_too_deep_ellipsis.
3542 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
3543 initializer.
3544 * f-lang.c (f_language_data): Likewise.
3545 (f_language::struct_too_deep_ellipsis): New member function.
3546 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
3547 initializer.
3548 * language.c (unknown_language_data): Likewise.
3549 (auto_language_data): Likewise.
3550 * language.h (language_data): Delete la_struct_too_deep_ellipsis
3551 member variable.
3552 (language_defn::struct_too_deep_ellipsis): New member function.
3553 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
3554 initializer.Q
3555 * objc-lang.c (objc_language_data): Likewise.
3556 * opencl-lang.c (opencl_language_data): Likewise.
3557 * p-lang.c (pascal_language_data): Likewise.
3558 * rust-lang.c (rust_language_data): Likewise.
3559 * valprint.c (val_print_check_max_depth): Update call to
3560 struct_too_deep_ellipsis.
3561
ed29e1c7
FW
35622020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
3563
3564 * MAINTAINERS (Write After Approval): Add myself.
3565
12d8f940
TT
35662020-09-15 Tom Tromey <tom@tromey.com>
3567
3568 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
3569 Remove.
3570
6b5a7bc7
TT
35712020-09-15 Tom Tromey <tom@tromey.com>
3572
3573 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
3574 and TYPE_CODE_METHODPTR cases.
3575 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
3576 (c_value_print_inner): Update.
3577 * valprint.c (generic_value_print_memberptr): New function, from
3578 c_value_print_memberptr.
3579 (generic_value_print): Use it. Call cplus_print_method_ptr.
3580
47f0e2ff
TT
35812020-09-15 Tom Tromey <tromey@adacore.com>
3582
3583 * python/python-internal.h (PyInt_FromLong): Remove define.
3584 * python/py-value.c (convert_value_from_python): Use
3585 gdb_py_object_from_longest.
3586 * python/py-type.c (typy_get_code): Use
3587 gdb_py_object_from_longest.
3588 * python/py-symtab.c (salpy_get_line): Use
3589 gdb_py_object_from_longest.
3590 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
3591 gdb_py_object_from_longest.
3592 * python/py-record.c (recpy_gap_reason_code): Use
3593 gdb_py_object_from_longest.
3594 * python/py-record-btrace.c (recpy_bt_insn_size)
3595 (recpy_bt_func_level, btpy_list_count): Use
3596 gdb_py_object_from_longest.
3597 * python/py-infthread.c (gdbpy_create_ptid_object): Use
3598 gdb_py_object_from_longest. Fix error handling.
3599 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
3600 gdb_py_object_from_longest.
3601 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
3602 gdb_py_object_from_longest.
3603 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
3604 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
3605 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
3606
512116ce
TT
36072020-09-15 Tom Tromey <tromey@adacore.com>
3608
3609 * python/python.c (gdbpy_parameter_value): Use
3610 gdb_py_object_from_ulongest.
3611
4ab1029c
TT
36122020-09-15 Tom Tromey <tromey@adacore.com>
3613
3614 * python/py-infevents.c (create_register_changed_event_object):
3615 Use gdb_py_object_from_longest.
3616 * python/py-exitedevent.c (create_exited_event_object): Use
3617 gdb_py_object_from_longest.
3618
062534d4
TT
36192020-09-15 Tom Tromey <tromey@adacore.com>
3620
3621 * python/python.c (gdbpy_parameter_value): Use
3622 gdb_py_object_from_longest.
3623 * python/py-type.c (convert_field, typy_range): Use
3624 gdb_py_object_from_longest.
3625 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
3626 gdb_py_object_from_longest.
3627 * python/py-lazy-string.c (stpy_get_length): Use
3628 gdb_py_object_from_longest.
3629 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
3630 gdb_py_object_from_longest.
3631 * python/py-infevents.c (create_memory_changed_event_object): Use
3632 gdb_py_object_from_longest.
3633 * python/py-inferior.c (infpy_get_num): Use
3634 gdb_py_object_from_longest.
3635 (infpy_get_pid): Likewise.
3636
d1cab987
TT
36372020-09-15 Tom Tromey <tromey@adacore.com>
3638
3639 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
3640 defines.
3641 * python/py-value.c (valpy_long): Use
3642 gdb_py_object_from_ulongest.
3643 * python/py-symtab.c (salpy_get_pc): Use
3644 gdb_py_object_from_ulongest.
3645 (salpy_get_last): Likewise.
3646 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
3647 gdb_py_object_from_ulongest.
3648 * python/py-lazy-string.c (stpy_get_address): Use
3649 gdb_py_object_from_ulongest.
3650 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
3651 * python/py-arch.c (archpy_disassemble): Use
3652 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
3653 error handling.
3654
4bde49dc
TT
36552020-09-15 Tom Tromey <tromey@adacore.com>
3656
3657 * python/python-internal.h (gdb_py_long_from_longest): Remove
3658 defines.
3659 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
3660 * python/py-type.c (convert_field, typy_get_sizeof): Use
3661 gdb_py_object_from_longest.
3662 * python/py-record-btrace.c (btpy_list_index): Use
3663 gdb_py_object_from_longest.
3664
37431074
TT
36652020-09-15 Tom Tromey <tromey@adacore.com>
3666
3667 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
3668 * python/py-record.c (recpy_element_number): Use
3669 gdb_py_object_from_longest.
3670 (recpy_gap_number): Likewise.
3671
cbe25684
TT
36722020-09-15 Tom Tromey <tromey@adacore.com>
3673
3674 * top.c (ui::ui): Update.
3675 (highest_ui_num): Remove.
3676 * top.h (struct ui) <num>: Remove.
3677
db92ac45
TT
36782020-09-15 Tom Tromey <tromey@adacore.com>
3679
3680 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
3681 * ui-style.c (ansi_regex_text): Now array.
3682 * rust-exp.y (number_regex_text): Now array.
3683 * linespec.c (linespec_quote_characters): Now array.
3684 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
3685 Now arrays.
3686
d2b31b67
SM
36872020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3688
3689 * debuginfod-support.c (debuginfod_client_deleter): New.
3690 (debuginfod_client_up): New.
3691 (debuginfod_init): Return debuginfod_client_up.
3692 (debuginfod_source_query): Adjust.
3693 (debuginfod_debuginfo_query): Adjust.
3694
3246bd8e
SM
36952020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3696
3697 * debuginfod-support.c (debuginfod_source_query): Use
3698 make_unique_xstrdup.
3699
10242f36
SM
37002020-09-14 Simon Marchi <simon.marchi@efficios.com>
3701
3702 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
3703 with `type::instance_flags`.
3704
e1044e6a
MM
37052020-09-14 Michael Mullin <masmullin@gmail.com>
3706
3707 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
3708 Remove baton parameter.
3709
04902b09
PA
37102020-09-14 Pedro Alves <pedro@palves.net>
3711
3712 * Makefile.in (SELFTESTS_SRCS): Add
3713 unittests/enum-flags-selftests.c.
3714 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
3715 btrace_function_flags instead of enum btrace_function_flag.
3716 * compile/compile-c-types.c (convert_qualified): Use
3717 enum_flags::raw.
3718 * compile/compile-cplus-symbols.c (convert_one_symbol)
3719 (convert_symbol_bmsym):
3720 * compile/compile-cplus-types.c (compile_cplus_convert_method)
3721 (compile_cplus_convert_struct_or_union_methods)
3722 (compile_cplus_instance::convert_qualified_base):
3723 * go-exp.y (parse_string_or_char): Add cast to int.
3724 * unittests/enum-flags-selftests.c: New file.
3725 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
3726 type to btrace_thread_flags from btrace_thread_flag.
3727 (record_btrace_cancel_resume, record_btrace_step_thread): Change
3728 local's type to btrace_thread_flags from btrace_thread_flag. Add
3729 cast in DEBUG call.
3730
69896a2c
PA
37312020-09-14 Pedro Alves <pedro@palves.net>
3732
3733 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
3734 * gdbtypes.c (address_space_name_to_int): Rename to ...
3735 (address_space_name_to_type_instance_flags): ... this.
3736 (address_space_int_to_name): Rename to ...
3737 (address_space_type_instance_flags_to_name): ... this.
3738 * gdbtypes.h (address_space_name_to_int): Rename to ...
3739 (address_space_name_to_type_instance_flags): ... this.
3740 (address_space_int_to_name): Rename to ...
3741 (address_space_type_instance_flags_to_name): ... this.
3742 * type-stack.c (type_stack::insert): Adjust to rename.
3743 * type-stack.h (type_stack::insert): Likewise.
3744
314ad88d
PA
37452020-09-14 Pedro Alves <pedro@palves.net>
3746 Andrew Burgess <andrew.burgess@embecosm.com>
3747
3748 * avr-tdep.c (avr_address_class_type_flags): Return
3749 type_instance_flags.
3750 (avr_address_class_type_flags_to_name): Take a
3751 type_instance_flags.
3752 (avr_address_class_name_to_type_flags): Return bool and take a
3753 type_instance_flags.
3754 * d-lang.c (build_d_types): Use type::set_instance_flags.
3755 * ft32-tdep.c (ft32_address_class_type_flags): Return
3756 type_instance_flags.
3757 (ft32_address_class_type_flags_to_name): Take a
3758 type_instance_flags.
3759 (ft32_address_class_name_to_type_flags): Return bool and take a
3760 type_instance_flags.
3761 (ft32_gdbarch_init): Use type::set_instance_flags.
3762 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
3763 * gdbarch.h, gdbarch.c: Regenerate.
3764 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
3765 (address_class_name_to_type_flags): Use type_instance_flags and
3766 bool.
3767 * gdbtypes.c (address_space_name_to_int)
3768 (address_space_int_to_name, make_qualified_type): Use
3769 type_instance_flags.
3770 (make_qualified_type): Use type_instance_flags and
3771 type::set_instance_flags.
3772 (make_type_with_address_space, make_cv_type, make_vector_type)
3773 (check_typedef): Use type_instance_flags.
3774 (recursive_dump_type): Cast type_instance_flags to unsigned for
3775 printing.
3776 (copy_type_recursive): Use type::set_instance_flags.
3777 (gdbtypes_post_init): Use type::set_instance_flags.
3778 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
3779 <m_instance_flags>: ... this.
3780 <instance_flags, set_instance_flags>: New methods.
3781 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
3782 (SET_TYPE_INSTANCE_FLAGS): New.
3783 (address_space_name_to_int, address_space_int_to_name)
3784 (make_type_with_address_space): Pass flags using
3785 type_instance_flags instead of int.
3786 * stabsread.c (cleanup_undefined_types_noname): Use
3787 type::set_instance_flags.
3788 * s390-tdep.c (s390_address_class_type_flags): Return
3789 type_instance_flags.
3790 (s390_address_class_type_flags_to_name): Take a
3791 type_instance_flags.
3792 (s390_address_class_name_to_type_flags): Return bool and take a
3793 type_instance_flags.
3794 * type-stack.c (type_stack::follow_types): Use
3795 type_instance_flags.
3796 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
3797
27087b7f
TT
37982020-09-14 Tom Tromey <tromey@adacore.com>
3799
3800 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
3801 * x86-tdep.c (x86_is_thunk_register_name)
3802 (x86_in_indirect_branch_thunk): Update.
3803 * sparc64-tdep.c (sparc64_fpu_register_names)
3804 (sparc64_cp0_register_names, sparc64_register_names)
3805 (sparc64_pseudo_register_names): Now const.
3806 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
3807 cp0_registers_num>: Now const.
3808 * sparc-tdep.c (sparc_core_register_names)
3809 (sparc32_fpu_register_names, sparc32_cp0_register_names)
3810 (sparc32_pseudo_register_names): Now const.
3811 (validate_tdesc_registers): Update.
3812 * rust-lang.c (rust_extensions): Now const.
3813 * p-lang.c (p_extensions): Now const.
3814 * objc-lang.c (objc_extensions): Now const.
3815 * nto-tdep.c (nto_thread_state_str): Now const.
3816 * moxie-tdep.c (moxie_register_names): Now const.
3817 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
3818 Now const.
3819 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
3820 (mips_linux_reg_names): Now const.
3821 (mips_gdbarch_init): Update.
3822 * microblaze-tdep.c (microblaze_register_names): Now const.
3823 * m68k-tdep.c (m68k_register_names): Now const.
3824 * m32r-tdep.c (m32r_register_names): Now const.
3825 * ia64-tdep.c (ia64_register_names): Now const.
3826 * i386-tdep.h (struct gdbarch_tdep) <register_names,
3827 ymmh_register_names, ymm16h_regnum, mpx_register_names,
3828 k_register_names, zmmh_register_names, xmm_avx512_register_names,
3829 ymm_avx512_register_names, pkeys_register_names>: Now const.
3830 * i386-tdep.c (i386_register_names, i386_zmm_names)
3831 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
3832 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
3833 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
3834 * f-lang.c (f_extensions): Now const.
3835 * d-lang.c (d_extensions): Now const.
3836 * csky-tdep.c (csky_register_names): Now const.
3837 * charset.c (default_charset_names, charset_enum): Now const.
3838 (_initialize_charset): Update.
3839 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
3840 const.
3841 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
3842 (bsd_uthread_solib_loaded): Update.
3843 (bsd_uthread_state): Now const.
3844 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
3845 (amd64_ymm_avx512_names, amd64_ymmh_names)
3846 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
3847 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
3848 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
3849 (amd64_dword_names): Now const.
3850 * agent.c (can_use_agent_enum): Now const.
3851 * ada-tasks.c (task_states, long_task_states): Now const.
3852 * ada-lang.c (known_runtime_file_name_patterns)
3853 (known_auxiliary_function_name_patterns, attribute_names)
3854 (standard_exc, ada_extensions): Now const.
3855
89806626
SM
38562020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3857
3858 * bcache.h (struct bcache) <bcache>: Remove constructor.
3859 <m_hash_function, m_compare_function>: Remove.
3860 <~bcache>: Make virtual.
3861 <compare>: Remove static method, introduce virtual method.
3862 <default_hash>: Remove.
3863 <hash>: New virtual method.
3864 * bcache.c (bcache::expand_hash_table): Update.
3865 (bcache::insert): Update.
3866 (bcache::hash): New.
3867 (bcache::compare): Update comment and parameter names.
3868 * gdbtypes.c (types_deeply_equal): Update.
3869 * psymtab.h (struct psymbol_bcache): New struct.
3870 (class psymtab_storage) <psymtab_storage>: Make default.
3871 <psymbol_cache>: Change type to psymbol_bcache.
3872 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
3873 (psymbol_hash): Change to...
3874 (psymbol_bcache::hash): ... this.
3875 (psymbol_compare): Change to...
3876 (psymbol_bcache::compare): ... this.
3877
677c92fe
SM
38782020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3879
3880 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
3881 checking for initial lwp.
3882
3eba3a01
TT
38832020-09-14 Tom Tromey <tromey@adacore.com>
3884
3885 * m68k-tdep.c (m68k_extract_return_value): Use
3886 pointer_result_regnum.
3887 (m68k_store_return_value): Likewise.
3888 (m68k_reg_struct_return_p): Handle vectors and arrays.
3889 (m68k_return_value): Handle arrays.
3890 (m68k_svr4_return_value): Fix single-element aggregate handling.
3891 Handle long double. Adjust for embedded ABI.
3892 (m68k_svr4_init_abi): Set pointer_result_regnum.
3893 (m68k_embedded_init_abi): New function.
3894 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
3895 (m68k_osabi_sniffer): New function.
3896 (_initialize_m68k_tdep): Register osabi sniffer.
3897 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
3898 member.
3899
33f4dd48
SM
39002020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3901
3902 * xml-support.c (xml_fetch_content_from_file): Replace xfree
3903 with gdb::unique_xmalloc_ptr<char>.
3904
8400a90d
SM
39052020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3906
3907 * xml-support.h (xml_fetch_another): Change type to be a
3908 function_view.
3909 (xml_process_xincludes): Remove baton parameter.
3910 (xml_fetch_content_from_file): Change baton parameter to
3911 dirname.
3912 * xml-support.c (struct xinclude_parsing_data)
3913 <xinclude_parsing_data>: Remove baton parameter.
3914 <fetcher_baton>: Remove.
3915 (xinclude_start_include): Adjust.
3916 (xml_process_xincludes): Adjust.
3917 (xml_fetch_content_from_file): Replace baton parameter with
3918 dirname.
3919 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
3920 (xml_init_syscalls_info): Use a lambda.
3921 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
3922 (file_read_description_xml): Use a lambda.
3923 (fetch_available_features_from_target): Change baton parameter
3924 to target_ops.
3925 (target_read_description_xml): Use a lambda.
3926 (target_fetch_description_xml): Use a lambda.
3927 (string_read_description_xml): Update.
3928
04f5bab2
SM
39292020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3930
3931 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
3932 uses with type::endianity_is_not_default.
3933
db558e34
SM
39342020-09-14 Simon Marchi <simon.marchi@efficios.com>
3935
3936 * gdbtypes.h (struct type) <endianity_is_not_default,
3937 set_endianity_is_not_default>: New methods.
3938 (TYPE_ENDIANITY_NOT_DEFAULT): Use
3939 type::endianity_is_not_default, change all write call sites to
3940 use type::set_endianity_is_not_default.
3941
22c4c60c
SM
39422020-09-14 Simon Marchi <simon.marchi@efficios.com>
3943
3944 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
3945 uses with type::is_fixed_instance.
3946
9cdd0d12
SM
39472020-09-14 Simon Marchi <simon.marchi@efficios.com>
3948
3949 * gdbtypes.h (struct type) <is_fixed_instance,
3950 set_is_fixed_instance>: New methods.
3951 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
3952 write call sites to use type::set_is_fixed_instance.
3953
0becda7a
SM
39542020-09-14 Simon Marchi <simon.marchi@efficios.com>
3955
3956 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
3957 uses with type::is_gnu_ifunc.
3958
03cc7249
SM
39592020-09-14 Simon Marchi <simon.marchi@efficios.com>
3960
3961 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
3962 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
3963 use type::set_is_gnu_ifunc.
3964
3f46044c
SM
39652020-09-14 Simon Marchi <simon.marchi@efficios.com>
3966
3967 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
3968 uses with type::stub_is_supported.
3969
9baccff6
SM
39702020-09-14 Simon Marchi <simon.marchi@efficios.com>
3971
3972 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
3973 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
3974 use type::set_stub_is_supported.
3975
bd63c870
SM
39762020-09-14 Simon Marchi <simon.marchi@efficios.com>
3977
3978 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
3979 uses with type::is_vector.
3980
2062087b
SM
39812020-09-14 Simon Marchi <simon.marchi@efficios.com>
3982
3983 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
3984 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
3985 use type::set_is_vector.
3986
a409645d
SM
39872020-09-14 Simon Marchi <simon.marchi@efficios.com>
3988
3989 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
3990 uses with type::has_varargs.
3991
1d6286ed
SM
39922020-09-14 Simon Marchi <simon.marchi@efficios.com>
3993
3994 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
3995 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
3996 use type::set_has_varargs.
3997
7f9f399b
SM
39982020-09-14 Simon Marchi <simon.marchi@efficios.com>
3999
4000 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
4001 uses with type::is_prototyped.
4002
27e69b7a
SM
40032020-09-14 Simon Marchi <simon.marchi@efficios.com>
4004
4005 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
4006 New methods.
4007 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
4008 call sites to use type::set_is_prototyped.
4009
d2183968
SM
40102020-09-14 Simon Marchi <simon.marchi@efficios.com>
4011
4012 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
4013 uses with type::target_is_stub.
4014
8f53807e
SM
40152020-09-14 Simon Marchi <simon.marchi@efficios.com>
4016
4017 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
4018 New methods.
4019 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
4020 sites to use type::set_target_is_stub.
4021
e46d3488
SM
40222020-09-14 Simon Marchi <simon.marchi@efficios.com>
4023
4024 * gdbtypes.h (TYPE_STUB): Remove, replace all
4025 uses with type::is_stub.
4026
b4b73759
SM
40272020-09-14 Simon Marchi <simon.marchi@efficios.com>
4028
4029 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
4030 (TYPE_STUB): Use type::is_stub, change all write call sites to
4031 use type::set_is_stub.
4032
20ce4123
SM
40332020-09-14 Simon Marchi <simon.marchi@efficios.com>
4034
4035 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
4036 type::has_no_signedness.
4037
15152a54
SM
40382020-09-14 Simon Marchi <simon.marchi@efficios.com>
4039
4040 * gdbtypes.h (struct type) <has_no_signedness,
4041 set_has_no_signedness>: New methods.
4042 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
4043 call sites to use type::set_has_no_signedness.
4044
c6d940a9
SM
40452020-09-14 Simon Marchi <simon.marchi@efficios.com>
4046
4047 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
4048 type::is_unsigned.
4049
653223d3
SM
40502020-09-14 Simon Marchi <simon.marchi@efficios.com>
4051
4052 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
4053 methods.
4054 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
4055 sites to use type::set_is_unsigned.
4056
55ea94da 40572020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 4058 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 4059
e851246a
SM
4060 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
4061 pointer and stack frame offset when unwinding.
55ea94da 4062
6791b117
PA
40632020-09-13 Pedro Alves <pedro@palves.net>
4064
4065 * NEWS: Document "-break-insert --qualified".
4066 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
4067
77f2120b
PA
40682020-09-13 Pedro Alves <pedro@palves.net>
4069
4070 * linespec.c (classify_mtype, compare_msyms): Delete.
4071 (search_minsyms_for_name): Remove classification logic. Instead
4072 filter out trampoline symbols if we also found an external
4073 function of the same name.
4074
ed6a896c
JB
40752020-09-13 Joel Brobecker <brobecker@adacore.com>
4076
4077 * NEWS: Create a new section for the next release branch.
4078 Rename the section of the current branch, now that it has
4079 been cut.
4080
32aea73e
JB
40812020-09-13 Joel Brobecker <brobecker@adacore.com>
4082
4083 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
4084 * version.in: Bump version to 11.0.50.DATE-git.
4085
8087c3fa
JB
40862020-09-12 Joel Brobecker <brobecker@adacore.com>
4087
4088 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
4089
2a67f09d
FW
40902020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
4091 Felix Willgerodt <Felix.Willgerodt@intel.com>
4092
4093 * gdbarch.sh: Added bfloat16 type.
4094 * gdbarch.c: Regenerated.
4095 * gdbarch.h: Regenerated.
4096 * gdbtypes.c (floatformats_bfloat16): New struct.
4097 (gdbtypes_post_init): Add builtin_bfloat16.
4098 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
4099 (floatformats_bfloat16): New struct.
4100 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
4101 (i386_ymm_type): Add field "v16_bfloat16"
4102 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
4103 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
4104 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
4105 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
4106 * features/i386/64bit-avx512.xml: Add bfloat16 type.
4107 * features/i386/64bit-avx512.c: Regenerated.
4108 * features/i386/64bit-sse.xml: Add bfloat16 type.
4109 * features/i386/64bit-sse.c: Regenerated.
4110
1347d111
FW
41112020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
4112
4113 * i386-tdep.c (i386_zmm_type): Fix field names.
4114 (i386_ymm_type): Fix field names.
4115
7a4e8e7d
TBA
41162020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4117
4118 * breakpoint.c: Fix typo in the help message of the
4119 "set breakpoint condition-evaluation" command.
4120
cf4ac4be
KR
41212020-09-10 Kamil Rytarowski <n54@gmx.com>
4122
4123 * nbsd-nat.c: Include "nat/netbsd-nat.h".
4124 * (nbsd_nat_target::pid_to_exec_file)
4125 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
4126 (nbsd_nat_target::post_startup_inferior)
4127 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
4128 (nbsd_add_threads): Switch local code to common gdb/nat functions.
4129 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
4130 * (nbsd_thread_lister): Remove.
4131
f404573e
KR
41322020-09-10 Kamil Rytarowski <n54@gmx.com>
4133
4134 * fork-inferior.c (startup_inferior): Avoid double free.
4135
1ccb2c17
KR
41362020-09-10 Kamil Rytarowski <n54@gmx.com>
4137
4138 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
4139 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
4140
feedfcc7
KR
41412020-09-10 Kamil Rytarowski <n54@gmx.com>
4142
4143 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
4144 * netbsd-nat.c: Include <sys/ptrace.h>.
4145 * (netbsd_nat::enable_proc_events): Add.
4146
c489f8c6
KR
41472020-09-10 Kamil Rytarowski <n54@gmx.com>
4148
4149 * netbsd-nat.h: Include "gdbsupport/function-view.h".
4150 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4151 (netbsd_nat::for_each_thread): Add.
4152 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
4153 "gdbsupport/common-debug.h".
4154 * (netbsd_nat::netbsd_thread_lister)
4155 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4156 (netbsd_nat::for_each_thread): Add.
4157
330662f6
KR
41582020-09-10 Kamil Rytarowski <n54@gmx.com>
4159
4160 * netbsd-nat.h: Include <unistd.h>.
4161 * (netbsd_nat::pid_to_exec_file): Add.
4162 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
4163 * (netbsd_nat::pid_to_exec_file) Add.
4164
70b67307
KR
41652020-09-10 Kamil Rytarowski <n54@gmx.com>
4166
4167 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
4168
99cf6da6
KR
41692020-09-10 Kamil Rytarowski <n54@gmx.com>
4170
4171 * netbsd-nat.h: New file.
4172 * netbsd-nat.c: Likewise.
4173
1b788fb6
TT
41742020-09-09 Tom Tromey <tromey@adacore.com>
4175
4176 * ada-lang.c (remove_extra_symbols): Do not increment when
4177 removing an element
4178
03b0a45f
TT
41792020-09-08 Tom Tromey <tromey@adacore.com>
4180
4181 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
4182
3cae4447
TT
41832020-09-08 Tom Tromey <tromey@adacore.com>
4184
4185 PR win32/25302:
4186 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
4187 (gdb_bfd_init_data): New function.
4188 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
4189
7f08fd51
TBA
41902020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4191
4192 * infrun.c (fetch_inferior_event): Use
4193 `switch_to_target_no_thread` to switch the target.
4194
3e6ff933
TT
41952020-09-06 Tom Tromey <tom@tromey.com>
4196
4197 * symfile.h (dwarf2_free_objfile): Don't declare.
4198
e56798df
AKS
41992020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4200
4201 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
4202 to match 16 byte real/complex type generated by Flang compiler.
4203
8f5c6526
TV
42042020-09-03 Tom de Vries <tdevries@suse.de>
4205
4206 PR breakpoint/26546
4207 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
4208 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
4209
c5065df0
SM
42102020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
4211
4212 * maint.c (index_digits): New function.
4213 (struct maint_print_section_data): Remove.
4214 (print_bfd_section_info): Remove print_data parameter, add arg
4215 and index_digits.
4216 (print_objfile_section_info): Likewise.
4217 (print_bfd_section_info_maybe_relocated): Likewise (plus
4218 objfile).
4219 (maintenance_info_sections): Adjust calls.
4220
02c6f3f1
TT
42212020-09-02 Tom Tromey <tromey@adacore.com>
4222
4223 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
4224 for null pointers.
4225 (ada_varobj_adjust_for_child_access): Special-case null pointers.
4226
ef5e5b0b
SM
42272020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
4228
4229 * bcache.h (struct bcache) <insert>: Change type of `added` to
4230 pointer to bool.
4231 * bcache.c (bcache::insert): Likewise.
4232 * gdbtypes.c (check_types_worklist): Adjust.
4233 * psymtab.c (add_psymbol_to_bcache): Adjust.
4234
973695d6
KB
42352020-08-31 Kevin Buettner <kevinb@redhat.com>
4236
4237 * corelow.c (unordered_set): Include.
4238 (class core_target): Add field 'm_core_unavailable_mappings'.
4239 (core_target::build_file_mappings): Print only one warning
4240 per inaccessible file. Add unavailable/broken mappings
4241 to m_core_unavailable_mappings.
4242 (core_target::xfer_partial): Call...
4243 (core_target::xfer_memory_via_mappings): New method.
4244
264fc0e2
SM
42452020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4246
4247 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
4248 type to bool.
4249
2de01bdb
SM
42502020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4251
4252 * dwarf2/read.c (struct field_info): Fix indentation.
4253
f3bd50f1
SM
42542020-08-31 Simon Marchi <simon.marchi@efficios.com>
4255
4256 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
4257 ordering in comment.
4258 * frame.c (frame_id_eq): Fix indentation.
4259
22b9b4b0
SL
42602020-08-31 Scott Linder <scott@scottlinder.com>
4261 Simon Marchi <simon.marchi@efficios.com>
4262
4263 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
4264 inline frame ids in outer frame.
4265
84154d16
SM
42662020-08-31 Simon Marchi <simon.marchi@efficios.com>
4267
4268 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
4269 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
4270 (outer_frame_id): Use FID_STACK_OUTER instead of
4271 FID_STACK_INVALID.
4272 (frame_id_p): Don't check for outer_frame_id.
4273
8efaf6b3
SM
42742020-08-31 Simon Marchi <simon.marchi@efficios.com>
4275
4276 * frame-unwind.c (frame_unwind_got_optimized): Don't set
4277 regnum/frame in value. Call allocate_value_lazy.
4278 * frame.c (frame_unwind_register_value): Use
4279 val_print_not_saved.
4280
fe1fe7ea
SM
42812020-08-31 Simon Marchi <simon.marchi@efficios.com>
4282
4283 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
4284
f7c7700d
PA
42852020-08-29 Pedro Alves <pedro@palves.net>
4286
4287 * progspace.c (print_program_space): Use all_inferiors. Switch to
4288 the inferior before calling target_pid_to_str.
4289
e0814aae
TT
42902020-08-28 Tom Tromey <tom@tromey.com>
4291
4292 * xcoffread.c (xcoff_end_psymtab): Update comment.
4293 * dbxread.c (dbx_end_psymtab): Update comment.
4294
626d2320
TV
42952020-08-28 Tom de Vries <tdevries@suse.de>
4296
4297 PR breakpoint/26544
4298 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
4299 event_location.
4300 (create_breakpoint): Same.
4301 (base_breakpoint_decode_location): Same.
4302 (bkpt_create_sals_from_location): Same.
4303 (bkpt_decode_location): Same.
4304 (bkpt_probe_create_sals_from_location): Same.
4305 (bkpt_probe_decode_location): Same.
4306 (tracepoint_create_sals_from_location): Same.
4307 (tracepoint_decode_location): Same.
4308 (tracepoint_probe_decode_location): Same.
4309 (strace_marker_create_sals_from_location): Same.
4310 (strace_marker_decode_location): Same.
4311 (create_sals_from_location_default): Same.
4312 (decode_location_default): Same.
4313 * breakpoint.h (struct breakpoint_ops): Same.
4314 (create_breakpoint): Same.
4315 * linespec.h (decode_line_full): Same.
4316 * linespec.c (decode_line_full): Same. Throw error if
4317 result.size () == 0.
4318
df631783
PA
43192020-08-27 Pedro Alves <pedro@palves.net>
4320
4321 PR gdb/26524
4322 * breakpoint.c (until_break_fsm) <location_breakpoint,
4323 caller_breakpoint>: Delete fields.
4324 <breakpoints>: New field.
4325 <until_break_fsm>: Adjust to save a breakpoint vector instead of
4326 two individual breakpoints.
4327 (until_break_fsm::should_stop): Loop over breakpoints in the
4328 breakpoint vector.
4329 (until_break_fsm::clean_up): Adjust to clear the breakpoints
4330 vector.
4331 (until_break_command): Handle location expanding into multiple
4332 sals.
4333
b2b38aa4
PA
43342020-08-27 Pedro Alves <pedro@palves.net>
4335
4336 PR gdb/26523
4337 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
4338 bp_until breakpoints user-specified locations. Update intro
4339 comment.
4340
b886559f
SM
43412020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
4342
4343 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
4344 gdb_bfd_sections): New.
4345 * maint.c (print_bfd_section_info): Change param type to
4346 maint_print_section_data.
4347 (print_objfile_section_info): Likewise.
4348 (print_bfd_section_info_maybe_relocated): Likewise.
4349 (maintenance_info_sections): Use gdb_bfd_sections.
4350
4c6e63bf
SV
43512020-08-25 Shahab Vahedi <shahab@synopsys.com>
4352
4353 * MAINTAINERS: Add ARC target and maintainer.
4354
8d7f0635
AK
43552020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
4356
4357 * configure.tgt: ARC support for GNU/Linux.
4358 * Makefile.in (ALL_TARGET_OBJS): Likewise.
4359 * arc-linux-tdep.c: New file.
4360 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
4361 * arc-tdep.c (arc_write_pc): Use it.
4362
fdd8731b
SV
43632020-08-25 Shahab Vahedi <shahab@synopsys.com>
4364
4365 * arc-tdep.c (arc_check_for_hardware_loop): New.
4366 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
4367
22459524
SV
43682020-08-25 Shahab Vahedi <shahab@synopsys.com>
4369
4370 * arc-tdep.h: Include "gdbarch.h".
4371
995d3a19
SV
43722020-08-25 Shahab Vahedi <shahab@synopsys.com>
4373
4374 * arch/arc.h
4375 (arc_gdbarch_features): New class to stir the selection of target XML.
4376 (arc_create_target_description): Use FEATURES to choose XML target.
4377 (arc_lookup_target_description): Use arc_create_target_description
4378 to create _new_ target descriptions or return the already created
4379 ones if the FEATURES is the same.
4380 * arch/arc.c: Implementation of prototypes described above.
4381 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
4382 (arc_gdbarch_features_init): Initialize the FEATURES struct.
4383 * arc-tdep.c (*_feature_name): Make feature names consistent.
4384 (arc_register_feature): A new struct to hold information about
4385 registers of a particular target/feature.
4386 (arc_check_tdesc_feature): Check if XML provides registers in
4387 compliance with ARC_REGISTER_FEATURE structs.
4388 (arc_update_acc_reg_names): Add aliases for r58 and r59.
4389 (determine_*_reg_feature_set): Which feature name to look for.
4390 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
4391 (mach_type_to_arc_isa): Convert from a set of binutils machine types
4392 to expected ISA enums to be used in arc_gdbarch_features structs.
4393 * features/Makefile (FEATURE_XMLFILES): Add new files.
4394 * gdb/features/arc/v1-aux.c: New file.
4395 * gdb/features/arc/v1-aux.xml: Likewise.
4396 * gdb/features/arc/v1-core.c: Likewise.
4397 * gdb/features/arc/v1-core.xml: Likewise.
4398 * gdb/features/arc/v2-aux.c: Likewise.
4399 * gdb/features/arc/v2-aux.xml: Likewise.
4400 * gdb/features/arc/v2-core.c: Likewise.
4401 * gdb/features/arc/v2-core.xml: Likewise.
4402 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
4403
3945d2d7
GM
44042020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
4405 Andrew Burgess <andrew.burgess@embecosm.com>
4406
4407 PR m2/26372
fc5d6901 4408 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
4409 an assert. Remove single element array indexing pattern as the
4410 MULTI_SUBSCRIPT support will handle this case too.
4411
2677f2d3
SM
44122020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
4413
4414 * value.h (valprint_check_validity): Move declaration from
4415 here...
4416 * valprint.h (valprint_check_validity): ... to here.
4417
c426fddb
SM
44182020-08-24 Simon Marchi <simon.marchi@efficios.com>
4419
4420 * debug.h: New file.
4421 * debug.c (debug_prefixed_vprintf): New function.
4422 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
4423 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
4424
1eb8556f
SM
44252020-08-24 Simon Marchi <simon.marchi@efficios.com>
4426
4427 * infrun.h (infrun_debug_printf_1): New function declaration.
4428 (infrun_debug_printf): New macro.
4429 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
4430 throughout.
4431 (infrun_debug_printf): New function.
4432 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
4433 (handle_jit_event): Likewise.
4434
b8fff44e
MW
44352020-08-21 Mark Wielaard <mark@klomp.org>
4436
4437 * ada-lex.l: Extend register warnings diagnostics comment for g++.
4438
d19c3068
SM
44392020-08-22 Simon Marchi <simon.marchi@efficios.com>
4440
4441 * frame.c (enum class frame_id_status): New.
4442 (struct frame_info) <this_id::p>: Change type to frame_id_status.
4443 (fprintf_frame): Update.
4444 (compute_frame_id): Set frame id status to "computing" on entry.
4445 Set it back to "not_computed" on failure and to "computed" on
4446 success.
4447 (get_frame_id): Assert the frame id is not being computed.
4448 (create_sentinel_frame): Use frame_id_status::COMPUTED.
4449 (create_new_frame): Likewise.
4450 (frame_cleanup_after_sniffer): Update assert.
4451
b70e516e
SM
44522020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4453
4454 * regcache.c (pid_ptid_regcache_map): New type.
4455 (target_ptid_regcache_map): Remove.
4456 (target_pid_ptid_regcache_map): New type.
4457 (regcaches): Change type to target_pid_ptid_regcache_map.
4458 (get_thread_arch_aspace_regcache): Update.
4459 (regcache_thread_ptid_changed): Update, handle pid-like ptid
4460 case.
4461 (regcaches_size): Update.
4462 (regcache_count): Update.
4463 (registers_changed_ptid_target_pid_test): New.
4464 (_initialize_regcache): Register new test.
4465
cdd9148a
SM
44662020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4467
4468 * regcache.c (regcache_count): New.
4469 (struct regcache_test_data): New.
4470 (regcache_test_data_up): New.
4471 (populate_regcaches_for_test): New.
4472 (regcaches_test): Remove.
4473 (get_thread_arch_aspace_regcache_test): New.
4474 (registers_changed_ptid_all_test): New.
4475 (registers_changed_ptid_target_test): New.
4476 (registers_changed_ptid_target_ptid_test): New.
4477 (regcache_thread_ptid_changed): Remove regcache_count lambda.
4478 (_initialize_regcache): Register new tests.
4479
dd125343
SM
44802020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4481
4482 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
4483 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
4484 gdbarch and aspace parameter. Use current inferior's aspace.
4485 Validate regcache's arch value.
4486 (regcaches_test): Update.
4487
3ee93972
SM
44882020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4489
4490 * regcache.c (regcaches_test): Call registers_changed.
4491
33bf4c5c
TBA
44922020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4493
4494 * infrun.c (process_event_stop_test): Fix typo "breapoint".
4495
c2fd7fae
AKS
44962020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4497
4498 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
4499 to find the end of prologue for flang compiled binaries.
4500 * arm-tdep.c (arm_skip_prologue): Likewise.
4501 * i386-tdep.c (i386_skip_prologue): Likewise.
4502 * producer.c (producer_is_llvm): New function.
4503 (producer_parsing_tests): Added new tests for clang/flang.
4504 * producer.h (producer_is_llvm): New declaration.
4505
9327494e
SM
45062020-08-18 Simon Marchi <simon.marchi@efficios.com>
4507
4508 * linux-nat.c (linux_nat_debug_printf): New function.
4509 (linux_nat_debug_printf_1): New macro. Use throughout the file.
4510
d138725a
AM
45112020-08-18 Aaron Merey <amerey@redhat.com>
4512
4513 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
4514 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
4515 (CLIBS): Add DEBUGINFOD_LIBS.
4516
f9b11e6b
ST
45172020-08-17 Sergei Trofimovich <siarheit@google.com>
4518
4519 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
4520 'gdbarch_num_regs'.
4521
3ae7ab99
TT
45222020-08-17 Tom Tromey <tromey@adacore.com>
4523
4524 * ada-varobj.c (ada_varobj_decode_var): Handle case where
4525 ada_get_decoded_value returns NULL.
4526
b017825f
TT
45272020-08-17 Tom Tromey <tromey@adacore.com>
4528
4529 * python/py-inferior.c (infpy_search_memory): Use
4530 gdb_py_object_from_ulongest.
4531 * python/py-infevents.c (create_inferior_call_event_object)
4532 (create_memory_changed_event_object): Use
4533 gdb_py_object_from_ulongest.
4534 * python/py-linetable.c (ltpy_entry_get_pc): Use
4535 gdb_py_object_from_ulongest.
4536
7635cf79
SM
45372020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
4538
4539 * loc.c (class symbol_needs_eval_context): Fix indentation.
4540
f54be24b
SM
45412020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
4542
4543 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
4544 bool.
4545
53d5a2a5
TV
45462020-08-17 Tom de Vries <tdevries@suse.de>
4547
4548 PR gdb/26393
4549 * gdbtypes.c (dump_dynamic_prop): New function.
4550 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
4551
547ce8f0
TV
45522020-08-15 Tom de Vries <tdevries@suse.de>
4553
4554 PR backtrace/26390
4555 * stack.c (print_frame_args): Temporarily set the selected
4556 frame to FRAME while printing the frame's arguments.
4557
6ea815e7
PFC
45582020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4559
4560 PR breakpoints/26385
4561 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
4562 Always clear watchpoint with PTRACE_SET_DEBUGREG.
4563
6e562fa3
PFC
45642020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4565
4566 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
4567 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
4568 and >= to check return value instead of == -1 and != -1.
4569
d369b608
SM
45702020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
4571
4572 * utils.h (class gdb_argv) <as_array_view>: New method.
4573 * utils.c (gdb_argv_as_array_view_test): New.
4574 (_initialize_utils): Register selftest.
4575 * maint.c (maintenance_selftest): Use the new method.
4576
b31488a3
KR
45772020-08-13 Kamil Rytarowski <n54@gmx.com>
4578
4579 * target.h (supports_dumpcore, dumpcore): New
4580 function declarations.
4581 * target.c (supports_dumpcore, dumpcore): New
4582 functions.
4583 * target-delegates.c: Rebuild.
4584 * gcore.c (gcore_command): Use target_supports_dumpcore ()
4585 and target_dumpcore ().
4586
002a3166
AM
45872020-08-13 Aaron Merey <amerey@redhat.com>
4588
4589 * debuginfod-support.c: Replace global variables with user_data.
4590
ece5bc8a
SM
45912020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
4592
4593 * maint.c (maintenance_selftest): Split args and pass array_view
4594 to run_tests.
4595
6d8a0a5e
LM
45962020-08-12 Luis Machado <luis.machado@linaro.org>
4597
4598 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
4599 type's length.
4600 Use %s and pulongest to print the length.
4601
7cf663a9
PA
46022020-08-12 Pedro Alves <palves@redhat.com>
4603
4604 * NEWS: Move "Multi-target debugging support" item to the
4605 "Changes since GDB 9" section.
4606
27c7b875
PA
46072020-08-12 Pedro Alves <palves@redhat.com>
4608
4609 PR gdb/26336
4610 * progspace.c (program_space::remove_objfile): Invalidate the
4611 frame cache.
4612
1796a2a1
TV
46132020-08-11 Tom de Vries <tdevries@suse.de>
4614
4615 * MAINTAINERS: Mark ms1 as deleted.
4616
f8e3fe0d
LM
46172020-08-10 Luis Machado <luis.machado@linaro.org>
4618
4619 PR gdb/26310
4620
4621 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
4622 act accordingly.
4623 (aarch64_analyze_prologue_test): Add more unit tests to exercise
4624 movz/str/stur/stp skipping behavior.
4625
cc308722
LM
46262020-08-10 Luis Machado <luis.machado@linaro.org>
4627
4628 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
4629 struct user_sve_header instead of struct sve_context.
4630
041d9819
SM
46312020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
4632
4633 * read.h (dwarf2_fetch_die_loc_sect_off,
4634 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
4635 `void *` parameter with function_view.
4636 * read.c (dwarf2_fetch_die_loc_sect_off,
4637 dwarf2_fetch_die_loc_cu_off): Likewise.
4638 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
4639 (per_cu_dwarf_call): Adjust.
4640 (get_frame_address_in_block_wrapper): Remove.
4641 (indirect_synthetic_pointer): Adjust.
4642 (get_ax_pc): Remove.
4643 (dwarf2_compile_expr_to_ax): Adjust.
4644
38f8aa06
TV
46452020-08-08 Tom de Vries <tdevries@suse.de>
4646
4647 PR build/26344
4648 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
4649 constructor.
4650 * regcache.c (get_thread_arch_aspace_regcache): Same.
4651
a52b3ae2
TT
46522020-08-07 Tom Tromey <tromey@adacore.com>
4653
4654 * ravenscar-thread.c
4655 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
4656 New method.
4657 (ravenscar_thread_target::wait): Check
4658 runtime_initialized.
4659 (ravenscar_thread_target::prepare_to_store)
4660 (ravenscar_thread_target::stopped_by_sw_breakpoint)
4661 (ravenscar_thread_target::stopped_by_hw_breakpoint)
4662 (ravenscar_thread_target::stopped_by_watchpoint)
4663 (ravenscar_thread_target::stopped_data_address)
4664 (ravenscar_thread_target::core_of_thread): Use
4665 scoped_restore_current_thread and
4666 set_base_thread_from_ravenscar_task.
4667
0e29517d
TT
46682020-08-07 Tom Tromey <tromey@adacore.com>
4669
4670 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
4671
592f9bd7
TT
46722020-08-07 Tom Tromey <tromey@adacore.com>
4673
4674 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
4675 update_inferior_ptid before update_thread_list.
4676 (temporarily_change_regcache_ptid): New class.
4677 (ravenscar_thread_target::fetch_registers)
4678 (ravenscar_thread_target::store_registers)
4679 (ravenscar_thread_target::prepare_to_store): Use base thread when
4680 forwarding operation.
4681
39e2018a
TT
46822020-08-07 Tom Tromey <tromey@adacore.com>
4683
4684 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
4685 "is_pid" case.
4686
2080266b
TT
46872020-08-07 Tom Tromey <tromey@adacore.com>
4688
4689 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
4690 New methods.
4691 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
4692 first.
4693 (ravenscar_thread_target::add_thread): Rename from
4694 ravenscar_add_thread.
4695 (ravenscar_thread_target::update_thread_list): Use a lambda.
4696 (ravenscar_thread_target::xfer_partial): New method.
4697
78c02f21
TT
46982020-08-07 Tom Tromey <tromey@adacore.com>
4699
4700 * ada-lang.h (ada_task_list_iterator_ftype): Now a
4701 gdb::function_view.
4702 (iterate_over_live_ada_tasks): Change type of argument.
4703 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
4704 of argument.
4705
d5d833af
TT
47062020-08-07 Tom Tromey <tromey@adacore.com>
4707
4708 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
4709 Remove.
4710 (ravenscar_thread_target::extra_thread_info): Remove.
4711 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
4712 defer to target beneath for non-Ravenscar threads.
4713
a8ac85bb
TT
47142020-08-07 Tom Tromey <tromey@adacore.com>
4715
4716 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
4717 get_base_thread_from_ravenscar_task>: Now methods.
4718 <m_cpu_map>: New member.
4719 (ravenscar_thread_target::get_thread_base_cpu): Rename from
4720 ravenscar_get_thread_base_cpu. Check m_cpu_map.
4721 (ravenscar_thread_target::task_is_currently_active): Update.
4722 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
4723 Now a method.
4724 (ravenscar_thread_target::add_active_thread): Put initial thread
4725 into the m_cpu_map.
4726
550ab58d
TT
47272020-08-07 Tom Tromey <tromey@adacore.com>
4728
4729 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
4730 event_ptid.
4731
e9546579
TT
47322020-08-07 Tom Tromey <tromey@adacore.com>
4733
4734 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
4735 runtime_initialized.
4736
3d4470e5
TT
47372020-08-07 Tom Tromey <tromey@adacore.com>
4738
4739 * ravenscar-thread.c (ravenscar_thread_target): Don't call
4740 add_active_thread.
4741 (ravenscar_thread_target::add_active_thread): Now public.
4742 (ravenscar_inferior_created): Call add_active_thread after pushing
4743 the target.
4744
888bdb2b
SM
47452020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
4746
4747 * regcache.c (ptid_regcache_map): New type.
4748 (target_ptid_regcache_map): New type.
4749 (regcaches): Change type to target_ptid_regcache_map.
4750 (get_thread_arch_aspace_regcache): Update to regcaches' new
4751 type.
4752 (regcache_thread_ptid_changed): Likewise.
4753 (registers_changed_ptid): Likewise.
4754 (regcaches_size): Likewise.
4755 (regcaches_test): Update.
4756 (regcache_thread_ptid_changed): Update.
4757 * regcache.h (regcache_up): New type.
4758 * gdbsupport/ptid.h (hash_ptid): New struct.
4759
b161a60d
SM
47602020-08-07 Simon Marchi <simon.marchi@efficios.com>
4761
4762 * observable.h (thread_ptid_changed): Add parameter
4763 `process_stratum_target *`.
4764 * infrun.c (infrun_thread_ptid_changed): Add parameter
4765 `process_stratum_target *` and use it.
4766 (selftests): New namespace.
4767 (infrun_thread_ptid_changed): New function.
4768 (_initialize_infrun): Register selftest.
4769 * regcache.c (regcache_thread_ptid_changed): Add parameter
4770 `process_stratum_target *` and use it.
4771 (regcache_thread_ptid_changed): New function.
4772 (_initialize_regcache): Register selftest.
4773 * thread.c (thread_change_ptid): Pass target to
4774 thread_ptid_changed observable.
4775
d2854d8d
CT
47762020-08-06 Caroline Tice <cmtice@google.com>
4777
fe4c3d43
SM
4778 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
4779 (struct dwp_sections): Update field comments. Add loclists and
4780 rnglists fields.
4781 (struct virtual_v2_dwo_sections): Rename struct to
4782 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
4783 size & offset fields for loclists and rnglists.
4784 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
4785 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
4786 skipping dummy type units.
4787 (create_dwp_hash_table): Update the large comment above the function to
4788 discuss Version 5 DWP files as well, with references. Update all the
4789 version checks in the function to check for version 5 as well. Add new
4790 section at the end to create dwp hash table for version 5.
4791 (create_dwp_v2_section): Rename function to
4792 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
4793 Add V5 to error message text.
4794 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
4795 into calls to create_dwp_v2_or_v5_section.
4796 (create_dwo_unit_in_dwp_v5): New function.
4797 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
4798 check for version2; add else clause to handle version 5.
4799 (open_and_init_dwo_file): Add code to check dwarf version & only call
4800 create_debug_types_hash_table (with sections.types) if version is not 5;
4801 else call create_debug_type_hash_table, with sections.info.
4802 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
4803 version 5.
4804 (dwarf2_locate_v5_dwp_sections): New function.
4805 (open_and_init_dwp_file): Add else-if clause for version 5 to call
4806 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 4807
159ed7d9
SM
48082020-08-06 Simon Marchi <simon.marchi@efficios.com>
4809
4810 * regcache.h (class regcache): Remove friend
4811 registers_changed_ptid.
4812 <regcache_thread_ptid_changed>: Remove.
4813 <regcaches>: Remove.
4814 * regcache.c (regcache::regcaches): Rename to...
4815 (regcaches): ... this. Make static.
4816 (get_thread_arch_aspace_regcache): Update.
4817 (regcache::regcache_thread_ptid_changed): Rename to...
4818 (regcache_thread_ptid_changed): ... this. Update.
4819 (class regcache_access): Remove.
4820 (regcaches_test): Update.
4821 (_initialize_regcache): Update.
4822 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
4823 <forward_list>.
4824
174981ae
SM
48252020-08-06 Simon Marchi <simon.marchi@efficios.com>
4826
4827 * regcache.h (class regcache) <current_regcache>: Rename to...
4828 <regcaches>: ... this. Move doc here.
4829 * regcache.c (regcache::current_regcache) Rename to...
4830 (regcache::regcaches): ... this. Move doc to header.
4831 (get_thread_arch_aspace_regcache): Update.
4832 (regcache::regcache_thread_ptid_changed): Update.
4833 (registers_changed_ptid): Update.
4834 (class regcache_access) <current_regcache_size>: Rename to...
4835 <regcaches_size>: ... this.
4836 (current_regcache_test): Rename to...
4837 (regcaches_test): ... this.
4838 (_initialize_regcache): Update.
4839
ed908db6
VC
48402020-08-06 Victor Collod <vcollod@nvidia.com>
4841
4842 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
4843
b5582ab7
KB
48442020-08-05 Kevin Buettner <kevinb@redhat.com>
4845
4846 * corelow.c (core_target::build_file_mappings): Don't output
4847 null pathname in warning.
4848
ea946b86
SM
48492020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
4850
4851 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
4852 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
4853 gdb.dwarf2/dw2-single-line-discriminators.exp,
4854 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
4855
57d02173
TT
48562020-08-05 Tom Tromey <tromey@adacore.com>
4857
4858 PR rust/26197:
4859 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
4860 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
4861 Fix off-by-one and type size errors in ordinary case.
4862
5555c86d
TV
48632020-08-05 Tom de Vries <tdevries@suse.de>
4864
4865 * gdbtypes.c (type_not_allocated, type_not_associated): Use
4866 "prop->const_val () == 0" instead of "prop->const_val () != 0".
4867
97916bfe
SM
48682020-08-04 Simon Marchi <simon.marchi@efficios.com>
4869
4870 * frame.h (frame_id_p): Return bool.
4871 (frame_id_artificial_p): Return bool.
4872 (frame_id_eq): Return bool.
4873 (has_stack_frames): Return bool.
4874 (get_selected_frame): Fix typo in comment.
4875 (get_frame_pc_if_available): Return bool.
4876 (get_frame_address_in_block_if_available): Return bool.
4877 (get_frame_func_if_available): Return bool.
4878 (read_frame_register_unsigned): Return bool.
4879 (get_frame_register_bytes): Return bool.
4880 (safe_frame_unwind_memory): Return bool.
4881 (deprecated_frame_register_read): Return bool.
4882 (frame_unwinder_is): Return bool.
4883 * frame.c (struct frame_info) <prev_arch::p>: Change type to
4884 bool.
4885 <this_id::p>: Likewise.
4886 <prev_p>: Likewise.
4887 (frame_stash_add): Return bool.
4888 (get_frame_id): Use bool.
4889 (frame_id_build_special) Use bool.
4890 (frame_id_build_unavailable_stack): Use bool.
4891 (frame_id_build): Use bool.
4892 (frame_id_p): Return bool, use true/false instead of 1/0.
4893 (frame_id_artificial_p): Likewise.
4894 (frame_id_eq): Likewise.
4895 (frame_id_inner): Likewise.
4896 (get_frame_func_if_available): Likewise.
4897 (read_frame_register_unsigned): Likewise.
4898 (deprecated_frame_register_read): Likewise.
4899 (get_frame_register_bytes): Likewise.
4900 (has_stack_frames): Likewise.
4901 (inside_main_func): Likewise.
4902 (inside_entry_func): Likewise.
4903 (get_frame_pc_if_available): Likewise.
4904 (get_frame_address_in_block_if_available): Likewise.
4905 (frame_unwinder_is): Likewise.
4906 (safe_frame_unwind_memory): Likewise.
4907 (frame_unwind_arch): Likewise.
4908
fedfee88
SM
49092020-08-04 Simon Marchi <simon.marchi@efficios.com>
4910
4911 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
4912 type to cached_copy_status.
4913 (fprintf_frame): Adjust.
4914 (get_frame_func_if_available): Adjust.
4915 (frame_cleanup_after_sniffer): Adjust.
4916
6cfa9b59
MW
49172020-08-04 Mark Wielaard <mark@klomp.org>
4918
4919 * MAINTAINERS (Write After Approval): Update email address.
4920
66d6346b
SM
49212020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4922
4923 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
4924 dynamic_prop::const_val.
4925
8a6d5e35
SM
49262020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4927
4928 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
4929 dynamic_prop::kind.
4930
51d6067d
SM
49312020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4932
4933 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
4934
b26e2ae7
JM
49352020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
4936
4937 * configure.tgt: Set gdb_sim for bpf-*-* targets.
4938
39791af2
JM
49392020-08-04 Weimin Pan <weimin.pan@oracle.com>
4940 Jose E. Marchesi <jose.marchesi@oracle.com>
4941
4942 * configure.tgt: Add entry for bpf-*-*.
4943 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
4944 (ALLDEPFILES): Add bpf-tdep.c.
4945 * bpf-tdep.c: New file.
4946 * MAINTAINERS: Add bpf target and maintainer.
4947 * NEWS: Mention the support for the new target.
4948
521894aa
TV
49492020-08-04 Tom de Vries <tdevries@suse.de>
4950
4951 PR symtab/23270
4952 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
4953 Error.
4954
5d6356e9
JB
49552020-08-03 John Baldwin <jhb@FreeBSD.org>
4956
4957 * syscalls/freebsd.xml: Regenerate.
4958
0cf82b81
JB
49592020-08-03 John Baldwin <jhb@FreeBSD.org>
4960
4961 * syscalls/update-freebsd.sh: Fix usage and year range.
4962
8f34b746
TV
49632020-08-03 Tom de Vries <tdevries@suse.de>
4964
4965 PR symtab/26333
4966 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
4967 DW_LNE_lo_user/DW_LNE_hi_user range.
4968
5e500d33
SM
49692020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
4970
4971 PR ada/26318
4972 * ada-lang.c (ada_modulus): Return 0 if property is not of const
4973 kind.
4974
78319c15
TBA
49752020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4976
4977 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
4978
4c55e970
TBA
49792020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4980
4981 * breakpoint.c (set_breakpoint_condition): Update the condition
4982 expressions after checking that the input condition string parses
4983 successfully and does not contain junk at the end.
4984
1e620590
TBA
49852020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4986
4987 * breakpoint.c (set_breakpoint_condition): Update the
4988 condition string after parsing the new condition successfully.
4989
c8693053
RO
49902020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4991
4992 * proc-api.c (_STRUCTURED_PROC): Don't define.
4993 * proc-events.c: Likewise.
4994 * proc-flags.c: Likewise.
4995 * proc-why.c: Likewise.
4996 * procfs.c: Likewise.
4997
4998 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
4999 * configure, config.in: Regenerate.
5000
5a99adb8
TV
50012020-07-30 Tom de Vries <tdevries@suse.de>
5002
5003 PR build/26320
5004 * ui-style.h (struct ui_file_style::color): Wrap m_value and
5005 m_red/m_green/m_blue in a union.
5006
8ba83e91
TV
50072020-07-29 Tom de Vries <tdevries@suse.de>
5008
5009 PR tdep/26280
5010 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
5011
f75a0693
AB
50122020-07-28 Tom Tromey <tromey@adacore.com>
5013
5014 PR symtab/26270:
5015 * symtab.h (find_pc_partial_function_sym): Declare.
5016 * cli/cli-cmds.c (disassemble_command): Use
5017 find_pc_partial_function_sym. Check asm_demangle.
5018 * blockframe.c (cache_pc_function_sym): New global.
5019 (cache_pc_function_name): Remove.
5020 (clear_pc_function_cache): Update.
5021 (find_pc_partial_function_sym): New function, from
5022 find_pc_partial_function.
5023 (find_pc_partial_function): Rewrite using
5024 find_pc_partial_function_sym.
5025
16f3242c
TT
50262020-07-28 Tom Tromey <tromey@adacore.com>
5027
5028 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
5029 help. Add usage.
5030
4888741a
TT
50312020-07-28 Tom Tromey <tromey@adacore.com>
5032
5033 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
5034 <DW_OP_GNU_variable_value>: Cast to address type.
5035
4d46f402
KR
50362020-07-28 Kamil Rytarowski <n54@gmx.com>
5037
5038 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
5039 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
5040 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
5041 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
5042 (nbsd_get_siginfo_type): New.
5043 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
5044 (_initialize_nbsd_tdep): New.
5045
d70f978b
L
50462020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5047
5048 PR binutils/26301
5049 * configure: Regenerated.
5050
377170fa
L
50512020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5052
5053 PR binutils/26301
5054 * configure: Regenerated.
5055
43d5901d
AB
50562020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5057
5058 * python/py-frame.c: Remove 'user-regs.h' include.
5059 (frapy_read_register): Rewrite to make use of
5060 gdbpy_parse_register_id.
5061 * python/py-registers.c (gdbpy_parse_register_id): New function,
5062 moved here from python/py-unwind.c. Updated the return type, and
5063 also accepts register descriptor objects.
5064 * python/py-unwind.c: Remove 'user-regs.h' include.
5065 (pyuw_parse_register_id): Moved to python/py-registers.c.
5066 (unwind_infopy_add_saved_register): Update to use
5067 gdbpy_parse_register_id.
5068 (pending_framepy_read_register): Likewise.
5069 * python/python-internal.h (gdbpy_parse_register_id): Declare.
5070
14fa8fb3
AB
50712020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5072
5073 * python/py-registers.c: Add 'user-regs.h' include.
5074 (register_descriptor_iter_find): New function.
5075 (register_descriptor_iterator_object_methods): New static global
5076 methods array.
5077 (register_descriptor_iterator_object_type): Add pointer to methods
5078 array.
5079
ddce1758
JB
50802020-07-27 John Baldwin <jhb@FreeBSD.org>
5081
5082 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
5083 for all architectures on FreeBSD 11.3 and later.
5084
a4089f52
TT
50852020-07-27 Tom Tromey <tromey@adacore.com>
5086
5087 * gcore.h (load_corefile): Don't declare.
5088
95420d30
TV
50892020-07-27 Tom de Vries <tdevries@suse.de>
5090
5091 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
5092 * config.in: Regenerate.
5093 * configure: Regenerate.
5094
05a6b8c2
EZ
50952020-07-26 Eli Zaretskii <eliz@gnu.org>
5096
5097 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
5098 ws2tcpip.h. When checking whether socklen_t type is defined, use
5099 ws2tcpip.h if it is available and sys/socket.h isn't.
5100 * configure: Regenerate.
5101 * config.in: Regenerate.
5102
e79eb02f
AB
51032020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
5104
5105 PR fortran/23051
5106 PR fortran/26139
5107 * valops.c (value_ind): Pass address to
5108 readjust_indirect_value_type.
5109 * value.c (readjust_indirect_value_type): Make parameter
5110 non-const, and add extra address parameter. Resolve original type
5111 before using it.
5112 * value.h (readjust_indirect_value_type): Update function
5113 signature and comment.
5114
876518dd
TV
51152020-07-25 Tom de Vries <tdevries@suse.de>
5116
5117 PR symtab/26243
5118 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
5119 entries.
5120
f6720b1c
AM
51212020-07-24 Aaron Merey <amerey@redhat.com>
5122
5123 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
5124 * configure: Rebuild.
5125
513487e1
KB
51262020-07-23 Kevin Buettner <kevinb@redhat.com>
5127
5128 PR corefiles/26294
5129 * corelow.c (_initialize_corelow): Add period to help text
5130 for "maintenance print core-file-backed-mappings".
5131
e7bc9db8
PA
51322020-07-23 Pedro Alves <pedro@palves.net>
5133
5134 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
5135 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
5136 meanwhile.
5137 * frame.c (frame_cache_generation, get_frame_cache_generation):
5138 New.
5139 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
5140 (get_prev_frame_if_no_cycle): On exception, don't touch
5141 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
5142 * frame.h (get_frame_cache_generation): Declare.
5143
90fcc466
TV
51442020-07-23 Tom de Vries <tdevries@suse.de>
5145
5146 PR tui/26282
5147 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
5148 New default constructor.
5149
78344df7
AB
51502020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
5151
5152 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
5153 exclude non-statement entries.
5154
b089853a
KB
51552020-07-22 Kevin Buettner <kevinb@redhat.com>
5156
5157 * NEWS (New commands): Mention new command
5158 "maintenance print core-file-backed-mappings".
5159
09c2f5d4
KB
51602020-07-22 Kevin Buettner <kevinb@redhat.com>
5161
5162 * corelow.c (gdbcmd.h): Include.
5163 (core_target::info_proc_mappings): New method.
5164 (get_current_core_target): New function.
5165 (maintenance_print_core_file_backed_mappings): New function.
5166 (_initialize_corelow): Add core-file-backed-mappings to
5167 "maint print" commands.
5168
9c5ec5c2 51692020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 5170
9c5ec5c2
KB
5171 * linux-tdep.c (dump_note_entry_p): New function.
5172 (linux_dump_mapping_p_ftype): New typedef.
5173 (linux_find_memory_regions_full): Add new parameter,
5174 should_dump_mapping_p.
5175 (linux_find_memory_regions): Adjust call to
5176 linux_find_memory_regions_full.
5177 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
5178 call to linux_find_memory_regions_full.
5179
db082f59
KB
51802020-07-22 Kevin Buettner <kevinb@redhat.com>
5181
5182 * corelow.c (solist.h, unordered_map): Include.
5183 (class core_target): Add field m_core_file_mappings and
5184 method build_file_mappings.
5185 (core_target::core_target): Call build_file_mappings.
5186 (core_target::~core_target): Free memory associated with
5187 m_core_file_mappings.
5188 (core_target::build_file_mappings): New method.
5189 (core_target::xfer_partial): Use m_core_file_mappings
5190 for memory transfers.
5191 * linux-tdep.c (linux_read_core_file_mappings): New
5192 function.
5193 (linux_core_info_proc_mappings): Rewrite to use
5194 linux_read_core_file_mappings.
5195 (linux_init_abi): Register linux_read_core_file_mappings.
5196
7e183d27
KB
51972020-07-22 Kevin Buettner <kevinb@redhat.com>
5198
5199 * arch-utils.c (default_read_core_file_mappings): New function.
5200 * arch-utils.c (default_read_core_file_mappings): Declare.
5201 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
5202 * gdbarch.h, gdbarch.c: Regenerate.
5203
2735d421
KB
52042020-07-22 Kevin Buettner <kevinb@redhat.com>
5205
5206 PR corefiles/25631
5207 * corelow.c (core_target:xfer_partial): Revise
5208 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
5209 case after first checking the stratum beneath the core
5210 target.
5211 (has_all_memory): Return true.
5212 * target.c (raw_memory_xfer_partial): Revise comment
5213 regarding use of has_all_memory.
5214
e56cb451
KB
52152020-07-22 Kevin Buettner <kevinb@redhat.com>
5216
5217 * exec.h (section_table_xfer_memory): Revise declaration,
5218 replacing section name parameter with an optional callback
5219 predicate.
5220 * exec.c (section_table_xfer_memory): Likewise.
5221 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
5222 of section_table_xfer_memory.
5223
32fa152e
TT
52242020-07-22 Tom Tromey <tromey@adacore.com>
5225
5226 * mi/mi-cmd-stack.c (list_args_or_locals): Use
5227 lookup_symbol_search_name.
5228
a67a1c41
AB
52292020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5230
5231 * python/py-registers.c (gdbpy_register_object_data_init): Remove
5232 redundant local variable.
5233 (gdbpy_get_register_descriptor): Extract descriptor vector as a
5234 reference, not pointer, update code accordingly.
5235
a7b4ff4f
SM
52362020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5237 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5238
5239 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
5240 * jit.c (jit_breakpoint_re_set_internal): Use the
5241 `skip_jit_symbol_lookup` field.
5242
2340e834
SM
52432020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5244 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5245
5246 * jit.c (jit_read_descriptor): Define the descriptor address once,
5247 use twice.
5248 (jit_breakpoint_deleted): Move the declaration of the loop variable
5249 `iter` into the loop header.
5250 (jit_breakpoint_re_set_internal): Move the declaration of the local
5251 variable `objf_data` to the first point of definition.
5252 (jit_event_handler): Move the declaration of local variables
5253 `code_entry`, `entry_addr`, and `objf` to their first point of use.
5254 Rename `objf` to `jited`.
5255
c1072906
SM
52562020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5257
5258 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
5259 Remove.
5260 * jit.c (get_jiter_objfile_data): Update.
5261
c8474dc3
TBA
52622020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5263 Simon Marchi <simon.marchi@polymtl.ca>
5264
5265 * jit.c (struct jit_program_space_data): Remove.
5266 (jit_program_space_key): Remove.
5267 (jiter_objfile_data::~jiter_objfile_data): Remove program space
5268 stuff.
5269 (get_jit_program_space_data): Remove.
5270 (jit_breakpoint_deleted): Iterate on all of the program space's
5271 objfiles.
5272 (jit_inferior_init): Likewise.
5273 (jit_breakpoint_re_set_internal): Likewise. Also change return
5274 type to void.
5275 (jit_breakpoint_re_set): Pass current_program_space to
5276 jit_breakpoint_re_set_internal.
5277
77208eb7
SM
52782020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5279
5280 * jit.h (struct jiter_objfile_data) <cached_code_address,
5281 jit_breakpoint>: Move to here from ...
5282 * jit.c (jit_program_space_data): ... here.
5283 (jiter_objfile_data::~jiter_objfile_data): Update.
5284 (jit_breakpoint_deleted): Update.
5285 (jit_breakpoint_re_set_internal): Update.
5286
8c1c720f
SM
52872020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5288
5289 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
5290 checks.
5291 (jit_read_descriptor): Remove NULL check.
5292 (jit_event_handler): Add an assertion.
5293
0e74a041
SM
52942020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5295
5296 * jit.h (struct jit_objfile_data): Split into...
5297 (struct jiter_objfile_data): ... this ...
5298 (struct jited_objfile_data): ... and this.
5299 * objfiles.h (struct objfile) <jit_data>: Remove.
5300 <jiter_data, jited_data>: New fields.
5301 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
5302 (jiter_objfile_data::~jiter_objfile_data): ... this.
5303 (get_jit_objfile_data): Rename to ...
5304 (get_jiter_objfile_data): ... this.
5305 (add_objfile_entry): Update.
5306 (jit_read_descriptor): Use get_jiter_objfile_data.
5307 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
5308 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
5309 (jit_inferior_exit_hook): Use objfile's jited_data field.
5310
238b5c9f
SM
53112020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5312
5313 * jit.h: Forward-declare `struct minimal_symbol`.
5314 (struct jit_objfile_data): Migrate to here from jit.c; also add a
5315 constructor, destructor, and an objfile* field.
5316 * jit.c (jit_objfile_data): Remove.
5317 (struct jit_objfile_data): Migrate from here to jit.h.
5318 (jit_objfile_data::~jit_objfile_data): New destructor
5319 implementation with code moved from free_objfile_data.
5320 (free_objfile_data): Delete.
5321 (get_jit_objfile_data): Update to use the jit_data field of objfile.
5322 (jit_find_objf_with_entry_addr): Ditto.
5323 (jit_inferior_exit_hook): Ditto.
5324 (_initialize_jit): Remove the call to
5325 register_objfile_data_with_cleanup.
5326 * objfiles.h (struct objfile) <jit_data>: New field.
5327
fe053b9e
TBA
53282020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5329
5330 * jit.h: Forward-declare `struct objfile`.
5331 (jit_event_handler): Add a second parameter, the JITer objfile.
5332 * jit.c (jit_read_descriptor): Change the signature to take the
5333 JITer objfile as an argument instead of the jit_program_space_data.
5334 (jit_inferior_init): Update the call to jit_read_descriptor.
5335 (jit_event_handler): Use the new JITer objfile argument when calling
5336 jit_read_descriptor.
5337 * breakpoint.c (handle_jit_event): Update the call to
5338 jit_event_handler to pass the JITer objfile.
5339
4cec0c66
JB
53402020-07-21 John Baldwin <jhb@FreeBSD.org>
5341
5342 * gdbarch.c: Regenerate.
5343 * gdbarch.h: Regenerate.
5344 * gdbarch.sh (handle_segmentation_fault): Remove method.
5345 * infrun.c (handle_segmentation_fault): Remove.
5346 (print_signal_received_reason): Remove call to
5347 handle_segmentation_fault.
5348
0e42f66a
JB
53492020-07-21 John Baldwin <jhb@FreeBSD.org>
5350
5351 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
5352 Rename to sparc64_linux_report_signal_info and add siggnal
5353 argument.
5354 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
5355 instead of sparc64_linux_handle_segmentation_fault.
5356
77bdfeb2
JB
53572020-07-21 John Baldwin <jhb@FreeBSD.org>
5358
5359 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
5360 i386_linux_report_signal_info instead of
5361 i386_linux_handle_segmentation_fault.
5362 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
5363 to i386_linux_report_signal_info and add siggnal argument.
5364 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
5365 of i386_linux_handle_segmentation_fault.
5366 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
5367 to i386_linux_report_signal_info and add siggnal argument.
5368
ad97bfc5
JB
53692020-07-21 John Baldwin <jhb@FreeBSD.org>
5370
5371 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
5372 hook if present.
5373
272bb05c
JB
53742020-07-21 John Baldwin <jhb@FreeBSD.org>
5375
5376 * gdbarch.c: Regenerate.
5377 * gdbarch.h: Regenerate.
5378 * gdbarch.sh (report_signal_info): New method.
5379 * infrun.c (print_signal_received_reason): Invoke gdbarch
5380 report_signal_info hook if present.
5381
baf8791e
AB
53822020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
5383
5384 * python/py-registers.c : Add 'unordered_map' include.
5385 (gdbpy_new_reggroup): Renamed to...
5386 (gdbpy_get_reggroup): ...this. Update to only create register
5387 group descriptors when needed.
5388 (gdbpy_reggroup_iter_next): Update.
5389
f7306dac
AB
53902020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
5391
5392 * python/py-registers.c (gdbpy_register_object_data): New static
5393 global.
5394 (gdbpy_register_object_data_init): New function.
5395 (gdbpy_new_register_descriptor): Renamed to...
5396 (gdbpy_get_register_descriptor): ...this, and update to reuse
5397 existing register descriptors where possible.
5398 (gdbpy_register_descriptor_iter_next): Update.
5399 (gdbpy_initialize_registers): Register new gdbarch data.
5400
05c309a8
SM
54012020-07-21 Simon Marchi <simon.marchi@efficios.com>
5402
5403 * linux-nat.c (stopped_pids): Make static.
5404
d1fd641e
SM
54052020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
5406
5407 PR ada/26235
5408 * gdbtypes.c (ada_discrete_type_low_bound,
5409 ada_discrete_type_high_bound): Handle undefined bounds.
5410
1de14d77
KR
54112020-07-21 Kamil Rytarowski <n54@gmx.com>
5412
5413 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
5414 declaration.
5415 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
5416 function.
5417
ed810cc7
JB
54182020-07-20 John Baldwin <jhb@FreeBSD.org>
5419
5420 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
5421 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
5422 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
5423 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
5424 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
5425 method.
5426
ae5369e7
LC
54272020-07-20 Ludovic Courtès <ludo@gnu.org>
5428
5429 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
5430 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
5431 which are deprecated in Guile 3.0.
5432 * configure.ac (try_guile_versions): Add "guile-3.0".
5433 * configure (try_guile_versions): Regenerate.
5434 * NEWS: Update entry.
5435
68cf161c
LC
54362020-07-20 Ludovic Courtès <ludo@gnu.org>
5437 Doug Evans <dje@google.com>
5438
5439 PR gdb/21104
5440 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
5441 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
5442 USING_GUILE_BEFORE_2_2.
5443 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
5444 Change type to 'scm_t_port_type *'.
5445 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
5446 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
5447 parameter and honor it. Update callers.
5448 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
5449 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
5450 functions.
5451 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
5452 USING_GUILE_BEFORE_2_2.
5453 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
5454 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
5455 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
5456 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
5457 and 'SCM_PORT_TYPE'.
5458 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
5459 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
5460 (gdbscm_memory_port_read, gdbscm_memory_port_write)
5461 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
5462 [!USING_GUILE_BEFORE_2_2]: New functions.
5463 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
5464 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
5465 'gdbscm_memory_port_read'.
5466 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
5467 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
5468 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
5469 function.
5470 (ioscm_init_memory_port): Remove.
5471 (ioscm_init_memory_port_stream): New function
5472 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
5473 function.
5474 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
5475 Return scm_from_uint (0).
5476 (gdbscm_set_memory_port_read_buffer_size_x)
5477 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
5478 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
5479 Return scm_from_uint (0).
5480 (gdbscm_set_memory_port_write_buffer_size_x)
5481 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
5482 * configure.ac (try_guile_versions): Add "guile-2.2".
5483 * configure: Regenerate.
5484 * NEWS: Add entry.
5485
aee91db3
TT
54862020-07-18 Tom Tromey <tom@tromey.com>
5487
5488 * linux-nat.c (linux_multi_process): Remove.
5489 (linux_nat_target::supports_multi_process): Return true.
5490
0e267416
AB
54912020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
5492
5493 * arch/riscv.c (riscv_tdesc_cache): Change map type.
5494 (riscv_lookup_target_description): Return pointer out of
5495 unique_ptr.
5496 * target-descriptions.c (allocate_target_description): Add
5497 comment.
5498 (target_desc_deleter::operator()): Likewise.
5499 * target-descriptions.h (struct target_desc_deleter): Moved to
5500 gdbsupport/tdesc.h.
5501 (target_desc_up): Likewise.
5502
f80c8ec4
TT
55032020-07-17 Tom Tromey <tromey@adacore.com>
5504
5505 * linux-nat.c (linux_nat_target::supports_non_stop)
5506 (linux_nat_target::always_non_stop_p): Use "true".
5507 (linux_nat_target::supports_disable_randomization): Use "true" and
5508 "false".
5509
d0ce17d8
CT
55102020-07-16 Caroline Tice <cmtice@google.com>
5511
5512 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
5513 (RNGLIST_HEADER_SIZE64): New constant definition.
5514 (struct dwop_section_names): Add rnglists_dwo.
5515 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
5516 (struct loclist_header): Rename to 'loclists_rnglists_header'.
5517 (struct dwo_sections): Add rnglists field.
5518 (read_attribut_reprocess): Add tag parameter.
5519 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
5520 (cu_debug_rnglists_section): New function (decl & definition).
5521 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
5522 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
5523 die whose range is being checked; get rnglist section from
5524 cu_debug_rnglists_section, to get from either objfile or dwo file as
5525 appropriate. Add cases for DW_RLE_base_addressx,
5526 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
5527 the base address to DW_RLE_offset_pairs (not to all ranges), moving
5528 test inside if-condition and updating complaint message.
5529 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
5530 dwarf2_rnglists_process.
5531 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
5532 dwarf2_ranges_process.
5533 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
5534 need_ranges_base and update comment appropriately. Also pass die tag
5535 to dwarf2_ranges_read.
5536 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
5537 need_ranges_base and update comment appropriately. Also pass die tag
5538 to dwarf2_ranges_process.
5539 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
5540 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
5541 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
5542 need_ranges_base and update comment appropriately. Also pass die tag
5543 to read_attribute_reprocess and dwarf2_ranges_read.
5544 (read_loclist_header): Rename function to read_loclists_rnglists_header,
5545 and update function comment appropriately.
5546 (read_loclist_index): Call read_loclists_rnglists_header instead of
5547 read_loclist_header.
5548 (read_rnglist_index): New function.
5549 (read_attribute_reprocess): Add tag parameter. Add code for
5550 DW_FORM_rnglistx, passing tag to read_rnglist_index.
5551 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
5552
3dcc261c
AB
55532020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
5554
5555 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
5556 being resolved.
5557
ccb9eba6
AB
55582020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
5559
5560 * arch-utils.c (show_architecture): Update formatting of messages.
5561
cf88be68
SM
55622020-07-12 Simon Marchi <simon.marchi@efficios.com>
5563
5564 * gdbtypes.h (struct type) <bounds>: Handle array and string
5565 types.
5566 * ada-lang.c (assign_aggregate): Use type::bounds on
5567 array/string type.
5568 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
5569 * c-varobj.c (c_number_of_children): Likewise.
5570 (c_describe_child): Likewise.
5571 * eval.c (evaluate_subexp_for_sizeof): Likewise.
5572 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
5573 (f_type_print_base): Likewise.
5574 * f-valprint.c (f77_array_offset_tbl): Likewise.
5575 (f77_get_upperbound): Likewise.
5576 (f77_print_array_1): Likewise.
5577 * guile/scm-type.c (gdbscm_type_range): Likewise.
5578 * m2-typeprint.c (m2_array): Likewise.
5579 (m2_is_long_set_of_type): Likewise.
5580 * m2-valprint.c (get_long_set_bounds): Likewise.
5581 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
5582 * python/py-type.c (typy_range): Likewise.
5583 * rust-lang.c (rust_internal_print_type): Likewise.
5584 * type-stack.c (type_stack::follow_types): Likewise.
5585 * valarith.c (value_subscripted_rvalue): Likewise.
5586 * valops.c (value_cast): Likewise.
5587
509971ae
SM
55882020-07-12 Simon Marchi <simon.marchi@efficios.com>
5589
5590 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
5591 callers to use the equivalent accessor methods.
5592
107406b7
SM
55932020-07-12 Simon Marchi <simon.marchi@efficios.com>
5594
5595 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
5596 (struct type) <bit_stride>: New method.
5597 (TYPE_BIT_STRIDE): Remove.
5598 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
5599
bb789949
SM
56002020-07-12 Simon Marchi <simon.marchi@efficios.com>
5601
5602 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
5603 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
5604 callers to use the equivalent accessor methods instead.
5605
39498edb
SM
56062020-07-12 Simon Marchi <simon.marchi@efficios.com>
5607
5608 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
5609 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
5610 callers to use the equivalent accessor methods instead.
5611
3b606f38
SM
56122020-07-12 Simon Marchi <simon.marchi@efficios.com>
5613
5614 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
5615 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
5616 to use dynamic_prop::kind.
5617
064d9cb9
SM
56182020-07-12 Simon Marchi <simon.marchi@efficios.com>
5619
5620 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
5621 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
5622 to get the bound property's kind and check against
5623 PROP_UNDEFINED.
5624
5537ddd0
SM
56252020-07-12 Simon Marchi <simon.marchi@efficios.com>
5626
5627 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
5628 all callers to use type::range_bounds followed by
5629 dynamic_prop::{low,high}.
5630
8c2e4e06
SM
56312020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
5632
5633 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
5634 const_val, set_const_val, baton, set_locexpr, set_loclist,
5635 set_addr_offset, variant_parts, set_variant_parts,
5636 original_type, set_original_type>: New methods.
5637 <kind>: Rename to...
5638 <m_kind>: ... this. Update all users to use the new methods
5639 instead.
5640 <data>: Rename to...
5641 <m_data>: ... this. Update all users to use the new methods
5642 instead.
5643
7c6f2712
SM
56442020-07-12 Simon Marchi <simon.marchi@efficios.com>
5645
5646 * gdbtypes.c (get_discrete_bounds): Return failure if
5647 the range type's bounds are not both defined and constant
5648 values.
5649 (get_array_bounds): Update comment. Remove undefined bound check.
5650
599088e3
SM
56512020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
5652
5653 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
5654 the type::bounds method directly.
5655
c4dfcb36
SM
56562020-07-12 Simon Marchi <simon.marchi@efficios.com>
5657
5658 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
5659 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
5660 are used to set the range type's bounds to use set_bounds.
5661
0a278aa7
PW
56622020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5663
5664 * exec.c (_initialize_exec): Update exec-file-mismatch help.
5665
cce20f10
PA
56662020-07-10 Pedro Alves <pedro@palves.net>
5667
5668 * gdbthread.h (inferior_ref): Define.
5669 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
5670 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
5671 * thread.c
5672 (scoped_restore_current_thread::restore):
5673 Adjust to gdb::ref_ptr.
5674 (scoped_restore_current_thread::~scoped_restore_current_thread):
5675 Remove manual decref handling.
5676 (scoped_restore_current_thread::scoped_restore_current_thread):
5677 Adjust to use
5678 inferior_ref::new_reference/thread_info_ref::new_reference.
5679 Incref the thread before calling get_frame_id instead of after.
5680 Let TARGET_CLOSE_ERROR propagate.
5681
6d7aa592
PA
56822020-07-10 Pedro Alves <pedro@palves.net>
5683
5684 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
5685 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
5686 NOT_AVAILABLE_ERROR.
5687 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
5688 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
5689
b3e3a4c1
SM
56902020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5691 Pedro Alves <pedro@palves.net>
5692
5693 PR gdb/26199
5694 * infrun.c (threads_are_resumed_pending_p): Delete.
5695 (do_target_wait): Remove threads_are_executing and
5696 threads_are_resumed_pending_p checks from the inferior_matches
5697 lambda. Update comments.
5698
d6cc5d98
PA
56992020-07-10 Pedro Alves <pedro@palves.net>
5700
5701 PR gdb/26199
5702 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
5703 executing threads.
5704
7d3badc6
PA
57052020-07-10 Pedro Alves <pedro@palves.net>
5706
5707 PR gdb/26199
5708 * infrun.c (handle_no_resumed): Handle multiple targets.
5709
42bd97a6
PA
57102020-07-10 Pedro Alves <pedro@palves.net>
5711
5712 PR gdb/26199
5713 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
5714 target_is_async_p.
5715
43667cc6
PA
57162020-07-10 Pedro Alves <pedro@palves.net>
5717
5718 PR gdb/26199
5719 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
5720 threads, not all threads.
5721
96118d11
PA
57222020-07-10 Pedro Alves <pedro@palves.net>
5723
5724 PR gdb/26199
5725 * remote.c (remote_target::open_1): Pass remote target pointer as
5726 data to create_async_event_handler.
5727 (remote_async_inferior_event_handler): Mark async event handler
5728 before returning if the remote target still has either pending
5729 events or unacknowledged notifications.
5730
54904d81
JB
57312020-07-10 John Baldwin <jhb@FreeBSD.org>
5732
5733 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
5734 declaration.
5735 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
5736 function.
5737
f37e5866
JB
57382020-07-09 John Baldwin <jhb@FreeBSD.org>
5739
5740 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
5741 inferior_ptid.
5742
fc238d4a
JB
57432020-07-09 John Baldwin <jhb@FreeBSD.org>
5744
5745 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
5746 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
5747 AT_FREEBSD_PS_STRINGS.
5748
6e2469ff
HD
57492020-07-08 Hannes Domani <ssbssa@yahoo.de>
5750
5751 * auto-load.c (auto_load_objfile_script_1): Convert drive part
5752 of debugfile path on Windows.
5753
d1076c41
JB
57542020-07-08 John Baldwin <jhb@FreeBSD.org>
5755
5756 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
5757 argument to 'data'.
5758
15f3b077
TT
57592020-07-08 Tom Tromey <tromey@adacore.com>
5760
5761 * ada-lang.c (ada_exception_message_1): Use read_memory.
5762
9fc501fd
AB
57632020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5764
5765 PR python/22748
5766 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
5767 special handling for inline frames.
5768 * findvar.c (value_of_register_lazy): Skip inline frames when
5769 creating lazy register values.
5770 * frame.c (frame_id_computed_p): Delete definition.
5771 * frame.h (frame_id_computed_p): Delete declaration.
5772
64cb3757
AB
57732020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5774
5775 * NEWS: Mention additions to Python API.
5776 * python/py-arch.c (archpy_register_groups): New function.
5777 (arch_object_methods): Add 'register_groups' method.
5778 * python/py-registers.c (reggroup_iterator_object): New struct.
5779 (reggroup_object): New struct.
5780 (gdbpy_new_reggroup): New function.
5781 (gdbpy_reggroup_to_string): New function.
5782 (gdbpy_reggroup_name): New function.
5783 (gdbpy_reggroup_iter): New function.
5784 (gdbpy_reggroup_iter_next): New function.
5785 (gdbpy_new_reggroup_iterator): New function
5786 (gdbpy_initialize_registers): Register new types.
5787 (reggroup_iterator_object_type): Define new Python type.
5788 (gdbpy_reggroup_getset): New static global.
5789 (reggroup_object_type): Define new Python type.
5790 * python/python-internal.h
5791
0f767f94
AB
57922020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5793
5794 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
5795 * python/py-arch.c (archpy_registers): New function.
5796 (arch_object_methods): Add 'registers' method.
5797 * python/py-registers.c: New file.
5798 * python/python-internal.h
5799 (gdbpy_new_register_descriptor_iterator): Declare.
5800 (gdbpy_initialize_registers): Declare.
5801 * python/python.c (do_start_initialization): Call
5802 gdbpy_initialize_registers.
5803 * NEWS: Mention additions to the Python API.
5804
87dbc774
AB
58052020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5806
5807 * NEWS: Mention new Python API method.
5808 * python/py-unwind.c (pending_framepy_architecture): New function.
5809 (pending_frame_object_methods): Add architecture method.
5810
3bc98c0c
AB
58112020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5812
5813 * gdbarch.c: Regenerate.
5814 * gdbarch.h: Regenerate.
5815 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
5816 (gdbarch_data): Use internal_error for the case where
5817 deprecated_set_gdbarch_data was originally needed.
5818 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
5819 and use passed in obstack.
5820 (libunwind_frame_set_descr): Should no longer get back NULL from
5821 gdbarch_data.
5822 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
5823 type.
5824 * user-regs.c (user_regs_init): Update parameters, and use passed
5825 in obstack.
5826 (user_reg_add): Should no longer get back NULL from gdbarch_data.
5827 (_initialize_user_regs): Register as a pre-init gdbarch data type.
5828
d8cc8af6
TV
58292020-07-06 Tom de Vries <tdevries@suse.de>
5830
5831 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
5832 End-Of-Sequence in lte_is_less_than.
5833 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
5834 "gdb: Don't reorder line table entries too much when sorting".
5835
947f7597
TV
58362020-07-06 Tom de Vries <tdevries@suse.de>
5837
5838 PR tui/26205
5839 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
5840
1e7c1b22
TV
58412020-07-05 Tom de Vries <tdevries@suse.de>
5842
5843 PR build/26187
5844 * inferior.h (struct infcall_suspend_state_deleter): If available, use
5845 std::uncaught_exceptions instead of deprecated
5846 std::uncaught_exception.
5847
a36158ec
SM
58482020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5849
5850 * macroexp.h (macro_stringify): Return
5851 gdb::unique_xmalloc_ptr<char>.
5852 * macroexp.c (macro_stringify): Likewise.
5853 * macrotab.c (fixup_definition): Update.
5854
14d960c8
SM
58552020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5856
5857 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
5858 (lex_one_token): Update.
5859 * macroexp.c (struct macro_buffer) <release>: Return
5860 gdb::unique_xmalloc_ptr<char>.
5861 (macro_stringify): Update.
5862 (macro_expand): Update.
5863 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
5864 * macroexp.h (macro_expand_next): Likewise.
5865
211d5b1c
SM
58662020-07-02 Simon Marchi <simon.marchi@efficios.com>
5867
5868 * macroexp.h (macro_lookup_ftype): Remove.
5869 (macro_expand, macro_expand_once, macro_expand_next): Remove
5870 lookup function parameters, add scope parameter.
5871 * macroexp.c (scan, substitute_args, expand, maybe_expand,
5872 macro_expand, macro_expand_once, macro_expand_next): Likewise.
5873 * macroscope.h (standard_macro_lookup): Change parameter type
5874 to macro_scope.
5875 * macroscope.c (standard_macro_lookup): Likewise.
5876 * c-exp.y (lex_one_token): Update.
5877 * macrocmd.c (macro_expand_command): Likewise.
5878 (macro_expand_once_command): Likewise.
5879
b1a35af2
SM
58802020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5881
5882 * inf-loop.c (inferior_event_handler): Remove client_data param.
5883 * inf-loop.h (inferior_event_handler): Likewise.
5884 * infcmd.c (step_1): Adjust.
5885 * infrun.c (proceed): Adjust.
5886 (fetch_inferior_event): Remove client_data param.
5887 (infrun_async_inferior_event_handler): Adjust.
5888 * infrun.h (fetch_inferior_event): Remove `void *` param.
5889 * linux-nat.c (handle_target_event): Adjust.
5890 * record-btrace.c (record_btrace_handle_async_inferior_event):
5891 Adjust.
5892 * record-full.c (record_full_async_inferior_event_handler):
5893 Adjust.
5894 * remote.c (remote_async_inferior_event_handler): Adjust.
5895
1cdf9e33
TT
58962020-07-01 Tom Tromey <tom@tromey.com>
5897
5898 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
5899 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
5900
32c1e210
TT
59012020-07-01 Tom Tromey <tom@tromey.com>
5902
5903 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
5904 tui_gen_win_info.
5905 (tui_win_info::make_window): Merge with
5906 tui_gen_win_info::make_window.
5907 (tui_win_info::make_visible): Move from tui_gen_win_info.
5908 * tui/tui-win.c (tui_win_info::max_width): Move from
5909 tui_gen_win_info.
5910 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
5911 type.
5912 <window_factory>: Likewise.
5913 * tui/tui-layout.c (tui_win_info::resize): Move from
5914 tui_gen_win_info.
5915 (make_standard_window): Change return type.
5916 (get_locator_window, tui_get_window_by_name): Likewise.
5917 (tui_layout_window::apply): Remove a cast.
5918 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
5919 (struct tui_win_info): Merge with tui_gen_win_info.
5920 (struct tui_gen_win_info): Remove.
5921
a30cb6da
TT
59222020-07-01 Tom Tromey <tom@tromey.com>
5923
5924 * tui/tui-stack.h (struct tui_locator_window): Derive from
5925 tui_win_info.
5926 <do_scroll_horizontal, do_scroll_vertical>: New methods.
5927 <can_box>: New method.
5928
1eb2161f
TT
59292020-07-01 Tom Tromey <tom@tromey.com>
5930
5931 * tui/tui-stack.h (struct tui_locator_window): Remove body.
5932
7134f2eb
TT
59332020-07-01 Tom Tromey <tom@tromey.com>
5934
5935 * tui/tui-regs.c (tui_data_window::display_registers_from)
5936 (tui_data_window::display_registers_from)
5937 (tui_data_window::first_data_item_displayed)
5938 (tui_data_window::delete_data_content_windows): Update.
5939 (tui_data_window::refresh_window, tui_data_window::no_refresh):
5940 Remove.
5941 (tui_data_window::check_register_values): Update.
5942 (tui_data_item_window::rerender): Add parameters. Update.
5943 (tui_data_item_window::refresh_window): Remove.
5944 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
5945 virtual.
5946 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
5947 tui_gen_win_info.
5948 <refresh_window, max_height, min_height>: Remove.
5949 <rerender>: Add parameters.
5950 <x, y, visible>: New members.
5951 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
5952 <m_item_width>: New member.
5953
22b7b041
TT
59542020-07-01 Tom Tromey <tom@tromey.com>
5955
5956 * tui/tui-regs.c (tui_data_window::show_register_group)
5957 (tui_data_window::check_register_values): Update.
5958 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
5959 from item_no.
5960
c9753adb
TT
59612020-07-01 Tom Tromey <tom@tromey.com>
5962
5963 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
5964 useless "if".
5965
9ab26b4a
TT
59662020-07-01 Tom Tromey <tom@tromey.com>
5967
5968 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
5969 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
5970
e555083f
TT
59712020-07-01 Tom Tromey <tom@tromey.com>
5972
5973 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
5974 * tui/tui-winsource.h (enum tui_line_or_address_kind)
5975 (struct tui_line_or_address): Move from tui-data.h.
5976 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
5977 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
5978 (tui_cmd_window, tui_source_window_base, tui_source_window)
5979 (tui_disasm_window): Don't declare.
5980 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
5981 to tui-winsource.h.
5982 (SINGLE_KEY): Move to tui-stack.c.
5983
7a02bab7
TT
59842020-07-01 Tom Tromey <tom@tromey.com>
5985
5986 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
5987 std::string.
5988 * tui/tui-regs.c (class tab_expansion_file): New.
5989 (tab_expansion_file::write): New method.
5990 (tui_register_format): Change return type. Use
5991 tab_expansion_file.
5992 (tui_get_register, tui_data_window::display_registers_from)
5993 (tui_data_item_window::rerender): Update.
5994 * tui/tui-io.h (tui_expand_tabs): Don't declare.
5995 * tui/tui-io.c (tui_expand_tabs): Remove.
5996
ea68593b
TT
59972020-07-01 Tom Tromey <tom@tromey.com>
5998
5999 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
6000
a8caed5d
FS
60012020-07-01 Fangrui Song <maskray@google.com>
6002
6003 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
6004
9cdf9820
AKS
60052020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6006
6007 * dwarf2/read.c (set_die_type): Removed conditions to restrict
6008 forms for DW_AT_associated and DW_AT_allocated attributes,
6009 which is already checked in function attr_to_dynamic_prop.
6010
a1520ad8
TT
60112020-06-30 Tom Tromey <tromey@adacore.com>
6012
6013 * dwarf2/read.c (quirk_rust_enum): Correctly call
6014 alloc_rust_variant for default-less enum.
6015
5ac58899
TT
60162020-06-30 Tom Tromey <tromey@adacore.com>
6017
6018 PR build/26183:
6019 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
6020 gdb::to_string.
6021
19b187a9
SM
60222020-06-29 Simon Marchi <simon.marchi@efficios.com>
6023
6024 * gdbarch.sh (displaced_step_copy_insn): Update doc.
6025 * gdbarch.h: Re-generate.
6026
cd4c4c07
TT
60272020-06-28 Tom Tromey <tom@tromey.com>
6028
6029 * command.h (cmd_types): Remove.
6030 (cmd_type): Don't declare.
6031 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
6032 typedef.
6033 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
6034 * cli/cli-decode.c (cmd_type): Remove.
6035
05779d57
PA
60362020-06-27 Pedro Alves <palves@redhat.com>
6037
6038 * fork-child.c (prefork_hook): Adjust.
6039 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
6040 Delete.
6041 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
6042 * inferior.c (inferior::set_tty, inferior::tty): New methods.
6043 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
6044 Remove declarations.
6045 (struct inferior) <set_tty, tty>: New methods.
6046 (struct inferior) <terminal>: Rename to ...
6047 (struct inferior) <m_terminal>: ... this and make private.
6048 * main.c (captured_main_1): Adjust.
6049 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
6050 (mi_cmd_inferior_tty_show): Adjust.
6051 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
6052 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
6053
1776e3e5
NA
60542020-06-26 Nick Alcock <nick.alcock@oracle.com>
6055
6056 * configure.ac: Add --enable-libctf: handle --disable-static
6057 properly.
6058 * acinclude.m4: sinclude ../config/enable.m4.
6059 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
6060 (LIBCTF): Substitute in.
6061 (CTF_DEPS): New, likewise.
6062 (CLIBS): libctf needs symbols from libbfd: move earlier.
6063 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
6064 flags.
6065 * ctfread.c: Surround in ENABLE_LIBCTF.
6066 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
6067 * configure: Regenerate.
6068 * config.in: Likewise.
6069
58373b80
SM
60702020-06-25 Simon Marchi <simon.marchi@efficios.com>
6071
6072 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
6073
277474ee
SM
60742020-06-25 Simon Marchi <simon.marchi@efficios.com>
6075
6076 * inferior.h (struct inferior) <terminal>: Change type to
6077 gdb::unique_xmalloc_ptr<char>.
6078 * inferior.c (inferior::~inferior): Don't free inf->terminal.
6079 * infcmd.c (set_inferior_io_terminal): Don't free terminal
6080 field, adjust to unique pointer.
6081 (get_inferior_io_terminal): Adjust to unique pointer.
6082
6d74da72
AB
60832020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6084
6085 * riscv-tdep.c (riscv_print_registers_info): Loop over all
6086 registers, not just the known core set of registers.
6087
2e52d038
AB
60882020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6089
6090 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
6091 fflags, frm, and fcsr registers.
6092 (riscv_register_reggroup_p): Remove unknown CSRs from save and
6093 restore groups.
6094 (riscv_tdesc_unknown_reg): New function.
6095 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
6096 tdesc_use_registers.
6097 * riscv-tdep.h (struct gdbarch_tdep): Add
6098 unknown_csrs_first_regnum, unknown_csrs_count,
6099 duplicate_fflags_regnum, duplicate_frm_regnum, and
6100 duplicate_fcsr_regnum fields.
6101
be64fd07
AB
61022020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6103
6104 * target-descriptions.c (tdesc_use_registers): Add new parameter a
6105 callback, use the callback (when not null) to help number unknown
6106 registers.
6107 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
6108 (tdesc_use_registers): Add extra parameter to declaration.
6109
3b9fce96
AB
61102020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6111
6112 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
6113 in the file.
6114 (class riscv_pending_register_alias): Likewise.
6115 (riscv_register_feature::register_info): Change 'required_p' field
6116 to 'required', and change its type. Add 'check' member function.
6117 (riscv_register_feature::register_info::check): Define new member
6118 function.
6119 (riscv_xreg_feature): Change initialisation of 'required' field.
6120 (riscv_freg_feature): Likewise.
6121 (riscv_virtual_feature): Likewise.
6122 (riscv_csr_feature): Likewise.
6123 (riscv_check_tdesc_feature): Take extra parameter, the csr
6124 tdesc_feature, rewrite the function to use the new
6125 riscv_register_feature::register_info::check function.
6126 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
6127
865bad26
AB
61282020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6129
6130 * features/Makefile: Remove all references to the deleted files
6131 below.
6132 * features/riscv/32bit-csr.c: Deleted.
6133 * features/riscv/32bit-csr.xml: Deleted.
6134 * features/riscv/64bit-csr.c: Deleted.
6135 * features/riscv/64bit-csr.xml: Deleted.
6136 * features/riscv/rebuild-csr-xml.sh: Deleted.
6137
ed69cbc8
AB
61382020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6139
6140 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
6141 whitespace error for declaration of names member variable.
6142 (struct riscv_register_feature): Add new prefer_first_name member
6143 variable, and fix whitespace error in declaration of registers.
6144 (riscv_xreg_feature): Initialize prefer_first_name field.
6145 (riscv_freg_feature): Likewise.
6146 (riscv_virtual_feature): Likewise.
6147 (riscv_csr_feature): Likewise.
6148 (riscv_register_name): Expand on comments. Remove register name
6149 modifications for CSR and virtual registers.
6150
4445e8f5
AB
61512020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6152
6153 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
6154 errors.
6155
767a879e
AB
61562020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6157
6158 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
6159 riscv-opc.h.
6160 (class riscv_pending_register_alias): New class.
6161 (riscv_check_tdesc_feature): Take vector of pending aliases and
6162 populate it as appropriate.
6163 (riscv_setup_register_aliases): Delete.
6164 (riscv_gdbarch_init): Create vector of pending aliases and pass it
6165 to riscv_check_tdesc_feature in all cases. Use the vector to
6166 create the register aliases.
6167
bb6e55f3
RO
61682020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6169
6170 * sol2-tdep.c (sol2_static_transform_name): Remove.
6171 (sol2_init_abi): Don't register it.
6172 * gdbarch.sh (static_transform_name): Remove.
6173 * gdbarch.c, gdbarch.h: Regenerate.
6174
6175 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
6176 gdbarch_static_transform_name.
6177 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
6178 * stabsread.c (define_symbol) <'X'>: Remove.
6179 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
6180 handling.
6181 <'V'>: Likewise.
6182 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
6183 <'S'>: Remove call to gdbarch_static_transform_name.
6184
c6d36836
RO
61852020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6186
6187 * procfs.c (procfs_pre_trace): New function.
6188 (procfs_target::create_inferior): Pass it to fork_inferior.
6189
a7e6196b
RO
61902020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6191
6192 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
6193 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
6194 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
6195 sol2-tdep.o, sparc-sol2-tdep.o.
6196 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
6197 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
6198 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
6199 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
6200
d412e696
RO
62012020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6202
6203 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
6204 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
6205 Call sol2_init_abi.
6206 Remove calls to set_gdbarch_skip_solib_resolver,
6207 set_gdbarch_core_pid_to_str.
6208 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
6209 (i386_sol2_static_transform_name): Remove.
6210 (i386_sol2_init_abi): Call sol2_init_abi.
6211 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6212 set_gdbarch_static_transform_name,
6213 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6214 Use sol2_sigtramp_p.
6215 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
6216 (sol2_sigtramp_p): New function.
6217 (sol2_static_transform_name): New function.
6218 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
6219 (sol2_init_abi): New function.
6220 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
6221 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
6222 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
6223 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
6224 (sparc_sol2_static_transform_name): Remove.
6225 (sparc32_sol2_init_abi): Call sol2_init_abi.
6226 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6227 set_gdbarch_static_transform_name,
6228 set_gdbarch_skip_solib_resolver,
6229 set_gdbarch_core_pid_to_str.
6230 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
6231 (sparc_sol2_static_transform_name): Remove
6232 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
6233 call sol2_sigtramp_p.
6234 (sparc64_sol2_init_abi): Call sol2_init_abi.
6235 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6236 set_gdbarch_static_transform_name,
6237 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6238
a8654e7d
PW
62392020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6240
6241 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
6242 * exec.c (validate_exec_file): If from_tty, set both
6243 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
6244 * symfile.c (symbol_file_add_with_addrs): if always_confirm
6245 and from_tty, unconditionally ask a confirmation.
6246
caa7fd04
AB
62472020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6248
6249 * target-descriptions.c (tdesc_architecture_name): Protect against
6250 NULL pointer dereference.
6251 (maint_print_xml_tdesc_cmd): New function.
6252 (_initialize_target_descriptions): Register new 'maint print
6253 xml-tdesc' command and give it the filename completer.
6254 * NEWS: Mention new 'maint print xml-tdesc' command.
6255
fbf42f4e
AB
62562020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6257
6258 * target-descriptions.c (class tdesc_compatible_info): New class.
6259 (struct target_desc): Change type of compatible vector.
6260 (tdesc_compatible_p): Update for change in type of
6261 target_desc::compatible.
6262 (tdesc_compatible_info_list): New function.
6263 (tdesc_compatible_info_arch_name): New function.
6264 (tdesc_add_compatible): Update for change in type of
6265 target_desc::compatible.
6266 (print_c_tdesc::visit_pre): Likewise.
6267
20821f4e
AB
62682020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6269
6270 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
6271 whitespace to underscore.
6272 (maint_print_c_tdesc_cmd): Use fake filename for target
6273 descriptions that came from the target.
6274 (_initialize_target_descriptions): Add filename command completion
6275 for 'maint print c-tdesc'.
6276
1fb5ee62
SM
62772020-06-23 Simon Marchi <simon.marchi@efficios.com>
6278
6279 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
6280 lines.
6281
fc3ecb3e
SM
62822020-06-23 Simon Marchi <simon.marchi@efficios.com>
6283
6284 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
6285 lines.
6286 (dwarf2_find_location_expression): Likewise.
6287 (call_site_parameter_matches): Likewise.
6288 (dwarf2_compile_expr_to_ax): Likewise.
6289 (disassemble_dwarf_expression): Likewise.
6290 (loclist_describe_location): Likewise.
6291
236ef034
PA
62922020-06-23 Pedro Alves <palves@redhat.com>
6293
6294 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
6295 progspace-and-thread.h. Include scoped-mock-context.h instead.
6296 (register_to_value_test): Use scoped_mock_context.
6297 * regcache.c: Include "scoped-mock-context.h".
6298 (cooked_read_test): Don't error out if a target is already pushed.
6299 Use scoped_mock_context. Adjust.
6300 * scoped-mock-context.h: New file.
6301
39e7ecca
AB
63022020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6303
6304 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
6305 initializer.
6306 (ada_language::is_string_type_p): New member function.
6307 * c-lang.c (c_language_data): Delete la_is_string_type_p
6308 initializer.
6309 (cplus_language_data): Likewise.
6310 (asm_language_data): Likewise.
6311 (minimal_language_data): Likewise.
6312 * d-lang.c (d_language_data): Likewise.
6313 * f-lang.c (f_is_string_type_p): Delete function, implementation
6314 moved to f_language::is_string_type_p.
6315 (f_language_data): Delete la_is_string_type_p initializer.
6316 (f_language::is_string_type_p): New member function,
6317 implementation from f_is_string_type_p.
6318 * go-lang.c (go_is_string_type_p): Delete function, implementation
6319 moved to go_language::is_string_type_p.
6320 (go_language_data): Delete la_is_string_type_p initializer.
6321 (go_language::is_string_type_p): New member function,
6322 implementation from go_is_string_type_p.
6323 * language.c (language_defn::is_string_type_p): Define new member
6324 function.
6325 (default_is_string_type_p): Make static, add comment copied from
6326 header file.
6327 (unknown_language_data): Delete la_is_string_type_p initializer.
6328 (unknown_language::is_string_type_p): New member function.
6329 (auto_language_data): Delete la_is_string_type_p initializer.
6330 (auto_language::is_string_type_p): New member function.
6331 * language.h (language_data): Delete la_is_string_type_p field.
6332 (language_defn::is_string_type_p): Declare new function.
6333 (default_is_string_type_p): Delete desclaration, move comment to
6334 definition.
6335 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
6336 moved to m2_language::is_string_type_p.
6337 (m2_language_data): Delete la_is_string_type_p initializer.
6338 (m2_language::is_string_type_p): New member function,
6339 implementation from m2_is_string_type_p.
6340 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
6341 initializer.
6342 * opencl-lang.c (opencl_language_data): Likewise.
6343 * p-lang.c (pascal_is_string_type_p): Delete function,
6344 implementation moved to pascal_language::is_string_type_p.
6345 (pascal_language_data): Delete la_is_string_type_p initializer.
6346 (pascal_language::is_string_type_p): New member function,
6347 implementation from pascal_is_string_type_p.
6348 * rust-lang.c (rust_is_string_type_p): Delete function,
6349 implementation moved to rust_language::is_string_type_p.
6350 (rust_language_data): Delete la_is_string_type_p initializer.
6351 (rust_language::is_string_type_p): New member function,
6352 implementation from rust_is_string_type_p.
6353 * valprint.c (val_print_scalar_or_string_type_p): Update call to
6354 is_string_type_p.
6355
4ffc13fb
AB
63562020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6357
6358 * ada-lang.c (ada_language_data): Delete la_print_typedef
6359 initializer.
6360 (ada_language::print_typedef): New member function.
6361 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
6362 (cplus_language_data): Likewise.
6363 (asm_language_data): Likewise.
6364 (minimal_language_data): Likewise.
6365 * d-lang.c (d_language_data): Likewise.
6366 * f-lang.c (f_language_data): Likewise.
6367 (f_language::print_typedef): New member function.
6368 * go-lang.c (go_language_data): Delete la_print_typedef
6369 initializer.
6370 * language.c (language_defn::print_typedef): Define member
6371 function.
6372 (unknown_language_data): Delete la_print_typedef initializer.
6373 (unknown_language::print_typedef): New member function.
6374 (auto_language_data): Delete la_print_typedef initializer.
6375 (auto_language::print_typedef): New member function.
6376 * language.h (language_data): Delete la_print_typedef field.
6377 (language_defn::print_typedef): Declare new member function.
6378 (LA_PRINT_TYPEDEF): Update call to print_typedef.
6379 (default_print_typedef): Delete declaration.
6380 * m2-lang.c (m2_language_data): Delete la_print_typedef
6381 initializer.
6382 (m2_language::print_typedef): New member function.
6383 * objc-lang.c (objc_language_data): Delete la_print_typedef
6384 initializer.
6385 * opencl-lang.c (opencl_language_data): Likewise.
6386 * p-lang.c (pascal_language_data): Likewise.
6387 (pascal_language::print_typedef): New member function.
6388 * rust-lang.c (rust_print_typedef): Delete function,
6389 implementation moved to rust_language::print_typedef.
6390 (rust_language): Delete la_print_typedef initializer.
6391 (rust_language::print_typedef): New member function,
6392 implementation from rust_print_typedef.
6393 * typeprint.c (default_print_typedef): Delete.
6394
d711ee67
AB
63952020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6396
6397 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
6398 (ada_language::printstr): New member function.
6399 * c-lang.c (c_language_data): Delete la_printstr initializer.
6400 (cplus_language_data): Likewise.
6401 (asm_language_data): Likewise.
6402 (minimal_language_data): Likewise.
6403 * d-lang.c (d_language_data): Likewise.
6404 * f-lang.c (f_printstr): Rename to f_language::printstr.
6405 (f_language_data): Delete la_printstr initializer.
6406 (f_language::printstr): New member function, implementation from
6407 f_printstr.
6408 * go-lang.c (go_language_data): Delete la_printstr initializer.
6409 * language.c (language_defn::printstr): Define new member
6410 function.
6411 (unk_lang_printstr): Delete.
6412 (unknown_language_data): Delete la_printstr initializer.
6413 (unknown_language::printstr): New member function.
6414 (auto_language_data): Delete la_printstr initializer.
6415 (auto_language::printstr): New member function.
6416 * language.h (language_data): Delete la_printstr field.
6417 (language_defn::printstr): Declare new member function.
6418 (LA_PRINT_STRING): Update call to printstr.
6419 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
6420 (m2_language_data): Delete la_printstr initializer.
6421 (m2_language::printstr): New member function, implementation from
6422 m2_printstr.
6423 * objc-lang.c (objc_language_data): Delete la_printstr
6424 initializer.
6425 * opencl-lang.c (opencl_language_data): Likewise.
6426 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
6427 (pascal_language_data): Delete la_printstr initializer.
6428 (pascal_language::printstr): New member function, implementation
6429 from pascal_printstr.
6430 * p-lang.h (pascal_printstr): Delete declaration.
6431 * rust-lang.c (rust_printstr): Update header comment.
6432 (rust_language_data): Delete la_printstr initializer.
6433 (rust_language::printstr): New member function.
6434
52b50f2c
AB
64352020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6436
6437 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
6438 (ada_language::printchar): New member function.
6439 * c-lang.c (c_language_data): Delete la_printchar initializer.
6440 (cplus_language_data): Likewise.
6441 (asm_language_data): Likewise.
6442 (minimal_language_data): Likewise.
6443 * d-lang.c (d_language_data): Likewise.
6444 * f-lang.c (f_printchar): Rename to f_language::printchar.
6445 (f_language_data): Delete la_printchar initializer.
6446 (f_language::printchar): New member function, implementation from
6447 f_printchar.
6448 * go-lang.c (go_language_data): Delete la_printchar initializer.
6449 * language.c (unk_lang_printchar): Delete.
6450 (language_defn::printchar): Define new member function.
6451 (unknown_language_data): Delete la_printchar initializer.
6452 (unknown_language::printchar): New member function.
6453 (auto_language_data): Delete la_printchar initializer.
6454 (auto_language::printchar): New member function.
6455 * language.h (language_data): Delete la_printchar field.
6456 (language_defn::printchar): Declare new member function.
6457 (LA_PRINT_CHAR): Update call to printchar.
6458 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
6459 (m2_language::printchar): New member function.
6460 * objc-lang.c (objc_language_data): Delete la_printchar
6461 initializer.
6462 * opencl-lang.c (opencl_language_data): Likewise.
6463 * p-lang.c (pascal_language_data): Delete la_printchar
6464 initializer.
6465 (pascal_language::printchar): New member function.
6466 * rust-lang.c (rust_printchar): Rename to
6467 rust_language::printchar.
6468 (rust_language_data): Delete la_printchar initializer.
6469 (rust_language::printchar): New member function, implementation
6470 from rust_printchar.
6471
ec8cec5b
AB
64722020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6473
6474 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
6475 (ada_language_data): Delete la_emitchar initializer.
6476 (ada_language::emitchar): New member function, implementation from
6477 emit_char.
6478 * c-lang.c (c_language_data): Delete la_emitchar initializer.
6479 (cplus_language_data): Likewise.
6480 (asm_language_data): Likewise.
6481 (minimal_language_data): Likewise.
6482 * d-lang.c (d_language_data): Likewise.
6483 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
6484 (f_language_data): Delete la_emitchar initializer.
6485 (f_language::emitchar): New member function, implementation from
6486 f_emit_char.
6487 * go-lang.c (go_language_data): Delete la_emitchar initializer.
6488 * language.c (unk_lang_emit_char): Delete.
6489 (language_defn::emitchar): New member function definition.
6490 (unknown_language_data): Delete la_emitchar initializer.
6491 (unknown_language::emitchar): New member function.
6492 (auto_language_data): Delete la_emitchar initializer.
6493 (auto_language::emitchar): New member function.
6494 * language.h (language_data): Delete la_emitchar field.
6495 (language_defn::emitchar): New member field declaration.
6496 (LA_EMIT_CHAR): Update call to emitchar.
6497 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
6498 (m2_language_data): Delete la_emitchar initializer.
6499 (m2_language::emitchar): New member function, implementation from
6500 m2_emit_char.
6501 * objc-lang.c (objc_language_data): Delete la_emitchar
6502 initializer.
6503 * opencl-lang.c (opencl_language_data): Likewise.
6504 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
6505 (pascal_language_data): Delete la_emitchar initializer.
6506 (pascal_language::emitchar): New member function, implementation
6507 from pascal_emit_char.
6508 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
6509 (rust_language_data): Delete la_emitchar initializer.
6510 (rust_language::emitchar): New member function, implementation
6511 from rust_emitchar.
6512
1bf9c363
AB
65132020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6514
6515 * ada-lang.c (resolve): Rename to ada_language::post_parser.
6516 (ada_language_data): Delete la_post_parser initializer.
6517 (ada_language::post_parser): New member function.
6518 * c-lang.c (c_language_data): Delete la_post_parser initializer.
6519 (cplus_language_data): Likewise.
6520 (asm_language_data): Likewise.
6521 (minimal_language_data): Likewise.
6522 * d-lang.c (d_language_data): Likewise.
6523 * f-lang.c (f_language_data): Likewise.
6524 * go-lang.c (go_language_data): Likewise.
6525 * language.c (unknown_language_data): Likewise.
6526 (auto_language_data): Likewise.
6527 * language.h (language_data): Delete la_post_parser field.
6528 (language_defn::post_parser): New member function.
6529 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
6530 * objc-lang.c (objc_language_data): Likewise.
6531 * opencl-lang.c (opencl_language_data): Likewise.
6532 * p-lang.c (pascal_language_data): Likewise.
6533 * parse.c (parse_exp_in_context): Update call to post_parser.
6534 (null_post_parser): Delete definition.
6535 * parser-defs.h (null_post_parser): Delete declaration.
6536 * rust-lang.c (rust_language_data): Delete la_post_parser
6537 initializer.
6538
87afa652
AB
65392020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6540
6541 * ada-lang.c (parse): Rename to ada_language::parser.
6542 (ada_language_data): Delete la_parser initializer.
6543 (ada_language::parser): New member function, implementation from
6544 parse.
6545 * c-lang.c (c_language_data): Delete la_parser initializer.
6546 (cplus_language_data): Likewise.
6547 (asm_language_data): Likewise.
6548 (minimal_language_data): Likewise.
6549 * d-lang.c (d_language_data): Likewise.
6550 (d_language::parser): New member function.
6551 * f-lang.c (f_language_data): Delete la_parser initializer.
6552 (f_language::parser): New member function.
6553 * go-lang.c (go_language_data): Delete la_parser initializer.
6554 (go_language::parser): New member function.
6555 * language.c (unk_lang_parser): Delete.
6556 (language_defn::parser): Define new member function.
6557 (unknown_language_data): Delete la_parser initializer.
6558 (unknown_language::parser): New member function.
6559 (auto_language_data): Delete la_parser initializer.
6560 (auto_language::parser): New member function.
6561 * language.h (language_data): Delete la_parser field.
6562 (language_defn::parser): Declare new member function.
6563 * m2-lang.c (m2_language_data): Delete la_parser initializer.
6564 (m2_language::parser): New member function.
6565 * objc-lang.c (objc_language_data): Delete la_parser initializer.
6566 * opencl-lang.c (opencl_language_data): Likewise.
6567 * p-lang.c (pascal_language_data): Likewise.
6568 (pascal_language::parser): New member function.
6569 * parse.c (parse_exp_in_context): Update call to parser.
6570 * rust-lang.c (rust_language_data): Delete la_parser initializer.
6571 (rust_language::parser): New member function.
6572
37825800
AB
65732020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6574
6575 * top.c (print_gdb_configuration): Print --with-python-libdir
6576 configuration value.
6577
5b860c93
PW
65782020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6579
6580 * NEWS: Mention change to the alias command.
6581
cf00cd6f
PW
65822020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6583
6584 * cli/cli-cmds.c (lookup_cmd_for_default_args)
6585 (alias_command_completer)
6586 (make_alias_options_def_group): New functions.
6587 (alias_opts, alias_option_defs): New struct and array.
6588 (alias_usage_error): Update usage.
6589 (alias_command): Handles optional DEFAULT-ARGS... arguments.
6590 Use option framework.
6591 (_initialize_cli_cmds): Update alias command help.
6592 Update aliases command help.
6593 (show_user):
6594 Add NULL for new default_args lookup_cmd argument.
6595 (valid_command_p): Rename to validate_aliased_command.
6596 Add NULL for new default_args lookup_cmd argument. Verify that the
6597 aliased_command has no default args.
6598 * cli/cli-decode.c (help_cmd): Show aliases definitions.
6599 (lookup_cmd_1, lookup_cmd): New argument default_args.
6600 (add_alias_cmd):
6601 Add NULL for new default_args lookup_cmd argument.
6602 (print_help_for_command): Show default args under the layout
6603 alias some_alias = some_aliased_cmd some_alias_default_arg.
6604 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
6605 xfree default_args in destructor.
6606 * cli/cli-script.c (process_next_line, do_define_command):
6607 Add NULL for new default_args lookup_cmd argument.
6608 * command.h: Declare new default_args argument in lookup_cmd
6609 and lookup_cmd_1.
6610 * completer.c (complete_line_internal_1):
6611 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6612 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
6613 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
6614 Likewise.
6615 * infcmd.c (_initialize_infcmd): Likewise.
6616 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
6617 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
6618 * python/py-param.c (add_setshow_generic): Likewise.
6619 * remote.c (_initialize_remote): Likewise.
6620 * top.c (execute_command): Prepend default_args if command has some.
6621 (set_verbose):
6622 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6623 * tracepoint.c (validate_actionline, encode_actions_1):
6624 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6625
bd920864
TBA
66262020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6627
6628 * jit.c (jit_read_descriptor): Use bool as the return type.
6629 (jit_breakpoint_re_set_internal): Use bool as the return type.
6630 Invert the return value logic; return true if the jit breakpoint
6631 has been successfully initialized.
6632 (jit_inferior_init): Update the call to
6633 jit_breakpoint_re_set_internal.
6634
f8098322
PA
66352020-06-22 Pedro Alves <palves@redhat.com>
6636
6637 PR gdb/25939
6638 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
6639 Use the current inferior instead. Don't return
6640 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
6641 wait again.
6642 * sol-thread.c (sol_thread_target::wait): Don't reference
6643 inferior_ptid.
6644 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
6645 (sol_update_thread_list_callback): Use the current inferior's pid
6646 instead of inferior_ptid.
6647
196535a6
RO
66482020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6649
6650 * procfs.c: Cleanup many comments.
6651
6652 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
6653 (AFTER_WATCHFLAG): Replace by value.
6654
6655 (MAIN_PROC_NAME_FORMAT): Inline ...
6656 (create_procinfo): ... here.
6657
6658 (procfs_debug_inferior): Remove SYS_exec handling.
6659 (syscall_is_exec): Likewise.
6660 (procfs_set_exec_trap): Likewise.
6661
6662 (syscall_is_lwp_exit): Inline in callers.
6663 (syscall_is_exit): Likewise.
6664 (syscall_is_exec): Likewise.
6665 (syscall_is_lwp_create): Likewise.
6666
6667 (invalidate_cache): Remove #if 0 code.
6668
6669 (make_signal_thread_runnable): Remove.
6670 (procfs_target::resume): Remove #if 0 code.
6671
cf6f3e86
RO
66722020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6673
6674 PR gdb/25939
6675 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
6676 call ...
6677 (procfs_target::create_inferior): ... here.
6678
48e9cc84
PW
66792020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6680
6681 * exec.c (validate_exec_file): Ensure the build-id is up to
6682 date by calling reopen_exec_file (that checks file timestamp
6683 to decide to re-read the file).
6684
3922b302
PA
66852020-06-18 Pedro Alves <palves@redhat.com>
6686
6687 PR gdb/25412
6688 * gdbthread.h (delete_thread, delete_thread_silent)
6689 (find_thread_ptid): Update comments.
6690 * thread.c (current_thread_): New global.
6691 (is_current_thread): Move higher, and reimplement.
6692 (inferior_thread): Reimplement.
6693 (set_thread_exited): Use bool. Add assertions.
6694 (add_thread_silent): Simplify thread-reuse handling by always
6695 calling delete_thread.
6696 (delete_thread): Remove intro comment.
6697 (find_thread_ptid): Skip exited threads.
6698 (switch_to_thread_no_regs): Write to current_thread_.
6699 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
6700 INFERIOR_PTID. Clear current_thread_.
6701
6dbdab44
PA
67022020-06-18 Pedro Alves <palves@redhat.com>
6703
6704 * aix-thread.c (pd_update): Use switch_to_thread.
6705
2da4b788
PA
67062020-06-18 Pedro Alves <palves@redhat.com>
6707
6708 * ravenscar-thread.c (ravenscar_thread_target): Update.
6709 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
6710 (ravenscar_thread_target::add_active_thread): ... this. Don't
6711 set m_base_ptid here. Update to avoid referencing inferior_ptid.
6712 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
6713
50838d1b
PA
67142020-06-18 Pedro Alves <palves@redhat.com>
6715
6716 * nat/windows-nat.c (current_windows_thread): Remove.
6717 * nat/windows-nat.h (current_windows_thread): Remove.
6718 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
6719 Adjust.
6720 (display_selectors): Adjust to fetch the current
6721 windows_thread_info based on inferior_ptid.
6722 (fake_create_process): No longer write to current_windows_thread.
6723 (windows_nat_target::get_windows_debug_event):
6724 Don't set inferior_ptid or current_windows_thread.
6725 (windows_nat_target::wait): Adjust to not rely on
6726 current_windows_thread.
6727 (do_initial_windows_stuff): Now a method of windows_nat_target.
6728 Switch to the last_ptid thread.
6729 (windows_nat_target::attach): Adjust.
6730 (windows_nat_target::detach): Use switch_to_no_thread instead of
6731 writing to inferior_ptid directly.
6732 (windows_nat_target::create_inferior): Adjust.
6733
31ce04e9
PA
67342020-06-18 Pedro Alves <palves@redhat.com>
6735
6736 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
6737
1ee1a363
PA
67382020-06-18 Pedro Alves <palves@redhat.com>
6739
6740 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
6741 after creating it, instead of writing to inferior_ptid. Don't
6742 write to inferior_ptid.
6743
6d350754
PA
67442020-06-18 Pedro Alves <palves@redhat.com>
6745
6746 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
6747
5d971d48
PA
67482020-06-18 Pedro Alves <palves@redhat.com>
6749
6750 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
6751 it, instead of writing to inferior_ptid.
6752
86e57d1b
PA
67532020-06-18 Pedro Alves <palves@redhat.com>
6754
6755 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
6756 to inferior_ptid.
6757
f2e1c129
PA
67582020-06-18 Pedro Alves <palves@redhat.com>
6759
6760 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
6761 instead of writing to inferior_ptid directly.
6762
60db1b85
PA
67632020-06-18 Pedro Alves <palves@redhat.com>
6764
6765 * corelow.c (core_target::close): Use switch_to_no_thread instead
6766 of writing to inferior_ptid directly.
6767 (add_to_thread_list, core_target_open): Use switch_to_thread
6768 instead of writing to inferior_ptid directly.
6769
fe7d6a8d
PA
67702020-06-18 Pedro Alves <palves@redhat.com>
6771
6772 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
6773 inferior_ptid.
6774 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
6775 inferior_ptid.
6776 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
6777 inferior_ptid directly.
6778 (darwin_nat_target::init_thread_list): Switch to thread, instead
6779 of writing to inferior_ptid.
6780 (darwin_nat_target::attach): Don't write to inferior_ptid.
6781 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
6782
975f8708
PA
67832020-06-18 Pedro Alves <palves@redhat.com>
6784
6785 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
6786 thread.
6787 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
6788 Instead use switch_to_thread.
6789 (gnu_nat_target::detach): Use switch_to_no_thread
6790 instead of writing to inferior_ptid directly. Used passed-in
6791 inferior instead of looking up the inferior by pid.
6792
1a204730
PA
67932020-06-18 Pedro Alves <palves@redhat.com>
6794
6795 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
6796 inferior_ptid.
6797
ebe84f23
PA
67982020-06-18 Pedro Alves <palves@redhat.com>
6799
6800 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
6801 inferior_ptid.
6802 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
6803 thread.
6804 (nto_procfs_target::detach): Avoid referencing
6805 inferior_ptid. Use switch_to_no_thread instead of writing to
6806 inferior_ptid directly.
6807 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
6808 instead of writing to inferior_ptid directly.
6809 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
6810 to thread.
6811
191f02e5
PA
68122020-06-18 Pedro Alves <palves@redhat.com>
6813
6814 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
6815 after creating it, instead of writing to inferior_ptid.
6816 (gdbsim_target_open): Use switch_to_no_thread instead of writing
6817 to inferior_ptid directly.
6818 (gdbsim_target::wait): Don't write to inferior_ptid.
6819
0ac55310
PA
68202020-06-18 Pedro Alves <palves@redhat.com>
6821
6822 * remote.c (remote_target::remote_notice_new_inferior): Use
6823 switch_to_thread instead of writing to inferior_ptid directly.
6824 (remote_target::add_current_inferior_and_thread): Use
6825 switch_to_no_thread instead of writing to inferior_ptid directly.
6826 (extended_remote_target::attach): Use switch_to_inferior_no_thread
6827 and switch_to_thread instead of using set_current_inferior or
6828 writing to inferior_ptid directly.
6829
5233f39b
PA
68302020-06-18 Pedro Alves <palves@redhat.com>
6831
6832 * tracectf.c (ctf_target_open): Switch to added thread instead of
6833 writing to inferior_ptid directly.
6834 (ctf_target::close): Use switch_to_no_thread instead of writing to
6835 inferior_ptid directly.
6836
087e161b
PA
68372020-06-18 Pedro Alves <palves@redhat.com>
6838
6839 * tracefile-tfile.c (tfile_target_open): Don't write to
6840 inferior_ptid directly, instead switch to added thread.
6841 (tfile_target::close): Use switch_to_no_thread instead of writing
6842 to inferior_ptid directly.
6843
7fb43e53
PA
68442020-06-18 Pedro Alves <palves@redhat.com>
6845
6846 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
6847 (procfs_target::detach): Use switch_to_no_thread
6848 instead of writing to inferior_ptid directly.
6849 (do_attach): Change return type to void. Switch to the added
6850 thread.
6851 (procfs_target::create_inferior): Switch to the added thread.
6852 (procfs_do_thread_registers): Don't write to inferior_ptid.
6853
18493a00
PA
68542020-06-18 Pedro Alves <palves@redhat.com>
6855
6856 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
6857 of writing to inferior_ptid.
6858 (scoped_restore_exited_inferior): Delete.
6859 (handle_vfork_child_exec_or_exit): Simplify using
6860 scoped_restore_current_pspace_and_thread. Use switch_to_thread
6861 instead of writing to inferior_ptid.
6862 (THREAD_STOPPED_BY): Delete.
6863 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
6864 (thread_stopped_by_hw_breakpoint): Delete.
6865 (save_waitstatus): Use
6866 scoped_restore_current_thread+switch_to_thread, and call
6867 target_stopped_by_watchpoint instead of
6868 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
6869 instead of thread_stopped_by_sw_breakpoint, and
6870 target_stopped_by_hw_breakpoint instead of
6871 thread_stopped_by_hw_breakpoint.
6872 (handle_inferior_event)
6873 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
6874 inferior_ptid directly, nor
6875 set_current_inferior/set_current_program_space. Use
6876 switch_to_thread / switch_to_inferior_no_thread instead.
6877
a0776b13
PA
68782020-06-18 Pedro Alves <palves@redhat.com>
6879
6880 * target.c (generic_mourn_inferior): Use switch_to_no_thread
6881 instead of writing to inferior_ptid.
6882
6155c136
PA
68832020-06-18 Pedro Alves <palves@redhat.com>
6884
6885 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
6886 added thread.
6887 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
6888 to the added thread.
6889 (inf_ptrace_target::detach_success): Use switch_to_no_thread
6890 instead of writing to inferior_ptid.
6891
c5316fc6
PA
68922020-06-18 Pedro Alves <palves@redhat.com>
6893
6894 * gdbarch-selftests.c: Include "progspace-and-thread.h".
6895 (register_to_value_test): Mock a program_space too. Heap-allocate
6896 the address space. Don't write to inferior_ptid. Use
6897 switch_to_thread instead.
6898
8df01799
PA
68992020-06-18 Pedro Alves <palves@redhat.com>
6900
6901 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
6902 Delete.
6903 (find_signalled_thread()): New, factored out from
6904 linux_make_corefile_notes and adjusted to handle exited threads.
6905 (linux_make_corefile_notes): Adjust to use the new
6906 find_signalled_thread.
6907
41792d68
PA
69082020-06-18 Pedro Alves <palves@redhat.com>
6909
6910 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
6911 of saving/restoring inferior_ptid.
6912
612f258a
TT
69132020-06-17 Tom Tromey <tom@tromey.com>
6914
6915 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
6916 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
6917 declare.
6918 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
6919
efb763a5
SM
69202020-06-15 Simon Marchi <simon.marchi@efficios.com>
6921
6922 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
6923 of partial symtabs.
6924
2951f6c0
SM
69252020-06-17 Simon Marchi <simon.marchi@efficios.com>
6926
6927 * regformats/reg-arm.dat: Remove.
6928 * regformats/reg-bfin.dat: Remove.
6929 * regformats/reg-cris.dat: Remove.
6930 * regformats/reg-crisv32.dat: Remove.
6931 * regformats/reg-m32r.dat: Remove.
6932 * regformats/reg-tilegx.dat: Remove.
6933 * regformats/reg-tilegx32.dat: Remove.
6934
7d458ea5
SM
69352020-06-17 Simon Marchi <simon.marchi@efficios.com>
6936
6937 * features/Makefile (WHICH): Remove arm files.
6938 * regformats/arm/arm-with-iwmmxt.dat: Remove.
6939 * regformats/arm/arm-with-neon.dat: Remove.
6940 * regformats/arm/arm-with-vfpv2.dat: Remove.
6941 * regformats/arm/arm-with-vfpv3.dat: Remove.
6942
3af96c0d
SM
69432020-06-17 Simon Marchi <simon.marchi@efficios.com>
6944
6945 * features/Makefile (XMLTOC): Remove rx.xml.
6946
b25e22fd
PA
69472020-06-17 Pedro Alves <palves@redhat.com>
6948
6949 * gdbthread.h (thread_control_state) <trap_expected> Update
6950 comments.
6951
a78a19b1
AB
69522020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6953
6954 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
6955 ada_language::lookup_symbol_nonlocal.
6956 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
6957 (ada_language::lookup_symbol_nonlocal): New member function,
6958 implementation from ada_lookup_symbol_nonlocal.
6959 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
6960 initializer.
6961 (cplus_language_data): Delete la_lookup_symbol_nonlocal
6962 initializer.
6963 (cplus_language::lookup_symbol_nonlocal): New member function.
6964 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
6965 (minimal_language_data) Likewise.
6966 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
6967 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
6968 initializer.
6969 (d_language::lookup_symbol_nonlocal): New member function.
6970 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
6971 initializer.
6972 (f_language::lookup_symbol_nonlocal): New member function.
6973 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
6974 initializer.
6975 * language.c (unknown_language_data): Likewise.
6976 (auto_language_data): Likewise.
6977 * language.h (language_data): Delete la_lookup_symbol_nonlocal
6978 field.
6979 (language_defn::lookup_symbol_nonlocal): New member function.
6980 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
6981 initializer.
6982 * objc-lang.c (objc_language_data): Likewise.
6983 * opencl-lang.c (opencl_language_data): Likewise.
6984 * p-lang.c (pascal_language_data): Likewise.
6985 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
6986 rust_language::lookup_symbol_nonlocal.
6987 (rust_language_data): Delete la_lookup_symbol_nonlocal
6988 initializer.
6989 (rust_language::lookup_symbol_nonlocal): New member function,
6990 implementation from rust_lookup_symbol_nonlocal.
6991 * symtab.c (lookup_symbol_aux): Update call to
6992 lookup_symbol_nonlocal.
6993 (basic_lookup_symbol_nonlocal): Rename to...
6994 (language_defn::lookup_symbol_nonlocal): ...this, and update
6995 header comment. Remove language_defn parameter, and replace with
6996 uses of `this'.
6997 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
6998
ebe2334e
AB
69992020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7000
7001 * ada-lang.c (ada_language_data): Delete la_value_print_inner
7002 initializer.
7003 (ada_language::value_print_inner): New member function.
7004 * c-lang.c (c_language_data): Delete la_value_print_inner
7005 initializer.
7006 (cplus_language_data): Likewise.
7007 (asm_language_data): Likewise.
7008 (minimal_language_data): Likewise.
7009 * d-lang.c (d_language_data): Likewise.
7010 (d_language::value_print_inner): New member function.
7011 * f-lang.c (f_language_data): Delete la_value_print_inner
7012 initializer.
7013 (f_language::value_print_inner): New member function.
7014 * f-lang.h (f_value_print_innner): Rename to...
7015 (f_value_print_inner): ...this (note spelling of 'inner').
7016 * f-valprint.c (f_value_print_innner): Rename to...
7017 (f_value_print_inner): ...this (note spelling of 'inner').
7018 * go-lang.c (go_language_data): Delete la_value_print_inner
7019 initializer.
7020 (go_language::value_print_inner): New member function.
7021 * language.c (language_defn::value_print_inner): Define new member
7022 function.
7023 (unk_lang_value_print_inner): Delete.
7024 (unknown_language_data): Delete la_value_print_inner initializer.
7025 (unknown_language::value_print_inner): New member function.
7026 (auto_language_data): Delete la_value_print_inner initializer.
7027 (auto_language::value_print_inner): New member function.
7028 * language.h (language_data): Delete la_value_print_inner field.
7029 (language_defn::value_print_inner): Delcare new member function.
7030 * m2-lang.c (m2_language_data): Delete la_value_print_inner
7031 initializer.
7032 (m2_language::value_print_inner): New member function.
7033 * objc-lang.c (objc_language_data): Delete la_value_print_inner
7034 initializer.
7035 * opencl-lang.c (opencl_language_data): Likewise.
7036 * p-lang.c (pascal_language_data): Likewise.
7037 (pascal_language::value_print_inner): New member function.
7038 * rust-lang.c (rust_language_data): Delete la_value_print_inner
7039 initializer.
7040 (rust_language::value_print_inner): New member function.
7041 * valprint.c (do_val_print): Update call to value_print_inner.
7042
a1d1fa3e
AB
70432020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7044
7045 * ada-lang.c (ada_language_data): Delete la_value_print
7046 initializer.
7047 (ada_language::value_print): New member function.
7048 * c-lang.c (c_language_data): Delete la_value_print initializer.
7049 (cplus_language_data): Likewise.
7050 (asm_language_data): Likewise.
7051 (minimal_language_data): Likewise.
7052 * d-lang.c (d_language_data): Likewise.
7053 * f-lang.c (f_language_data): Likewise.
7054 * go-lang.c (go_language_data): Likewise.
7055 * language.c (unk_lang_value_print): Delete.
7056 (language_defn::value_print): Define new member function.
7057 (unknown_language_data): Delete la_value_print initializer.
7058 (unknown_language::value_print): New member function.
7059 (auto_language_data): Delete la_value_print initializer.
7060 (auto_language::value_print): New member function.
7061 * language.h (language_data): Delete la_value_print field.
7062 (language_defn::value_print): Declare new member function.
7063 (LA_VALUE_PRINT): Update call to value_print.
7064 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
7065 * objc-lang.c (objc_language_data): Likewise.
7066 * opencl-lang.c (opencl_language_data): Likewise.
7067 * p-lang.c (pascal_language_data): Likewise.
7068 (pascal_language::value_print): New member function.
7069 * rust-lang.c (rust_language_data): Delete la_value_print
7070 initializer.
7071
f16a9f57
AB
70722020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7073
7074 * ada-lang.c (ada_watch_location_expression): Rename to
7075 ada_language::watch_location_expression.
7076 (ada_language_data): Delete la_watch_location_expression
7077 initializer.
7078 (ada_language::watch_location_expression): New member function,
7079 implementation from ada_watch_location_expression.
7080 * breakpoint.c (watch_command_1): Update call to
7081 watch_location_expression.
7082 * c-lang.c (c_watch_location_expression): Rename to
7083 language_defn::watch_location_expression.
7084 (c_language_data): Delete la_watch_location_expression
7085 initializer.
7086 (cplus_language_data): Likewise.
7087 (asm_language_data): Likewise.
7088 (minimal_language_data): Likewise.
7089 * c-lang.h (c_watch_location_expression): Delete declaration.
7090 * d-lang.c (d_language_data): Delete la_watch_location_expression
7091 initializer.
7092 * f-lang.c (f_language_data): Likewise.
7093 * go-lang.c (go_language_data): Likewise.
7094 * language.c (language_defn::watch_location_expression): Member
7095 function implementation from c_watch_location_expression.
7096 (unknown_language_data): Delete la_watch_location_expression
7097 initializer.
7098 (auto_language_data): Likewise.
7099 * language.h (language_data): Delete la_watch_location_expression
7100 field.
7101 (language_defn::watch_location_expression): Declare new member
7102 function.
7103 * m2-lang.c (m2_language_data): Delete
7104 la_watch_location_expression initializer.
7105 * objc-lang.c (objc_language_data): Likewise.
7106 * opencl-lang.c (opencl_language_data): Likewise.
7107 * p-lang.c (pascal_language_data): Likewise.
7108 * rust-lang.c (rust_watch_location_expression): Rename to
7109 rust_language::watch_location_expression.
7110 (rust_language_data): Delete la_watch_location_expression
7111 initializer.
7112 (rust_language::watch_location_expression): New member function,
7113 implementation from rust_watch_location_expression.
7114
7e56227d
AB
71152020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7116
7117 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
7118 ada_language::collect_symbol_completion_matches.
7119 (ada_language_data): Delete la_collect_symbol_completion_matches
7120 initializer.
7121 (ada_language::collect_symbol_completion_matches): New member
7122 function, implementation from
7123 ada_collect_symbol_completion_matches.
7124 * c-lang.c (c_language_data): Delete
7125 la_collect_symbol_completion_matches initializer.
7126 (cplus_language_data): Likewise.
7127 (asm_language_data): Likewise.
7128 (minimal_language_data): Likewise.
7129 * d-lang.c (d_language_data): Likewise.
7130 * f-lang.c (f_collect_symbol_completion_matches): Rename to
7131 f_language::collect_symbol_completion_matches.
7132 (f_language_data): Delete la_collect_symbol_completion_matches
7133 initializer.
7134 (f_language::collect_symbol_completion_matches) New member
7135 function, implementation from f_collect_symbol_completion_matches.
7136 * go-lang.c (go_language_data): Delete
7137 la_collect_symbol_completion_matches initializer.
7138 * language.c (unknown_language_data): Likewise.
7139 (auto_language_data): Likewise.
7140 * language.h (language_data): Delete
7141 la_collect_symbol_completion_matches field.
7142 (language_defn::collect_symbol_completion_matches): New member
7143 function.
7144 * m2-lang.c (m2_language_data): Delete
7145 la_collect_symbol_completion_matches initializer.
7146 * objc-lang.c (objc_language_data): Likewise.
7147 * opencl-lang.c (opencl_language_data): Likewise.
7148 * p-lang.c (pascal_language_data): Likewise.
7149 * rust-lang.c (rust_language_data): Likewise.
7150 * symtab.c (default_collect_symbol_completion_matches): Delete.
7151 (collect_symbol_completion_matches): Update call to
7152 collect_symbol_completion_matches.
7153 (collect_symbol_completion_matches_type): Likewise.
7154 * symtab.h (default_collect_symbol_completion_matches): Delete
7155 declaration.
7156
53fc67f8
AB
71572020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7158
7159 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
7160 (ada_language_data): Delete la_word_break_characters initializer.
7161 (ada_language::word_break_characters): New member function.
7162 * c-lang.c (c_language_data): Delete la_word_break_characters
7163 initializer.
7164 (cplus_language_data): Likewise.
7165 (asm_language_data): Likewise.
7166 (minimal_language_data): Likewise.
7167 * completer.c: Update global comment.
7168 (advance_to_expression_complete_word_point): Update call to
7169 word_break_characters.
7170 (complete_files_symbols): Likewise.
7171 (complete_line_internal_1): Likewise.
7172 (default_completer_handle_brkchars): Likewise.
7173 (skip_quoted_chars): Likewise.
7174 * d-lang.c (d_language_data): Delete la_word_break_characters
7175 initializer.
7176 * f-lang.c (f_word_break_characters): Delete.
7177 (f_language_data): Delete la_word_break_characters initializer.
7178 (f_language::word_break_characters): New member function.
7179 * go-lang.c (go_language_data): Delete la_word_break_characters
7180 initializer.
7181 * language.c (unknown_language_data): Likewise.
7182 (auto_language_data): Likewise.
7183 * language.h (default_word_break_characters): Move declaration to
7184 earlier in the file.
7185 (language_data): Delete la_word_break_characters field.
7186 (language_defn::word_break_characters): New member function.
7187 * m2-lang.c (m2_language_data): Delete la_word_break_characters
7188 initializer.
7189 * objc-lang.c (objc_language_data): Likewise.
7190 * opencl-lang.c (opencl_language_data): Likewise.
7191 * p-lang.c (pascal_language_data): Likewise.
7192 * rust-lang.c (rust_language_data): Likewise.
7193
c9debfb9
AB
71942020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7195
7196 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
7197 (ada_language_data): Delete la_get_symbol_name_matcher
7198 initializer.
7199 (language_defn::get_symbol_name_matcher_inner): New member
7200 function.
7201 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
7202 initializer.
7203 (cplus_language_data): Likewise.
7204 (cplus_language::get_symbol_name_matcher_inner): New member
7205 function.
7206 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
7207 (minimal_language_data): Likewise.
7208 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
7209 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
7210 initializer.
7211 * dictionary.c (iter_match_first_hashed): Update call to
7212 get_symbol_name_matcher.
7213 (iter_match_next_hashed): Likewise.
7214 (iter_match_next_linear): Likewise.
7215 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
7216 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
7217 initializer.
7218 (f_language::get_symbol_name_matcher_inner): New member function.
7219 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
7220 initializer.
7221 * language.c (default_symbol_name_matcher): Update header comment,
7222 make static.
7223 (language_defn::get_symbol_name_matcher): New definition.
7224 (language_defn::get_symbol_name_matcher_inner): Likewise.
7225 (get_symbol_name_matcher): Delete.
7226 (unknown_language_data): Delete la_get_symbol_name_matcher
7227 initializer.
7228 (auto_language_data): Likewise.
7229 * language.h (language_data): Delete la_get_symbol_name_matcher
7230 field.
7231 (language_defn::get_symbol_name_matcher): New member function.
7232 (language_defn::get_symbol_name_matcher_inner): Likewise.
7233 (default_symbol_name_matcher): Delete declaration.
7234 * linespec.c (find_methods): Update call to
7235 get_symbol_name_matcher.
7236 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
7237 initializer.
7238 * minsyms.c (lookup_minimal_symbol): Update call to
7239 get_symbol_name_matcher.
7240 (iterate_over_minimal_symbols): Likewise.
7241 * objc-lang.c (objc_language_data): Delete
7242 la_get_symbol_name_matcher initializer.
7243 * opencl-lang.c (opencl_language_data): Likewise.
7244 * p-lang.c (pascal_language_data): Likewise.
7245 * psymtab.c (psymbol_name_matches): Update call to
7246 get_symbol_name_matcher.
7247 * rust-lang.c (rust_language_data): Delete
7248 la_get_symbol_name_matcher initializer.
7249 * symtab.c (symbol_matches_search_name): Update call to
7250 get_symbol_name_matcher.
7251 (compare_symbol_name): Likewise.
7252
9a49ad8c
AB
72532020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7254
7255 * ada-lang.c (ada_language_data): Delete la_compute_program
7256 initializer.
7257 * c-lang.c (c_language_data): Likewise.
7258 (c_language::compute_program): New member function.
7259 (cplus_language_data): Delete la_compute_program initializer.
7260 (cplus_language::compute_program): New member function.
7261 (asm_language_data): Delete la_compute_program initializer.
7262 (minimal_language_data): Likewise.
7263 * c-lang.h (c_compute_program): Update comment.
7264 (cplus_compute_program): Likewise.
7265 * compile/compile-c-support.c (c_compute_program): Likewise.
7266 (cplus_compute_program): Likewise.
7267 * compile/compile.c (compile_to_object): Update call to
7268 la_compute_program.
7269 * d-lang.c (d_language_data): Delete la_compute_program
7270 initializer.
7271 * f-lang.c (f_language_data): Likewise.
7272 * go-lang.c (go_language_data): Likewise.
7273 * language.c (unknown_language_data): Likewise.
7274 (auto_language_data): Likewise.
7275 * language.h (language_data): Delete la_compute_program field.
7276 (language_defn::compute_program): New member function.
7277 * m2-lang.c (m2_language_data): Delete la_compute_program
7278 initializer.
7279 * objc-lang.c (objc_language_data): Likewise.
7280 * opencl-lang.c (opencl_language_data): Likewise.
7281 * p-lang.c (pascal_language_data): Likewise.
7282 * rust-lang.c (rust_language_data): Likewise.
7283
eff93b4d
AB
72842020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7285
7286 * ada-lang.c (ada_language_data) Delete
7287 la_class_name_from_physname initializer.
7288 * c-lang.c (c_language_data): Likewise.
7289 (cplus_language_data): Likewise.
7290 (cplus_language::class_name_from_physname): New member function.
7291 (asm_language_data): Delete la_class_name_from_physname
7292 initializer.
7293 (minimal_language_data): Likewise.
7294 * d-lang.c (d_language_data): Likewise.
7295 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
7296 method on language_defn class.
7297 (guess_full_die_structure_name): Likewise.
7298 * f-lang.c (f_language_data): Delete la_class_name_from_physname
7299 initializer.
7300 * go-lang.c (go_language_data): Likewise.
7301 * language.c (language_class_name_from_physname): Delete.
7302 (unk_lang_class_name): Delete.
7303 (unknown_language_data): Delete la_class_name_from_physname
7304 initializer.
7305 (auto_language_data): Likewise.
7306 * language.h (language_data): Delete la_class_name_from_physname
7307 field.
7308 (language_defn::class_name_from_physname): New function.
7309 (language_class_name_from_physname): Delete declaration.
7310 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
7311 initializer.
7312 * objc-lang.c (objc_language_data): Likewise.
7313 * opencl-lang.c (opencl_language_data): Likewise.
7314 * p-lang.c (pascal_language_data): Likewise.
7315 * rust-lang.c (rust_language_data): Likewise.
7316
de543742
TT
73172020-06-16 Tom Tromey <tom@tromey.com>
7318
7319 * tui/tui-data.h (STATUS_NAME): New macro.
7320 * tui/tui-layout.c (tui_remove_some_windows)
7321 (initialize_known_windows, tui_register_window)
7322 (tui_layout_split::remove_windows, initialize_layouts)
7323 (tui_new_layout_command): Don't use hard-coded window names.
7324
a350efd4
TT
73252020-06-16 Tom Tromey <tom@tromey.com>
7326
7327 PR tui/25348:
7328 * tui/tui.c (tui_ensure_readline_initialized): Rename from
7329 tui_initialize_readline. Only run once. Call rl_initialize.
7330 * tui/tui.h (tui_ensure_readline_initialized): Rename from
7331 tui_initialize_readline.
7332 * tui/tui-io.c (tui_setup_io): Call
7333 tui_ensure_readline_initialized.
7334 * tui/tui-interp.c (tui_interp::init): Update.
7335
39ec0490
TT
73362020-06-16 Tom Tromey <tom@tromey.com>
7337
7338 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
7339 Also preserve the status window.
7340
d2d1ea20
TT
73412020-06-16 Tom Tromey <tom@tromey.com>
7342
7343 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
7344 where m_window==nullptr.
7345
66920317
TT
73462020-06-15 Tom Tromey <tromey@adacore.com>
7347
7348 * windows-nat.c (windows_nat::handle_output_debug_string):
7349 Update.
7350 (windows_nat::handle_ms_vc_exception): Update.
7351 * target.h (target_read_string): Change API.
7352 * target.c (target_read_string): Change API.
7353 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
7354 Update.
7355 * solib-frv.c (frv_current_sos): Update.
7356 * solib-dsbt.c (dsbt_current_sos): Update.
7357 * solib-darwin.c (darwin_current_sos): Update.
7358 * linux-thread-db.c (inferior_has_bug): Update.
7359 * expprint.c (print_subexp_standard): Update.
7360 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
7361 (ada_exception_message_1): Update.
7362
a5d871dd
TT
73632020-06-15 Tom Tromey <tromey@adacore.com>
7364
7365 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
7366
670e35fa
TT
73672020-06-15 Tom Tromey <tromey@adacore.com>
7368
7369 * valprint.c (read_string): Update comment.
7370 * target.c (MIN): Remove.
7371 (target_read_string): Rewrite.
7372
f5272a3b
TT
73732020-06-15 Tom Tromey <tromey@adacore.com>
7374
7375 * corefile.c (read_memory_string): Remove.
7376 * ada-valprint.c (ada_value_print_ptr): Update.
7377 * ada-lang.h (ada_tag_name): Change return type.
7378 * ada-lang.c (type_from_tag): Update.
7379 (ada_tag_name_from_tsd): Change return type. Use
7380 target_read_string.
7381 (ada_tag_name): Likewise.
7382 * gdbcore.h (read_memory_string): Don't declare.
7383
2c074f49
HD
73842020-06-14 Hannes Domani <ssbssa@yahoo.de>
7385
7386 * symtab.c (rbreak_command): Ignore Windows drive colon.
7387
6a17d503
SM
73882020-06-12 Simon Marchi <simon.marchi@efficios.com>
7389
7390 * NEWS: Mention removed GDBserver host support.
7391
453c733f
NC
73922020-06-12 Nelson Chu <nelson.chu@sifive.com>
7393
7394 * features/riscv/rebuild-csr-xml.sh: Updated.
7395
2b4e6a3f
TT
73962020-06-11 Tom Tromey <tom@tromey.com>
7397
7398 PR gdb/18318:
7399 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
7400
4412332f
JG
74012020-06-09 Jonny Grant <jg@jguk.org>
74022020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
7403
7404 * main.c (captured_main_1): Don't print new line after help.
7405 (print_gdb_help): add mailing list and IRC channel information
7406 to --help. Add new lines between items in the footer. Remove
7407 quotes around bug url.
7408
2f33032a
KS
74092020-06-11 Keith Seitz <keiths@redhat.com>
7410
7411 PR gdb/21356
7412 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
7413 Resolve typedefs for type length calculations.
7414
7ab96794
TV
74152020-06-10 Tom de Vries <tdevries@suse.de>
7416
7417 PR ada/24713
7418 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
7419 (write_psymbols): Enable .gdb_index for ada.
7420 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
7421 ada.
7422
e5f3ece2
TV
74232020-06-10 Tom de Vries <tdevries@suse.de>
7424
7425 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
7426 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
7427 namei" instead of "const char *name" argument.
7428 (dw2_map_matching_symbols): Use "offset_type namei" variant of
7429 dw2_symtab_iter_init.
7430
940da03e
SM
74312020-06-08 Simon Marchi <simon.marchi@efficios.com>
7432
7433 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
7434 to use type::field and field::type instead.
7435
b6cdac4b
SM
74362020-06-08 Simon Marchi <simon.marchi@efficios.com>
7437
7438 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
7439 to use field::type instead.
7440
5d14b6e5
SM
74412020-06-08 Simon Marchi <simon.marchi@efficios.com>
7442
7443 * gdbtypes.h (struct field) <type, set_type>: New methods.
7444 Rename `type` field to...
7445 <m_type>: ... this. Change references throughout to use type or
7446 set_type methods.
7447 (FIELD_TYPE): Use field::type. Change call sites that modify
7448 the field's type to use field::set_type instead.
7449
3d967001
SM
74502020-06-08 Simon Marchi <simon.marchi@efficios.com>
7451
7452 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
7453 to use type::index_type instead.
7454
262abc0d
SM
74552020-06-08 Simon Marchi <simon.marchi@efficios.com>
7456
7457 * gdbtypes.h (struct type) <index_type, set_index_type>: New
7458 methods.
7459 (TYPE_INDEX_TYPE): Use type::index_type.
7460 * gdbtypes.c (create_array_type_with_stride): Likewise.
7461
82836c92
TT
74622020-06-07 Tom Tromey <tom@tromey.com>
7463
7464 * valprint.c (generic_val_print_float): Remove "embedded_offset"
7465 parameter.
7466 (generic_value_print): Update.
7467
940dace9
AB
74682020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
7469
7470 Revert commit 982a38f60b0.
7471 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
7472
982a38f6
AB
74732020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
7474
7475 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
7476 avoid use after free.
7477
82f06518
TV
74782020-06-05 Tom de Vries <tdevries@suse.de>
7479
7480 * NEWS: Fix typos.
7481
f8c41851
SM
74822020-06-04 Simon Marchi <simon.marchi@efficios.com>
7483
7484 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
7485 the per_bfd object.
7486 (dwarf2_read_debug_names): Likewise.
7487 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
7488 object when re-using a per_bfd object with an index.
7489
f9b5d5ea
TV
74902020-06-03 Tom de Vries <tdevries@suse.de>
7491
7492 PR symtab/26046
7493 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
7494 children for C++.
7495 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
7496 DW_TAG_subprogram.
7497
f6eee2d0
AB
74982020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7499
7500 * ada-lang.c (ada_language_data): Delete skip_trampoline
7501 initializer.
7502 * c-lang.c (c_language_data): Likewise.
7503 (cplus_language_data): Likewise.
7504 (cplus_language::skip_trampoline): New member function.
7505 (asm_language_data): Delete skip_trampoline initializer.
7506 (minimal_language_data): Likewise.
7507 * d-lang.c (d_language_data): Likewise.
7508 * f-lang.c (f_language_data): Likewise.
7509 * go-lang.c (go_language_data): Likewise.
7510 * language.c (unk_lang_trampoline): Delete function.
7511 (skip_language_trampoline): Update.
7512 (unknown_language_data): Delete skip_trampoline initializer.
7513 (auto_language_data): Likewise.
7514 * language.h (language_data): Delete skip_trampoline field.
7515 (language_defn::skip_trampoline): New function.
7516 * m2-lang.c (m2_language_data): Delete skip_trampoline
7517 initializer.
7518 * objc-lang.c (objc_skip_trampoline): Delete function, move
7519 implementation to objc_language::skip_trampoline.
7520 (objc_language_data): Delete skip_trampoline initializer.
7521 (objc_language::skip_trampoline): New member function with
7522 implementation from objc_skip_trampoline.
7523 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
7524 initializer.
7525 * p-lang.c (pascal_language_data): Likewise.
7526 * rust-lang.c (rust_language_data): Likewise.
7527
0a50df5d
AB
75282020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7529
7530 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
7531 (ada_language::demangle): New member function.
7532 * c-lang.c (c_language_data): Delete la_demangle initializer.
7533 (cplus_language_data): Delete la_demangle initializer.
7534 (cplus_language::demangle): New member function.
7535 (asm_language_data): Delete la_demangle initializer.
7536 (minimal_language_data): Delete la_demangle initializer.
7537 * d-lang.c (d_language_data): Delete la_demangle initializer.
7538 (d_language::demangle): New member function.
7539 * f-lang.c (f_language_data): Delete la_demangle initializer.
7540 (f_language::demangle): New member function.
7541 * go-lang.c (go_language_data): Delete la_demangle initializer.
7542 (go_language::demangle): New member function.
7543 * language.c (language_demangle): Update.
7544 (unk_lang_demangle): Delete.
7545 (unknown_language_data): Delete la_demangle initializer.
7546 (unknown_language::demangle): New member function.
7547 (auto_language_data): Delete la_demangle initializer.
7548 (auto_language::demangle): New member function.
7549 * language.h (language_data): Delete la_demangle field.
7550 (language_defn::demangle): New function.
7551 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
7552 * objc-lang.c (objc_language_data): Delete la_demangle
7553 initializer.
7554 (objc_language::demangle): New member function.
7555 * opencl-lang.c (opencl_language_data): Delete la_demangle
7556 initializer.
7557 * p-lang.c (pascal_language_data): Likewise.
7558 * rust-lang.c (rust_language_data): Likewise.
7559 (rust_language::demangle): New member function.
7560
fbfb0a46
AB
75612020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7562
7563 * ada-lang.c (ada_language_data): Delete la_print_type
7564 initializer.
7565 (ada_language::print_type): New member function.
7566 * c-lang.c (c_language_data): Delete la_print_type initializer.
7567 (c_language::print_type): New member function.
7568 (cplus_language_data): Delete la_print_type initializer.
7569 (cplus_language::print_type): New member function.
7570 (asm_language_data): Delete la_print_type initializer.
7571 (asm_language::print_type): New member function.
7572 (minimal_language_data): Delete la_print_type initializer.
7573 (minimal_language::print_type): New member function.
7574 * d-lang.c (d_language_data): Delete la_print_type initializer.
7575 (d_language::print_type): New member function.
7576 * f-lang.c (f_language_data): Delete la_print_type initializer.
7577 (f_language::print_type): New member function.
7578 * go-lang.c (go_language_data): Delete la_print_type initializer.
7579 (go_language::print_type): New member function.
7580 * language.c (unk_lang_print_type): Delete.
7581 (unknown_language_data): Delete la_print_type initializer.
7582 (unknown_language::print_type): New member function.
7583 (auto_language_data): Delete la_print_type initializer.
7584 (auto_language::print_type): New member function.
7585 * language.h (language_data): Delete la_print_type field.
7586 (language_defn::print_type): New function.
7587 (LA_PRINT_TYPE): Update.
7588 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
7589 (m2_language::print_type): New member function.
7590 * objc-lang.c (objc_language_data): Delete la_print_type
7591 initializer.
7592 (objc_language::print_type): New member function.
7593 * opencl-lang.c (opencl_print_type): Delete, implementation moved
7594 to opencl_language::print_type.
7595 (opencl_language_data): Delete la_print_type initializer.
7596 (opencl_language::print_type): New member function, implementation
7597 from opencl_print_type.
7598 * p-lang.c (pascal_language_data): Delete la_print_type
7599 initializer.
7600 (pascal_language::print_type): New member function.
7601 * rust-lang.c (rust_print_type): Delete, implementation moved to
7602 rust_language::print_type.
7603 (rust_language_data): Delete la_print_type initializer.
7604 (rust_language::print_type): New member function, implementation
7605 from rust_print_type.
7606
6f827019
AB
76072020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7608
7609 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
7610 implementation moves to...
7611 (ada_language::sniff_from_mangled_name): ...here. Update return
7612 type.
7613 (ada_language_data): Delete la_sniff_from_mangled_name
7614 initializer.
7615 * c-lang.c (c_language_data): Likewise.
7616 (cplus_language_data): Likewise.
7617 (cplus_language::sniff_from_mangled_name): New member function,
7618 implementation taken from gdb_sniff_from_mangled_name.
7619 (asm_language_data): Delete la_sniff_from_mangled_name
7620 initializer.
7621 (minimal_language_data): Likewise.
7622 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
7623 implementation moves to cplus_language::sniff_from_mangled_name.
7624 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
7625 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
7626 moves to...
7627 (d_language::sniff_from_mangled_name): ...here.
7628 (d_language_data): Delete la_sniff_from_mangled_name initializer.
7629 * f-lang.c (f_language_data): Likewise.
7630 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
7631 moves to...
7632 (go_language::sniff_from_mangled_name): ...here.
7633 (go_language_data): Delete la_sniff_from_mangled_name initializer.
7634 * language.c (language_sniff_from_mangled_name): Delete.
7635 (unknown_language_data): Delete la_sniff_from_mangled_name
7636 initializer.
7637 (auto_language_data): Likewise.
7638 * language.h (language_data): Delete la_sniff_from_mangled_name
7639 field.
7640 (language_defn::sniff_from_mangled_name): New function.
7641 (language_sniff_from_mangled_name): Delete declaration.
7642 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
7643 field.
7644 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
7645 implementation moves to...
7646 (objc_language::sniff_from_mangled_name): ...here.
7647 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
7648 * opencl-lang.c (opencl_language_data): Likewise.
7649 * p-lang.c (pascal_language_data): Likewise.
7650 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
7651 implementation moves to...
7652 (rust_language::sniff_from_mangled_name): ...here.
7653 (rust_language_data): Delete la_sniff_from_mangled_name
7654 initializer.
7655 * symtab.c (symbol_find_demangled_name): Call
7656 sniff_from_mangled_name member function.
7657
fb8006fd
AB
76582020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7659
7660 * ada-lang.c (ada_language_data): Delete la_search_name_hash
7661 initializer.
7662 * c-lang.c (c_language_data): Likewise.
7663 (cplus_language_data): Likewise.
7664 (cplus_language::search_name_hash): New member function.
7665 (asm_language_data): Delete la_search_name_hash initializer.
7666 (minimal_language_data): Likewise.
7667 * d-lang.c (d_language_data): Likewise.
7668 * dictionary.c (default_search_name_hash): Rename to...
7669 (language_defn::search_name_hash): ...this.
7670 * f-lang.c (f_language_data): Likewise.
7671 (f_language::search_name_hash): New member function.
7672 * go-lang.c (go_language_data): Delete la_search_name_hash
7673 initializer.
7674 * language.c (unknown_language_data): Likewise.
7675 (auto_language_data): Likewise.
7676 * language.h (struct language_data): Delete la_search_name_hash
7677 field.
7678 (language_defn::search_name_hash): Declare new member function.
7679 (default_search_name_hash): Delete declaration.
7680 * m2-lang.c (m2_language_data): Delete la_search_name_hash
7681 initializer.
7682 * objc-lang.c (objc_language_data): Likewise.
7683 * opencl-lang.c (opencl_language_data): Likewise.
7684 * p-lang.c (pascal_language_data): Likewise.
7685 * rust-lang.c (rust_language_data): Likewise.
7686 * symtab.c (search_name_hash): Update call.
7687
8e25bafe
AB
76882020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7689
7690 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
7691 initializer.
7692 * c-lang.c (class compile_instance): Declare.
7693 (c_language_data): Delete la_get_compile_instance initializer.
7694 (c_language::get_compile_instance): New member function.
7695 (cplus_language_data): Delete la_get_compile_instance initializer.
7696 (cplus_language::get_compile_instance): New member function.
7697 (asm_language_data): Delete la_get_compile_instance initializer.
7698 (minimal_language_data): Likewise.
7699 * c-lang.h (c_get_compile_context): Update comment.
7700 (cplus_get_compile_context): Update comment.
7701 * compile/compile.c (compile_to_object): Update calls, don't rely
7702 on function pointer being NULL.
7703 * d-lang.c (d_language_data): Delete la_get_compile_instance
7704 initializer.
7705 * f-lang.c (f_language_data): Likewise.
7706 * go-lang.c (go_language_data): Likewise.
7707 * language.c (unknown_language_data): Likewise.
7708 (auto_language_data): Likewise.
7709 * language.h (language_data): Delete la_get_compile_instance field.
7710 (language_defn::get_compile_instance): New member function.
7711 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
7712 initializer.
7713 * objc-lang.c (objc_language_data): Likewise.
7714 * opencl-lang.c (opencl_language_data): Likewise.
7715 * p-lang.c (pascal_language_data): Likewise.
7716 * rust-lang.c (rust_language_data): Likewise.
7717
4009ee92
AB
77182020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7719
7720 * ada-lang.c (ada_add_all_symbols): Update comment.
7721 (ada_iterate_over_symbols): Delete, move implementation to...
7722 (ada_language::iterate_over_symbols): ...here, a new member
7723 function, rewrite to use range based for loop.
7724 (ada_language_data): Delete la_iterate_over_symbols initializer.
7725 * c-lang.c (c_language_data): Likewise.
7726 (cplus_language_data): Likewise.
7727 (asm_language_data): Likewise.
7728 (minimal_language_data): Likewise.
7729 * d-lang.c (d_language_data): Likewise.
7730 * f-lang.c (f_language_data): Likewise.
7731 * go-lang.c (go_language_data): Likewise.
7732 * language.c (unknown_language_data): Likewise.
7733 (auto_language_data): Likewise.
7734 * language.h (language_data): Delete la_iterate_over_symbols field.
7735 (language_defn::iterate_over_symbols): New member function.
7736 (LA_ITERATE_OVER_SYMBOLS): Update.
7737 * linespec.c (iterate_over_all_matching_symtabs): Update.
7738 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
7739 initializer.
7740 * objc-lang.c (objc_language_data): Likewise.
7741 * opencl-lang.c (opencl_language_data): Likewise.
7742 * p-lang.c (pascal_language_data): Likewise.
7743 * rust-lang.c (rust_language_data): Likewise.
7744
54f4ca46
AB
77452020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7746
7747 * ada-lang.c (ada_language_data): Delete
7748 la_lookup_transparent_type initializer.
7749 * c-lang.c (c_language_data): Likewise.
7750 (cplus_language_data): Likewise.
7751 (cplus_language::lookup_transparent_type): New member function.
7752 (asm_language_data): Delete la_lookup_transparent_type
7753 initializer.
7754 (minimal_language_data): Likewise.
7755 * d-lang.c (d_language_data): Likewise.
7756 * f-lang.c (f_language_data): Likewise.
7757 * go-lang.c (go_language_data): Likewise.
7758 * language.c (unknown_language_data): Likewise.
7759 (auto_language_data): Likewise.
7760 * language.h (struct language_data): Delete
7761 la_lookup_transparent_type field.
7762 (language_defn::lookup_transparent_type): New member function.
7763 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
7764 initializer.
7765 * objc-lang.c (objc_language_data): Likewise.
7766 * opencl-lang.c (opencl_language_data): Likewise.
7767 * p-lang.c (pascal_language_data): Likewise.
7768 * rust-lang.c (rust_language_data): Likewise.
7769 * symtab.c (symbol_matches_domain): Update call.
7770
1fb314aa
AB
77712020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7772
7773 * ada-lang.c (ada_language_arch_info): Delete function, move
7774 implementation to...
7775 (ada_language::language_arch_info): ...here, a new member
7776 function.
7777 (ada_language_data): Delete la_language_arch_info.
7778 * c-lang.c (c_language_data): Likewise.
7779 (c_language::language_arch_info): New member function.
7780 (cplus_language_arch_info): Delete function, move
7781 implementation to...
7782 (cplus_language::language_arch_info): ...here, a new member
7783 function.
7784 (cplus_language_data): Delete la_language_arch_info.
7785 (asm_language_data): Likewise.
7786 (asm_language::language_arch_info): New member function.
7787 (minimal_language_data): Delete la_language_arch_info.
7788 (minimal_language::language_arch_info): New member function.
7789 * d-lang.c (d_language_arch_info): Delete function, move
7790 implementation to...
7791 (d_language::language_arch_info): ...here, a new member
7792 function.
7793 (d_language_data): Delete la_language_arch_info.
7794 * f-lang.c (f_language_arch_info): Delete function, move
7795 implementation to...
7796 (f_language::language_arch_info): ...here, a new member
7797 function.
7798 (f_language_data): Delete la_language_arch_info.
7799 * go-lang.c (go_language_arch_info): Delete function, move
7800 implementation to...
7801 (go_language::language_arch_info): ...here, a new member
7802 function.
7803 (go_language_data): Delete la_language_arch_info.
7804 * language.c (unknown_language_data): Likewise.
7805 (unknown_language::language_arch_info): New member function.
7806 (auto_language_data): Delete la_language_arch_info.
7807 (auto_language::language_arch_info): New member function.
7808 (language_gdbarch_post_init): Update call to
7809 la_language_arch_info.
7810 * language.h (language_data): Delete la_language_arch_info
7811 function pointer.
7812 (language_defn::language_arch_info): New function.
7813 * m2-lang.c (m2_language_arch_info): Delete function, move
7814 implementation to...
7815 (m2_language::language_arch_info): ...here, a new member
7816 function.
7817 (m2_language_data): Delete la_language_arch_info.
7818 * objc-lang.c (objc_language_arch_info): Delete function, move
7819 implementation to...
7820 (objc_language::language_arch_info): ...here, a new member
7821 function.
7822 (objc_language_data): Delete la_language_arch_info.
7823 * opencl-lang.c (opencl_language_arch_info): Delete function, move
7824 implementation to...
7825 (opencl_language::language_arch_info): ...here, a new member
7826 function.
7827 (opencl_language_data): Delete la_language_arch_info.
7828 * p-lang.c (pascal_language_arch_info): Delete function, move
7829 implementation to...
7830 (pascal_language::language_arch_info): ...here, a new member
7831 function.
7832 (pascal_language_data): Delete la_language_arch_info.
7833 * rust-lang.c (rust_language_arch_info): Delete function, move
7834 implementation to...
7835 (rust_language::language_arch_info): ...here, a new member
7836 function.
7837 (rust_language_data): Delete la_language_arch_info.
7838
48448202
AB
78392020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7840
7841 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
7842 initializer.
7843 * c-lang.c (c_language_data): Likewise.
7844 (cplus_language_data): Likewise.
7845 (cplus_language::pass_by_reference_info): New method.
7846 (asm_language_data): Delete la_pass_by_reference initializer.
7847 (minimal_language_data): Likewise.
7848 * cp-abi.c (cp_pass_by_reference): Remove use of
7849 default_pass_by_reference.
7850 * d-lang.c (d_language_data): Likewise.
7851 * f-lang.c (f_language_data): Likewise.
7852 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
7853 default_pass_by_reference.
7854 * go-lang.c (go_language_data): Likewise.
7855 * language.c (language_pass_by_reference): Update.
7856 (default_pass_by_reference): Delete.
7857 (unknown_language_data): Delete la_pass_by_reference
7858 initializer.
7859 (auto_language_data): Likewise.
7860 * language.h (struct language_data): Delete la_pass_by_reference
7861 field.
7862 (language_defn::pass_by_reference_info): New member function.
7863 (default_pass_by_reference): Delete declaration.
7864 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
7865 initializer.
7866 * objc-lang.c (objc_language_data): Likewise.
7867 * opencl-lang.c (opencl_language_data): Likewise.
7868 * p-lang.c (pascal_language_data): Likewise.
7869 * rust-lang.c (rust_language_data): Likewise.
7870
15e5fd35
AB
78712020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7872
7873 * ada-lang.c (ada_read_var_value): Delete function, move
7874 implementation to...
7875 (ada_language::read_var_value): ...here.
7876 (ada_language_data): Delete la_read_var_value initializer.
7877 * c-lang.c (c_language_data): Likewise.
7878 (cplus_language_data): Likewise.
7879 (minimal_language_data): Likewise.
7880 * d-lang.c (d_language_data): Likewise.
7881 * f-lang.c (f_language_data): Likewise.
7882 * findvar.c (default_read_var_value): Rename to...
7883 (language_defn::read_var_value): ...this.
7884 * findvar.c (read_var_value): Update header comment, and change to
7885 call member function instead of function pointer.
7886 * go-lang.c (go_language_data): Likewise.
7887 * language.c (unknown_language_data): Delete la_read_var_value
7888 initializer.
7889 (auto_language_data): Likewise.
7890 * language.h (struct language_data): Delete la_read_var_value
7891 field.
7892 (language_defn::read_var_value): New member function.
7893 (default_read_var_value): Delete declaration.
7894 * m2-lang.c (m2_language_data): Delete la_read_var_value
7895 initializer.
7896 * objc-lang.c (objc_language_data): Likewise.
7897 * opencl-lang.c (opencl_language_data): Likewise.
7898 * p-lang.c (pascal_language_data): Likewise.
7899 * rust-lang.c (rust_language_data): Likewise.
7900 * value.h (default_read_var_value): Delete declaration.
7901
5bd40f2a
AB
79022020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7903
7904 * ada-lang.c (ada_print_array_index): Delete function, move
7905 implementation to...
7906 (ada_language::print_array_index): ...here.
7907 (ada_language_data): Delete la_print_array_index initializer.
7908 * c-lang.c (c_language_data): Likewise.
7909 (cplus_language_data): Likewise.
7910 (minimal_language_data): Likewise.
7911 * d-lang.c (d_language_data): Likewise.
7912 * f-lang.c (f_language_data): Likewise.
7913 * go-lang.c (go_language_data): Likewise.
7914 * language.c (default_print_array_index): Delete function, move
7915 implementation to...
7916 (language_defn::print_array_index): ...here.
7917 (unknown_language_data): Delete la_print_array_index initializer.
7918 (auto_language_data): Likewise.
7919 * language.h (struct language_data): Delete la_print_array_index
7920 field.
7921 (language_defn::print_array_index): New member function.
7922 (LA_PRINT_ARRAY_INDEX): Update.
7923 (default_print_array_index): Delete declaration.
7924 * m2-lang.c (m2_language_data): Delete la_print_array_index
7925 initializer.
7926 * objc-lang.c (objc_language_data): Likewise.
7927 * opencl-lang.c (opencl_language_data): Likewise.
7928 * p-lang.c (pascal_language_data): Likewise.
7929 * rust-lang.c (rust_language_data): Likewise.
7930
0874fd07
AB
79312020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7932
7933 * gdb/ada-lang.c (ada_language_defn): Convert to...
7934 (ada_language_data): ...this.
7935 (class ada_language): New class.
7936 (ada_language_defn): New static global.
7937 * gdb/c-lang.c (c_language_defn): Convert to...
7938 (c_language_data): ...this.
7939 (class c_language): New class.
7940 (c_language_defn): New static global.
7941 (cplus_language_defn): Convert to...
7942 (cplus_language_data): ...this.
7943 (class cplus_language): New class.
7944 (cplus_language_defn): New static global.
7945 (asm_language_defn): Convert to...
7946 (asm_language_data): ...this.
7947 (class asm_language): New class.
7948 (asm_language_defn): New static global.
7949 (minimal_language_defn): Convert to...
7950 (minimal_language_data): ...this.
7951 (class minimal_language): New class.
7952 (minimal_language_defn): New static global.
7953 * gdb/d-lang.c (d_language_defn): Convert to...
7954 (d_language_data): ...this.
7955 (class d_language): New class.
7956 (d_language_defn): New static global.
7957 * gdb/f-lang.c (f_language_defn): Convert to...
7958 (f_language_data): ...this.
7959 (class f_language): New class.
7960 (f_language_defn): New static global.
7961 * gdb/go-lang.c (go_language_defn): Convert to...
7962 (go_language_data): ...this.
7963 (class go_language): New class.
7964 (go_language_defn): New static global.
7965 * gdb/language.c (unknown_language_defn): Remove declaration.
7966 (current_language): Initialize to nullptr, real initialization is
7967 moved to _initialize_language.
7968 (languages): Delete global.
7969 (language_defn::languages): Define.
7970 (set_language_command): Use language_defn::languages.
7971 (set_language): Likewise.
7972 (range_error): Likewise.
7973 (language_enum): Likewise.
7974 (language_def): Likewise.
7975 (add_set_language_command): Use language_def::languages for the
7976 language list, and language_def to lookup language pointers.
7977 (skip_language_trampoline): Use language_defn::languages.
7978 (unknown_language_defn): Convert to...
7979 (unknown_language_data): ...this.
7980 (class unknown_language): New class.
7981 (unknown_language_defn): New static global.
7982 (auto_language_defn): Convert to...
7983 (auto_language_data): ...this.
7984 (class auto_language): New class.
7985 (auto_language_defn): New static global.
7986 (language_gdbarch_post_init): Use language_defn::languages.
7987 (_initialize_language): Initialize current_language.
7988 * gdb/language.h (struct language_defn): Rename to...
7989 (struct language_data): ...this.
7990 (struct language_defn): New.
7991 (auto_language_defn): Delete.
7992 (unknown_language_defn): Delete.
7993 (minimal_language_defn): Delete.
7994 (ada_language_defn): Delete.
7995 (asm_language_defn): Delete.
7996 (c_language_defn): Delete.
7997 (cplus_language_defn): Delete.
7998 (d_language_defn): Delete.
7999 (f_language_defn): Delete.
8000 (go_language_defn): Delete.
8001 (m2_language_defn): Delete.
8002 (objc_language_defn): Delete.
8003 (opencl_language_defn): Delete.
8004 (pascal_language_defn): Delete.
8005 (rust_language_defn): Delete.
8006 * gdb/m2-lang.c (m2_language_defn): Convert to...
8007 (m2_language_data): ...this.
8008 (class m2_language): New class.
8009 (m2_language_defn): New static global.
8010 * gdb/objc-lang.c (objc_language_defn): Convert to...
8011 (objc_language_data): ...this.
8012 (class objc_language): New class.
8013 (objc_language_defn): New static global.
8014 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
8015 (opencl_language_data): ...this.
8016 (class opencl_language): New class.
8017 (opencl_language_defn): New static global.
8018 * gdb/p-lang.c (pascal_language_defn): Convert to...
8019 (pascal_language_data): ...this.
8020 (class pascal_language): New class.
8021 (pascal_language_defn): New static global.
8022 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
8023 language pointer, update comment format.
8024 * gdb/rust-lang.c (rust_language_defn): Convert to...
8025 (rust_language_data): ...this.
8026 (class rust_language): New class.
8027 (rust_language_defn): New static global.
8028
1313c56e
AB
80292020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
8030
8031 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
8032 member variable.
8033 <m_stmt_at_address>: New member variable.
8034 (lnp_state_machine::record_line): Don't record some lines, update
8035 tracking of is_stmt at the same address.
8036 (lnp_state_machine::lnp_state_machine): Initialise new member
8037 variables.
8038
b7ed9f3d
ST
80392020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
8040
8041 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
8042 "-include gnu-nat-mig.h".
8043 * gnu-nat-mig.h: New file.
8044 * gnu-nat.c: Include "gnu-nat-mig.h".
8045 (exc_server, msg_reply_server, notify_server,
8046 process_reply_server): Remove declarations.
8047
14a8ad62
ST
80482020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8049
8050 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
8051 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
8052 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
8053 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
8054 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
8055 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
8056 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
8057 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
8058 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
8059 to gnu_nat_target class.
8060 * gnu-nat.c: Likewise.
8061 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
8062 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
8063 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
8064 object.
8065 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
8066 instead of `gnu_target'.
8067
0af5e106
ST
80682020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8069
8070 * i386-gnu-tdep.c: Include "gdbcore.h"
8071 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
8072 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
8073 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
8074 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
8075 i386_gnu_sigcontext_addr): New functions
8076 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
8077 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
8078 tdep.
8079
078f2fc9
ST
80802020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8081
8082 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
8083 before fork_inferior call. Avoid calling it if target_is_pushed returns
8084 true.
8085
53dff92c
ST
80862020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8087
8088 * gnu-nat.h (gnu_target): New variable declaration.
8089 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
8090 gnu_target.
8091 * gnu-nat.c (gnu_target): New variable.
8092 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
8093 add_thread_silent, and add_thread calls.
8094 (gnu_nat_target::create_inferior): Pass gnu_target to
8095 add_thread_silent, thread_change_ptid call.
8096 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
8097 call.
8098
5a8b8627
ST
80992020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8100
8101 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
8102 (gnu_nat_target::find_memory_regions): Remove unused
8103 `old_address' variable.
8104
366f550a
ST
81052020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8106
8107 * gnu-nat.c: Include "gdbarch.h".
8108
f14871bf
ST
81092020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8110
8111 * reply_mig_hack.awk (Error return): Cast function through
8112 void *, to bypass compiler function call check.
8113
c6887cfb
ST
81142020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8115
8116 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
8117 $(srcdir)/reply_mig_hack.awk.
8118
6930bffe
ST
81192020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8120
8121 * gnu-nat.h (gnu_debug_flag): Set type to bool.
8122
112c22ed
JG
81232020-05-30 Jonny Grant <jg@jguk.org>
8124
8125 * configure.ac (ACX_BUGURL): change bug URL to https.
8126
f68f85b5
PA
81272020-05-30 Pedro Alves <palves@redhat.com>
8128
8129 * cp-support.c (replace_typedefs_template): New.
8130 (replace_typedefs_qualified_name): Handle
8131 DEMANGLE_COMPONENT_TEMPLATE.
8132
976ca316
SM
81332020-05-29 Simon Marchi <simon.marchi@efficios.com>
8134
8135 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
8136 dwarf2/index-cache.h, dwarf2/index-write.c,
8137 dwarf2/index-write.h, dwarf2/line-header.c,
8138 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
8139 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
8140 variables and fields from `dwarf2_per_objfile` to just
8141 `per_objfile` throughout.
8142
989ade05
SM
81432020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
8144
8145 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8146 <push_dwarf_reg_entry_value>: Add comment.
8147
c47bae85
KB
81482020-05-28 Kevin Buettner <kevinb@redhat.com>
8149 Keith Seitz <keiths@redhat.com>
8150
8151 * python/python.c (do_start_initialization): Call PyEval_SaveThread
8152 instead of PyEval_ReleaseLock.
8153 (class gdbpy_gil): Move to earlier in file.
8154 (finalize_python): Set gdb_python_initialized.
8155 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
8156 when not initialized.
8157
44486dcf
SM
81582020-05-28 Simon Marchi <simon.marchi@efficios.com>
8159
8160 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8161 <push_dwarf_reg_entry_value>: Remove assert. Override
8162 per_objfile with caller_per_objfile.
8163
f030440d
TV
81642020-05-28 Tom de Vries <tdevries@suse.de>
8165
8166 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
8167 PR gold/15646 workaround to symbol kind "type".
8168
f0fbb768
TT
81692020-05-27 Tom Tromey <tromey@adacore.com>
8170
8171 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
8172
af0b2a3e
TT
81732020-05-27 Tom Tromey <tromey@adacore.com>
8174
8175 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
8176 Use htab_find_with_hash.
8177 <add_abbrev>: Remove "abbrev_number" parameter.
8178 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
8179 "abbrev_number" parameter. Use htab_find_slot_with_hash.
8180 (hash_abbrev): Add comment.
8181 (abbrev_table::lookup_abbrev): Move to header file.
8182 (abbrev_table::read): Update.
8183
7d00ffec
TT
81842020-05-27 Tom Tromey <tromey@adacore.com>
8185
8186 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
8187 method.
8188 <canonical_name>: New member.
8189 <raw_name>: Rename from "name".
8190 (partial_die_info): Initialize canonical_name.
8191 (scan_partial_symbols): Check raw_name.
8192 (partial_die_parent_scope, partial_die_full_name)
8193 (add_partial_symbol, add_partial_subprogram)
8194 (add_partial_enumeration, load_partial_dies): Use "name" method.
8195 (partial_die_info::name): New method.
8196 (partial_die_info::read, guess_partial_die_structure_name)
8197 (partial_die_info::fixup): Update.
8198
697bba18
TT
81992020-05-27 Tom Tromey <tromey@adacore.com>
8200
8201 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
8202 <get_ref_die_offset>: Inline.
8203 <get_ref_die_offset_complaint>: New method.
8204 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
8205 (attribute::get_ref_die_offset_complaint): Rename from
8206 get_ref_die_offset. Just issue complaint.
8207
c17ace43
HD
82082020-05-27 Hannes Domani <ssbssa@yahoo.de>
8209
8210 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
8211
96445f0b
HD
82122020-05-27 Hannes Domani <ssbssa@yahoo.de>
8213
8214 * exec.c (exec_file_attach): Use errno value of first openp failure.
8215
ac637ec3
HD
82162020-05-27 Hannes Domani <ssbssa@yahoo.de>
8217
8218 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
8219 Don't close thread handle.
8220
17ee85fc
TT
82212020-05-27 Tom Tromey <tom@tromey.com>
8222 Simon Marchi <simon.marchi@efficios.com>
8223
8224 * objfiles.h (struct objfile) <partial_symtabs>: Now a
8225 shared_ptr.
8226 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
8227 member.
8228 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
8229 dwarf2_per_bfd_objfile_data_key>: New globals.
8230 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
8231 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
8232 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
8233 shared.
8234 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
8235 short-circuit when sharing.
8236 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
8237 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
8238
39b16f87
SM
82392020-05-27 Simon Marchi <simon.marchi@efficios.com>
8240
8241 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
8242 to...
8243 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
8244 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
8245
fcf23d5b
SM
82462020-05-27 Simon Marchi <simon.marchi@efficios.com>
8247
8248 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
8249 build_name_components, find_name_components_bounds>:
8250 Add per_objfile parameter.
8251 (struct mapped_index) <symbol_name_at>: Likewise.
8252 (struct mapped_debug_names): Remove constructor.
8253 <dwarf2_per_objfile>: Remove field.
8254 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
8255 (mapped_index_base::find_name_components_bounds,
8256 mapped_index_base::build_name_components,
8257 dw2_expand_symtabs_matching_symbol): Likewise.
8258 (class mock_mapped_index) <symbol_name_at>: Likewise.
8259 (check_match): Likewise.
8260 (check_find_bounds_finds): Likewise.
8261 (test_mapped_index_find_name_component_bounds): Update.
8262 (CHECK_MATCH): Update.
8263 (dw2_expand_symtabs_matching): Update.
8264 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
8265 per_objfile parameter.
8266 <find_vec_in_debug_names>: Likewise.
8267 <m_per_objfile>: New field.
8268 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
8269 parameter.
8270 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
8271 (dw2_debug_names_iterator::next): Update.
8272 (dw2_debug_names_lookup_symbol): Update.
8273 (dw2_debug_names_expand_symtabs_for_function): Update.
8274 (dw2_debug_names_map_matching_symbols): Update.
8275 (dw2_debug_names_expand_symtabs_matching): Update.
8276 (dwarf2_read_debug_names): Update.
8277
7188ed02
SM
82782020-05-27 Simon Marchi <simon.marchi@efficios.com>
8279
8280 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
8281 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
8282 move to dwarf2_per_objfile.
8283 <read_in_chain>: Remove.
8284 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
8285 remove_all_cus, age_comp_units>: New methods.
8286 <m_dwarf2_cus>: New member.
8287 (struct dwarf2_per_cu_data) <cu>: Remove.
8288 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
8289 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
8290 moved to methods of dwarf2_per_objfile.
8291 (dwarf2_clear_marks): Remove.
8292 (dwarf2_queue_item::~dwarf2_queue_item): Update.
8293 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
8294 (dwarf2_per_bfd::free_cached_comp_units): Remove.
8295 (dwarf2_per_objfile::remove_all_cus): New.
8296 (class free_cached_comp_units) <~free_cached_comp_units>:
8297 Update.
8298 (load_cu): Update.
8299 (dw2_do_instantiate_symtab): Adjust.
8300 (fill_in_sig_entry_from_dwo_entry): Adjust.
8301 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8302 (cutu_reader::cutu_reader): Likewise.
8303 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
8304 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
8305 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
8306 and dwarf2_per_objfile::age_comp_units.
8307 (load_partial_comp_unit): Update.
8308 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
8309 (process_queue): Likewise.
8310 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
8311 backlink.
8312 (dwarf2_read_addr_index): Likewise.
8313 (follow_die_offset): Likewise.
8314 (dwarf2_fetch_die_loc_sect_off): Likewise.
8315 (dwarf2_fetch_constant_bytes): Likewise.
8316 (dwarf2_fetch_die_type_sect_off): Likewise.
8317 (follow_die_sig_1): Likewise.
8318 (load_full_type_unit): Likewise.
8319 (read_signatured_type): Likewise.
8320 (dwarf2_cu::dwarf2_cu): Don't set cu field.
8321 (dwarf2_cu::~dwarf2_cu): Remove.
8322 (dwarf2_per_objfile::get_cu): New.
8323 (dwarf2_per_objfile::set_cu): New.
8324 (age_cached_comp_units): Rename to...
8325 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
8326 to std::unordered_map.
8327 (free_one_cached_comp_unit): Rename to...
8328 (dwarf2_per_objfile::remove_cu): ... this. Adjust
8329 to std::unordered_map.
8330 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
8331 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
8332 a dwarf2_per_objfile in data.
8333 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
8334 (dwarf2_clear_marks): Remove.
8335
2e671100
SM
83362020-05-27 Simon Marchi <simon.marchi@efficios.com>
8337
8338 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
8339 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
8340 (init_tu_and_read_dwo_dies): Likewise.
8341 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
8342 (cutu_reader::cutu_reader): Likewise.
8343 (load_partial_comp_unit): Likewise.
8344 (process_psymtab_comp_unit): Update.
8345 (build_type_psymtabs_1): Update.
8346 (process_skeletonless_type_unit): Update.
8347 (load_full_comp_unit): Update.
8348 (find_partial_die): Update.
8349 (dwarf2_read_addr_index): Update.
8350 (read_signatured_type): Update.
8351
2e6a9f79
SM
83522020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8353
8354 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
8355 m_header_read_in>: New fields.
8356 <get_header>: New method.
8357 * dwarf2/read.c (per_cu_header_read_in): Remove.
8358 (dwarf2_per_cu_data::get_header): New.
8359 (dwarf2_per_cu_data::addr_size): Update.
8360 (dwarf2_per_cu_data::offset_size): Update.
8361 (dwarf2_per_cu_data::ref_addr_size): Update.
8362
1b555f17
SM
83632020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8364
8365 * dwarf2/read.c (load_cu): Return dwarf2_cu.
8366 (dw2_do_instantiate_symtab): Update.
8367 (queue_and_load_all_dwo_tus): Change parameter from
8368 dwarf2_per_cu_data to dwarf2_cu.
8369 (dwarf2_fetch_die_loc_sect_off): Update.
8370 (dwarf2_fetch_constant_bytes): Update.
8371 (dwarf2_fetch_die_type_sect_off): Update.
8372
8fc0b21d
SM
83732020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8374
8375 * dwarf2/read.c (process_full_comp_unit,
8376 process_full_type_unit): Remove per_cu, per_objfile paramters.
8377 Add dwarf2_cu parameter.
8378 (process_queue): Update.
8379
168c9250
SM
83802020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8381
8382 * dwarf2/read.c (create_cu_from_index_list): Replace
8383 dwarf2_per_objfile parameter with dwarf2_per_bfd.
8384 (create_cus_from_index_list): Likewise.
8385 (create_cus_from_index): Likewise.
8386 (create_signatured_type_table_from_index): Likewise.
8387 (create_cus_from_debug_names_list): Likewise.
8388 (create_cus_from_debug_names): Likewise.
8389 (dwarf2_read_gdb_index): Update.
8390 (dwarf2_read_debug_names): Update.
8391
e286671b
TT
83922020-05-27 Tom Tromey <tom@tromey.com>
8393 Simon Marchi <simon.marchi@efficios.com>
8394
8395 * dwarf2/read.h (struct dwarf2_per_objfile)
8396 <get_type_for_signatured_type, set_type_for_signatured_type>:
8397 New methods.
8398 <m_type_map>: New member.
8399 (struct signatured_type) <type>: Remove.
8400 * dwarf2/read.c
8401 (dwarf2_per_objfile::get_type_for_signatured_type,
8402 dwarf2_per_objfile::set_type_for_signatured_type): New.
8403 (get_signatured_type): Use new methods.
8404
8adb8487
TT
84052020-05-27 Tom Tromey <tom@tromey.com>
8406 Simon Marchi <simon.marchi@efficios.com>
8407
8408 * dwarf2/read.h (struct type_unit_group_unshareable): New.
8409 (struct dwarf2_per_objfile) <type_units>: New member.
8410 <get_type_unit_group_unshareable>: New method.
8411 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
8412 num_symtabs, symtabs>: Remove; move to
8413 type_unit_group_unshareable.
8414 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
8415 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
8416 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
8417
127bbf4b
SM
84182020-05-27 Simon Marchi <simon.marchi@efficios.com>
8419
8420 * dwarf2/read.h (struct dwarf2_per_cu_data):
8421 <dwarf2_per_objfile>: Remove.
8422 * dwarf2/read.c (create_cu_from_index_list): Don't assign
8423 dwarf2_per_objfile.
8424 (create_signatured_type_table_from_index): Likewise.
8425 (create_signatured_type_table_from_debug_names): Likewise.
8426 (create_debug_type_hash_table): Likewise.
8427 (fill_in_sig_entry_from_dwo_entry): Likewise.
8428 (create_type_unit_group): Likewise.
8429 (read_comp_units_from_section): Likewise.
8430 (create_cus_hash_table): Likewise.
8431
f6e649dd
SM
84322020-05-27 Simon Marchi <simon.marchi@efficios.com>
8433
8434 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
8435 dwarf2_per_cu_data::dwarf2_per_objfile.
8436 (compute_compunit_symtab_includes): Likewise.
8437 (dwarf2_cu::start_symtab): Likewise.
8438
aa66c379
SM
84392020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8440
8441 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
8442 parameter.
8443 * dwarf2/read.c (get_die_type_at_offset): Likewise.
8444 (read_namespace_alias): Update.
8445 (lookup_die_type): Update.
8446 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
8447 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
8448 Update.
8449 (disassemble_dwarf_expression): Update.
8450
120ce1b5
SM
84512020-05-27 Simon Marchi <simon.marchi@efficios.com>
8452
8453 * dwarf2/read.h (struct dwarf2_queue_item): Add
8454 dwarf2_per_objfile parameter, assign new parameter.
8455 <per_objfile>: New field.
8456 * dwarf2/read.c (free_one_cached_comp_unit): Add
8457 dwarf2_per_objfile parameter.
8458 (queue_comp_unit): Likewise.
8459 (dw2_do_instantiate_symtab): Update.
8460 (process_psymtab_comp_unit): Update.
8461 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
8462 (process_imported_unit_die): Update.
8463 (queue_and_load_dwo_tu): Update.
8464 (follow_die_offset): Update.
8465 (follow_die_sig_1): Update.
8466
9f47c707
SM
84672020-05-27 Simon Marchi <simon.marchi@efficios.com>
8468
8469 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
8470 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
8471 (read_call_site_scope): Assign per_objfile.
8472 (dwarf2_per_cu_data::objfile): Remove.
8473 * gdbtypes.h (struct call_site) <per_objfile>: New member.
8474 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
8475 dwarf2_per_objfile parameter.
8476 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
8477 dwarf2_per_objfile parameter.
8478 (dwarf_expr_reg_to_entry_parameter): Add output
8479 dwarf2_per_objfile parameter.
8480 (locexpr_get_frame_base): Update.
8481 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
8482 <push_dwarf_reg_entry_value>: Update.
8483 <call_site_to_target_addr>: Update.
8484 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
8485 parameter.
8486 (value_of_dwarf_reg_entry): Update.
8487 (rw_pieced_value): Update.
8488 (indirect_synthetic_pointer): Update.
8489 (dwarf2_evaluate_property): Update.
8490 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
8491 parameter.
8492 (locexpr_read_variable): Update.
8493 (locexpr_get_symbol_read_needs): Update.
8494 (loclist_read_variable): Update.
8495
14095eb3
SM
84962020-05-27 Simon Marchi <simon.marchi@efficios.com>
8497
8498 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8499 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8500 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
8501 parameter.
8502 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8503 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8504 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
8505 parameter.
8506 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
8507 sect_variable_value): Add dwarf2_per_objfile parameter.
8508 (class dwarf_evaluate_loc_desc) <dwarf_call,
8509 dwarf_variable_value>: Update.
8510 (fetch_const_value_from_synthetic_pointer): Add
8511 dwarf2_per_objfile parameter.
8512 (fetch_const_value_from_synthetic_pointer): Update.
8513 (coerced_pieced_ref): Update.
8514 (class symbol_needs_eval_context) <dwarf_call,
8515 dwarf_variable_value>: Update.
8516 (dwarf2_compile_expr_to_ax): Update.
8517
3c3cd3d4
SM
85182020-05-27 Simon Marchi <simon.marchi@efficios.com>
8519
8520 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
8521 parameter.
8522 (dwarf2_evaluate_loc_desc_full): Update.
8523
82ca3f51
SM
85242020-05-27 Simon Marchi <simon.marchi@efficios.com>
8525
8526 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
8527 parameter.
8528 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
8529 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
8530 dwarf2_per_objfile parameter.
8531 (decode_debug_loc_dwo_addresses): Likewise.
8532 (dwarf2_find_location_expression): Update.
8533 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
8534 (locexpr_describe_location_piece): Add dwarf2_per_objfile
8535 parameter.
8536 (disassemble_dwarf_expression): Add dwarf2_per_objfile
8537 parameter.
8538 (locexpr_describe_location_1): Likewise.
8539 (locexpr_describe_location): Update.
8540
4b167ea1
SM
85412020-05-27 Simon Marchi <simon.marchi@efficios.com>
8542
8543 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
8544 Remove.
8545 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
8546 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
8547 (dwarf2_compile_property_to_c): Update.
8548 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
8549 use text offset from objfile.
8550 (locexpr_tracepoint_var_ref): Update.
8551 (locexpr_generate_c_location): Update.
8552 (loclist_describe_location): Update.
8553 (loclist_tracepoint_var_ref): Update.
8554 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
8555 dwarf2_per_objfile parameter.
8556 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
8557 use text offset from objfile.
8558 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
8559
89b07335
SM
85602020-05-27 Simon Marchi <simon.marchi@efficios.com>
8561
8562 * dwarf2/expr.h (struct dwarf_expr_context)
8563 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
8564 <offset>: Remove.
8565 <per_objfile>: New member.
8566 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
8567 dwarf2_per_objfile parameter. Don't set offset, set
8568 per_objfile.
8569 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
8570 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
8571 a dwarf2_per_objfile object instead of an offset.
8572 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
8573 constructor.
8574 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
8575 to dwarf2_expr_executor constructor. Don't set offset.
8576 (dwarf2_fetch_cfa_info): Update.
8577 (struct dwarf2_frame_cache) <text_offset>: Remove.
8578 <per_objfile>: New field.
8579 (dwarf2_frame_cache): Update.
8580 (dwarf2_frame_prev_register): Update.
8581 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8582 <dwarf_evaluate_loc_desc>: Add constructor.
8583 (dwarf2_evaluate_loc_desc_full): Update.
8584 (dwarf2_locexpr_baton_eval): Update.
8585 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
8586 Add constructor.
8587 (dwarf2_loc_desc_get_symbol_read_needs): Update.
8588
293e7e51
SM
85892020-05-27 Simon Marchi <simon.marchi@efficios.com>
8590
8591 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
8592 addr_sized_int_type>: Move to dwarf2_cu.
8593 <int_type>: Move to dwarf2_per_objfile.
8594 (struct dwarf2_per_objfile) <int_type>: Move here.
8595 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
8596 addr_sized_int_type>: Move here.
8597 (read_func_scope): Update.
8598 (read_array_type): Update.
8599 (read_tag_string_type): Update.
8600 (attr_to_dynamic_prop): Update.
8601 (dwarf2_per_cu_data::int_type): Rename to...
8602 (dwarf2_per_objfile::int_type): ... this.
8603 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
8604 (dwarf2_cu::addr_sized_int_type): ... this.
8605 (read_subrange_type): Update.
8606 (dwarf2_per_cu_data::addr_type): Rename to...
8607 (dwarf2_cu::addr_type): ... this.
8608 (set_die_type): Update.
8609
64874a40
SM
86102020-05-27 Simon Marchi <simon.marchi@efficios.com>
8611
8612 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
8613 data through per_cu->cu.
8614
4ab09049
SM
86152020-05-27 Simon Marchi <simon.marchi@efficios.com>
8616
8617 * dwarf2/read.c (lookup_dwo_comp_unit): Change
8618 dwarf2_per_cu_data parameter fo dwarf2_cu.
8619 (lookup_dwo_type_unit): Likewise.
8620 (read_cutu_die_from_dwo): Likewise.
8621 (lookup_dwo_unit): Likewise.
8622 (open_and_init_dwo_file): Likewise.
8623 (lookup_dwo_cutu): Likewise.
8624 (lookup_dwo_comp_unit): Likewise.
8625 (lookup_dwo_type_unit): Likewise.
8626 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8627 (cutu_reader::cutu_reader): Update.
8628
47b14e86
SM
86292020-05-27 Simon Marchi <simon.marchi@efficios.com>
8630
8631 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
8632 parameter.
8633 (process_full_type_unit): Likewise.
8634 (process_queue): Update.
8635
43182c09
SM
86362020-05-27 Simon Marchi <simon.marchi@efficios.com>
8637
8638 * dwarf2/read.c (recursively_compute_inclusions): Add
8639 dwarf2_per_objfile parameter.
8640 (compute_compunit_symtab_includes): Likewise.
8641 (process_cu_includes): Update.
8642
7aa104c4
SM
86432020-05-27 Simon Marchi <simon.marchi@efficios.com>
8644
8645 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
8646 parameter.
8647 (create_type_unit_group): Update.
8648 (process_psymtab_comp_unit_reader): Update.
8649 (build_type_psymtabs_reader): Update.
8650
e3beb21d
SM
86512020-05-27 Simon Marchi <simon.marchi@efficios.com>
8652
8653 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
8654 object through m_this_cu->cu.
8655
d460f660
SM
86562020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8657
8658 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
8659 the info parameter.
8660 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
8661
ab432490
SM
86622020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8663
8664 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
8665 per_objfile parameter.
8666 (load_full_type_unit): Add per_objfile parameter.
8667 (read_signatured_type): Likewise.
8668 (load_full_comp_unit): Likewise.
8669 (load_cu): Likewise.
8670 (dw2_do_instantiate_symtab): Likewise.
8671 (dw2_get_file_names): Likewise.
8672 (dw2_map_symtabs_matching_filename): Update.
8673 (dw_expand_symtabs_matching_file_matcher): Update.
8674 (dw2_map_symbol_filenames): Update.
8675 (process_psymtab_comp_unit): Add per_objfile parameter.
8676 (build_type_psymtabs_1): Update.
8677 (process_skeletonless_type_unit): Update.
8678 (dwarf2_build_psymtabs_hard): Update.
8679 (load_partial_comp_unit): Add per_objfile parameter.
8680 (scan_partial_symbols): Update.
8681 (load_full_comp_unit): Add per_objfile parameter.
8682 (process_imported_unit_die): Update.
8683 (create_cus_hash_table): Update.
8684 (find_partial_die): Update.
8685 (dwarf2_read_addr_index): Update.
8686 (follow_die_offset): Update.
8687 (dwarf2_fetch_die_loc_sect_off): Update.
8688 (dwarf2_fetch_constant_bytes): Update.
8689 (dwarf2_fetch_die_type_sect_off): Update.
8690 (follow_die_sig_1): Update.
8691 (load_full_type_unit): Add per_objfile parameter.
8692 (read_signatured_type): Likewise.
8693
313bad1b
SM
86942020-05-27 Simon Marchi <simon.marchi@efficios.com>
8695
8696 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
8697 of objfile_name.
8698
c3699833
SM
86992020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8700
8701 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
8702 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
8703 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
8704 field.
8705 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
8706 (create_cus_from_index): Update.
8707 (dwarf2_read_gdb_index): Update.
8708 (create_cus_from_debug_names): Update.
8709 (dwarf2_read_debug_names): Update.
8710 (get_abbrev_section_for_cu): Update.
8711 (create_all_comp_units): Update.
8712 (read_attribute_value): Update.
8713 (get_debug_line_section): Update.
8714 * dwarf2/index-cache.c (index_cache::store): Update.
8715 * dwarf2/index-write.c (save_gdb_index_command): Update.
8716 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
8717
1859c670
SM
87182020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8719
8720 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
8721 member.
8722 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
8723 dwarf2_per_cu_data::per_bfd.
8724 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
8725 (create_type_unit_group): Likewise.
8726 (queue_comp_unit): Remove reference to
8727 per_cu->dwarf2_per_objfile.
8728 (maybe_queue_comp_unit): Likewise.
8729 (fill_in_sig_entry_from_dwo_entry): Assign new field.
8730 (create_cus_hash_table): Assign new field.
8731
5e22e966
SM
87322020-05-27 Simon Marchi <simon.marchi@efficios.com>
8733
8734 * dwarf2/read.c: Replace
8735 dwarf2_cu->per_cu->dwarf2_per_objfile references with
8736 dwarf2_cu->per_objfile throughout.
8737
97a1449a
SM
87382020-05-27 Simon Marchi <simon.marchi@efficios.com>
8739
8740 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
8741 parameter, don't use per_cu->dwarf2_per_objfile.
8742 (dw2_instantiate_symtab): Likewise.
8743 (dw2_find_last_source_symtab): Update.
8744 (dw2_map_expand_apply): Update.
8745 (dw2_lookup_symbol): Update.
8746 (dw2_expand_symtabs_for_function): Update.
8747 (dw2_expand_all_symtabs): Update.
8748 (dw2_expand_symtabs_with_fullname): Update.
8749 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
8750 don't use per_cu->dwarf2_per_objfile.
8751 (dw2_expand_marked_cus): Update.
8752 (dw2_find_pc_sect_compunit_symtab): Update.
8753 (dw2_debug_names_lookup_symbol): Update.
8754 (dw2_debug_names_expand_symtabs_for_function): Update.
8755 (dw2_debug_names_map_matching_symbols): Update.
8756 (dwarf2_psymtab::expand_psymtab): Update.
8757
9e021579
SM
87582020-05-27 Simon Marchi <simon.marchi@efficios.com>
8759
8760 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
8761 <per_objfile>: New member.
8762 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
8763 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
8764 call to dwarf2_cu.
8765 (cutu_reader::cutu_reader): Update.
8766 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
8767
ae090bdb
SM
87682020-05-27 Simon Marchi <simon.marchi@efficios.com>
8769
8770 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
8771 struct dwarf2_per_objfile.
8772 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
8773 dwarf2_per_bfd.
8774 * dwarf2/read.c (set_die_type): Update.
8775 (get_die_type_at_offset): Update.
8776
af758d11
SM
87772020-05-27 Tom Tromey <tom@tromey.com>
8778 Simon Marchi <simon.marchi@efficios.com>
8779
8780 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
8781 method.
8782 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
8783 get_symtab, set_symtab>: New methods.
8784 <m_symtabs>: New field.
8785 (struct dwarf2_psymtab): Derive from partial_symtab.
8786 <readin_p, get_compunit_symtab>: Declare methods.
8787 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
8788 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
8789 New methods.
8790 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
8791 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
8792 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
8793 (dw2_symtab_iter_next, dw2_print_stats)
8794 (dw2_expand_symtabs_with_fullname)
8795 (dw2_expand_symtabs_matching_one)
8796 (dw_expand_symtabs_matching_file_matcher)
8797 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
8798 (dw2_debug_names_iterator::next)
8799 (dw2_debug_names_map_matching_symbols)
8800 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
8801 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
8802 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
8803 New methods.
8804 (get_compunit_symtab, process_full_comp_unit)
8805 (process_full_type_unit): Update.
8806 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
8807
5989a64e
SM
88082020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8809
8810 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
8811 then introduce a new dwarf2_per_objfile type.
8812 <read_line_string>: Move to the new dwarf2_per_objfile type.
8813 <objfile>: Likewise.
8814 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
8815 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
8816 dwarf2_per_objfile->per_bfd.
8817 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
8818 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
8819 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
8820 (dwarf2_per_bfd::free_cached_comp_units): ... this.
8821 (dwarf2_has_info): Allocate dwarf2_per_bfd.
8822 (dwarf2_per_objfile::locate_sections): Rename to...
8823 (dwarf2_per_bfd::locate_sections): ... this.
8824 (dwarf2_per_objfile::get_cutu): Rename to...
8825 (dwarf2_per_bfd::get_cutu): ... this.
8826 (dwarf2_per_objfile::get_cu): Rename to...
8827 (dwarf2_per_bfd::get_cu): ... this.
8828 (dwarf2_per_objfile::get_tu): Rename to...
8829 (dwarf2_per_bfd::get_tu): ... this.
8830 (dwarf2_per_objfile::allocate_per_cu): Rename to...
8831 (dwarf2_per_bfd::allocate_per_cu): ... this.
8832 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
8833 (dwarf2_per_bfd::allocate_signatured_type): ... this.
8834 (get_gdb_index_contents_ftype): Change parameter from
8835 dwarf2_per_objfile to dwarf2_per_bfd.
8836 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
8837 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
8838
a50264ba
TT
88392020-05-27 Tom Tromey <tom@tromey.com>
8840 Simon Marchi <simon.marchi@efficios.com>
8841
8842 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
8843 (allocate_piece_closure): Set "per_objfile" member.
8844 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
8845 (locexpr_describe_location, loclist_describe_location): Use new
8846 member.
8847 * dwarf2/read.c (read_call_site_scope)
8848 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
8849 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
8850 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
8851 handle_data_member_location): Set per_objfile member.
8852 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
8853 member.
8854 (struct dwarf2_loclist_baton) <per_objfile>: New member.
8855
d3473f0c
TT
88562020-05-27 Tom Tromey <tom@tromey.com>
8857
8858 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
8859 allocate_signatured_type>: Declare new methods.
8860 <m_num_psymtabs>: New member.
8861 (struct dwarf2_per_cu_data) <index>: New member.
8862 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
8863 (dwarf2_per_objfile::allocate_signatured_type): New methods.
8864 (create_cu_from_index_list): Use allocate_per_cu.
8865 (create_signatured_type_table_from_index)
8866 (create_signatured_type_table_from_debug_names)
8867 (create_debug_type_hash_table, add_type_unit)
8868 (read_comp_units_from_section): Use allocate_signatured_type.
8869
5717c425
TT
88702020-05-27 Tom Tromey <tom@tromey.com>
8871
8872 * psymtab.c (partial_map_expand_apply)
8873 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
8874 (psym_lookup_global_symbol_language)
8875 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
8876 (psym_print_stats, psym_expand_symtabs_for_function)
8877 (psym_map_symbol_filenames, psym_map_matching_symbols)
8878 (psym_expand_symtabs_matching)
8879 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
8880 (maintenance_check_psymtabs): Update.
8881 * psympriv.h (struct partial_symtab) <readin_p,
8882 get_compunit_symtab>: Add objfile parameter.
8883 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
8884 Likewise.
8885 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
8886 get_compunit_symtab>: Likewise.
8887 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
8888
45940949
TT
88892020-05-27 Tom Tromey <tom@tromey.com>
8890
8891 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
8892 member.
8893 * dwarf2/read.c (delete_file_name_entry): Fix comment.
8894 (create_cu_from_index_list)
8895 (create_signatured_type_table_from_index)
8896 (create_signatured_type_table_from_debug_names)
8897 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
8898 (dwarf2_create_include_psymtab)
8899 (create_debug_type_hash_table, add_type_unit)
8900 (create_type_unit_group, read_comp_units_from_section)
8901 (dwarf2_compute_name, create_cus_hash_table)
8902 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
8903 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
8904 obstack.
8905 (dw2_get_real_path): Likewise. Change argument to
8906 dwarf2_per_objfile.
8907
f8c6d152
LM
89082020-05-27 Luis Machado <luis.machado@linaro.org>
8909
8910 PR tdep/26000
8911 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
8912 for ldrd (immediate).
8913
e98d2e6d
PW
89142020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8915
8916 * command.h: Add comment giving the name of class_tui.
8917 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
8918 create the fake command for the help for class_tui.
8919
53a47a3e
TT
89202020-05-26 Tom Tromey <tromey@adacore.com>
8921
8922 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
8923 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
8924 (val_atr): New function.
8925 (value_val_atr): Use it.
8926 * ada-valprint.c (print_optional_low_bound): Change low bound
8927 handling for enums.
8928 (val_print_packed_array_elements): Don't call discrete_position.
8929 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
8930 discrete_position for enum types.
8931 * language.c (default_print_array_index): Change type.
8932 * language.h (struct language_defn) <la_print_array_index>: Add
8933 index_type parameter, change type of index_value.
8934 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
8935 (default_print_array_index): Update.
8936 * valprint.c (maybe_print_array_index): Don't call
8937 value_from_longest. Update.
8938 (value_print_array_elements): Don't call discrete_position.
8939
0bc2354b
TT
89402020-05-26 Tom Tromey <tromey@adacore.com>
8941
8942 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
8943 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
8944
1218a4bf
CDA
89452020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
8946
8947 PR gdb/13519
8948 * avr-tdep.c (avr_integer_to_address): Return data or code
8949 address accordingly to the second 'type' argument of the
8950 function.
8951
92651b1d
MW
89522020-05-25 Michael Weghorn <m.weghorn@posteo.de>
8953
8954 * infcmd.c, inferior.h: (construct_inferior_arguments):
8955 Moved function from here to gdbsupport/common-inferior.{h,cc}
8956
0a4f5f8c
TT
89572020-05-23 Tom Tromey <tom@tromey.com>
8958
8959 Revert commit eca1f90c:
8960 * NEWS: Remove entry for completion styling.
8961 * completer.c (_rl_completion_prefix_display_length): Move
8962 declaration later.
8963 (gdb_fnprint): Revert.
8964 (gdb_display_match_list_1): Likewise.
8965 * cli/cli-style.c (completion_prefix_style)
8966 (completion_difference_style, completion_suffix_style): Remove.
8967 (_initialize_cli_style): Revert.
8968 * cli/cli-style.h (completion_prefix_style)
8969 (completion_difference_style, completion_suffix_style): Don't
8970 declare.
8971
e08bd6c5
PA
89722020-05-24 Pedro Alves <palves@redhat.com>
8973
8974 * symtab.c (completion_list_add_name): Return boolean indication
8975 of whether the symbol matched.
8976 (completion_list_add_symbol): Don't try to remove C++ aliases if
8977 the symbol didn't match in the first place.
8978 * symtab.h (completion_list_add_name): Return bool.
8979
ceacbf6e
SM
89802020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
8981
8982 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
8983 type::field.
8984
26f16254
JB
89852020-05-23 Joel Brobecker <brobecker@adacore.com>
8986
8987 GDB 9.2 released.
8988
eca1f90c
TT
89892020-05-23 Tom Tromey <tom@tromey.com>
8990
8991 * NEWS: Add entry for completion styling.
8992 * completer.c (_rl_completion_prefix_display_length): Move
8993 declaration earlier.
8994 (gdb_fnprint): Use completion_style.
8995 (gdb_display_match_list_1): Likewise.
8996 * cli/cli-style.c (completion_prefix_style)
8997 (completion_difference_style, completion_suffix_style): New
8998 globals.
8999 (_initialize_cli_style): Register new globals.
9000 * cli/cli-style.h (completion_prefix_style)
9001 (completion_difference_style, completion_suffix_style): Declare.
9002
51e2cfa2
PA
90032020-05-23 Pedro Alves <palves@redhat.com>
9004
9005 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
9006 (parse_escape): Use ISDIGIT instead of isdigit.
9007 (puts_debug): Use gdb_isprint instead of isprint.
9008 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
9009 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
9010 ISSPACE instead of isspace.
9011 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
9012 instead of isspace.
9013 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
9014 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
9015 instead of isxdigit and ISDIGIT instead of isdigit.
9016
80fc5e77
SM
90172020-05-22 Simon Marchi <simon.marchi@efficios.com>
9018
9019 * gdbtypes.h (struct type) <field>: New method.
9020 (TYPE_FIELDS): Remove, replace all uses with either type::fields
9021 or type::field.
9022
3cabb6b0
SM
90232020-05-22 Simon Marchi <simon.marchi@efficios.com>
9024
9025 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
9026 (TYPE_FIELDS): Use type::fields. Change all call sites that
9027 modify the propery to use type::set_fields instead.
9028
1f704f76
SM
90292020-05-22 Simon Marchi <simon.marchi@efficios.com>
9030
9031 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
9032 type::num_fields instead.
9033
5e33d5f4
SM
90342020-05-22 Simon Marchi <simon.marchi@efficios.com>
9035
9036 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
9037 methods.
9038 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
9039 that modify the number of fields to use type::set_num_fields
9040 instead.
9041
9392ebb3
TT
90422020-05-22 Tom Tromey <tromey@adacore.com>
9043
9044 * compile/compile-object-load.h (munmap_list_free): Don't
9045 declare.
9046
7c13f4e8
AB
90472020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
9048
9049 * annotate.c (annotate_source_line): Update return type, add call
9050 to update current symtab and line.
9051 * annotate.h (annotate_source_line): Update return type, and
9052 extend header comment.
9053 * source.c (info_line_command): Check annotation_level before
9054 calling annotate_source_line.
9055 * stack.c (print_frame_info): If calling annotate_source_line
9056 returns true, then don't print any other source line information.
9057
aa370940
SM
90582020-05-21 Simon Marchi <simon.marchi@efficios.com>
9059
9060 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
9061
84d53fa9
SM
90622020-05-21 Simon Marchi <simon.marchi@efficios.com>
9063
9064 * coffread.c (patch_type): Remove NULL check before xfree.
9065 * corefile.c (set_gnutarget): Likewise.
9066 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
9067 * exec.c (build_section_table): Likewise.
9068 * remote.c (remote_target::pass_signals): Likewise.
9069 * utils.c (n_spaces): Likewise.
9070 * cli/cli-script.c (document_command): Likewise.
9071 * i386-windows-tdep.c (core_process_module_section): Likewise.
9072 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
9073
9d428aae
SM
90742020-05-20 Simon Marchi <simon.marchi@efficios.com>
9075
9076 * symfile.c (reread_symbols): Clear objfile's section_offsets
9077 vector and section indices, re-compute them by calling
9078 sym_offsets.
9079
250106a7
TT
90802020-05-20 Tom Tromey <tromey@adacore.com>
9081
9082 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 9083 (desc_one_bound, desc_index_type): Compute field name.
250106a7 9084
9a0bacfb
TV
90852020-05-20 Tom de Vries <tdevries@suse.de>
9086
9087 PR symtab/25833
9088 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
9089
7b958a48
AM
90902020-05-20 Alan Modra <amodra@gmail.com>
9091
9092 PR 25993
9093 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
9094 bfd_set_filename.
9095 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
9096 passed to bfd_set_filename.
9097 * symfile-mem.c (add_vsyscall_page): Likewise for string
9098 passed to symbol_file_add_from_memory.
9099 (symbol_file_add_from_memory): Make name param a const char* and
9100 don't strdup.
9101
c7e97679
AM
91022020-05-20 Alan Modra <amodra@gmail.com>
9103
9104 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
9105 rather than accessing bfd->filename directly.
9106 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
9107 and use bfd_section_name.
9108 * dwarf2/frame.c (decode_frame_entry): Likewise.
9109 * exec.c (exec_set_section_address): Likewise.
9110 * solib-aix.c (solib_aix_bfd_open): Likewise.
9111 * stap-probe.c (get_stap_base_address): Likewise.
9112 * symfile.c (reread_symbols): Likewise.
9113
563c591b
TT
91142020-05-19 Tom Tromey <tromey@adacore.com>
9115
9116 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
9117
f408d82c
SM
91182020-05-19 Simon Marchi <simon.marchi@efficios.com>
9119
9120 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
9121
98c59b52
PA
91222020-05-19 Pedro Alves <palves@redhat.com>
9123
9124 * NEWS (set exec-file-mismatch): Adjust entry.
9125 * exec.c: Include "build-id.h".
9126 (validate_exec_file): Try to match build IDs instead of filenames.
9127 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
9128 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
9129 and pass down 'warn_if_slow'.
9130 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
9131 gdb_bfd_open_closure to pass it down.
9132 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
9133
4111f652
PA
91342020-05-19 Pedro Alves <palves@redhat.com>
9135
9136 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
9137 * target.c (target_fileio_open_1): Rename to target_fileio_open
9138 and make extern. Use bool.
9139 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
9140 (target_fileio_read_alloc_1): Adjust.
9141 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
9142 (target_fileio_open_warn_if_slow): Delete declaration.
9143
ad80db5b
PA
91442020-05-19 Pedro Alves <palves@redhat.com>
9145
9146 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
9147 Adjust all callers.
9148
1d6ce4d3
YS
91492020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
9150
9151 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
9152 whether disp is negative.
9153
9005fbbb
SM
91542020-05-19 Simon Marchi <simon.marchi@efficios.com>
9155
9156 * symfile.h (struct symfile_segment_data)
9157 <~symfile_segment_data>: Remove.
9158 <segment_info>: Change to std::vector.
9159 * symfile.c (default_symfile_segments): Update.
9160 * elfread.c (elf_symfile_segments): Update.
9161
68b888ff
SM
91622020-05-19 Simon Marchi <simon.marchi@efficios.com>
9163
9164 * symfile.h (struct symfile_segment_data) <struct segment>: New.
9165 <segments>: New.
9166 <segment_bases, segment_sizes>: Remove.
9167 * symfile.c (default_symfile_segments): Update.
9168 * elfread.c (elf_symfile_segments): Update.
9169 * remote.c (remote_target::get_offsets): Update.
9170 * solib-target.c (solib_target_relocate_section_addresses):
9171 Update.
9172
62982abd
SM
91732020-05-19 Simon Marchi <simon.marchi@efficios.com>
9174
9175 * symfile.h (struct symfile_segment_data): Initialize fields.
9176 <~symfile_segment_data>: Add.
9177 (symfile_segment_data_up): New.
9178 (struct sym_fns) <sym_segments>: Return a
9179 symfile_segment_data_up.
9180 (default_symfile_segments): Return a symfile_segment_data_up.
9181 (free_symfile_segment_data): Remove.
9182 (get_symfile_segment_data): Return a symfile_segment_data_up.
9183 * symfile.c (default_symfile_segments): Likewise.
9184 (get_symfile_segment_data): Likewise.
9185 (free_symfile_segment_data): Remove.
9186 (symfile_find_segment_sections): Update.
9187 * elfread.c (elf_symfile_segments): Return a
9188 symfile_segment_data_up.
9189 * remote.c (remote_target::get_offsets): Update.
9190 * solib-target.c (solib_target_relocate_section_addresses):
9191 Update.
9192 * symfile-debug.c (debug_sym_segments): Return a
9193 symfile_segment_data_up.
9194
7f204339
RO
91952020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9196
e52a0f1b
RO
9197 PR build/25981
9198 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
9199 Hardcode register numbers.
9200
7f204339
RO
9201 PR build/25981
9202 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
9203 procfs_find_LDT_entry): Remove.
9204 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
9205 procfs_find_LDT_entry): Remove.
9206 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
9207 Remove.
9208
7f32a4d5
PA
92092020-05-17 Pedro Alves <palves@redhat.com>
9210 Andrew Burgess <andrew.burgess@embecosm.com>
9211 Keno Fischer <keno@juliacomputing.com>
9212
9213 PR gdb/25741
9214 * breakpoint.c (build_target_condition_list): Update comments.
9215 (build_target_command_list): Update comments and skip matching
9216 locations.
9217 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
9218 a separate function. Simplify "set breakpoint auto-hw off"
9219 handling.
9220 (insert_breakpoints): Update comment.
9221 (tracepoint_locations_match): New parameter. For breakpoints,
9222 compare location types too, if the caller wants to.
9223 (handle_automatic_hardware_breakpoints): New functions.
9224 (bp_location_is_less_than): Also sort by location type and
9225 hardware breakpoint length.
9226 (update_global_location_list): Handle "set breakpoint auto-hw on"
9227 here.
9228 (update_breakpoint_locations): Ask breakpoint_locations_match to
9229 ignore location types.
9230
7d93a1e0
SM
92312020-05-16 Simon Marchi <simon.marchi@efficios.com>
9232
9233 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
9234 type::name instead.
9235
d0e39ea2
SM
92362020-05-16 Simon Marchi <simon.marchi@efficios.com>
9237
9238 * gdbtypes.h (struct type) <name, set_name>: New methods.
9239 (TYPE_CODE): Use type::name. Change all call sites used to set
9240 the name to use type::set_name instead.
9241
2dab0c7b
TT
92422020-05-16 Tom Tromey <tom@tromey.com>
9243
9244 * top.c (quit_force): Update.
9245 * infrun.c (handle_no_resumed): Update.
9246 * top.h (all_uis): New function.
9247 (ALL_UIS): Remove.
9248
59f7bd8d
SM
92492020-05-16 Simon Marchi <simon.marchi@efficios.com>
9250
9251 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
9252
9bf058f0
PA
92532020-05-16 Pedro Alves <palves@redhat.com>
9254
9255 * ia64-linux-nat.c
9256 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
9257 Declare method.
9258 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
9259
8f86ae1a
SM
92602020-05-15 Simon Marchi <simon.marchi@efficios.com>
9261
9262 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
9263 (sparc64_adi_info): Likewise.
9264
d6bc0792
TT
92652020-05-15 Tom Tromey <tom@tromey.com>
9266
9267 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
9268 block_objfile.
9269 (lookup_objfile_from_block): Remove.
9270 (lookup_symbol_in_block, lookup_symbol_in_static_block)
9271 (lookup_global_symbol): Use block_objfile.
9272 * symtab.h (lookup_objfile_from_block): Don't declare.
9273 * printcmd.c (clear_dangling_display_expressions): Use
9274 block_objfile.
9275 * parse.c (operator_check_standard): Use block_objfile.
9276
8c14c3a3
TT
92772020-05-15 Tom Tromey <tom@tromey.com>
9278
9279 * language.c (language_alloc_type_symbol): Set
9280 SYMBOL_SECTION.
9281 * symtab.c (initialize_objfile_symbol): Remove.
9282 (allocate_symbol): Remove.
9283 (allocate_template_symbol): Remove.
9284 * dwarf2/read.c (fixup_go_packaging): Use "new".
9285 (new_symbol): Use "new".
9286 (read_variable): Don't call initialize_objfile_symbol. Use
9287 "new".
9288 (read_func_scope): Use "new".
9289 * xcoffread.c (process_xcoff_symbol): Don't call
9290 initialize_objfile_symbol.
9291 (SYMBOL_DUP): Remove.
9292 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
9293 "new".
9294 * symtab.h (allocate_symbol, initialize_objfile_symbol)
9295 (allocate_template_symbol): Don't declare.
9296 (struct symbol): Add copy constructor. Change defaults.
9297 * jit.c (finalize_symtab): Use "new".
9298 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
9299 Use "new".
9300 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
9301 (common_block_end): Use "new".
9302 * mdebugread.c (parse_symbol): Use "new".
9303 (new_symbol): Likewise.
9304
5b4a1a8d
PW
93052020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9306
9307 * NEWS: Mention changes to help and apropos.
9308
57b4f16e
PW
93092020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9310
9311 * command.h (enum command_class): Improve comments, document
9312 that class_alias is for user-defined aliases, give the class
9313 name for each class, remove unused class_xdb.
9314 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
9315 * breakpoint.c (_initialize_breakpoint): Replace class_alias
9316 by a precise class.
9317 * infcmd.c (_initialize_infcmd): Likewise.
9318 * reverse.c (_initialize_reverse): Likewise.
9319 * stack.c (_initialize_stack): Likewise.
9320 * symfile.c (_initialize_symfile): Likewise.
9321 * tracepoint.c (_initialize_tracepoint): Likewise.
9322
7c05caf7
PW
93232020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9324
9325 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
9326 when their aliased command is traversed.
9327 (help_cmd): Add fput_command_names_styled call to
9328 output command name and aliases when command has an alias.
9329
3b3aaacb
PW
93302020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9331
9332 * cli/cli-decode.h (help_cmd_list): Remove declaration.
9333 * cli/cli-decode.c (help_cmd_list): Declare as static,
9334 remove prefix argument, use bool for recurse arg, rework to show the aliases of
9335 a command together with the command.
9336 (fput_command_name_styled, fput_command_names_styled): New functions.
9337 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
9338 fput_command_name_styled.
9339 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
9340 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
9341
7aa1b46f
PW
93422020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9343
9344 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
9345 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
9346 * command.h (cmd_show_list): Likewise.
9347 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
9348 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
9349
89bcba74
PW
93502020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9351
9352 * unittests/command-def-selftests.c (traverse_command_structure):
9353 Verify all commands of a list have the same prefix command and
9354 that only the top cmdlist commands have a null prefix.
9355
3f4d92eb
PW
93562020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9357
9358 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
9359 as prefix, not one of its aliases.
9360 (set_cmd_prefix): Remove.
9361 (do_add_cmd): Centralize the setting of the prefix of a command, when
9362 command is defined after its full chain of prefix commands.
9363 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
9364 (add_setshow_cmd_full): Likewise.
9365 (update_prefix_field_of_prefixed_commands): New function.
9366 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
9367 update_prefix_field_of_prefixed_commands.
9368 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
9369 addresses of remote_set_cmdlist and remote_show_cmdlist given
9370 as argument, not the address of an argument.
9371 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
9372 * gdb/remote.c (_initialize_remote): Likewise.
9373
0605465f
PW
93742020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9375
9376 * cli/cli-cmds.c (alias_command): Check for an existing alias
9377 using lookup_cmd_composition, as valid_command_p is too strict
9378 and forbids aliases that are the prefix of an existing alias
9379 or command.
9380 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
9381 command is properly recognised as a valid command.
9382
58e6ac70
PW
93832020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9384
9385 * unittests/help-doc-selftests.c: Rename to
9386 unittests/command-def-selftests.c
9387 * unittests/command-def-selftests.c (help_doc_tests): Update some
9388 comments.
9389 (command_structure_tests, traverse_command_structure): New namespace
9390 and function.
9391 (command_structure_invariants_tests): New function.
9392 (_initialize_command_def_selftests) Renamed from
9393 _initialize_help_doc_selftests, register command_structure_invariants
9394 selftest.
9395
a7b9ceb8
PW
93962020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9397
9398 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
9399 an alias of 'show'.
9400
b2188a06
JB
94012020-05-15 Joel Brobecker <brobecker@adacore.com>
9402
9403 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
9404 ada_is_fixed_point_type. Update all callers.
9405 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
9406 all callers.
9407 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
9408 Update all callers.
9409 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
9410 print_fixed_point_type. Update all callers.
9411 * ada-valprint.c (ada_value_print_num): Replace call to
9412 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
9413
a51951c2
KB
94142020-05-14 Kevin Buettner <kevinb@redhat.com>
9415
9416 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
9417 processors.
9418 (cpu_supports_bts): Add CV_AMD case.
9419
29d6859f
LM
94202020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
9421 Simon Marchi <simon.marchi@efficios.com>
9422
9423 * infrun.c (stop_all_threads): Collect multiple wait events at
9424 each pass.
9425
78134374
SM
94262020-05-14 Simon Marchi <simon.marchi@efficios.com>
9427
9428 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
9429 type::code instead.
9430
67607e24
SM
94312020-05-14 Simon Marchi <simon.marchi@efficios.com>
9432
9433 * gdbtypes.h (struct type) <code, set_code>: New methods.
9434 (TYPE_CODE): Use type::code. Change all call sites used to set
9435 the code to use type::set_code instead.
9436
a05575d3
TBA
94372020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9438 Tom de Vries <tdevries@suse.de>
9439 Pedro Alves <palves@redhat.com>
9440
9441 PR threads/25478
9442 * infrun.c (stop_all_threads): Do NOT ignore
9443 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
9444 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
9445 received.
9446 (handle_no_resumed): Remove code handling a live inferior with no
9447 threads.
9448 * remote.c (has_single_non_exited_thread): New.
9449 (remote_target::update_thread_list): Do not delete a thread if is
9450 the last thread of the process.
9451 * thread.c (thread_select): Call delete_exited_threads instead of
9452 prune_threads.
9453
6ad82919
TBA
94542020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9455
9456 * infrun.c (stop_all_threads): Enable/disable thread events of all
9457 targets. Move a debug message denoting the end of the function
9458 into the SCOPED_EXIT block.
9459
d890404b
TBA
94602020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9461
9462 * process-stratum-target.h: Include <set>.
9463 (all_non_exited_process_targets, switch_to_target_no_thread): New
9464 function declarations.
9465 * process-stratum-target.c (all_non_exited_process_targets)
9466 (switch_to_target_no_thread): New function implementations.
9467
293b3ebc
TBA
94682020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9469
9470 * infrun.c (handle_inferior_event): Extract out a piece of code
9471 into...
9472 (mark_non_executing_threads): ...this new function.
9473
7ca9b62a
TBA
94742020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9475
9476 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
9477 use.
9478
fc75c28b
TBA
94792020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9480
9481 * regcache.c (regcache_read_pc_protected): New function
9482 implementation that returns 0 if the PC cannot read via
9483 'regcache_read_pc'.
9484 * infrun.c (proceed): Call 'regcache_read_pc_protected'
9485 instead of 'regcache_read_pc'.
9486 (keep_going_pass_signal): Ditto.
9487
a89febbd
TT
94882020-05-13 Tom Tromey <tromey@adacore.com>
9489
9490 * ada-lang.c (align_value): Remove.
9491 (ada_template_to_fixed_record_type_1): Use align_up.
9492
f7e23710
TBA
94932020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9494
9495 * async-event.c: Update the copyright year.
9496 * async-event.h: Update the copyright year.
9497
02ff80c2
SM
94982020-05-12 Simon Marchi <simon.marchi@efficios.com>
9499
9500 * objfiles.h (is_addr_in_objfile,
9501 shared_objfile_contains_address_p): Return bool.
9502 * objfile.c (is_addr_in_objfile,
9503 shared_objfile_contains_address_p): Return bool.
9504
4fd6c7e8
TT
95052020-05-11 Tom Tromey <tromey@adacore.com>
9506
9507 * cli/cli-cmds.c (info_command): Restore.
9508 (_initialize_cli_cmds): Use add_prefix_command for "info".
9509 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
9510
5eb68a39
TT
95112020-05-11 Tom Tromey <tromey@adacore.com>
9512
9513 * ada-lang.c (ada_value_primitive_field): Now public.
9514 * ada-lang.h (ada_value_primitive_field): Declare.
9515 * ada-valprint.c (print_field_values): Use
9516 ada_value_primitive_field for wrapper fields.
9517
7666722f
TV
95182020-05-11 Tom de Vries <tdevries@suse.de>
9519
9520 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
9521 MODULE_DOMAIN.
9522
3ee6bb11
TV
95232020-05-11 Tom de Vries <tdevries@suse.de>
9524
9525 PR symtab/25941
9526 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
9527 with length 0, if not gdb-produced.
9528 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
9529
43434996
TV
95302020-05-09 Tom de Vries <tdevries@suse.de>
9531
9532 PR gdb/25955
9533 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
9534 calculation.
9535
2f78cffc
TT
95362020-05-09 Tom Tromey <tom@tromey.com>
9537
9538 * top.c (server_command): Now bool.
9539 * top.h (server_command): Now bool.
9540
4f7bc5ed
TT
95412020-05-08 Tom Tromey <tromey@adacore.com>
9542
9543 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
9544 already being processed.
9545
8be4b118
TT
95462020-05-08 Tom Tromey <tom@tromey.com>
9547
9548 * printcmd.c (struct display) <next>: Remove.
9549 <display>: New constructor.
9550 <exp_string>: Now a std::string.
9551 <enabled_p>: Now a bool.
9552 (display_number): Move definition earlier.
9553 (displays): Rename from display_chain. Now a std::vector.
9554 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
9555 (display_command): Update.
9556 (do_one_display, disable_display)
9557 (enable_disable_display_command, do_enable_disable_display):
9558 Update.
9559 (free_display): Remove.
9560 (clear_displays): Rewrite.
9561 (delete_display): Update.
9562 (map_display_numbers): Use function_view. Remove "data"
9563 parameter. Update.
9564 (do_delete_display): Remove.
9565 (undisplay_command): Update.
9566 (do_one_display, do_displays, disable_display)
9567 (info_display_command): Update.
9568 (do_enable_disable_display): Remove.
9569 (enable_disable_display_command)
9570 (clear_dangling_display_expressions): Update.
9571
94c93c35
TT
95722020-05-08 Tom Tromey <tom@tromey.com>
9573
9574 * symtab.c (set_symbol_cache_size)
9575 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
9576 (maintenance_print_symbol_cache_statistics): Update.
9577 * symmisc.c (print_symbol_bcache_statistics)
9578 (print_objfile_statistics, maintenance_print_objfiles)
9579 (maintenance_info_symtabs, maintenance_check_symtabs)
9580 (maintenance_expand_symtabs, maintenance_info_line_tables):
9581 Update.
9582 * symfile-debug.c (set_debug_symfile): Update.
9583 * source.c (forget_cached_source_info): Update.
9584 * python/python.c (gdbpy_progspaces): Update.
9585 * psymtab.c (maintenance_info_psymtabs): Update.
9586 * probe.c (parse_probes): Update.
9587 * linespec.c (iterate_over_all_matching_symtabs)
9588 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
9589 * guile/scm-progspace.c (gdbscm_progspaces): Update.
9590 * exec.c (exec_target::close): Update.
9591 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
9592 * breakpoint.c (print_one_breakpoint_location)
9593 (create_longjmp_master_breakpoint)
9594 (create_std_terminate_master_breakpoint): Update.
9595 * progspace.c (program_spaces): Now a std::vector.
9596 (maybe_new_address_space): Update.
9597 (add_program_space): Remove.
9598 (program_space::program_space): Update.
9599 (remove_program_space): Update.
9600 (number_of_program_spaces): Remove.
9601 (print_program_space, update_address_spaces): Update.
9602 * progspace.h (program_spaces): Change type.
9603 (ALL_PSPACES): Remove.
9604 (number_of_program_spaces): Don't declare.
9605 (struct program_space) <next>: Remove.
9606
a1fd1ac9
TT
96072020-05-08 Tom Tromey <tom@tromey.com>
9608
9609 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
9610 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
9611 (enable_break): Update.
9612 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
9613 (frv_fdpic_find_canonical_descriptor): Update.
9614 (frv_fetch_objfile_link_map): Update.
9615 * progspace.c (program_space::free_all_objfiles): Update.
9616 (program_space::solibs): New method.
9617 * progspace.h (struct program_space) <solibs>: New method.
9618 * solist.h (master_so_list): Don't declare.
9619 (ALL_SO_LIBS): Remove.
9620 * solib.h (so_list_head): Remove.
9621 (update_solib_list): Update comment.
9622 * solib.c (master_so_list): Remove.
9623 (solib_used, update_solib_list, solib_add)
9624 (info_sharedlibrary_command, clear_solib)
9625 (reload_shared_libraries_1, remove_user_added_objfile): Update.
9626
38eae084
TT
96272020-05-08 Tom Tromey <tom@tromey.com>
9628
9629 * extension.c (extension_languages): Now a std::array.
9630 (ALL_EXTENSION_LANGUAGES): Remove.
9631 (get_ext_lang_defn, get_ext_lang_of_file)
9632 (eval_ext_lang_from_control_command): Update.
9633 (finish_ext_lang_initialization)
9634 (auto_load_ext_lang_scripts_for_objfile)
9635 (ext_lang_type_printers::ext_lang_type_printers)
9636 (apply_ext_lang_type_printers)
9637 (ext_lang_type_printers::~ext_lang_type_printers)
9638 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
9639 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
9640 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
9641 (get_matching_xmethod_workers, ext_lang_colorize)
9642 (ext_lang_before_prompt): Update.
9643 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
9644
596dc4ad
TT
96452020-05-08 Tom Tromey <tom@tromey.com>
9646
9647 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
9648 overload.
9649 <swap_string, m_string>: Remove.
9650 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
9651 Update.
9652 * stabsread.c (define_symbol, read_type): Update.
9653 * linespec.c (find_linespec_symbols): Update.
9654 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
9655 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
9656 * dbxread.c (read_dbx_symtab): Update.
9657 * cp-support.h (cp_canonicalize_string_full)
9658 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
9659 Return unique_xmalloc_ptr.
9660 * cp-support.c (inspect_type): Update.
9661 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
9662 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
9663 Likewise.
9664 * c-typeprint.c (print_name_maybe_canonical): Update.
9665 * break-catch-throw.c (check_status_exception_catchpoint):
9666 Update.
9667
bf4cb9be
TV
96682020-05-08 Tom de Vries <tdevries@suse.de>
9669
9670 * infrun.c (follow_fork): Copy current_line and current_symtab to
9671 child thread.
9672
a1b68f28
SM
96732020-05-07 Simon Marchi <simon.marchi@efficios.com>
9674
9675 * async-event.c (struct async_signal_handler, struct
9676 async_event_handler): Reformat, remove typedef.
9677
98d48915
SM
96782020-05-07 Simon Marchi <simon.marchi@efficios.com>
9679
9680 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
9681 access thistype->main_type->dyn_prop_list directly.
9682
7aa91313
SM
96832020-05-07 Simon Marchi <simon.marchi@efficios.com>
9684
9685 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
9686 (remove_dyn_prop): Remove. Update all users to use
9687 type::remove_dyn_prop.
9688 * gdbtypes.c (remove_dyn_prop): Rename to...
9689 (type::remove_dyn_prop): ... this.
9690
5c54719c
SM
96912020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
9692
9693 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
9694 (add_dyn_prop): Remove. Update all users to use
9695 type::add_dyn_prop.
9696 * gdbtypes.c (add_dyn_prop): Rename to...
9697 (type::add_dyn_prop): ... this.
9698
24e99c6c
SM
96992020-05-07 Simon Marchi <simon.marchi@efficios.com>
9700
9701 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
9702 (get_dyn_prop): Remove. Update all users to use
9703 type::dyn_prop.
9704 * gdbtypes.c (get_dyn_prop): Rename to...
9705 (type::dyn_prop): ... this.
9706
0d4bf016
SM
97072020-05-06 Simon Marchi <simon.marchi@efficios.com>
9708
9709 * gdbtypes.h (struct main_type) <flag_static>: Remove.
9710
ac4a4f1c
SM
97112020-05-06 Simon Marchi <simon.marchi@efficios.com>
9712
9713 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
9714 instruction, skip it if it's there.
9715
a3bbacc1
SM
97162020-05-05 Simon Marchi <simon.marchi@efficios.com>
9717
9718 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
9719
c3236f84
SM
97202020-05-04 Simon Marchi <simon.marchi@efficios.com>
9721
9722 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
9723 * gdbtypes.c (recursive_dump_type): Remove use of
9724 TYPE_INCOMPLETE.
9725
3b6acaee
TT
97262020-05-03 Tom Tromey <tom@tromey.com>
9727
9728 * breakpoint.c (catch_command, tcatch_command): Remove.
9729 (_initialize_breakpoint): Use add_basic_prefix_cmd,
9730 add_show_prefix_cmd.
9731 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
9732 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
9733 Remove.
9734 (add_internal_problem_command): Use add_basic_prefix_cmd,
9735 add_show_prefix_cmd.
9736 * mips-tdep.c (set_mipsfpu_command): Remove.
9737 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
9738 * dwarf2/index-cache.c (set_index_cache_command): Remove.
9739 (_initialize_index_cache): Use add_basic_prefix_cmd.
9740 * memattr.c (dummy_cmd): Remove.
9741 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
9742 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
9743 (_initialize_tui_win): Use add_basic_prefix_cmd,
9744 add_show_prefix_cmd.
9745 * cli/cli-logging.c (set_logging_command): Remove.
9746 (_initialize_cli_logging): Use add_basic_prefix_cmd,
9747 add_show_prefix_cmd.
9748 (show_logging_command): Remove.
9749 * target.c (target_command): Remove.
9750 (add_target): Use add_basic_prefix_cmd.
9751
a51119cd
HD
97522020-05-02 Hannes Domani <ssbssa@yahoo.de>
9753
9754 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
9755
652fc23a 97562020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 9757
652fc23a
PW
9758 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
9759 info_command.
9760
117539e6
KR
97612020-04-30 Kamil Rytarowski <n54@gmx.com>
9762
9763 * nbsd-nat.c (nbsd_enable_proc_events)
9764 (nbsd_nat_target::post_startup_inferior): Add.
9765 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
9766 (nbsd_nat_target::update_thread_list): Rewrite.
9767 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
9768 "PTRACE_LWP_CREATE".
9769 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
9770
102e38eb 97712020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 9772
102e38eb
PW
9773 * stack.c (_initialize_stack): Remove duplicated creation
9774 of "frame" command and "f" alias.
9775
ee9d1e5f
HD
97762020-04-30 Hannes Domani <ssbssa@yahoo.de>
9777
9778 PR gdb/18706
9779 * gdbtypes.c (check_typedef): Calculate size of array of
9780 stubbed type.
9781
627c7fb8
HD
97822020-04-30 Hannes Domani <ssbssa@yahoo.de>
9783
9784 PR gdb/15559
9785 * i386-tdep.c (i386_push_dummy_call): Call
9786 i386_thiscall_push_dummy_call.
9787 (i386_thiscall_push_dummy_call): New function.
9788 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
9789 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
9790 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
9791
ffc2844e
SM
97922020-04-29 Simon Marchi <simon.marchi@efficios.com>
9793
9794 * gdbarch.sh (do_read): Add shellcheck disable directive for
9795 warning SC2162.
9796
1207375d
SM
97972020-04-29 Simon Marchi <simon.marchi@efficios.com>
9798
9799 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
9800 "referenced but not assigned" warning.
9801
9fdb2916
SM
98022020-04-29 Simon Marchi <simon.marchi@efficios.com>
9803
9804 * gdbarch.sh: Remove code that sets fallbackdefault.
9805
759cea5e
SM
98062020-04-29 Simon Marchi <simon.marchi@efficios.com>
9807
9808 * gdbarch.sh: Use shell operators && and || instead of
9809 -a and -o.
9810
cb02ab24
SM
98112020-04-29 Simon Marchi <simon.marchi@efficios.com>
9812
9813 * gdbarch.sh: Use $(...) instead of `...`.
9814
a6fc5ffc
SM
98152020-04-29 Simon Marchi <simon.marchi@efficios.com>
9816
9817 * gdbarch.sh: Use double quotes around variables.
9818
8d113d13
SM
98192020-04-29 Simon Marchi <simon.marchi@efficios.com>
9820
9821 * gdbarch.sh: Use %s with printf, instead of variables in the
9822 format string.
9823
ed6acedd
TT
98242020-04-29 Tom Tromey <tromey@adacore.com>
9825
9826 PR ada/25875:
9827 * dwarf2/read.c (update_enumeration_type_from_children): Compute
9828 type fields here.
9829 (read_enumeration_type): Call
9830 update_enumeration_type_from_children later. Update comments.
9831 (process_enumeration_scope): Don't create type fields.
9832
b68b1b58
KR
98332020-04-29 Kamil Rytarowski <n54@gmx.com>
9834
9835 * nbsd-tdep.c: Include "xml-syscall.h".
9836 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
9837
f94b2e03
KR
98382020-04-29 Kamil Rytarowski <n54@gmx.com>
9839
9840 * nbsd-nat.c: Include "sys/wait.h".
9841 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
9842 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
9843 (nbsd_nat_target::remove_exec_catchpoint)
9844 (nbsd_nat_target::set_syscall_catchpoint): Add.
9845 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
9846 (nbsd_nat_target::insert_exec_catchpoint)
9847 (nbsd_nat_target::remove_exec_catchpoint)
9848 (nbsd_nat_target::set_syscall_catchpoint): Add.
9849 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
9850 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
9851 `nbsd_get_syscall_number'.
9852
fc49bc72
TT
98532020-04-29 Tom Tromey <tom@tromey.com>
9854
9855 * stack.c (print_block_frame_labels): Remove.
9856
d642b692
HD
98572020-04-29 Hannes Domani <ssbssa@yahoo.de>
9858
9859 PR gdb/17320
9860 * ada-valprint.c (val_print_packed_array_elements): Move array
9861 end bracket to new line.
9862 (ada_val_print_string): Remove extra spaces before first array
9863 element.
9864 * c-valprint.c (c_value_print_array): Likewise.
9865 * m2-valprint.c (m2_print_array_contents): Likewise.
9866 (m2_value_print_inner): Likewise.
9867 * p-valprint.c (pascal_value_print_inner): Likewise.
9868 * valprint.c (generic_val_print_array): Likewise.
9869 (value_print_array_elements): Move first array element and array
9870 end bracket to new line.
9871
ea90f227
TV
98722020-04-29 Tom de Vries <tdevries@suse.de>
9873
9874 PR symtab/25889
9875 * linespec.c (find_method): Fix ix calculation.
9876
4498ef4f
KR
98772020-04-28 Kamil Rytarowski <n54@gmx.com>
9878
9879 * syscalls/update-netbsd.sh: New file.
9880 * syscalls/netbsd.xml: Regenerate.
9881 * data-directory/Makefile.in: Register `netbsd.xml' in
9882 `SYSCALLS_FILES'.
9883
a55e30b5
SM
98842020-04-28 Simon Marchi <simon.marchi@efficios.com>
9885
9886 * syscalls/update-freebsd.sh: Add double quotes.
9887
2b2fbab8
TT
98882020-04-28 Tom Tromey <tom@tromey.com>
9889
9890 * NEWS: Update.
9891 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
9892 (cmdpy_init): Allow class_tui.
9893
a65189c9
TV
98942020-04-28 Mark Williams <mark@myosotissp.com>
9895
9896 PR gdb/24480
9897 * dwarf2read.c: Add missing assingments to list_in_scope when
9898 start_symtab was already called.
9899
1b95cdb7
SM
99002020-04-28 Simon Marchi <simon.marchi@efficios.com>
9901
9902 PR gdb/25881
9903 * dwarf2/read.c (offset_map_type): Use
9904 gdb:hash_enum<sect_offset> as hash function.
9905
15cd93d0
TV
99062020-04-28 Tom de Vries <tdevries@suse.de>
9907
9908 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
9909 with DW_AT_signature.
9910
1eb39914
SM
99112020-04-27 Simon Marchi <simon.marchi@efficios.com>
9912
9913 * configure.ac: Remove check for fs_base/gs_base in
9914 user_regs_struct.
9915 * configure: Re-generate.
9916 * config.in: Re-generate.
9917 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
9918 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
9919 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
9920
991a3e2e
LM
99212020-04-27 Luis Machado <luis.machado@linaro.org>
9922
9923 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
9924 problematic inline frame unwinding situation.
9925 * frame.c (frame_id_computed_p): New function.
9926 * frame.h (frame_id_computed_p): New prototype.
9927
361ba0e8
TT
99282020-04-26 Tom Tromey <tom@tromey.com>
9929
9930 * command.h (enum command_class) <class_pseudo>: Remove.
9931
bc3609fd
PW
99322020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9933
9934 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
9935 and whitespace.
9936
b9771db7
KR
99372020-04-25 Kamil Rytarowski <n54@gmx.com>
9938
ec16513e
SM
9939 * inf-ptrace.c (inf_ptrace_target::wait): Remove
9940 `PT_GET_PROCESS_STATE' block.
b9771db7 9941
7151c1af
TT
99422020-04-24 Tom Tromey <tom@tromey.com>
9943
9944 * symtab.h (symbol_get_demangled_name): Don't declare.
9945 * symtab.c (symbol_get_demangled_name): Remove.
9946 (general_symbol_info::natural_name)
9947 (general_symbol_info::demangled_name): Update.
9948
906bb4c5
TT
99492020-04-24 Tom Tromey <tom@tromey.com>
9950
9951 PR rust/25025:
9952 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
9953
bcfe6157
TT
99542020-04-24 Tom Tromey <tom@tromey.com>
9955
9956 PR symtab/12707:
9957 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
9958 exists.
9959 (new_symbol): Likewise.
9960 * compile/compile-object-load.c (get_out_value_type): Use
9961 symbol_matches_search_name.
9962
f049a313
TT
99632020-04-24 Tom Tromey <tom@tromey.com>
9964
9965 * dwarf2/read.c (add_partial_symbol): Do not call
9966 compute_and_set_names.
9967
76e288d1
TT
99682020-04-24 Tom Tromey <tom@tromey.com>
9969
9970 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
9971 overload.
9972
2467f4f6
TT
99732020-04-24 Tom Tromey <tom@tromey.com>
9974
9975 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
9976 (add_psymbol_to_list): New overload. Make old overload call new
9977 one.
9978 * psympriv.h (add_psymbol_to_list): New overload.
9979
e61108c9
TT
99802020-04-24 Tom Tromey <tom@tromey.com>
9981
9982 * dwarf2/read.c (partial_die_info::read) <case
9983 DW_AT_linkage_name>: Use value_as_string.
9984 (dwarf2_string_attr): Use value_as_string.
9985 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
9986 method.
9987 * dwarf2/attribute.c (attribute::value_as_string): New method.
9988
8c87a452
TT
99892020-04-24 Tom Tromey <tom@tromey.com>
9990
9991 * symtab.c (general_symbol_info::natural_name)
9992 (general_symbol_info::demangled_name): Check for language_rust.
9993
787de330
TT
99942020-04-24 Tom Tromey <tom@tromey.com>
9995
9996 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
9997 (dwarf2_physname): ... from here.
9998 (partial_die_info::read): Add Rust "{" hack.
9999
ff985671
TT
100002020-04-24 Tom Tromey <tom@tromey.com>
10001
10002 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
10003 method.
10004 (symbol_set_demangled_name): Don't declare.
10005 * symtab.c (general_symbol_info::set_demangled_name): Rename from
10006 symbol_set_demangled_name.
10007 (general_symbol_info::set_language)
10008 (general_symbol_info::compute_and_set_names): Update.
10009 * minsyms.c (minimal_symbol_reader::install): Update.
10010 * dwarf2/read.c (new_symbol): Update.
10011
1acda803
TT
100122020-04-24 Tom Tromey <tromey@adacore.com>
10013
10014 PR python/23662:
10015 * python/py-type.c (convert_field): Handle
10016 FIELD_LOC_KIND_DWARF_BLOCK.
10017 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
10018 (typy_get_dynamic): Nw function.
10019 (type_object_getset): Add "dynamic".
10020 * NEWS: Add entry.
10021
d656f129
TT
100222020-04-24 Tom Tromey <tromey@adacore.com>
10023
10024 * ada-typeprint.c (print_choices, print_variant_part)
10025 (print_record_field_types_dynamic): New functions.
10026 (print_record_field_types): Use print_record_field_types_dynamic.
10027
7d79de9a
TT
100282020-04-24 Tom Tromey <tromey@adacore.com>
10029
10030 * dwarf2/read.c (handle_data_member_location): New overload.
10031 (dwarf2_add_field): Use it.
10032 (decode_locdesc): Add "computed" parameter. Update comment.
10033 * gdbtypes.c (is_dynamic_type_internal): Also look for
10034 FIELD_LOC_KIND_DWARF_BLOCK.
10035 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
10036 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
10037 virtual base classes.
10038 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
10039 FIELD_LOC_KIND_DWARF_BLOCK.
10040
f8e89861
TT
100412020-04-24 Tom Tromey <tromey@adacore.com>
10042
10043 * dwarf2/read.c (read_structure_type): Handle dynamic length.
10044 * gdbtypes.c (is_dynamic_type_internal): Check
10045 TYPE_HAS_DYNAMIC_LENGTH.
10046 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
10047 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
10048 New macros.
10049 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
10050 constant.
10051
9c6a1327
TT
100522020-04-24 Tom Tromey <tromey@adacore.com>
10053
10054 * dwarf2/read.c (struct variant_field): Rewrite.
10055 (struct variant_part_builder): New.
10056 (struct nextfield): Remove "variant" field. Add "offset".
10057 (struct field_info): Add "current_variant_part" and
10058 "variant_parts".
10059 (alloc_discriminant_info): Remove.
10060 (alloc_rust_variant): New function.
10061 (quirk_rust_enum): Update.
10062 (dwarf2_add_field): Set "offset" member. Don't handle
10063 DW_TAG_variant_part.
10064 (offset_map_type): New typedef.
10065 (convert_variant_range, create_one_variant)
10066 (create_one_variant_part, create_variant_parts)
10067 (add_variant_property): New functions.
10068 (dwarf2_attach_fields_to_type): Call add_variant_property.
10069 (read_structure_type): Don't handle DW_TAG_variant_part.
10070 (handle_variant_part, handle_variant): New functions.
10071 (handle_struct_member_die): Use them.
10072 (process_structure_scope): Don't handle variant parts.
10073 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
10074 (struct discriminant_info): Remove.
10075 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
10076 (struct main_type) <flag_discriminated_union>: Remove.
10077 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
10078 (rust_enum_variant): Return int. Remove "contents". Rewrite.
10079 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
10080 Update.
10081 * valops.c (value_union_variant): Remove.
10082 * value.h (value_union_variant): Don't declare.
10083
b249d2c2
TT
100842020-04-24 Tom Tromey <tromey@adacore.com>
10085
10086 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
10087 (ada_value_primitive_packed_val): Update.
10088 * ada-valprint.c (ada_value_print_1): Update.
10089 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
10090 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
10091 just an address. Use evaluate_for_locexpr_baton.
10092 (dwarf2_evaluate_property): Update.
10093 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
10094 array_view.
10095 * findvar.c (default_read_var_value): Update.
10096 * gdbtypes.c (compute_variant_fields_inner)
10097 (resolve_dynamic_type_internal): Update.
10098 (resolve_dynamic_type): Change type of valaddr parameter.
10099 * gdbtypes.h (resolve_dynamic_type): Update.
10100 * valarith.c (value_subscripted_rvalue): Update.
10101 * value.c (value_from_contents_and_address): Update.
10102
61122aa9
TT
101032020-04-24 Tom Tromey <tromey@adacore.com>
10104
10105 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
10106 "push_initial_value" parameter.
10107 (dwarf2_evaluate_property): Likewise.
10108 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
10109
ef83a141
TT
101102020-04-24 Tom Tromey <tromey@adacore.com>
10111
10112 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
10113 (variant::matches, compute_variant_fields_recurse)
10114 (compute_variant_fields_inner, compute_variant_fields): New
10115 functions.
10116 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
10117 Use resolved_type after type is made.
10118 (operator==): Add new cases.
10119 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
10120 (struct discriminant_range, struct variant, struct variant_part):
10121 New.
10122 (union dynamic_prop_data) <variant_parts, original_type>: New
10123 members.
10124 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
10125 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
10126 constants.
10127 * value.c (unpack_bits_as_long): Now public.
10128 * value.h (unpack_bits_as_long): Declare.
10129
675127ec
TT
101302020-04-24 Tom Tromey <tromey@adacore.com>
10131
10132 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
10133 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
10134
9852ceef
HD
101352020-04-24 Hannes Domani <ssbssa@yahoo.de>
10136
10137 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
10138
7632c6ce
KR
101392020-04-24 Kamil Rytarowski <n54@gmx.com>
10140
10141 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
10142 (remove_fork_catchpoint, post_startup_inferior)
10143 (post_attach): Move...
10144 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
10145 (remove_fork_catchpoint, post_startup_inferior)
10146 (post_attach): ...here.
10147 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
10148 (remove_fork_catchpoint, post_startup_inferior)
10149 (post_attach): Move...
10150 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
10151 (remove_fork_catchpoint, post_startup_inferior)
10152 (post_attach): ...here.
10153
7be2bb4f
TT
101542020-04-24 Tom Tromey <tromey@adacore.com>
10155
10156 * nat/windows-nat.h (struct windows_thread_info)
10157 <pc_adjusted>: New member.
10158 * windows-nat.c (windows_fetch_one_register): Check
10159 pc_adjusted.
10160 (windows_nat_target::get_windows_debug_event)
10161 (windows_nat_target::wait): Set pc_adjusted.
10162
f80cb3b4
TV
101632020-04-24 Tom de Vries <tdevries@suse.de>
10164
10165 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
10166 Run gdb-add-index inside temp dir.
10167
29514b87
TT
101682020-04-23 Tom Tromey <tromey@adacore.com>
10169
10170 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
10171 in loop.
10172
5939967b
LM
101732020-04-23 Luis Machado <luis.machado@linaro.org>
10174
10175 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10176 get_frame_register instead of gdbarch_unwind_pc.
10177
70bc38f5
TV
101782020-04-23 Tom de Vries <tdevries@suse.de>
10179
10180 * symtab.c (lookup_global_symbol): Prefer def over decl.
10181
de82891c
TV
101822020-04-23 Tom de Vries <tdevries@suse.de>
10183
10184 PR symtab/25807
10185 * block.c (best_symbol, better_symbol): Promote to external.
10186 * block.h (best_symbol, better_symbol): Declare.
10187 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
10188 decl.
10189
ecc6c606
TT
101902020-04-23 Tom Tromey <tromey@adacore.com>
10191
10192 PR ada/25837:
10193 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
10194 "const char *", not a "const std::string &".
10195 <name_and_matcher::operator==>: Update.
10196 * unittests/lookup_name_info-selftests.c: Change type of
10197 "result".
10198
740480b8
TT
101992020-04-23 Tom Tromey <tom@tromey.com>
10200
10201 * inferior.h (iterate_over_inferiors): Don't declare.
10202 * inferior.c (iterate_over_inferiors): Remove.
10203 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
10204 Remove.
10205 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
10206 use iterate_over_inferiors.
10207 (darwin_resume_inferior_it)
10208 (struct resume_inferior_threads_param)
10209 (darwin_resume_inferior_threads_it): Remove.
10210 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
10211
ae3ab1f0
TV
102122020-04-23 Tom de Vries <tdevries@suse.de>
10213
10214 * blockframe.c (find_pc_partial_function): Use
10215 find_pc_sect_compunit_symtab rather than
10216 objfile->sf->qf->find_pc_sect_compunit_symtab.
10217
317d2668
TV
102182020-04-22 Tom de Vries <tdevries@suse.de>
10219
10220 PR symtab/25764
10221 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
10222 in psymtabs.
10223
eea9e357
TV
102242020-04-22 Tom de Vries <tdevries@suse.de>
10225
10226 PR symtab/25801
10227 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
10228 symtabs.
10229
3d5afab3
TV
102302020-04-22 Tom de Vries <tdevries@suse.de>
10231
10232 PR symtab/25700
10233 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
10234 CU if already created.
10235
d43b7a2d
TBA
102362020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10237
10238 * infrun.c (displaced_step_fixup): Switch to the event_thread
10239 before calling displaced_step_restore, not after.
10240
d89edf9b
MM
102412020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10242
10243 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
10244 its inferior is not recorded by us.
10245 (record_btrace_target_open): Replace call to
10246 all_non_exited_threads () with call to current_inferior
10247 ()->non_exited_threads ().
10248 (record_btrace_target::stop_recording): Likewise.
10249 (record_btrace_target::close): Likewise.
10250 (record_btrace_target::wait): Likewise.
10251 (record_btrace_target::record_stop_replaying): Likewise.
10252
5897fd49
MM
102532020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10254
10255 * btrace.c (btrace_enable): Throw an error on double enables and
10256 when enabling recording fails.
10257 (btrace_disable): Throw an error if the thread is not recorded.
10258
1a476b6d
MM
102592020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10260
10261 * record-btrace.c (record_btrace_target::fetch_registers): Forward
10262 request if we do not have a thread_info.
10263
4778a5f8
TV
102642020-04-21 Tom de Vries <tdevries@suse.de>
10265
10266 PR gdb/25471
10267 * thread.c
10268 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
10269 exception in get_frame_id.
10270
0fa7617d
TT
102712020-04-20 Tom Tromey <tromey@adacore.com>
10272
10273 * python/python.c (struct gdbpy_event): Mark move constructor as
10274 noexcept.
10275 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
10276 constructor as noexcept.
10277 * completer.h (struct completion_result): Mark move constructor as
10278 noexcept.
10279 * completer.c (completion_result::completion_result): Use
10280 initialization style. Don't call reset_match_list.
10281
ad23bda0
MS
102822020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
10283
10284 * MAINTAINERS (Write After Approval): Add myself.
10285
45e1f031
TT
102862020-04-18 Tom Tromey <tom@tromey.com>
10287
10288 * windows-tdep.c (init_w32_command_list)
10289 (w32_prefix_command_valid): Restore.
10290 (_initialize_windows_tdep): Call init_w32_command_list.
10291
08feed99
TT
102922020-04-18 Tom Tromey <tom@tromey.com>
10293
10294 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
10295 * value.c (value_fn_field): Update.
10296 * valops.c (find_function_in_inferior)
10297 (value_allocate_space_in_inferior): Update.
10298 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10299 Update.
10300 * tui/tui-source.c (tui_source_window::set_contents): Update.
10301 * symtab.c (lookup_global_or_static_symbol)
10302 (find_function_start_sal_1, skip_prologue_sal)
10303 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
10304 * symmisc.c (dump_msymbols, dump_symtab_1)
10305 (maintenance_print_one_line_table): Update.
10306 * symfile.c (init_entry_point_info, section_is_mapped)
10307 (list_overlays_command, simple_read_overlay_table)
10308 (simple_overlay_update_1): Update.
10309 * stap-probe.c (handle_stap_probe): Update.
10310 * stabsread.c (dbx_init_float_type, define_symbol)
10311 (read_one_struct_field, read_enum_type, read_range_type): Update.
10312 * source.c (info_line_command): Update.
10313 * python/python.c (gdbpy_source_objfile_script)
10314 (gdbpy_execute_objfile_script): Update.
10315 * python/py-type.c (save_objfile_types): Update.
10316 * python/py-objfile.c (py_free_objfile): Update.
10317 * python/py-inferior.c (python_new_objfile): Update.
10318 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
10319 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
10320 (maintenance_check_psymtabs): Update.
10321 * printcmd.c (info_address_command): Update.
10322 * objfiles.h (struct objfile) <arch>: New method, from
10323 get_objfile_arch.
10324 (get_objfile_arch): Don't declare.
10325 * objfiles.c (get_objfile_arch): Remove.
10326 (filter_overlapping_sections): Update.
10327 * minsyms.c (msymbol_is_function): Update.
10328 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
10329 (output_nondebug_symbol): Update.
10330 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
10331 (mdebug_expand_psymtab): Update.
10332 * machoread.c (macho_add_oso_symfile): Update.
10333 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
10334 Update.
10335 * linux-fork.c (checkpoint_command): Update.
10336 * linespec.c (convert_linespec_to_sals): Update.
10337 * jit.c (finalize_symtab): Update.
10338 * infrun.c (insert_exception_resume_from_probe): Update.
10339 * ia64-tdep.c (ia64_find_unwind_table): Update.
10340 * hppa-tdep.c (internalize_unwinds): Update.
10341 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
10342 Update.
10343 * gcore.c (call_target_sbrk): Update.
10344 * elfread.c (record_minimal_symbol, elf_symtab_read)
10345 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
10346 (elf_gnu_ifunc_resolve_by_got): Update.
10347 * dwarf2/read.c (create_addrmap_from_index)
10348 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10349 (read_debug_names_from_section)
10350 (process_psymtab_comp_unit_reader, add_partial_symbol)
10351 (add_partial_subprogram, process_full_comp_unit)
10352 (read_file_scope, read_func_scope, read_lexical_block_scope)
10353 (read_call_site_scope, dwarf2_ranges_read)
10354 (dwarf2_record_block_ranges, dwarf2_add_field)
10355 (mark_common_block_symbol_computed, read_tag_pointer_type)
10356 (read_tag_string_type, dwarf2_init_float_type)
10357 (dwarf2_init_complex_target_type, read_base_type)
10358 (partial_die_info::read, partial_die_info::read)
10359 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
10360 (dwarf2_fetch_die_loc_sect_off): Update.
10361 * dwarf2/loc.c (dwarf2_find_location_expression)
10362 (class dwarf_evaluate_loc_desc, rw_pieced_value)
10363 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
10364 (dwarf2_loc_desc_get_symbol_read_needs)
10365 (locexpr_describe_location_piece, locexpr_describe_location_1)
10366 (loclist_describe_location): Update.
10367 * dwarf2/index-write.c (write_debug_names): Update.
10368 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
10369 * dtrace-probe.c (dtrace_process_dof): Update.
10370 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
10371 (process_one_symbol): Update.
10372 * ctfread.c (ctf_init_float_type, read_base_type): Update.
10373 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
10374 (coff_read_enum_type): Update.
10375 * cli/cli-cmds.c (edit_command, list_command): Update.
10376 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
10377 * breakpoint.c (create_overlay_event_breakpoint)
10378 (create_longjmp_master_breakpoint)
10379 (create_std_terminate_master_breakpoint)
10380 (create_exception_master_breakpoint, get_sal_arch): Update.
10381 * block.c (block_gdbarch): Update.
10382 * annotate.c (annotate_source_line): Update.
10383
0743fc83
TT
103842020-04-17 Tom Tromey <tromey@adacore.com>
10385
10386 * auto-load.c (show_auto_load_cmd): Remove.
10387 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
10388 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
10389 (maintenance_print_arc_command): Remove.
10390 * tui/tui-win.c (tui_command): Remove.
10391 (tui_get_cmd_list): Use add_basic_prefix_cmd.
10392 * tui/tui-layout.c (tui_layout_command): Remove.
10393 (_initialize_tui_layout): Use add_basic_prefix_cmd.
10394 * python/python.c (user_set_python, user_show_python): Remove.
10395 (_initialize_python): Use add_basic_prefix_cmd,
10396 add_show_prefix_cmd.
10397 * guile/guile.c (set_guile_command, show_guile_command): Remove.
10398 (install_gdb_commands): Use add_basic_prefix_cmd,
10399 add_show_prefix_cmd.
10400 (info_guile_command): Remove.
10401 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
10402 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
10403 add_show_prefix_cmd.
10404 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
10405 Remove do_set and do_show parameters.
10406 * cli/cli-style.c (set_style, show_style): Remove.
10407 (_initialize_cli_style): Use add_basic_prefix_cmd,
10408 add_show_prefix_cmd.
10409 (cli_style_option::add_setshow_commands): Remove do_set and
10410 do_show parameters.
10411 (cli_style_option::add_setshow_commands): Use
10412 add_basic_prefix_cmd, add_show_prefix_cmd.
10413 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
10414 (set_style_name): Remove.
10415 * cli/cli-dump.c (dump_command, append_command): Remove.
10416 (srec_dump_command, ihex_dump_command, verilog_dump_command)
10417 (tekhex_dump_command, binary_dump_command)
10418 (binary_append_command): Remove.
10419 (_initialize_cli_dump): Use add_basic_prefix_cmd.
10420 * windows-tdep.c (w32_prefix_command_valid): Remove global.
10421 (init_w32_command_list): Remove; move into ...
10422 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
10423 * valprint.c (set_print, show_print, set_print_raw)
10424 (show_print_raw): Remove.
10425 (_initialize_valprint): Use add_basic_prefix_cmd,
10426 add_show_prefix_cmd.
10427 * typeprint.c (set_print_type, show_print_type): Remove.
10428 (_initialize_typeprint): Use add_basic_prefix_cmd,
10429 add_show_prefix_cmd.
10430 * record.c (set_record_command, show_record_command): Remove.
10431 (_initialize_record): Use add_basic_prefix_cmd,
10432 add_show_prefix_cmd.
10433 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
10434 add_show_prefix_cmd.
10435 (info_command, show_command, set_debug, show_debug): Remove.
10436 * top.h (set_history, show_history): Don't declare.
10437 * top.c (set_history, show_history): Remove.
10438 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
10439 (unset_tdesc_cmd): Remove.
10440 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
10441 add_show_prefix_cmd.
10442 * symtab.c (info_module_command): Remove.
10443 (_initialize_symtab): Use add_basic_prefix_cmd.
10444 * symfile.c (overlay_command): Remove.
10445 (_initialize_symfile): Use add_basic_prefix_cmd.
10446 * sparc64-tdep.c (info_adi_command): Remove.
10447 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
10448 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
10449 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
10450 add_show_prefix_cmd.
10451 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
10452 (_initialize_serial): Use add_basic_prefix_cmd,
10453 add_show_prefix_cmd.
10454 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
10455 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
10456 add_show_prefix_cmd.
10457 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
10458 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
10459 add_show_prefix_cmd.
10460 * riscv-tdep.c (show_riscv_command, set_riscv_command)
10461 (show_debug_riscv_command, set_debug_riscv_command): Remove.
10462 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
10463 add_show_prefix_cmd.
10464 * remote.c (remote_command, set_remote_cmd): Remove.
10465 (_initialize_remote): Use add_basic_prefix_cmd.
10466 * record-full.c (set_record_full_command)
10467 (show_record_full_command): Remove.
10468 (_initialize_record_full): Use add_basic_prefix_cmd,
10469 add_show_prefix_cmd.
10470 * record-btrace.c (cmd_set_record_btrace)
10471 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
10472 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
10473 (cmd_show_record_btrace_pt): Remove.
10474 (_initialize_record_btrace): Use add_basic_prefix_cmd,
10475 add_show_prefix_cmd.
10476 * ravenscar-thread.c (set_ravenscar_command)
10477 (show_ravenscar_command): Remove.
10478 (_initialize_ravenscar): Use add_basic_prefix_cmd,
10479 add_show_prefix_cmd.
10480 * mips-tdep.c (show_mips_command, set_mips_command)
10481 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
10482 add_show_prefix_cmd.
10483 * maint.c (maintenance_command, maintenance_info_command)
10484 (maintenance_check_command, maintenance_print_command)
10485 (maintenance_set_cmd, maintenance_show_cmd): Remove.
10486 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
10487 add_show_prefix_cmd.
10488 (show_per_command_cmd): Remove.
10489 * maint-test-settings.c (maintenance_set_test_settings_cmd):
10490 Remove.
10491 (maintenance_show_test_settings_cmd): Remove.
10492 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
10493 add_show_prefix_cmd.
10494 * maint-test-options.c (maintenance_test_options_command):
10495 Remove.
10496 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
10497 * macrocmd.c (macro_command): Remove
10498 (_initialize_macrocmd): Use add_basic_prefix_cmd.
10499 * language.c (set_check, show_check): Remove.
10500 (_initialize_language): Use add_basic_prefix_cmd,
10501 add_show_prefix_cmd.
10502 * infcmd.c (unset_command): Remove.
10503 (_initialize_infcmd): Use add_basic_prefix_cmd.
10504 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
10505 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
10506 add_show_prefix_cmd.
10507 * go32-nat.c (go32_info_dos_command): Remove.
10508 (_initialize_go32_nat): Use add_basic_prefix_cmd.
10509 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
10510 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
10511 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
10512 (_initialize_frame): Use add_basic_prefix_cmd,
10513 add_show_prefix_cmd.
10514 * dcache.c (set_dcache_command, show_dcache_command): Remove.
10515 (_initialize_dcache): Use add_basic_prefix_cmd,
10516 add_show_prefix_cmd.
10517 * cp-support.c (maint_cplus_command): Remove.
10518 (_initialize_cp_support): Use add_basic_prefix_cmd.
10519 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
10520 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
10521 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
10522 add_basic_prefix_cmd, add_show_prefix_cmd.
10523 * breakpoint.c (save_command): Remove.
10524 (_initialize_breakpoint): Use add_basic_prefix_cmd.
10525 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
10526 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
10527 add_show_prefix_cmd.
10528 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
10529 (set_ada_command, show_ada_command): Remove.
10530 (_initialize_ada_language): Use add_basic_prefix_cmd,
10531 add_show_prefix_cmd.
10532 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
10533
3557f442
KR
105342020-04-16 Kamil Rytarowski <n54@gmx.com>
10535
10536 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
10537 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
10538
16197208
SM
105392020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
10540
10541 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
10542 warning messages.
10543
00ac85d3
SM
105442020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
10545
10546 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
10547 import table is not at beginning of .idata section.
10548
381ce63f
PA
105492020-04-16 Pedro Alves <palves@redhat.com>
10550
10551 * inferior.c (delete_inferior): Use delete operator directly
10552 instead of delete_program_space.
10553 * progspace.c (add_program_space): New, factored out from
10554 program_space::program_space.
10555 (remove_program_space): New, factored out from
10556 delete_program_space.
10557 (program_space::program_space): Remove intro comment. Rewrite.
10558 (program_space::~program_space): Remove intro comment. Call
10559 remove_program_space.
10560 (delete_program_space): Delete.
10561 * progspace.h (program_space::program_space): Make explicit. Move
10562 intro comment here, adjusted.
10563 (program_space::~program_space): Move intro comment here,
10564 adjusted.
10565 (delete_program_space): Remove.
10566
a010605f
TT
105672020-04-16 Tom Tromey <tromey@adacore.com>
10568
10569 * windows-nat.c (windows_nat::handle_access_violation): New
10570 function.
10571 * nat/windows-nat.h (handle_access_violation): Declare.
10572 * nat/windows-nat.c (handle_exception): Move Cygwin code to
10573 windows-nat.c. Call handle_access_violation.
10574
efba5c23
TV
105752020-04-16 Tom de Vries <tdevries@suse.de>
10576
10577 PR symtab/25791
10578 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
10579 CUs without psymtab.
10580
97ed802d
KB
105812020-04-16 Kevin Buettner <kevinb@redhat.com>
10582
10583 * python/python.c (do_start_initialization): Don't call
10584 PyEval_InitThreads for Python 3.9 and beyond.
10585
c7d64809
KR
105862020-04-15 Kamil Rytarowski <n54@gmx.com>
10587
10588 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
10589 thread functions.
10590 (obsd_nat_target::wait): Likewise.
10591
ce127a96
TT
105922020-04-15 Tom Tromey <tromey@adacore.com>
10593
10594 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
10595 (DEBUG_EXCEPT): Use debug_printf.
10596
99f1bc6a
AB
105972020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
10598
10599 * completer.c (class completion_tracker::completion_hash_entry)
10600 <hash_name>: New member function.
10601 (completion_tracker::discard_completions): New callback to hash a
10602 completion_hash_entry, pass this to htab_create_alloc.
10603
a0e9b532
JT
106042016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
10605
10606 * windows-nat.c (windows_make_so): Warn rather than stopping with
10607 an error if realpath() fails.
10608
06ca5dd4
KR
106092020-04-14 Kamil Rytarowski <n54@gmx.com>
10610
10611 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
10612 (nbsd_nat_target::info_proc): Add do_status.
10613
194d088f
TV
106142020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
10615 Tom de Vries <tdevries@suse.de>
10616
10617 PR symtab/25718
10618 * psympriv.h (struct partial_symtab::read_symtab)
10619 (struct partial_symtab::expand_psymtab)
10620 (struct partial_symtab::read_dependencies): Update comments.
10621 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
10622 read_symtab for includer.
10623 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
10624 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
10625 (struct dwarf2_include_psymtab::m_readin): Remove.
10626 (struct dwarf2_include_psymtab::includer): New member function.
10627 (dwarf2_psymtab::expand_psymtab): Assert !readin.
10628
c1a66c06
TV
106292020-04-14 Tom de Vries <tdevries@suse.de>
10630
10631 PR symtab/25720
10632 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
10633 with NULL symbol_matcher and lookup_name.
10634 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
10635 and lookup_name.
10636 * dwarf2/read.c (dw2_expand_symtabs_matching)
10637 (dw2_debug_names_expand_symtabs_matching): Same.
10638 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
10639 Make lookup_name a pointer. Update comment.
10640 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
10641 lookup_name being a pointer.
10642 * symfile.c (expand_symtabs_matching): Same.
10643 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
10644 * linespec.c (iterate_over_all_matching_symtabs): Same.
10645
400b5eca
TT
106462020-04-13 Tom Tromey <tom@tromey.com>
10647
10648 * run-on-main-thread.c: Update include.
10649 * unittests/main-thread-selftests.c: Update include.
10650 * tui/tui-win.c: Update include.
10651 * tui/tui-io.c: Update include.
10652 * tui/tui-interp.c: Update include.
10653 * tui/tui-hooks.c: Update include.
10654 * top.h: Update include.
10655 * top.c: Update include.
10656 * ser-base.c: Update include.
10657 * remote.c: Update include.
10658 * remote-notif.c: Update include.
10659 * remote-fileio.c: Update include.
10660 * record-full.c: Update include.
10661 * record-btrace.c: Update include.
10662 * python/python.c: Update include.
10663 * posix-hdep.c: Update include.
10664 * mingw-hdep.c: Update include.
10665 * mi/mi-main.c: Update include.
10666 * mi/mi-interp.c: Update include.
10667 * main.c: Update include.
10668 * linux-nat.c: Update include.
10669 * interps.c: Update include.
10670 * infrun.c: Update include.
10671 * inf-loop.c: Update include.
10672 * event-top.c: Update include.
10673 * event-loop.c: Move to ../gdbsupport/.
10674 * event-loop.h: Move to ../gdbsupport/.
10675 * async-event.h: Update include.
10676 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
10677
93b54c8e
TT
106782020-04-13 Tom Tromey <tom@tromey.com>
10679
10680 * tui/tui-win.c: Include async-event.h.
10681 * remote.c: Include async-event.h.
10682 * remote-notif.c: Include async-event.h.
10683 * record-full.c: Include async-event.h.
10684 * record-btrace.c: Include async-event.h.
10685 * infrun.c: Include async-event.h.
10686 * event-top.c: Include async-event.h.
10687 * event-loop.h: Move some declarations to async-event.h.
10688 * event-loop.c: Don't include ser-event.h or top.h. Move some
10689 code to async-event.c.
10690 * async-event.h: New file.
10691 * async-event.c: New file.
10692 * Makefile.in (COMMON_SFILES): Add async-event.c.
10693 (HFILES_NO_SRCDIR): Add async-event.h.
10694
c1cd3163
TT
106952020-04-13 Tom Tromey <tom@tromey.com>
10696
10697 * utils.c (flush_streams): New function.
10698 * event-loop.c (gdb_wait_for_event): Call flush_streams.
10699
29f2bf4f
TT
107002020-04-13 Tom Tromey <tom@tromey.com>
10701
10702 * event-loop.c (handle_file_event): Use warning, not
10703 printf_unfiltered.
10704
98029d02
TT
107052020-04-13 Tom Tromey <tom@tromey.com>
10706
10707 * event-loop.c: Include <chrono>.
10708
06cc9596
TT
107092020-04-13 Tom Tromey <tom@tromey.com>
10710
10711 * gdb_select.h: Move to ../gdbsupport/.
10712 * event-loop.c: Update include path.
10713 * top.c: Update include path.
10714 * ser-base.c: Update include path.
10715 * ui-file.c: Update include path.
10716 * ser-tcp.c: Update include path.
10717 * guile/scm-ports.c: Update include path.
10718 * posix-hdep.c: Update include path.
10719 * ser-unix.c: Update include path.
10720 * gdb_usleep.c: Update include path.
10721 * mingw-hdep.c: Update include path.
10722 * inflow.c: Update include path.
10723 * infrun.c: Update include path.
10724 * event-top.c: Update include path.
10725
8ae8e197
TT
107262020-04-13 Tom Tromey <tom@tromey.com>
10727
10728 * configure: Rebuild.
10729 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
10730
58cf28e8
TT
107312020-04-13 Tom Tromey <tom@tromey.com>
10732
10733 * event-loop.h (start_event_loop): Don't declare.
10734 * event-loop.c (start_event_loop): Move...
10735 * main.c (start_event_loop): ...here. Now static.
10736
b7f999ae
SDJ
107372020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
10738
10739 * MAINTAINERS: Update my email address.
10740
1085dfd4
KR
107412020-04-12 Kamil Rytarowski <n54@gmx.com>
10742
10743 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
10744 IP_ALL.
10745
49d1d1f5
KR
107462020-04-12 Kamil Rytarowski <n54@gmx.com>
10747
10748 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 10749 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 10750
b4848d2a
KR
107512020-04-12 Kamil Rytarowski <n54@gmx.com>
10752
10753 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 10754 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 10755
51c133d5
KR
107562020-04-12 Kamil Rytarowski <n54@gmx.com>
10757
10758 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
10759
54b8cbd0
KR
107602020-04-11 Kamil Rytarowski <n54@gmx.com>
10761
10762 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
10763 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
10764 (nbsd_nat_target::info_proc): New functions.
10765 * nbsd-nat.c (kinfo_get_vmmap): New function.
10766 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
10767 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
10768 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
10769 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
10770 functions.
10771 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
10772 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
10773 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
10774 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
10775 (KINFO_VME_FLAG_GROWS_DOWN): New.
10776
cf83625d
AS
107772020-04-10 Artur Shepilko <nomadbyte@gmail.com>
10778
10779 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
10780 bit shift.
10781
0c4311ab
TT
107822020-04-10 Tom Tromey <tromey@adacore.com>
10783
10784 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
10785
3e65b3e9
TT
107862020-04-10 Tom Tromey <tromey@adacore.com>
10787
10788 * symtab.c (get_symbol_address, get_msymbol_address): Skip
10789 separate debug files.
10790
13302e95
HD
107912020-04-10 Hannes Domani <ssbssa@yahoo.de>
10792
10793 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
10794 Move to...
10795 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
10796 ... here.
10797 * windows-nat.c (windows_nat_target::get_windows_debug_event):
10798 Check for STATUS_WX86_BREAKPOINT.
10799 (windows_nat_target::wait): Same.
10800
bdfc1e8a
TV
108012020-04-10 Tom de Vries <tdevries@suse.de>
10802
10803 PR cli/25808
10804 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
10805
f4460aec
SM
108062020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10807
10808 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
10809 (Write After Approval): Remove Tom de Vries.
10810
a25198bb
BE
108112020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
10812
10813 revert partially:
10814 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10815
aac66a4c
SM
10816 * buildsym.c (record_line): Fix undefined behavior and preserve
10817 lines at eof.
a25198bb 10818
206c98a6
KR
108192020-04-09 Kamil Rytarowski <n54@gmx.com>
10820
10821 * auxv.h (svr4_auxv_parse): New.
10822 * auxv.c (default_auxv_parse): Split into default_auxv_parse
10823 and generic_auxv_parse.
10824 (svr4_auxv_parse): Add.
10825 * obsd-tdep.c: Include "auxv.h".
10826 (obsd_auxv_parse): Remove.
10827 (obsd_init_abi): Remove comment.
10828 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
10829 from `obsd_auxv_parse' to `svr4_auxv_parse'.
10830 * nbsd-tdep.c: Include "auxv.h".
10831 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
10832
71fbdbaf
TT
108332020-04-08 Tom Tromey <tromey@adacore.com>
10834
10835 * nat/windows-nat.h (last_wait_event): Don't declare.
10836 (wait_for_debug_event): Update comment.
10837 * nat/windows-nat.c (last_wait_event): Now static.
10838
2c1d95e8
TT
108392020-04-08 Tom Tromey <tromey@adacore.com>
10840
10841 * windows-nat.c (wait_for_debug_event): Move to
10842 nat/windows-nat.c.
10843 * nat/windows-nat.h (wait_for_debug_event): Declare.
10844 * nat/windows-nat.c (wait_for_debug_event): Move from
10845 windows-nat.c. No longer static.
10846
d2977bc4
TT
108472020-04-08 Tom Tromey <tromey@adacore.com>
10848
10849 * windows-nat.c (get_windows_debug_event): Use
10850 fetch_pending_stop.
10851 * nat/windows-nat.h (fetch_pending_stop): Declare.
10852 * nat/windows-nat.c (fetch_pending_stop): New function.
10853
e758e19c
TT
108542020-04-08 Tom Tromey <tromey@adacore.com>
10855
10856 * windows-nat.c (windows_continue): Use matching_pending_stop and
10857 continue_last_debug_event.
10858 * nat/windows-nat.h (matching_pending_stop)
10859 (continue_last_debug_event): Declare.
10860 * nat/windows-nat.c (DEBUG_EVENTS): New define.
10861 (matching_pending_stop, continue_last_debug_event): New
10862 functions.
10863
8d30e395
TT
108642020-04-08 Tom Tromey <tromey@adacore.com>
10865
10866 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
10867 (handle_exception_result): Move to nat/windows-nat.h.
10868 (DEBUG_EXCEPTION_SIMPLE): Remove.
10869 (windows_nat::handle_ms_vc_exception): New function.
10870 (handle_exception): Move to nat/windows-nat.c.
10871 (get_windows_debug_event): Update.
10872 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
10873 nat/windows-nat.c.
10874 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
10875 (handle_exception_result): Move from windows-nat.c.
10876 (handle_exception): Declare.
10877 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
10878 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
10879 windows-nat.c.
10880
29de418d
TT
108812020-04-08 Tom Tromey <tromey@adacore.com>
10882
10883 * windows-nat.c (exception_count, event_count): Remove.
10884 (handle_exception, get_windows_debug_event)
10885 (do_initial_windows_stuff): Update.
10886
a816ba18
TT
108872020-04-08 Tom Tromey <tromey@adacore.com>
10888
10889 * windows-nat.c (windows_nat::handle_load_dll)
10890 (windows_nat::handle_unload_dll): Rename. No longer static.
10891 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
10892 Declare.
10893
a00caa12
TT
108942020-04-08 Tom Tromey <tromey@adacore.com>
10895
10896 * complaints.h (stop_whining): Declare at top-level.
10897 (complaint): Don't declare stop_whining.
10898
d41b524f
TT
108992020-04-08 Tom Tromey <tromey@adacore.com>
10900
10901 * windows-nat.c (windows_nat::handle_output_debug_string):
10902 Rename. No longer static.
10903 * nat/windows-nat.h (handle_output_debug_string): Declare.
10904
3c76026d
TT
109052020-04-08 Tom Tromey <tromey@adacore.com>
10906
10907 * windows-nat.c (current_process_handle, current_process_id)
10908 (main_thread_id, last_sig, current_event, last_wait_event)
10909 (current_windows_thread, desired_stop_thread_id, pending_stops)
10910 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
10911 (display_selectors, fake_create_process)
10912 (get_windows_debug_event): Update.
10913 * nat/windows-nat.h (current_process_handle, current_process_id)
10914 (main_thread_id, last_sig, current_event, last_wait_event)
10915 (current_windows_thread, desired_stop_thread_id, pending_stops)
10916 (struct pending_stop, siginfo_er): Move from windows-nat.c.
10917 * nat/windows-nat.c (current_process_handle, current_process_id)
10918 (main_thread_id, last_sig, current_event, last_wait_event)
10919 (current_windows_thread, desired_stop_thread_id, pending_stops)
10920 (siginfo_er): New globals. Move from windows-nat.c.
10921
9d8679cc
TT
109222020-04-08 Tom Tromey <tromey@adacore.com>
10923
10924 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
10925 (handle_load_dll): Update.
10926 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
10927
28688adf
TT
109282020-04-08 Tom Tromey <tromey@adacore.com>
10929
10930 * windows-nat.c (enum thread_disposition_type): Move to
10931 nat/windows-nat.h.
10932 (windows_nat::thread_rec): Rename from thread_rec. No longer
10933 static.
10934 (windows_add_thread, windows_nat_target::fetch_registers)
10935 (windows_nat_target::store_registers, handle_exception)
10936 (windows_nat_target::resume, get_windows_debug_event)
10937 (windows_nat_target::get_tib_address)
10938 (windows_nat_target::thread_name)
10939 (windows_nat_target::thread_alive): Update.
10940 * nat/windows-nat.h (enum thread_disposition_type): Move from
10941 windows-nat.c.
10942 (thread_rec): Declare.
10943
4834dad0
TT
109442020-04-08 Tom Tromey <tromey@adacore.com>
10945
10946 * windows-nat.c: Add "using namespace".
10947 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
10948 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
10949
65bafd5b
TT
109502020-04-08 Tom Tromey <tromey@adacore.com>
10951
10952 * nat/windows-nat.h (struct windows_thread_info): Declare
10953 destructor.
10954 * nat/windows-nat.c (~windows_thread_info): New.
10955
0a4afda3
TT
109562020-04-08 Tom Tromey <tromey@adacore.com>
10957
10958 PR gdb/22992
10959 * windows-nat.c (current_event): Update comment.
10960 (last_wait_event, desired_stop_thread_id): New globals.
10961 (struct pending_stop): New.
10962 (pending_stops): New global.
10963 (windows_nat_target) <stopped_by_sw_breakpoint>
10964 <supports_stopped_by_sw_breakpoint>: New methods.
10965 (windows_fetch_one_register): Add assertions. Adjust PC.
10966 (windows_continue): Handle pending stops. Suspend other threads
10967 when stepping. Use last_wait_event
10968 (wait_for_debug_event): New function.
10969 (get_windows_debug_event): Use wait_for_debug_event. Handle
10970 pending stops. Queue spurious stops.
10971 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
10972 (windows_nat_target::kill): Use wait_for_debug_event.
10973 * nat/windows-nat.h (struct windows_thread_info)
10974 <stopped_at_software_breakpoint>: New field.
10975 * nat/windows-nat.c (windows_thread_info::resume): Clear
10976 stopped_at_software_breakpoint.
10977
8e61ebec
TT
109782020-04-08 Tom Tromey <tromey@adacore.com>
10979
10980 * windows-nat.c (enum thread_disposition_type): New.
10981 (thread_rec): Replace "get_context" parameter with "disposition";
10982 change type.
10983 (windows_add_thread, windows_nat_target::fetch_registers)
10984 (windows_nat_target::store_registers, handle_exception)
10985 (windows_nat_target::resume, get_windows_debug_event)
10986 (windows_nat_target::get_tib_address)
10987 (windows_nat_target::thread_name)
10988 (windows_nat_target::thread_alive): Update.
10989
98a03287
TT
109902020-04-08 Tom Tromey <tromey@adacore.com>
10991
10992 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
10993 (windows_continue): Use windows_continue::resume.
10994 * nat/windows-nat.h (struct windows_thread_info) <suspend,
10995 resume>: Declare new methods.
10996 * nat/windows-nat.c: New file.
10997 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
10998
7c7411bc
TT
109992020-04-08 Tom Tromey <tromey@adacore.com>
11000
11001 * windows-nat.c (windows_add_thread, windows_delete_thread)
11002 (windows_nat_target::fetch_registers)
11003 (windows_nat_target::store_registers, fake_create_process)
11004 (windows_nat_target::resume, windows_nat_target::resume)
11005 (get_windows_debug_event, windows_nat_target::wait)
11006 (windows_nat_target::pid_to_str)
11007 (windows_nat_target::get_tib_address)
11008 (windows_nat_target::get_ada_task_ptid)
11009 (windows_nat_target::thread_name)
11010 (windows_nat_target::thread_alive): Use lwp, not tid.
11011
2950fdf7
TT
110122020-04-08 Tom Tromey <tromey@adacore.com>
11013
11014 * windows-nat.c (handle_exception)
11015 (windows_nat_target::thread_name): Update.
11016 * nat/windows-nat.h (windows_thread_info): Remove destructor.
11017 <name>: Now unique_xmalloc_ptr.
11018
62fe396b
TT
110192020-04-08 Tom Tromey <tromey@adacore.com>
11020
11021 * windows-nat.c (thread_rec)
11022 (windows_nat_target::fetch_registers): Update.
11023 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
11024 Update comment.
11025 <debug_registers_changed, reload_context>: Now bool.
11026
e9534bd2
TT
110272020-04-08 Tom Tromey <tromey@adacore.com>
11028
11029 * windows-nat.c (windows_add_thread): Use new.
11030 (windows_init_thread_list, windows_delete_thread): Use delete.
11031 (get_windows_debug_event): Update.
11032 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
11033 destructor, and initializers.
11034
ae1f8880
TT
110352020-04-08 Tom Tromey <tromey@adacore.com>
11036
11037 * windows-nat.c (struct windows_thread_info): Remove.
11038 * nat/windows-nat.h: New file.
11039
55a1e039
TT
110402020-04-08 Tom Tromey <tromey@adacore.com>
11041
11042 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
11043 (thread_rec, windows_add_thread, windows_delete_thread)
11044 (windows_continue): Update.
11045
93366324
TT
110462020-04-08 Tom Tromey <tromey@adacore.com>
11047
11048 * windows-nat.c (struct windows_thread_info): Remove typedef.
11049 (thread_head): Remove.
11050 (thread_list): New global.
11051 (thread_rec, windows_add_thread, windows_init_thread_list)
11052 (windows_delete_thread, windows_continue): Update.
11053
0f2265e2
SM
110542020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11055
11056 * windows-tdep.h (windows_init_abi): Add comment.
11057 (cygwin_init_abi): New declaration.
11058 * windows-tdep.c: Split signal enumeration in two, one for
11059 Windows and one for Cygwin.
11060 (windows_gdb_signal_to_target): Only deal with signal of the
11061 Windows OS ABI.
11062 (cygwin_gdb_signal_to_target): New function.
11063 (windows_init_abi): Rename to windows_init_abi_common, don't set
11064 gdb_signal_to_target gdbarch method. Add new new function with
11065 this name.
11066 (cygwin_init_abi): New function.
11067 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
11068 comment. Don't call windows_init_abi.
11069 (amd64_windows_init_abi): Add comment, call windows_init_abi.
11070 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
11071 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
11072 i386_windows_init_abi_common, don't call windows_init_abi. Add
11073 a new function of this name.
11074 (i386_cygwin_init_abi): New function.
11075 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
11076 OS ABI Cygwin.
11077
3810f182
SM
110782020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11079
11080 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
11081 parameter.c.
11082 (dwarf2_read_gdb_index): Update.
11083
063f8e80
KR
110842020-04-07 Kamil Rytarowski <n54@gmx.com>
11085
11086 * nbsd-tdep.c: Include "objfiles.h".
11087 (nbsd_skip_solib_resolver): New.
11088 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
11089
85a9510c 110902020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11091
11092 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
11093 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
11094 with DW_LLE_base_addressx are being emitted in DWARFv5.
11095 Add the newly added kind DW_LOC_OFFSET_PAIR also.
11096 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
11097 unsigned integer.
11098
9fc3eaae 110992020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11100
11101 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
11102 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
11103 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
11104 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
11105 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
11106 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
11107 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
11108
11109
41144253 111102020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11111
11112 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
11113 (read_loclist_index): New function definition.
11114 (lookup_loclist_base): New function definition.
11115 (read_loclist_header): New function definition.
11116 (dwarf2_cu): Add loclist_base and loclist_header field.
11117 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
11118 (read_full_die_1): Read the value of DW_AT_loclists_base.
11119 (read_attribute_reprocess): Handle DW_FORM_loclistx.
11120 (read_attribute_value): Handle DW_FORM_loclistx.
11121 (skip_one_die): Handle DW_FORM_loclistx.
11122 (loclist_header): New structure declaration.
11123 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
11124
9f4e76a4
SM
111252020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11126
11127 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
11128 constructor. Remove `addr` parameter from other constructor and
11129 add `per_cu` parameter.
11130 * dwarf2/read.c (create_partial_symtab): Update.
11131
25c11aca
TV
111322020-04-07 Tom de Vries <tdevries@suse.de>
11133
11134 PR symtab/25796
11135 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
11136 (partial_die_info::fixup): Inherit has_const_value.
11137
5707e24b
TV
111382020-04-07 Tom de Vries <tdevries@suse.de>
11139
11140 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
11141 symbols without address.
11142
05f00e22
KR
111432020-04-06 Kamil Rytarowski <n54@gmx.com>
11144
11145 * nbsd-nat.h (struct thread_info): Add forward declaration.
11146 (nbsd_nat_target::thread_alive): Add.
11147 (nbsd_nat_target::thread_name): Likewise.
11148 (nbsd_nat_target::update_thread_list): Likewise.
11149 (update_thread_list::post_attach): Likewise.
11150 (post_attach::pid_to_str): Likewise.
11151 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
11152 (nbsd_thread_lister): Add.
11153 (nbsd_nat_target::thread_alive): Likewise.
11154 (nbsd_nat_target::thread_name): Likewise.
11155 (nbsd_add_threads): Likewise.
11156 (update_thread_list::post_attach): Likewise.
11157 (nbsd_nat_target::update_thread_list): Likewise.
11158 (post_attach::pid_to_str): Likewise.
11159
6ee448cc
TT
111602020-04-06 Tom Tromey <tromey@adacore.com>
11161
11162 * ada-valprint.c (print_variant_part): Extract the variant field.
11163 (print_field_values): Use the field as the outer value when
11164 recursing.
11165
dea34e8c
TT
111662020-04-06 Tom Tromey <tromey@adacore.com>
11167
11168 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
11169 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
11170 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
11171 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
11172 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
11173
93689ce9
TT
111742020-04-06 Tom Tromey <tromey@adacore.com>
11175
11176 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
11177 TYPE_CODE_ERROR.
11178
79743962
KR
111792020-04-06 Kamil Rytarowski <n54@gmx.com>
11180
11181 * nbsd-tdep.c: Include "gdbarch.h".
11182 Define enum with NetBSD signal numbers.
11183 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
11184 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
11185 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
11186 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
11187 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
11188 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
11189 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
11190 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11191 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
11192 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
11193 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
11194 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
11195
9e7c9a03
HD
111962020-04-03 Hannes Domani <ssbssa@yahoo.de>
11197
11198 PR gdb/25325
11199 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
11200
d9e49b61
TT
112012020-04-03 Tom Tromey <tromey@adacore.com>
11202
11203 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
11204 Read constant block.
11205
e0fc5c3f
SM
112062020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11207
11208 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
11209 (gdb_bfd_get_full_section_contents): New declaration.
11210 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
11211 * windows-tdep.c (is_linked_with_cygwin_dll): Use
11212 gdb_bfd_get_full_section_contents.
11213
e2ff18a0
SM
112142020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11215
11216 * exec.c (build_section_table): Replace internal_error with
11217 gdb_assert.
11218 (section_table_xfer_memory_partial): Likewise.
11219 * mdebugread.c (parse_partial_symbols): Likewise.
11220 * psymtab.c (lookup_partial_symbol): Likewise.
11221 * utils.c (wrap_here): Likewise.
11222
0830d301
TT
112232020-04-02 Tom Tromey <tromey@adacore.com>
11224
11225 * f-lang.c (build_fortran_types): Use arch_type to initialize
11226 builtin_complex_s32 in the TYPE_CODE_ERROR case.
11227
e7da7f8f
TT
112282020-04-02 Tom Tromey <tromey@adacore.com>
11229
11230 * dwarf2/read.c (partial_die_info::read): Do not create a vector
11231 of attributes.
11232
c90d28ac
AB
112332020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
11234 Bernd Edlinger <bernd.edlinger@hotmail.de>
11235 Tom Tromey <tromey@adacore.com>
11236
11237 * buildsym.c (buildsym_compunit::record_line): Remove
11238 deduplication code.
11239
1aa98955
TV
112402020-04-02 Tom de Vries <tdevries@suse.de>
11241
11242 PR ada/24671
11243 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
11244
d3214198
TV
112452020-04-02 Tom de Vries <tdevries@suse.de>
11246
11247 * dwarf2/read.c (dwarf2_gdb_index_functions,
11248 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
11249 NULL.
11250 * psymtab.c (psym_lookup_global_symbol_language): New function.
11251 (psym_functions): Init psym_lookup_global_symbol_language with
11252 psym_lookup_global_symbol_language.
11253 * symfile-debug.c (debug_sym_quick_functions): Init
11254 lookup_global_symbol_language with NULL.
11255 * symfile.c (set_initial_language): Remove fixme comment.
11256 * symfile.h (struct quick_symbol_functions): Add
11257 lookup_global_symbol_language.
11258 * symtab.c (find_quick_global_symbol_language): New function.
11259 (find_main_name): Use find_quick_global_symbol_language.
11260
2836752f
SM
112612020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
11262
11263 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
11264
64dc2d4b
BE
112652020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11266
11267 * buildsym.c (record_line): Fix undefined behavior and preserve
11268 lines at eof.
11269
bbe3dc41
BE
112702020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11271
11272 * buildsym.c (record_line): Fix the resizing condition.
11273
6b4a335b
TT
112742020-04-01 Tom Tromey <tom@tromey.com>
11275
11276 * value.h (value_literal_complex): Add comment.
11277 * valops.c (value_literal_complex): Refer to value.h.
11278
3638a098
TT
112792020-04-01 Tom Tromey <tom@tromey.com>
11280
11281 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
11282 (scalar_type): New rule, from typebase.
11283 (typebase): Use scalar_type. Recognize complex types.
11284 (field_name): Handle FLOAT_KEYWORD.
11285 (ident_tokens): Add _Complex and __complex__.
11286
c34e8714
TT
112872020-04-01 Tom Tromey <tom@tromey.com>
11288
11289 PR exp/25299:
11290 * valarith.c (promotion_type, complex_binop): New functions.
11291 (scalar_binop): Handle complex numbers. Use promotion_type.
11292 (value_pos, value_neg, value_complement): Handle complex numbers.
11293
fa649bb7
TT
112942020-04-01 Tom Tromey <tom@tromey.com>
11295
11296 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
11297 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
11298 (parse_number): Handle complex numbers.
11299
981c08ce
TT
113002020-04-01 Tom Tromey <tom@tromey.com>
11301
11302 * c-valprint.c (c_decorations): Change complex suffix to "i".
11303
4c99290d
TT
113042020-04-01 Tom Tromey <tom@tromey.com>
11305
11306 * valprint.c (generic_value_print_complex): Use accessors.
11307 * value.h (value_real_part, value_imaginary_part): Declare.
11308 * valops.c (value_real_part, value_imaginary_part): New
11309 functions.
11310 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
11311
5b930b45
TT
113122020-04-01 Tom Tromey <tom@tromey.com>
11313
11314 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
11315 (read_range_type): Update.
11316 * mdebugread.c (basic_type): Update.
11317 * go-lang.c (build_go_types): Use init_complex_type.
11318 * gdbtypes.h (struct main_type) <complex_type>: New member.
11319 (init_complex_type): Update.
11320 (arch_complex_type): Don't declare.
11321 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
11322 Make name if none given. Use alloc_type_copy. Look for cached
11323 complex type.
11324 (arch_complex_type): Remove.
11325 (gdbtypes_post_init): Use init_complex_type.
11326 * f-lang.c (build_fortran_types): Use init_complex_type.
11327 * dwarf2/read.c (read_base_type): Update.
11328 * d-lang.c (build_d_types): Use init_complex_type.
11329 * ctfread.c (read_base_type): Update.
11330
53cccef1
TBA
113312020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11332
11333 * infrun.c (stop_all_threads): Update assertion, plus when
11334 stopping threads, take into account that we might be trying
11335 to stop an all-stop target.
11336 (stop_waiting): Call 'stop_all_threads' if there exists a
11337 non-stop target.
11338
a0714d30
TBA
113392020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11340
11341 * target.h (exists_non_stop_target): New function declaration.
11342 * target.c (exists_non_stop_target): New function.
11343
60e22c1e
HD
113442020-04-01 Hannes Domani <ssbssa@yahoo.de>
11345
11346 PR gdb/24789
11347 * eval.c (is_integral_or_integral_reference): New function.
11348 (evaluate_subexp_standard): Allow integer references in
11349 pointer arithmetic.
11350
e139a727
TBA
113512020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11352
11353 * remote.c (remote_target::remote_parse_stop_reply): Remove the
11354 check for no ptid in the stop reply when the target is non-stop.
11355
e0802d59
TT
113562020-04-01 Tom Tromey <tromey@adacore.com>
11357
11358 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
11359 "name" parameter to rvalue reference. Initialize m_name_holder.
11360 <lookup_name_info>: New overloads.
11361 <name>: Return gdb::string_view.
11362 <c_str>: New method.
11363 <make_ignore_params>: Update.
11364 <search_name_hash>: Update.
11365 <language_lookup_name>: Return const char *.
11366 <m_name>: Change type.
11367 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
11368 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
11369 (lookup_name_info::match_any): Update.
11370 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
11371 Update.
11372 * minsyms.c (linkage_name_str): Update.
11373 * language.c (default_symbol_name_matcher): Update.
11374 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
11375 Update.
11376 * ada-lang.c (ada_fold_name): Change parameter to string_view.
11377 (ada_lookup_name_info::ada_lookup_name_info): Update.
11378 (literal_symbol_name_matcher): Update.
11379
8c072cb6
TT
113802020-04-01 Tom Tromey <tromey@adacore.com>
11381
11382 * psymtab.c (psymtab_search_name): Remove function.
11383 (psym_lookup_symbol): Create search name and lookup name here.
11384 (lookup_partial_symbol): Remove "name" parameter; add
11385 lookup_name.
11386 (psym_expand_symtabs_for_function): Update.
11387
6f29a534
TT
113882020-03-31 Joel Jones <joelkevinjones@gmail.com>
11389
11390 PR tui/25597:
11391 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
11392
af62665e
TT
113932020-03-31 Tom Tromey <tromey@adacore.com>
11394
11395 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
11396 memcpy.
11397
d1a89da5
NC
113982020-03-30 Nelson Chu <nelson.chu@sifive.com>
11399
11400 * features/riscv/32bit-csr.xml: Regenerated.
11401 * features/riscv/64bit-csr.xml: Regenerated.
11402
d8af9068
TT
114032020-03-30 Tom Tromey <tromey@adacore.com>
11404
11405 * ada-valprint.c (print_variant_part): Update.
11406 * ada-lang.h (ada_which_variant_applies): Update.
11407 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
11408 outer_valaddr parameters; replace with "outer" value parameter.
11409 (to_fixed_variant_branch_type): Update.
11410
227c0bf4
PFC
114112020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11412
11413 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
11414 <list>. Remove inclusion of observable.h.
11415 (PPC_DEBUG_CURRENT_VERSION): Move up define.
11416 (struct arch_lwp_info): New struct.
11417 (class ppc_linux_dreg_interface): New class.
11418 (struct ppc_linux_process_info): New struct.
11419 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
11420 <low_new_clone, low_forget_process, low_prepare_to_resume>
11421 <copy_thread_dreg_state, mark_thread_stale>
11422 <mark_debug_registers_changed, register_hw_breakpoint>
11423 <clear_hw_breakpoint, register_wp, clear_wp>
11424 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
11425 <num_memory_accesses, get_trigger_type>
11426 <create_watchpoint_request, hwdebug_point_cmp>
11427 <init_arch_lwp_info, get_arch_lwp_info>
11428 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
11429 methods.
11430 <struct ptid_hash>: New inner struct.
11431 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
11432 members.
11433 (saved_dabr_value, hwdebug_info, max_slots_number)
11434 (struct hw_break_tuple, struct thread_points, ppc_threads)
11435 (have_ptrace_hwdebug_interface)
11436 (hwdebug_find_thread_points_by_tid)
11437 (hwdebug_insert_point, hwdebug_remove_point): Remove.
11438 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
11439 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
11440 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
11441 use m_dreg_interface.
11442 (hwdebug_point_cmp): Change to...
11443 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
11444 reference arguments instead of pointers.
11445 (ppc_linux_nat_target::ranged_break_num_registers): Use
11446 m_dreg_interface.
11447 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
11448 m_dreg_interface. Call register_hw_breakpoint.
11449 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
11450 m_dreg_interface. Call clear_hw_breakpoint.
11451 (get_trigger_type): Change to...
11452 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
11453 comment.
11454 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
11455 use m_dreg_interface. Call register_hw_breakpoint.
11456 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
11457 use m_dreg_interface. Call clear_hw_breakpoint.
11458 (can_use_watchpoint_cond_accel): Change to...
11459 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
11460 method. Update comment, use m_dreg_interface and
11461 m_process_info.
11462 (calculate_dvc): Change to...
11463 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
11464 m_dreg_interface.
11465 (num_memory_accesses): Change to...
11466 (ppc_linux_nat_target::num_memory_accesses): ...this method.
11467 (check_condition): Change to...
11468 (ppc_linux_nat_target::check_condition): ...this method.
11469 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
11470 comment, use m_dreg_interface.
11471 (create_watchpoint_request): Change to...
11472 (ppc_linux_nat_target::create_watchpoint_request): ...this
11473 method. Use m_dreg_interface.
11474 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
11475 m_dreg_interface. Call register_hw_breakpoint or register_wp.
11476 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
11477 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
11478 (ppc_linux_nat_target::low_forget_process)
11479 (ppc_linux_nat_target::low_new_fork)
11480 (ppc_linux_nat_target::low_new_clone)
11481 (ppc_linux_nat_target::low_delete_thread)
11482 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
11483 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
11484 only call mark_thread_stale.
11485 (ppc_linux_thread_exit): Remove.
11486 (ppc_linux_nat_target::stopped_data_address): Change to...
11487 (ppc_linux_nat_target::low_stopped_data_address): This. Add
11488 comment, use m_dreg_interface and m_thread_hw_breakpoints.
11489 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
11490 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
11491 comment. Call low_stopped_data_address.
11492 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
11493 m_dreg_interface.
11494 (ppc_linux_nat_target::masked_watch_num_registers): Use
11495 m_dreg_interface.
11496 (ppc_linux_nat_target::copy_thread_dreg_state)
11497 (ppc_linux_nat_target::mark_thread_stale)
11498 (ppc_linux_nat_target::mark_debug_registers_changed)
11499 (ppc_linux_nat_target::register_hw_breakpoint)
11500 (ppc_linux_nat_target::clear_hw_breakpoint)
11501 (ppc_linux_nat_target::register_wp)
11502 (ppc_linux_nat_target::clear_wp)
11503 (ppc_linux_nat_target::init_arch_lwp_info)
11504 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
11505 (_initialize_ppc_linux_nat): Remove observer callback.
11506
4db10d8f
PFC
115072020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11508
11509 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
11510 (ppc_linux_nat_target::auxv_parse)
11511 (ppc_linux_nat_target::read_description)
11512 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
11513 Move up.
11514
1310c1b0
PFC
115152020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11516
11517 * linux-nat.h (low_new_clone): New method.
11518 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
11519
69b037c3
SM
115202020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
11521
11522 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
11523 (dbx_expand_psymtab): ... this.
11524 (start_psymtab): Update.
11525 * mdebugread.c (psymtab_to_symtab_1): Rename to...
11526 (mdebug_expand_psymtab): ... this.
11527 (parse_partial_symbols): Update.
11528 (new_psymtab): Update.
11529 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
11530 (xcoff_expand_psymtab): ... this.
11531 (xcoff_start_psymtab): Update.
11532
48993951
SM
115332020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
11534
11535 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
11536 <expand_dependencies>: ... this.
11537 * psymtab.c (partial_symtab::read_dependencies): Rename to...
11538 (partial_symtab::expand_dependencies): ... this.
11539 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
11540 Update.
11541 (dwarf2_psymtab::expand_psymtab): Update.
11542 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
11543 * mdebugread.c (psymtab_to_symtab_1): Update.
11544 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
11545
3ad83046
SM
115462020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
11547
11548 * psympriv.h (discard_psymtab): Remove.
11549 * dbxread.c (dbx_end_psymtab): Update.
11550 * xcoffread.c (xcoff_end_psymtab): Update.
11551
4d1b9ab6
TT
115522020-03-28 Tom Tromey <tom@tromey.com>
11553
11554 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
11555 comment.
11556
f1749218
TT
115572020-03-28 Tom Tromey <tom@tromey.com>
11558
11559 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
11560
ebea7626
HD
115612020-03-27 Hannes Domani <ssbssa@yahoo.de>
11562
11563 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
11564
a879b4d5
JB
115652020-03-26 John Baldwin <jhb@FreeBSD.org>
11566
11567 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
11568
0826b30a
TT
115692020-03-26 Tom Tromey <tom@tromey.com>
11570
11571 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
11572 (mark_common_block_symbol_computed, read_tag_string_type)
11573 (attr_to_dynamic_prop, read_subrange_type): Update.
11574 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
11575 to be methods on struct attribute.
11576 (skip_one_die, process_imported_unit_die, read_namespace_alias)
11577 (read_call_site_scope, partial_die_info::read)
11578 (partial_die_info::read, lookup_die_type, follow_die_ref):
11579 Update.
11580 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
11581 from dwarf2_get_ref_die_offset.
11582 (attribute::constant_value): New method, from
11583 dwarf2_get_attr_constant_value.
11584 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
11585 Declare method.
11586 <constant_value>: New method.
11587
2b2558bf
TT
115882020-03-26 Tom Tromey <tom@tromey.com>
11589
11590 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
11591 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
11592 (dwarf_type_encoding_name): Move to stringify.c.
11593 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
11594 * dwarf2/stringify.c: New file.
11595 * dwarf2/stringify.h: New file.
11596
eeb64781
TT
115972020-03-26 Tom Tromey <tom@tromey.com>
11598
11599 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
11600 Rewrite.
11601
a39fdb41
TT
116022020-03-26 Tom Tromey <tom@tromey.com>
11603
11604 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
11605 methods.
11606 * dwarf2/read.c (lookup_addr_base): Move to die.h.
11607 (lookup_ranges_base): Likewise.
11608 (read_cutu_die_from_dwo, read_full_die_1): Update.
11609
436c571c
TT
116102020-03-26 Tom Tromey <tom@tromey.com>
11611
11612 * dwarf2/read.c (read_import_statement, read_file_scope)
11613 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
11614 (read_lexical_block_scope, read_call_site_scope)
11615 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
11616 (handle_struct_member_die, process_structure_scope)
11617 (update_enumeration_type_from_children)
11618 (process_enumeration_scope, read_array_type, read_common_block)
11619 (read_namespace, read_module, read_subroutine_type): Update.
11620 (sibling_die): Remove.
11621
052c8bb8
TT
116222020-03-26 Tom Tromey <tom@tromey.com>
11623
11624 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
11625 (build_type_psymtabs_reader, read_structure_type)
11626 (read_enumeration_type, read_full_die_1): Update.
11627 (dwarf2_attr_no_follow): Move to die.h.
11628 * dwarf2/die.h (struct die_info) <attr>: New method.
11629
2b24b6e4
TT
116302020-03-26 Tom Tromey <tom@tromey.com>
11631
11632 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
11633 <base_address>: Now an optional.
11634 (dwarf2_find_base_address, dwarf2_rnglists_process)
11635 (dwarf2_ranges_process, fill_in_loclist_baton)
11636 (dwarf2_symbol_mark_computed): Update.
11637
c2d50fd0
TT
116382020-03-26 Tom Tromey <tom@tromey.com>
11639
11640 * dwarf2/read.c (struct die_info): Move to die.h.
11641 * dwarf2/die.h: New file.
11642
0df7ad3a
TT
116432020-03-26 Tom Tromey <tom@tromey.com>
11644
11645 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
11646 * dwarf2/read.c
11647 (dwarf2_statement_list_fits_in_line_number_section_complaint):
11648 Move to line-header.c.
11649 (read_checked_initial_length_and_offset, read_formatted_entries):
11650 Likewise.
11651 (dwarf_decode_line_header): Split into two.
11652 * dwarf2/line-header.c
11653 (dwarf2_statement_list_fits_in_line_number_section_complaint):
11654 Move from read.c.
11655 (read_checked_initial_length_and_offset, read_formatted_entries):
11656 Likewise.
11657 (dwarf_decode_line_header): New function, split from read.c.
11658
86c0bb4c
TT
116592020-03-26 Tom Tromey <tom@tromey.com>
11660
11661 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
11662 Declare method.
11663 * dwarf2/read.c (read_attribute_value): Update.
11664 (dwarf2_per_objfile::read_line_string): Rename from
11665 read_indirect_line_string.
11666 (read_formatted_entries): Update.
11667
2ef46c2f
TT
116682020-03-26 Tom Tromey <tom@tromey.com>
11669
11670 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
11671 variable.
11672
4f9c1eda
TT
116732020-03-26 Tom Tromey <tom@tromey.com>
11674
11675 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
11676 const.
11677 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
11678 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
11679 parameter const.
11680
5a0e026f
TT
116812020-03-26 Tom Tromey <tom@tromey.com>
11682
11683 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
11684 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
11685 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
11686 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
11687
8844c11b
TT
116882020-03-26 Tom Tromey <tom@tromey.com>
11689
11690 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
11691 file_names_size, file_full_name, file_file_name>: Use const.
11692 <file_name_at, file_names>: Add const overload.
11693 * dwarf2/line-header.c (line_header::file_file_name)
11694 (line_header::file_full_name): Update.
11695
c90ec28a
TT
116962020-03-26 Tom Tromey <tom@tromey.com>
11697
11698 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
11699 (macro_start_file, consume_improper_spaces)
11700 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
11701 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
11702 (dwarf_decode_macros): Move to macro.c.
11703 * dwarf2/macro.c: New file.
11704 * dwarf2/macro.h: New file.
11705 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
11706
4f44ae6c
TT
117072020-03-26 Tom Tromey <tom@tromey.com>
11708
11709 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
11710 method.
11711 * dwarf2/section.c: New method. From
11712 read_indirect_string_at_offset_from.
11713 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
11714 (read_indirect_string_at_offset_from): Move to section.c.
11715 (read_indirect_string_at_offset): Rewrite.
11716 (read_indirect_line_string_at_offset): Remove.
11717 (read_indirect_string, read_indirect_line_string)
11718 (dwarf_decode_macro_bytes): Update.
11719
a0194fa8
TT
117202020-03-26 Tom Tromey <tom@tromey.com>
11721
11722 * dwarf2/section.h (struct dwarf2_section_info)
11723 <overload_complaint>: Declare.
11724 (dwarf2_section_buffer_overflow_complaint): Don't declare.
11725 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
11726 Rename from dwarf2_section_buffer_overflow_complaint.
11727 * dwarf2/read.c (skip_one_die, partial_die_info::read)
11728 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
11729
3d27bbdb
TT
117302020-03-26 Tom Tromey <tom@tromey.com>
11731
11732 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
11733 Declare.
11734 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
11735 Move from read.c.
11736 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
11737 to section.c.
11738
9eac9650
TT
117392020-03-26 Tom Tromey <tom@tromey.com>
11740
11741 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
11742
bf80d710
TT
117432020-03-26 Tom Tromey <tom@tromey.com>
11744
11745 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
11746 "builder".
11747 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
11748 parameter.
11749 (dwarf_decode_macros): Update.
11750
0314b390
TT
117512020-03-26 Tom Tromey <tom@tromey.com>
11752
11753 * dwarf2/read.c (read_attribute_value): Update.
11754 (read_indirect_string_from_dwz): Move to dwz.c; change into
11755 method.
11756 (dwarf_decode_macro_bytes): Update.
11757 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
11758 * dwarf2/dwz.c: New file.
11759 * Makefile.in (COMMON_SFILES): Add dwz.c.
11760
9fda78b6
TT
117612020-03-26 Tom Tromey <tom@tromey.com>
11762
11763 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
11764 * dwarf2/read.c: Add include.
11765 * dwarf2/index-write.c: Add include.
11766 * dwarf2/index-cache.c: Add include.
11767 * dwarf2/dwz.h: New file.
11768
33aa3c10
TT
117692020-03-25 Tom Tromey <tom@tromey.com>
11770
11771 * compile/compile-object-load.c (get_out_value_type): Mention
11772 correct symbol name in error message.
11773
d503b685
HD
117742020-03-25 Hannes Domani <ssbssa@yahoo.de>
11775
11776 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
11777
7b1eff95
TV
117782020-03-25 Tom de Vries <tdevries@suse.de>
11779
11780 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
11781 * symmisc.c (dump_symtab_1): Print user and includes fields.
11782 (maintenance_info_symtabs): Same.
11783
dd895392
AB
117842020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
11785
11786 PR gdb/25534
11787 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
11788 (riscv_regcache_cooked_write): New function.
11789 (riscv_push_dummy_call): Use new function.
11790 (riscv_return_value): Likewise.
11791
5ab2fbf1
SM
117922020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
11793
11794 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
11795 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
11796 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
11797 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
11798 * infrun.c (follow_fork): Likewise.
11799 (follow_fork_inferior): Likewise.
11800 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
11801 * linux-nat.h (class linux_nat_target): Likewise.
11802 * remote.c (class remote_target) <follow_fork>: Likewise.
11803 (remote_target::follow_fork): Likewise.
11804 * target-delegates.c: Re-generate.
11805 * target.c (default_follow_fork): Likewise.
11806 (target_follow_fork): Likewise.
11807 * target.h (struct target_ops) <follow_fork>: Likewise.
11808 (target_follow_fork): Likewise.
11809
a64fafb5
TV
118102020-03-24 Tom de Vries <tdevries@suse.de>
11811
11812 * psymtab.c (maintenance_info_psymtabs): Print user field.
11813
fe26d3a3
TT
118142020-03-20 Tom Tromey <tromey@adacore.com>
11815
11816 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
11817 const.
11818 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
11819 const.
11820
c884cc46
SM
118212020-03-20 Simon Marchi <simon.marchi@efficios.com>
11822
11823 * ptrace.m4: Don't check for ptrace declaration.
11824 * config.in: Re-generate.
11825 * configure: Re-generate.
11826 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
11827 not defined.
11828
1ff700c2
KR
118292020-03-20 Kamil Rytarowski <n54@gmx.com>
11830
11831 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
11832 `PTRACE_TYPE_RET'.
11833 * i386-bsd-nat.c (gdb_ptrace): Likewise.
11834 * sparc-nat.c (gdb_ptrace): Likewise.
11835 * x86-bsd-nat.c (gdb_ptrace): Likewise.
11836
f7d4f0b1
TT
118372020-03-20 Tom Tromey <tromey@adacore.com>
11838
11839 * c-exp.y (lex_one_token): Fix assert.
11840
f67210ff
TT
118412020-03-20 Tom Tromey <tromey@adacore.com>
11842
11843 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
11844 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
11845 strncpy call.
11846
1773be9e
TT
118472020-03-20 Tom Tromey <tromey@adacore.com>
11848
11849 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
11850
70304be9
TT
118512020-03-20 Tom Tromey <tromey@adacore.com>
11852
11853 * ada-valprint.c (print_variant_part): Remove parameters; switch
11854 to value-based API.
11855 (print_field_values): Likewise.
11856 (ada_val_print_struct_union): Likewise.
11857 (ada_value_print_1): Update.
11858
9faa006d
KR
118592020-03-20 Kamil Rytarowski <n54@gmx.com>
11860
11861 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
11862 nbsd_nat_target instead of inf_ptrace_target.
11863 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11864 nbsd_nat_target.
11865
4a90f062
KR
118662020-03-20 Kamil Rytarowski <n54@gmx.com>
11867
11868 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
11869 it to the ptrace call.
11870 * (store_registers): Likewise.
11871
118722020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
11873
11874 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
11875 it to the ptrace call.
11876 * (store_registers): Likewise.
11877
2d07da27
LM
118782020-03-19 Luis Machado <luis.machado@linaro.org>
11879
11880 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
11881 valid, fetch vg value from ptrace.
11882
f09db380
KR
118832020-03-19 Kamil Rytarowski <n54@gmx.com>
11884 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
11885 * inf-ptrace.c: Likewise.
11886 * (gdb_ptrace): Add.
11887 * (inf_ptrace_target::resume): Update.
11888 * (inf_ptrace_target::xfer_partial): Likewise.
11889 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
11890 * (inf_ptrace_peek_poke): Update.
11891
fcc7376e
KR
118922020-03-19 Kamil Rytarowski <n54@gmx.com>
11893
11894 * x86-bsd-nat.c (gdb_ptrace): New.
11895 * (x86bsd_dr_set): Add new argument `ptid'.
11896 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
11897 x86bsd_dr_set_addr): Update.
11898
cada5fc9
AB
118992020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
11900
11901 * remote.c (remote_target::process_stop_reply): Handle events for
11902 all threads differently.
11903
19a2740f
AB
119042020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
11905
11906 * completer.c (completion_tracker::remove_completion): Define new
11907 function.
11908 * completer.h (completion_tracker::remove_completion): Declare new
11909 function.
11910 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
11911 when adding a C++ function symbol.
11912
724fd9ba
AB
119132020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
11914
11915 * completer.c (completion_tracker::completion_hash_entry): Define
11916 new class.
11917 (advance_to_filename_complete_word_point): Call
11918 recompute_lowest_common_denominator.
11919 (completion_tracker::completion_tracker): Call discard_completions
11920 to setup the hash table.
11921 (completion_tracker::discard_completions): Allow for being called
11922 from the constructor, pass new equal function, and element deleter
11923 when constructing the hash table. Initialise new class member
11924 variables.
11925 (completion_tracker::maybe_add_completion): Remove use of
11926 m_entries_vec, and store more information into m_entries_hash.
11927 (completion_tracker::recompute_lcd_visitor): New function, most
11928 content taken from...
11929 (completion_tracker::recompute_lowest_common_denominator):
11930 ...here, this now just visits each item in the hash calling the
11931 above visitor.
11932 (completion_tracker::build_completion_result): Remove use of
11933 m_entries_vec, call recompute_lowest_common_denominator.
11934 * completer.h (completion_tracker::have_completions): Remove use
11935 of m_entries_vec.
11936 (completion_tracker::completion_hash_entry): Declare new class.
11937 (completion_tracker::recompute_lowest_common_denominator): Change
11938 function signature.
11939 (completion_tracker::recompute_lcd_visitor): Declare new function.
11940 (completion_tracker::m_entries_vec): Delete.
11941 (completion_tracker::m_entries_hash): Initialize to NULL.
11942 (completion_tracker::m_lowest_common_denominator_valid): New
11943 member variable.
11944 (completion_tracker::m_lowest_common_denominator_max_length): New
11945 member variable.
11946
5a82b8a1
KR
119472020-03-17 Kamil Rytarowski <n54@gmx.com>
11948
11949 * regformats/regdef.h: Put reg in gdb namespace.
11950
fb516a69
KR
119512020-03-17 Kamil Rytarowski <n54@gmx.com>
11952
11953 * i386-bsd-nat.c (gdb_ptrace): New.
11954 * (i386bsd_fetch_inferior_registers,
11955 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
11956 * (i386bsd_fetch_inferior_registers,
11957 i386bsd_store_inferior_registers) Use gdb_ptrace.
11958
1c0aa1fb
KR
119592020-03-17 Kamil Rytarowski <n54@gmx.com>
11960
11961 * amd64-bsd-nat.c (gdb_ptrace): New.
11962 * (amd64bsd_fetch_inferior_registers,
11963 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
11964 * (amd64bsd_fetch_inferior_registers,
11965 amd64bsd_store_inferior_registers) Use gdb_ptrace.
11966
5ccd2fb7
KR
119672020-03-17 Kamil Rytarowski <n54@gmx.com>
11968
11969 * user-regs.c (user_reg::read): Rename to...
11970 (user_reg::xread): ...this.
11971 * (append_user_reg): Rename argument `read' to `xread'.
11972 * (user_reg_add_builtin): Likewise.
11973 * (user_reg_add): Likewise.
11974 * (value_of_user_reg): Likewise.
11975
2108a63a
KR
119762020-03-17 Kamil Rytarowski <n54@gmx.com>
11977
11978 * sparc-nat.c (gdb_ptrace): New.
11979 * sparc-nat.c (sparc_fetch_inferior_registers)
11980 (sparc_store_inferior_registers) Remove obsolete comment.
11981 * sparc-nat.c (sparc_fetch_inferior_registers)
11982 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
11983 * sparc-nat.c (sparc_fetch_inferior_registers)
11984 (sparc_store_inferior_registers) Use gdb_ptrace.
11985
a225c9a8
KR
119862020-03-17 Kamil Rytarowski <n54@gmx.com>
11987
11988 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
11989 it to the ptrace call.
11990 * sh-nbsd-nat.c (store_registers): Likewise.
11991
98097623
KR
119922020-03-17 Kamil Rytarowski <n54@gmx.com>
11993
11994 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
11995 nbsd_nat_target instead of inf_ptrace_target.
11996 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11997 nbsd_nat_target.
11998
9e38d619
KR
119992020-03-17 Kamil Rytarowski <n54@gmx.com>
12000
12001 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
12002
a2ecbe9f
KR
120032020-03-17 Kamil Rytarowski <n54@gmx.com>
12004
12005 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
12006 <sys/sysctl.h>.
12007 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
12008
58990295
TV
120092020-03-17 Tom de Vries <tdevries@suse.de>
12010
12011 PR gdb/23710
12012 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
12013 fields.
12014 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
12015 fields.
12016 (process_imported_unit_die): Skip import of c++ CUs.
12017
771dd3a8
TT
120182020-03-16 Tom Tromey <tom@tromey.com>
12019
12020 * p-valprint.c (pascal_object_print_value): Initialize
12021 base_value.
12022
817a7585
AK
120232020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
12024 Shahab Vahedi <shahab@synopsys.com>
12025
12026 * Makefile.in: Add arch/arc.o
12027 * configure.tgt: Likewise.
12028 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
12029 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 12030 (arc_read_description): New function to cache target descriptions.
817a7585
AK
12031 * arc-tdep.h (arc_read_description): Add proto type.
12032 * arch/arc.c: New file.
12033 * arch/arc.h: Likewise.
12034 * features/Makefile: Replace old target descriptions with new.
12035 * features/arc-arcompact.c: Remove.
12036 * features/arc-arcompact.xml: Likewise.
12037 * features/arc-v2.c: Likewise
12038 * features/arc-v2.xml: Likewise
12039 * features/arc/aux-arcompact.xml: New file.
12040 * features/arc/aux-v2.xml: Likewise.
12041 * features/arc/core-arcompact.xml: Likewise.
12042 * features/arc/core-v2.xml: Likewise.
12043 * features/arc/aux-arcompact.c: Generate.
12044 * features/arc/aux-v2.c: Likewise.
12045 * features/arc/core-arcompact.c: Likewise.
12046 * features/arc/core-v2.c: Likewise.
12047 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
12048
67430cd0
TT
120492020-03-16 Tom Tromey <tromey@adacore.com>
12050
12051 PR gdb/25663:
12052 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
12053 putting value into bcache.
12054
30efb6c7
SM
120552020-03-16 Simon Marchi <simon.marchi@efficios.com>
12056
12057 PR gdb/21500
12058 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
12059 to...
12060 (amd64_windows_init_abi_common): ... this. Don't set size of
12061 long type.
12062 (amd64_windows_init_abi): New function.
12063 (amd64_cygwin_init_abi): New function.
12064 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
12065 the Cygwin OS ABI.
12066 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
12067 comment.
12068
8db52437
SM
120692020-03-16 Simon Marchi <simon.marchi@efficios.com>
12070
12071 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
12072 * windows-tdep.c (CYGWIN_DLL_NAME): New.
12073 (pe_import_directory_entry): New struct type.
12074 (is_linked_with_cygwin_dll): New function.
12075 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
12076 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
12077 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
12078
5982a56a
SM
120792020-03-16 Simon Marchi <simon.marchi@efficios.com>
12080
12081 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
12082 i386_cygwin_core_osabi_sniffer.
12083
7a1998df
SM
120842020-03-16 Simon Marchi <simon.marchi@efficios.com>
12085
12086 * i386-cygwin-tdep.c: Rename to...
12087 * i386-windows-tdep.c: ... this.
12088 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
12089 i386-windows-tdep.c.
12090 * configure.tgt: Likewise.
12091
053205cc
SM
120922020-03-16 Simon Marchi <simon.marchi@efficios.com>
12093
12094 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
12095 * osabi.c (gdb_osabi_names): Add "Windows".
12096 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
12097 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
12098 (i386_cygwin_core_osabi_sniffer): New function, extracted from
12099 i386_cygwin_osabi_sniffer.
12100 (_initialize_i386_cygwin_tdep): Register OS ABI
12101 GDB_OSABI_WINDOWS for i386.
12102 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
12103 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
12104 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
12105 for x86-64.
12106 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
12107 when the target matches '*-*-mingw*'.
12108
fe4b2ee6
SM
121092020-03-16 Simon Marchi <simon.marchi@efficios.com>
12110
12111 * defs.h (enum gdb_osabi): Move to...
12112 * osabi.h (enum gdb_osabi): ... here.
12113 * gdbarch.sh: Include osabi.h in gdbarch.h.
12114 * gdbarch.h: Re-generate.
12115
cb9b645d
SM
121162020-03-16 Simon Marchi <simon.marchi@efficios.com>
12117
12118 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
12119 function.
12120 (_initialize_amd64_windows_tdep): Register osabi sniffer.
12121
3293bbaf
TT
121222020-03-14 Tom Tromey <tom@tromey.com>
12123
12124 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
12125 for C++.
12126 (c_type_print_modifier): Likewise. Add "language" parameter.
12127 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
12128 (c_type_print_base_1): Update.
12129 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
12130 constants.
12131 * type-stack.c (type_stack::insert): Handle tp_atomic and
12132 tp_restrict.
12133 (type_stack::follow_type_instance_flags): Likewise.
12134 (type_stack::follow_types): Likewise. Merge type-following code.
12135 * c-exp.y (RESTRICT, ATOMIC): New tokens.
12136 (space_identifier, cv_with_space_id)
12137 (const_or_volatile_or_space_identifier_noopt)
12138 (const_or_volatile_or_space_identifier): Remove.
12139 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
12140 rules.
12141 (ptr_operator, typebase): Update.
12142 (enum token_flag) <FLAG_C>: New constant.
12143 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
12144 "_Atomic".
12145 (lex_one_token): Handle FLAG_C.
12146
154151a6
KR
121472020-03-14 Kamil Rytarowski <n54@gmx.com>
12148
12149 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
12150 it to the ptrace call.
12151 * m68k-bsd-nat.c (store_registers): Likewise.
12152
bc107784
KR
121532020-03-14 Kamil Rytarowski <n54@gmx.com>
12154
12155 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
12156 gdb_byte *.
12157 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
12158 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
12159 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
12160
01a80117
KR
121612020-03-14 Kamil Rytarowski <n54@gmx.com>
12162
12163 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
12164 nbsd_nat_target instead of inf_ptrace_target.
12165 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12166 nbsd_nat_target.
12167
f90280ca
KR
121682020-03-14 Kamil Rytarowski <n54@gmx.com>
12169
12170 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
12171 register_t.
12172
6def66f1
KR
121732020-03-14 Kamil Rytarowski <n54@gmx.com>
12174
12175 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
12176 it to the ptrace call.
12177 * alpha-bsd-nat.c (store_registers): Likewise.
12178
66eaca97
KR
121792020-03-14 Kamil Rytarowski <n54@gmx.com>
12180
12181 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
12182 includes.
12183 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
12184 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
12185 fill_fpregset): Likewise.
12186
4fed520b
KR
121872020-03-14 Kamil Rytarowski <n54@gmx.com>
12188
12189 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
12190 nbsd_nat_target instead of inf_ptrace_target.
12191 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12192 nbsd_nat_target.
12193
2190cf06
KR
121942020-03-14 Kamil Rytarowski <n54@gmx.com>
12195
12196 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
12197 register_t.
12198
75c56d3d
KR
121992020-03-14 Kamil Rytarowski <n54@gmx.com>
12200
12201 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
12202 it to the ptrace call.
12203 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
12204 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
12205 * arm-nbsd-nat.c (store_register): Likewise.
12206 * arm-nbsd-nat.c (store_regs): Likewise.
12207 * arm-nbsd-nat.c (store_fp_register): Likewise.
12208 * arm-nbsd-nat.c (store_fp_regs): Likewise.
12209
6018d381
KR
122102020-03-14 Kamil Rytarowski <n54@gmx.com>
12211
12212 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
12213 nbsd_nat_target instead of inf_ptrace_target.
12214 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12215 nbsd_nat_target.
12216
013f99f0
KR
122172020-03-14 Kamil Rytarowski <n54@gmx.com>
12218
12219 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
12220 it to the ptrace call.
12221 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
12222
12753073
KR
122232020-03-14 Kamil Rytarowski <n54@gmx.com>
12224
6227b330
KR
12225 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
12226 it to the ptrace call.
12227 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
12228
122292020-03-14 Kamil Rytarowski <n54@gmx.com>
12230
12231 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
12232 gdb_byte *.
12753073
KR
12233 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
12234
d5be5fa4
KR
122352020-03-14 Kamil Rytarowski <n54@gmx.com>
12236
12237 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
12238 instead of inf_ptrace_target.
12239 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12240 nbsd_nat_target.
12241
8110f842
KR
122422020-03-14 Kamil Rytarowski <n54@gmx.com>
12243
12244 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12245 register_t.
12246
52feded7
KR
122472020-03-14 Kamil Rytarowski <n54@gmx.com>
12248
12249 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12250 register_t.
12251
25567eee
KR
122522020-03-14 Kamil Rytarowski <n54@gmx.com>
12253
12254 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
12255 register_t.
12256
426a9c18
TT
122572020-03-13 Tom Tromey <tom@tromey.com>
12258
12259 * value.h (val_print): Don't declare.
12260 * valprint.h (val_print_array_elements)
12261 (val_print_scalar_formatted, generic_val_print): Don't declare.
12262 * valprint.c (generic_val_print_array): Take a struct value.
12263 (generic_val_print_ptr, generic_val_print_memberptr)
12264 (generic_val_print_bool, generic_val_print_int)
12265 (generic_val_print_char, generic_val_print_complex)
12266 (generic_val_print): Remove.
12267 (generic_value_print): Update.
12268 (do_val_print): Remove unused parameters. Don't call
12269 la_val_print.
12270 (val_print): Remove.
12271 (common_val_print): Update. Don't call value_check_printable.
12272 (val_print_scalar_formatted, val_print_array_elements): Remove.
12273 * rust-lang.c (rust_val_print): Remove.
12274 (rust_language_defn): Update.
12275 * p-valprint.c (pascal_val_print): Remove.
12276 (pascal_value_print_inner): Update.
12277 (pascal_object_print_val_fields, pascal_object_print_val):
12278 Remove.
12279 (pascal_object_print_static_field): Update.
12280 * p-lang.h (pascal_val_print): Don't declare.
12281 * p-lang.c (pascal_language_defn): Update.
12282 * opencl-lang.c (opencl_language_defn): Update.
12283 * objc-lang.c (objc_language_defn): Update.
12284 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
12285 * m2-lang.h (m2_val_print): Don't declare.
12286 * m2-lang.c (m2_language_defn): Update.
12287 * language.h (struct language_defn) <la_val_print>: Remove.
12288 * language.c (unk_lang_value_print_inner): Rename. Change
12289 argument types.
12290 (unknown_language_defn, auto_language_defn): Update.
12291 * go-valprint.c (go_val_print): Remove.
12292 * go-lang.h (go_val_print): Don't declare.
12293 * go-lang.c (go_language_defn): Update.
12294 * f-valprint.c (f_val_print): Remove.
12295 * f-lang.h (f_value_print): Don't declare.
12296 * f-lang.c (f_language_defn): Update.
12297 * d-valprint.c (d_val_print): Remove.
12298 * d-lang.h (d_value_print): Don't declare.
12299 * d-lang.c (d_language_defn): Update.
12300 * cp-valprint.c (cp_print_value_fields)
12301 (cp_print_value_fields_rtti, cp_print_value): Remove.
12302 (cp_print_static_field): Update.
12303 * c-valprint.c (c_val_print_array, c_val_print_ptr)
12304 (c_val_print_struct, c_val_print_union, c_val_print_int)
12305 (c_val_print_memberptr, c_val_print): Remove.
12306 * c-lang.h (c_val_print_array, cp_print_value_fields)
12307 (cp_print_value_fields_rtti): Don't declare.
12308 * c-lang.c (c_language_defn, cplus_language_defn)
12309 (asm_language_defn, minimal_language_defn): Update.
12310 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
12311 (ada_val_print_enum): Take a struct value.
12312 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
12313 (ada_val_print): Remove.
12314 (ada_value_print_1): Update.
12315 (printable_val_type): Remove.
12316 * ada-lang.h (ada_val_print): Don't declare.
12317 * ada-lang.c (ada_language_defn): Update.
12318
42331a1e
TT
123192020-03-13 Tom Tromey <tom@tromey.com>
12320
12321 * valprint.c (do_val_print): Update.
12322 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
12323 a struct value.
12324 (value_to_value_object_no_release): Declare.
12325 * python/py-value.c (value_to_value_object_no_release): New
12326 function.
12327 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
12328 struct value.
12329 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
12330 function.
12331 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
12332 a struct value.
12333 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
12334 Declare.
12335 (gdbscm_apply_val_pretty_printer): Take a struct value.
12336 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
12337 value.
12338 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
12339 value.
12340 * extension-priv.h (struct extension_language_ops)
12341 <apply_val_pretty_printer>: Take a struct value.
12342 * cp-valprint.c (cp_print_value): Create a struct value.
12343 (cp_print_value): Update.
12344
3a916a97
TT
123452020-03-13 Tom Tromey <tom@tromey.com>
12346
12347 * ada-valprint.c (print_field_values): Call common_val_print.
12348
b59eac37
TT
123492020-03-13 Tom Tromey <tom@tromey.com>
12350
12351 * ada-valprint.c (val_print_packed_array_elements): Remove
12352 bitoffset and val parameters. Call common_val_print.
12353 (ada_val_print_string): Remove offset, address, and original_value
12354 parameters.
12355 (ada_val_print_array): Update.
12356 (ada_value_print_array): New function.
12357 (ada_value_print_1): Call it.
12358
03371129
TT
123592020-03-13 Tom Tromey <tom@tromey.com>
12360
12361 * ada-valprint.c (ada_value_print): Use common_val_print.
12362
2e088f8b
TT
123632020-03-13 Tom Tromey <tom@tromey.com>
12364
12365 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
12366
39ef85a8
TT
123672020-03-13 Tom Tromey <tom@tromey.com>
12368
12369 * ada-valprint.c (ada_value_print_num): New function.
12370 (ada_value_print_1): Use it.
12371
b9fa6e07
TT
123722020-03-13 Tom Tromey <tom@tromey.com>
12373
12374 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
12375
416595d6
TT
123762020-03-13 Tom Tromey <tom@tromey.com>
12377
12378 * ada-valprint.c (ada_value_print_ptr): New function.
12379 (ada_value_print_1): Use it.
12380
5b5e15ec
TT
123812020-03-13 Tom Tromey <tom@tromey.com>
12382
12383 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
12384 call common_val_print.
12385 (ada_val_print_1): Update.
12386 (ada_value_print_1): New function.
12387 (ada_value_print_inner): Rewrite.
12388
fbf54e75
TT
123892020-03-13 Tom Tromey <tom@tromey.com>
12390
12391 * cp-valprint.c (cp_print_value_fields): Update.
12392 (cp_print_value): New function.
12393
64b653ca
TT
123942020-03-13 Tom Tromey <tom@tromey.com>
12395
12396 * m2-valprint.c (m2_value_print_inner): Use
12397 cp_print_value_fields.
12398 * cp-valprint.c (cp_print_value_fields): New function.
12399 * c-valprint.c (c_value_print_struct): New function.
12400 (c_value_print_inner): Use c_value_print_struct.
12401 * c-lang.h (cp_print_value_fields): Declare.
12402
6999f067
TT
124032020-03-13 Tom Tromey <tom@tromey.com>
12404
12405 * c-valprint.c (c_value_print_array): New function.
12406 (c_value_print_inner): Use it.
12407
ce80b8bd
TT
124082020-03-13 Tom Tromey <tom@tromey.com>
12409
12410 * c-valprint.c (c_value_print_memberptr): New function.
12411 (c_value_print_inner): Use it.
12412
2faac269
TT
124132020-03-13 Tom Tromey <tom@tromey.com>
12414
12415 * c-valprint.c (c_value_print_int): New function.
12416 (c_value_print_inner): Use it.
12417
da3e2c29
TT
124182020-03-13 Tom Tromey <tom@tromey.com>
12419
12420 * c-valprint.c (c_value_print_ptr): New function.
12421 (c_value_print_inner): Use it.
12422
50836231
TT
124232020-03-13 Tom Tromey <tom@tromey.com>
12424
12425 * c-valprint.c (c_value_print_inner): Rewrite.
12426
4f412b6e
TT
124272020-03-13 Tom Tromey <tom@tromey.com>
12428
12429 * valprint.c (generic_value_print_complex): New function.
12430 (generic_value_print): Use it.
12431
f5354008
TT
124322020-03-13 Tom Tromey <tom@tromey.com>
12433
12434 * valprint.c (generic_val_print_float): Don't call
12435 val_print_scalar_formatted.
12436 (generic_val_print, generic_value_print): Update.
12437
3eec3b05
TT
124382020-03-13 Tom Tromey <tom@tromey.com>
12439
12440 * valprint.c (generic_value_print_char): New function
12441 (generic_value_print): Use it.
12442
fdddfccb
TT
124432020-03-13 Tom Tromey <tom@tromey.com>
12444
12445 * valprint.c (generic_value_print_int): New function.
12446 (generic_value_print): Use it.
12447
6dde7521
TT
124482020-03-13 Tom Tromey <tom@tromey.com>
12449
12450 * valprint.c (generic_value_print_bool): New function.
12451 (generic_value_print): Use it.
12452
4112d2e6
TT
124532020-03-13 Tom Tromey <tom@tromey.com>
12454
12455 * valprint.c (generic_val_print_func): Simplify.
12456 (generic_val_print, generic_value_print): Update.
12457
65786af6
TT
124582020-03-13 Tom Tromey <tom@tromey.com>
12459
12460 * valprint.c (generic_val_print_flags): Remove.
12461 (generic_val_print, generic_value_print): Update.
12462 (val_print_type_code_flags): Add original_value parameter.
12463
40f3ce18
TT
124642020-03-13 Tom Tromey <tom@tromey.com>
12465
12466 * valprint.c (generic_val_print): Update.
12467 (generic_value_print): Update.
12468 * valprint.c (generic_val_print_enum): Don't call
12469 val_print_scalar_formatted.
12470
2a5b130b
TT
124712020-03-13 Tom Tromey <tom@tromey.com>
12472
12473 * valprint.c (generic_value_print): Call generic_value_print_ptr.
12474 * valprint.c (generic_value_print_ptr): New function.
12475
abc66ce9
TT
124762020-03-13 Tom Tromey <tom@tromey.com>
12477
12478 * valprint.c (generic_value_print): Rewrite.
12479
07a32858
TT
124802020-03-13 Tom Tromey <tom@tromey.com>
12481
12482 * p-valprint.c (pascal_object_print_value_fields)
12483 (pascal_object_print_value): New functions.
12484
64d64d3a
TT
124852020-03-13 Tom Tromey <tom@tromey.com>
12486
12487 * p-valprint.c (pascal_value_print_inner): Rewrite.
12488
6a95a1f5
TT
124892020-03-13 Tom Tromey <tom@tromey.com>
12490
12491 * f-valprint.c (f_value_print_innner): Rewrite.
12492
59fcdac6
TT
124932020-03-13 Tom Tromey <tom@tromey.com>
12494
12495 * m2-valprint.c (m2_print_unbounded_array): New overload.
12496 (m2_print_unbounded_array): Update.
12497 (m2_print_array_contents): Take a struct value.
12498 (m2_value_print_inner): Rewrite.
12499
d133c3e1
TT
125002020-03-13 Tom Tromey <tom@tromey.com>
12501
12502 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
12503 (d_value_print_inner): New function.
12504 * d-lang.h (d_value_print_inner): Declare.
12505 * d-lang.c (d_language_defn): Use d_value_print_inner.
12506
23b0f06b
TT
125072020-03-13 Tom Tromey <tom@tromey.com>
12508
12509 * go-valprint.c (go_value_print_inner): New function.
12510 * go-lang.h (go_value_print_inner): Declare.
12511 * go-lang.c (go_language_defn): Use go_value_print_inner.
12512
5f56f7cb
TT
125132020-03-13 Tom Tromey <tom@tromey.com>
12514
12515 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
12516 API.
12517 (rust_val_print): Rewrite.
12518 (rust_value_print_inner): New function, from rust_val_print.
12519 (rust_language_defn): Use rust_value_print_inner.
12520
26792ee0
TT
125212020-03-13 Tom Tromey <tom@tromey.com>
12522
12523 * ada-valprint.c (ada_value_print_inner): New function.
12524 * ada-lang.h (ada_value_print_inner): Declare.
12525 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
12526
24051bbe
TT
125272020-03-13 Tom Tromey <tom@tromey.com>
12528
12529 * f-valprint.c (f_value_print_innner): New function.
12530 * f-lang.h (f_value_print_innner): Declare.
12531 * f-lang.c (f_language_defn): Use f_value_print_innner.
12532
c0941be6
TT
125332020-03-13 Tom Tromey <tom@tromey.com>
12534
12535 * p-valprint.c (pascal_value_print_inner): New function.
12536 * p-lang.h (pascal_value_print_inner): Declare.
12537 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
12538
62c4663d
TT
125392020-03-13 Tom Tromey <tom@tromey.com>
12540
12541 * m2-valprint.c (m2_value_print_inner): New function.
12542 * m2-lang.h (m2_value_print_inner): Declare.
12543 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
12544
62182190
TT
125452020-03-13 Tom Tromey <tom@tromey.com>
12546
12547 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
12548 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
12549 * c-valprint.c (c_value_print_inner): New function.
12550 * c-lang.h (c_value_print_inner): Declare.
12551 * c-lang.c (c_language_defn, cplus_language_defn)
12552 (asm_language_defn, minimal_language_defn): Use
12553 c_value_print_inner.
12554
1e592a8a
TT
125552020-03-13 Tom Tromey <tom@tromey.com>
12556
12557 * p-valprint.c (pascal_object_print_value_fields): Now static.
12558 * p-lang.h (pascal_object_print_value_fields): Don't declare.
12559
7fe471e9
TT
125602020-03-13 Tom Tromey <tom@tromey.com>
12561
12562 * c-valprint.c (c_val_print_array): Simplify.
12563
d121c6ce
TT
125642020-03-13 Tom Tromey <tom@tromey.com>
12565
12566 * valprint.c (value_print_array_elements): New function.
12567 * valprint.h (value_print_array_elements): Declare.
12568
4dba70ee
TT
125692020-03-13 Tom Tromey <tom@tromey.com>
12570
12571 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
12572 * mips-tdep.c (mips_print_register): Use
12573 value_print_scalar_formatted.
12574
4f9ae810
TT
125752020-03-13 Tom Tromey <tom@tromey.com>
12576
12577 * valprint.h (value_print_scalar_formatted): Declare.
12578 * valprint.c (value_print_scalar_formatted): New function.
12579
156bfec9
TT
125802020-03-13 Tom Tromey <tom@tromey.com>
12581
12582 * valprint.h (generic_value_print): Declare.
12583 * valprint.c (generic_value_print): New function.
12584
2b4e573d
TT
125852020-03-13 Tom Tromey <tom@tromey.com>
12586
12587 * valprint.c (do_val_print): Call la_value_print_inner, if
12588 available.
12589 * rust-lang.c (rust_language_defn): Update.
12590 * p-lang.c (pascal_language_defn): Update.
12591 * opencl-lang.c (opencl_language_defn): Update.
12592 * objc-lang.c (objc_language_defn): Update.
12593 * m2-lang.c (m2_language_defn): Update.
12594 * language.h (struct language_defn) <la_value_print_inner>: New
12595 member.
12596 * language.c (unknown_language_defn, auto_language_defn): Update.
12597 * go-lang.c (go_language_defn): Update.
12598 * f-lang.c (f_language_defn): Update.
12599 * d-lang.c (d_language_defn): Update.
12600 * c-lang.c (c_language_defn, cplus_language_defn)
12601 (asm_language_defn, minimal_language_defn): Update.
12602 * ada-lang.c (ada_language_defn): Update.
12603
a1f6a07c
TT
126042020-03-13 Tom Tromey <tom@tromey.com>
12605
12606 * c-valprint.c (c_value_print): Use common_val_print.
12607
410cf315
TT
126082020-03-13 Tom Tromey <tom@tromey.com>
12609
12610 * cp-valprint.c (cp_print_static_field): Use common_val_print.
12611
72a45c93
TT
126122020-03-13 Tom Tromey <tom@tromey.com>
12613
12614 * f-valprint.c (f77_print_array_1, f_val_print): Use
12615 common_val_print.
12616
040f66bd
TT
126172020-03-13 Tom Tromey <tom@tromey.com>
12618
12619 * riscv-tdep.c (riscv_print_one_register_info): Use
12620 common_val_print.
12621
a6e05a6c
TT
126222020-03-13 Tom Tromey <tom@tromey.com>
12623
12624 * mi/mi-main.c (output_register): Use common_val_print.
12625
3444c526
TT
126262020-03-13 Tom Tromey <tom@tromey.com>
12627
12628 * infcmd.c (default_print_one_register_info): Use
12629 common_val_print.
12630
c2a44efe
TT
126312020-03-13 Tom Tromey <tom@tromey.com>
12632
12633 * valprint.h (common_val_print_checked): Declare.
12634 * valprint.c (common_val_print_checked): New function.
12635 * stack.c (print_frame_arg): Use common_val_print_checked.
12636
b0c26e99
TT
126372020-03-13 Tom Tromey <tom@tromey.com>
12638
12639 * valprint.c (do_val_print): New function, from val_print.
12640 (val_print): Use do_val_print.
12641 (common_val_print): Use do_val_print.
12642
ce3acbe9
TT
126432020-03-13 Tom Tromey <tom@tromey.com>
12644
12645 * valprint.c (value_print): Use scoped_value_mark.
12646
96c7f873
TV
126472020-03-13 Tom de Vries <tdevries@suse.de>
12648
12649 PR symtab/25646
12650 * psymtab.c (partial_symtab::partial_symtab): Don't set
12651 globals_offset and statics_offset. Push element onto
12652 current_global_psymbols and current_static_psymbols stacks.
12653 (concat): New function.
12654 (end_psymtab_common): Set globals_offset and statics_offset. Pop
12655 element from current_global_psymbols and current_static_psymbols
12656 stacks. Concat popped elements to global_psymbols and
12657 static_symbols.
12658 (add_psymbol_to_list): Use current_global_psymbols and
12659 current_static_psymbols stacks.
12660 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
12661 current_static_psymbols fields.
12662
6ba0a321
CB
126632020-03-12 Christian Biesinger <cbiesinger@google.com>
12664
12665 * corelow.c (sniff_core_bfd): Remove.
12666 (class core_target) <m_core_vec>: Remove.
12667 (core_target::core_target): Update.
12668 (core_file_fns): Remove.
12669 (deprecated_add_core_fns): Remove.
12670 (default_core_sniffer): Remove.
12671 (sniff_core_bfd): Remove.
12672 (default_check_format): Remove.
12673 (gdb_check_format): Remove.
12674 (core_target_open): Update.
12675 (core_target::get_core_register_section): Update.
12676 (get_core_registers_cb): Update.
12677 (core_target::fetch_registers): Update.
12678 * gdbcore.h (struct core_fns): Remove.
12679 (deprecated_add_core_fns): Remove.
12680 (default_core_sniffer): Remove.
12681 (default_check_format): Remove.
12682
227031b2
TT
126832020-03-12 Tom Tromey <tom@tromey.com>
12684
12685 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
12686 CORE_ADDR.
12687 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
12688
53807e9f
TT
126892020-03-12 Tom Tromey <tom@tromey.com>
12690
12691 * remote.c (remote_target::download_tracepoint)
12692 (remote_target::enable_tracepoint)
12693 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
12694 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
12695 sprintf_vma.
12696
64f25102
TT
126972020-03-12 Tom Tromey <tom@tromey.com>
12698
12699 * symfile-mem.c: Update CORE_ADDR size assert.
12700
272cd5a3
SM
127012020-03-12 Simon Marchi <simon.marchi@efficios.com>
12702
12703 * selftest.m4: Move to gdbsupport/.
12704 * acinclude.m4: Update path to selftest.m4.
12705
74cd3f9d
SM
127062020-03-12 Simon Marchi <simon.marchi@efficios.com>
12707
12708 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
12709 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
12710 gdbarch-selfselftests.c and selftest-arch.c.
12711 (SUBDIR_UNITTESTS_OBS): Rename to...
12712 (SELFTESTS_OBS): ... this.
12713 (COMMON_SFILES): Remove disasm-selftests.c and
12714 gdbarch-selftests.c.
12715 * configure.ac: Don't add selftest-arch.{c,o} to
12716 CONFIG_{SRCS,OBS}.
12717 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
12718 preprocessor conditions.
12719
db6878ac
SM
127202020-03-12 Simon Marchi <simon.marchi@efficios.com>
12721
12722 * configure.ac: Don't source bfd/development.sh.
12723 * selftest.m4: Modify comment.
12724 * configure: Re-generate.
12725
4d696a5c
SM
127262020-03-12 Simon Marchi <simon.marchi@efficios.com>
12727
12728 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
12729 not "true" or "false".
12730 * configure: Re-generate.
12731
8dd8e1c7
CB
127322020-03-12 Christian Biesinger <cbiesinger@google.com>
12733
12734 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
12735 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
12736 renamed to arm_nbsd_supply_gregset.
12737 (fetch_register): Update to call arm_nbsd_supply_gregset.
12738 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
12739 (arm_netbsd_nat_target::fetch_registers): Update.
12740 (fetch_elfcore_registers): Removed.
12741 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
12742 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
12743 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
12744 not require NetBSD system headers.
12745 (arm_nbsd_regset): New struct.
12746 (arm_nbsd_iterate_over_regset_sections): New function.
12747 (arm_netbsd_init_abi_common): Updated to call
12748 set_gdbarch_iterate_over_regset_sections.
12749 * arm-nbsd-tdep.h: New file.
12750
dd69bf7a
KB
127512020-03-11 Kevin Buettner <kevinb@redhat.com>
12752
12753 * symtab.c (find_pc_sect_line): Add check which prevents infinite
12754 recursion.
12755
a0761e34
SM
127562020-03-11 Simon Marchi <simon.marchi@efficios.com>
12757
12758 * configure: Re-generate.
12759
e7a82140
TT
127602020-03-11 Tom Tromey <tromey@adacore.com>
12761
12762 * ada-typeprint.c (print_choices): Fix comment.
12763
dcc050c8
AB
127642020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
12765
12766 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
12767 previous item in the list, when the list has no items.
12768
1c33af77
TV
127692020-03-11 Tom de Vries <tdevries@suse.de>
12770
12771 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
12772 PROP_LOCLIST handling code.
12773
8c95582d
AB
127742020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
12775
12776 * buildsym-legacy.c (record_line): Pass extra parameter to
12777 record_line.
12778 * buildsym.c (buildsym_compunit::record_line): Take an extra
12779 parameter, reduce duplication in the line table, and record the
12780 is_stmt flag in the line table.
12781 * buildsym.h (buildsym_compunit::record_line): Add extra
12782 parameter.
12783 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
12784 non-statement lines.
12785 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
12786 this to the symtab builder.
12787 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
12788 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
12789 through to dwarf_record_line_1.
12790 * infrun.c (process_event_stop_test): When stepping, don't stop at
12791 a non-statement instruction, and only refresh the step info when
12792 we land in the middle of a line's range. Also add an extra
12793 comment.
12794 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
12795 field.
12796 * record-btrace.c (btrace_find_line_range): Only record lines
12797 marked as is-statement.
12798 * stack.c (frame_show_address): Show the frame address if we are
12799 in a non-statement sal.
12800 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
12801 (maintenance_print_one_line_table): Print a header for the is_stmt
12802 column, and include is_stmt information in the output.
12803 * symtab.c (find_pc_sect_line): Find lines marked as statements in
12804 preference to non-statements.
12805 (find_pcs_for_symtab_line): Prefer is-statement entries.
12806 (find_line_common): Likewise.
12807 * symtab.h (struct linetable_entry): Add is_stmt field.
12808 (struct symtab_and_line): Likewise.
12809 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
12810 arranging the line table.
12811
e4003a34
TV
128122020-03-07 Tom de Vries <tdevries@suse.de>
12813
12814 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
12815 DIE.
12816
e8932576
TT
128172020-03-07 Tom Tromey <tom@tromey.com>
12818
12819 * valops.c (value_literal_complex): Remove obsolete comment.
12820 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
12821 comment.
12822
29734269
SM
128232020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
12824
12825 * infrun.h: Forward-declare thread_info.
12826 (set_step_info): Add thread_info parameter, add doc.
12827 * infrun.c (set_step_info): Add thread_info parameter, move doc
12828 to header.
12829 * infrun.c (process_event_stop_test): Pass thread to
12830 set_step_info call.
12831 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
12832 set_step_info.
12833 (prepare_one_step): Add thread_info parameter, pass it to
12834 set_step_frame and prepare_one_step (recursive) call.
12835 (step_1): Pass thread to prepare_one_step call.
12836 (step_command_fsm::should_stop): Pass thread to
12837 prepare_one_step.
12838 (until_next_fsm): Pass thread to set_step_frame call.
12839 (finish_command): Pass thread to set_step_info call.
12840
b7d64b29
HD
128412020-03-06 Hannes Domani <ssbssa@yahoo.de>
12842
12843 * windows-tdep.c (windows_solib_create_inferior_hook):
12844 Check if inferior is running.
12845
09f2921c
TV
128462020-03-06 Tom de Vries <tdevries@suse.de>
12847
12848 * NEWS: Fix "the the".
12849 * ctfread.c: Same.
12850
fd760e79
TV
128512020-03-06 Tom de Vries <tdevries@suse.de>
12852
12853 * psymtab.c (psymtab_to_symtab): Don't print "done.".
12854
20ea4a60
AB
128552020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12856
12857 * .dir-locals.el: Add a comment referencing the other copies of
12858 this file.
12859
0afbabf0
JB
128602020-03-05 John Baldwin <jhb@FreeBSD.org>
12861
12862 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
12863 psargs.
12864
842806cb
TBA
128652020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12866
12867 * .gitattributes: New file.
12868
be1e3d3e
TT
128692020-03-04 Tom Tromey <tom@tromey.com>
12870
12871 * symmisc.c (print_symbol_bcache_statistics)
12872 (print_objfile_statistics): Update.
12873 * symfile.c (allocate_symtab): Use intern.
12874 * psymtab.c (partial_symtab::partial_symtab): Use intern.
12875 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
12876 macro_cache>: Remove.
12877 <string_cache>: New member.
12878 (struct objfile) <intern>: New methods.
12879 * elfread.c (elf_symtab_read): Use intern.
12880 * dwarf2/read.c (fixup_go_packaging): Intern package name.
12881 (dwarf2_compute_name, dwarf2_physname)
12882 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
12883 names.
12884 (guess_partial_die_structure_name): Update.
12885 (partial_die_info::fixup): Intern name.
12886 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
12887 name.
12888 (dwarf2_name): Intern name. Update.
12889 * buildsym.c (buildsym_compunit::get_macro_table): Use
12890 string_cache.
12891
4e7625fd
TT
128922020-03-04 Tom Tromey <tom@tromey.com>
12893
12894 * jit.c (bfd_open_from_target_memory): Make "target" const.
12895 * corefile.c (gnutarget): Now const.
12896 * gdbcore.h (gnutarget): Now const.
12897
46f9f931
HD
128982020-03-04 Hannes Domani <ssbssa@yahoo.de>
12899
12900 * NEWS: Mention support for WOW64 processes.
12901 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
12902 (amd64_windows_segment_register_p): Remove static.
12903 (_initialize_amd64_windows_nat): Update.
12904 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
12905 * i386-windows-nat.c (context_offset): Update.
12906 (i386_mappings): Rename and remove static.
12907 (i386_windows_segment_register_p): Remove static.
12908 (_initialize_i386_windows_nat): Update.
12909 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
12910 (STATUS_WX86_SINGLE_STEP): New macro.
12911 (EnumProcessModulesEx): New macro.
12912 (Wow64SuspendThread): New macro.
12913 (Wow64GetThreadContext): New macro.
12914 (Wow64SetThreadContext): New macro.
12915 (Wow64GetThreadSelectorEntry): New macro.
12916 (windows_set_context_register_offsets): Add static.
12917 (windows_set_segment_register_p): Likewise.
12918 (windows_add_thread): Adapt for WOW64 processes.
12919 (windows_fetch_one_register): Likewise.
12920 (windows_nat_target::fetch_registers): Likewise.
12921 (windows_store_one_register): Likewise.
12922 (display_selector): Likewise.
12923 (display_selectors): Likewise.
12924 (handle_exception): Likewise.
12925 (windows_continue): Likewise.
12926 (windows_nat_target::resume): Likewise.
12927 (windows_add_all_dlls): Likewise.
12928 (do_initial_windows_stuff): Likewise.
12929 (windows_nat_target::attach): Likewise.
12930 (windows_get_exec_module_filename): Likewise.
12931 (windows_nat_target::create_inferior): Likewise.
12932 (windows_xfer_siginfo): Likewise.
12933 (_initialize_loadable): Initialize Wow64SuspendThread,
12934 Wow64GetThreadContext, Wow64SetThreadContext,
12935 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
12936 * windows-nat.h (windows_set_context_register_offsets):
12937 Remove declaration.
12938 (windows_set_segment_register_p): Likewise.
12939 (i386_windows_segment_register_p): Add declaration.
12940 (amd64_windows_segment_register_p): Likewise.
12941
440cf44e
LM
129422020-03-04 Luis Machado <luis.machado@linaro.org>
12943
12944 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
12945 in "info registers" for AArch64/ARM.
12946
12947 The change caused "info registers" to not print GPR's.
12948
12949 gdb/ChangeLog:
12950
12951 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
12952
12953 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
12954 when reg->group is empty and reggroup is not.
12955
1009d92f
TT
129562020-03-03 Tom Tromey <tromey@adacore.com>
12957
12958 * dwarf2/frame.c (struct dwarf2_frame_cache)
12959 <checked_tailcall_bottom, entry_cfa_sp_offset,
12960 entry_cfa_sp_offset_p>: Remove members.
12961 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
12962 (dwarf2_frame_prev_register): Don't call
12963 dwarf2_tailcall_sniffer_first.
12964 (dwarf2_append_unwinders): Don't append tailcall unwinder.
12965 * frame-unwind.c (add_unwinder): New fuction.
12966 (frame_unwind_init): Use it. Add tailcall unwinder.
12967
5e5d66b6
AB
129682020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
12969 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12970
12971 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
12972 value should be printed as true.
12973
584cf46d
HD
129742020-03-03 Hannes Domani <ssbssa@yahoo.de>
12975
12976 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
12977 (windows_init_abi): Set and use windows_so_ops.
12978
7b973adc
SDJ
129792020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
12980
12981 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
12982 when verifying if dealing with a convenience variable.
12983
bb7b70ab
LM
129842020-03-03 Luis Machado <luis.machado@linaro.org>
12985
12986 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
12987
9822cb57
SM
129882020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12989
12990 * infrun.c (gdbarch_supports_displaced_stepping): New.
12991 (use_displaced_stepping): Break up conditions in smaller pieces.
12992 Use gdbarch_supports_displaced_stepping.
12993 (displaced_step_prepare_throw): Use
12994 gdbarch_supports_displaced_stepping.
12995
63e163f2
AB
129962020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
12997
12998 * NEWS: Mention new behaviour of the history filename.
12999 * top.c (write_history_p): Add comment.
13000 (show_write_history_p): Add header comment, give a different
13001 message when history writing is on, but the history filename is
13002 empty.
13003 (history_filename): Add comment.
13004 (history_filename_empty): New function.
13005 (show_history_filename): Add header comment, give a different
13006 message when the filename is empty.
13007 (init_history): Compare history_filename against nullptr, and only
13008 read history if the filename is not empty.
13009 (set_history_filename): Add header comment, and only make
13010 non-empty filenames absolute.
13011 (init_main): Make the filename argument to 'set history filename'
13012 optional.
13013
81b86b97
CB
130142020-03-02 Christian Biesinger <cbiesinger@google.com>
13015
13016 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
13017 (arm_supply_vfpregset): ...this, and update to use VFP registers.
13018 (fetch_fp_register): Update.
13019 (fetch_fp_regs): Update.
13020 (store_fp_register): Update.
13021 (store_fp_regs): Update.
13022 (arm_netbsd_nat_target::read_description): New function.
13023 (fetch_elfcore_registers): Update.
13024
24ed6739
AB
130252020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13026
13027 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
13028 general_thread if the stop reply is missing a thread-id.
13029 (remote_target::process_stop_reply): Use the first non-exited
13030 thread if the target didn't pass a thread-id.
13031 * infrun.c (do_target_wait): Move call to
13032 switch_to_inferior_no_thread to ....
13033 (do_target_wait_1): ... here.
13034
a84bb2a0
JT
130352020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
13036
13037 * debuginfod-support.c: Include defs.h first.
13038
658dadf0
TV
130392020-02-28 Tom de Vries <tdevries@suse.de>
13040
13041 * symfile.c (set_initial_language): Use default language for lookup.
13042
4ebe4877
SM
130432020-02-28 Simon Marchi <simon.marchi@efficios.com>
13044
13045 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
13046 reader variable, pass `this` to read_cutu_die_from_dwo.
13047
e5da1139
AM
130482020-02-27 Aaron Merey <amerey@redhat.com>
13049
13050 * source.c (open_source_file): Check for nullptr when computing
13051 srcpath.
13052
317f7127
TT
130532020-02-27 Tom Tromey <tromey@adacore.com>
13054
13055 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
13056 member.
13057 (dwarf2_add_field): Don't update nfields.
13058 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
13059
3104d9ee
AB
130602020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13061
13062 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
13063 abs.
13064
b83470bf
TT
130652020-02-26 Tom Tromey <tom@tromey.com>
13066
13067 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
13068 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
13069 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
13070 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
13071 per_cu_data.
13072
edfe0a0c
TT
130732020-02-26 Tom Tromey <tom@tromey.com>
13074
13075 * dwarf2/index-write.c (psym_index_map): Change type.
13076 (add_address_entry_worker, write_one_signatured_type)
13077 (recursively_count_psymbols, recursively_write_psymbols)
13078 (class debug_names, psyms_seen_size, write_gdbindex)
13079 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
13080
0d79cdc4
AM
130812020-02-26 Aaron Merey <amerey@redhat.com>
13082
13083 * Makefile.in: Handle optional debuginfod support.
13084 * NEWS: Update.
13085 * README: Add --with-debuginfod summary.
13086 * config.in: Regenerate.
13087 * configure: Regenerate.
13088 * configure.ac: Handle optional debuginfod support.
13089 * debuginfod-support.c: debuginfod helper functions.
13090 * debuginfod-support.h: Ditto.
13091 * doc/gdb.texinfo: Add --with-debuginfod to configure options
13092 summary.
13093 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
13094 when a dwz file cannot be found.
13095 * elfread.c (elf_symfile_read): Query debuginfod servers when a
13096 debuginfo file cannot be found.
13097 * source.c (open_source_file): Query debuginfod servers when a
13098 source file cannot be found.
13099 * top.c (print_gdb_configuration): Include
13100 --{with,without}-debuginfod in the output.
13101
b65ce565
JG
131022020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
13103
13104 * thread.c (thr_try_catch_cmd): Print thread name.
13105
d4c9a4f8
SM
131062020-02-26 Simon Marchi <simon.marchi@efficios.com>
13107
13108 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
13109 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13110 dwarf2_fetch_die_type_sect_off): Move to...
13111 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
13112 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13113 dwarf2_fetch_die_type_sect_off): ... here.
13114 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
13115 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13116 dwarf2_fetch_die_type_sect_off): Move doc to header file.
13117
0dce4280
TV
131182020-02-26 Tom de Vries <tdevries@suse.de>
13119
13120 PR gdb/25603
13121 * symfile.c (set_initial_language): Exit-early if
13122 language_mode == language_mode_manual.
13123
450a1bfc
SM
131242020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13125
13126 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
13127 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
13128 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
13129
9e80cfa1
AB
131302020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
13131
13132 * gdbtypes.c (create_array_type_with_stride): Handle negative
13133 array strides.
13134 * valarith.c (value_subscripted_rvalue): Likewise.
13135
09624f1f
LM
131362020-02-25 Luis Machado <luis.machado@linaro.org>
13137
13138 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
13139
8cb5117c
SM
131402020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13141
13142 * loc.h (dwarf2_get_die_type): Move to...
13143 * read.h (dwarf2_get_die_type): ... here.
13144 * read.c (dwarf2_get_die_type): Move doc to header.
13145
c325c44e
JB
131462020-02-25 Joel Brobecker <brobecker@adacore.com>
13147
13148 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
13149 'gnulib/Makefile.in' to the list.
13150
4ac93832
TT
131512020-02-24 Tom Tromey <tom@tromey.com>
13152
13153 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
13154 Remove.
13155 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
13156 XOBNEWVEC.
13157
197400e8
TT
131582020-02-24 Tom Tromey <tom@tromey.com>
13159
13160 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
13161 New method.
13162 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
13163 (dw2_do_instantiate_symtab, dw2_get_file_names)
13164 (build_type_psymtab_dependencies, load_full_type_unit): Update.
13165
76935768
TT
131662020-02-24 Tom Tromey <tom@tromey.com>
13167
13168 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
13169 make_scoped_restore.
13170 (dwarf2_psymtab::read_symtab): Don't clear
13171 reading_partial_symbols.
13172
a88ef40d
TV
131732020-02-24 Tom de Vries <tdevries@suse.de>
13174
13175 PR gdb/25592
13176 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
13177
c9af6521
TV
131782020-02-24 Tom de Vries <tdevries@suse.de>
13179
13180 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
13181 commands layout next/prev/regs.
13182
5707a07a
TT
131832020-02-22 Tom Tromey <tom@tromey.com>
13184
13185 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
13186 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
13187
3b0fb49e
TT
131882020-02-22 Tom Tromey <tom@tromey.com>
13189
13190 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
13191
283be8bf
TT
131922020-02-22 Tom Tromey <tom@tromey.com>
13193
13194 * tui/tui-win.c (_initialize_tui_win): Add usage text.
13195 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
13196 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
13197 * tui/tui.c (_initialize_tui): Add usage text.
13198
ca793b96
TT
131992020-02-22 Tom Tromey <tom@tromey.com>
13200
13201 * tui/tui-win.c (tui_set_focus_command)
13202 (tui_set_win_height_command): Use error_no_arg.
13203 (_initialize_tui_win): Update help text.
13204 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
13205
432b5c40
TT
132062020-02-22 Tom Tromey <tom@tromey.com>
13207
13208 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
13209 * tui/tui-disasm.h (struct tui_disasm_window)
13210 <display_start_addr>: Declare.
13211 * tui/tui-source.h (struct tui_source_window)
13212 <display_start_addr>: Declare.
13213 * tui/tui-winsource.h (struct tui_source_window_base)
13214 <show_source_line, display_start_addr>: New methods.
13215 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
13216 Rename and move to protected section.
13217 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
13218 (tui_source_window_base::do_erase_source_content): Update.
13219 (tui_source_window_base::show_source_line): Now a method.
13220 (tui_source_window_base::show_source_content)
13221 (tui_source_window_base::tui_source_window_base)
13222 (tui_source_window_base::rerender)
13223 (tui_source_window_base::refill)
13224 (tui_source_window_base::do_scroll_horizontal)
13225 (tui_source_window_base::set_is_exec_point_at)
13226 (tui_source_window_base::update_breakpoint_info)
13227 (tui_source_window_base::update_exec_info): Update.
13228 * tui/tui-source.c (tui_source_window::set_contents)
13229 (tui_source_window::showing_source_p)
13230 (tui_source_window::do_scroll_vertical)
13231 (tui_source_window::location_matches_p)
13232 (tui_source_window::line_is_displayed): Update.
13233 (tui_source_window::display_start_addr): New method.
13234 * tui/tui-disasm.c (tui_disasm_window::set_contents)
13235 (tui_disasm_window::do_scroll_vertical)
13236 (tui_disasm_window::location_matches_p): Update.
13237 (tui_disasm_window::display_start_addr): New method.
13238
01b1af32
TT
132392020-02-22 Tom Tromey <tom@tromey.com>
13240
13241 * NEWS: Add entry for gdb.register_window_type.
13242 * tui/tui-layout.h (window_factory): New typedef.
13243 (tui_register_window): Declare.
13244 * tui/tui-layout.c (saved_tui_windows): New global.
13245 (tui_apply_current_layout): Use it.
13246 (tui_register_window): New function.
13247 * python/python.c (do_start_initialization): Call
13248 gdbpy_initialize_tui.
13249 (python_GdbMethods): Add "register_window_type" function.
13250 * python/python-internal.h (gdbpy_register_tui_window)
13251 (gdbpy_initialize_tui): Declare.
13252 * python/py-tui.c: New file.
13253 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
13254
fc96d20b
TT
132552020-02-22 Tom Tromey <tom@tromey.com>
13256
13257 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
13258
935c78c0
TT
132592020-02-22 Tom Tromey <tom@tromey.com>
13260
13261 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
13262 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
13263 * tui/tui-data.c (tui_set_win_with_focus): Remove.
13264 (tui_set_win_focus_to): Move from tui-win.c.
13265
0240c8f1
TT
132662020-02-22 Tom Tromey <tom@tromey.com>
13267
13268 * tui/tui-layout.c (make_standard_window, get_locator_window): New
13269 functions.
13270 (known_window_types): New global.
13271 (tui_get_window_by_name): Reimplement.
13272 (initialize_known_windows): New function.
13273 (validate_window_name): Rewrite.
13274 (_initialize_tui_layout): Call initialize_known_windows.
13275
fdb01f0c
TT
132762020-02-22 Tom Tromey <tom@tromey.com>
13277
13278 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
13279 Remove constants.
13280 * tui/tui-winsource.h (struct tui_source_window_base)
13281 <tui_source_window_base>: Remove parameter.
13282 * tui/tui-winsource.c
13283 (tui_source_window_base::tui_source_window_base): Remove
13284 parameter.
13285 (tui_source_window_base::refill): Update.
13286 * tui/tui-stack.h (struct tui_locator_window)
13287 <tui_locator_window>: Update.
13288 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
13289 Default the constructor.
13290 * tui/tui-regs.h (struct tui_data_item_window)
13291 <tui_data_item_window>: Default the constructor.
13292 (struct tui_data_window) <tui_data_window>: Likewise.
13293 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
13294 Default the constructor.
13295 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
13296 Default the constructor.
13297 <type>: Remove.
13298 (struct tui_win_info) <tui_win_info>: Default the constructor.
13299 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
13300 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
13301 Default the constructor.
13302
865a5aec
TT
133032020-02-22 Tom Tromey <tom@tromey.com>
13304
13305 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
13306 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
13307 * tui/tui-win.c (tui_resize_all): Don't call
13308 tui_delete_invisible_windows.
13309 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
13310 done.
13311 (tui_set_layout): Update.
13312 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
13313 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
13314 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
13315
e098d18c
TT
133162020-02-22 Tom Tromey <tom@tromey.com>
13317
13318 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
13319 correctly.
13320
eb9c8874
TT
133212020-02-22 Tom Tromey <tom@tromey.com>
13322
13323 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
13324
7eed1a8e
TT
133252020-02-22 Tom Tromey <tom@tromey.com>
13326
13327 * tui/tui-winsource.h (struct tui_source_window_iterator)
13328 <inner_iterator>: New etytypedef.
13329 <tui_source_window_iterator>: Take "end" parameter.
13330 <tui_source_window_iterator>: Take iterator.
13331 <operator*, advance>: Update.
13332 <m_iter>: Change type.
13333 <m_end>: New field.
13334 (struct tui_source_windows) <begin, end>: Update.
13335 * tui/tui-layout.c (tui_windows): New global.
13336 (tui_apply_current_layout): Clear tui_windows.
13337 (tui_layout_window::apply): Update tui_windows.
13338 * tui/tui-data.h (tui_windows): Declare.
13339 (all_tui_windows): Now inline function.
13340 (class tui_window_iterator, struct all_tui_windows): Remove.
13341
7c043ba6
TT
133422020-02-22 Tom Tromey <tom@tromey.com>
13343
13344 PR tui/17850:
13345 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
13346 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
13347 "height" argument.
13348 (class tui_layout_window) <get_sizes>: Likewise.
13349 (class tui_layout_split) <tui_layout_split>: Add "vertical"
13350 argument.
13351 <get_sizes>: Add "height" argument.
13352 <m_vertical>: New field.
13353 * tui/tui-layout.c (tui_layout_split::clone): Update.
13354 (tui_layout_split::get_sizes): Add "height" argument.
13355 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
13356 (tui_new_layout_command): Parse "-horizontal".
13357 (_initialize_tui_layout): Update help string.
13358 (tui_layout_split::specification): Add "-horizontal" when needed.
13359 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
13360 argument.
13361 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
13362 New methods.
13363
6bc56648
TT
133642020-02-22 Tom Tromey <tom@tromey.com>
13365
13366 * tui/tui-layout.h (enum tui_adjust_result): New.
13367 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
13368 (class tui_layout_window) <adjust_size>: Return
13369 tui_adjust_result. Rewrite.
13370 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
13371 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
13372
c22fef7e
TT
133732020-02-22 Tom Tromey <tom@tromey.com>
13374
13375 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
13376 parameter and return types.
13377 (class tui_layout_base) <specification>: Add "depth".
13378 (class tui_layout_window) <specification>: Add "depth".
13379 (class tui_layout_split) <specification>: Add "depth".
13380 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
13381 and return types.
13382 (tui_new_layout_command): Parse sub-layouts.
13383 (_initialize_tui_layout): Update help string.
13384 (tui_layout_window::specification): Add "depth".
13385 (add_layout_command): Update.
13386
ee325b61
TT
133872020-02-22 Tom Tromey <tom@tromey.com>
13388
13389 * NEWS: Add "tui new-layout" item.
13390 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
13391 Add new-layout command to help text.
13392 (validate_window_name): New function.
13393 (tui_new_layout_command): New function.
13394 (_initialize_tui_layout): Register "new-layout".
13395 (tui_layout_window::specification): New method.
13396 (tui_layout_window::specification): New method.
13397 * tui/tui-layout.h (class tui_layout_base) <specification>: New
13398 method.
13399 (class tui_layout_window) <specification>: New method.
13400 (class tui_layout_split) <specification>: New method.
13401
416eb92d
TT
134022020-02-22 Tom Tromey <tom@tromey.com>
13403
13404 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
13405 * tui/tui-win.c (window_name_completer): Update comment.
13406 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
13407 Declare method.
13408 (class tui_layout_window) <replace_window>: Likewise.
13409 (class tui_layout_split) <replace_window>: Likewise.
13410 (tui_set_layout): Don't declare.
13411 (tui_set_initial_layout): Declare function.
13412 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
13413 (asm_regs_layout): New globals.
13414 (tui_current_layout, show_layout): Remove.
13415 (tui_set_layout, tui_add_win_to_layout): Rewrite.
13416 (find_layout, tui_apply_layout): New function.
13417 (layout_completer): Remove.
13418 (tui_next_layout): Reimplement.
13419 (tui_next_layout_command): New function.
13420 (tui_set_initial_layout, tui_prev_layout_command): New functions.
13421 (tui_regs_layout): Reimplement.
13422 (tui_regs_layout_command): New function.
13423 (extract_display_start_addr): Rewrite.
13424 (next_layout, prev_layout): Remove.
13425 (tui_layout_window::replace_window): New method.
13426 (tui_layout_split::replace_window): New method.
13427 (destroy_layout): New function.
13428 (layout_list): New global.
13429 (add_layout_command): New function.
13430 (initialize_layouts): Update.
13431 (tui_layout_command): New function.
13432 (_initialize_tui_layout): Install "layout" commands.
13433 * tui/tui-data.h (enum tui_layout_type): Remove.
13434 (tui_current_layout): Don't declare.
13435
0dbc2fc7
TT
134362020-02-22 Tom Tromey <tom@tromey.com>
13437
13438 * tui/tui-regs.c (tui_reg_layout): Remove.
13439 (tui_reg_command): Use tui_regs_layout.
13440 * tui/tui-layout.h (tui_reg_command): Declare.
13441 * tui/tui-layout.c (tui_reg_command): New function.
13442
5afe342e
TT
134432020-02-22 Tom Tromey <tom@tromey.com>
13444
13445 * tui/tui.c (tui_rl_delete_other_windows): Call
13446 tui_remove_some_windows.
13447 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
13448 Declare method.
13449 (class tui_layout_window) <remove_windows>: New method.
13450 (class tui_layout_split) <remove_windows>: Declare.
13451 (tui_remove_some_windows): Declare.
13452 * tui/tui-layout.c (tui_remove_some_windows): New function.
13453 (tui_layout_split::remove_windows): New method.
13454
427326a8
TT
134552020-02-22 Tom Tromey <tom@tromey.com>
13456
13457 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
13458 * tui/tui-layout.h (tui_next_layout): Declare.
13459 * tui/tui-layout.c (tui_next_layout): New function.
13460
3fe12b6d
TT
134612020-02-22 Tom Tromey <tom@tromey.com>
13462
13463 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
13464 correct coordinates.
13465
59b8b5d2
TT
134662020-02-22 Tom Tromey <tom@tromey.com>
13467
13468 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
13469 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
13470 DATA_WIN case.
13471
2a3d458b
TT
134722020-02-22 Tom Tromey <tom@tromey.com>
13473
13474 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
13475 TUI_DISASM_WIN, not tui_win_list.
13476
3f0cbb04
TT
134772020-02-22 Tom Tromey <tom@tromey.com>
13478
13479 * valprint.c (generic_val_print_enum_1)
13480 (val_print_type_code_flags): Style member names.
13481 * rust-lang.c (val_print_struct, rust_print_enum)
13482 (rust_print_struct_def, rust_internal_print_type): Style member
13483 names.
13484 * p-valprint.c (pascal_object_print_value_fields): Style member
13485 names. Only call fprintf_symbol_filtered for static members.
13486 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
13487 * f-valprint.c (f_val_print): Style member names.
13488 * f-typeprint.c (f_type_print_base): Style member names.
13489 * cp-valprint.c (cp_print_value_fields): Style member names. Only
13490 call fprintf_symbol_filtered for static members.
13491 (cp_print_class_member): Style member names.
13492 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
13493 member names.
13494 * ada-valprint.c (ada_print_scalar): Style enum names.
13495 (ada_val_print_enum): Likewise.
13496 * ada-typeprint.c (print_enum_type): Style enum names.
13497
d4d947ae
TT
134982020-02-21 Tom Tromey <tom@tromey.com>
13499
13500 * psympriv.h (struct partial_symtab): Update comment.
13501
e94e944b
TT
135022020-02-21 Tom Tromey <tromey@adacore.com>
13503
13504 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
13505 type is CORE_ADDR.
13506
1eb73179
TV
135072020-02-21 Tom de Vries <tdevries@suse.de>
13508
13509 PR gdb/25534
13510 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
13511 if dependencies[i]->user != NULL.
13512
4f180d53
AT
135132020-02-21 Ali Tamur <tamur@google.com>
13514
13515 * dwarf2/read.c (dwarf2_name): Add null check.
13516
22b6cd70
TT
135172020-02-20 Tom Tromey <tom@tromey.com>
13518
13519 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
13520 ">=", in binary search.
13521 (dwarf2_find_containing_comp_unit): New overload.
13522 (run_test): New self-test.
13523 (_initialize_dwarf2_read): Register new test.
13524
bd0cf5a6
NC
135252020-02-20 Nelson Chu <nelson.chu@sifive.com>
13526
13527 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
13528 * riscv-tdep.h: Likewise.
13529 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
13530 rv32-only CSR.
13531 * features/riscv/64bit-csr.xml: Regenerated.
13532
3f702acd
SDJ
135332020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
13534 Tom Tromey <tom@tromey.com>
13535
13536 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
13537 of 'fputc_unfiltered'.
13538 (putchar_unfiltered): Call 'fputc_unfiltered'.
13539 (fputc_unfiltered): Call 'fputs_unfiltered'.
13540
d13c7322
AB
135412020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
13542
13543 * config.in: Regenerate.
13544 * configure: Regenerate.
13545 * configure.ac: Add --with-python-libdir option.
13546 * main.c: Use WITH_PYTHON_LIBDIR.
13547
869d8950
TT
135482020-02-19 Tom Tromey <tom@tromey.com>
13549
13550 * symtab.c (general_symbol_info::compute_and_set_names): Use
13551 obstack_strndup. Simplify call to symbol_set_demangled_name.
13552
298e9637
SM
135532020-02-19 Simon Marchi <simon.marchi@efficios.com>
13554
13555 * dwarf2/read.c (allocate_signatured_type_table,
13556 allocate_dwo_unit_table, allocate_type_unit_groups_table,
13557 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
13558 Remove objfile parameter, update all callers.
13559
08410482
DE
135602020-02-19 Doug Evans <dje@google.com>
13561
13562 PR rust/25535
13563 * rust-lang.c (rust_print_enum): Apply embedded_offset to
13564 rust_enum_variant calculation.
13565
dfdeeca1
TT
135662020-02-19 Tom Tromey <tromey@adacore.com>
13567
13568 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
13569
2ef5453b
TT
135702020-02-19 Tom Tromey <tromey@adacore.com>
13571
13572 * ada-lang.c (cache_symbol): Use obstack_strdup.
13573
9f1528a1
AB
135742020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
13575
13576 * configure: Regenerate.
13577
d3c22fa8
TT
135782020-02-19 Tom Tromey <tromey@adacore.com>
13579
13580 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
13581 NULL check.
13582
bf84f706
MR
135832020-02-19 Maciej W. Rozycki <macro@wdc.com>
13584
13585 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
13586
d1c9b20f
AB
135872020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
13588
13589 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
13590 if GDBSERVER is not defined.
13591 (riscv_tdesc_cache): Likewise, also store const target_desc.
13592 (STATIC_IN_GDB): Define.
13593 (riscv_create_target_description): Update declaration with
13594 STATIC_IN_GDB.
13595 (riscv_lookup_target_description): New function, only define if
13596 GDBSERVER is not defined.
13597 * arch/riscv.h (riscv_create_target_description): Declare only
13598 when GDBSERVER is defined.
13599 (riscv_lookup_target_description): New declaration when GDBSERVER
13600 is not defined.
13601 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
13602 (riscv_linux_read_features): ...this, and return
13603 riscv_gdbarch_features instead of target_desc.
13604 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
13605 (riscv_linux_read_description): Rename to...
13606 (riscv_linux_read_features): ...this.
13607 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
13608 Update to use riscv_gdbarch_features and
13609 riscv_lookup_target_description.
13610 * riscv-tdep.c (riscv_find_default_target_description): Use
13611 riscv_lookup_target_description instead of
13612 riscv_create_target_description.
13613
373d7ac0
SM
136142020-02-18 Simon Marchi <simon.marchi@efficios.com>
13615
13616 * valprint.c (generic_val_print_enum_1): When printing a flag
13617 enum with value 0 and there is no enumerator with value 0, print
13618 just "0" instead of "(unknown: 0x0)".
13619
b29a2df0
SM
136202020-02-18 Simon Marchi <simon.marchi@efficios.com>
13621
13622 * valprint.c (generic_val_print_enum_1): Print unknown part of
13623 flag enum in hex.
13624
6740f0cc
SM
136252020-02-18 Simon Marchi <simon.marchi@efficios.com>
13626
13627 * dwarf2/read.c (update_enumeration_type_from_children): Allow
13628 flag enums to contain duplicate enumerators.
13629 * valprint.c (generic_val_print_enum_1): Update comment.
13630
edd45eb0
SM
136312020-02-18 Simon Marchi <simon.marchi@efficios.com>
13632
13633 * dwarf2/read.c: Include "count-one-bits.h".
13634 (update_enumeration_type_from_children): If an enumerator has
13635 multiple bits set, don't treat the enumeration as a "flag enum".
13636 * valprint.c (generic_val_print_enum_1): Assert that enumerators
13637 of flag enums have 0 or 1 bit set.
13638
6d0cf446
BE
136392020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
13640
13641 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
13642 conversion.
13643 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13644 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
13645 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13646 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
13647 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13648
7001c1b7
SM
136492020-02-18 Simon Marchi <simon.marchi@efficios.com>
13650
13651 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
13652
fdb61c6c
SM
136532020-02-14 Simon Marchi <simon.marchi@efficios.com>
13654
13655 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
13656 displaced_step_closure_up.
13657 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
13658 (struct displaced_step_closure_up):
13659 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13660 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
13661 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
13662 Likewise.
13663 * gdbarch.sh (displaced_step_copy_insn): Likewise.
13664 * gdbarch.c, gdbarch.h: Re-generate.
13665 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
13666 displaced_step_closure_up.
13667 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13668 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
13669 * infrun.h (displaced_step_closure_up): New type alias.
13670 (struct displaced_step_inferior_state) <step_closure>: Change
13671 type to displaced_step_closure_up.
13672 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
13673 displaced_step_closure_up.
13674 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13675
a4a38eb4
TT
136762020-02-14 Tom Tromey <tom@tromey.com>
13677
13678 * minidebug.c (gnu_debug_key): New global.
13679 (find_separate_debug_file_in_section): Use it.
13680
e8217e61
SM
136812020-02-14 Simon Marchi <simon.marchi@efficios.com>
13682
13683 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
13684 std::unique_ptr.
13685 * gdbarch.c: Re-generate.
13686 * gdbarch.h: Re-generate.
13687 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
13688 change.
13689 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
13690 type to std::unique_ptr.
13691 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
13692 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13693 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
13694 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
13695 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
13696 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13697 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
13698 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
13699 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13700
d8d83535
SM
137012020-02-14 Simon Marchi <simon.marchi@efficios.com>
13702
13703 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
13704 std::unique_ptr.
13705 (displaced_step_clear): Rename to...
13706 (displaced_step_reset): ... this. Just call displaced->reset ().
13707 (displaced_step_clear_cleanup): Rename to...
13708 (displaced_step_reset_cleanup): ... this.
13709 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
13710 (displaced_step_fixup): Likewise.
13711 (resume_1): Likewise.
13712 (handle_inferior_event): Restore child's memory before calling
13713 displaced_step_fixup on the parent.
13714 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
13715 to std::unique_ptr.
13716 <step_closure>: Change type to std::unique_ptr.
13717
5f661e03
SM
137182020-02-14 Simon Marchi <simon.marchi@efficios.com>
13719
13720 * arm-tdep.c: Include count-one-bits.h.
13721 (cleanup_block_store_pc): Use count_one_bits.
13722 (cleanup_block_load_pc): Use count_one_bits.
13723 (arm_copy_block_xfer): Use count_one_bits.
13724 (thumb2_copy_block_xfer): Use count_one_bits.
13725 (thumb_copy_pop_pc_16bit): Use count_one_bits.
13726 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
13727 (thumb_get_next_pcs_raw): Use count_one_bits.
13728 (arm_get_next_pcs_raw): Use count_one_bits_l.
13729 * arch/arm.c (bitcount): Remove.
13730 * arch/arm.h (bitcount): Remove.
13731
8084e579
TT
137322020-02-14 Tom Tromey <tromey@adacore.com>
13733
13734 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
13735 Update.
13736 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
13737 * dwarf2/loc.c (call_site_find_chain_1): Return
13738 unique_xmalloc_ptr.
13739 (call_site_find_chain): Likewise.
13740
258bf0ee
RB
137412020-02-14 Richard Biener <rguenther@suse.de>
13742
13743 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
13744 on expression with division operators.
13745
f98a8458
AKS
137462020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13747
13748 * MAINTAINERS (Write After Approval): Adding myself.
13749
d1437c0e
TT
137502020-02-12 Tom Tromey <tom@tromey.com>
13751
13752 * event-loop.c (event_data, gdb_event, event_handler_func):
13753 Remove.
13754
3d4560f7
TT
137552020-02-12 Tom Tromey <tom@tromey.com>
13756
13757 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
13758 (dwarf2_frame_objfile_data): Add comment.
13759 (find_comp_unit, set_comp_unit): New functions.
13760 (dwarf2_frame_find_fde): Use find_comp_unit.
13761 (dwarf2_build_frame_info): Use set_comp_unit.
13762
21982304
TT
137632020-02-12 Tom Tromey <tom@tromey.com>
13764
13765 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
13766 (comp_unit): Don't initialize objfile.
13767 (execute_cfa_program): Add text_offset parameter.
13768 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
13769 (dwarf2_frame_cache): Update.
13770 (dwarf2_build_frame_info): Don't set "objfile" member.
13771
4debb237
TT
137722020-02-12 Tom Tromey <tom@tromey.com>
13773
13774 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
13775 (decode_frame_entry): Likewise.
13776 (dwarf2_build_frame_info): Update.
13777
0d404d44
TT
137782020-02-12 Tom Tromey <tom@tromey.com>
13779
13780 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
13781 (decode_frame_entry_1): Use the comp_unit obstack.
13782
a7a3ae5c
TT
137832020-02-12 Tom Tromey <tom@tromey.com>
13784
13785 * dwarf2/frame.c (struct comp_unit): Add initializers and
13786 constructor.
13787 (dwarf2_frame_objfile_data): Store a comp_unit.
13788 (dwarf2_frame_find_fde): Update.
13789 (dwarf2_build_frame_info): Use "new".
13790
a9d65418
TT
137912020-02-12 Tom Tromey <tom@tromey.com>
13792
13793 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
13794 (dwarf2_fde_table): Typedef for std::vector.
13795 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
13796 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
13797 (decode_frame_entry): Update.
13798 (dwarf2_build_frame_info): Use "new".
13799
7559c217
CB
138002020-02-12 Christian Biesinger <cbiesinger@google.com>
13801
13802 * arm-tdep.c (arm_gdbarch_init): Update.
13803 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
13804 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
13805 have_neon, is_m>: Change to bool.
13806
aeefc73c
CB
138072020-02-12 Christian Biesinger <cbiesinger@google.com>
13808
13809 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
13810
d27b8e5f
TT
138112020-02-12 Tom Tromey <tom@tromey.com>
13812
13813 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
13814
cd5900f3
HD
138152020-02-12 Hannes Domani <ssbssa@yahoo.de>
13816
13817 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
13818 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
13819
f056b22b
TT
138202020-02-11 Tom Tromey <tom@tromey.com>
13821
13822 * psymtab.h: Update comment.
13823
f92ff6b5
TT
138242020-02-11 Tom Tromey <tom@tromey.com>
13825
13826 * gdb_obstack.h (struct auto_obstack): Use
13827 DISABLE_COPY_AND_ASSIGN.
13828
3fd6912b
TT
138292020-02-11 Tom Tromey <tom@tromey.com>
13830
13831 * dwarf2/frame.h (struct objfile): Don't forward declare.
13832
69ed9b74
CB
138332020-02-11 Christian Biesinger <cbiesinger@google.com>
13834
13835 * cris-tdep.c (cris_supply_gregset): Change signature to match
13836 what struct regset expects.
13837 (cris_regset): New struct.
13838 (fetch_core_registers): Remove.
13839 (cris_iterate_over_regset_sections): New function.
13840 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
13841 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
13842
bda874f6
CB
138432020-02-11 Christian Biesinger <cbiesinger@google.com>
13844
13845 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
13846 registers.
13847
754e1564
CB
138482020-02-11 Christian Biesinger <cbiesinger@google.com>
13849
13850 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
13851
8ddd8e0e
SM
138522020-02-11 Simon Marchi <simon.marchi@efficios.com>
13853
13854 * configure: Re-generate.
13855
898e7f60
SM
138562020-02-11 Simon Marchi <simon.marchi@efficios.com>
13857
13858 * configure: Re-generate.
13859
58df732b
SM
138602020-02-11 Simon Marchi <simon.marchi@efficios.com>
13861
13862 * acinclude: Update warning.m4 path.
13863 * warning.m4: Move to gdbsupport.
13864
da5bd37e
TT
138652020-02-11 Tom Tromey <tromey@adacore.com>
13866
13867 * remote.c (remote_console_output): Update.
13868 * printcmd.c (printf_command): Update.
13869 * event-loop.c (gdb_wait_for_event): Update.
13870 * linux-nat.c (sigchld_handler): Update.
13871 * remote-sim.c (gdb_os_write_stdout): Update.
13872 (gdb_os_flush_stdout): Update.
13873 (gdb_os_flush_stderr): Update.
13874 (gdb_os_write_stderr): Update.
13875 * exceptions.c (print_exception): Update.
13876 * remote-fileio.c (remote_fileio_func_read): Update.
13877 (remote_fileio_func_write): Update.
13878 * tui/tui.c (tui_enable): Update.
13879 * tui/tui-interp.c (tui_interp::init): Update.
13880 * utils.c (init_page_info): Update.
13881 (putchar_unfiltered, fputc_unfiltered): Update.
13882 (gdb_flush): Update.
13883 (emit_style_escape): Update.
13884 (flush_wrap_buffer, fputs_maybe_filtered): Update.
13885 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
13886 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
13887 (stderr_file::write): Update.
13888 (stderr_file::puts): Update.
13889 * ui-file.h (ui_file_isatty, ui_file_write)
13890 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
13891 (ui_file_puts): Don't declare.
13892
85f0dd3c
TV
138932020-02-10 Tom de Vries <tdevries@suse.de>
13894
13895 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
13896 sentinel to char *.
13897
2e927613
TV
138982020-02-09 Tom de Vries <tdevries@suse.de>
13899
13900 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
13901 filename if it matches "<artificial>".
13902
6bafc845
HD
139032020-02-09 Hannes Domani <ssbssa@yahoo.de>
13904
13905 * windows-tdep.c (struct enum_value_name): New struct.
13906 (create_enum): New function.
13907 (windows_get_siginfo_type): Create and use enum types.
13908
7928d571
HD
139092020-02-09 Hannes Domani <ssbssa@yahoo.de>
13910
13911 * NEWS: Mention $_siginfo support for Windows.
13912 * windows-nat.c (handle_exception): Set siginfo_er.
13913 (windows_nat_target::mourn_inferior): Reset siginfo_er.
13914 (windows_xfer_siginfo): New function.
13915 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
13916 * windows-tdep.c (struct windows_gdbarch_data): New struct.
13917 (init_windows_gdbarch_data): New function.
13918 (get_windows_gdbarch_data): New function.
13919 (windows_get_siginfo_type): New function.
13920 (windows_init_abi): Register windows_get_siginfo_type.
13921 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
13922
6751ebae
TT
139232020-02-08 Tom Tromey <tom@tromey.com>
13924
13925 * dwarf2/read.c (class cutu_reader) <cutu_reader,
13926 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
13927 <keep>: Declare method.
13928 <m_keep>: Remove member.
13929 <~cutu_reader>: Remove.
13930 (cutu_reader::init_tu_and_read_dwo_dies): Update.
13931 (cutu_reader::cutu_reader): Update.
13932 (cutu_reader::keep): Rename from ~cutu_reader.
13933 (process_psymtab_comp_unit, build_type_psymtabs_1)
13934 (process_skeletonless_type_unit, load_partial_comp_unit)
13935 (load_full_comp_unit, dwarf2_read_addr_index)
13936 (read_signatured_type): Update.
13937
135f5437
TT
139382020-02-08 Tom Tromey <tom@tromey.com>
13939
13940 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
13941 "want_partial_unit" parameter.
13942 (process_psymtab_comp_unit): Change want_partial_unit to bool.
13943 Inline check for DW_TAG_partial_unit.
13944 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
13945
9f66ff1c
TT
139462020-02-08 Tom Tromey <tom@tromey.com>
13947
13948 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
13949 read.c.
13950 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
13951 read.c.
13952
c8a7a66f
TT
139532020-02-08 Tom Tromey <tom@tromey.com>
13954
13955 * dwarf2/read.c (read_address): Move to comp-unit.c.
13956 (dwarf2_rnglists_process, dwarf2_ranges_process)
13957 (read_attribute_value, dwarf_decode_lines_1)
13958 (var_decode_location, decode_locdesc): Update.
13959 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
13960 read.c. Remove "cu" parameter.
13961 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
13962 method.
13963
8266302d
TT
139642020-02-08 Tom Tromey <tom@tromey.com>
13965
13966 * dwarf2/read.c (read_attribute_value, read_indirect_string)
13967 (read_indirect_line_string): Update.
13968 * dwarf2/comp-unit.c (read_offset): Remove.
13969 (read_comp_unit_head): Update.
13970 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
13971 method.
13972 (read_offset): Don't declare.
13973
4057dfde
TT
139742020-02-08 Tom Tromey <tom@tromey.com>
13975
13976 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
13977 * dwarf2/read.c (struct comp_unit_head): Move to
13978 dwarf2/comp-unit.h.
13979 (enum class rcuh_kind): Move to comp-unit.h.
13980 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
13981 (read_comp_unit_head, error_check_comp_unit_head)
13982 (read_and_check_comp_unit_head): Move to comp-unit.c.
13983 (read_offset, dwarf_unit_type_name): Likewise.
13984 (create_debug_type_hash_table, read_cutu_die_from_dwo)
13985 (cutu_reader::cutu_reader, read_call_site_scope)
13986 (find_partial_die, follow_die_offset): Update.
13987 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
13988
24aa364d
TT
139892020-02-08 Tom Tromey <tom@tromey.com>
13990
13991 * dwarf2/read.c (read_offset_1): Move to leb.c.
13992 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
13993 (dwarf_decode_macro_bytes): Update.
13994 * dwarf2/leb.c (read_offset): Rename; move from read.c.
13995 * dwarf2/leb.h (read_offset): Declare.
13996
2c7d5afc
TT
139972020-02-08 Tom Tromey <tom@tromey.com>
13998
13999 * dwarf2/read.c (dwarf2_section_size): Remove.
14000 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
14001 Update.
14002 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
14003
4075cb26
TT
140042020-02-08 Tom Tromey <tom@tromey.com>
14005
14006 * dwarf2/read.c (read_initial_length): Move to leb.c.
14007 * dwarf2/leb.h (read_initial_length): Declare.
14008 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
14009 handle_nonstd parameter.
14010 * dwarf2/frame.c (read_initial_length): Remove.
14011 (decode_frame_entry_1): Update.
14012
09ba997f
TT
140132020-02-08 Tom Tromey <tom@tromey.com>
14014
14015 * dwarf2/loc.c (dwarf2_find_location_expression)
14016 (dwarf_evaluate_loc_desc::get_tls_address)
14017 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
14018 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
14019 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
14020 (dwarf2_compile_property_to_c)
14021 (dwarf2_loc_desc_get_symbol_read_needs)
14022 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
14023 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
14024 (loclist_describe_location, loclist_tracepoint_var_ref)
14025 (loclist_generate_c_location): Update.
14026 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
14027 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
14028 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
14029 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
14030 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
14031 (dwarf2_per_cu_data::addr_size)
14032 (dwarf2_per_cu_data::ref_addr_size)
14033 (dwarf2_per_cu_data::text_offset)
14034 (dwarf2_per_cu_data::addr_type): Now methods.
14035 (per_cu_header_read_in): Make per_cu "const".
14036 (dwarf2_version): Remove.
14037 (dwarf2_per_cu_data::int_type): Now a method.
14038 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
14039 (set_die_type, read_array_type, read_subrange_index_type)
14040 (read_tag_string_type, read_subrange_type): Update.
14041 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
14042 offset_size, ref_addr_size, text_offset, addr_type, version,
14043 objfile, int_type, addr_sized_int_type>: Declare methods.
14044
96c738c0
TT
140452020-02-08 Tom Tromey <tom@tromey.com>
14046
14047 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
14048 Move earlier.
14049
8fdd972c
TT
140502020-02-08 Tom Tromey <tom@tromey.com>
14051
14052 * dwarf2/read.h (dwarf_line_debug): Declare.
14053 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
14054 * dwarf2/read.c: Move line_header code to new files.
14055 (dwarf_line_debug): No longer static.
14056 * dwarf2/line-header.c: New file.
14057 * dwarf2/line-header.h: New file.
14058
03075812
TT
140592020-02-08 Tom Tromey <tom@tromey.com>
14060
14061 * dwarf2/read.c (struct line_header) <file_full_name,
14062 file_file_name>: Return unique_xmalloc_ptr.
14063 (line_header::file_file_name): Update.
14064 (line_header::file_full_name): Update.
14065 (dw2_get_file_names_reader): Update.
14066 (macro_start_file): Update.
14067
bb822404
TT
140682020-02-08 Tom Tromey <tom@tromey.com>
14069
14070 * dwarf2/read.c (struct line_header) <file_full_name,
14071 file_file_name>: Declare methods.
14072 (dw2_get_file_names_reader): Update.
14073 (file_file_name): Now a method.
14074 (file_full_name): Likewise.
14075 (macro_start_file): Update.
14076
009b64fc
TT
140772020-02-08 Tom Tromey <tom@tromey.com>
14078
14079 * dwarf2/read.c (dwarf_always_disassemble)
14080 (show_dwarf_always_disassemble): Move to loc.c.
14081 (_initialize_dwarf2_read): Move "always-disassemble" registration
14082 to loc.c.
14083 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
14084 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
14085 static.
14086 (show_dwarf_always_disassemble): Move from read.c.
14087 (_initialize_dwarf2loc): Move always-disassemble from read.c.
14088
5895093f
TT
140892020-02-08 Tom Tromey <tom@tromey.com>
14090
14091 * dwarf2/read.c (~dwarf2_per_objfile): Update.
14092 (create_quick_file_names_table): Return htab_up.
14093 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
14094 Update.
14095 * dwarf2/read.h (struct dwarf2_per_objfile)
14096 <quick_file_names_table>: Now htab_up.
14097
b3b32279
TT
140982020-02-08 Tom Tromey <tom@tromey.com>
14099
14100 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
14101
1d33d811
TT
141022020-02-08 Tom Tromey <tom@tromey.com>
14103
14104 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
14105 Rewrite.
14106 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
14107 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
14108 (abbrev_table::abbrev_table): No longer inline.
14109 (ABBREV_HASH_SIZE): Remove.
14110 (abbrev_table::m_abbrevs): Now an htab_up.
14111
86de1d91
TT
141122020-02-08 Tom Tromey <tom@tromey.com>
14113
14114 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
14115 (cutu_reader): Update.
14116 (build_type_psymtabs_1): Update.
14117 * dwarf2/abbrev.c (abbrev_table::read): Rename.
14118 (abbrev_table::alloc_abbrev): Update.
14119 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
14120 (abbrev_table::read): New static method, renamed from
14121 abbrev_table_read_table.
14122 (abbrev_table::alloc_abbrev)
14123 (abbrev_table::add_abbrev): Now private.
14124 (abbrev_table::abbrev_table): Now private.
14125 (abbrev_table::m_abbrev_obstack): Now private. Rename.
14126
0335378b
TT
141272020-02-08 Tom Tromey <tom@tromey.com>
14128
14129 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
14130 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
14131 htab_up.
14132
48b490f2
TT
141332020-02-08 Tom Tromey <tom@tromey.com>
14134
14135 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
14136 htab_up.
14137 (lookup_dwo_unit_in_dwp): Update.
14138 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
14139 on obstack.
14140
bc68fb19
TT
141412020-02-08 Tom Tromey <tom@tromey.com>
14142
14143 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
14144 obstack.
14145
d15acc42
TT
141462020-02-08 Tom Tromey <tom@tromey.com>
14147
14148 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
14149 line_header_hash.
14150 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
14151 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
14152 Change type to htab_up.
14153
eaa5fa8b
TT
141542020-02-08 Tom Tromey <tom@tromey.com>
14155
14156 * dwarf2/read.c (allocate_type_unit_groups_table): Return
14157 htab_up. Don't allocate on obstack.
14158 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
14159 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
14160 Change type to htab_up.
14161
b0b6a987
TT
141622020-02-08 Tom Tromey <tom@tromey.com>
14163
14164 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
14165 Change type to htab_up.
14166 * dwarf2/read.c (create_signatured_type_table_from_index)
14167 (create_signatured_type_table_from_debug_names)
14168 (create_all_type_units, add_type_unit)
14169 (lookup_dwo_signatured_type, lookup_signatured_type)
14170 (process_skeletonless_type_unit): Update.
14171 (create_debug_type_hash_table, create_debug_types_hash_table):
14172 Change type of types_htab.
14173 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
14174 htab_up. Don't allocate on obstack.
14175 (create_cus_hash_table): Change type of cus_htab parameter.
14176 (struct dwo_file) <cus, tus>: Now htab_up.
14177 (lookup_dwo_signatured_type, lookup_dwo_cutu)
14178 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
14179 (queue_and_load_all_dwo_tus): Update.
14180 * dwarf2/index-write.c (write_gdbindex): Update.
14181 (write_debug_names): Update.
14182
39856def
TT
141832020-02-08 Tom Tromey <tom@tromey.com>
14184
14185 * dwarf2/read.h (struct dwarf2_queue_item): Move from
14186 dwarf2/read.c. Remove "next" member. Add constructor ntad
14187 destructor.
14188 (struct dwarf2_per_objfile) <queue>: New member.
14189 * dwarf2/read.c (struct dwarf2_queue_item): Move to
14190 dwarf2/read.h.
14191 (dwarf2_queue, dwarf2_queue_tail): Remove.
14192 (class dwarf2_queue_guard): Add parameter to constructor. Use
14193 DISABLE_COPY_AND_ASSIGN.
14194 <m_per_objfile>: New member.
14195 <~dwarf2_queue_guard>: Rewrite.
14196 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
14197 Update.
14198 (~dwarf2_queue_item): New.
14199
3e225074
TT
142002020-02-08 Tom Tromey <tom@tromey.com>
14201
14202 * dwarf2/read.c (struct die_info) <has_children>: New member.
14203 (dw2_get_file_names_reader): Remove has_children.
14204 (dw2_get_file_names): Update.
14205 (read_cutu_die_from_dwo): Remove has_children.
14206 (cutu_reader::init_tu_and_read_dwo_dies)
14207 (cutu_reader::cutu_reader): Update.
14208 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
14209 Remove has_children.
14210 (build_type_psymtabs_1, process_skeletonless_type_unit)
14211 (load_partial_comp_unit, load_full_comp_unit): Update.
14212 (create_dwo_cu_reader): Remove has_children.
14213 (create_cus_hash_table, read_die_and_children): Update.
14214 (read_full_die_1,read_full_die): Remove has_children.
14215 (read_signatured_type): Update.
14216 (class cutu_reader) <has_children>: Remove.
14217
82ca8957
TT
142182020-02-08 Tom Tromey <tom@tromey.com>
14219
14220 * dwarf2/expr.c: Rename from dwarf2expr.c.
14221 * dwarf2/expr.h: Rename from dwarf2expr.h.
14222 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
14223 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
14224 * dwarf2/frame.c: Rename from dwarf2-frame.c.
14225 * dwarf2/frame.h: Rename from dwarf2-frame.h.
14226 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
14227 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
14228 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
14229 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
14230 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
14231 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
14232 * dwarf2/loc.c: Rename from dwarf2loc.c.
14233 * dwarf2/loc.h: Rename from dwarf2loc.h.
14234 * dwarf2/read.c: Rename from dwarf2read.c.
14235 * dwarf2/read.h: Rename from dwarf2read.h.
14236 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
14237 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
14238 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
14239 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
14240 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
14241 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
14242 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
14243 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
14244 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
14245 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
14246 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
14247 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
14248 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
14249 Update.
14250 * Makefile.in (COMMON_SFILES): Update.
14251 (HFILES_NO_SRCDIR): Update.
14252
9e35d499
TT
142532020-02-08 Tom Tromey <tom@tromey.com>
14254
14255 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
14256 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
14257
1eba2311
TT
142582020-02-08 Tom Tromey <tom@tromey.com>
14259
14260 * dwarf2read.h (struct die_info): Don't declare.
14261
e41c2da2
TT
142622020-02-08 Tom Tromey <tom@tromey.com>
14263
14264 * dwarf2read.h (die_info_ptr): Remove typedef.
14265
4fc6c0d5
TT
142662020-02-08 Tom Tromey <tom@tromey.com>
14267
14268 * dwarf2read.c (read_call_site_scope)
14269 (handle_data_member_location, dwarf2_add_member_fn)
14270 (mark_common_block_symbol_computed, read_common_block)
14271 (attr_to_dynamic_prop, partial_die_info::read)
14272 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
14273 (dwarf2_symbol_mark_computed, set_die_type): Update.
14274 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
14275 method.
14276 (attr_form_is_block): Don't declare.
14277 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
14278
cd6c91b4
TT
142792020-02-08 Tom Tromey <tom@tromey.com>
14280
14281 * dwarf2read.c (dwarf2_find_base_address, )
14282 (read_call_site_scope, rust_containing_type)
14283 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
14284 (handle_data_member_location, dwarf2_add_member_fn)
14285 (get_alignment, read_structure_type, process_structure_scope)
14286 (mark_common_block_symbol_computed, read_common_block)
14287 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
14288 (partial_die_info::read, read_attribute_value, new_symbol)
14289 (lookup_die_type, dwarf2_get_ref_die_offset)
14290 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
14291 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
14292 (dwarf2_symbol_mark_computed): Update.
14293 * dwarf2/attribute.h (struct attribute) <value_as_address,
14294 form_is_section_offset, form_is_constant, form_is_ref>: Declare
14295 methods.
14296 (value_as_address, attr_form_is_section_offset)
14297 (attr_form_is_constant, attr_form_is_ref): Don't declare.
14298 * dwarf2/attribute.c (attribute::value_as_address)
14299 (attribute::form_is_section_offset, attribute::form_is_constant)
14300 (attribute::form_is_ref): Now methods.
14301
162dce55
TT
143022020-02-08 Tom Tromey <tom@tromey.com>
14303
14304 * dwarf2read.c (struct attribute, DW_STRING)
14305 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
14306 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
14307 (attr_form_is_block, attr_form_is_section_offset)
14308 (attr_form_is_constant, attr_form_is_ref): Move.
14309 * dwarf2/attribute.h: New file.
14310 * dwarf2/attribute.c: New file, from dwarf2read.c.
14311 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
14312
3054dd54
TT
143132020-02-08 Tom Tromey <tom@tromey.com>
14314
14315 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
14316 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
14317 Move.
14318 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
14319 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
14320 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
14321 abbrev.c.
14322 * dwarf2/abbrev.h: New file.
14323 * dwarf2/abbrev.c: New file, from dwarf2read.c.
14324 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
14325
96b79293
TT
143262020-02-08 Tom Tromey <tom@tromey.com>
14327
14328 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
14329 (dwarf2_section_size, dwarf2_get_section_info)
14330 (create_signatured_type_table_from_debug_names)
14331 (create_addrmap_from_aranges, read_debug_names_from_section)
14332 (get_gdb_index_contents_from_section, read_comp_unit_head)
14333 (error_check_comp_unit_head, read_abbrev_offset)
14334 (create_debug_type_hash_table, init_cu_die_reader)
14335 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
14336 (read_comp_units_from_section, create_cus_hash_table)
14337 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
14338 (create_dwp_v2_section, dwarf2_rnglists_process)
14339 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
14340 (abbrev_table_read_table, read_indirect_string_at_offset_from)
14341 (read_indirect_string_from_dwz, read_addr_index_1)
14342 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
14343 (dwarf_decode_macro_bytes, dwarf_decode_macros)
14344 (fill_in_loclist_baton): Update.
14345 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
14346 get_containing_section, get_bfd_owner, get_bfd_section,
14347 get_file_name, get_id, get_flags, empty, read>: Declare methods.
14348 (dwarf2_read_section, get_section_name, get_section_file_name)
14349 (get_containing_section, get_section_bfd_owner)
14350 (get_section_bfd_section, get_section_name, get_section_file_name)
14351 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
14352 declare.
14353 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
14354 (dwarf2_section_info::get_bfd_owner)
14355 (dwarf2_section_info::get_bfd_section)
14356 (dwarf2_section_info::get_name)
14357 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
14358 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
14359 (dwarf2_section_info::read): Now methods.
14360 * dwarf-index-write.c (class debug_names): Update.
14361
2c86cff9
TT
143622020-02-08 Tom Tromey <tom@tromey.com>
14363
14364 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
14365 Move to dwarf2/section.h.
14366 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
14367 (get_section_bfd_section, get_section_name)
14368 (get_section_file_name, get_section_id, get_section_flags)
14369 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
14370 dwarf2/section.c.
14371 * dwarf2/section.h: New file.
14372 * dwarf2/section.c: New file, from dwarf2read.c.
14373 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
14374
f4382c45
TT
143752020-02-08 Tom Tromey <tom@tromey.com>
14376
14377 * dwarf2read.h (read_unsigned_leb128): Don't declare.
14378 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
14379 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
14380 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
14381 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
14382 * dwarf2/leb.h: New file, from dwarf2read.c.
14383 * dwarf2/leb.c: New file, from dwarf2read.c.
14384 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
14385 Remove.
14386 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
14387 (COMMON_SFILES): Add dwarf2/leb.c.
14388
01840b7a
JB
143892020-02-08 Joel Brobecker <brobecker@adacore.com>
14390
14391 GDB 9.1 released.
14392
dfcb27e4
IB
143932020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
14394
14395 PR gdb/25190:
aac66a4c
SM
14396 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
14397 * gdb/remote.c (remote_console_output): Update.
14398 * gdb/ui-file.c (fputs_unfiltered): Rename to...
14399 (ui_file_puts): ...this.
14400 * gdb/ui-file.h (ui_file_puts): Add declaration.
14401 * gdb/utils.c (emit_style_escape): Update.
14402 (flush_wrap_buffer): Update.
14403 (fputs_maybe_filtered): Update.
14404 (fputs_unfiltered): Add function.
dfcb27e4 14405
faa17681
IB
144062020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
14407
aac66a4c
SM
14408 * gdb/event-loop.c (gdb_wait_for_event): Update.
14409 * gdb/printcmd.c (printf_command): Update.
14410 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
14411 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
14412 (gdb_os_flush_stderr): Update.
14413 * gdb/remote.c (remote_console_output): Update.
14414 * gdb/ui-file.c (gdb_flush): Rename to...
14415 (ui_file_flush): ...this.
14416 (stderr_file::write): Update.
14417 (stderr_file::puts): Update.
14418 * gdb/ui-file.h (gdb_flush): Rename to...
14419 (ui_file_flush): ...this.
14420 * gdb/utils.c (gdb_flush): Add function.
14421 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 14422
5abbbe1d
TT
144232020-02-07 Tom Tromey <tromey@adacore.com>
14424
14425 PR breakpoints/24915:
14426 * source.c (find_and_open_source): Do not check basenames_may_differ.
14427
919adfe8
TT
144282020-02-07 Tom Tromey <tom@tromey.com>
14429
14430 * README: Update gdbserver documentation.
14431 * gdbserver: Move to top level.
14432 * configure.tgt (build_gdbserver): Remove.
14433 * configure.ac: Remove --enable-gdbserver.
14434 * configure: Rebuild.
14435 * Makefile.in (distclean): Don't mention gdbserver.
14436
1d5d29e7
SV
144372020-02-06 Shahab Vahedi <shahab@synopsys.com>
14438
14439 * source-cache.c (source_cache::ensure): Surround
14440 get_plain_source_lines with a try/catch.
14441 (source_cache::get_line_charpos): Get rid of try/catch
14442 and only check for the return value of "ensure".
14443 * tui/tui-source.c (tui_source_window::set_contents):
14444 Simplify "nlines" calculation.
14445
6eb1129c
SV
144462020-02-06 Shahab Vahedi <shahab@synopsys.com>
14447
14448 * MAINTAINERS (Write After Approval): Add myself.
14449
c6a42d11
CB
144502020-02-05 Christian Biesinger <cbiesinger@google.com>
14451
14452 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
14453 function call.
14454
c8ecdda6
CB
144552020-02-05 Christian Biesinger <cbiesinger@google.com>
14456
14457 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
14458
f6480e70
MR
144592020-02-05 Maciej W. Rozycki <macro@wdc.com>
14460
14461 * nat/riscv-linux-tdesc.h: New file.
14462 * nat/riscv-linux-tdesc.c: New file, taking code from...
14463 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
14464 ... here.
14465 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
14466 NATDEPFILES.
14467
dcc9fbc6
AB
144682020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
14469
14470 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
14471 we don't set the fake simulator ptid to the null_ptid.
14472
719546c4
SM
144732020-02-03 Simon Marchi <simon.marchi@efficios.com>
14474
14475 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
14476 * gdbthread.h (class thread_info) <resumed>: Likewise.
14477 * infrun.c (resume_1): Likewise.
14478 (proceed): Likewise.
14479 (infrun_thread_stop_requested): Likewise.
14480 (stop_all_threads): Likewise.
14481 (handle_inferior_event): Likewise.
14482 (restart_threads): Likewise.
14483 (finish_step_over): Likewise.
14484 (keep_going_stepped_thread): Likewise.
14485 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
14486 (linux_handle_extended_wait): Likewise.
14487 * record-btrace.c (get_thread_current_frame_id): Likewise.
14488 * record-full.c (record_full_wait_1): Likewise.
14489 * remote.c (remote_target::process_initial_stop_replies): Likewise.
14490 * target.c (target_resume): Likewise.
14491 * thread.c (set_running_thread): Likewise.
14492
e409c542
AKS
144932020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14494
14495 * f-valprint.c (f77_print_array_1): Changed datatype of index
14496 variable to LONGEST from int to enable it to contain bound
14497 values correctly.
14498
ee98c0da
MR
144992020-02-03 Maciej W. Rozycki <macro@wdc.com>
14500
14501 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
14502 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
14503 offsets according to FLEN determined.
14504 (riscv_linux_nat_target::read_description): Determine FLEN
14505 dynamically.
14506 (riscv_linux_nat_target::fetch_registers): Size regset buffer
14507 according to FLEN determined.
14508 (riscv_linux_nat_target::store_registers): Likewise.
14509
aa66aac4
SV
145102020-02-01 Shahab Vahedi <shahab@synopsys.com>
14511
14512 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
14513 when reg->group is empty and reggroup is not.
14514
fd9faca8
TT
145152020-01-31 Tom Tromey <tromey@adacore.com>
14516
14517 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
14518 Call beneath target's mourn_inferior after unpushing.
14519
42330a68
AB
145202020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
14521
14522 PR tui/9765
14523 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
14524 have enough lines to fill the screen, still return the lowest
14525 address we found.
14526
7a27a45b
AB
145272020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
14528
14529 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
14530 '-', '<', and '>' commands.
14531
c47f70e2
PA
145322020-01-29 Pedro Alves <palves@redhat.com>
14533 Sergio Durigan Junior <sergiodj@redhat.com>
14534
14535 * infcmd.c (construct_inferior_arguments): Assert that
14536 'argc' is greater than 0.
14537
5133a315
LM
145382020-01-29 Luis Machado <luis.machado@linaro.org>
14539
14540 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
14541 (BRK_INSN_MASK): Define to 0xd4200000.
14542 (aarch64_program_breakpoint_here_p): New function.
14543 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
14544 * arch-utils.c (default_program_breakpoint_here_p): Moved from
14545 breakpoint.c.
14546 * arch-utils.h (default_program_breakpoint_here_p): Moved from
14547 breakpoint.h
14548 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
14549 call gdbarch_program_breakpoint_here_p.
14550 (program_breakpoint_here): Moved to arch-utils.c, renamed to
14551 default_program_breakpoint_here_p, changed return type to bool and
14552 simplified.
14553 * breakpoint.h (program_breakpoint_here): Moved prototype to
14554 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
14555 return type to bool.
14556 * gdbarch.c: Regenerate.
14557 * gdbarch.h: Regenerate.
14558 * gdbarch.sh (program_breakpoint_here_p): New method.
14559 * infrun.c (handle_signal_stop): Call
14560 gdbarch_program_breakpoint_here_p.
14561
168f8c6b
TT
145622020-01-26 Tom Tromey <tom@tromey.com>
14563
14564 * ctfread.c (struct ctf_fp_info): Reindent.
14565 (_initialize_ctfread): Remove.
14566
128a391f
TT
145672020-01-26 Tom Tromey <tom@tromey.com>
14568
14569 * psymtab.c (partial_map_expand_apply)
14570 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
14571 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
14572 (psym_print_stats, psym_expand_symtabs_for_function)
14573 (psym_map_symbol_filenames, psym_map_matching_symbols)
14574 (psym_expand_symtabs_matching)
14575 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
14576 (maintenance_check_psymtabs): Use new methods.
14577 * psympriv.h (struct partial_symtab) <readin_p,
14578 get_compunit_symtab>: New methods.
14579 <readin, compunit_symtab>: Remove members.
14580 (struct standard_psymtab): New.
14581 (struct legacy_psymtab): Derive from standard_psymtab.
14582 * dwarf2read.h (struct dwarf2_psymtab): Derive from
14583 standard_psymtab.
14584 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
14585
0494dbec
TT
145862020-01-26 Tom Tromey <tom@tromey.com>
14587
14588 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
14589 read_dependencies. Add assert.
14590 * psymtab.c (partial_symtab::read_dependencies): New method.
14591 * psympriv.h (struct partial_symtab) <read_dependencies>: New
14592 method.
14593 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
14594 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
14595 read_dependencies.
14596 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
14597 Add assert.
14598
8566b89b
TT
145992020-01-26 Tom Tromey <tom@tromey.com>
14600
14601 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
14602 Call expand_psymtab.
14603 (xcoff_read_symtab): Call expand_psymtab.
14604 (xcoff_start_psymtab, xcoff_end_psymtab): Set
14605 legacy_expand_psymtab.
14606 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
14607 method.
14608 (struct legacy_psymtab) <expand_psymtab>: Implement.
14609 <legacy_expand_psymtab>: New member.
14610 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
14611 (parse_partial_symbols): Set legacy_expand_psymtab.
14612 (psymtab_to_symtab_1): Change argument order. Call
14613 expand_psymtab.
14614 (new_psymtab): Set legacy_expand_psymtab.
14615 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
14616 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
14617 expand_psymtab.
14618 (dwarf2_psymtab::expand_psymtab): Rename from
14619 psymtab_to_symtab_1. Call expand_psymtab.
14620 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
14621 (dbx_end_psymtab): Likewise.
14622 (dbx_psymtab_to_symtab_1): Change argument order. Call
14623 expand_psymtab.
14624 (dbx_read_symtab): Call expand_psymtab.
14625 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
14626 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
14627 (ctf_psymtab::read_symtab): Call expand_psymtab.
14628
077cbab2
TT
146292020-01-26 Tom Tromey <tom@tromey.com>
14630
14631 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
14632 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
14633 messages.
14634 * mdebugread.c (mdebug_read_symtab): Remove prints.
14635 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
14636 assert.
14637 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
14638
891813be
TT
146392020-01-26 Tom Tromey <tom@tromey.com>
14640
14641 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
14642 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
14643 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
14644 legacy_symtab.
14645 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
14646 * psymtab.c (psymtab_to_symtab): Call method.
14647 (dump_psymtab): Update.
14648 * psympriv.h (struct partial_symtab): Add virtual destructor.
14649 <read_symtab>: New method.
14650 (struct legacy_symtab): New.
14651 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
14652 (struct pst_map) <pst>: Now a legacy_psymtab.
14653 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
14654 (new_psymtab): Use legacy_psymtab.
14655 * dwarf2read.h (struct dwarf2_psymtab): New.
14656 (struct dwarf2_per_cu_data) <psymtab>: Use it.
14657 * dwarf2read.c (dwarf2_create_include_psymtab)
14658 (dwarf2_build_include_psymtabs, create_type_unit_group)
14659 (create_partial_symtab, process_psymtab_comp_unit_reader)
14660 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
14661 (set_partial_user): Use dwarf2_psymtab.
14662 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
14663 (psymtab_to_symtab_1, process_full_comp_unit)
14664 (process_full_type_unit, dwarf2_ranges_read)
14665 (dwarf2_get_pc_bounds, psymtab_include_file_name)
14666 (dwarf_decode_lines): Use dwarf2_psymtab.
14667 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
14668 (add_address_entry_worker, write_one_signatured_type)
14669 (recursively_count_psymbols, recursively_write_psymbols)
14670 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
14671 (write_debug_names): Likewise.
14672 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
14673 <pst>: Now a legacy_psymtab.
14674 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
14675 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
14676 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
14677 * ctfread.c (struct ctf_psymtab): New.
14678 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
14679 ctf_psymtab.
14680 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
14681 (create_partial_symtab): Return a ctf_psymtab.
14682 (scan_partial_symbols): Update.
14683
c3693a1d
TT
146842020-01-26 Tom Tromey <tom@tromey.com>
14685
14686 * xcoffread.c (xcoff_start_psymtab): Use new.
14687 * psymtab.c (partial_symtab::partial_symtab): New constructor,
14688 renamed from start_psymtab_common.
14689 * psympriv.h (struct partial_symtab): Add new constructor.
14690 (start_psymtab_common): Don't declare.
14691 * mdebugread.c (parse_partial_symbols): Use new.
14692 * dwarf2read.c (create_partial_symtab): Use new.
14693 * dbxread.c (start_psymtab): Use new.
14694 * ctfread.c (create_partial_symtab): Use new.
14695
32caafd0
TT
146962020-01-26 Tom Tromey <tom@tromey.com>
14697
14698 * xcoffread.c (xcoff_end_psymtab): Use new.
14699 * psymtab.c (start_psymtab_common): Use new.
14700 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
14701 Update.
14702 * psympriv.h (struct partial_symtab): Add parameters to
14703 constructor. Don't inline.
14704 (allocate_psymtab): Don't declare.
14705 * mdebugread.c (new_psymtab): Use new.
14706 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
14707 * dbxread.c (dbx_end_psymtab): Use new.
14708
abaa2f23
TT
147092020-01-26 Tom Tromey <tom@tromey.com>
14710
14711 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
14712 allocate_psymtab. Update documentation.
14713 * psymtab.c (psymtab_storage::install_psymtab): Rename from
14714 allocate_psymtab. Do not use new.
14715 (allocate_psymtab): Use new. Update.
14716
6d94535f
TT
147172020-01-26 Tom Tromey <tom@tromey.com>
14718
14719 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
14720 * psymtab.c (psym_print_stats): Update.
14721 * psympriv.h (struct partial_symtab) <readin,
14722 psymtabs_addrmap_supported, anonymous>: Now bool.
14723 * mdebugread.c (psymtab_to_symtab_1): Update.
14724 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
14725 (build_type_psymtabs_reader, psymtab_to_symtab_1)
14726 (process_full_comp_unit, process_full_type_unit): Update.
14727 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
14728 * ctfread.c (psymtab_to_symtab): Update.
14729
6f17252b
TT
147302020-01-26 Tom Tromey <tom@tromey.com>
14731
14732 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
14733 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
14734 * psymtab.c (psymtab_storage): Delete psymtabs.
14735 (psymtab_storage::allocate_psymtab): Use new.
14736 (psymtab_storage::discard_psymtab): Use delete.
14737 * psympriv.h (struct partial_symtab): Add constructor and
14738 initializers.
14739
f6f1cebc
TT
147402020-01-26 Tom Tromey <tom@tromey.com>
14741
14742 * machoread.c: Do not include psympriv.h.
14743
e47e48f6
PW
147442020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14745
14746 * NEWS: Mention the new option and the set/show commands.
14747
a2fedca9
PW
147482020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14749
14750 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
14751 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
14752 (validate_exec_file): New variables, enums, functions.
14753 (exec_file_locate_attach, print_section_info): Style the filenames.
14754 (_initialize_exec): Install show_exec_file_mismatch_command and
14755 set_exec_file_mismatch_command.
14756 * gdbcore.h (validate_exec_file): Declare.
14757 * infcmd.c (attach_command): Call validate_exec_file.
14758 * remote.c ( remote_target::remote_add_inferior): Likewise.
14759
7ffa82e1
AB
147602020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14761
14762 * frame.c (find_frame_sal): Move call to get_next_frame into more
14763 inner scope.
14764 * inline-frame.c (inilne_state) <inline_state>: Update argument
14765 types.
14766 (inilne_state) <skipped_symbol>: Rename to...
14767 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
14768 (skip_inline_frames): Build vector of skipped symbols and use this
14769 to reate the inline_state.
14770 (inline_skipped_symbol): Add a comment and some assertions, fetch
14771 skipped symbol from the list.
14772
3d92a3e3
AB
147732020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14774
14775 * buildsym.c (lte_is_less_than): Delete.
14776 (buildsym_compunit::end_symtab_with_blockvector): Create local
14777 lambda function to sort line table entries, and use
14778 std::stable_sort instead of std::sort.
14779 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
14780 markers when looking for a previous line.
14781
94a72be7
AB
147822020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14783
14784 * dwarf2read.c (lnp_state_machine::record_line): Include
14785 end_sequence parameter in debug print out. Record the line if we
14786 are at an end_sequence marker even if it's not the start of a
14787 statement.
14788 * symmisc.c (maintenance_print_one_line_table): Print end of
14789 sequence markers with 'END' not '0'.
14790
53af73bf
PA
147912020-01-24 Pedro Alves <palves@redhat.com>
14792
14793 PR gdb/25410
14794 * thread.c (scoped_restore_current_thread::restore): Use
14795 switch_to_inferior_no_thread.
14796 * exec.c: Include "progspace-and-thread.h".
14797 (add_target_sections, remove_target_sections):
14798 scoped_restore_current_pspace_and_thread instead of
14799 scoped_restore_current_thread.
14800 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
14801 and aspace to the inferior before calling clone_program_space.
14802 Remove stale comment.
14803
3050c6f4
CB
148042020-01-24 Christian Biesinger <cbiesinger@google.com>
14805
14806 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
14807 (arm_netbsd_nat_target::fetch_registers): ...this.
14808 (arm_nbsd_nat_target::store_registers): Rename to...
14809 (arm_netbsd_nat_target::store_registers): ...this.
14810
73685c7e
CB
148112020-01-24 Christian Biesinger <cbiesinger@google.com>
14812
14813 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
14814 register_t.
14815
89203d40
CB
148162020-01-24 Christian Biesinger <cbiesinger@google.com>
14817
14818 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
14819 Update comment.
14820 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
14821 Likewise.
14822 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
14823 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
14824 the correct replacement (iterate_over_regset_sections).
14825 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
14826 Update comment.
14827
1ba1ac88
AB
148282020-01-24 Graham Markall <graham.markall@embecosm.com>
14829
14830 PR gdb/23718
14831 * gdb/python/python.c (execute_gdb_command): Call
14832 async_enable_stdin in catch block.
14833
f3364a6d
AB
148342020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14835
14836 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
14837 SWITCH_THRU_ALL_UIS.
14838
733d0a67
AB
148392020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14840
14841 PR tui/9765
14842 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
14843 comment, add extra parameter, and update to store previous symbol
14844 when appropriate.
14845 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
14846 add extra parameter.
14847 * tui/tui-disasm.c (tui_disassemble): Update header comment,
14848 remove unneeded parameter, add try/catch around gdb_print_insn,
14849 rewrite to add items to asm_lines vector.
14850 (tui_find_backward_disassembly_start_address): New function.
14851 (tui_find_disassembly_address): Updated throughout.
14852 (tui_disasm_window::set_contents): Update for changes to
14853 tui_disassemble.
14854 (tui_disasm_window::do_scroll_vertical): No need to adjust the
14855 number of lines to scroll.
14856
b3b3bada
SM
148572020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
14858
14859 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
14860 (SECT_OFF_DATA): Likewise.
14861 (SECT_OFF_RODATA): Likewise.
14862 (SECT_OFF_TEXT): Likewise.
14863 (SECT_OFF_BSS): Likewise.
14864 (struct objfile) <text_section_offset, data_section_offset>: New
14865 methods.
14866 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
14867 objfile::text_section_offset.
14868 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
14869 * coffread.c (coff_symtab_read): Likewise.
14870 (enter_linenos): Likewise.
14871 (process_coff_symbol): Likewise.
14872 * ctfread.c (get_objfile_text_range): Likewise.
14873 * dtrace-probe.c (dtrace_probe::get_relocated_address):
14874 Use objfile::data_section_offset.
14875 * dwarf2-frame.c (execute_cfa_program): Use
14876 objfile::text_section_offset.
14877 (dwarf2_frame_find_fde): Likewise.
14878 * dwarf2read.c (create_addrmap_from_index): Likewise.
14879 (create_addrmap_from_aranges): Likewise.
14880 (dw2_find_pc_sect_compunit_symtab): Likewise.
14881 (process_psymtab_comp_unit_reader): Likewise.
14882 (add_partial_symbol): Likewise.
14883 (add_partial_subprogram): Likewise.
14884 (process_full_comp_unit): Likewise.
14885 (read_file_scope): Likewise.
14886 (read_func_scope): Likewise.
14887 (read_lexical_block_scope): Likewise.
14888 (read_call_site_scope): Likewise.
14889 (dwarf2_rnglists_process): Likewise.
14890 (dwarf2_ranges_process): Likewise.
14891 (dwarf2_ranges_read): Likewise.
14892 (dwarf_decode_lines_1): Likewise.
14893 (new_symbol): Likewise.
14894 (dwarf2_fetch_die_loc_sect_off): Likewise.
14895 (dwarf2_per_cu_text_offset): Likewise.
14896 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
14897 * hppa-tdep.c (read_unwind_info): Likewise.
14898 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
14899 * psympriv.h (struct partial_symtab): Likewise.
14900 * psymtab.c (find_pc_sect_psymtab): Likewise.
14901 * solib-svr4.c (enable_break): Likewise.
14902 * stap-probe.c (relocate_address): Use
14903 objfile::data_section_offset.
14904 * xcoffread.c (enter_line_range): Use
14905 objfile::text_section_offset.
14906 (read_xcoff_symtab): Likewise.
14907
ab53f382
SM
149082020-01-23 Simon Marchi <simon.marchi@efficios.com>
14909
14910 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
14911 declaration to narrower scopes.
14912
e7eee665
SM
149132020-01-23 Simon Marchi <simon.marchi@efficios.com>
14914
14915 * darwin-nat.h (struct darwin_exception_msg, enum
14916 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
14917 Move up.
14918 (class darwin_nat_target) <wait_1, check_new_threads,
14919 decode_exception_message, decode_message, stop_inferior,
14920 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
14921 * darwin-nat.c (darwin_check_new_threads): Rename to...
14922 (darwin_nat_target::check_new_threads): ... this.
14923 (darwin_suspend_inferior_it): Remove.
14924 (darwin_decode_exception_message): Rename to...
14925 (darwin_nat_target::decode_exception_message): ... this.
14926 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
14927 (darwin_decode_message): Rename to...
14928 (darwin_nat_target::decode_message): ... this.
14929 (cancel_breakpoint): Rename to...
14930 (darwin_nat_target::cancel_breakpoint): ... this.
14931 (darwin_wait): Rename to...
14932 (darwin_nat_target::wait_1): ... this. Use range-based for loop
14933 instead of iterate_over_inferiors.
14934 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
14935 (darwin_stop_inferior): Rename to...
14936 (darwin_nat_target::stop_inferior): ... this.
14937 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
14938 (darwin_init_thread_list): Rename to...
14939 (darwin_nat_target::init_thread_list): ... this.
14940 (darwin_ptrace_him): Rename to...
14941 (darwin_nat_target::ptrace_him): ... this.
14942 (darwin_nat_target::create_inferior): Pass lambda function to
14943 fork_inferior.
14944 (darwin_nat_target::detach): Call stop_inferior instead of
14945 darwin_stop_inferior.
14946 * fork-inferior.h (fork_inferior): Change init_trace_fun
14947 parameter to gdb::function_view.
14948 * fork-inferior.c (fork_inferior): Likewise.
14949
c162ed3e
HD
149502020-01-23 Hannes Domani <ssbssa@yahoo.de>
14951
14952 * i386-cygwin-tdep.c (core_process_module_section): Update.
14953 * windows-nat.c (struct lm_info_windows): Add text_offset.
14954 (windows_xfer_shared_libraries): Update.
14955 * windows-tdep.c (windows_xfer_shared_library):
14956 Add text_offset_cached argument.
14957 * windows-tdep.h (windows_xfer_shared_library): Update.
14958
a1237872
SM
149592020-01-21 Simon Marchi <simon.marchi@efficios.com>
14960
14961 * gdbarch.sh: Add declaration for _initialize_gdbarch.
14962
b3ee6dd9
SM
149632020-01-21 Simon Marchi <simon.marchi@efficios.com>
14964
14965 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
14966 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
14967 replace with range-based for.
14968 (gdbsim_interrupt_inferior): Remove.
14969 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
14970 with a range-based for. Inline code from
14971 gdbsim_interrupt_inferior.
14972
f9fac3c8
SM
149732020-01-21 Simon Marchi <simon.marchi@efficios.com>
14974
14975 * infrun.c (proceed): Fix indentation.
14976
f6474de9
TT
149772020-01-21 Tom Tromey <tromey@adacore.com>
14978
14979 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
14980 * python/python.c (python_extension_ops): Update.
14981 (gdbpy_colorize): New function.
14982 * python/lib/gdb/__init__.py (colorize): New function.
14983 * extension.h (ext_lang_colorize): Declare.
14984 * extension.c (ext_lang_colorize): New function.
14985 * extension-priv.h (struct extension_language_ops) <colorize>: New
14986 member.
14987 * cli/cli-style.c (_initialize_cli_style): Update help text.
14988
f0c702d4
LM
149892020-01-21 Luis Machado <luis.machado@linaro.org>
14990
14991 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
14992 <cond>: Change type to bool.
14993 (aarch64_displaced_step_b_cond): Update cond to use bool type.
14994 (aarch64_displaced_step_cb): Likewise.
14995 (aarch64_displaced_step_tb): Likewise.
14996
1ab139e5
LM
149972020-01-21 Luis Machado <luis.machado@linaro.org>
14998
14999 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
15000 output.
15001
0c271889
LM
150022020-01-21 Luis Machado <luis.machado@linaro.org>
15003
15004 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
15005 <pc_adjust>: Adjust the documentation.
15006 (aarch64_displaced_step_fixup): Check if PC really moved before
15007 adjusting it.
15008
4d89c1c7
TT
150092020-01-19 Tom Tromey <tom@tromey.com>
15010
15011 * disasm.c (~gdb_disassembler): New destructor.
15012 (gdb_buffered_insn_length): Call disassemble_free_target.
15013 * disasm.h (class gdb_disassembler): Declare destructor. Use
15014 DISABLE_COPY_AND_ASSIGN.
15015
c0ab21c2
TT
150162020-01-19 Tom Tromey <tom@tromey.com>
15017
15018 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
15019 (die_reader_func_ftype): Remove.
15020 (cutu_reader): New class.
15021 (dw2_get_file_names_reader): Remove "data" parameter.
15022 (dw2_get_file_names): Use cutu_reader.
15023 (create_debug_type_hash_table): Update.
15024 (read_cutu_die_from_dwo): Update comment.
15025 (lookup_dwo_unit): Add dwo_name parameter.
15026 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
15027 die_reader_func_ftype and data parameters.
15028 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
15029 Remove die_reader_func_ftype and data parameters.
15030 (~cutu_reader): New; from init_cutu_and_read_dies.
15031 (cutu_reader::cutu_reader): Rename from
15032 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
15033 and data parameters.
15034 (init_cutu_and_read_dies_simple): Remove.
15035 (struct process_psymtab_comp_unit_data): Remove.
15036 (process_psymtab_comp_unit_reader): Remove data parameter; add
15037 want_partial_unit and pretend_language parameters.
15038 (process_psymtab_comp_unit): Use cutu_reader.
15039 (build_type_psymtabs_reader): Remove data parameter.
15040 (build_type_psymtabs_1): Use cutu_reader.
15041 (process_skeletonless_type_unit): Likewise.
15042 (load_partial_comp_unit_reader): Remove.
15043 (load_partial_comp_unit): Use cutu_reader.
15044 (load_full_comp_unit_reader): Remove.
15045 (load_full_comp_unit): Use cutu_reader.
15046 (struct create_dwo_cu_data): Remove.
15047 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
15048 dwo_unit parameters.
15049 (create_cus_hash_table): Use cutu_reader.
15050 (struct dwarf2_read_addr_index_data): Remove.
15051 (dwarf2_read_addr_index_reader): Remove.
15052 (dwarf2_read_addr_index): Use cutu_reader.
15053 (read_signatured_type_reader): Remove.
15054 (read_signatured_type): Use cutu_reader.
15055
45bbae5c
TT
150562020-01-19 Tom Tromey <tom@tromey.com>
15057
15058 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
15059 * tui/tui-wingeneral.h (class tui_suppress_output): New.
15060 (tui_wrefresh): Declare.
15061 * tui/tui-wingeneral.c (suppress_output): New global.
15062 (tui_suppress_output, ~tui_suppress_output): New constructor and
15063 destructor.
15064 (tui_wrefresh): New function.
15065 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
15066 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
15067 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
15068 method.
15069 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
15070 tui_wrefresh.
15071 (tui_data_window::no_refresh): New method.
15072 (tui_data_item_window::refresh_window): Call tui_wrefresh.
15073 (tui_reg_command): Use tui_suppress_output
15074 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
15075 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
15076 method.
15077 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
15078
4f13c1c0
TT
150792020-01-19 Tom Tromey <tom@tromey.com>
15080
15081 * tui/tui-winsource.c (tui_update_source_windows_with_line):
15082 Handle case where symtab is null.
15083
fa47e446
SM
150842020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
15085
15086 * linux-fork.c (one_fork_p): Simplify.
15087
26f42329
SM
150882020-01-17 Simon Marchi <simon.marchi@efficios.com>
15089
15090 * top.c (struct qt_args): Remove.
15091 (kill_or_detach): Change return type to void, replace `void *`
15092 parameter with a proper one.
15093 (print_inferior_quit_action): Likewise.
15094 (quit_confirm): Use range-based for loop to iterate over inferiors.
15095 (quit_force): Likewise.
15096
a9ac81b1
SM
150972020-01-17 Simon Marchi <simon.marchi@efficios.com>
15098
15099 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
15100 `void *` parameter with proper parameters.
15101 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
15102 (print_one_inferior): Change return type to void, replace `void *`
15103 parameter with proper parameters.
15104 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
15105 inferiors.
15106 (get_other_inferior): Remove.
15107 (mi_cmd_remove_inferior): Use range-based loop to iterate over
15108 inferiors.
15109
788eca49
SM
151102020-01-17 Simon Marchi <simon.marchi@efficios.com>
15111
15112 * mi/mi-interp.c (report_initial_inferior): Remove.
15113 (mi_interp::init): Use range-based for to iterate over inferiors.
15114
d9bc85b6
SM
151152020-01-17 Simon Marchi <simon.marchi@efficios.com>
15116
15117 * python/py-inferior.c (build_inferior_list): Remove.
15118 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
15119
40c94099
CB
151202020-01-16 Christian Biesinger <cbiesinger@google.com>
15121
15122 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
15123 (btrace_stitch_trace): Likewise.
15124 * charset.c (intermediate_encoding): Likewise (vaild).
15125 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
15126 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
15127 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
15128
e0cdfe3c
HD
151292020-01-16 Hannes Domani <ssbssa@yahoo.de>
15130
15131 * windows-tdep.c (windows_get_tlb_type):
15132 Add rtl_user_process_parameters type.
15133
790f1718 151342020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 15135 Norbert Lange <nolange79@gmail.com>
790f1718
PA
15136
15137 PR build/24805
15138 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
15139 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
15140 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
15141 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
15142 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
15143 (ps_plog): Redeclare exported functions with default visibility.
15144
3112ed97
NA
151452020-01-16 Nitika Achra <Nitika.Achra@amd.com>
15146
15147 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
15148 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
15149
8dc3273e
SM
151502020-01-15 Simon Marchi <simon.marchi@efficios.com>
15151
15152 * infcmd.c (post_create_inferior): Use get_thread_regcache
15153 instead of get_current_regcache.
15154
ff47f4f0
TT
151552020-01-14 Tom Tromey <tom@tromey.com>
15156
15157 PR symtab/12535:
15158 * python/python.c (gdbpy_decode_line): Treat empty string the same
15159 as no argument.
15160
975f45b7
TT
151612020-01-14 Tom Tromey <tom@tromey.com>
15162
15163 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
15164
25e57356
TT
151652020-01-14 Tom Tromey <tom@tromey.com>
15166
15167 * nat/linux-btrace.c: Don't include <config.h>.
15168 * nat/linux-ptrace.c: Don't include <config.h>.
15169 * nat/x86-linux-dregs.c: Don't include <config.h>.
15170
05ea2a05
TT
151712020-01-14 Tom Tromey <tom@tromey.com>
15172
15173 * configure: Rebuild.
15174 * configure.ac: Move many checks to ../gdbsupport/common.m4.
15175
01027315
TT
151762020-01-14 Tom Tromey <tom@tromey.com>
15177
15178 * nat/x86-linux-dregs.c: Include configh.h.
15179 * nat/linux-ptrace.c: Include configh.h.
15180 * nat/linux-btrace.c: Include configh.h.
15181 * defs.h: Include config.h, bfd.h.
15182 * configure.ac: Don't source common.host.
15183 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
15184 * configure: Rebuild.
15185 * acinclude.m4: Update path.
15186 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
15187 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
15188 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
15189 (CLIBS): Add LIBSUPPORT.
15190 (CDEPS): Likewise.
15191 (COMMON_SFILES): Remove gdbsupport files.
15192 (HFILES_NO_SRCDIR): Likewise.
15193 (stamp-version): Update path to create-version.sh.
15194 (ALLDEPFILES): Remove gdbsupport files.
15195
b2ceabe8
TT
151962020-01-14 Tom Tromey <tom@tromey.com>
15197
15198 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
15199 USE_WIN32API when needed.
15200 * configure.ac (USE_WIN32API): Don't define.
15201 (WIN32LIBS): Use WIN32APILIBS.
15202 * configure: Rebuild.
15203
25c51f71
TT
152042020-01-14 Tom Tromey <tom@tromey.com>
15205
15206 * configure: Rebuild.
15207 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
15208
717c684d
BE
152092020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
15210
15211 * skip.c (skip_function_command): Make skip w/o arguments use the
15212 name of the inlined function if pc is inside any inlined function.
15213
7da6a5b9
LM
152142020-01-14 Luis Machado <luis.machado@linaro.org>
15215
15216 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
15217 * infrun.c (resume_1): Likewise.
15218 (handle_inferior_event): Remove stale comment.
15219 * linux-nat.c (linux_nat_target::resume): Update comments.
15220 (save_stop_reason): Likewise.
15221 (linux_nat_filter_event): Likewise.
15222 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
15223
44e4c775
AB
152242020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15225
15226 * elfread.c (record_minimal_symbol): Set section index to 0 for
15227 non-allocatable sections.
15228
18a8505e
AT
15229
152302020-01-13 Ali Tamur <tamur@google.com>
15231
15232 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
15233 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
15234 to gdb::optional. Update comments.
15235 (dwo_file): Update comments.
15236 (read_attribute): Update API to take an additional out parameter,
15237 need_reprocess. This is used to mark attributes that need other
15238 attributes (e.g. str_offsets_base) for correct computation which may not
15239 have been read yet.
15240 (read_attribute_reprocess): New function declaration.
15241 (read_addr_index): Likewise.
15242 (read_dwo_str_index): Likewise.
15243 (read_stub_str_index): Likewise.
15244 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
15245 (lookup_addr_base): New function definition.
15246 (lookup_ranges_base): Likewise.
15247 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
15248 lookup_ranges_base.
15249 (init_cutu_and_read_dies): Update comments.
15250 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
15251 unit. This is used to inherit parent's str_offsets_base and addr_base.
15252 Update comments.
15253 (init_cutu_and_read_dies_simple): Reflect API changes.
15254 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
15255 (create_cus_hash_table): Change API to take parent compile unit.
15256 Reflect API changes.
15257 (open_and_init_dwo_file): Reflect API changes.
15258 (dwarf2_get_pc_bounds): Update comments.
15259 (dwarf2_record_block_ranges): Likewise.
15260 (read_full_die_1): Change implementation to reprocess attributes that
15261 need str_offsets_base and addr_base.
15262 (partial_die_info::read): Likewise.
15263 (read_attribute_reprocess): New function definition.
15264 (read_attribute_value): Change API to take an additional out parameter,
15265 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
15266 when a non-dwo compile unit has index based attributes.
15267 (read_attribute): Reflect API changes.
15268 (read_addr_index_1): Reflect API changes. Update comments.
15269 (dwarf2_read_addr_index_data): Reflect API changes.
15270 (dwarf2_read_addr_index): Likewise.
15271 (read_str_index): Change API and implementation. This becomes a helper
15272 to be used by the new string index related methods. Update error
15273 message and comments.
15274 (read_dwo_str_index): New function definition.
15275 (read_stub_str_index): Likewise.
15276 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
15277 * symfile.h (dwarf2_debug_sections): Likewise.
15278 * xcoffread.c (dwarf2_debug_sections): Likewise.
15279
0cac9354
SM
152802020-01-13 Simon Marchi <simon.marchi@efficios.com>
15281
15282 * gdbcore.h (struct core_fns) <core_read_registers>: Change
15283 core_reg_sect type to gdb_byte *.
15284 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
15285 * cris-tdep.c (fetch_core_registers): Likewise.
15286 * corelow.c (core_target::get_core_register_section): Change
15287 type of `contents` to gdb::byte_vector.
15288
9a6d629c
AB
152892020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15290
15291 * tui/tui-wingeneral.c (box_win): Position the title in the center
15292 of the border.
15293
d8b2f9e3
SM
152942020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15295
15296 * corelow.c (core_target::get_core_register_section): Use
15297 std::vector instead of alloca.
15298
bb564c58
SM
152992020-01-13 Simon Marchi <simon.marchi@efficios.com>
15300
15301 * warning.m4: Add -Wmissing-declarations to build_warnings.
15302 * configure: Re-generate.
15303
6b366111
SM
153042020-01-13 Simon Marchi <simon.marchi@efficios.com>
15305
15306 * python/python.c (init__gdb_module): Add declaration.
15307
6c265988
SM
153082020-01-13 Simon Marchi <simon.marchi@efficios.com>
15309
15310 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
15311 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
15312 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
15313 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
15314 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
15315 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
15316 * ada-exp.y (_initialize_ada_exp): Add declaration.
15317 * ada-lang.c (_initialize_ada_language): Add declaration.
15318 * ada-tasks.c (_initialize_tasks): Add declaration.
15319 * agent.c (_initialize_agent): Add declaration.
15320 * aix-thread.c (_initialize_aix_thread): Add declaration.
15321 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
15322 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
15323 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
15324 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
15325 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
15326 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
15327 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
15328 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
15329 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
15330 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
15331 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
15332 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
15333 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
15334 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
15335 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
15336 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
15337 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
15338 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
15339 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
15340 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
15341 * annotate.c (_initialize_annotate): Add declaration.
15342 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
15343 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
15344 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
15345 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
15346 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
15347 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
15348 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
15349 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
15350 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
15351 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
15352 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
15353 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
15354 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
15355 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
15356 * auto-load.c (_initialize_auto_load): Add declaration.
15357 * auxv.c (_initialize_auxv): Add declaration.
15358 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
15359 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
15360 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
15361 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
15362 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
15363 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
15364 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
15365 * breakpoint.c (_initialize_breakpoint): Add declaration.
15366 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
15367 * btrace.c (_initialize_btrace): Add declaration.
15368 * charset.c (_initialize_charset): Add declaration.
15369 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
15370 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
15371 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
15372 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
15373 * cli/cli-script.c (_initialize_cli_script): Add declaration.
15374 * cli/cli-style.c (_initialize_cli_style): Add declaration.
15375 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
15376 * coffread.c (_initialize_coffread): Add declaration.
15377 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
15378 * compile/compile.c (_initialize_compile): Add declaration.
15379 * complaints.c (_initialize_complaints): Add declaration.
15380 * completer.c (_initialize_completer): Add declaration.
15381 * copying.c (_initialize_copying): Add declaration.
15382 * corefile.c (_initialize_core): Add declaration.
15383 * corelow.c (_initialize_corelow): Add declaration.
15384 * cp-abi.c (_initialize_cp_abi): Add declaration.
15385 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
15386 * cp-support.c (_initialize_cp_support): Add declaration.
15387 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
15388 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
15389 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
15390 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
15391 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
15392 * ctfread.c (_initialize_ctfread): Add declaration.
15393 * d-lang.c (_initialize_d_language): Add declaration.
15394 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
15395 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
15396 * dbxread.c (_initialize_dbxread): Add declaration.
15397 * dcache.c (_initialize_dcache): Add declaration.
15398 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
15399 * disasm.c (_initialize_disasm): Add declaration.
15400 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
15401 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
15402 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
15403 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
15404 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
15405 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
15406 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
15407 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
15408 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
15409 * elfread.c (_initialize_elfread): Add declaration.
15410 * exec.c (_initialize_exec): Add declaration.
15411 * extension.c (_initialize_extension): Add declaration.
15412 * f-lang.c (_initialize_f_language): Add declaration.
15413 * f-valprint.c (_initialize_f_valprint): Add declaration.
15414 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
15415 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
15416 * filesystem.c (_initialize_filesystem): Add declaration.
15417 * findcmd.c (_initialize_mem_search): Add declaration.
15418 * findvar.c (_initialize_findvar): Add declaration.
15419 * fork-child.c (_initialize_fork_child): Add declaration.
15420 * frame-base.c (_initialize_frame_base): Add declaration.
15421 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
15422 * frame.c (_initialize_frame): Add declaration.
15423 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
15424 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
15425 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
15426 * gcore.c (_initialize_gcore): Add declaration.
15427 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
15428 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
15429 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
15430 * gdbarch.c (_initialize_gdbarch): Add declaration.
15431 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
15432 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
15433 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
15434 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
15435 * go-lang.c (_initialize_go_language): Add declaration.
15436 * go32-nat.c (_initialize_go32_nat): Add declaration.
15437 * guile/guile.c (_initialize_guile): Add declaration.
15438 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
15439 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
15440 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
15441 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
15442 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
15443 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
15444 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
15445 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
15446 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
15447 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
15448 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
15449 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
15450 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
15451 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
15452 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
15453 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
15454 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
15455 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
15456 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
15457 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
15458 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
15459 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
15460 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
15461 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
15462 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
15463 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
15464 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
15465 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
15466 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
15467 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
15468 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
15469 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
15470 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
15471 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
15472 * infcall.c (_initialize_infcall): Add declaration.
15473 * infcmd.c (_initialize_infcmd): Add declaration.
15474 * inflow.c (_initialize_inflow): Add declaration.
15475 * infrun.c (_initialize_infrun): Add declaration.
15476 * interps.c (_initialize_interpreter): Add declaration.
15477 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
15478 * jit.c (_initialize_jit): Add declaration.
15479 * language.c (_initialize_language): Add declaration.
15480 * linux-fork.c (_initialize_linux_fork): Add declaration.
15481 * linux-nat.c (_initialize_linux_nat): Add declaration.
15482 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
15483 * linux-thread-db.c (_initialize_thread_db): Add declaration.
15484 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
15485 * m2-lang.c (_initialize_m2_language): Add declaration.
15486 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
15487 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
15488 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
15489 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
15490 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
15491 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
15492 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
15493 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
15494 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
15495 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
15496 * machoread.c (_initialize_machoread): Add declaration.
15497 * macrocmd.c (_initialize_macrocmd): Add declaration.
15498 * macroscope.c (_initialize_macroscope): Add declaration.
15499 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
15500 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
15501 * maint.c (_initialize_maint_cmds): Add declaration.
15502 * mdebugread.c (_initialize_mdebugread): Add declaration.
15503 * memattr.c (_initialize_mem): Add declaration.
15504 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
15505 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
15506 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
15507 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
15508 * mi/mi-main.c (_initialize_mi_main): Add declaration.
15509 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
15510 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
15511 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
15512 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
15513 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
15514 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
15515 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
15516 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
15517 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
15518 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
15519 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
15520 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
15521 * mipsread.c (_initialize_mipsread): Add declaration.
15522 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
15523 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
15524 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
15525 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
15526 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
15527 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
15528 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
15529 * nto-procfs.c (_initialize_procfs): Add declaration.
15530 * objc-lang.c (_initialize_objc_language): Add declaration.
15531 * observable.c (_initialize_observer): Add declaration.
15532 * opencl-lang.c (_initialize_opencl_language): Add declaration.
15533 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
15534 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
15535 * osabi.c (_initialize_gdb_osabi): Add declaration.
15536 * osdata.c (_initialize_osdata): Add declaration.
15537 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
15538 * parse.c (_initialize_parse): Add declaration.
15539 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
15540 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
15541 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
15542 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
15543 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
15544 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
15545 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
15546 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
15547 * printcmd.c (_initialize_printcmd): Add declaration.
15548 * probe.c (_initialize_probe): Add declaration.
15549 * proc-api.c (_initialize_proc_api): Add declaration.
15550 * proc-events.c (_initialize_proc_events): Add declaration.
15551 * proc-service.c (_initialize_proc_service): Add declaration.
15552 * procfs.c (_initialize_procfs): Add declaration.
15553 * producer.c (_initialize_producer): Add declaration.
15554 * psymtab.c (_initialize_psymtab): Add declaration.
15555 * python/python.c (_initialize_python): Add declaration.
15556 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
15557 * record-btrace.c (_initialize_record_btrace): Add declaration.
15558 * record-full.c (_initialize_record_full): Add declaration.
15559 * record.c (_initialize_record): Add declaration.
15560 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
15561 * regcache.c (_initialize_regcache): Add declaration.
15562 * reggroups.c (_initialize_reggroup): Add declaration.
15563 * remote-notif.c (_initialize_notif): Add declaration.
15564 * remote-sim.c (_initialize_remote_sim): Add declaration.
15565 * remote.c (_initialize_remote): Add declaration.
15566 * reverse.c (_initialize_reverse): Add declaration.
15567 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
15568 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
15569 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
15570 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
15571 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
15572 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
15573 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
15574 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
15575 Add declaration.
15576 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
15577 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
15578 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
15579 * rust-exp.y (_initialize_rust_exp): Add declaration.
15580 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
15581 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
15582 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
15583 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
15584 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
15585 * score-tdep.c (_initialize_score_tdep): Add declaration.
15586 * ser-go32.c (_initialize_ser_dos): Add declaration.
15587 * ser-mingw.c (_initialize_ser_windows): Add declaration.
15588 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
15589 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
15590 * ser-uds.c (_initialize_ser_socket): Add declaration.
15591 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
15592 * serial.c (_initialize_serial): Add declaration.
15593 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
15594 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
15595 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
15596 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
15597 * skip.c (_initialize_step_skip): Add declaration.
15598 * sol-thread.c (_initialize_sol_thread): Add declaration.
15599 * solib-aix.c (_initialize_solib_aix): Add declaration.
15600 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
15601 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
15602 * solib-frv.c (_initialize_frv_solib): Add declaration.
15603 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
15604 * solib-target.c (_initialize_solib_target): Add declaration.
15605 * solib.c (_initialize_solib): Add declaration.
15606 * source-cache.c (_initialize_source_cache): Add declaration.
15607 * source.c (_initialize_source): Add declaration.
15608 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
15609 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
15610 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
15611 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
15612 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
15613 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
15614 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
15615 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
15616 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
15617 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
15618 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
15619 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
15620 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
15621 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
15622 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
15623 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
15624 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
15625 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
15626 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
15627 * stabsread.c (_initialize_stabsread): Add declaration.
15628 * stack.c (_initialize_stack): Add declaration.
15629 * stap-probe.c (_initialize_stap_probe): Add declaration.
15630 * std-regs.c (_initialize_frame_reg): Add declaration.
15631 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
15632 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
15633 * symfile.c (_initialize_symfile): Add declaration.
15634 * symmisc.c (_initialize_symmisc): Add declaration.
15635 * symtab.c (_initialize_symtab): Add declaration.
15636 * target.c (_initialize_target): Add declaration.
15637 * target-connection.c (_initialize_target_connection): Add
15638 declaration.
15639 * target-dcache.c (_initialize_target_dcache): Add declaration.
15640 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
15641 * thread.c (_initialize_thread): Add declaration.
15642 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
15643 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
15644 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
15645 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
15646 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
15647 * tracectf.c (_initialize_ctf): Add declaration.
15648 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
15649 * tracefile.c (_initialize_tracefile): Add declaration.
15650 * tracepoint.c (_initialize_tracepoint): Add declaration.
15651 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
15652 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
15653 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
15654 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
15655 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
15656 * tui/tui-win.c (_initialize_tui_win): Add declaration.
15657 * tui/tui.c (_initialize_tui): Add declaration.
15658 * typeprint.c (_initialize_typeprint): Add declaration.
15659 * ui-style.c (_initialize_ui_style): Add declaration.
15660 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
15661 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
15662 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
15663 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
15664 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
15665 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
15666 * unittests/filtered_iterator-selftests.c
15667 (_initialize_filtered_iterator_selftests): Add declaration.
15668 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
15669 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
15670 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
15671 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
15672 * unittests/main-thread-selftests.c
15673 (_initialize_main_thread_selftests): Add declaration.
15674 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
15675 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
15676 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
15677 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
15678 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
15679 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
15680 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
15681 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
15682 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
15683 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
15684 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
15685 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
15686 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
15687 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
15688 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
15689 declaration.
15690 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
15691 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
15692 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
15693 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
15694 * user-regs.c (_initialize_user_regs): Add declaration.
15695 * utils.c (_initialize_utils): Add declaration.
15696 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
15697 * valops.c (_initialize_valops): Add declaration.
15698 * valprint.c (_initialize_valprint): Add declaration.
15699 * value.c (_initialize_values): Add declaration.
15700 * varobj.c (_initialize_varobj): Add declaration.
15701 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
15702 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
15703 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
15704 * windows-nat.c (_initialize_windows_nat): Add declaration.
15705 (_initialize_check_for_gdb_ini): Add declaration.
15706 (_initialize_loadable): Add declaration.
15707 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
15708 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
15709 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
15710 * xcoffread.c (_initialize_xcoffread): Add declaration.
15711 * xml-support.c (_initialize_xml_support): Add declaration.
15712 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
15713 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
15714 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
15715 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
15716
e2de1eec
SM
157172020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15718
15719 * regformats/regdat.sh: Generate declaration for init function.
15720
e0037b4c
SM
157212020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15722
15723 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
15724 up.
15725 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
15726 close_one_inferior>: New methods.
15727 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
15728 pass down target to find_inferior_pid.
15729 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
15730 Pass down target to find_inferior_ptid.
15731 (gdbsim_target::create_inferior): Pass down target to
15732 add_thread_silent.
15733 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
15734 target down to find_inferior_ptid and switch_to_thread.
15735 (gdbsim_target::close): Update to call close_one_inferior.
15736 (struct resume_data): Remove.
15737 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
15738 directly, rather than through a void pointer.
15739 (gdbsim_target::resume): Update to call resume_one_inferior.
15740
58920b5b
SM
157412020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
15742
15743 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
15744
4ec89149
PA
157452020-01-12 Pedro Alves <palves@redhat.com>
15746
15747 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
15748 directly for the current inferior instead of
15749 discard_all_inferiors.
15750 (discard_all_inferiors): Delete.
15751
7c392d1d
TT
157522020-01-11 Tom Tromey <tom@tromey.com>
15753
15754 * tui/tui-wingeneral.c (box_win): Check cli_styling.
15755 * tui/tui-winsource.c (tui_source_window_base::refill): Use
15756 deprecated_safe_get_selected_frame.
15757
d9ebdab7
TBA
157582020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
15759
15760 * inferior.c (print_inferior): Switch inferior before printing it.
15761
f3c469b9
PA
157622020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
15763 Pedro Alves <palves@redhat.com>
15764
15765 * progspace-and-thread.c (switch_to_program_space_and_thread):
15766 Assert there's an inferior for PSPACE. Use
15767 switch_to_inferior_no_thread to switch the inferior too.
15768 * progspace.c (program_space::~program_space): Call
15769 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
15770 (program_space::free_all_objfiles): Don't call clear_symtab_users
15771 here.
15772 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
15773
65c574f6
PA
157742020-01-10 Pedro Alves <palves@redhat.com>
15775
15776 * NEWS: Mention multi-target debugging, "info connections", and
15777 "add-inferior -no-connection".
15778
2f4fcf00
PA
157792020-01-10 Pedro Alves <palves@redhat.com>
15780
15781 * infrun.c: Include "target-connection.h".
15782 (check_multi_target_resumption): New.
15783 (proceed): Call it.
15784 * target-connection.c (make_target_connection_string): Make
15785 extern.
15786 * target-connection.h (make_target_connection_string): Declare.
15787
121b3efd
PA
157882020-01-10 Pedro Alves <palves@redhat.com>
15789
15790 * Makefile.in (COMMON_SFILES): Add target-connection.c.
15791 * inferior.c (uiout_field_connection): New function.
15792 (print_inferior): Add new "connection-id" column.
15793 (add_inferior_command): Show connection number/string of added
15794 inferior.
15795 * process-stratum-target.h
15796 (process_stratum_target::connection_string): New virtual method.
15797 (process_stratum_target::connection_number): New field.
15798 * remote.c (remote_target::connection_string): New override.
15799 * target-connection.c: New file.
15800 * target-connection.h: New file.
15801 * target.c (decref_target): Remove process_stratum targets from
15802 the connection list.
15803 (target_stack::push): Add process_stratum targets to the
15804 connection list.
15805
4f837581
PA
158062020-01-10 Pedro Alves <palves@redhat.com>
15807
15808 Revert:
15809 2016-04-12 Pedro Alves <palves@redhat.com>
15810 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
15811 Remove references to name.
15812 * serial.h (struct serial) <name>: Delete.
15813
f4ec508e
PA
158142020-01-10 Pedro Alves <palves@redhat.com>
15815
15816 * gdbarch-selftests.c (register_to_value_test): Remove "target
15817 already pushed" check.
15818
5b6d1e4f
PA
158192020-01-10 Pedro Alves <palves@redhat.com>
15820 John Baldwin <jhb@FreeBSD.org>
15821
15822 * aarch64-linux-nat.c
15823 (aarch64_linux_nat_target::thread_architecture): Adjust.
15824 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
15825 (task_command_1): Likewise.
15826 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
15827 (aix_thread_target::wait, aix_thread_target::fetch_registers)
15828 (aix_thread_target::store_registers)
15829 (aix_thread_target::thread_alive): Adjust.
15830 * amd64-fbsd-tdep.c: Include "inferior.h".
15831 (amd64fbsd_get_thread_local_address): Pass down target.
15832 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
15833 thread's gdbarch instead of target_gdbarch.
15834 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
15835 get_last_target_status.
15836 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
15837 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
15838 inferiors.
15839 (update_inserted_breakpoint_locations): Skip if inferiors with no
15840 execution.
15841 (update_global_location_list): When handling moribund locations,
15842 find representative inferior for location's pspace, and use thread
15843 count of its process_stratum target.
15844 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
15845 * bsd-uthread.c (bsd_uthread_target::wait): Use
15846 as_process_stratum_target and adjust thread_change_ptid and
15847 add_thread calls.
15848 (bsd_uthread_target::update_thread_list): Use
15849 as_process_stratum_target and adjust find_thread_ptid,
15850 thread_change_ptid and add_thread calls.
15851 * btrace.c (maint_btrace_packet_history_cmd): Adjust
15852 find_thread_ptid call.
15853 * corelow.c (add_to_thread_list): Adjust add_thread call.
15854 (core_target_open): Adjust add_thread_silent and thread_count
15855 calls.
15856 (core_target::pid_to_str): Adjust find_inferior_ptid call.
15857 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
15858 * event-top.c (async_disconnect): Pop targets from all inferiors.
15859 * exec.c (add_target_sections): Push exec target on all inferiors
15860 sharing the program space.
15861 (remove_target_sections): Remove the exec target from all
15862 inferiors sharing the program space.
15863 (exec_on_vfork): New.
15864 * exec.h (exec_on_vfork): Declare.
15865 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
15866 Pass it down.
15867 (fbsd_nat_target::update_thread_list): Adjust.
15868 (fbsd_nat_target::resume): Adjust.
15869 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
15870 down.
15871 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
15872 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
15873 get_thread_arch_regcache call.
15874 * fork-child.c (gdb_startup_inferior): Pass target down to
15875 startup_inferior and set_executing.
15876 * gdbthread.h (struct process_stratum_target): Forward declare.
15877 (add_thread, add_thread_silent, add_thread_with_info)
15878 (in_thread_list): Add process_stratum_target parameter.
15879 (find_thread_ptid(inferior*, ptid_t)): New overload.
15880 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
15881 parameter.
15882 (all_threads()): Delete overload.
15883 (all_threads, all_non_exited_threads): Add process_stratum_target
15884 parameter.
15885 (all_threads_safe): Use brace initialization.
15886 (thread_count): Add process_stratum_target parameter.
15887 (set_resumed, set_running, set_stop_requested, set_executing)
15888 (threads_are_executing, finish_thread_state): Add
15889 process_stratum_target parameter.
15890 (switch_to_thread): Use is_current_thread.
15891 * i386-fbsd-tdep.c: Include "inferior.h".
15892 (i386fbsd_get_thread_local_address): Pass down target.
15893 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
15894 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
15895 have_inferiors check.
15896 * inf-ptrace.c (inf_ptrace_target::create_inferior)
15897 (inf_ptrace_target::attach): Adjust.
15898 * infcall.c (run_inferior_call): Adjust.
15899 * infcmd.c (run_command_1): Pass target to
15900 scoped_finish_thread_state.
15901 (proceed_thread_callback): Skip inferiors with no execution.
15902 (continue_command): Rename 'all_threads' local to avoid hiding
15903 'all_threads' function. Adjust get_last_target_status call.
15904 (prepare_one_step): Adjust set_running call.
15905 (signal_command): Use user_visible_resume_target. Compare thread
15906 pointers instead of inferior_ptid.
15907 (info_program_command): Adjust to pass down target.
15908 (attach_command): Mark target's 'thread_executing' flag.
15909 (stop_current_target_threads_ns): New, factored out from ...
15910 (interrupt_target_1): ... this. Switch inferior before making
15911 target calls.
15912 * inferior-iter.h
15913 (struct all_inferiors_iterator, struct all_inferiors_range)
15914 (struct all_inferiors_safe_range)
15915 (struct all_non_exited_inferiors_range): Filter on
15916 process_stratum_target too. Remove explicit.
15917 * inferior.c (inferior::inferior): Push dummy target on target
15918 stack.
15919 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
15920 Add process_stratum_target parameter, and pass it down.
15921 (have_live_inferiors): Adjust.
15922 (switch_to_inferior_and_push_target): New.
15923 (add_inferior_command, clone_inferior_command): Handle
15924 "-no-connection" parameter. Use
15925 switch_to_inferior_and_push_target.
15926 (_initialize_inferior): Mention "-no-connection" option in
15927 the help of "add-inferior" and "clone-inferior" commands.
15928 * inferior.h: Include "process-stratum-target.h".
15929 (interrupt_target_1): Use bool.
15930 (struct inferior) <push_target, unpush_target, target_is_pushed,
15931 find_target_beneath, top_target, process_target, target_at,
15932 m_stack>: New.
15933 (discard_all_inferiors): Delete.
15934 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
15935 (all_inferiors, all_non_exited_inferiors): Add
15936 process_stratum_target parameter.
15937 * infrun.c: Include "gdb_select.h" and <unordered_map>.
15938 (target_last_proc_target): New global.
15939 (follow_fork_inferior): Push target on new inferior. Pass target
15940 to add_thread_silent. Call exec_on_vfork. Handle target's
15941 reference count.
15942 (follow_fork): Adjust get_last_target_status call. Also consider
15943 target.
15944 (follow_exec): Push target on new inferior.
15945 (struct execution_control_state) <target>: New field.
15946 (user_visible_resume_target): New.
15947 (do_target_resume): Call target_async.
15948 (resume_1): Set target's threads_executing flag. Consider resume
15949 target.
15950 (commit_resume_all_targets): New.
15951 (proceed): Also consider resume target. Skip threads of inferiors
15952 with no execution. Commit resumtion in all targets.
15953 (start_remote): Pass current inferior to wait_for_inferior.
15954 (infrun_thread_stop_requested): Consider target as well. Pass
15955 thread_info pointer to clear_inline_frame_state instead of ptid.
15956 (infrun_thread_thread_exit): Consider target as well.
15957 (random_pending_event_thread): New inferior parameter. Use it.
15958 (do_target_wait): Rename to ...
15959 (do_target_wait_1): ... this. Add inferior parameter, and pass it
15960 down.
15961 (threads_are_resumed_pending_p, do_target_wait): New.
15962 (prepare_for_detach): Adjust calls.
15963 (wait_for_inferior): New inferior parameter. Handle it. Use
15964 do_target_wait_1 instead of do_target_wait.
15965 (fetch_inferior_event): Adjust. Switch to representative
15966 inferior. Pass target down.
15967 (set_last_target_status): Add process_stratum_target parameter.
15968 Save target in global.
15969 (get_last_target_status): Add process_stratum_target parameter and
15970 handle it.
15971 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
15972 (context_switch): Check inferior_ptid == null_ptid before calling
15973 inferior_thread().
15974 (get_inferior_stop_soon): Pass down target.
15975 (wait_one): Rename to ...
15976 (poll_one_curr_target): ... this.
15977 (struct wait_one_event): New.
15978 (wait_one): New.
15979 (stop_all_threads): Adjust.
15980 (handle_no_resumed, handle_inferior_event): Adjust to consider the
15981 event's target.
15982 (switch_back_to_stepped_thread): Also consider target.
15983 (print_stop_event): Update.
15984 (normal_stop): Update. Also consider the resume target.
15985 * infrun.h (wait_for_inferior): Remove declaration.
15986 (user_visible_resume_target): New declaration.
15987 (get_last_target_status, set_last_target_status): New
15988 process_stratum_target parameter.
15989 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
15990 process_stratum_target parameter, and use it.
15991 (clear_inline_frame_state (thread_info*)): New.
15992 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
15993 process_stratum_target parameter.
15994 (clear_inline_frame_state (thread_info*)): Declare.
15995 * linux-fork.c (delete_checkpoint_command): Pass target down to
15996 find_thread_ptid.
15997 (checkpoint_command): Adjust.
15998 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
15999 instead of just tweaking inferior_ptid.
16000 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
16001 (exit_lwp): Pass target down to find_thread_ptid.
16002 (attach_proc_task_lwp_callback): Pass target down to
16003 add_thread/set_running/set_executing.
16004 (linux_nat_target::attach): Pass target down to
16005 thread_change_ptid.
16006 (get_detach_signal): Pass target down to find_thread_ptid.
16007 Consider last target status's target.
16008 (linux_resume_one_lwp_throw, resume_lwp)
16009 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
16010 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
16011 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
16012 (linux_nat_target::async_wait_fd): New.
16013 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
16014 target down.
16015 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
16016 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
16017 * linux-thread-db.c (struct thread_db_info::process_target): New
16018 field.
16019 (add_thread_db_info): Save target.
16020 (get_thread_db_info): New process_stratum_target parameter. Also
16021 match target.
16022 (delete_thread_db_info): New process_stratum_target parameter.
16023 Also match target.
16024 (thread_from_lwp): Adjust to pass down target.
16025 (thread_db_notice_clone): Pass down target.
16026 (check_thread_db_callback): Pass down target.
16027 (try_thread_db_load_1): Always push the thread_db target.
16028 (try_thread_db_load, record_thread): Pass target down.
16029 (thread_db_target::detach): Pass target down. Always unpush the
16030 thread_db target.
16031 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
16032 target down. Always unpush the thread_db target.
16033 (find_new_threads_callback, thread_db_find_new_threads_2)
16034 (thread_db_target::update_thread_list): Pass target down.
16035 (thread_db_target::pid_to_str): Pass current inferior down.
16036 (thread_db_target::get_thread_local_address): Pass target down.
16037 (thread_db_target::resume, maintenance_check_libthread_db): Pass
16038 target down.
16039 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
16040 * procfs.c (procfs_target::procfs_init_inferior): Declare.
16041 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
16042 (procfs_init_inferior): Rename to ...
16043 (procfs_target::procfs_init_inferior): ... this and adjust.
16044 (procfs_target::create_inferior, procfs_notice_thread)
16045 (procfs_do_thread_registers): Adjust.
16046 * ppc-fbsd-tdep.c: Include "inferior.h".
16047 (ppcfbsd_get_thread_local_address): Pass down target.
16048 * proc-service.c (ps_xfer_memory): Switch current inferior and
16049 program space as well.
16050 (get_ps_regcache): Pass target down.
16051 * process-stratum-target.c
16052 (process_stratum_target::thread_address_space)
16053 (process_stratum_target::thread_architecture): Pass target down.
16054 * process-stratum-target.h
16055 (process_stratum_target::threads_executing): New field.
16056 (as_process_stratum_target): New.
16057 * ravenscar-thread.c
16058 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
16059 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
16060 down.
16061 * record-btrace.c (record_btrace_target::info_record): Adjust.
16062 (record_btrace_target::record_method)
16063 (record_btrace_target::record_is_replaying)
16064 (record_btrace_target::fetch_registers)
16065 (get_thread_current_frame_id, record_btrace_target::resume)
16066 (record_btrace_target::wait, record_btrace_target::stop): Pass
16067 target down.
16068 * record-full.c (record_full_wait_1): Switch to event thread.
16069 Pass target down.
16070 * regcache.c (regcache::regcache)
16071 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
16072 process_stratum_target parameter and handle it.
16073 (current_thread_target): New global.
16074 (get_thread_regcache): Add process_stratum_target parameter and
16075 handle it. Switch inferior before calling target method.
16076 (get_thread_regcache): Pass target down.
16077 (get_thread_regcache_for_ptid): Pass target down.
16078 (registers_changed_ptid): Add process_stratum_target parameter and
16079 handle it.
16080 (registers_changed_thread, registers_changed): Pass target down.
16081 (test_get_thread_arch_aspace_regcache): New.
16082 (current_regcache_test): Define a couple local test_target_ops
16083 instances and use them for testing.
16084 (readwrite_regcache): Pass process_stratum_target parameter.
16085 (cooked_read_test, cooked_write_test): Pass mock_target down.
16086 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
16087 (get_thread_arch_aspace_regcache): Add process_stratum_target
16088 parameter.
16089 (regcache::target): New method.
16090 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
16091 (regcache::registers_changed_ptid): Add process_stratum_target
16092 parameter.
16093 (regcache::m_target): New field.
16094 (registers_changed_ptid): Add process_stratum_target parameter.
16095 * remote.c (remote_state::supports_vCont_probed): New field.
16096 (remote_target::async_wait_fd): New method.
16097 (remote_unpush_and_throw): Add remote_target parameter.
16098 (get_current_remote_target): Adjust.
16099 (remote_target::remote_add_inferior): Push target.
16100 (remote_target::remote_add_thread)
16101 (remote_target::remote_notice_new_inferior)
16102 (get_remote_thread_info): Pass target down.
16103 (remote_target::update_thread_list): Skip threads of inferiors
16104 bound to other targets. (remote_target::close): Don't discard
16105 inferiors. (remote_target::add_current_inferior_and_thread)
16106 (remote_target::process_initial_stop_replies)
16107 (remote_target::start_remote)
16108 (remote_target::remote_serial_quit_handler): Pass down target.
16109 (remote_target::remote_unpush_target): New remote_target
16110 parameter. Unpush the target from all inferiors.
16111 (remote_target::remote_unpush_and_throw): New remote_target
16112 parameter. Pass it down.
16113 (remote_target::open_1): Check whether the current inferior has
16114 execution instead of checking whether any inferior is live. Pass
16115 target down.
16116 (remote_target::remote_detach_1): Pass down target. Use
16117 remote_unpush_target.
16118 (extended_remote_target::attach): Pass down target.
16119 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
16120 (remote_target::append_resumption): Pass down target.
16121 (remote_target::append_pending_thread_resumptions)
16122 (remote_target::remote_resume_with_hc, remote_target::resume)
16123 (remote_target::commit_resume): Pass down target.
16124 (remote_target::remote_stop_ns): Check supports_vCont_probed.
16125 (remote_target::interrupt_query)
16126 (remote_target::remove_new_fork_children)
16127 (remote_target::check_pending_events_prevent_wildcard_vcont)
16128 (remote_target::remote_parse_stop_reply)
16129 (remote_target::process_stop_reply): Pass down target.
16130 (first_remote_resumed_thread): New remote_target parameter. Pass
16131 it down.
16132 (remote_target::wait_as): Pass down target.
16133 (unpush_and_perror): New remote_target parameter. Pass it down.
16134 (remote_target::readchar, remote_target::remote_serial_write)
16135 (remote_target::getpkt_or_notif_sane_1)
16136 (remote_target::kill_new_fork_children, remote_target::kill): Pass
16137 down target.
16138 (remote_target::mourn_inferior): Pass down target. Use
16139 remote_unpush_target.
16140 (remote_target::core_of_thread)
16141 (remote_target::remote_btrace_maybe_reopen): Pass down target.
16142 (remote_target::pid_to_exec_file)
16143 (remote_target::thread_handle_to_thread_info): Pass down target.
16144 (remote_target::async_wait_fd): New.
16145 * riscv-fbsd-tdep.c: Include "inferior.h".
16146 (riscv_fbsd_get_thread_local_address): Pass down target.
16147 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
16148 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
16149 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
16150 Adjust.
16151 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
16152 * solib-svr4.c (enable_break): Pass down target.
16153 * spu-multiarch.c (parse_spufs_run): Pass down target.
16154 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
16155 * target-delegates.c: Regenerate.
16156 * target.c (g_target_stack): Delete.
16157 (current_top_target): Return the current inferior's top target.
16158 (target_has_execution_1): Refer to the passed-in inferior's top
16159 target.
16160 (target_supports_terminal_ours): Check whether the initial
16161 inferior was already created.
16162 (decref_target): New.
16163 (target_stack::push): Incref/decref the target.
16164 (push_target, push_target, unpush_target): Adjust.
16165 (target_stack::unpush): Defref target.
16166 (target_is_pushed): Return bool. Adjust to refer to the current
16167 inferior's target stack.
16168 (dispose_inferior): Delete, and inline parts ...
16169 (target_preopen): ... here. Only dispose of the current inferior.
16170 (target_detach): Hold strong target reference while detaching.
16171 Pass target down.
16172 (target_thread_name): Add assertion.
16173 (target_resume): Pass down target.
16174 (target_ops::beneath, find_target_at): Adjust to refer to the
16175 current inferior's target stack.
16176 (get_dummy_target): New.
16177 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
16178 has a thread running.
16179 (initialize_targets): Rename to ...
16180 (_initialize_target): ... this.
16181 * target.h: Include "gdbsupport/refcounted-object.h".
16182 (struct target_ops): Inherit refcounted_object.
16183 (target_ops::shortname, target_ops::longname): Make const.
16184 (target_ops::async_wait_fd): New method.
16185 (decref_target): Declare.
16186 (struct target_ops_ref_policy): New.
16187 (target_ops_ref): New typedef.
16188 (get_dummy_target): Declare function.
16189 (target_is_pushed): Return bool.
16190 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
16191 (all_matching_threads_iterator::all_matching_threads_iterator):
16192 Handle filter target.
16193 * thread-iter.h (struct all_matching_threads_iterator, struct
16194 all_matching_threads_range, class all_non_exited_threads_range):
16195 Filter by target too. Remove explicit.
16196 * thread.c (threads_executing): Delete.
16197 (inferior_thread): Pass down current inferior.
16198 (clear_thread_inferior_resources): Pass down thread pointer
16199 instead of ptid_t.
16200 (add_thread_silent, add_thread_with_info, add_thread): Add
16201 process_stratum_target parameter. Use it for thread and inferior
16202 searches.
16203 (is_current_thread): New.
16204 (thread_info::deletable): Use it.
16205 (find_thread_ptid, thread_count, in_thread_list)
16206 (thread_change_ptid, set_resumed, set_running): New
16207 process_stratum_target parameter. Pass it down.
16208 (set_executing): New process_stratum_target parameter. Pass it
16209 down. Adjust reference to 'threads_executing'.
16210 (threads_are_executing): New process_stratum_target parameter.
16211 Adjust reference to 'threads_executing'.
16212 (set_stop_requested, finish_thread_state): New
16213 process_stratum_target parameter. Pass it down.
16214 (switch_to_thread): Also match inferior.
16215 (switch_to_thread): New process_stratum_target parameter. Pass it
16216 down.
16217 (update_threads_executing): Reimplement.
16218 * top.c (quit_force): Pop targets from all inferior.
16219 (gdb_init): Don't call initialize_targets.
16220 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
16221 Declare.
16222 (windows_add_thread, windows_delete_thread): Adjust.
16223 (get_windows_debug_event): Rename to ...
16224 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
16225 * tracefile-tfile.c (tfile_target_open): Pass down target.
16226 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
16227 Forward declare.
16228 (switch_to_thread): Add process_stratum_target parameter.
16229 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
16230 parameter. Use it.
16231 (mi_on_resume): Pass target down.
16232 * nat/fork-inferior.c (startup_inferior): Add
16233 process_stratum_target parameter. Pass it down.
16234 * nat/fork-inferior.h (startup_inferior): Add
16235 process_stratum_target parameter.
16236 * python/py-threadevent.c (py_get_event_thread): Pass target down.
16237
75c6c844
PA
162382020-01-10 Pedro Alves <palves@redhat.com>
16239
16240 * remote.c (remote_target::start_remote): Don't set inferior_ptid
16241 directly. Instead find the first thread in the thread list and
16242 use switch_to_thread.
16243
78f2c40a
PA
162442020-01-10 Pedro Alves <palves@redhat.com>
16245
16246 * remote.c (remote_target::remote_add_inferior): Don't bind a
16247 process to the current inferior if the current inferior is already
16248 bound to a process.
16249
e7af6c70
TBA
162502020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16251 Pedro Alves <palves@redhat.com>
16252
16253 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
16254 If no process is specified, return null_ptid instead of
16255 inferior_ptid.
16256 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
16257 TARGET_WAITKIND_SIGNALLED with no pid.
16258
31ba933e
PA
162592020-01-10 Pedro Alves <palves@redhat.com>
16260
16261 * remote.c (first_remote_resumed_thread): New.
16262 (remote_target::wait_as): Use it as default event_ptid instead of
16263 inferior_ptid.
16264
735fc2ca
PA
162652020-01-10 Pedro Alves <palves@redhat.com>
16266
16267 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
16268
c17e02e1
PA
162692020-01-10 Pedro Alves <palves@redhat.com>
16270
16271 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
16272 not -1.
16273
ab1ddbcf
PA
162742020-01-10 Pedro Alves <palves@redhat.com>
16275
16276 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
16277 ptid to get_last_target_status.
16278 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
16279 ptid to get_last_target_status.
16280 * infcmd.c (continue_command): Don't pass a target_waitstatus to
16281 get_last_target_status.
16282 (info_program_command): Don't pass a target_waitstatus to
16283 get_last_target_status.
16284 * infrun.c (init_wait_for_inferior): Use
16285 nullify_last_target_wait_ptid.
16286 (get_last_target_status): Handle nullptr arguments.
16287 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
16288 (print_stop_event): Don't pass a ptid to get_last_target_status.
16289 (normal_stop): Don't pass a ptid to get_last_target_status.
16290 * infrun.h (get_last_target_status, set_last_target_status): Move
16291 comments here and update.
16292 (nullify_last_target_wait_ptid): Declare.
16293 * linux-fork.c (fork_load_infrun_state): Remove local extern
16294 declaration of nullify_last_target_wait_ptid.
16295 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
16296 to get_last_target_status.
16297
f3f8ece4
PA
162982020-01-10 Pedro Alves <palves@redhat.com>
16299
16300 * gdbthread.h (scoped_restore_current_thread)
16301 <dont_restore, restore, m_dont_restore>: Declare.
16302 * thread.c (thread_alive): Add assertion. Return bool.
16303 (switch_to_thread_if_alive): New.
16304 (prune_threads): Switch inferior/thread.
16305 (print_thread_info_1): Switch thread before calling target methods.
16306 (scoped_restore_current_thread::restore): New, factored out from
16307 ...
16308 (scoped_restore_current_thread::~scoped_restore_current_thread):
16309 ... this.
16310 (scoped_restore_current_thread::scoped_restore_current_thread):
16311 Add assertion.
16312 (thread_apply_all_command, thread_select): Use
16313 switch_to_thread_if_alive.
16314 * infrun.c (proceed, restart_threads, handle_signal_stop)
16315 (switch_back_to_stepped_thread): Switch current thread before
16316 calling target methods.
16317
db2d40f7
PA
163182020-01-10 Pedro Alves <palves@redhat.com>
16319
16320 * inferior.c (switch_to_inferior_no_thread): New function,
16321 factored out from ...
16322 (inferior_command): ... here.
16323 * inferior.h (switch_to_inferior_no_thread): Declare.
16324 * mi/mi-main.c (run_one_inferior): Use
16325 switch_to_inferior_no_thread.
16326
bd420a2d
PA
163272020-01-10 Pedro Alves <palves@redhat.com>
16328
16329 * infcmd.c (kill_command): Remove dead code.
16330
ddf5db90
PA
163312020-01-10 Pedro Alves <palves@redhat.com>
16332
16333 * remote.c (remote_target::mourn_inferior): No longer check
16334 whether the target is running.
16335
5018ce90
PA
163362020-01-10 Pedro Alves <palves@redhat.com>
16337
16338 * corelow.c (core_target::has_execution): Change parameter type to
16339 inferior pointer.
16340 * inferior.c (number_of_live_inferiors): Use
16341 inferior::has_execution instead of target_has_execution_1.
16342 * inferior.h (inferior::has_execution): New.
16343 * linux-thread-db.c (thread_db_target::update_thread_list): Use
16344 inferior::has_execution instead of target_has_execution_1.
16345 * process-stratum-target.c
16346 (process_stratum_target::has_execution): Change parameter type to
16347 inferior pointer. Check the inferior's PID instead of
16348 inferior_ptid.
16349 * process-stratum-target.h
16350 (process_stratum_target::has_execution): Change parameter type to
16351 inferior pointer.
16352 * record-full.c (record_full_core_target::has_execution): Change
16353 parameter type to inferior pointer.
16354 * target.c (target_has_execution_1): Change parameter type to
16355 inferior pointer.
16356 (target_has_execution_current): Adjust.
16357 * target.h (target_ops::has_execution): Change parameter type to
16358 inferior pointer.
16359 (target_has_execution_1): Change parameter type to inferior
16360 pointer. Change return type to bool.
16361 * tracefile.h (tracefile_target::has_execution): Change parameter
16362 type to inferior pointer.
16363
74375d18
PA
163642020-01-10 Pedro Alves <palves@redhat.com>
16365
16366 * exceptions.c (print_flush): Remove current_top_target() check.
16367
acdf84a6
PA
163682020-01-10 Pedro Alves <palves@redhat.com>
16369
16370 * remote.c (show_remote_exec_file): Show the current inferior's
16371 exec-file instead of the command variable's value.
16372
ec506636
PA
163732020-01-10 Pedro Alves <palves@redhat.com>
16374
16375 * record-full.c (record_full_resume_ptid): New global.
16376 (record_full_target::resume): Set it.
16377 (record_full_wait_1): Use record_full_resume_ptid instead of
16378 inferior_ptid.
16379
873657b9
PA
163802020-01-10 Pedro Alves <palves@redhat.com>
16381
16382 * gdbthread.h (scoped_restore_current_thread)
16383 <dont_restore, restore, m_dont_restore>: Declare.
16384 * thread.c (thread_alive): Add assertion. Return bool.
16385 (switch_to_thread_if_alive): New.
16386 (prune_threads): Switch inferior/thread.
16387 (print_thread_info_1): Switch thread before calling target methods.
16388 (scoped_restore_current_thread::restore): New, factored out from
16389 ...
16390 (scoped_restore_current_thread::~scoped_restore_current_thread):
16391 ... this.
16392 (scoped_restore_current_thread::scoped_restore_current_thread):
16393 Add assertion.
16394 (thread_apply_all_command, thread_select): Use
16395 switch_to_thread_if_alive.
16396
7f0ae84c
GB
163972020-01-10 George Barrett <bob@bob131.so>
16398
16399 * stap-probe.c (stap_modify_semaphore): Don't check for null
16400 semaphores.
16401 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
16402 for null semaphores.
16403
f5a7c406
AB
164042020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16405
16406 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
16407 all source windows, and maintain horizontal scroll status while
16408 doing so.
16409
9ae6bf64
TT
164102020-01-09 Tom Tromey <tom@tromey.com>
16411
16412 PR tui/18932:
16413 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
16414 update_source_window, not print_source_lines.
16415
b2efe70c
AB
164162020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16417
16418 * tui/tui.c (tui_enable): Register tui hooks after calling
16419 tui_display_main.
16420
5f23a082
CB
164212020-01-09 Christian Biesinger <cbiesinger@google.com>
16422
16423 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
16424
3061113b
SM
164252020-01-08 Simon Marchi <simon.marchi@efficios.com>
16426
16427 * thread.c (print_thread_info_1): Fix indentation.
16428
57d75002
CB
164292020-01-09 Christian Biesinger <cbiesinger@google.com>
16430
16431 * symtab.c (general_symbol_info::compute_and_set_names): Move the
16432 unique_xmalloc_ptr outside the if to always free the demangled name.
16433
6a053cb1
TT
164342020-01-08 Tom Tromey <tromey@adacore.com>
16435
16436 * xcoffread.c (enter_line_range, read_xcoff_symtab)
16437 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
16438 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
16439 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
16440 Remove.
16441 (section_offsets): New typedef.
16442 * symtab.c (fixup_section, get_msymbol_address): Update.
16443 * symmisc.c (dump_msymbols): Update.
16444 * symfile.h (relative_addr_info_to_section_offsets)
16445 (symfile_map_offsets_to_segments): Update.
16446 * symfile.c (build_section_addr_info_from_objfile)
16447 (init_objfile_sect_indices): Update.
16448 (struct place_section_arg): Change type of "offsets".
16449 (place_section): Update.
16450 (relative_addr_info_to_section_offsets): Change type of
16451 "section_offsets". Remove "num_sections" parameter.
16452 (default_symfile_offsets, syms_from_objfile_1)
16453 (set_objfile_default_section_offset): Update.
16454 (reread_symbols): No need to preserve section offsets by hand.
16455 (symfile_map_offsets_to_segments): Change type of "offsets".
16456 * stap-probe.c (relocate_address): Update.
16457 * stabsread.h (process_one_symbol): Update.
16458 * solib-target.c (struct lm_info_target) <offsets>: Change type.
16459 (solib_target_relocate_section_addresses): Update.
16460 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
16461 Update.
16462 * solib-frv.c (frv_relocate_main_executable): Update.
16463 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
16464 * solib-aix.c (solib_aix_get_section_offsets): Change return
16465 type.
16466 (solib_aix_solib_create_inferior_hook): Update.
16467 * remote.c (remote_target::get_offsets): Update.
16468 * psymtab.c (find_pc_sect_psymtab): Update.
16469 * psympriv.h (struct partial_symbol) <address, text_low,
16470 text_high>: Update.
16471 * objfiles.h (obj_section_offset): Update.
16472 (struct objfile) <section_offsets>: Change type.
16473 <num_sections>: Remove.
16474 (objfile_relocate): Update.
16475 * objfiles.c (entry_point_address_query): Update
16476 (relocate_one_symbol): Change type of "section_offsets".
16477 (objfile_relocate1, objfile_relocate1): Change type of
16478 "new_offsets".
16479 (objfile_rebase1): Update.
16480 * mipsread.c (mipscoff_symfile_read): Update.
16481 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
16482 parameter.
16483 * mdebugread.c (parse_symbol): Change type of "section_offsets".
16484 (parse_external, psymtab_to_symtab_1): Update.
16485 * machoread.c (macho_symfile_offsets): Update.
16486 * ia64-tdep.c (ia64_find_unwind_table): Update.
16487 * hppa-tdep.c (read_unwind_info): Update.
16488 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
16489 * dwarf2read.c (create_addrmap_from_index)
16490 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
16491 (process_psymtab_comp_unit_reader, add_partial_symbol)
16492 (add_partial_subprogram, process_full_comp_unit)
16493 (read_file_scope, read_func_scope, read_lexical_block_scope)
16494 (read_call_site_scope, dwarf2_rnglists_process)
16495 (dwarf2_ranges_process, dwarf2_ranges_read)
16496 (dwarf_decode_lines_1, var_decode_location, new_symbol)
16497 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
16498 Update.
16499 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
16500 Update.
16501 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
16502 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
16503 (process_one_symbol): Change type of "section_offsets".
16504 * ctfread.c (get_objfile_text_range): Update.
16505 * coffread.c (coff_symtab_read, enter_linenos)
16506 (process_coff_symbol): Update.
16507 * coff-pe-read.c (add_pe_forwarded_sym): Update.
16508 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
16509
456e800a
TT
165102020-01-08 Tom Tromey <tromey@adacore.com>
16511
16512 * dwarf2read.c (parse_macro_definition): Use std::string.
16513 (parse_macro_definition): Likewise.
16514
6dfa2fc2
TT
165152020-01-08 Tom Tromey <tromey@adacore.com>
16516
16517 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
16518 (ATTR_ALLOC_CHUNK): Remove.
16519
421d1616
TT
165202020-01-08 Tom Tromey <tromey@adacore.com>
16521
16522 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
16523
43816ebc
TT
165242020-01-08 Tom Tromey <tromey@adacore.com>
16525
16526 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
16527 (dwarf2_compute_name, open_dwo_file): Likewise.
16528 (process_enumeration_scope): Use std::vector.
16529 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
16530 (partial_die_info::fixup, dwarf2_start_subfile)
16531 (guess_full_die_structure_name, dwarf2_name): Likewise.
16532 (determine_prefix): Update.
16533 (guess_full_die_structure_name): Make return type const.
16534 (partial_die_full_name): Return unique_xmalloc_ptr.
16535 (DW_FIELD_ALLOC_CHUNK): Remove.
16536
4212d509
TT
165372020-01-07 Tom Tromey <tromey@adacore.com>
16538
16539 PR build/24937:
16540 * stap-probe.c (class stap_static_probe_ops): Add constructor.
16541
06a6207a
JT
165422020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
16543
16544 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
16545
153d79c4
AB
165462020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
16547
16548 * stack.c (print_frame_info): Move disassemble_next_line code
16549 inside source_print block.
16550
66182876
EZ
165512020-01-06 Eli Zaretskii <eliz@gnu.org>
16552
16553 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
16554 gdb/signals.h, as we are now using native signal symbols.
16555
cbfa8581
SV
165562020-01-06 Shahab Vahedi <shahab@synopsys.com>
16557
16558 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
16559 overflow by an early check of content vs threshold.
aac66a4c 16560 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
16561 Likewise.
16562
3f602821
EZ
165632020-01-06 Eli Zaretskii <eliz@gnu.org>
16564
16565 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
16566
a08c904d
JT
165672020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
16568
16569 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
16570 export table if no section contains it's RVA.
16571
89a65580
EZ
165722020-01-06 Eli Zaretskii <eliz@gnu.org>
16573
16574 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
16575
8b7fcda2
HD
165762020-01-06 Hannes Domani <ssbssa@yahoo.de>
16577
16578 * source.c (print_source_lines_base): Set last_line_listed.
16579
a61b4f69
SV
165802020-01-06 Shahab Vahedi <shahab@synopsys.com>
16581
16582 * tui/tui-disasm.c: Remove trailing spaces.
16583
559e7e50
EZ
165842020-01-06 Eli Zaretskii <eliz@gnu.org>
16585 Pedro Alves <palves@redhat.com>
16586
16587 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
16588 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
16589 (windows_gdb_signal_to_target): New function, uses the above
16590 enumeration to convert GDB internal signal codes to equivalent
16591 Windows codes.
16592 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
16593 * windows-nat.c: Include "gdb_wait.h".
16594 (get_windows_debug_event): Extract the fatal exception from the
16595 exit status and convert to the equivalent Posix signal number.
16596 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
16597 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
16598 * gdbsupport/gdb_wait.c: New file, implements
16599 windows_status_to_termsig.
16600 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
16601 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
16602
f2302a34
AB
166032020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
16604
16605 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
16606 show_layout.
16607
6a5206eb
LM
166082020-01-05 Luis Machado <luis.machado@linaro.org>
16609
16610 * aarch64-linux-nat.c
16611 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
16612 and bfd_mach_aarch64.
16613
6ec1d75e
PW
166142020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16615
16616 * ui-file.c (stdio_file::can_emit_style_escape)
16617 (tee_file::can_emit_style_escape): Ensure style is used also on
16618 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
16619 to gdb_stdout.
16620 * main.c (set_gdb_data_directory): Use file style to output the
16621 warning that the given pathname is not a directory.
16622 * top.c (show_history_filename, gdb_safe_append_history)
16623 (show_gdb_datadir): Use file style.
16624
44f81a76
HD
166252020-01-03 Hannes Domani <ssbssa@yahoo.de>
16626
16627 * solib-target.c (struct lm_info_target):
16628 Change offsets to be a unique_xmalloc_ptr.
16629 (solib_target_relocate_section_addresses): Update.
16630
25057eb0
HD
166312020-01-03 Hannes Domani <ssbssa@yahoo.de>
16632
16633 * windows-nat.c (windows_clear_solib): Free so_list linked list.
16634
6e2118f5
BE
166352020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
16636
16637 * MAINTAINERS (Write After Approval): Add myself.
16638
8133c7dc
LM
166392020-01-02 Luis Machado <luis.machado@linaro.org>
16640
16641 * proc-service.c (get_ps_regcache): Remove reference to obsolete
16642 Cell BE architecture.
16643 * target.h (struct target_ops) <thread_architecture>: Likewise.
16644
48189bec
HD
166452020-01-01 Hannes Domani <ssbssa@yahoo.de>
16646
16647 * Makefile.in: Use INSTALL_PROGRAM_ENV.
16648
ead1063b
HD
166492020-01-01 Hannes Domani <ssbssa@yahoo.de>
16650
16651 * MAINTAINERS (Write After Approval): Add myself.
16652
e5d78223
JB
166532020-01-01 Joel Brobecker <brobecker@adacore.com>
16654
16655 * gdbarch.sh: Update copyright year range of generated files.
16656
b811d2c2
JB
166572020-01-01 Joel Brobecker <brobecker@adacore.com>
16658
16659 Update copyright year range in all GDB files.
16660
5f4def5c
JB
166612020-01-01 Joel Brobecker <brobecker@adacore.com>
16662
16663 * copyright.py: Convert to Python 3.
16664
51fd4002
JB
166652020-01-01 Joel Brobecker <brobecker@adacore.com>
16666
16667 * copyright.py: Adapt after move of gnulib directory from gdb
16668 directory to toplevel directory.
16669
5fb651f2
JB
166702020-01-01 Joel Brobecker <brobecker@adacore.com>
16671
16672 * copyright.py (main): Exit if run from the wrong directory.
16673
5dd8bf88
JB
166742020-01-01 Joel Brobecker <brobecker@adacore.com>
16675
16676 * top.c (print_gdb_version): Change copyright year to 2020.
16677
9f71dacb 166782020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 16679
9f71dacb 16680 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 16681
9f71dacb 16682For older changes see ChangeLog-2019.
c906108c
SS
16683\f
16684Local Variables:
16685mode: change-log
16686left-margin: 8
16687fill-column: 74
16688version-control: never
57da7796 16689coding: utf-8
c906108c 16690End: