]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
gdbserver: add missing --disable-packet options to help text
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
baf20f76
TT
12020-11-10 Tom Tromey <tom@tromey.com>
2
3 * value.h (internalvar_name): Update.
4 * value.c (internalvar_name): Make return type const.
5
caaece0e
TT
62020-11-10 Tom Tromey <tom@tromey.com>
7
8 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
9 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
10 const.
11
8e20b4be
TT
122020-11-10 Tom Tromey <tom@tromey.com>
13
14 * objc-lang.h (value_nsstring): Update.
15 * objc-lang.c (value_nsstring): Make "ptr" const.
16
86775fab
AB
172020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
18
19 * expprint.c (print_subexp_funcall): Increment expression position
20 after reading argument count.
21 * f-lang.c (print_subexp_f): Skip over opcode before calling
22 common function.
23 (dump_subexp_body_f): Likewise.
24
3fed4c0b
RG
252020-11-06 Romain Geissler <romain.geissler@amadeus.com>
26
27 PR python/26832
28 * configure: Regenerate.
29 * configure.ac: Check for python modules ctypes instead of
30 itertools.
31
ac3d4064
PA
322020-11-06 Pedro Alves <pedro@palves.net>
33
34 * macroexp.c (struct macro_buffer): Split in two classes. Add
35 uses adjusted.
36 (struct shared_macro_buffer): New, factored out from struct
37 macro_buffer.
38 (struct growable_macro_buffer): New, factored out from struct
39 macro_buffer.
40 (set_token, get_comment, get_identifier, get_pp_number)
41 (get_character_constant, get_string_literal, get_punctuator)
42 (get_next_token_for_substitution): Constify parameters.
43 (substitute_args): Constify locals.
44
606decb2
TT
452020-11-05 Tom Tromey <tom@tromey.com>
46
47 * dwarf2/read.c (read_cutu_die_from_dwo)
48 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
49 (build_type_psymtabs_1): Update.
50 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
51 parameter.
52 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
53 Don't read section. Add assert.
54
9c91c725
TT
552020-11-04 Tom Tromey <tromey@adacore.com>
56
57 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
58
8d9fd3a1
TT
592020-11-04 Tom Tromey <tromey@adacore.com>
60
61 * ada-typeprint.c (ada_print_type): Handle __T types.
62
d8f62e84
TT
632020-11-04 Tom Tromey <tromey@adacore.com>
64
65 * dwarf2/read.c (add_partial_symbol, process_die):
66 Handle DW_TAG_array_type.
67 (is_type_tag_for_partial): Add "lang" parameter.
68 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
69
7ff5b937
TT
702020-11-04 Tom Tromey <tromey@adacore.com>
71
72 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
73
10f6a3ad
TT
742020-11-04 Tom Tromey <tromey@adacore.com>
75
76 * dwarf2/read.c (read_array_type): Only apply stride to innermost
77 array.
78
b72795a8
TT
792020-11-04 Tom Tromey <tromey@adacore.com>
80
81 * gdbtypes.c (update_static_array_size): Handle bit stride.
82
24aa1b02
TT
832020-11-04 Tom Tromey <tromey@adacore.com>
84
85 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
86
c9a28cbe
TT
872020-11-04 Tom Tromey <tromey@adacore.com>
88
89 * ada-lang.c (ada_is_any_packed_array_type): New function.
90 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
91
57567375
TT
922020-11-04 Tom Tromey <tromey@adacore.com>
93
94 * dwarf2/read.c (recognize_bound_expression)
95 (quirk_ada_thick_pointer): New functions.
96 (read_array_type): Call quirk_ada_thick_pointer.
97 (set_die_type): Add "skip_data_location" parameter.
98 (quirk_ada_thick_pointer): New function.
99 (process_structure_scope): Call quirk_ada_thick_pointer.
100 * ada-lang.c (ada_is_unconstrained_packed_array_type)
101 (decode_packed_array_bitsize): Handle thick pointers without
102 parallel types.
103 (ada_is_gnat_encoded_packed_array_type): Rename from
104 ada_is_packed_array_type.
105 (ada_is_constrained_packed_array_type): Update.
106 * ada-valprint.c (ada_val_print_gnat_array): Remove.
107 (ada_value_print_1): Use ada_get_decoded_value.
108
a7400e44
TT
1092020-11-04 Tom Tromey <tromey@adacore.com>
110
111 * ada-lang.c (recursively_update_array_bitsize): New function.
112 (decode_constrained_packed_array_type): Call it.
113
75fd6a26
TT
1142020-11-04 Tom Tromey <tromey@adacore.com>
115
116 * ada-lang.c (to_fixed_array_type): Error if
117 decode_constrained_packed_array_type returns NULL.
118
93f9561e
TT
1192020-11-04 Tom Tromey <tromey@adacore.com>
120
121 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
122
257e02d8
TT
1232020-11-02 Tom Tromey <tromey@adacore.com>
124
125 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
126 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
127 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
128 * amd64-ravenscar-thread.c: New file.
129 * amd64-ravenscar-thread.h: New file.
130 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
131 * configure.tgt (amd64_tobjs): Add ravenscar objects.
132
74d877e5
AB
1332020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
134
135 * main.c (execute_cmdargs): New function.
136 (captured_main_1): Make use of execute_cmdargs.
137
64aaad63
AB
1382020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
139
140 * NEWS: Mention changes to config file search path.
141 * main.c
142
5b3d3560
TT
1432020-11-02 Tom Tromey <tromey@adacore.com>
144
145 * python/python.c: Consolidate two HAVE_PYTHON blocks.
146 (python_GdbModuleDef): Move earlier. Now static.
147 (do_start_initialization): Consolidate some IS_PY3K blocks.
148
dda83cd7
SM
1492020-11-02 Simon Marchi <simon.marchi@efficios.com>
150
151 * aarch64-linux-tdep.c: Fix indentation.
152 * aarch64-ravenscar-thread.c: Fix indentation.
153 * aarch64-tdep.c: Fix indentation.
154 * aarch64-tdep.h: Fix indentation.
155 * ada-lang.c: Fix indentation.
156 * ada-lang.h: Fix indentation.
157 * ada-tasks.c: Fix indentation.
158 * ada-typeprint.c: Fix indentation.
159 * ada-valprint.c: Fix indentation.
160 * ada-varobj.c: Fix indentation.
161 * addrmap.c: Fix indentation.
162 * addrmap.h: Fix indentation.
163 * agent.c: Fix indentation.
164 * aix-thread.c: Fix indentation.
165 * alpha-bsd-nat.c: Fix indentation.
166 * alpha-linux-tdep.c: Fix indentation.
167 * alpha-mdebug-tdep.c: Fix indentation.
168 * alpha-nbsd-tdep.c: Fix indentation.
169 * alpha-obsd-tdep.c: Fix indentation.
170 * alpha-tdep.c: Fix indentation.
171 * amd64-bsd-nat.c: Fix indentation.
172 * amd64-darwin-tdep.c: Fix indentation.
173 * amd64-linux-nat.c: Fix indentation.
174 * amd64-linux-tdep.c: Fix indentation.
175 * amd64-nat.c: Fix indentation.
176 * amd64-obsd-tdep.c: Fix indentation.
177 * amd64-tdep.c: Fix indentation.
178 * amd64-windows-tdep.c: Fix indentation.
179 * annotate.c: Fix indentation.
180 * arc-tdep.c: Fix indentation.
181 * arch-utils.c: Fix indentation.
182 * arch/arm-get-next-pcs.c: Fix indentation.
183 * arch/arm.c: Fix indentation.
184 * arm-linux-nat.c: Fix indentation.
185 * arm-linux-tdep.c: Fix indentation.
186 * arm-nbsd-tdep.c: Fix indentation.
187 * arm-pikeos-tdep.c: Fix indentation.
188 * arm-tdep.c: Fix indentation.
189 * arm-tdep.h: Fix indentation.
190 * arm-wince-tdep.c: Fix indentation.
191 * auto-load.c: Fix indentation.
192 * auxv.c: Fix indentation.
193 * avr-tdep.c: Fix indentation.
194 * ax-gdb.c: Fix indentation.
195 * ax-general.c: Fix indentation.
196 * bfin-linux-tdep.c: Fix indentation.
197 * block.c: Fix indentation.
198 * block.h: Fix indentation.
199 * blockframe.c: Fix indentation.
200 * bpf-tdep.c: Fix indentation.
201 * break-catch-sig.c: Fix indentation.
202 * break-catch-syscall.c: Fix indentation.
203 * break-catch-throw.c: Fix indentation.
204 * breakpoint.c: Fix indentation.
205 * breakpoint.h: Fix indentation.
206 * bsd-uthread.c: Fix indentation.
207 * btrace.c: Fix indentation.
208 * build-id.c: Fix indentation.
209 * buildsym-legacy.h: Fix indentation.
210 * buildsym.c: Fix indentation.
211 * c-typeprint.c: Fix indentation.
212 * c-valprint.c: Fix indentation.
213 * c-varobj.c: Fix indentation.
214 * charset.c: Fix indentation.
215 * cli/cli-cmds.c: Fix indentation.
216 * cli/cli-decode.c: Fix indentation.
217 * cli/cli-decode.h: Fix indentation.
218 * cli/cli-script.c: Fix indentation.
219 * cli/cli-setshow.c: Fix indentation.
220 * coff-pe-read.c: Fix indentation.
221 * coffread.c: Fix indentation.
222 * compile/compile-cplus-types.c: Fix indentation.
223 * compile/compile-object-load.c: Fix indentation.
224 * compile/compile-object-run.c: Fix indentation.
225 * completer.c: Fix indentation.
226 * corefile.c: Fix indentation.
227 * corelow.c: Fix indentation.
228 * cp-abi.h: Fix indentation.
229 * cp-namespace.c: Fix indentation.
230 * cp-support.c: Fix indentation.
231 * cp-valprint.c: Fix indentation.
232 * cris-linux-tdep.c: Fix indentation.
233 * cris-tdep.c: Fix indentation.
234 * darwin-nat-info.c: Fix indentation.
235 * darwin-nat.c: Fix indentation.
236 * darwin-nat.h: Fix indentation.
237 * dbxread.c: Fix indentation.
238 * dcache.c: Fix indentation.
239 * disasm.c: Fix indentation.
240 * dtrace-probe.c: Fix indentation.
241 * dwarf2/abbrev.c: Fix indentation.
242 * dwarf2/attribute.c: Fix indentation.
243 * dwarf2/expr.c: Fix indentation.
244 * dwarf2/frame.c: Fix indentation.
245 * dwarf2/index-cache.c: Fix indentation.
246 * dwarf2/index-write.c: Fix indentation.
247 * dwarf2/line-header.c: Fix indentation.
248 * dwarf2/loc.c: Fix indentation.
249 * dwarf2/macro.c: Fix indentation.
250 * dwarf2/read.c: Fix indentation.
251 * dwarf2/read.h: Fix indentation.
252 * elfread.c: Fix indentation.
253 * eval.c: Fix indentation.
254 * event-top.c: Fix indentation.
255 * exec.c: Fix indentation.
256 * exec.h: Fix indentation.
257 * expprint.c: Fix indentation.
258 * f-lang.c: Fix indentation.
259 * f-typeprint.c: Fix indentation.
260 * f-valprint.c: Fix indentation.
261 * fbsd-nat.c: Fix indentation.
262 * fbsd-tdep.c: Fix indentation.
263 * findvar.c: Fix indentation.
264 * fork-child.c: Fix indentation.
265 * frame-unwind.c: Fix indentation.
266 * frame-unwind.h: Fix indentation.
267 * frame.c: Fix indentation.
268 * frv-linux-tdep.c: Fix indentation.
269 * frv-tdep.c: Fix indentation.
270 * frv-tdep.h: Fix indentation.
271 * ft32-tdep.c: Fix indentation.
272 * gcore.c: Fix indentation.
273 * gdb_bfd.c: Fix indentation.
274 * gdbarch.sh: Fix indentation.
275 * gdbarch.c: Re-generate
276 * gdbarch.h: Re-generate.
277 * gdbcore.h: Fix indentation.
278 * gdbthread.h: Fix indentation.
279 * gdbtypes.c: Fix indentation.
280 * gdbtypes.h: Fix indentation.
281 * glibc-tdep.c: Fix indentation.
282 * gnu-nat.c: Fix indentation.
283 * gnu-nat.h: Fix indentation.
284 * gnu-v2-abi.c: Fix indentation.
285 * gnu-v3-abi.c: Fix indentation.
286 * go32-nat.c: Fix indentation.
287 * guile/guile-internal.h: Fix indentation.
288 * guile/scm-cmd.c: Fix indentation.
289 * guile/scm-frame.c: Fix indentation.
290 * guile/scm-iterator.c: Fix indentation.
291 * guile/scm-math.c: Fix indentation.
292 * guile/scm-ports.c: Fix indentation.
293 * guile/scm-pretty-print.c: Fix indentation.
294 * guile/scm-value.c: Fix indentation.
295 * h8300-tdep.c: Fix indentation.
296 * hppa-linux-nat.c: Fix indentation.
297 * hppa-linux-tdep.c: Fix indentation.
298 * hppa-nbsd-nat.c: Fix indentation.
299 * hppa-nbsd-tdep.c: Fix indentation.
300 * hppa-obsd-nat.c: Fix indentation.
301 * hppa-tdep.c: Fix indentation.
302 * hppa-tdep.h: Fix indentation.
303 * i386-bsd-nat.c: Fix indentation.
304 * i386-darwin-nat.c: Fix indentation.
305 * i386-darwin-tdep.c: Fix indentation.
306 * i386-dicos-tdep.c: Fix indentation.
307 * i386-gnu-nat.c: Fix indentation.
308 * i386-linux-nat.c: Fix indentation.
309 * i386-linux-tdep.c: Fix indentation.
310 * i386-nto-tdep.c: Fix indentation.
311 * i386-obsd-tdep.c: Fix indentation.
312 * i386-sol2-nat.c: Fix indentation.
313 * i386-tdep.c: Fix indentation.
314 * i386-tdep.h: Fix indentation.
315 * i386-windows-tdep.c: Fix indentation.
316 * i387-tdep.c: Fix indentation.
317 * i387-tdep.h: Fix indentation.
318 * ia64-libunwind-tdep.c: Fix indentation.
319 * ia64-libunwind-tdep.h: Fix indentation.
320 * ia64-linux-nat.c: Fix indentation.
321 * ia64-linux-tdep.c: Fix indentation.
322 * ia64-tdep.c: Fix indentation.
323 * ia64-tdep.h: Fix indentation.
324 * ia64-vms-tdep.c: Fix indentation.
325 * infcall.c: Fix indentation.
326 * infcmd.c: Fix indentation.
327 * inferior.c: Fix indentation.
328 * infrun.c: Fix indentation.
329 * iq2000-tdep.c: Fix indentation.
330 * language.c: Fix indentation.
331 * linespec.c: Fix indentation.
332 * linux-fork.c: Fix indentation.
333 * linux-nat.c: Fix indentation.
334 * linux-tdep.c: Fix indentation.
335 * linux-thread-db.c: Fix indentation.
336 * lm32-tdep.c: Fix indentation.
337 * m2-lang.c: Fix indentation.
338 * m2-typeprint.c: Fix indentation.
339 * m2-valprint.c: Fix indentation.
340 * m32c-tdep.c: Fix indentation.
341 * m32r-linux-tdep.c: Fix indentation.
342 * m32r-tdep.c: Fix indentation.
343 * m68hc11-tdep.c: Fix indentation.
344 * m68k-bsd-nat.c: Fix indentation.
345 * m68k-linux-nat.c: Fix indentation.
346 * m68k-linux-tdep.c: Fix indentation.
347 * m68k-tdep.c: Fix indentation.
348 * machoread.c: Fix indentation.
349 * macrocmd.c: Fix indentation.
350 * macroexp.c: Fix indentation.
351 * macroscope.c: Fix indentation.
352 * macrotab.c: Fix indentation.
353 * macrotab.h: Fix indentation.
354 * main.c: Fix indentation.
355 * mdebugread.c: Fix indentation.
356 * mep-tdep.c: Fix indentation.
357 * mi/mi-cmd-catch.c: Fix indentation.
358 * mi/mi-cmd-disas.c: Fix indentation.
359 * mi/mi-cmd-env.c: Fix indentation.
360 * mi/mi-cmd-stack.c: Fix indentation.
361 * mi/mi-cmd-var.c: Fix indentation.
362 * mi/mi-cmds.c: Fix indentation.
363 * mi/mi-main.c: Fix indentation.
364 * mi/mi-parse.c: Fix indentation.
365 * microblaze-tdep.c: Fix indentation.
366 * minidebug.c: Fix indentation.
367 * minsyms.c: Fix indentation.
368 * mips-linux-nat.c: Fix indentation.
369 * mips-linux-tdep.c: Fix indentation.
370 * mips-nbsd-tdep.c: Fix indentation.
371 * mips-tdep.c: Fix indentation.
372 * mn10300-linux-tdep.c: Fix indentation.
373 * mn10300-tdep.c: Fix indentation.
374 * moxie-tdep.c: Fix indentation.
375 * msp430-tdep.c: Fix indentation.
376 * namespace.h: Fix indentation.
377 * nat/fork-inferior.c: Fix indentation.
378 * nat/gdb_ptrace.h: Fix indentation.
379 * nat/linux-namespaces.c: Fix indentation.
380 * nat/linux-osdata.c: Fix indentation.
381 * nat/netbsd-nat.c: Fix indentation.
382 * nat/x86-dregs.c: Fix indentation.
383 * nbsd-nat.c: Fix indentation.
384 * nbsd-tdep.c: Fix indentation.
385 * nios2-linux-tdep.c: Fix indentation.
386 * nios2-tdep.c: Fix indentation.
387 * nto-procfs.c: Fix indentation.
388 * nto-tdep.c: Fix indentation.
389 * objfiles.c: Fix indentation.
390 * objfiles.h: Fix indentation.
391 * opencl-lang.c: Fix indentation.
392 * or1k-tdep.c: Fix indentation.
393 * osabi.c: Fix indentation.
394 * osabi.h: Fix indentation.
395 * osdata.c: Fix indentation.
396 * p-lang.c: Fix indentation.
397 * p-typeprint.c: Fix indentation.
398 * p-valprint.c: Fix indentation.
399 * parse.c: Fix indentation.
400 * ppc-linux-nat.c: Fix indentation.
401 * ppc-linux-tdep.c: Fix indentation.
402 * ppc-nbsd-nat.c: Fix indentation.
403 * ppc-nbsd-tdep.c: Fix indentation.
404 * ppc-obsd-nat.c: Fix indentation.
405 * ppc-ravenscar-thread.c: Fix indentation.
406 * ppc-sysv-tdep.c: Fix indentation.
407 * ppc64-tdep.c: Fix indentation.
408 * printcmd.c: Fix indentation.
409 * proc-api.c: Fix indentation.
410 * producer.c: Fix indentation.
411 * producer.h: Fix indentation.
412 * prologue-value.c: Fix indentation.
413 * prologue-value.h: Fix indentation.
414 * psymtab.c: Fix indentation.
415 * python/py-arch.c: Fix indentation.
416 * python/py-bpevent.c: Fix indentation.
417 * python/py-event.c: Fix indentation.
418 * python/py-event.h: Fix indentation.
419 * python/py-finishbreakpoint.c: Fix indentation.
420 * python/py-frame.c: Fix indentation.
421 * python/py-framefilter.c: Fix indentation.
422 * python/py-inferior.c: Fix indentation.
423 * python/py-infthread.c: Fix indentation.
424 * python/py-objfile.c: Fix indentation.
425 * python/py-prettyprint.c: Fix indentation.
426 * python/py-registers.c: Fix indentation.
427 * python/py-signalevent.c: Fix indentation.
428 * python/py-stopevent.c: Fix indentation.
429 * python/py-stopevent.h: Fix indentation.
430 * python/py-threadevent.c: Fix indentation.
431 * python/py-tui.c: Fix indentation.
432 * python/py-unwind.c: Fix indentation.
433 * python/py-value.c: Fix indentation.
434 * python/py-xmethods.c: Fix indentation.
435 * python/python-internal.h: Fix indentation.
436 * python/python.c: Fix indentation.
437 * ravenscar-thread.c: Fix indentation.
438 * record-btrace.c: Fix indentation.
439 * record-full.c: Fix indentation.
440 * record.c: Fix indentation.
441 * reggroups.c: Fix indentation.
442 * regset.h: Fix indentation.
443 * remote-fileio.c: Fix indentation.
444 * remote.c: Fix indentation.
445 * reverse.c: Fix indentation.
446 * riscv-linux-tdep.c: Fix indentation.
447 * riscv-ravenscar-thread.c: Fix indentation.
448 * riscv-tdep.c: Fix indentation.
449 * rl78-tdep.c: Fix indentation.
450 * rs6000-aix-tdep.c: Fix indentation.
451 * rs6000-lynx178-tdep.c: Fix indentation.
452 * rs6000-nat.c: Fix indentation.
453 * rs6000-tdep.c: Fix indentation.
454 * rust-lang.c: Fix indentation.
455 * rx-tdep.c: Fix indentation.
456 * s12z-tdep.c: Fix indentation.
457 * s390-linux-tdep.c: Fix indentation.
458 * score-tdep.c: Fix indentation.
459 * ser-base.c: Fix indentation.
460 * ser-mingw.c: Fix indentation.
461 * ser-uds.c: Fix indentation.
462 * ser-unix.c: Fix indentation.
463 * serial.c: Fix indentation.
464 * sh-linux-tdep.c: Fix indentation.
465 * sh-nbsd-tdep.c: Fix indentation.
466 * sh-tdep.c: Fix indentation.
467 * skip.c: Fix indentation.
468 * sol-thread.c: Fix indentation.
469 * solib-aix.c: Fix indentation.
470 * solib-darwin.c: Fix indentation.
471 * solib-frv.c: Fix indentation.
472 * solib-svr4.c: Fix indentation.
473 * solib.c: Fix indentation.
474 * source.c: Fix indentation.
475 * sparc-linux-tdep.c: Fix indentation.
476 * sparc-nbsd-tdep.c: Fix indentation.
477 * sparc-obsd-tdep.c: Fix indentation.
478 * sparc-ravenscar-thread.c: Fix indentation.
479 * sparc-tdep.c: Fix indentation.
480 * sparc64-linux-tdep.c: Fix indentation.
481 * sparc64-nbsd-tdep.c: Fix indentation.
482 * sparc64-obsd-tdep.c: Fix indentation.
483 * sparc64-tdep.c: Fix indentation.
484 * stabsread.c: Fix indentation.
485 * stack.c: Fix indentation.
486 * stap-probe.c: Fix indentation.
487 * stubs/ia64vms-stub.c: Fix indentation.
488 * stubs/m32r-stub.c: Fix indentation.
489 * stubs/m68k-stub.c: Fix indentation.
490 * stubs/sh-stub.c: Fix indentation.
491 * stubs/sparc-stub.c: Fix indentation.
492 * symfile-mem.c: Fix indentation.
493 * symfile.c: Fix indentation.
494 * symfile.h: Fix indentation.
495 * symmisc.c: Fix indentation.
496 * symtab.c: Fix indentation.
497 * symtab.h: Fix indentation.
498 * target-float.c: Fix indentation.
499 * target.c: Fix indentation.
500 * target.h: Fix indentation.
501 * tic6x-tdep.c: Fix indentation.
502 * tilegx-linux-tdep.c: Fix indentation.
503 * tilegx-tdep.c: Fix indentation.
504 * top.c: Fix indentation.
505 * tracefile-tfile.c: Fix indentation.
506 * tracepoint.c: Fix indentation.
507 * tui/tui-disasm.c: Fix indentation.
508 * tui/tui-io.c: Fix indentation.
509 * tui/tui-regs.c: Fix indentation.
510 * tui/tui-stack.c: Fix indentation.
511 * tui/tui-win.c: Fix indentation.
512 * tui/tui-winsource.c: Fix indentation.
513 * tui/tui.c: Fix indentation.
514 * typeprint.c: Fix indentation.
515 * ui-out.h: Fix indentation.
516 * unittests/copy_bitwise-selftests.c: Fix indentation.
517 * unittests/memory-map-selftests.c: Fix indentation.
518 * utils.c: Fix indentation.
519 * v850-tdep.c: Fix indentation.
520 * valarith.c: Fix indentation.
521 * valops.c: Fix indentation.
522 * valprint.c: Fix indentation.
523 * valprint.h: Fix indentation.
524 * value.c: Fix indentation.
525 * value.h: Fix indentation.
526 * varobj.c: Fix indentation.
527 * vax-tdep.c: Fix indentation.
528 * windows-nat.c: Fix indentation.
529 * windows-tdep.c: Fix indentation.
530 * xcoffread.c: Fix indentation.
531 * xml-syscall.c: Fix indentation.
532 * xml-tdesc.c: Fix indentation.
533 * xstormy16-tdep.c: Fix indentation.
534 * xtensa-config.c: Fix indentation.
535 * xtensa-linux-nat.c: Fix indentation.
536 * xtensa-linux-tdep.c: Fix indentation.
537 * xtensa-tdep.c: Fix indentation.
538
e1f57067
AB
5392020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
540 Craig Blackmore <craig.blackmore@embecosm.com>
541
542 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
543 as an unsigned value.
544
ae7754b2
TT
5452020-11-01 Tom Tromey <tom@tromey.com>
546
547 * dbxread.c (dbx_end_psymtab): Update.
548 * dwarf2/read.c (process_psymtab_comp_unit_reader)
549 (build_type_psymtabs_reader): Update.
550 * xcoffread.c (xcoff_end_psymtab): Update.
551 * ctfread.c (scan_partial_symbols): Update.
552 * psymtab.c (sort_pst_symbols): Remove.
553 (partial_symtab::end): Rename from end_psymtab_common. Inline
554 sort_pst_symbols.
555 * psympriv.h (struct partial_symtab) <end>: New method.
556 (end_psymtab_common): Don't declare.
557
0684bb51
TT
5582020-11-01 Tom Tromey <tom@tromey.com>
559
560 * symmisc.c (count_psyms): New function.
561 (print_objfile_statistics): Use it.
562 * psymtab.c (append_psymbol_to_list): Remove.
563 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
564 * objfiles.h (struct objstats) <n_psyms>: Remove.
565
089002bb
TT
5662020-11-01 Tom Tromey <tom@tromey.com>
567
568 * dbxread.c (dbx_end_psymtab): Update.
569 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
570 (build_type_psymtabs_reader): Update.
571 * xcoffread.c (xcoff_end_psymtab): Update.
572 * ctfread.c (scan_partial_symbols): Update.
573 * psympriv.h (end_psymtab_common): Update.
574 * psymtab.c (end_psymtab_common): Remove objfile parameter.
575 (sort_pst_symbols): Likewise.
576
525454d6
TT
5772020-11-01 Tom Tromey <tom@tromey.com>
578
579 * dbxread.c (dbx_symfile_read): Update.
580 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
581 * xcoffread.c (xcoff_initial_scan): Update.
582 * psympriv.h (init_psymbol_list): Don't declare.
583 * psymtab.c (init_psymbol_list): Remove.
584
60bd1d53
JB
5852020-11-01 Joel Brobecker <brobecker@adacore.com>
586
587 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
588 gnat_encoded_fixed_type_info. Update all callers.
589
db99d0d0
JB
5902020-11-01 Joel Brobecker <brobecker@adacore.com>
591
592 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
593 line too long.
594
75f24e86
JB
5952020-11-01 Joel Brobecker <brobecker@adacore.com>
596
597 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
598 cast_from_fixed. Update all callers.
599 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
600 Update all callers.
601 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
602 Update all callers.
603 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
604 ada_scaling_factor.
605 * ada-typeprint.c: Replace call to ada_scaling_factor by call
606 to print_gnat_encoded_fixed_point_type.
607 * ada-valprint.c: Likewise.
608
4f0469cd
AB
6092020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
610
611 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
612 (debug_prefixed_printf): Add check of debug_displaced flag.
613 * linux-nat.c (linux_nat_debug_printf): Add check of
614 debug_linux_nat flag.
615
17417fb0
SM
6162020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
617
618 * infrun.c (infrun_debug_printf_1): Remove.
619 (displaced_debug_printf_1): Remove.
620 (stop_all_threads): Use debug_prefixed_printf.
621 * infrun.h (infrun_debug_printf_1): Remove.
622 (infrun_debug_printf): Use debug_prefixed_printf.
623 (displaced_debug_printf_1): Remove.
624 (displaced_debug_printf): Use debug_prefixed_printf.
625 * linux-nat.c (linux_nat_debug_printf_1): Remove.
626 (linux_nat_debug_printf): Use debug_prefixed_printf.
627
ad6dba1c
SM
6282020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
629
630 * configure: Re-generate.
631 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
632 AC_LANG_PROGRAM.
633
b6fb30ed
SM
6342020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
635
636 * configure: Re-generate.
637
5164c117
SM
6382020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
639
640 * configure: Re-generate.
641
864ca435
SM
6422020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
643
644 * configure: Re-generate.
645
b9442ec1
SM
6462020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
647
648 * configure: Re-generate.
649
294f2697
SM
6502020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
651
652 * acinclude.m4: Modernize.
653 * configure: Re-generate.
654
5593a99a
SM
6552020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
656
657 * configure.ac: Modernize.
658 * configure: Re-generate.
659
e41fda1d
SM
6602020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
661
662 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
663 * configure: Re-generate.
664 * configure.ac: Remove AM_PROG_CC_STDC.
665
91e1a0ed
SM
6662020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
667
668 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
669 AC_CANONICAL_SYSTEM.
670 * configure: Re-generate.
671
136821d9
SM
6722020-10-30 Simon Marchi <simon.marchi@efficios.com>
673
674 * infrun.h (displaced_debug_printf): New macro. Replace
675 displaced debug prints throughout to use it.
676 (displaced_debug_printf_1): New declaration.
677 (displaced_step_dump_bytes): Return string, remove ui_file
678 parameter, update all callers.
679 * infrun.c (displaced_debug_printf_1): New function.
680 (displaced_step_dump_bytes): Return string, remove ui_file
681 parameter
682
aa2045e7
SM
6832020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
684
685 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
686
b1ec2735
TT
6872020-10-30 Tom Tromey <tromey@adacore.com>
688
689 * Makefile.in (stamp-init): Depend on config.status.
690
b78b3a29
TBA
6912020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
692
693 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
694
d70bdd3c
PA
6952020-10-30 Pedro Alves <pedro@palves.net>
696
697 * thread.c (lookup_selected_frame): Move ...
698 * frame.c (lookup_selected_frame): ... here.
699
79952e69
PA
7002020-10-30 Pedro Alves <pedro@palves.net>
701
702 * blockframe.c (block_innermost_frame): Use get_selected_frame.
703 * frame.c
704 (scoped_restore_selected_frame::scoped_restore_selected_frame):
705 Use save_selected_frame. Save language as well.
706 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
707 Use restore_selected_frame, and restore language as well.
708 (selected_frame_id, selected_frame_level): New.
709 (selected_frame): Update comments.
710 (save_selected_frame, restore_selected_frame): New.
711 (get_selected_frame): Use lookup_selected_frame.
712 (get_selected_frame_if_set): Delete.
713 (select_frame): Record selected_frame_level and selected_frame_id.
714 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
715 fields.
716 (get_selected_frame): Make 'message' parameter optional.
717 (get_selected_frame_if_set): Delete declaration.
718 (select_frame): Update comments.
719 (save_selected_frame, restore_selected_frame)
720 (lookup_selected_frame): Declare.
721 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
722 * infrun.c (struct infcall_control_state) <selected_frame_level>:
723 New field.
724 (save_infcall_control_state): Use save_selected_frame.
725 (restore_selected_frame): Delete.
726 (restore_infcall_control_state): Use restore_selected_frame.
727 * stack.c (select_frame_command_core, frame_command_core): Use
728 get_selected_frame.
729 * thread.c (restore_selected_frame): Rename to ...
730 (lookup_selected_frame): ... this and make extern. Select the
731 current frame if the frame level is -1.
732 (scoped_restore_current_thread::restore): Also restore the
733 language.
734 (scoped_restore_current_thread::~scoped_restore_current_thread):
735 Don't try/catch.
736 (scoped_restore_current_thread::scoped_restore_current_thread):
737 Save the language as well. Use save_selected_frame.
738
58103c33
SM
7392020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
740
741 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
742 documentation.
743 * gdbarch.h: Re-generate.
744
40a53766
SM
7452020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
746
747 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
748 parameter.
749 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
750 Likewise.
751 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
752 Likewise.
753 * arch-utils.c (default_displaced_step_hw_singlestep):
754 Likewise.
755 * arch-utils.h (default_displaced_step_hw_singlestep):
756 Likewise.
757 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
758 Likewise.
759 * s390-tdep.c (s390_displaced_step_hw_singlestep):
760 Likewise.
761 * gdbarch.c: Re-generate.
762 * gdbarch.h: Re-generate.
763 * infrun.c (resume_1): Adjust.
764
8407f91b
TT
7652020-10-29 Tom Tromey <tom@tromey.com>
766
767 * progspace.c (program_space::~program_space): Don't call
768 exec_close.
769
5008b3b2
TT
7702020-10-29 Tom Tromey <tom@tromey.com>
771
772 * exec.c (exec_target::close): Don't change current program
773 space.
774
d9eebde0
TT
7752020-10-29 Tom Tromey <tom@tromey.com>
776
777 * symfile.c (add_symbol_file_command): Update.
778 * exec.c (program_space::add_target_sections): Rename.
779 * symfile-mem.c (symbol_file_add_from_memory): Update.
780 * progspace.h (struct program_space) <add_target_sections>:
781 Declare new overload.
782 * exec.h (add_target_sections_of_objfile): Don't declare.
783
3769e227
TT
7842020-10-29 Tom Tromey <tom@tromey.com>
785
786 * solib.c (solib_map_sections): Update.
787 * exec.c (program_space::add_target_sections): Now a method.
788 (exec_file_attach): Update.
789 * exec.h (add_target_sections): Don't declare.
790 * progspace.h (struct program_space) <add_target_sections>:
791 Declare.
792
2a3f84af
TT
7932020-10-29 Tom Tromey <tom@tromey.com>
794
795 * progspace.h (struct program_space) <remove_target_sections>:
796 Declare.
797 * exec.c (program_space::remove_target_sections): Now a method.
798 * exec.h (remove_target_sections): Don't declare.
799
004eecfd
TT
8002020-10-29 Tom Tromey <tom@tromey.com>
801
802 * inferior.c (delete_inferior): Update.
803 * progspace.c (program_space::empty): Rename from
804 program_space_empty_p. Return bool.
805 * progspace.h (struct program_space) <empty>: New method.
806 (program_space_empty_p): Don't declare.
807
e39fb971
TT
8082020-10-29 Tom Tromey <tom@tromey.com>
809
810 * progspace.c (program_space::~program_space): Don't call
811 clear_program_space_solib_cache.
812 (program_space::clear_solib_cache): Rename from
813 clear_solib_cache.
814 * solib.c (handle_solib_event): Update.
815 * progspace.h (struct program_space) <clear_solib_cache>: New
816 method.
817 (clear_program_space_solib_cache): Don't declare.
818
a42d7dd8
TT
8192020-10-29 Tom Tromey <tom@tromey.com>
820
821 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
822 * target.c (info_target_command): Update.
823 * symfile.c (syms_from_objfile_1, finish_new_objfile)
824 (symbol_file_clear, reread_symbols): Update.
825 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
826 * stabsread.c (scan_file_globals): Update.
827 * solib.c (update_solib_list): Update.
828 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
829 (svr4_fetch_objfile_link_map, enable_break)
830 (svr4_relocate_main_executable)
831 (svr4_iterate_over_objfiles_in_search_order): Update.
832 * solib-frv.c (lm_base, enable_break)
833 (frv_relocate_main_executable): Update.
834 (main_got, frv_fdpic_find_canonical_descriptor): Update.
835 (frv_fetch_objfile_link_map): Update.
836 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
837 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
838 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
839 * remote.c (remote_target::get_offsets): Update.
840 (remote_target::start_remote)
841 (extended_remote_target::post_attach): Update.
842 * objfiles.c (entry_point_address_query): Update.
843 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
844 * minsyms.c (get_symbol_leading_char): Update.
845 * frame.c (inside_main_func): Update.
846 * progspace.h (symfile_objfile): Remove macro.
847
19f6550e
TT
8482020-10-29 Tom Tromey <tom@tromey.com>
849
850 * exec.c (exec_file_attach): Update.
851 * progspace.c (program_space::exec_close): Update.
852 * progspace.h (struct program_space) <ebfd>: Now a
853 gdb_bfd_ref_ptr.
854 <set_exec_bfd>: Change argument type.
855 <exec_bfd>: Update.
856
7e10abd1
TT
8572020-10-29 Tom Tromey <tom@tromey.com>
858
859 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
860 * symfile.c (reread_symbols): Update.
861 * symfile-mem.c (add_symbol_file_from_memory_command)
862 (add_vsyscall_page): Update.
863 * source-cache.c (source_cache::get_plain_source_lines): Update.
864 * solib-svr4.c (find_program_interpreter, elf_locate_base)
865 (svr4_current_sos_direct, svr4_exec_displacement)
866 (svr4_relocate_main_executable): Update.
867 (svr4_iterate_over_objfiles_in_search_order): Update.
868 * solib-frv.c (enable_break2, enable_break): Update.
869 * solib-dsbt.c (lm_base, enable_break): Update.
870 * solib-darwin.c (find_program_interpreter)
871 (darwin_solib_create_inferior_hook): Update.
872 * sol-thread.c (rw_common, ps_pdmodel): Update.
873 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
874 * remote.c (compare_sections_command)
875 (remote_target::trace_set_readonly_regions): Update.
876 * remote-sim.c (get_sim_inferior_data)
877 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
878 (gdbsim_target_open, gdbsim_target::files_info): Update.
879 * exec.h (exec_bfd): Remove macro.
880 * progspace.c (initialize_progspace): Update.
881 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
882 Update.
883 * nto-procfs.c (nto_procfs_target::post_attach)
884 (nto_procfs_target::create_inferior): Update.
885 * maint.c (maintenance_info_sections): Update.
886 * linux-thread-db.c (thread_db_target::get_thread_local_address):
887 Update.
888 * infcmd.c (post_create_inferior): Update.
889 * gcore.c (default_gcore_arch, default_gcore_target): Update.
890 (objfile_find_memory_regions): Update.
891 * exec.c (validate_exec_file, exec_file_attach)
892 (exec_read_partial_read_only, print_section_info): Update.
893 * corelow.c (core_target_open): Update.
894 * corefile.c (reopen_exec_file, validate_files): Update.
895 * arm-tdep.c (gdb_print_insn_arm): Update.
896 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
897 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
898 methods.
899
b55221ab
TT
9002020-10-29 Tom Tromey <tom@tromey.com>
901
902 * progspace.h (current_target_sections): Remove macro.
903 * solib-svr4.c (scan_dyntag): Update.
904 * solib-dsbt.c (scan_dyntag): Update.
905 * exec.c (exec_target::close): Update.
906 (add_target_sections, add_target_sections_of_objfile)
907 (remove_target_sections, exec_target::get_section_table)
908 (exec_target::files_info, set_section_command)
909 (exec_set_section_address, exec_target::has_memory)
910 (exec_target::has_memory): Update.
911
5a36e715
TT
9122020-10-29 Tom Tromey <tom@tromey.com>
913
914 * source-cache.c (source_cache::get_plain_source_lines): Use
915 current_program_space.
916 * corefile.c (reopen_exec_file): Use current_program_space.
917 * exec.c (exec_file_attach): Use current_program_space.
918 * exec.h (exec_bfd_mtime): Remove.
919
784c8592
TT
9202020-10-29 Tom Tromey <tom@tromey.com>
921
922 * gcore.c (default_gcore_mach): Remove.
923 (create_gcore_bfd): Update.
924
8a4f1402
TT
9252020-10-29 Tom Tromey <tom@tromey.com>
926
927 * progspace.c (program_space::exec_close): New method, from
928 exec_close in exec.c.
929 * exec.c (exec_close): Move to progspace.c.
930 (exec_target::close, exec_file_attach): Update.
931 * progspace.h (struct program_space) <exec_close>: Declare
932 method.
933
c20cb686
TT
9342020-10-29 Tom Tromey <tom@tromey.com>
935
936 * progspace.h (struct program_space) <exec_filename>: Rename from
937 pspace_exec_filename. Now a unique_xmalloc_ptr.
938 * inferior.c (print_selected_inferior): Update.
939 (print_inferior): Update.
940 * mi/mi-main.c (print_one_inferior): Update.
941 * exec.h (exec_filename): Remove macro.
942 * corefile.c (get_exec_file): Update.
943 * exec.c (exec_close): Update.
944 (exec_file_attach): Update.
945 * progspace.c (clone_program_space): Update.
946 (print_program_space): Update.
947
6be2a9ab
TT
9482020-10-29 Tom Tromey <tom@tromey.com>
949
950 * target-section.h (struct target_section): Add constructor.
951 * exec.c (build_section_table, add_target_sections_of_objfile):
952 Update.
953 * corelow.c (core_target::build_file_mappings): Update.
954
cfaa8f76
TBA
9552020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
956
957 PR gdb/19318
958 * inferior.c (detach_inferior_command): Restore the current thread.
959 (kill_inferior_command): Ditto.
960
1b00ef06
TV
9612020-10-28 Tom de Vries <tdevries@suse.de>
962
963 PR symtab/26772
964 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
965 map, check it in the "best match" loop.
966
7f40ce1a
SM
9672020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
968
969 * m32c-tdep.c: Remove unused includes.
970
5eb9e3f5
SM
9712020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
972
973 * xtensa-tdep.c: Remove includes.
974
b1d4d8d1
TBA
9752020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
976
977 * breakpoint.c (struct condition_command_opts): New struct.
978 (condition_command_option_defs): New static global.
979 (make_condition_command_options_def_group): New function.
980 (condition_completer): Update to consider the '-force' flag.
981 (condition_command): Use gdb::option for the '-force' flag.
982
bd24c5d6
TV
9832020-10-27 Tom de Vries <tdevries@suse.de>
984
985 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
986 symbols in section check.
987
61eb46a4
TV
9882020-10-27 Tom de Vries <tdevries@suse.de>
989
990 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
991
733d554a
TBA
9922020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
993
994 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
995 * breakpoint.c: Update the help text of the 'condition' and 'break'
996 commands.
997 (set_breakpoint_condition): Take a new bool parameter
998 to control whether condition definition should be forced even when
999 the condition expression is invalid in all of the current locations.
1000 (condition_command): Update the call to 'set_breakpoint_condition'.
1001 (find_condition_and_thread): Take the "-force-condition" flag into
1002 account.
1003 * linespec.c (linespec_keywords): Add "-force-condition" as an
1004 element.
1005 (FORCE_KEYWORD_INDEX): New #define.
1006 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
1007 as a keyword.
1008 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
1009 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
1010 * python/py-breakpoint.c (bppy_set_condition): Ditto.
1011 * NEWS: Mention the changes to the 'break' and 'condition' commands.
1012
b5fa468f
TBA
10132020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1014
1015 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
1016 * breakpoint.c (set_breakpoint_location_condition): New function.
1017 (set_breakpoint_condition): Disable a breakpoint location if parsing
1018 the condition string gives an error.
1019 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
1020 (build_target_condition_list): Ditto.
1021 (build_target_command_list): Ditto.
1022 (build_bpstat_chain): Ditto.
1023 (print_one_breakpoint_location): Ditto.
1024 (print_one_breakpoint): Ditto.
1025 (breakpoint_1): Ditto.
1026 (bp_location::bp_location): Ditto.
1027 (locations_are_equal): Ditto.
1028 (update_breakpoint_locations): Ditto.
1029 (enable_disable_bp_num_loc): Ditto.
1030 (init_breakpoint_sal): Use set_breakpoint_location_condition.
1031 (find_condition_and_thread_for_sals): New static function.
1032 (create_breakpoint): Call find_condition_and_thread_for_sals.
1033 (location_to_sals): Call find_condition_and_thread_for_sals instead
1034 of find_condition_and_thread.
1035
1c47ec3e
TV
10362020-10-26 Tom de Vries <tdevries@suse.de>
1037
1038 * dwarf2/read.c (process_full_comp_unit): Call
1039 dwarf2_find_base_address.
1040
6390859c
TT
10412020-10-26 Tom Tromey <tromey@adacore.com>
1042
1043 * gdbtypes.c (create_range_type): Revert previous patch. Add
1044 comment.
1045
d744f0f9
PA
10462020-10-26 Pedro Alves <pedro@palves.net>
1047
1048 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
1049 (my_waitpid): Use gdb::handle_eintr.
1050
006811bc
SM
10512020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
1052
1053 * acinclude.m4: Update ptrace.m4 path.
1054 * ptrace.m4: Moved to gdbsupport.
1055
c75e31a1
SM
10562020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1057
1058 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
1059 instead of target_gdbarch.
1060
32495661
SM
10612020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1062
1063 * jit.c (jit_reader_load_command): Pass current inferior.
1064 (jit_inferior_init): Change parameter type to inferior, use it.
1065 (jit_inferior_created): Remove.
1066 (jit_inferior_created_hook): Pass inferior parameter down.
1067 (_initialize_jit): Use jit_inferior_created_hook instead of
1068 jit_inferior_created.
1069 * jit.h (jit_inferior_created_hook): Add inferior parameter.
1070 * infrun.c (follow_exec): Pass inferior to
1071 jit_inferior_created_hook.
1072
3f66685e
SM
10732020-10-24 Simon Marchi <simon.marchi@efficios.com>
1074
1075 * linux-thread-db.c (check_pid_namespace_match): Add inferior
1076 parameter and use it.
1077 (thread_db_inferior_created): Pass inferior argument.
1078
a0ff652f
SM
10792020-10-24 Simon Marchi <simon.marchi@efficios.com>
1080
1081 * aix-thread.c (aix_thread_inferior_created): Add inferior
1082 parameter.
1083 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
1084 * dummy-frame.c (cleanup_dummy_frames): Likewise.
1085 * jit.c (jit_inferior_created): Likewise.
1086 * linux-thread-db.c (thread_db_inferior_created): Likewise.
1087 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
1088 * observable.h (inferior_created): Likewise.
1089 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
1090 * symfile-mem.c (add_vsyscall_page): Likewise.
1091 * infcmd.c (post_create_inferior): Pass inferior argument.
1092
3c67532c
JB
10932020-10-24 Joel Brobecker <brobecker@adacore.com>
1094
1095 GDB 10.1 released.
1096
8747316e
JB
10972020-10-23 Joel Brobecker <brobecker@adacore.com>
1098
1099 * ada-typeprint.c (ada_print_type): Remove superfluous second call
1100 to ada_check_typedef.
1101
1a0ea399
AB
11022020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1103
1104 * f-exp.y (f_parse): Rename to...
1105 (f_language::parser): ...this.
1106 * f-lang.c (f_get_encoding): Rename to...
1107 (f_language::get_encoding): ...this.
1108 (f_op_print_tab): Rename to...
1109 (f_language::op_print_tab): ...this.
1110 (exp_descriptor_f): Rename to...
1111 (f_language::exp_descriptor_tab): ...this.
1112 (class f_language): Moved to f-lang.h.
1113 (f_language::language_arch_info): New function, moved out of class
1114 declaration.
1115 (f_language::search_name_hash): Likewise.
1116 (f_language::lookup_symbol_nonlocal): Likewise.
1117 (f_language::get_symbol_name_matcher_inner): Likewise.
1118 * f-lang.h: Add 'valprint.h' include.
1119 (class f_language): Moved here from f-lang.c.
1120 * f-typeprint.c (f_type_print_args): Delete commented out
1121 declaration.
1122 (f_print_typedef): Rename to...
1123 (f_language::print_typedef): ...this.
1124 (f_print_type): Rename to...
1125 (f_language::print_type): ...this.
1126 (f_type_print_varspec_prefix): Delete declaration and rename to...
1127 (f_language::f_type_print_varspec_prefix): ...this.
1128 (f_type_print_varspec_suffix): Delete declaration and rename to...
1129 (f_language::f_type_print_varspec_suffix): ...this.
1130 (f_type_print_base): Delete declaration and rename to...
1131 (f_language::f_type_print_base): ...this.
1132 * f-valprint.c (f_value_print_inner): Rename to...
1133 (f_language::value_print_inner): ...this.
1134 * parse.c: Delete 'f-lang.h' include.
1135
88cefd9b
AB
11362020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1137
1138 * language.h (language_defn::print_type): Add variable names in
1139 declaration, and update header comment.
1140
5399db93
AB
11412020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1142
1143 * ada-lang.c (ada_language::demangle): Rename to...
1144 (ada_language::demangle_symbol): ...this.
1145 * c-lang.c (cplus_language::demangle): Rename to...
1146 (cplus_language::demangle_symbol): ...this.
1147 * d-lang.c (d_language::demangle): Rename to...
1148 (d_language::demangle_symbol): ...this.
1149 * f-lang.c (f_language::demangle): Rename to...
1150 (f_language::demangle_symbol): ...this.
1151 * go-lang.c (go_language::demangle): Rename to...
1152 (go_language::demangle_symbol): ...this.
1153 * language.c (language_demangle): Update call to demangle_symbol.
1154 (auto_or_unknown_language::demangle): Rename to...
1155 (auto_or_unknown_language::demangle_symbol): ...this.
1156 * language.h (language_defn::demangle): Rename to...
1157 (language_defn::demangle_symbol): ...this.
1158 * objc-lang.c (objc_language::demangle): Rename to...
1159 (objc_language::demangle_symbol): ...this.
1160 * rust-lang.c (rust_language::demangle): Rename to...
1161 (rust_language::demangle_symbol): ...this.
1162
4b2f86ef
AB
11632020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1164
1165 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
1166 (iterate_over_file_blocks): Replace use of macro with the macros
1167 definition.
1168
e74b39de
AB
11692020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1170
1171 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
1172 * valprint.c (maybe_print_array_index): Replace use of macro with
1173 the macros definition.
1174
00c696a6
AB
11752020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1176
1177 * ada-lang.c (ada_language::print_array_index): Call value_print
1178 directly.
1179 * language.c (language_defn::print_array_index): Likewise.
1180 * language.h (LA_VALUE_PRINT): Delete.
1181 * valprint.c (value_print): Call value_print on the
1182 current_language directly.
1183
d3b67c56
AB
11842020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1185
1186 * language.h (LA_PRINT_TYPEDEF): Delete.
1187 * typeprint.c (typedef_print): Call print_typedef directly on the
1188 current_language object.
1189
790e2a12
AB
11902020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1191
1192 * m2-exp.y (m2_parse): Rename to...
1193 (m2_language::parser): ...this. Update function signature.
1194 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
1195 (m2_op_print): Rename to...
1196 (m2_language::op_print_tab): ...this, and make const.
1197 (exp_descriptor_modula2): Rename to...
1198 (m2_language::exp_descriptor_modula2): ...this.
1199 (class m2_language): Move to m2-lang.h.
1200 (m2_language::language_arch_info): New function, moved out of
1201 class declaration.
1202 (m2_language::printchar): New function, body from m2_printchar.
1203 (m2_language::printstr): New function, moved out of class
1204 declaration.
1205 (m2_language::emitchar): Likewise.
1206 * m2-lang.h (m2_parse): Delete declaration.
1207 (m2_print_typedef): Delete declaration.
1208 (m2_value_print_inner): Delete declaration.
1209 (class m2_language): Class declaration moved from m2-lang.c,
1210 larger functions are left in m2-lang.c.
1211 * m2-typeprint.c (m2_print_typedef): Rename to...
1212 (m2_language::print_typedef): ...this, and update function
1213 signature.
1214 * m2-valprint.c (m2_value_print_inner): Rename to...
1215 (m2_language::value_print_inner): ...this, replace use of
1216 LA_PRINT_STRING with a direct call to printstr member function,
1217 and update recursive call.
1218
b01175fc
AB
12192020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1220
1221 * language.c (default_is_string_type_p): Delete, implementation
1222 moved into auto_or_unknown_language::is_string_type_p.
1223 (unk_op_print_tab): Moved into
1224 auto_or_unknown_language::opcode_print_table.
1225 (unknown_language_arch_info): Delete, implementation moved into
1226 auto_or_unknown_language::language_arch_info.
1227 (class auto_or_unknown_language): New class, member functions
1228 copied from unknown_language class, with some updates.
1229 (class unknown_language): Most member functions moved into
1230 auto_or_unknown_language class. Inherit from
1231 auto_or_unknown_language class.
1232 (class auto_language): Inherit from auto_or_unknown_language.
1233 Delete most member functions.
1234
1a97fe8c
HD
12352020-10-22 Hannes Domani <ssbssa@yahoo.de>
1236
1237 * stabsread.c (read_member_functions): Remove gdb_assert.
1238
6b9d0dfd
HD
12392020-10-22 Hannes Domani <ssbssa@yahoo.de>
1240
1241 * gdbtypes.c (init_complex_type): Check target type name.
1242
4b4bb603
SM
12432020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1244
1245 * target-debug.h (target_debug_print_struct_target_ops_p):
1246 Remove.
1247 (target_debug_print_async_callback_ftype_p): Remove.
1248 (target_debug_print_struct_trace_state_variable_p): Remove.
1249 (target_debug_print_struct_traceframe_info_p): Remove.
1250 (target_debug_print_VEC__btrace_block_s__pp): Remove.
1251 (target_debug_print_enum_btrace_format): Remove.
1252 (target_debug_print_enum_info_proc_what): Remove.
1253 (target_debug_print_thread_info_pp): Remove.
1254
24f5300a
SM
12552020-10-22 Simon Marchi <simon.marchi@efficios.com>
1256
1257 * target.h (struct target_ops) <make_corefile_notes>:
1258 Change return type to unique pointer.
1259 * target.c (dummy_make_corefile_notes): Likewise.
1260 * exec.c (struct exec_target) <make_corefile_notes>:
1261 Likewise.
1262 (exec_target::make_corefile_notes): Likewise.
1263 * procfs.c (class procfs_target) <make_corefile_notes>:
1264 Likewise.
1265 (procfs_do_thread_registers): Adjust to unique pointer.
1266 (struct procfs_corefile_thread_data): Add constructor.
1267 <note_data>: Change type to unique pointer.
1268 (procfs_corefile_thread_callback): Adjust to unique pointer.
1269 (procfs_target::make_corefile_notes): Change return type to
1270 unique pointer.
1271 * target-delegates.c: Re-generate.
1272 * gcore.c (write_gcore_file_1): Adjust.
1273 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
1274 New.
1275
5fb4027f
TV
12762020-10-22 Tom de Vries <tdevries@suse.de>
1277
1278 * block.c (find_block_in_blockvector): Make sure the returned block
1279 contains pc.
1280
4a636814
SM
12812020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1282
1283 PR gdb/26693
1284 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
1285 parameter.
1286 (load_cu): Pass existing CU.
1287 (process_imported_unit_die): Likewise.
1288 (follow_die_offset): Likewise.
1289
1bd57575
LM
12902020-10-22 Luis Machado <luis.machado@linaro.org>
1291
1292 * corelow.c (core_target::xfer_partial): Also check for an empty
1293 m_core_unavailable_mappings vector.
1294
6b4c676c
AB
12952020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1296
1297 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
1298 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
1299 * f-exp.y (arglist): Allow for a series of subranges.
1300 (subrange): Add cases for subranges with strides.
1301 * f-lang.c (value_f90_subarray): Catch use of array strides and
1302 throw an error.
1303 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
1304
f2d8e4c5
AB
13052020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1306
1307 * expprint.c (print_subexp_standard): Change enum range_type to
1308 range_flag and rename variables to match.
1309 (dump_subexp_body_standard): Likewise.
1310 * expression.h (enum range_type): Rename to...
1311 (enum range_flag): ...this.
1312 (range_types): Rename to...
1313 (range_flags): ...this.
1314 * f-lang.c (value_f90_subarray): Change enum range_type to
1315 range_flag and rename variables to match.
1316 * parse.c (operator_length_standard): Likewise.
1317 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
1318 range_type to range_flag.
1319 * rust-lang.c (rust_evaluate_funcall): Likewise.
1320 (rust_range): Likewise.
1321 (rust_compute_range): Likewise.
1322 (rust_subscript): Likewise.
1323
2f1b18db
AB
13242020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1325
1326 * expprint.c (print_subexp_standard): Update to reflect changes to
1327 enum range_type.
1328 (dump_subexp_body_standard): Likewise.
1329 * expression.h (enum range_type): Convert to a bit field enum, and
1330 make the enum unsigned.
1331 * f-exp.y (subrange): Update to reflect changes to enum
1332 range_type.
1333 * f-lang.c (value_f90_subarray): Likewise.
1334 * parse.c (operator_length_standard): Likewise.
1335 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
1336 * rust-lang.c (rust_range): Likewise.
1337 (rust_compute_range): Likewise.
1338 (rust_subscript): Likewise.
1339
a46d1843
SM
13402020-10-21 Simon Marchi <simon.marchi@efficios.com>
1341
1342 * infrun.c (displaced_step_in_progress_thread): Fix comment.
1343 (displaced_step_in_progress): Fix comment.
1344
c21f37a8
SM
13452020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
1346
1347 * gdbarch.sh (make_corefile_notes): Return unique pointer.
1348 * gdbarch.c: Re-generate.
1349 * gdbarch.h: Re-generate.
1350 * gcore.c (write_gcore_file_1): Adjust.
1351 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
1352 constructor.
1353 <note_data>: Change type to unique pointer.
1354 <abort_iteration>: Change type to bool.
1355 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
1356 (fbsd_collect_thread_registers): Return void, adjust.
1357 (struct fbsd_corefile_thread_data): Add construtor.
1358 <note_data>: Change type to unique pointer.
1359 (fbsd_corefile_thread): Adjust.
1360 (fbsd_make_corefile_notes): Return unique pointer, adjust.
1361 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
1362 to unique pointer, adjust.
1363 (struct linux_collect_regset_section_cb_data): Add constructor.
1364 <note_data>: Change type to unique pointer.
1365 <abort_iteration>: Change type to bool.
1366 (linux_collect_thread_registers): Return void, adjust.
1367 (struct linux_corefile_thread_data): Add constructor.
1368 <note_data>: Change type to unique pointer.
1369 (linux_corefile_thread): Adjust.
1370 (linux_make_corefile_notes): Return unique pointer, adjust.
1371
07fbbd01
SM
13722020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1373
1374 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
1375 * gdbarch.c: Re-generate.
1376 * gdbarch.h: Re-generate.
1377 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
1378 bool.
1379 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1380 Likewise.
1381 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
1382 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
1383 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
1384 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
1385
39535193
SM
13862020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1387
1388 * gdbarch.sh: Make generated predicates return bool.
1389 * gdbarch.c: Re-generate.
1390 * gdbarch.h: Re-generate.
1391
ad523d01
TT
13922020-10-20 Tom Tromey <tom@tromey.com>
1393
1394 * varobj-iter.h (struct varobj_item): Remove typedef.
1395
c4464ade
SM
13962020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1397
1398 * infrun.c (currently_stepping): Change int to bool
1399 (maybe_software_singlestep): Likewise.
1400 (show_stop_on_solib_events): Likewise.
1401 (stepping_past_nonsteppable_watchpoint): Likewise.
1402 (displaced_step_in_progress_any_inferior): Likewise.
1403 (displaced_step_in_progress_thread): Likewise.
1404 (keep_going_stepped_thread): Likewise.
1405 (thread_still_needs_step_over): Likewise.
1406 (start_step_over): Likewise.
1407 (do_target_resume): Likewise.
1408 (resume_1): Likewise.
1409 (clear_proceed_status): Likewise.
1410 (thread_still_needs_step_over_bp): Likewise.
1411 (proceed): Likewise.
1412 (switch_back_to_stepped_thread): Likewise.
1413 (adjust_pc_after_break): Likewise.
1414 (stepped_in_from): Likewise.
1415 (handle_stop_requested): Likewise.
1416 (handle_syscall_event): Likewise.
1417 (handle_no_resumed): Likewise.
1418 (handle_inferior_event): Likewise.
1419 (finish_step_over): Likewise.
1420 (handle_signal_stop): Likewise.
1421 (process_event_stop_test): Likewise.
1422
2eb20436
SM
14232020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1424
1425 * infrun.c (get_displaced_stepping_state): Fix comment.
1426
e0c45ded
AS
14272020-10-20 Andreas Schwab <schwab@linux-m68k.org>
1428
1429 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
1430
22cc388e
TT
14312020-10-19 Tom Tromey <tromey@adacore.com>
1432
1433 PR tui/26719
1434 * tui/tui-winsource.h (struct tui_source_window_base)
1435 <refresh_window>: Rename from refresh_pad.
1436 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
1437 Rename from refresh_pad.
1438 (tui_source_window_base::show_source_content)
1439 (tui_source_window_base::do_scroll_horizontal): Update.
1440
3c6eb4d4
TBA
14412020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1442
1443 * thread.c (_initialize_thread): Fine-tune the help text of
1444 'info threads'.
1445
26703721
TBA
14462020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1447
1448 * frame.c: Remove the unused 'uinteger_option_def' type alias.
1449
61c26be8
MS
14502020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
1451
1452 * breakpoint.c (handle_jit_event): Add an argument, change how
1453 `jit_event_handler` is called.
1454
932539d7
TT
14552020-10-17 Tom Tromey <tom@tromey.com>
1456
1457 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
1458 (scan_xcoff_symtab): Update.
1459 * psymtab.h (class psymtab_storage) <global_psymbols,
1460 static_psymbols, current_global_psymbols,
1461 current_static_psymbols>: Remove.
1462 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
1463 (match_partial_symbol, lookup_partial_symbol): Update.
1464 (print_partial_symbols): Change parameters.
1465 (dump_psymtab, recursively_search_psymtabs)
1466 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
1467 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
1468 (concat): Remove.
1469 (end_psymtab_common): Simplify.
1470 (append_psymbol_to_list): Change parameters.
1471 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
1472 (init_psymbol_list): Simplify.
1473 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
1474 * psympriv.h (struct partial_symtab) <empty>: New method.
1475 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
1476 Remove.
1477 <global_psymbols, static_psymbols>: New members.
1478 <add_psymbol>: New methods.
1479 (add_psymbol_to_list): Don't declare.
1480 (psymbol_placement): Move earlier.
1481 * mdebugread.c (parse_partial_symbols): Update.
1482 (handle_psymbol_enumerators): Change parameters.
1483 (mdebug_expand_psymtab): Update.
1484 * dwarf2/read.c (process_psymtab_comp_unit_reader)
1485 (add_partial_symbol): Update.
1486 * dwarf2/index-write.c (write_psymbols): Change parameters.
1487 (write_one_signatured_type): Update.
1488 (recursively_count_psymbols): Update.
1489 (recursively_write_psymbols): Update.
1490 (class debug_names) <recursively_write_psymbols>: Update.
1491 <write_psymbols>: Change parameters.
1492 <write_one_signatured_type>: Update.
1493 * dbxread.c (read_dbx_symtab): Update.
1494 (dbx_end_psymtab): Use partial_symtab::empty.
1495 * ctfread.c (struct ctf_context) <pst>: New member.
1496 (create_partial_symtab): Set it.
1497 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
1498 (scan_partial_symbols): Use the psymtab's context. Update.
1499
cfabbd35
TT
15002020-10-17 Tom Tromey <tom@tromey.com>
1501
1502 * valprint.c (generic_value_print): Remove comment.
1503 * m2-valprint.c (m2_value_print_inner): Remove comment.
1504 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
1505 type.
1506
520596f2
TV
15072020-10-17 Tom de Vries <tdevries@suse.de>
1508
1509 PR symtab/26317
1510 * source.c (select_source_symtab): Handling sal.symtab == NULL for
1511 symbol main.
1512
76547ab3
TV
15132020-10-14 Tom de Vries <tdevries@suse.de>
1514
1515 PR gdb/26733
1516 * solib.c (solib_contains_address_p): Handle
1517 'solib->sections == nullptr'.
1518
d3a07122
SM
15192020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
1520
1521 PR gdb/26642
1522 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
1523 target can't do async.
1524 * target.c (target_wait): Assert that we don't pass
1525 TARGET_WNOHANG to a target that can't async.
1526
1b71cfcf
KR
15272020-10-13 Kamil Rytarowski <n54@gmx.com>
1528
1529 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
1530 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
1531 * alpha-bsd-nat.c: Adjust include.
1532 * alpha-bsd-tdep.h: Adjust comment.
1533 * alpha-nbsd-tdep.c: Rename to ...
1534 * alpha-netbsd-tdep.c: ... this, adjust include.
1535 * amd64-nbsd-nat.c: Rename to ...
1536 * amd64-netbsd-nat.c: ... this, adjust include.
1537 * amd64-nbsd-tdep.c: Rename to ...
1538 * amd64-netbsd-tdep.c: ... this, adjust include.
1539 * amd64-tdep.h: Adjust include.
1540 * arm-nbsd-nat.c: Rename to ...
1541 * arm-netbsd-nat.c: ... this, adjust include.
1542 * arm-nbsd-tdep.c: Rename to ...
1543 * arm-netbsd-tdep.c: ... this, adjust include.
1544 * arm-nbsd-tdep.h: Rename to ...
1545 * arm-netbsd-tdep.h: ... this, adjust include.
1546 * configure.nat: Adjust file lists.
1547 * configure.tgt: Likewise.
1548 * hppa-nbsd-nat.c: Rename to ...
1549 * hppa-netbsd-nat.c: ... this, adjust include.
1550 * hppa-nbsd-tdep.c: Rename to ...
1551 * hppa-netbsd-tdep.c: ... this, adjust include.
1552 * i386-nbsd-nat.c: Rename to ...
1553 * i386-netbsd-nat.c: ... this, adjust include.
1554 * i386-nbsd-tdep.c: Rename to ...
1555 * i386-netbsd-tdep.c: ... this, adjust include.
1556 * m68k-bsd-nat.c: Adjust include.
1557 * mips-nbsd-nat.c: Rename to ...
1558 * mips-netbsd-nat.c: ... this, adjust include.
1559 * mips-nbsd-tdep.c: Rename to ...
1560 * mips-netbsd-tdep.c: ... this, adjust include.
1561 * mips-nbsd-tdep.h: Rename to ...
1562 * mips-netbsd-tdep.h: ... this.
1563 * nbsd-nat.c: Rename to ...
1564 * netbsd-nat.c: ... this, adjust include.
1565 * nbsd-nat.h: Rename to ...
1566 * netbsd-nat.h: ... this, adjust include.
1567 * nbsd-tdep.c: Rename to ...
1568 * netbsd-tdep.c: ... this, adjust include.
1569 * nbsd-tdep.h: Rename to ...
1570 * netbsd-tdep.h: ... this.
1571 * ppc-nbsd-nat.c: Rename to ...
1572 * ppc-netbsd-nat.c: ... this, adjust include.
1573 * ppc-nbsd-tdep.c: Rename to ...
1574 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
1575 * ppc-nbsd-tdep.h: Rename to ...
1576 * ppc-netbsd-tdep.h: ... this.
1577 * sh-nbsd-nat.c: Rename to ...
1578 * sh-netbsd-nat.c: ... this, adjust include.
1579 * sh-nbsd-tdep.c: Rename to ...
1580 * sh-netbsd-tdep.c: ... this, adjust include.
1581 * sparc-nbsd-nat.c: Rename to ...
1582 * sparc-netbsd-nat.c: ... this.
1583 * sparc-nbsd-tdep.c: Rename to ...
1584 * sparc-netbsd-tdep.c: ... this, adjust include.
1585 * sparc64-nbsd-nat.c: Rename to ...
1586 * sparc64-netbsd-nat.c: ... this.
1587 * sparc64-nbsd-tdep.c: Rename to ...
1588 * sparc64-netbsd-tdep.c: ... this, adjust include.
1589 * sparc64-tdep.h: Adjust comment.
1590 * vax-bsd-nat.c: Adjust include.
1591 * vax-nbsd-tdep.c: Rename to ...
1592 * vax-netbsd-tdep.c: ... this, adjust include.
1593
d7a78e5c
TT
15942020-10-12 Tom Tromey <tom@tromey.com>
1595
1596 * target.h (struct target_ops) <get_section_table>: Update.
1597 (target_get_section_table): Update.
1598 * target.c (target_get_section_table, target_section_by_addr)
1599 (memory_xfer_partial_1): Update.
1600 * target-section.h (target_section_table): Now an alias.
1601 * target-delegates.c: Rebuild.
1602 * target-debug.h (target_debug_print_target_section_table_p):
1603 Rename from target_debug_print_struct_target_section_table_p.
1604 * symfile.c (build_section_addr_info_from_section_table): Update.
1605 * solib.c (solib_map_sections, solib_contains_address_p): Update.
1606 * solib-svr4.c (scan_dyntag): Update.
1607 * solib-dsbt.c (scan_dyntag): Update.
1608 * remote.c (remote_target::remote_xfer_live_readonly_partial):
1609 Update.
1610 * record-full.c (record_full_core_target::xfer_partial): Update.
1611 * progspace.h (struct program_space) <target_sections>: Update.
1612 * exec.h (print_section_info): Update.
1613 * exec.c (exec_target::close, build_section_table)
1614 (add_target_sections, add_target_sections_of_objfile)
1615 (remove_target_sections, exec_on_vfork)
1616 (section_table_available_memory)
1617 (section_table_xfer_memory_partial)
1618 (exec_target::get_section_table, exec_target::xfer_partial)
1619 (print_section_info, set_section_command)
1620 (exec_set_section_address, exec_target::has_memory): Update.
1621 * corelow.c (core_target::build_file_mappings)
1622 (core_target::xfer_partial, core_target::info_proc_mappings)
1623 (core_target::info_proc_mappings): Update.
1624 * bfd-target.c (class target_bfd): Update
1625
eda214ce
TT
16262020-10-12 Tom Tromey <tom@tromey.com>
1627
1628 * progspace.c (program_space::~program_space): Don't call
1629 clear_section_table.
1630 * exec.h (clear_section_table): Don't declare.
1631 * exec.c (exec_target::close): Update.
1632 (clear_section_table): Remove.
1633
91840ee3
TT
16342020-10-12 Tom Tromey <tom@tromey.com>
1635
1636 * exec.c (add_target_sections_of_objfile): Simplify.
1637
2d128614
TT
16382020-10-12 Tom Tromey <tom@tromey.com>
1639
1640 * solib.c (solib_map_sections): Update.
1641 * record-full.c (record_full_core_open_1): Update.
1642 * exec.h (build_section_table): Return a target_section_table.
1643 * exec.c (exec_file_attach): Update.
1644 (build_section_table): Return a target_section_table.
1645 * corelow.c (core_target::core_target): Update.
1646 * bfd-target.c (target_bfd::target_bfd): Update.
1647
bb2a6777
TT
16482020-10-12 Tom Tromey <tom@tromey.com>
1649
1650 * target.c (target_section_by_addr, memory_xfer_partial_1):
1651 Update.
1652 * target-section.h (struct target_section_table): Use
1653 std::vector.
1654 * symfile.h (build_section_addr_info_from_section_table): Take a
1655 target_section_table.
1656 * symfile.c (build_section_addr_info_from_section_table): Take a
1657 target_section_table.
1658 * solist.h (struct so_list) <sections>: Change type.
1659 <sections_end>: Remove.
1660 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
1661 (solib_contains_address_p): Update.
1662 * solib-svr4.c (scan_dyntag): Update.
1663 * solib-dsbt.c (scan_dyntag): Update.
1664 * remote.c (remote_target::remote_xfer_live_readonly_partial):
1665 Update.
1666 * record-full.c (record_full_core_start, record_full_core_end):
1667 Remove.
1668 (record_full_core_sections): New global.
1669 (record_full_core_open_1, record_full_core_target::xfer_partial):
1670 Update.
1671 * exec.h (build_section_table, section_table_xfer_memory_partial)
1672 (add_target_sections): Take a target_section_table.
1673 * exec.c (exec_file_attach, clear_section_table): Update.
1674 (resize_section_table): Remove.
1675 (build_section_table, add_target_sections): Take a
1676 target_section_table.
1677 (add_target_sections_of_objfile, remove_target_sections)
1678 (exec_on_vfork): Update.
1679 (section_table_available_memory): Take a target_section_table.
1680 (section_table_read_available_memory): Update.
1681 (section_table_xfer_memory_partial): Take a target_section_table.
1682 (print_section_info, set_section_command)
1683 (exec_set_section_address, exec_target::has_memory): Update.
1684 * corelow.c (class core_target) <m_core_section_table,
1685 m_core_file_mappings>: Remove braces.
1686 <~core_target>: Remove.
1687 (core_target::core_target): Update.
1688 (core_target::~core_target): Remove.
1689 (core_target::build_file_mappings)
1690 (core_target::xfer_memory_via_mappings)
1691 (core_target::xfer_partial, core_target::info_proc_mappings):
1692 Update.
1693 * bfd-target.c (target_bfd::xfer_partial): Update.
1694 (target_bfd::target_bfd): Update.
1695 (target_bfd::~target_bfd): Remove.
1696
7b466b10
TT
16972020-10-12 Tom Tromey <tom@tromey.com>
1698
1699 * target.h (struct target_section, struct target_section_table):
1700 Move to target-section.h.
1701 * target-section.h: New file.
1702
87a37e5e
PA
17032020-10-12 Pedro Alves <pedro@palves.net>
1704
1705 PR exp/26602
1706 * valops.c (struct struct_field_searcher): New.
1707 (update_search_result): Rename to ...
1708 (struct_field_searcher::update_result): ... this. Simplify
1709 prototype. Record all found fields.
1710 (do_search_struct_field): Rename to ...
1711 (struct_field_searcher::search): ... this. Simplify prototype.
1712 Maintain stack of visited baseclass path. Call update_result for
1713 fields too. Keep searching fields in baseclasses instead of
1714 stopping at the first found field.
1715 (search_struct_field): Use struct_field_searcher. When looking
1716 for fields, report ambiguous access attempts.
1717
9370fd51
AB
17182020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
1719
1720 * frame.c (inside_main_func): Check full symbols as well as
1721 minimal symbols.
1722
59c8a30b
JB
17232020-10-09 Joel Brobecker <brobecker@adacore.com>
1724
1725 * ada-lang.c (advance_wild_match): Rewrite the function's
1726 description. Change the type of target0, t0 and t1 to char.
1727
7c184d33
TT
17282020-10-09 Tom Tromey <tromey@adacore.com>
1729
1730 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
1731
5c4258f4
TT
17322020-10-09 Tom Tromey <tromey@adacore.com>
1733
1734 * ada-lang.h (ada_encode): Return std::string.
1735 * ada-lang.c (ada_encode_1): Return std::string.
1736 (ada_encode): Likewise.
1737 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
1738 Update.
1739 * ada-exp.y (block_lookup, write_var_or_type): Update.
1740
3d87245c
HD
17412020-10-09 Hannes Domani <ssbssa@yahoo.de>
1742
1743 PR exp/26714
1744 * printcmd.c (print_formatted): Handle void results as
1745 unformatted prints.
1746
bbb826f5
AB
17472020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
1748
1749 * arch/aarch32.c (aarch32_create_target_description): Release the
1750 target_desc_up as late as possible.
1751 * arch/aarch64.c (aarch64_create_target_description): Likewise.
1752 * arch/amd64.c (amd64_create_target_description): Likewise.
1753 * arch/arc.c (arc_create_target_description): Return a
1754 target_desc_up, don't release it.
1755 * arch/arc.h (arc_create_target_description): Update declaration.
1756 (arc_lookup_target_description): Move target_desc_up into the
1757 cache, and return a borrowed pointer.
1758 * arch/arm.c (arm_create_target_description): Release the
1759 target_desc_up as late as possible.
1760 * arch/i386.c (i386_create_target_description): Likewise.
1761 * arch/riscv.h (riscv_create_target_description): Update
1762 declaration to match definition.
1763 * arch/tic6x.c (tic6x_create_target_description): Release the
1764 target_desc_up as late as possible.
1765
361cb219
AB
17662020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
1767
1768 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
1769 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
1770
f5c4b229
JV
17712020-10-09 Jan Vrany <jan.vrany@labware.com>
1772
1773 * source.c (directory_command): Notify observers that "directories"
1774 parameter has changed.
1775
b2701685
TT
17762020-10-08 Tom Tromey <tom@tromey.com>
1777
1778 * cli/cli-cmds.c (print_disassembly): Style function name and
1779 addresses. Add _() wrappers.
1780
ada508b6
SV
17812020-10-08 Shahab Vahedi <shahab@synopsys.com>
1782
1783 * NEWS: Mention ARC support in GDBserver.
1784
51a948fd
AB
17852020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
1786
1787 * arch/aarch32.c (aarch32_create_target_description): Release
1788 unique_ptr returned from allocate_target_description.
1789 * arch/aarch64.c (aarch64_create_target_description): Likewise.
1790 * arch/amd64.c (amd64_create_target_description): Likewise.
1791 * arch/arc.c (arc_create_target_description): Likewise.
1792 * arch/arm.c (arm_create_target_description): Likewise.
1793 * arch/i386.c (i386_create_target_description): Likewise.
1794 * arch/riscv.c (riscv_create_target_description): Update return
1795 type. Handle allocate_target_description returning a unique_ptr.
1796 (riscv_lookup_target_description): Update to handle unique_ptr.
1797 * arch/tic6x.c (tic6x_create_target_description): Release
1798 unique_ptr returned from allocate_target_description.
1799 * features/microblaze-with-stack-protect.c: Regenerate.
1800 * features/microblaze.c: Regenerate.
1801 * features/mips-dsp-linux.c: Regenerate.
1802 * features/mips-linux.c: Regenerate.
1803 * features/mips64-dsp-linux.c: Regenerate.
1804 * features/mips64-linux.c: Regenerate.
1805 * features/nds32.c: Regenerate.
1806 * features/nios2.c: Regenerate.
1807 * features/or1k.c: Regenerate.
1808 * features/rs6000/powerpc-32.c: Regenerate.
1809 * features/rs6000/powerpc-32l.c: Regenerate.
1810 * features/rs6000/powerpc-403.c: Regenerate.
1811 * features/rs6000/powerpc-403gc.c: Regenerate.
1812 * features/rs6000/powerpc-405.c: Regenerate.
1813 * features/rs6000/powerpc-505.c: Regenerate.
1814 * features/rs6000/powerpc-601.c: Regenerate.
1815 * features/rs6000/powerpc-602.c: Regenerate.
1816 * features/rs6000/powerpc-603.c: Regenerate.
1817 * features/rs6000/powerpc-604.c: Regenerate.
1818 * features/rs6000/powerpc-64.c: Regenerate.
1819 * features/rs6000/powerpc-64l.c: Regenerate.
1820 * features/rs6000/powerpc-7400.c: Regenerate.
1821 * features/rs6000/powerpc-750.c: Regenerate.
1822 * features/rs6000/powerpc-860.c: Regenerate.
1823 * features/rs6000/powerpc-altivec32.c: Regenerate.
1824 * features/rs6000/powerpc-altivec32l.c: Regenerate.
1825 * features/rs6000/powerpc-altivec64.c: Regenerate.
1826 * features/rs6000/powerpc-altivec64l.c: Regenerate.
1827 * features/rs6000/powerpc-e500.c: Regenerate.
1828 * features/rs6000/powerpc-e500l.c: Regenerate.
1829 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
1830 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
1831 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
1832 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
1833 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
1834 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
1835 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
1836 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
1837 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
1838 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
1839 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
1840 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
1841 * features/rs6000/powerpc-vsx32.c: Regenerate.
1842 * features/rs6000/powerpc-vsx32l.c: Regenerate.
1843 * features/rs6000/powerpc-vsx64.c: Regenerate.
1844 * features/rs6000/powerpc-vsx64l.c: Regenerate.
1845 * features/rs6000/rs6000.c: Regenerate.
1846 * features/rx.c: Regenerate.
1847 * features/s390-gs-linux64.c: Regenerate.
1848 * features/s390-linux32.c: Regenerate.
1849 * features/s390-linux32v1.c: Regenerate.
1850 * features/s390-linux32v2.c: Regenerate.
1851 * features/s390-linux64.c: Regenerate.
1852 * features/s390-linux64v1.c: Regenerate.
1853 * features/s390-linux64v2.c: Regenerate.
1854 * features/s390-te-linux64.c: Regenerate.
1855 * features/s390-tevx-linux64.c: Regenerate.
1856 * features/s390-vx-linux64.c: Regenerate.
1857 * features/s390x-gs-linux64.c: Regenerate.
1858 * features/s390x-linux64.c: Regenerate.
1859 * features/s390x-linux64v1.c: Regenerate.
1860 * features/s390x-linux64v2.c: Regenerate.
1861 * features/s390x-te-linux64.c: Regenerate.
1862 * features/s390x-tevx-linux64.c: Regenerate.
1863 * features/s390x-vx-linux64.c: Regenerate.
1864 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
1865 from allocate_target_description.
1866 * target-descriptions.c (allocate_target_description): Update
1867 return type.
1868 (print_c_tdesc::visit_pre): Release unique_ptr returned from
1869 allocate_target_description.
1870
485c47e5
TT
18712020-10-07 Tom Tromey <tromey@adacore.com>
1872
1873 * unittests/search-memory-selftests.c: New file.
1874 * Makefile.in (SELFTESTS_SRCS): Add
1875 unittests/search-memory-selftests.c.
1876
3a135a91
TT
18772020-10-07 Tom Tromey <tromey@adacore.com>
1878
1879 PR gdb/16930:
1880 * findcmd.c (_initialize_mem_search): Mention that the range is
1881 inclusive.
1882
4a72de73
TT
18832020-10-07 Tom Tromey <tromey@adacore.com>
1884
1885 * target.h (simple_search_memory): Don't declare.
1886 * target.c (simple_search_memory): Move to gdbsupport.
1887 (default_search_memory): Update.
1888 * remote.c (remote_target::search_memory): Update.
1889
a038ffd8
SM
18902020-10-07 Simon Marchi <simon.marchi@efficios.com>
1891
1892 * Makefile.in (COMPILE): Add CXXFLAGS.
1893 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
1894 (check-headers): Add CXXFLAGS.
1895
cc463201
AK
18962020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
1897
1898 * arc-linux-tdep.h: New file.
1899 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
1900 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
1901 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
1902 arc_linux_gregset, arc_linux_v2_regset,
1903 arc_linux_iterate_over_regset_sections,
1904 arc_linux_core_read_description): Implement.
1905 (arc_linux_init_osabi): Set iterate_over_regset_sections.
1906 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
1907 (arc_gdbarch_features_create): Add.
1908 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
1909
e4bd363f
SV
19102020-10-07 Shahab Vahedi <shahab@synopsys.com>
1911
1912 * arch/arc.h: Rename "arc_gdbarch_features" to
1913 "arc_arch_features".
1914 * arc-tdep.h: Likewise.
1915 * arc-tdep.c: Likewise.
1916
b68bef99
TBA
19172020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1918
1919 * infcmd.c (attach_command): Remove the redundant call to
1920 `clear_proceed_status`.
1921
4641551a
KR
19222020-10-07 Kamil Rytarowski <n54@gmx.com>
1923
1924 * nat/netbsd-nat.c (write_memory, read_memory): Update.
1925
91e5e8db
KR
19262020-10-07 Kamil Rytarowski <n54@gmx.com>
1927
1928 * nat/netbsd-nat.c (write_memory, read_memory): Add.
1929 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
1930 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
1931
64c03bdb
SM
19322020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
1933
1934 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
1935 (_initialize_break_catch_sig): Don't allocate array.
1936
31a8f60f
AB
19372020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
1938
1939 * symtab.c (find_pc_line): Return unmapped addresses when the
1940 requested address is also unmapped.
1941
9e6dbd8b
SM
19422020-10-05 Simon Marchi <simon.marchi@efficios.com>
1943
1944 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
1945 tui/tui-out.h.
1946
a1d217e8
SM
19472020-10-05 Simon Marchi <simon.marchi@efficios.com>
1948
1949 * amd64-windows-tdep.c (amd64_windows_return_value): Use
1950 type::is_vector instead of TYPE_VECTOR.
1951
7d144117
SM
19522020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
1953
1954 * auto-load.c (auto_load_objfile_script_1): Don't use
1955 debugfile_holder as temporary variable when stripping drive
1956 letter.
1957
cd096ec8
HD
19582020-10-05 Hannes Domani <ssbssa@yahoo.de>
1959
1960 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
1961 Add TYPE_CODE_COMPLEX.
1962 (amd64_windows_return_value): Fix types returned via XMM0.
1963
b58e7f72
AH
19642020-10-05 Alan Hayward <alan.hayward@arm.com>
1965
1966 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
1967 AArch64/ARM maintainers.
1968
8d378f27
SM
19692020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
1970
1971 * NEWS: Mention set/show debug event-loop.
1972
d5519913
TT
19732020-10-02 Tom Tromey <tromey@adacore.com>
1974
1975 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
1976 REG_EXTENDED.
1977
18b67edc
SM
19782020-10-02 Simon Marchi <simon.marchi@efficios.com>
1979
1980 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
1981 * procfs.c (procfs_inferior_created): Remove.
1982 (_initialize_procfs): Don't register procfs_inferior_created.
1983
6b01403b
SM
19842020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1985
1986 * async-event.c (invoke_async_signal_handlers): Add debug
1987 print.
1988 (check_async_event_handlers): Likewise.
1989 * event-top.c (show_debug_event_loop): New function.
1990 (_initialize_event_top): Register "set debug event-loop"
1991 setting.
1992
ba988419
SM
19932020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1994
1995 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
1996 * debug.h: Remove.
1997 * infrun.c: Include gdbsupport/common-debug.h.
1998 * linux-nat.c: Likewise.
1999
db20ebdf
SM
20002020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2001
2002 * async-event.h (create_async_signal_handler): Add name
2003 parameter.
2004 (create_async_event_handler): Likewise.
2005 * async-event.c (struct async_signal_handler) <name>: New field.
2006 (struct async_event_handler) <name>: New field.
2007 (create_async_signal_handler): Assign name.
2008 (create_async_event_handler): Assign name.
2009 * event-top.c (async_init_signals): Pass name when creating
2010 handler.
2011 * infrun.c (_initialize_infrun): Likewise.
2012 * record-btrace.c (record_btrace_push_target): Likewise.
2013 * record-full.c (record_full_open): Likewise.
2014 * remote-notif.c (remote_notif_state_allocate): Likewise.
2015 * remote.c (remote_target::open_1): Likewise.
2016 * tui/tui-win.c (tui_initialize_win): Likewise.
2017
2554f6f5
SM
20182020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2019
2020 * async-event.c (initialize_async_signal_handlers): Pass name to
2021 add_file_handler
2022 * event-top.c (ui_register_input_event_handler): Likewise.
2023 * linux-nat.c (linux_nat_target::async): Likewise.
2024 * run-on-main-thread.c (_initialize_run_on_main_thread):
2025 Likewise
2026 * ser-base.c (reschedule): Likewise.
2027 (ser_base_async): Likewise.
2028 * tui/tui-io.c: Likewise.
2029 * top.h (struct ui) <num>: New field.
2030 * top.c (highest_ui_num): New variable.
2031 (ui::ui): Initialize num.
2032
a7aba266
SM
20332020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2034
2035 * observable.h <inferior_created>: Remove parameters. Update all
2036 listeners.
2037 * inferior.h (post_create_inferior): Remove target parameter.
2038 Update all callers.
2039
048fde1e 20402020-10-02 Nitika Achra <Nitika.Achra@amd.com>
2041
2042 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
2043 and DW_MACRO_undef_strx.
2044 (dwarf_decode_macros): Likewise
2045 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
2046 which is the value of DW_AT_str_offsets_base.
2047 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
2048 str_offsets_base.
2049
064280be
KR
20502020-10-01 Kamil Rytarowski <n54@gmx.com>
2051
2052 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
2053
6ff33035
KR
20542020-10-01 Kamil Rytarowski <n54@gmx.com>
2055
2056 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
2057 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
2058
1eb6eb79
KR
20592020-10-01 Kamil Rytarowski <n54@gmx.com>
2060
2061 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
2062
95eb9e54
TV
20632020-09-30 Tom de Vries <tdevries@suse.de>
2064
2065 PR symtab/26683
2066 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
2067
cae21f8e
TT
20682020-09-30 Tom Tromey <tromey@adacore.com>
2069
2070 * dwarf2/read.c (handle_variant): Use constant_value.
2071
529908cb
TT
20722020-09-29 Tom Tromey <tom@tromey.com>
2073
2074 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
2075 (read_file_scope, dwarf2_get_pc_bounds)
2076 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
2077 (read_structure_type, handle_struct_member_die)
2078 (read_enumeration_type, read_array_type, read_set_type)
2079 (read_tag_pointer_type, read_tag_reference_type)
2080 (read_subroutine_type, read_base_type, read_subrange_type)
2081 (read_full_die_1, partial_die_info::read)
2082 (partial_die_info::read, by, new_symbol)
2083 (dwarf2_const_value_data, dwarf2_const_value_attr)
2084 (dump_die_shallow, dwarf2_fetch_constant_bytes)
2085 (prepare_one_comp_unit): Update.
2086 * dwarf2/attribute.h (DW_UNSND): Remove.
2087
c45bc3f8
TT
20882020-09-29 Tom Tromey <tom@tromey.com>
2089
2090 * dwarf2/read.c (read_func_scope, prototyped_function_p)
2091 (read_subroutine_type, partial_die_info::read)
2092 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
2093 (dwarf2_add_member_fn): Update.
2094 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
2095 * dwarf2/attribute.c (attribute::as_boolean): New method.
2096
23dca5c3
TT
20972020-09-29 Tom Tromey <tom@tromey.com>
2098
2099 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
2100 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
2101 method.
2102 * dwarf2/attribute.c (attribute::as_virtuality): New method.
2103
52c14d11
TT
21042020-09-29 Tom Tromey <tom@tromey.com>
2105
2106 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
2107 the attribute's form.
2108
e8e5c158
TT
21092020-09-29 Tom Tromey <tom@tromey.com>
2110
2111 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
2112 (dwarf2_add_member_fn): Update.
2113 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
2114 * dwarf2/attribute.c (attribute::defaulted): New method, from
2115 is_valid_DW_AT_defaulted.
2116
d4df075e
TT
21172020-09-29 Tom Tromey <tom@tromey.com>
2118
2119 * dwarf2/read.c (dw2_get_file_names_reader)
2120 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
2121 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
2122 (dwarf2_symbol_mark_computed): Use as_unsigned.
2123 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
2124 method.
2125 <form_is_section_offset>: Update comment.
2126
bf23a268
TT
21272020-09-29 Tom Tromey <tom@tromey.com>
2128
2129 * dwarf2/read.c (dwarf2_access_attribute): Rename from
2130 dwarf2_default_access_attribute. Look up attribute.
2131 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
2132 Update.
2133
7a5f294d
TT
21342020-09-29 Tom Tromey <tom@tromey.com>
2135
2136 * dwarf2/read.c (skip_one_die): Update.
2137 (read_full_die_1): Change how reprocessing is done.
2138 (partial_die_info::read): Update.
2139 (read_attribute_value): Remove need_reprocess parameter.
2140 (read_attribute): Likewise.
2141 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
2142 New method.
2143
36d378cf
TT
21442020-09-29 Tom Tromey <tom@tromey.com>
2145
2146 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
2147 (dwarf2_const_value_attr, dump_die_shallow)
2148 (dwarf2_fetch_constant_bytes): Update.
2149 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
2150 comment.
2151 <set_address>: New method.
2152 (DW_ADDR): Remove.
2153 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
2154 (attribute::as_string, attribute::as_address): Add assert.
2155
fe56917a
TT
21562020-09-29 Tom Tromey <tom@tromey.com>
2157
2158 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
2159 (read_attribute_reprocess, read_attribute_value): Update.
2160 (read_attribute): Clear requires_reprocessing.
2161 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
2162 form_requires_reprocessing>: New methods.
2163 <string_init>: Clear requires_reprocessing.
2164 <set_unsigned_reprocess>: New method.
2165 <name>: Shrink by one bit.
2166 <requires_reprocessing>: New member.
2167 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
2168 method.
2169
414ad644
TT
21702020-09-29 Tom Tromey <tom@tromey.com>
2171
2172 * dwarf2/read.c (read_attribute_value): Update.
2173 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
2174 set_unsigned>: New methods.
2175 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
2176
1bc397c5
TT
21772020-09-29 Tom Tromey <tom@tromey.com>
2178
2179 * dwarf2/read.c (get_alignment, read_array_order)
2180 (read_attribute_value, dwarf2_const_value_attr)
2181 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
2182 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
2183 New methods.
2184 (DW_SND): Remove.
2185
630ed6b9
TT
21862020-09-29 Tom Tromey <tom@tromey.com>
2187
2188 * dwarf2/read.c (read_attribute_value, lookup_die_type)
2189 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
2190 Update.
2191 * dwarf2/attribute.h (struct attribute) <as_signature,
2192 set_signature>: New methods.
2193 (DW_SIGNATURE): Remove.
2194
9d2246fc
TT
21952020-09-29 Tom Tromey <tom@tromey.com>
2196
2197 * dwarf2/read.c (read_call_site_scope)
2198 (handle_data_member_location, dwarf2_add_member_fn)
2199 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
2200 (partial_die_info::read, read_attribute_value)
2201 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
2202 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
2203 (dwarf2_symbol_mark_computed): Update.
2204 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
2205 methods.
2206 (DW_BLOCK): Remove.
2207 * dwarf2/attribute.c (attribute::form_is_block): Add
2208 DW_FORM_data16.
2209
c6481205
TT
22102020-09-29 Tom Tromey <tom@tromey.com>
2211
2212 * dwarf2/read.c (read_cutu_die_from_dwo)
2213 (read_attribute_reprocess, read_attribute_value, read_attribute)
2214 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
2215 (dwarf2_fetch_constant_bytes): Update.
2216 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
2217 <set_string_noncanonical, set_string_canonical>: New methods.
2218 <string_is_canonical>: Update comment.
2219 <canonical_string_p>: Add assert.
2220 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
2221 * dwarf2/attribute.c (attribute::form_is_string): New method.
2222 (attribute::string): Use it.
2223
3b64bf15
TT
22242020-09-29 Tom Tromey <tom@tromey.com>
2225
2226 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
2227 (dump_die_shallow): Use canonical_string_p.
2228 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
2229 method.
2230
2c830f54
TT
22312020-09-29 Tom Tromey <tom@tromey.com>
2232
2233 * dwarf2/read.c (partial_die_info::read)
2234 (dwarf2_const_value_attr, anonymous_struct_prefix, )
2235 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
2236 attribute::as_string.
2237
6c412691
TT
22382020-09-29 Tom Tromey <tom@tromey.com>
2239
2240 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
2241 DW_ADDR.
2242 (attribute::string): Don't use DW_STRING.
2243 (attribute::get_ref_die_offset): Don't use DW_UNSND.
2244 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
2245
95f982e5
TT
22462020-09-29 Tom Tromey <tom@tromey.com>
2247
2248 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
2249 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
2250 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
2251 * dwarf2/attribute.h (struct attribute): Rename methods.
2252 * dwarf2/attribute.c (attribute::as_address): Rename from
2253 value_as_address.
2254 (attribute::as_string): Rename from value_as_string.
2255
f800b00e
TT
22562020-09-29 Tom Tromey <tom@tromey.com>
2257
2258 * dwarf2/read.c (partial_die_info::read) <case
2259 DW_AT_linkage_name>: Use value_as_string.
2260 (dwarf2_string_attr): Use value_as_string.
2261 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
2262 method.
2263 * dwarf2/attribute.c (attribute::value_as_string): New method.
2264
de38d64a
PA
22652020-09-29 Pedro Alves <pedro@palves.net>
2266
2267 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
2268 defined before using '#pragma GCC diagnostic' instead of checking
2269 __clang__.
2270
9aed480c
TT
22712020-09-28 Tom Tromey <tom@tromey.com>
2272
2273 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
2274 (handle_signal_stop): Update.
2275 * procfs.c (procfs_target::insert_watchpoint): Update.
2276 * target.h (target_have_steppable_watchpoint): Now a function.
2277
8a3ecb79
TT
22782020-09-28 Tom Tromey <tom@tromey.com>
2279
2280 * infrun.c (set_schedlock_func): Update.
2281 * target.h (target_can_lock_scheduler): Now a function.
2282
55f6301a
TT
22832020-09-28 Tom Tromey <tom@tromey.com>
2284
2285 * inferior.h (class inferior) <has_execution>: Update.
2286 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2287 * valops.c (find_function_in_inferior)
2288 (value_allocate_space_in_inferior): Update.
2289 * top.c (kill_or_detach): Update.
2290 * target.c (target_preopen, set_target_permissions): Update.
2291 (target_has_execution_current): Remove.
2292 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
2293 Update.
2294 * solib.c (update_solib_list, reload_shared_libraries): Update.
2295 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
2296 * solib-dsbt.c (enable_break): Update.
2297 * score-tdep.c (score7_fetch_inst): Update.
2298 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
2299 Update.
2300 * remote.c (remote_target::start_remote)
2301 (remote_target::remote_check_symbols, remote_target::open_1)
2302 (remote_target::remote_detach_1, remote_target::verify_memory)
2303 (remote_target::xfer_partial, remote_target::read_description)
2304 (remote_target::get_min_fast_tracepoint_insn_len): Update.
2305 * record-full.c (record_full_open_1): Update.
2306 * record-btrace.c (record_btrace_target_open): Update.
2307 * objc-lang.c (lookup_objc_class, lookup_child_selector)
2308 (value_nsstring): Update.
2309 * linux-thread-db.c (add_thread_db_info)
2310 (thread_db_find_new_threads_silently, check_thread_db_callback)
2311 (try_thread_db_load_1, record_thread): Update.
2312 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
2313 Update.
2314 * linux-fork.c (checkpoint_command): Update.
2315 * infrun.c (set_non_stop, set_observer_mode)
2316 (check_multi_target_resumption, for_each_just_stopped_thread)
2317 (maybe_remove_breakpoints, normal_stop)
2318 (class infcall_suspend_state): Update.
2319 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
2320 (info_program_command, attach_command): Update.
2321 * infcall.c (call_function_by_hand_dummy): Update.
2322 * inf-loop.c (inferior_event_handler): Update.
2323 * gcore.c (gcore_command, derive_heap_segment): Update.
2324 * exec.c (exec_file_command): Update.
2325 * eval.c (evaluate_subexp): Update.
2326 * compile/compile.c (compile_to_object): Update.
2327 * cli/cli-dump.c (restore_command): Update.
2328 * breakpoint.c (update_watchpoint)
2329 (update_inserted_breakpoint_locations)
2330 (insert_breakpoint_locations, get_bpstat_thread): Update.
2331 * target.h (target_has_execution): Remove macro.
2332 (target_has_execution_current): Don't declare.
2333 (target_has_execution): Rename from target_has_execution_1. Add
2334 argument default.
2335
05374cfd
TT
23362020-09-28 Tom Tromey <tom@tromey.com>
2337
2338 * mi/mi-main.c (exec_reverse_continue)
2339 (mi_cmd_list_target_features): Update.
2340 * infrun.c (set_exec_direction_func): Update.
2341 * target.c (default_execution_direction): Update.
2342 * reverse.c (exec_reverse_once): Update.
2343 * target.h (target_can_execute_reverse): Now a function.
2344
9dccd06e
TT
23452020-09-28 Tom Tromey <tom@tromey.com>
2346
2347 * tui/tui-regs.c (tui_get_register)
2348 (tui_data_window::show_registers): Update.
2349 * thread.c (scoped_restore_current_thread::restore)
2350 (scoped_restore_current_thread::scoped_restore_current_thread):
2351 Update.
2352 * regcache-dump.c (regcache_print): Update.
2353 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2354 Update.
2355 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
2356 * mep-tdep.c (current_me_module, current_options): Update.
2357 * linux-thread-db.c (thread_db_load): Update.
2358 * infcmd.c (registers_info, info_vector_command)
2359 (info_float_command): Update.
2360 * ia64-tdep.c (ia64_frame_prev_register)
2361 (ia64_sigtramp_frame_prev_register): Update.
2362 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
2363 * gcore.c (derive_stack_segment): Update.
2364 * frame.c (get_current_frame, has_stack_frames): Update.
2365 * findvar.c (language_defn::read_var_value): Update.
2366 * arm-tdep.c (arm_pc_is_thumb): Update.
2367 * target.c (target_has_registers): Rename from
2368 target_has_registers_1.
2369 * target.h (target_has_registers): Remove macro.
2370 (target_has_registers): Rename from target_has_registers_1.
2371
841de120
TT
23722020-09-28 Tom Tromey <tom@tromey.com>
2373
2374 * windows-tdep.c (tlb_make_value): Update.
2375 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2376 * thread.c (scoped_restore_current_thread::restore)
2377 (scoped_restore_current_thread::scoped_restore_current_thread)
2378 (thread_command): Update.
2379 * stack.c (backtrace_command_1, frame_apply_level_command)
2380 (frame_apply_all_command, frame_apply_command): Update.
2381 * infrun.c (siginfo_make_value, restore_infcall_control_state):
2382 Update.
2383 * gcore.c (derive_stack_segment): Update.
2384 * frame.c (get_current_frame, has_stack_frames): Update.
2385 * auxv.c (info_auxv_command): Update.
2386 * ada-tasks.c (ada_build_task_list): Update.
2387 * target.c (target_has_stack): Rename from target_has_stack_1.
2388 * target.h (target_has_stack): Remove macro.
2389 (target_has_stack): Rename from target_has_stack_1.
2390
a739972c
TT
23912020-09-28 Tom Tromey <tom@tromey.com>
2392
2393 * target.c (target_has_memory): Rename from target_has_memory_1.
2394 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2395 * thread.c (scoped_restore_current_thread::restore)
2396 (scoped_restore_current_thread::scoped_restore_current_thread):
2397 Update.
2398 * frame.c (get_current_frame, has_stack_frames): Update.
2399 * target.h (target_has_memory): Remove macro.
2400 (target_has_memory): Rename from target_has_memory_1.
2401
5b8a4776
TT
24022020-09-28 Tom Tromey <tom@tromey.com>
2403
2404 * target.c (target_has_all_memory_1): Remove.
2405 * target.h (target_has_all_memory): Remove define.
2406 (target_has_all_memory_1): Don't declare.
2407
bd356ec6
SM
24082020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
2409
2410 * ser-base.c: Adjust comments formatting.
2411
2c72d5e5
TT
24122020-09-27 Tom Tromey <tom@tromey.com>
2413
2414 PR tui/25342:
2415 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
2416
35a98237
TT
24172020-09-27 Tom Tromey <tom@tromey.com>
2418
2419 PR tui/25342:
2420 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
2421
9e820dec
TT
24222020-09-27 Tom Tromey <tom@tromey.com>
2423
2424 * unittests/tui-selftests.c: Update.
2425 * tui/tui-winsource.h (struct tui_source_window_base)
2426 <extra_margin, show_line_number, refresh_pad>: New methods.
2427 <m_max_length, m_pad>: New members.
2428 (tui_copy_source_line): Update.
2429 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
2430 first_col, line_width, ndigits parameters. Add length.
2431 (tui_source_window_base::show_source_line): Write to pad. Line
2432 number now 0-based.
2433 (tui_source_window_base::refresh_pad): New method.
2434 (tui_source_window_base::show_source_content): Write to pad. Call
2435 refresh_pad.
2436 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
2437 not refill.
2438 (tui_source_window_base::update_exec_info): Call
2439 show_line_number.
2440 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
2441 method.
2442 <m_digits>: New member.
2443 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
2444 and m_max_length.
2445 (tui_source_window::show_line_number): New method.
2446 * tui/tui-io.h (tui_puts): Fix comment.
2447 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
2448 m_max_length.
2449
c15c15c8
TT
24502020-09-27 Tom Tromey <tom@tromey.com>
2451
2452 * tui/tui-winsource.c
2453 (tui_source_window_base::set_is_exec_point_at): Don't call
2454 show_source_line.
2455
149830c1
TT
24562020-09-27 Tom Tromey <tom@tromey.com>
2457
2458 * python/py-tui.c (class tui_py_window) <refresh_window>: New
2459 method.
2460 <erase>: Update.
2461 <cursor_x, cursor_y>: Remove.
2462 <m_inner_window>: New member.
2463 (tui_py_window::rerender): Create inner window.
2464 (tui_py_window::output): Write to inner window.
2465
8f9929bb
GR
24662020-09-26 Gareth Rees <grees@undo.io> (tiny change)
2467
2468 PR python/26586
2469 * cli/cli-script.c (execute_control_commands): don't set
2470 instream to nullptr here as this breaks the from_tty argument
2471 to gdb.execute in Python.
2472 (execute_user_command): set instream to nullptr here instead.
2473
956bdb59
SM
24742020-09-25 Simon Marchi <simon.marchi@efficios.com>
2475
2476 * infrun.h (infrun_debug_printf): Fix formatting.
2477 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
2478
3b93626b
SJ
24792020-09-25 Saagar Jha <saagar@saagarjha.com>
2480
2481 * compile/compile-object-load.h (struct munmap_list): Add
2482 explicitly-defined move constructor.
2483
b551a89f
TT
24842020-09-24 Tom Tromey <tromey@adacore.com>
2485
2486 PR tui/26638:
2487 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
2488 method.
2489 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
2490 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
2491 (tui_prev_win): Rewrite.
2492
99bb393f
HD
24932020-09-23 Hannes Domani <ssbssa@yahoo.de>
2494
2495 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
2496 in WOW64 processes as SIGINT.
2497 * nat/windows-nat.h: Make wow64_process a shared variable.
2498 * windows-nat.c: Remove static wow64_process variable.
2499
20a5fcbd
TT
25002020-09-23 Tom Tromey <tom@tromey.com>
2501
2502 PR symtab/25470:
2503 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
2504 offset and bit size.
2505 * printcmd.c (print_scalar_formatted): Handle zero-length
2506 integer.
2507 (print_scalar_formatted): Use bit_size_differs_p.
2508 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
2509 constant.
2510 (union type_specific): <int_stuff>: New member.
2511 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
2512 methods.
2513 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
2514 TYPE_SPECIFIC_FIELD.
2515 (recursive_dump_type, copy_type_recursive): Update.
2516 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
2517 DW_AT_data_bit_offset.
2518
bac51ab7
TT
25192020-09-23 Tom Tromey <tom@tromey.com>
2520
2521 * utils.h (class gdb_argv): Add move operators.
2522 <append>: New methods.
2523 * compile/compile.c (build_argc_argv): Remove.
2524 (compile_args_argc): Remove.
2525 (compile_args_argv): Change type.
2526 (set_compile_args): Simplify.
2527 (append_args): Remove.
2528 (filter_args): Remove argcp parameter.
2529 (get_args): Return gdb_argv. Simplify.
2530 (compile_to_object): Update.
2531
92677124
TT
25322020-09-23 Tom Tromey <tom@tromey.com>
2533
2534 * compile/compile-object-run.c (do_module_cleanup)
2535 <~do_module_cleanup> :Remove.
2536 (do_module_cleanup): Update.
2537 * compile/compile-object-load.h (struct munmap_list): Add move
2538 assignment operator.
2539 <source_file>: Now a std::string.
2540 <munmap_list>: Rename. No longer a pointer.
2541 * compile/compile-object-load.c (struct setup_sections_data): Add
2542 constructor.
2543 <setup_one_section>: Declare.
2544 <munmap_list>: Move earlier.
2545 <m_bfd>: New member.
2546 <m_last_size, m_last_section_first, m_last_prot,
2547 m_last_max_alignment>: Rename, add initializers where needed.
2548 (setup_sections_data::setup_one_section): Rename from
2549 setup_sections. Update.
2550 (compile_object_load): Update. Don't use bfd_map_over_sections.
2551
e616f60a
TT
25522020-09-23 Tom Tromey <tom@tromey.com>
2553
2554 * compile/compile-object-run.c (struct do_module_cleanup): Add
2555 parameters to constructor. Update destructor.
2556 <source_file, scope, scope_data, out_value_type, out_value_addr,
2557 munmap_list_head, objfile_name_string>: Remove.
2558 <module>: New member.
2559 (do_module_cleanup): Update.
2560 (compile_object_run): Update.
2561
e947a848
TT
25622020-09-23 Tom Tromey <tom@tromey.com>
2563
2564 * compile/compile.c (eval_compile_command): Update.
2565 * compile/compile-object-run.h (compile_object_run): Take a
2566 compile_module_up.
2567 * compile/compile-object-run.c (compile_object_run): Take a
2568 compile_module_up.
2569 * compile/compile-object-load.h (struct compile_module): Add
2570 constructor, destructor.
2571 (compile_module_up): New typedef.
2572 (compile_object_load): Return compile_object_up.
2573 * compile/compile-object-load.c (compile_object_load): Return
2574 compile_module_up.
2575
0dbf6ee6
TT
25762020-09-23 Tom Tromey <tom@tromey.com>
2577
2578 * compile/compile-object-run.c (struct do_module_cleanup): Add
2579 constructor, destructor.
2580 <objfile_name_string>: Don't use struct hack.
2581 (do_module_cleanup): Use delete.
2582 (compile_object_run): Use new.
2583
ebe824f5
TT
25842020-09-23 Tom Tromey <tom@tromey.com>
2585
2586 * compile/compile-cplus-types.c
2587 (compile_cplus_convert_struct_or_union): Use std::vector.
2588 (compile_cplus_convert_func): Likewise.
2589 * compile/compile-c-types.c (convert_func): Use std::vector.
2590
5dd918d9
TT
25912020-09-21 Tom Tromey <tromey@adacore.com>
2592
2593 * sparc-tdep.c (sparc32_skip_prologue): Use
2594 skip_prologue_using_sal.
2595
5486c517
TT
25962020-09-19 Tom Tromey <tom@tromey.com>
2597
2598 * symfile.c (add_section_size_callback): Remove.
2599 (load_one_section): Rename from load_section_callback. Change
2600 parameters.
2601 (generic_load): Use foreach.
2602
8a6bb1d1
TT
26032020-09-19 Tom Tromey <tom@tromey.com>
2604
2605 * exec.c (add_to_section_table): Remove.
2606 (build_section_table): Use foreach.
2607
08f93a1a
TT
26082020-09-19 Tom Tromey <tom@tromey.com>
2609
2610 * elfread.c (elf_locate_sections): Change parameters.
2611 (elf_symfile_read): Use foreach.
2612
03cd72b8
TT
26132020-09-19 Tom Tromey <tom@tromey.com>
2614
2615 * cli/cli-dump.c (struct callback_data): Remove.
2616 (restore_one_section): Rename from restore_section_callback.
2617 Change parameters.
2618 (restore_binary_file): Change parameters.
2619 (restore_command): Use foreach.
2620
f4f2b85f
TT
26212020-09-19 Tom Tromey <tom@tromey.com>
2622
2623 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
2624 (gcore_copy_callback): Likewise.
2625 (gcore_memory_sections): Use foreach.
2626
b35c1d1c
TT
26272020-09-19 Tom Tromey <tom@tromey.com>
2628
2629 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
2630 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
2631 parameters.
2632 (generic_elf_osabi_sniffer): Use foreach.
2633 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
2634 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
2635
5bb6e9dd
TT
26362020-09-19 Tom Tromey <tom@tromey.com>
2637
2638 * dwarf2/read.c (locate_dwz_sections): Change parameters.
2639 (dwarf2_get_dwz_file): Use foreach.
2640 (dwarf2_locate_dwo_sections): Change parameters.
2641 (open_and_init_dwo_file): Use foreach.
2642 (dwarf2_locate_common_dwp_sections): Change parameters.
2643 (open_and_init_dwp_file): Use foreach.
2644
ad7277da
TT
26452020-09-19 Tom Tromey <tom@tromey.com>
2646
2647 * symfile.h: (find_lowest_section): Don't declare.
2648 * symfile.c (find_lowest_section): Now static. Change
2649 parameters.
2650 (struct place_section_arg): Remove.
2651 (place_section): Change parameters.
2652 (addr_info_make_relative): Use foreach.
2653 (symfile_dummy_outputs): Remove.
2654 (default_symfile_relocate): Use foreach.
2655
cb814f2e
TT
26562020-09-19 Tom Tromey <tom@tromey.com>
2657
2658 * objfiles.c (add_to_objfile_sections): Rename from
2659 add_to_objfile_sections_full.
2660 (add_to_objfile_sections): Remove.
2661 (build_objfile_section_table): Use foreach.
2662
3cabfd26
TT
26632020-09-19 Tom Tromey <tom@tromey.com>
2664
2665 * stap-probe.c (get_stap_base_address_1): Remove.
2666 (get_stap_base_address): Use foreach.
2667
1ce51eb5
TT
26682020-09-19 Tom Tromey <tom@tromey.com>
2669
2670 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
2671 parameters.
2672 (gdb_bfd_close_or_warn): Use foreach.
2673
a190fabb
TT
26742020-09-19 Tom Tromey <tom@tromey.com>
2675
2676 * corelow.c (add_to_thread_list): Change parameters.
2677 (core_target_open): Use foreach.
2678
cafb0d81
TT
26792020-09-19 Tom Tromey <tom@tromey.com>
2680
2681 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
2682 existing function.
2683
c8d5abea
AB
26842020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2685
2686 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
2687 for arrays.
2688
6d816919
AB
26892020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2690
2691 * eval.c: Remove 'f-lang.h' include.
2692 (value_f90_subarray): Moved to f-lang.c.
2693 (eval_call): Renamed to...
2694 (evaluate_subexp_do_call): ...this, is no longer static, header
2695 comment moved into header file.
2696 (evaluate_funcall): Update call to eval_call.
2697 (skip_undetermined_arglist): Moved to f-lang.c.
2698 (fortran_value_subarray): Likewise.
2699 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
2700 moved to evaluate_subexp_f.
2701 (calc_f77_array_dims): Moved to f-lang.c
2702 * expprint.c (print_subexp_funcall): New function.
2703 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
2704 moved to print_subexp_f, OP_FUNCALL uses new function.
2705 (dump_subexp_body_funcall): New function.
2706 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
2707 moved to dump_subexp_f, OP_FUNCALL uses new function.
2708 * expression.h (evaluate_subexp_do_call): Declare.
2709 * f-lang.c (value_f90_subarray): Moved from eval.c.
2710 (skip_undetermined_arglist): Likewise.
2711 (calc_f77_array_dims): Likewise.
2712 (fortran_value_subarray): Likewise.
2713 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
2714 (operator_length_f): Likewise.
2715 (print_subexp_f): Likewise.
2716 (dump_subexp_body_f): Likewise.
2717 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
2718 declaration of this operation to here.
2719 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
2720 support moved to operator_length_f.
2721 * parser-defs.h (dump_subexp_body_funcall): Declare.
2722 (print_subexp_funcall): Declare.
2723 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
2724 fortran-operator.def.
2725
8c37706a
AB
27262020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2727
2728 * eval.c (fortran_value_subarray): New function, content is taken
2729 from...
2730 (evaluate_subexp_standard): ...here, in two places. Now arrays
2731 and strings both call the new function.
2732 (calc_f77_array_dims): Add header comment, handle strings.
2733
14f9473c
VC
27342020-09-18 Victor Collod <vcollod@nvidia.com>
2735
2736 PR gdb/26635
2737 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
2738 (i386_analyze_prologue): Call i386_skip_endbr.
2739
b60cea74
TT
27402020-09-18 Tom Tromey <tromey@adacore.com>
2741
2742 * windows-nat.c (struct windows_nat_target) <wait>: Update.
2743 (windows_nat_target::wait): Update.
2744 * target/wait.h (enum target_wait_flag): New. Use
2745 DEF_ENUM_FLAGS_TYPE.
2746 * target/target.h (target_wait): Change type of options.
2747 * target.h (target_options_to_string, default_target_wait):
2748 Update.
2749 (struct target_ops) <wait>: Change type of options.
2750 * target.c (target_wait, default_target_wait, do_option): Change
2751 type of "options".
2752 (target_options_to_string): Likewise.
2753 * target-delegates.c: Rebuild.
2754 * target-debug.h (target_debug_print_target_wait_flags): Rename
2755 from target_debug_print_options.
2756 * sol-thread.c (class sol_thread_target) <wait>: Update.
2757 (sol_thread_target::wait): Update.
2758 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
2759 (rs6000_nat_target::wait): Update.
2760 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
2761 Update.
2762 (remote_target::wait_ns, remote_target::wait_as): Change type of
2763 "options".
2764 (remote_target::wait): Update.
2765 * remote-sim.c (struct gdbsim_target) <wait>: Update.
2766 (gdbsim_target::wait): Update.
2767 * record-full.c (class record_full_base_target) <wait>: Update.
2768 (record_full_wait_1): Change type of "options".
2769 (record_full_base_target::wait): Update.
2770 * record-btrace.c (class record_btrace_target) <wait>: Update.
2771 (record_btrace_target::wait): Update.
2772 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
2773 Update.
2774 (ravenscar_thread_target::wait): Update.
2775 * procfs.c (class procfs_target) <wait>: Update.
2776 (procfs_target::wait): Update.
2777 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
2778 * obsd-nat.c (obsd_nat_target::wait): Update.
2779 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
2780 (nto_procfs_target::wait): Update.
2781 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
2782 * nbsd-nat.c (nbsd_wait): Change type of "options".
2783 (nbsd_nat_target::wait): Update.
2784 * linux-thread-db.c (class thread_db_target) <wait>: Update.
2785 (thread_db_target::wait): Update.
2786 * linux-nat.h (class linux_nat_target) <wait>: Update.
2787 * linux-nat.c (linux_nat_target::wait): Update.
2788 (linux_nat_wait_1): Update.
2789 * infrun.c (do_target_wait_1, do_target_wait): Change type of
2790 "options".
2791 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
2792 * inf-ptrace.c (inf_ptrace_target::wait): Update.
2793 * go32-nat.c (struct go32_nat_target) <wait>: Update.
2794 (go32_nat_target::wait): Update.
2795 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
2796 * gnu-nat.c (gnu_nat_target::wait): Update.
2797 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
2798 * fbsd-nat.c (fbsd_nat_target::wait): Update.
2799 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
2800 * darwin-nat.c (darwin_nat_target::wait): Update.
2801 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
2802 (bsd_uthread_target::wait): Update.
2803 * aix-thread.c (class aix_thread_target) <wait>: Update.
2804 (aix_thread_target::wait): Update.
2805
0295dde6
AB
28062020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
2807
2808 * compile/compile-object-run.c (create_copied_type_recursive): New
2809 function.
2810 (compile_object_run): Use new function.
2811
d3483b43
JT
28122020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
2813
2814 * NEWS: Mention x86_64 Cygwin core file support.
2815
e7d612ad
JT
28162020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2817
2818 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
2819 (core_process_module_section): Handle NOTE_INFO_MODULE64.
2820
aff9d387
JT
28212020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2822
62a5151b
JT
2823 * windows-tdep.h: Add prototypes.
2824 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
2825 (i386_windows_core_pid_to_str): Move and rename ...
2826 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
2827 (windows_core_pid_to_str): ... and here.
2828 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
2829
28302020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
2831 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
2832 (amd64_windows_init_abi_common): ... and register.
2833
7d155da3
JT
28342020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2835
2836 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
2837 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
2838
e8ef12b9
PA
28392020-09-18 Pedro Alves <pedro@palves.net>
2840
2841 PR gdb/26631
2842 * thread.c (thread_find_command): Switch inferior before calling
2843 target methods.
2844
c1e1314d
TT
28452020-09-17 Tom Tromey <tromey@adacore.com>
2846
2847 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
2848 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
2849 (tdesc_arch_data_up): New typedef.
2850 (tdesc_use_registers, tdesc_data_alloc): Update.
2851 (tdesc_data_cleanup): Don't declare.
2852 * target-descriptions.c (tdesc_data_alloc): Return a
2853 tdesc_arch_data_up.
2854 (tdesc_arch_data_deleter::operator()): Rename from
2855 tdesc_data_cleanup. Change argument type.
2856 (tdesc_use_registers): Change early_data to an rvalue reference.
2857 (tdesc_use_registers): Don't use delete.
2858 * sparc-tdep.c (sparc32_gdbarch_init): Update.
2859 * s390-tdep.c (s390_gdbarch_init): Update.
2860 * rx-tdep.c (rx_gdbarch_init): Update.
2861 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2862 * riscv-tdep.c (riscv_gdbarch_init): Update.
2863 * or1k-tdep.c (or1k_gdbarch_init): Update.
2864 * nios2-tdep.c (nios2_gdbarch_init): Update.
2865 * nds32-tdep.c (nds32_gdbarch_init): Update.
2866 * mips-tdep.c (mips_gdbarch_init): Update.
2867 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
2868 * m68k-tdep.c (m68k_gdbarch_init): Update.
2869 * i386-tdep.c (i386_gdbarch_init): Update.
2870 * arm-tdep.c (arm_gdbarch_init): Update.
2871 * arc-tdep.c (arc_tdesc_init): Update.
2872 (arc_gdbarch_init): Update.
2873 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
2874
0363df3d
HD
28752020-09-17 Hannes Domani <ssbssa@yahoo.de>
2876
2877 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
2878 for WOW64 processes.
2879
280a9412
TT
28802020-09-17 Tom Tromey <tom@tromey.com>
2881
2882 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
2883
6108fd18
TT
28842020-09-17 Tom Tromey <tom@tromey.com>
2885
2886 * value.c (preserve_values): Update.
2887 * python/py-type.c (save_objfile_types): Update.
2888 * guile/scm-type.c (save_objfile_types): Update.
2889 * gdbtypes.h (create_copied_types_hash): Return htab_up.
2890 * gdbtypes.c (create_copied_types_hash): Return htab_up.
2891 * compile/compile-object-run.c (compile_object_run): Update.
2892
fa9b1164
TT
28932020-09-17 Tom Tromey <tom@tromey.com>
2894
2895 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
2896 Remove.
2897 <m_table>: Now htab_up.
2898 * typeprint.c (typedef_hash_table::recursively_update)
2899 (typedef_hash_table::add_template_parameters)
2900 (typedef_hash_table::typedef_hash_table): Update.
2901 (typedef_hash_table::~typedef_hash_table): Remove.
2902 (typedef_hash_table::typedef_hash_table)
2903 (typedef_hash_table::find_global_typedef)
2904 (typedef_hash_table::find_typedef): Update.
2905
eb53f105
TT
29062020-09-17 Tom Tromey <tom@tromey.com>
2907
2908 * target-descriptions.c (tdesc_use_registers): Use htab_up.
2909
7a8a5d47
TT
29102020-09-17 Tom Tromey <tom@tromey.com>
2911
2912 * linespec.c (class decode_compound_collector)
2913 <~decode_compound_collector>: Remove.
2914 <m_unique_syms>: Now htab_up.
2915 (decode_compound_collector::operator ()): Update.
2916 (class symtab_collector) <~symtab_collector>: Remove.
2917 <m_symtab_table>: Now htab_up.
2918 (symtab_collector::operator ()): Update.
2919
99032cfc
TT
29202020-09-17 Tom Tromey <tom@tromey.com>
2921
2922 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
2923 (filename_seen_cache::clear): Update.
2924 (~filename_seen_cache): Remove.
2925 (filename_seen_cache::seen): Update.
2926 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
2927 htab_up.
2928 <~filename_seen_cache>: Remove.
2929 <traverse>: Update.
2930
32580f6d
TT
29312020-09-17 Tom Tromey <tom@tromey.com>
2932
2933 * completer.c (completion_tracker::discard_completions)
2934 (completion_tracker::~completion_tracker)
2935 (completion_tracker::maybe_add_completion)
2936 (completion_tracker::remove_completion)
2937 (completion_tracker::recompute_lowest_common_denominator)
2938 (completion_tracker::build_completion_result): Update.
2939 * completer.h (class completion_tracker) <have_completions>:
2940 Update.
2941 <m_entries_hash>: Now htab_up.
2942
c1fb9836
TT
29432020-09-17 Tom Tromey <tom@tromey.com>
2944
2945 * breakpoint.c (ambiguous_names_p): Use htab_up.
2946
88f07206
TT
29472020-09-17 Tom Tromey <tom@tromey.com>
2948
2949 * auto-load.c (struct auto_load_pspace_info)
2950 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
2951 <loaded_script_files, loaded_script_texts>: Change type to
2952 htab_up.
2953 (~auto_load_pspace_info) Remove.
2954 (init_loaded_scripts_info, maybe_add_script_file)
2955 (maybe_add_script_text, auto_load_info_scripts): Update.
2956
9519b2ee
TT
29572020-09-17 Tom Tromey <tromey@adacore.com>
2958
2959 * c-exp.y (name_obstack): Now static.
2960
d2cd4113
CC
29612020-09-17 Chungyi Chi <demonic@csie.io>
2962
2963 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
2964
b650a282
SM
29652020-09-16 Simon Marchi <simon.marchi@efficios.com>
2966
2967 * breakpoint.h (init_catchpoint): Change int parameter to bool.
2968 (add_solib_catchpoint): Likewise.
2969 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
2970 to bool.
2971 (add_solib_catchpoint): Change int parameter/variable to bool.
2972 (catch_load_or_unload): Likewise.
2973 (init_catchpoint): Likewise.
2974 (create_fork_vfork_event_catchpoint): Likewise.
2975 (catch_fork_command_1): Likewise.
2976 (catch_exec_command_1): Likewise.
2977
4d0bcfcf
SM
29782020-09-16 Simon Marchi <simon.marchi@efficios.com>
2979
2980 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
2981 Change instance_flags to m_instance_flags.
2982
fe830662
TT
29832020-09-16 Tom Tromey <tromey@adacore.com>
2984
2985 PR gdb/26598:
2986 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
2987
fe5ddfc3
JB
29882020-09-16 John Baldwin <jhb@FreeBSD.org>
2989
2990 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
2991 PL_FLAG_EXEC.
2992 (fbsd_nat_target::insert_exec_catchpoint)
2993 (fbsd_nat_target::remove_exec_catchpoint): Always define.
2994 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
2995 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
2996
e911c666
JB
29972020-09-16 John Baldwin <jhb@FreeBSD.org>
2998
2999 * configure.ac: Remove check for kinfo_getvmmap().
3000 * configure, config.in: Regenerate.
3001 * fbsd-nat.c (fbsd_read_mapping): Remove
3002 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
3003 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
3004 kinfo_get_vmmap() are always present.
3005
1f17d372
JB
30062020-09-16 John Baldwin <jhb@FreeBSD.org>
3007
3008 * fbsd-nat.c: Always include support for
3009 TARGET_OBJECT_SIGNAL_INFO.
3010
bcb1da7f
JB
30112020-09-16 John Baldwin <jhb@FreeBSD.org>
3012
3013 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
3014 sysctl and remove procfs fallback.
3015
5515f729
JB
30162020-09-16 John Baldwin <jhb@FreeBSD.org>
3017
3018 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
3019 * fbsd-nat.h: Likewise.
3020
da1df1db
TBA
30212020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3022
3023 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
3024 argument.
3025
0e25e767
AB
30262020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3027
3028 * ada-lang.c (ada_language_data): Delete.
3029 (ada_language): Remove references to ada_language_data.
3030 * c-lang.c (c_language_data): Delete.
3031 (c_language): Remove references to c_language_data.
3032 (cplus_language_data): Delete.
3033 (cplus_language): Remove references to cplus_language_data.
3034 (asm_language_data): Delete.
3035 (asm_language): Remove references to asm_language_data.
3036 (minimal_language_data): Delete.
3037 (minimal_language): Remove references to minimal_language_data.
3038 * d-lang.c (d_language_data): Delete.
3039 (d_language): Remove references to d_language_data.
3040 * f-lang.c (f_language_data): Delete.
3041 (f_language): Remove references to f_language_data.
3042 * go-lang.c (go_language_data): Delete.
3043 (go_language): Remove references to go_language_data.
3044 * language.c (unknown_language_data): Delete.
3045 (unknown_language): Remove references to unknown_language_data.
3046 (auto_language_data): Delete.
3047 (auto_language): Remove references to auto_language_data.
3048 * language.h (language_data): Delete struct.
3049 (language_defn): No longer inherit from language_data.
3050 * m2-lang.c (m2_language_data): Delete.
3051 (m2_language): Remove references to m2_language_data.
3052 * objc-lang.c (objc_language_data): Delete.
3053 (objc_language): Remove references to objc_language_data.
3054 * opencl-lang.c (opencl_language_data): Delete.
3055 (opencl_language): Remove references to opencl_language_data.
3056 * p-lang.c (pascal_language_data): Delete.
3057 (pascal_language): Remove references to pascal_language_data.
3058 * rust-lang.c (rust_language_data): Delete.
3059 (rust_language): Remove references to rust_language_data.
3060
b7c6e27d
AB
30612020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3062
3063 * ada-lang.c (ada_language_data): Remove la_op_print_tab
3064 initializer.
3065 (ada_language::opcode_print_table): New member function.
3066 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
3067 (c_language::opcode_print_table): New member function.
3068 (cplus_language_data): Remove la_op_print_tab initializer.
3069 (cplus_language::opcode_print_table): New member function.
3070 (asm_language_data): Remove la_op_print_tab initializer.
3071 (asm_language::opcode_print_table): New member function.
3072 (minimal_language_data): Remove la_op_print_tab initializer.
3073 (minimal_language::opcode_print_table): New member function.
3074 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
3075 (d_language::opcode_print_table): New member function.
3076 * expprint.c (print_subexp_standard): Update call to
3077 opcode_print_table.
3078 (op_string): Likewise.
3079 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
3080 (f_language::opcode_print_table): New member function.
3081 * go-lang.c (go_language_data): Remove la_op_print_tab
3082 initializer.
3083 (go_language::opcode_print_table): New member function.
3084 * language.c (unknown_language_data): Remove la_op_print_tab
3085 initializer.
3086 (unknown_language::opcode_print_table): New member function.
3087 (auto_language_data): Remove la_op_print_tab initializer.
3088 (auto_language::opcode_print_table): New member function.
3089 * language.h (language_data): Remove la_op_print_tab field.
3090 (language_defn::opcode_print_table): Declare new member function.
3091 * m2-lang.c (m2_language_data): Remove la_op_print_tab
3092 initializer.
3093 (m2_language::opcode_print_table): New member function.
3094 * objc-lang.c (objc_language_data): Remove la_op_print_tab
3095 initializer.
3096 (objc_language::opcode_print_table): New member function.
3097 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
3098 initializer.
3099 (opencl_language::opcode_print_table): New member function.
3100 * p-lang.c (pascal_language_data): Remove la_op_print_tab
3101 initializer.
3102 (pascal_language::opcode_print_table): New member function.
3103 * rust-lang.c (rust_language_data): Remove la_op_print_tab
3104 initializer.
3105 (rust_language::opcode_print_table): New member function.
3106
5aba6ebe
AB
31072020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3108
3109 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
3110 (ada_language::expression_ops): New member function.
3111 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
3112 (c_language::expression_ops): New member function.
3113 (cplus_language_data): Remove la_exp_desc initializer.
3114 (cplus_language::expression_ops): New member function.
3115 (asm_language_data): Remove la_exp_desc initializer.
3116 (asm_language::expression_ops): New member function.
3117 (minimal_language_data): Remove la_exp_desc initializer.
3118 (minimal_language::expression_ops): New member function.
3119 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
3120 (d_language::expression_ops): New member function.
3121 * eval.c (evaluate_subexp): Update call to expression_ops.
3122 * expprint.c (print_subexp): Likewise.
3123 (op_name): Likewise.
3124 (dump_subexp_body): Likewise.
3125 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
3126 (f_language::expression_ops): New member function.
3127 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
3128 (go_language::expression_ops): New member function.
3129 * language.c (language_defn::expression_ops): New function.
3130 (unknown_language_data): Remove la_exp_desc initializer.
3131 (auto_language_data): Likewise.
3132 * language.h (language_data): Remove la_exp_desc field.
3133 (language_defn::expression_ops): Declare new member function.
3134 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
3135 (m2_language::expression_ops): New member function.
3136 * objc-lang.c (objc_language_data): Remove la_exp_desc
3137 initializer.
3138 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
3139 initializer.
3140 (opencl_language::expression_ops): New member function.
3141 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
3142 * parse.c (operator_length): Update call to expression_ops.
3143 (exp_iterate): Likewise.
3144 * rust-lang.c (rust_language_data): Remove la_exp_desc
3145 initializer.
3146 (ruse_language::expression_ops): New member function.
3147
b63a3f3f
AB
31482020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3149
3150 * ada-lang.c (ada_language_data): Remove la_varobj_ops
3151 initializer.
3152 (ada_language::varobj_ops): New member function.
3153 * c-lang.c (c_language_data): Remove la_varobj_ops
3154 initializer.
3155 (cplus_language_data): Likewise.
3156 (cplus_language::varobj_ops): New member function.
3157 (asm_language_data): Remove la_varobj_ops initializer.
3158 (minimal_language_data): Likewise.
3159 * d-lang.c (d_language_data): Likewise.
3160 * f-lang.c (f_language_data): Likewise.
3161 * go-lang.c (go_language_data): Likewise.
3162 * language.c (language_defn::varobj_ops): New function.
3163 (unknown_language_data): Remove la_varobj_ops
3164 initializer.
3165 (auto_language_data): Likewise.
3166 * language.h (language_data): Remove la_varobj_ops field.
3167 (language_defn::varobj_ops): Declare new member function.
3168 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
3169 * objc-lang.c (objc_language_data): Likewise.
3170 * opencl-lang.c (opencl_language_data): Likewise.
3171 * p-lang.c (pascal_language_data): Likewise.
3172 * rust-lang.c (rust_language_data): Likewise.
3173 * varobj.c (varobj_create): Update call to varobj_ops.
3174 * varobj.h (default_varobj_ops): Delete define.
3175
1ac14a04
AB
31762020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3177
3178 * ada-lang.c (ada_language_data): Remove la_macro_expansion
3179 initializer.
3180 * c-lang.c (c_language_data): Likewise.
3181 (c_language::macro_expansion): New member function.
3182 (cplus_language_data): Likewise.
3183 (cplus_language::macro_expansion): New member function.
3184 (asm_language_data): Likewise.
3185 (asm_language::macro_expansion): New member function.
3186 (minimal_language_data): Likewise.
3187 (minimal_language::macro_expansion): New member function.
3188 * d-lang.c (d_language_data): Remove la_macro_expansion
3189 initializer.
3190 * f-lang.c (f_language_data): Likewise.
3191 * go-lang.c (go_language_data): Likewise.
3192 * language.c (unknown_language_data): Likewise.
3193 (auto_language_data): Likewise.
3194 * language.h (language_data): Remove la_macro_expansion field.
3195 (language_defn::macro_expansion): New member function.
3196 * m2-lang.c (m2_language_data): Remove la_macro_expansion
3197 initializer.
3198 * objc-lang.c (objc_language_data): Likewise.
3199 (objc_language::macro_expansion): New member function.
3200 * opencl-lang.c (opencl_language_data): Likewise.
3201 (opencl_language::macro_expansion): New member function.
3202 * p-lang.c (pascal_language_data): Remove la_macro_expansion
3203 initializer.
3204 * rust-lang.c (rust_language_data): Likewise.
3205 * symtab.c (default_collect_symbol_completion_matches_break_on):
3206 Update call to macro_expansion.
3207
3a3440fb
AB
32082020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3209
3210 * ada-lang.c (ada_language_data): Remove la_array_ordering
3211 initializer.
3212 * c-lang.c (c_language_data): Likewise.
3213 (cplus_language_data): Likewise.
3214 (asm_language_data): Likewise.
3215 (minimal_language_data): Likewise.
3216 * d-lang.c (d_language_data): Likewise.
3217 * dwarf2/read.c (read_array_order): Update for call to
3218 array_ordering.
3219 * f-lang.c (f_language_data): Remove la_array_ordering
3220 initializer.
3221 (f_language::array_ordering): New member function.
3222 * go-lang.c (go_language_data): Remove la_array_ordering
3223 initializer.
3224 * language.c (unknown_language_data): Likewise.
3225 (auto_language_data): Likewise.
3226 * language.h (language_data): Delete la_array_ordering field.
3227 (language_defn::array_ordering): New member function.
3228 * m2-lang.c (m2_language_data): Remove la_array_ordering
3229 initializer.
3230 * objc-lang.c (objc_language_data): Likewise.
3231 * opencl-lang.c (opencl_language_data): Likewise.
3232 * p-lang.c (pascal_language_data): Likewise.
3233 * rust-lang.c (rust_language_data): Likewise.
3234
0d201fa4
AB
32352020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3236
3237 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
3238 initializer.
3239 * c-lang.c (c_language_data): Likewise.
3240 (cplus_language_data): Likewise.
3241 (asm_language_data): Likewise.
3242 (minimal_language_data): Likewise.
3243 * d-lang.c (d_language_data): Likewise.
3244 * f-lang.c (f_language_data): Likewise.
3245 (f_language::case_sensitivity): New member function.
3246 * go-lang.c (go_language_data): Remove la_case_sensitivity
3247 initializer.
3248 * language.c (enum case_mode): Moved here from language.h.
3249 (case_mode): Make static.
3250 (show_case_command): Update for case_sensitivity being a method.
3251 (set_case_command): Likewise.
3252 (set_range_case): Likewise.
3253 (unknown_language_data): Remove la_case_sensitivity initializer.
3254 (auto_language_data): Likewise.
3255 * language.h (case_mode): Delete, move enum declaration to
3256 language.c.
3257 (language_data): Delete la_case_sensitivity field.
3258 (language_defn::case_sensitivity): New member function.
3259 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
3260 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
efdf6a73
AB
32662020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3267
3268 * ada-lang.c (ada_language_data): Remove la_range_check
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 (f_language::range_checking_on_by_default): New member function.
3277 * go-lang.c (go_language_data): Remove la_range_check initializer.
3278 * language.c (enum range_mode): Moved here from language.h.
3279 (range_mode): Made static.
3280 (show_range_command): Update to use
3281 range_checking_on_by_default.
3282 (set_range_command): Likewise.
3283 (set_range_case): Likewise.
3284 (unknown_language_data): Remove la_range_check initializer.
3285 (auto_language_data): Likewise.
3286 * language.h (range_mode): Delete. Enum definition moved to
3287 language.c.
3288 (language_data): Remove la_range_check field.
3289 (language_defn::range_checking_on_by_default): New member
3290 function.
3291 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
3292 (m2_language::range_checking_on_by_default): New member function.
3293 * objc-lang.c (objc_language_data): Remove la_range_check
3294 initializer.
3295 * opencl-lang.c (opencl_language_data): Likewise.
3296 * p-lang.c (pascal_language_data): Likewise.
3297 (pascal_language::range_checking_on_by_default): New member
3298 function.
3299 * rust-lang.c (rust_language_data): Remove la_range_check
3300 initializer.
3301 (rust_language::range_checking_on_by_default): New member
3302 function.
3303
bf92aec5
AB
33042020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3305
3306 * dwarf2/read.c (dwarf2_physname): Remove special case for
3307 language_go.
3308 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
3309 member function.
3310
d3355e4d
AB
33112020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3312
3313 * ada-lang.c (ada_language_data): Remove
3314 la_store_sym_names_in_linkage_form_p initializer.
3315 (ada_language::store_sym_names_in_linkage_form_p): New member
3316 function.
3317 * c-lang.c (c_language_data): Remove
3318 la_store_sym_names_in_linkage_form_p initializer.
3319 (c_language::store_sym_names_in_linkage_form_p): New member
3320 function.
3321 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
3322 initializer.
3323 (asm_language_data): Likewise.
3324 (asm_language::store_sym_names_in_linkage_form_p): New member
3325 function.
3326 (minimal_language_data): Remove
3327 la_store_sym_names_in_linkage_form_p initializer.
3328 (minimal_language::store_sym_names_in_linkage_form_p): New member
3329 function.
3330 * d-lang.c (d_language_data): Remove
3331 la_store_sym_names_in_linkage_form_p initializer.
3332 * dwarf2/read.c (dwarf2_physname): Update call to
3333 store_sym_names_in_linkage_form_p.
3334 * f-lang.c (f_language_data): Remove
3335 la_store_sym_names_in_linkage_form_p initializer.
3336 * go-lang.c (go_language_data): Remove
3337 la_store_sym_names_in_linkage_form_p initializer.
3338 * language.c (unknown_language_data): Remove
3339 la_store_sym_names_in_linkage_form_p initializer.
3340 (unknown_language::store_sym_names_in_linkage_form_p): New member
3341 function.
3342 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
3343 initializer.
3344 (auto_language::store_sym_names_in_linkage_form_p): New member
3345 function.
3346 * language.h (language_data): Remove
3347 la_store_sym_names_in_linkage_form_p member variable.
3348 (language_defn::store_sym_names_in_linkage_form_p): New member
3349 function.
3350 * m2-lang.c (m2_language_data): Remove
3351 la_store_sym_names_in_linkage_form_p initializer.
3352 * objc-lang.c (objc_language_data): Likewise.
3353 * opencl-lang.c (opencl_language_data): Likewise.
3354 * p-lang.c (pascal_language_data): Likewise.
3355 * rust-lang.c (rust_language_data): Likewise.
3356
22c12a6c
AB
33572020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3358
3359 * ada-lang.c (ada_language_data): Remove string_lower_bound
3360 initializer.
3361 * c-lang.c (c_language_data): Likewise.
3362 (cplus_language_data): Likewise.
3363 (asm_language_data): Likewise.
3364 (minimal_language_data): Likewise.
3365 * d-lang.c (d_language_data): Likewise.
3366 * f-lang.c (f_language_data): Likewise.
3367 * go-lang.c (go_language_data): Likewise.
3368 * language.c (unknown_language_data): Likewise.
3369 (auto_language_data): Likewise.
3370 * language.h (language_data): Remove string_lower_bound field.
3371 (language_defn::string_lower_bound): New member function.
3372 * m2-lang.c (m2_language_data): Remove string_lower_bound
3373 initializer.
3374 (m2_language::string_lower_bound): New member function.
3375 * objc-lang.c (objc_language_data): Remove string_lower_bound
3376 initializer.
3377 * opencl-lang.c (opencl_language_data): Likewise.
3378 * p-lang.c (pascal_language_data): Likewise.
3379 * rust-lang.c (rust_language_data): Likewise.
3380 * valops.c (value_cstring): Update call to string_lower_bound.
3381 (value_string): Likewise.
3382 * value.c (allocate_repeated_value): Likewise.
3383
1c236ddd
AB
33842020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3385
3386 * valops.c (value_repeat): Fix incorrect argument name in comment.
3387
67bd3fd5
AB
33882020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3389
3390 * ada-lang.c (ada_language_data): Remove c_style_arrays
3391 initializer.
3392 (ada_language::c_style_arrays_p): New member fuction.
3393 * c-lang.c (c_language_data): Remove c_style_arrays
3394 initializer.
3395 (cplus_language_data): Likewise.
3396 (asm_language_data): Likewise.
3397 (minimal_language_data): Likewise.
3398 * d-lang.c (d_language_data): Likewise.
3399 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
3400 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
3401 (f_language::c_style_arrays_p): New member function.
3402 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
3403 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
3404 * language.c (unknown_language_data): Remove c_style_arrays
3405 initializer.
3406 (auto_language_data): Likewise.
3407 * language.h (language_data): Remove c_style_arrays field.
3408 (language_defn::c_style_arrays_p): New member function.
3409 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
3410 (m2_language::c_style_arrays_p): New member function.
3411 * objc-lang.c (objc_language_data): Remove c_style_arrays
3412 initializer.
3413 * opencl-lang.c (opencl_language_data): Likewise.
3414 * p-lang.c (pascal_language_data): Likewise.
3415 * rust-lang.c (rust_language_data): Likewise.
3416 * valarith.c (value_subscript): Update call to c_style_arrays_p,
3417 and update local variable to a bool.
3418 * valops.c (value_cast): Update call to c_style_arrays_p.
3419 (value_array): Likewise.
3420 * value.c (coerce_array): Likewise.
3421
85967615
AB
34222020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3423
3424 * ada-lang.c (ada_language_data): Remove la_language initializer.
3425 * c-lang.c (c_language_data): Likewise.
3426 (cplus_language_data): Likewise.
3427 (asm_language_data): Likewise.
3428 (minimal_language_data): Likewise.
3429 * d-lang.c (d_language_data): Likewise.
3430 * f-lang.c (f_language_data): Likewise.
3431 * go-lang.c (go_language_data): Likewise.
3432 * language.c (unknown_language_data): Likewise.
3433 (auto_language_data): Likewise.
3434 * language.h (language_data): Remove la_language field.
3435 (language_defn::language_defn): Initialise la_language field.
3436 (language_defn::la_language): New member variable.
3437 * m2-lang.c (m2_language_data): Remove la_language field.
3438 * objc-lang.c (objc_language_data): Likewise.
3439 * opencl-lang.c (opencl_language_data): Likewise.
3440 * p-lang.c (pascal_language_data): Likewise.
3441 * rust-lang.c (rust_language_data): Likewise.
3442
e171d6f1
AB
34432020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3444
3445 * ada-lang.c (ada_extensions): Delete, moved into
3446 ada_language::filename_extensions.
3447 (ada_language_data): Remove la_filename_extensions initializer.
3448 (ada_language::filename_extensions): New member function.
3449 * c-lang.c (c_extensions): Delete, moved into
3450 c_language::filename_extensions.
3451 (c_language_data): Remove la_filename_extensions initializer.
3452 (c_language::filename_extensions): New member function.
3453 (cplus_extensions): Delete, moved into
3454 cplus_language::filename_extensions.
3455 (cplus_language_data): Remove la_filename_extensions initializer.
3456 (cplus_language::filename_extensions): New member function.
3457 (asm_extensions): Delete, moved into
3458 asm_language::filename_extensions.
3459 (asm_language_data): Remove la_filename_extensions initializer.
3460 (asm_language::filename_extensions): New member function.
3461 (minimal_language_data): Remove la_filename_extensions
3462 initializer.
3463 * d-lang.c (d_extensions): Delete, moved into
3464 d_language::filename_extensions.
3465 (d_language_data): Remove la_filename_extensions initializer.
3466 (d_language::filename_extensions): New member function.
3467 * f-lang.c (f_extensions): Delete, moved into
3468 f_language::filename_extensions.
3469 (f_language_data): Remove la_filename_extensions initializer.
3470 (f_language::filename_extensions): New member function.
3471 * go-lang.c (go_language_data): Remove la_filename_extensions
3472 initializer.
3473 * language.c (add_set_language_command): Update now that
3474 filename_extensions returns a vector.
3475 (unknown_language_data): Remove la_filename_extensions
3476 initializer.
3477 (auto_language_data): Likewise.
3478 * language.h (language_data): Remove la_filename_extensions field.
3479 (language_defn::filename_extensions): New member function.
3480 * m2-lang.c (m2_language_data): Remove la_filename_extensions
3481 initializer.
3482 * objc-lang.c (objc_extensions): Delete, moved into
3483 objc_language::filename_extensions.
3484 (objc_language_data): Remove la_filename_extensions initializer.
3485 (objc_language::filename_extensions): New member function.
3486 * opencl-lang.c (opencl_language_data): Remove
3487 la_filename_extensions initializer.
3488 * p-lang.c (pascal_extensions): Delete, moved into
3489 pascal_language::filename_extensions.
3490 (pascal_language_data): Remove la_filename_extensions initializer.
3491 (pascal_language::filename_extensions): New member function.
3492 * rust-lang.c (rust_extensions): Delete, moved into
3493 rust_language::filename_extensions.
3494 (rust_language_data): Remove la_filename_extensions initializer.
3495 (rust_language::filename_extensions): New member function.
3496 * symfile.c (add_filename_language): Add new assert.
3497
6f7664a9
AB
34982020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3499
3500 * ada-lang.c (ada_language_data): Remove la_name and
3501 la_natural_name initializers.
3502 (ada_language::name): New member function.
3503 (ada_language::natural_name): New member function.
3504 * c-lang.c (c_language_data): Remove la_name and
3505 la_natural_name initializers.
3506 (c_language::name): New member function.
3507 (c_language::natural_name): New member function.
3508 (cplus_language_data): Remove la_name and
3509 la_natural_name initializers.
3510 (cplus_language::name): New member function.
3511 (cplus_language::natural_name): New member function.
3512 (asm_language_data): Remove la_name and
3513 la_natural_name initializers.
3514 (asm_language::name): New member function.
3515 (asm_language::natural_name): New member function.
3516 (minimal_language_data): Remove la_name and
3517 la_natural_name initializers.
3518 (minimal_language::name): New member function.
3519 (minimal_language::natural_name): New member function.
3520 * compile/compile.c (compile_to_object): Update call to
3521 lanugage_defn::name.
3522 * d-lang.c (d_language_data): Remove la_name and
3523 la_natural_name initializers.
3524 (d_language::name): New member function.
3525 (d_language::natural_name): New member function.
3526 * expprint.c (print_subexp_standard): Update call to
3527 language_defn::name.
3528 (dump_raw_expression): Likewise
3529 (dump_prefix_expression): Likewise.
3530 * f-lang.c (f_language_data): Remove la_name and
3531 la_natural_name initializers.
3532 (f_language::name): New member function.
3533 (f_language::natural_name): New member function.
3534 * go-lang.c (go_language_data): Remove la_name and
3535 la_natural_name initializers.
3536 (go_language::name): New member function.
3537 (go_language::natural_name): New member function.
3538 * language.c (show_language_command): Update call to
3539 language_defn::name.
3540 (set_language_command): Likewise.
3541 (language_enum): Likewise.
3542 (language_str): Likewise.
3543 (add_set_language_command): Likewise, use
3544 language_defn::natural_name in the doc string.
3545 (unknown_language_data): Remove la_name and
3546 la_natural_name initializers.
3547 (unknown_language::name): New member function.
3548 (unknown_language::natural_name): New member function.
3549 (auto_language_data): Remove la_name and
3550 la_natural_name initializers.
3551 (auto_language::name): New member function.
3552 (auto_language::natural_name): New member function.
3553 (language_lookup_primitive_type_as_symbol): Update call to
3554 language_defn::name.
3555 * language.h (language_data): Remove la_name and la_natural_name
3556 member variables.
3557 (language_defn::name): New member function.
3558 (language_defn::natural_name): New member function.
3559 * m2-lang.c (m2_language_data): Remove la_name and
3560 la_natural_name initializers.
3561 (m2_language::name): New member function.
3562 (m2_language::natural_name): New member function.
3563 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
3564 language_defn::natural_name.
3565 * objc-lang.c (objc_language_data): Remove la_name and
3566 la_natural_name initializers.
3567 (objc_language::name): New member function.
3568 (objc_language::natural_name): New member function.
3569 * opencl-lang.c (opencl_language_data): Remove la_name and
3570 la_natural_name initializers.
3571 (opencl_language::name): New member function.
3572 (opencl_language::natural_name): New member function.
3573 * p-lang.c (pascal_language_data): Remove la_name and
3574 la_natural_name initializers.
3575 (pascal_language::name): New member function.
3576 (pascal_language::natural_name): New member function.
3577 * rust-lang.c (rust_language_data): Remove la_name and
3578 la_natural_name initializers.
3579 (rust_language::name): New member function.
3580 (rust_language::natural_name): New member function.
3581 * symtab.c (lookup_language_this): Update call to
3582 language_defn::name.
3583
5bae7c4e
AB
35842020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3585
3586 * ada-lang.c (ada_language_data): Remove la_name_of_this
3587 initializer.
3588 * ax-gdb.c (gen_expr): Update call to name_of_this.
3589 * c-exp.y (classify_name): Likewise.
3590 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
3591 (cplus_language_data): Likewise.
3592 (cplus_language::name_of_this): New member function.
3593 (asm_language_data): Remove la_name_of_this initializer.
3594 (minimal_language_data): Likewise.
3595 * d-lang.c (d_language_data): Likewise.
3596 (d_language::name_of_this): New member function.
3597 * expprint.c (print_subexp_standard): Update call to name_of_this.
3598 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
3599 * go-lang.c (go_language_data): Likewise.
3600 * language.c (unknown_language_data): Likewise.
3601 (unknown_language::name_of_this): New member function.
3602 (auto_language_data): Remove la_name_of_this initializer.
3603 (auto_language::name_of_this): New member function.
3604 * language.h (language_data): Delete la_name_of_this member
3605 variable.
3606 (language_defn::name_of_this): New member function.
3607 * m2-lang.c (m2_language_data): Remove la_name_of_this
3608 initializer.
3609 * objc-lang.c (objc_language_data): Likewise.
3610 (objc_language::name_of_this): New member function.
3611 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
3612 initializer.
3613 * p-lang.c (pascal_language_data): Likewise.
3614 (pascal_language::name_of_this): New member function.
3615 * rust-lang.c (rust_language_data): Remove la_name_of_this
3616 initializer.
3617 * symtab.c (lookup_language_this): Update call to name_of_this.
3618 (lookup_symbol_aux): Likewise.
3619 * valops.c (value_of_this): Likewise.
3620
22e3f3ed
AB
36212020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3622
3623 * ada-lang.c (ada_language_data): Remove
3624 la_struct_too_deep_ellipsis initializer.
3625 (ada_language::struct_too_deep_ellipsis): New member function.
3626 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
3627 initializer.
3628 (cplus_language_data): Likewise.
3629 (asm_language_data): Likewise.
3630 (minimal_language_data): Likewise.
3631 * cp-valprint.c (cp_print_value): Update call to
3632 struct_too_deep_ellipsis.
3633 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
3634 initializer.
3635 * f-lang.c (f_language_data): Likewise.
3636 (f_language::struct_too_deep_ellipsis): New member function.
3637 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
3638 initializer.
3639 * language.c (unknown_language_data): Likewise.
3640 (auto_language_data): Likewise.
3641 * language.h (language_data): Delete la_struct_too_deep_ellipsis
3642 member variable.
3643 (language_defn::struct_too_deep_ellipsis): New member function.
3644 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
3645 initializer.Q
3646 * objc-lang.c (objc_language_data): Likewise.
3647 * opencl-lang.c (opencl_language_data): Likewise.
3648 * p-lang.c (pascal_language_data): Likewise.
3649 * rust-lang.c (rust_language_data): Likewise.
3650 * valprint.c (val_print_check_max_depth): Update call to
3651 struct_too_deep_ellipsis.
3652
ed29e1c7
FW
36532020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
3654
3655 * MAINTAINERS (Write After Approval): Add myself.
3656
12d8f940
TT
36572020-09-15 Tom Tromey <tom@tromey.com>
3658
3659 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
3660 Remove.
3661
6b5a7bc7
TT
36622020-09-15 Tom Tromey <tom@tromey.com>
3663
3664 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
3665 and TYPE_CODE_METHODPTR cases.
3666 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
3667 (c_value_print_inner): Update.
3668 * valprint.c (generic_value_print_memberptr): New function, from
3669 c_value_print_memberptr.
3670 (generic_value_print): Use it. Call cplus_print_method_ptr.
3671
47f0e2ff
TT
36722020-09-15 Tom Tromey <tromey@adacore.com>
3673
3674 * python/python-internal.h (PyInt_FromLong): Remove define.
3675 * python/py-value.c (convert_value_from_python): Use
3676 gdb_py_object_from_longest.
3677 * python/py-type.c (typy_get_code): Use
3678 gdb_py_object_from_longest.
3679 * python/py-symtab.c (salpy_get_line): Use
3680 gdb_py_object_from_longest.
3681 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
3682 gdb_py_object_from_longest.
3683 * python/py-record.c (recpy_gap_reason_code): Use
3684 gdb_py_object_from_longest.
3685 * python/py-record-btrace.c (recpy_bt_insn_size)
3686 (recpy_bt_func_level, btpy_list_count): Use
3687 gdb_py_object_from_longest.
3688 * python/py-infthread.c (gdbpy_create_ptid_object): Use
3689 gdb_py_object_from_longest. Fix error handling.
3690 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
3691 gdb_py_object_from_longest.
3692 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
3693 gdb_py_object_from_longest.
3694 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
3695 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
3696 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
3697
512116ce
TT
36982020-09-15 Tom Tromey <tromey@adacore.com>
3699
3700 * python/python.c (gdbpy_parameter_value): Use
3701 gdb_py_object_from_ulongest.
3702
4ab1029c
TT
37032020-09-15 Tom Tromey <tromey@adacore.com>
3704
3705 * python/py-infevents.c (create_register_changed_event_object):
3706 Use gdb_py_object_from_longest.
3707 * python/py-exitedevent.c (create_exited_event_object): Use
3708 gdb_py_object_from_longest.
3709
062534d4
TT
37102020-09-15 Tom Tromey <tromey@adacore.com>
3711
3712 * python/python.c (gdbpy_parameter_value): Use
3713 gdb_py_object_from_longest.
3714 * python/py-type.c (convert_field, typy_range): Use
3715 gdb_py_object_from_longest.
3716 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
3717 gdb_py_object_from_longest.
3718 * python/py-lazy-string.c (stpy_get_length): Use
3719 gdb_py_object_from_longest.
3720 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
3721 gdb_py_object_from_longest.
3722 * python/py-infevents.c (create_memory_changed_event_object): Use
3723 gdb_py_object_from_longest.
3724 * python/py-inferior.c (infpy_get_num): Use
3725 gdb_py_object_from_longest.
3726 (infpy_get_pid): Likewise.
3727
d1cab987
TT
37282020-09-15 Tom Tromey <tromey@adacore.com>
3729
3730 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
3731 defines.
3732 * python/py-value.c (valpy_long): Use
3733 gdb_py_object_from_ulongest.
3734 * python/py-symtab.c (salpy_get_pc): Use
3735 gdb_py_object_from_ulongest.
3736 (salpy_get_last): Likewise.
3737 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
3738 gdb_py_object_from_ulongest.
3739 * python/py-lazy-string.c (stpy_get_address): Use
3740 gdb_py_object_from_ulongest.
3741 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
3742 * python/py-arch.c (archpy_disassemble): Use
3743 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
3744 error handling.
3745
4bde49dc
TT
37462020-09-15 Tom Tromey <tromey@adacore.com>
3747
3748 * python/python-internal.h (gdb_py_long_from_longest): Remove
3749 defines.
3750 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
3751 * python/py-type.c (convert_field, typy_get_sizeof): Use
3752 gdb_py_object_from_longest.
3753 * python/py-record-btrace.c (btpy_list_index): Use
3754 gdb_py_object_from_longest.
3755
37431074
TT
37562020-09-15 Tom Tromey <tromey@adacore.com>
3757
3758 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
3759 * python/py-record.c (recpy_element_number): Use
3760 gdb_py_object_from_longest.
3761 (recpy_gap_number): Likewise.
3762
cbe25684
TT
37632020-09-15 Tom Tromey <tromey@adacore.com>
3764
3765 * top.c (ui::ui): Update.
3766 (highest_ui_num): Remove.
3767 * top.h (struct ui) <num>: Remove.
3768
db92ac45
TT
37692020-09-15 Tom Tromey <tromey@adacore.com>
3770
3771 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
3772 * ui-style.c (ansi_regex_text): Now array.
3773 * rust-exp.y (number_regex_text): Now array.
3774 * linespec.c (linespec_quote_characters): Now array.
3775 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
3776 Now arrays.
3777
d2b31b67
SM
37782020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3779
3780 * debuginfod-support.c (debuginfod_client_deleter): New.
3781 (debuginfod_client_up): New.
3782 (debuginfod_init): Return debuginfod_client_up.
3783 (debuginfod_source_query): Adjust.
3784 (debuginfod_debuginfo_query): Adjust.
3785
3246bd8e
SM
37862020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3787
3788 * debuginfod-support.c (debuginfod_source_query): Use
3789 make_unique_xstrdup.
3790
10242f36
SM
37912020-09-14 Simon Marchi <simon.marchi@efficios.com>
3792
3793 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
3794 with `type::instance_flags`.
3795
e1044e6a
MM
37962020-09-14 Michael Mullin <masmullin@gmail.com>
3797
3798 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
3799 Remove baton parameter.
3800
04902b09
PA
38012020-09-14 Pedro Alves <pedro@palves.net>
3802
3803 * Makefile.in (SELFTESTS_SRCS): Add
3804 unittests/enum-flags-selftests.c.
3805 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
3806 btrace_function_flags instead of enum btrace_function_flag.
3807 * compile/compile-c-types.c (convert_qualified): Use
3808 enum_flags::raw.
3809 * compile/compile-cplus-symbols.c (convert_one_symbol)
3810 (convert_symbol_bmsym):
3811 * compile/compile-cplus-types.c (compile_cplus_convert_method)
3812 (compile_cplus_convert_struct_or_union_methods)
3813 (compile_cplus_instance::convert_qualified_base):
3814 * go-exp.y (parse_string_or_char): Add cast to int.
3815 * unittests/enum-flags-selftests.c: New file.
3816 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
3817 type to btrace_thread_flags from btrace_thread_flag.
3818 (record_btrace_cancel_resume, record_btrace_step_thread): Change
3819 local's type to btrace_thread_flags from btrace_thread_flag. Add
3820 cast in DEBUG call.
3821
69896a2c
PA
38222020-09-14 Pedro Alves <pedro@palves.net>
3823
3824 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
3825 * gdbtypes.c (address_space_name_to_int): Rename to ...
3826 (address_space_name_to_type_instance_flags): ... this.
3827 (address_space_int_to_name): Rename to ...
3828 (address_space_type_instance_flags_to_name): ... this.
3829 * gdbtypes.h (address_space_name_to_int): Rename to ...
3830 (address_space_name_to_type_instance_flags): ... this.
3831 (address_space_int_to_name): Rename to ...
3832 (address_space_type_instance_flags_to_name): ... this.
3833 * type-stack.c (type_stack::insert): Adjust to rename.
3834 * type-stack.h (type_stack::insert): Likewise.
3835
314ad88d
PA
38362020-09-14 Pedro Alves <pedro@palves.net>
3837 Andrew Burgess <andrew.burgess@embecosm.com>
3838
3839 * avr-tdep.c (avr_address_class_type_flags): Return
3840 type_instance_flags.
3841 (avr_address_class_type_flags_to_name): Take a
3842 type_instance_flags.
3843 (avr_address_class_name_to_type_flags): Return bool and take a
3844 type_instance_flags.
3845 * d-lang.c (build_d_types): Use type::set_instance_flags.
3846 * ft32-tdep.c (ft32_address_class_type_flags): Return
3847 type_instance_flags.
3848 (ft32_address_class_type_flags_to_name): Take a
3849 type_instance_flags.
3850 (ft32_address_class_name_to_type_flags): Return bool and take a
3851 type_instance_flags.
3852 (ft32_gdbarch_init): Use type::set_instance_flags.
3853 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
3854 * gdbarch.h, gdbarch.c: Regenerate.
3855 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
3856 (address_class_name_to_type_flags): Use type_instance_flags and
3857 bool.
3858 * gdbtypes.c (address_space_name_to_int)
3859 (address_space_int_to_name, make_qualified_type): Use
3860 type_instance_flags.
3861 (make_qualified_type): Use type_instance_flags and
3862 type::set_instance_flags.
3863 (make_type_with_address_space, make_cv_type, make_vector_type)
3864 (check_typedef): Use type_instance_flags.
3865 (recursive_dump_type): Cast type_instance_flags to unsigned for
3866 printing.
3867 (copy_type_recursive): Use type::set_instance_flags.
3868 (gdbtypes_post_init): Use type::set_instance_flags.
3869 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
3870 <m_instance_flags>: ... this.
3871 <instance_flags, set_instance_flags>: New methods.
3872 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
3873 (SET_TYPE_INSTANCE_FLAGS): New.
3874 (address_space_name_to_int, address_space_int_to_name)
3875 (make_type_with_address_space): Pass flags using
3876 type_instance_flags instead of int.
3877 * stabsread.c (cleanup_undefined_types_noname): Use
3878 type::set_instance_flags.
3879 * s390-tdep.c (s390_address_class_type_flags): Return
3880 type_instance_flags.
3881 (s390_address_class_type_flags_to_name): Take a
3882 type_instance_flags.
3883 (s390_address_class_name_to_type_flags): Return bool and take a
3884 type_instance_flags.
3885 * type-stack.c (type_stack::follow_types): Use
3886 type_instance_flags.
3887 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
3888
27087b7f
TT
38892020-09-14 Tom Tromey <tromey@adacore.com>
3890
3891 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
3892 * x86-tdep.c (x86_is_thunk_register_name)
3893 (x86_in_indirect_branch_thunk): Update.
3894 * sparc64-tdep.c (sparc64_fpu_register_names)
3895 (sparc64_cp0_register_names, sparc64_register_names)
3896 (sparc64_pseudo_register_names): Now const.
3897 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
3898 cp0_registers_num>: Now const.
3899 * sparc-tdep.c (sparc_core_register_names)
3900 (sparc32_fpu_register_names, sparc32_cp0_register_names)
3901 (sparc32_pseudo_register_names): Now const.
3902 (validate_tdesc_registers): Update.
3903 * rust-lang.c (rust_extensions): Now const.
3904 * p-lang.c (p_extensions): Now const.
3905 * objc-lang.c (objc_extensions): Now const.
3906 * nto-tdep.c (nto_thread_state_str): Now const.
3907 * moxie-tdep.c (moxie_register_names): Now const.
3908 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
3909 Now const.
3910 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
3911 (mips_linux_reg_names): Now const.
3912 (mips_gdbarch_init): Update.
3913 * microblaze-tdep.c (microblaze_register_names): Now const.
3914 * m68k-tdep.c (m68k_register_names): Now const.
3915 * m32r-tdep.c (m32r_register_names): Now const.
3916 * ia64-tdep.c (ia64_register_names): Now const.
3917 * i386-tdep.h (struct gdbarch_tdep) <register_names,
3918 ymmh_register_names, ymm16h_regnum, mpx_register_names,
3919 k_register_names, zmmh_register_names, xmm_avx512_register_names,
3920 ymm_avx512_register_names, pkeys_register_names>: Now const.
3921 * i386-tdep.c (i386_register_names, i386_zmm_names)
3922 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
3923 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
3924 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
3925 * f-lang.c (f_extensions): Now const.
3926 * d-lang.c (d_extensions): Now const.
3927 * csky-tdep.c (csky_register_names): Now const.
3928 * charset.c (default_charset_names, charset_enum): Now const.
3929 (_initialize_charset): Update.
3930 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
3931 const.
3932 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
3933 (bsd_uthread_solib_loaded): Update.
3934 (bsd_uthread_state): Now const.
3935 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
3936 (amd64_ymm_avx512_names, amd64_ymmh_names)
3937 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
3938 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
3939 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
3940 (amd64_dword_names): Now const.
3941 * agent.c (can_use_agent_enum): Now const.
3942 * ada-tasks.c (task_states, long_task_states): Now const.
3943 * ada-lang.c (known_runtime_file_name_patterns)
3944 (known_auxiliary_function_name_patterns, attribute_names)
3945 (standard_exc, ada_extensions): Now const.
3946
89806626
SM
39472020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3948
3949 * bcache.h (struct bcache) <bcache>: Remove constructor.
3950 <m_hash_function, m_compare_function>: Remove.
3951 <~bcache>: Make virtual.
3952 <compare>: Remove static method, introduce virtual method.
3953 <default_hash>: Remove.
3954 <hash>: New virtual method.
3955 * bcache.c (bcache::expand_hash_table): Update.
3956 (bcache::insert): Update.
3957 (bcache::hash): New.
3958 (bcache::compare): Update comment and parameter names.
3959 * gdbtypes.c (types_deeply_equal): Update.
3960 * psymtab.h (struct psymbol_bcache): New struct.
3961 (class psymtab_storage) <psymtab_storage>: Make default.
3962 <psymbol_cache>: Change type to psymbol_bcache.
3963 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
3964 (psymbol_hash): Change to...
3965 (psymbol_bcache::hash): ... this.
3966 (psymbol_compare): Change to...
3967 (psymbol_bcache::compare): ... this.
3968
677c92fe
SM
39692020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3970
3971 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
3972 checking for initial lwp.
3973
3eba3a01
TT
39742020-09-14 Tom Tromey <tromey@adacore.com>
3975
3976 * m68k-tdep.c (m68k_extract_return_value): Use
3977 pointer_result_regnum.
3978 (m68k_store_return_value): Likewise.
3979 (m68k_reg_struct_return_p): Handle vectors and arrays.
3980 (m68k_return_value): Handle arrays.
3981 (m68k_svr4_return_value): Fix single-element aggregate handling.
3982 Handle long double. Adjust for embedded ABI.
3983 (m68k_svr4_init_abi): Set pointer_result_regnum.
3984 (m68k_embedded_init_abi): New function.
3985 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
3986 (m68k_osabi_sniffer): New function.
3987 (_initialize_m68k_tdep): Register osabi sniffer.
3988 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
3989 member.
3990
33f4dd48
SM
39912020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3992
3993 * xml-support.c (xml_fetch_content_from_file): Replace xfree
3994 with gdb::unique_xmalloc_ptr<char>.
3995
8400a90d
SM
39962020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3997
3998 * xml-support.h (xml_fetch_another): Change type to be a
3999 function_view.
4000 (xml_process_xincludes): Remove baton parameter.
4001 (xml_fetch_content_from_file): Change baton parameter to
4002 dirname.
4003 * xml-support.c (struct xinclude_parsing_data)
4004 <xinclude_parsing_data>: Remove baton parameter.
4005 <fetcher_baton>: Remove.
4006 (xinclude_start_include): Adjust.
4007 (xml_process_xincludes): Adjust.
4008 (xml_fetch_content_from_file): Replace baton parameter with
4009 dirname.
4010 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
4011 (xml_init_syscalls_info): Use a lambda.
4012 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
4013 (file_read_description_xml): Use a lambda.
4014 (fetch_available_features_from_target): Change baton parameter
4015 to target_ops.
4016 (target_read_description_xml): Use a lambda.
4017 (target_fetch_description_xml): Use a lambda.
4018 (string_read_description_xml): Update.
4019
04f5bab2
SM
40202020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4021
4022 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
4023 uses with type::endianity_is_not_default.
4024
db558e34
SM
40252020-09-14 Simon Marchi <simon.marchi@efficios.com>
4026
4027 * gdbtypes.h (struct type) <endianity_is_not_default,
4028 set_endianity_is_not_default>: New methods.
4029 (TYPE_ENDIANITY_NOT_DEFAULT): Use
4030 type::endianity_is_not_default, change all write call sites to
4031 use type::set_endianity_is_not_default.
4032
22c4c60c
SM
40332020-09-14 Simon Marchi <simon.marchi@efficios.com>
4034
4035 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
4036 uses with type::is_fixed_instance.
4037
9cdd0d12
SM
40382020-09-14 Simon Marchi <simon.marchi@efficios.com>
4039
4040 * gdbtypes.h (struct type) <is_fixed_instance,
4041 set_is_fixed_instance>: New methods.
4042 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
4043 write call sites to use type::set_is_fixed_instance.
4044
0becda7a
SM
40452020-09-14 Simon Marchi <simon.marchi@efficios.com>
4046
4047 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
4048 uses with type::is_gnu_ifunc.
4049
03cc7249
SM
40502020-09-14 Simon Marchi <simon.marchi@efficios.com>
4051
4052 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
4053 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
4054 use type::set_is_gnu_ifunc.
4055
3f46044c
SM
40562020-09-14 Simon Marchi <simon.marchi@efficios.com>
4057
4058 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
4059 uses with type::stub_is_supported.
4060
9baccff6
SM
40612020-09-14 Simon Marchi <simon.marchi@efficios.com>
4062
4063 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
4064 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
4065 use type::set_stub_is_supported.
4066
bd63c870
SM
40672020-09-14 Simon Marchi <simon.marchi@efficios.com>
4068
4069 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
4070 uses with type::is_vector.
4071
2062087b
SM
40722020-09-14 Simon Marchi <simon.marchi@efficios.com>
4073
4074 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
4075 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
4076 use type::set_is_vector.
4077
a409645d
SM
40782020-09-14 Simon Marchi <simon.marchi@efficios.com>
4079
4080 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
4081 uses with type::has_varargs.
4082
1d6286ed
SM
40832020-09-14 Simon Marchi <simon.marchi@efficios.com>
4084
4085 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
4086 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
4087 use type::set_has_varargs.
4088
7f9f399b
SM
40892020-09-14 Simon Marchi <simon.marchi@efficios.com>
4090
4091 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
4092 uses with type::is_prototyped.
4093
27e69b7a
SM
40942020-09-14 Simon Marchi <simon.marchi@efficios.com>
4095
4096 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
4097 New methods.
4098 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
4099 call sites to use type::set_is_prototyped.
4100
d2183968
SM
41012020-09-14 Simon Marchi <simon.marchi@efficios.com>
4102
4103 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
4104 uses with type::target_is_stub.
4105
8f53807e
SM
41062020-09-14 Simon Marchi <simon.marchi@efficios.com>
4107
4108 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
4109 New methods.
4110 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
4111 sites to use type::set_target_is_stub.
4112
e46d3488
SM
41132020-09-14 Simon Marchi <simon.marchi@efficios.com>
4114
4115 * gdbtypes.h (TYPE_STUB): Remove, replace all
4116 uses with type::is_stub.
4117
b4b73759
SM
41182020-09-14 Simon Marchi <simon.marchi@efficios.com>
4119
4120 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
4121 (TYPE_STUB): Use type::is_stub, change all write call sites to
4122 use type::set_is_stub.
4123
20ce4123
SM
41242020-09-14 Simon Marchi <simon.marchi@efficios.com>
4125
4126 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
4127 type::has_no_signedness.
4128
15152a54
SM
41292020-09-14 Simon Marchi <simon.marchi@efficios.com>
4130
4131 * gdbtypes.h (struct type) <has_no_signedness,
4132 set_has_no_signedness>: New methods.
4133 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
4134 call sites to use type::set_has_no_signedness.
4135
c6d940a9
SM
41362020-09-14 Simon Marchi <simon.marchi@efficios.com>
4137
4138 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
4139 type::is_unsigned.
4140
653223d3
SM
41412020-09-14 Simon Marchi <simon.marchi@efficios.com>
4142
4143 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
4144 methods.
4145 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
4146 sites to use type::set_is_unsigned.
4147
55ea94da 41482020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 4149 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 4150
e851246a
SM
4151 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
4152 pointer and stack frame offset when unwinding.
55ea94da 4153
6791b117
PA
41542020-09-13 Pedro Alves <pedro@palves.net>
4155
4156 * NEWS: Document "-break-insert --qualified".
4157 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
4158
77f2120b
PA
41592020-09-13 Pedro Alves <pedro@palves.net>
4160
4161 * linespec.c (classify_mtype, compare_msyms): Delete.
4162 (search_minsyms_for_name): Remove classification logic. Instead
4163 filter out trampoline symbols if we also found an external
4164 function of the same name.
4165
ed6a896c
JB
41662020-09-13 Joel Brobecker <brobecker@adacore.com>
4167
4168 * NEWS: Create a new section for the next release branch.
4169 Rename the section of the current branch, now that it has
4170 been cut.
4171
32aea73e
JB
41722020-09-13 Joel Brobecker <brobecker@adacore.com>
4173
4174 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
4175 * version.in: Bump version to 11.0.50.DATE-git.
4176
8087c3fa
JB
41772020-09-12 Joel Brobecker <brobecker@adacore.com>
4178
4179 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
4180
2a67f09d
FW
41812020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
4182 Felix Willgerodt <Felix.Willgerodt@intel.com>
4183
4184 * gdbarch.sh: Added bfloat16 type.
4185 * gdbarch.c: Regenerated.
4186 * gdbarch.h: Regenerated.
4187 * gdbtypes.c (floatformats_bfloat16): New struct.
4188 (gdbtypes_post_init): Add builtin_bfloat16.
4189 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
4190 (floatformats_bfloat16): New struct.
4191 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
4192 (i386_ymm_type): Add field "v16_bfloat16"
4193 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
4194 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
4195 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
4196 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
4197 * features/i386/64bit-avx512.xml: Add bfloat16 type.
4198 * features/i386/64bit-avx512.c: Regenerated.
4199 * features/i386/64bit-sse.xml: Add bfloat16 type.
4200 * features/i386/64bit-sse.c: Regenerated.
4201
1347d111
FW
42022020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
4203
4204 * i386-tdep.c (i386_zmm_type): Fix field names.
4205 (i386_ymm_type): Fix field names.
4206
7a4e8e7d
TBA
42072020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4208
4209 * breakpoint.c: Fix typo in the help message of the
4210 "set breakpoint condition-evaluation" command.
4211
cf4ac4be
KR
42122020-09-10 Kamil Rytarowski <n54@gmx.com>
4213
4214 * nbsd-nat.c: Include "nat/netbsd-nat.h".
4215 * (nbsd_nat_target::pid_to_exec_file)
4216 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
4217 (nbsd_nat_target::post_startup_inferior)
4218 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
4219 (nbsd_add_threads): Switch local code to common gdb/nat functions.
4220 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
4221 * (nbsd_thread_lister): Remove.
4222
f404573e
KR
42232020-09-10 Kamil Rytarowski <n54@gmx.com>
4224
4225 * fork-inferior.c (startup_inferior): Avoid double free.
4226
1ccb2c17
KR
42272020-09-10 Kamil Rytarowski <n54@gmx.com>
4228
4229 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
4230 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
4231
feedfcc7
KR
42322020-09-10 Kamil Rytarowski <n54@gmx.com>
4233
4234 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
4235 * netbsd-nat.c: Include <sys/ptrace.h>.
4236 * (netbsd_nat::enable_proc_events): Add.
4237
c489f8c6
KR
42382020-09-10 Kamil Rytarowski <n54@gmx.com>
4239
4240 * netbsd-nat.h: Include "gdbsupport/function-view.h".
4241 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4242 (netbsd_nat::for_each_thread): Add.
4243 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
4244 "gdbsupport/common-debug.h".
4245 * (netbsd_nat::netbsd_thread_lister)
4246 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4247 (netbsd_nat::for_each_thread): Add.
4248
330662f6
KR
42492020-09-10 Kamil Rytarowski <n54@gmx.com>
4250
4251 * netbsd-nat.h: Include <unistd.h>.
4252 * (netbsd_nat::pid_to_exec_file): Add.
4253 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
4254 * (netbsd_nat::pid_to_exec_file) Add.
4255
70b67307
KR
42562020-09-10 Kamil Rytarowski <n54@gmx.com>
4257
4258 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
4259
99cf6da6
KR
42602020-09-10 Kamil Rytarowski <n54@gmx.com>
4261
4262 * netbsd-nat.h: New file.
4263 * netbsd-nat.c: Likewise.
4264
1b788fb6
TT
42652020-09-09 Tom Tromey <tromey@adacore.com>
4266
4267 * ada-lang.c (remove_extra_symbols): Do not increment when
4268 removing an element
4269
03b0a45f
TT
42702020-09-08 Tom Tromey <tromey@adacore.com>
4271
4272 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
4273
3cae4447
TT
42742020-09-08 Tom Tromey <tromey@adacore.com>
4275
4276 PR win32/25302:
4277 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
4278 (gdb_bfd_init_data): New function.
4279 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
4280
7f08fd51
TBA
42812020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4282
4283 * infrun.c (fetch_inferior_event): Use
4284 `switch_to_target_no_thread` to switch the target.
4285
3e6ff933
TT
42862020-09-06 Tom Tromey <tom@tromey.com>
4287
4288 * symfile.h (dwarf2_free_objfile): Don't declare.
4289
e56798df
AKS
42902020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4291
4292 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
4293 to match 16 byte real/complex type generated by Flang compiler.
4294
8f5c6526
TV
42952020-09-03 Tom de Vries <tdevries@suse.de>
4296
4297 PR breakpoint/26546
4298 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
4299 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
4300
c5065df0
SM
43012020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
4302
4303 * maint.c (index_digits): New function.
4304 (struct maint_print_section_data): Remove.
4305 (print_bfd_section_info): Remove print_data parameter, add arg
4306 and index_digits.
4307 (print_objfile_section_info): Likewise.
4308 (print_bfd_section_info_maybe_relocated): Likewise (plus
4309 objfile).
4310 (maintenance_info_sections): Adjust calls.
4311
02c6f3f1
TT
43122020-09-02 Tom Tromey <tromey@adacore.com>
4313
4314 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
4315 for null pointers.
4316 (ada_varobj_adjust_for_child_access): Special-case null pointers.
4317
ef5e5b0b
SM
43182020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
4319
4320 * bcache.h (struct bcache) <insert>: Change type of `added` to
4321 pointer to bool.
4322 * bcache.c (bcache::insert): Likewise.
4323 * gdbtypes.c (check_types_worklist): Adjust.
4324 * psymtab.c (add_psymbol_to_bcache): Adjust.
4325
973695d6
KB
43262020-08-31 Kevin Buettner <kevinb@redhat.com>
4327
4328 * corelow.c (unordered_set): Include.
4329 (class core_target): Add field 'm_core_unavailable_mappings'.
4330 (core_target::build_file_mappings): Print only one warning
4331 per inaccessible file. Add unavailable/broken mappings
4332 to m_core_unavailable_mappings.
4333 (core_target::xfer_partial): Call...
4334 (core_target::xfer_memory_via_mappings): New method.
4335
264fc0e2
SM
43362020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4337
4338 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
4339 type to bool.
4340
2de01bdb
SM
43412020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4342
4343 * dwarf2/read.c (struct field_info): Fix indentation.
4344
f3bd50f1
SM
43452020-08-31 Simon Marchi <simon.marchi@efficios.com>
4346
4347 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
4348 ordering in comment.
4349 * frame.c (frame_id_eq): Fix indentation.
4350
22b9b4b0
SL
43512020-08-31 Scott Linder <scott@scottlinder.com>
4352 Simon Marchi <simon.marchi@efficios.com>
4353
4354 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
4355 inline frame ids in outer frame.
4356
84154d16
SM
43572020-08-31 Simon Marchi <simon.marchi@efficios.com>
4358
4359 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
4360 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
4361 (outer_frame_id): Use FID_STACK_OUTER instead of
4362 FID_STACK_INVALID.
4363 (frame_id_p): Don't check for outer_frame_id.
4364
8efaf6b3
SM
43652020-08-31 Simon Marchi <simon.marchi@efficios.com>
4366
4367 * frame-unwind.c (frame_unwind_got_optimized): Don't set
4368 regnum/frame in value. Call allocate_value_lazy.
4369 * frame.c (frame_unwind_register_value): Use
4370 val_print_not_saved.
4371
fe1fe7ea
SM
43722020-08-31 Simon Marchi <simon.marchi@efficios.com>
4373
4374 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
4375
f7c7700d
PA
43762020-08-29 Pedro Alves <pedro@palves.net>
4377
4378 * progspace.c (print_program_space): Use all_inferiors. Switch to
4379 the inferior before calling target_pid_to_str.
4380
e0814aae
TT
43812020-08-28 Tom Tromey <tom@tromey.com>
4382
4383 * xcoffread.c (xcoff_end_psymtab): Update comment.
4384 * dbxread.c (dbx_end_psymtab): Update comment.
4385
626d2320
TV
43862020-08-28 Tom de Vries <tdevries@suse.de>
4387
4388 PR breakpoint/26544
4389 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
4390 event_location.
4391 (create_breakpoint): Same.
4392 (base_breakpoint_decode_location): Same.
4393 (bkpt_create_sals_from_location): Same.
4394 (bkpt_decode_location): Same.
4395 (bkpt_probe_create_sals_from_location): Same.
4396 (bkpt_probe_decode_location): Same.
4397 (tracepoint_create_sals_from_location): Same.
4398 (tracepoint_decode_location): Same.
4399 (tracepoint_probe_decode_location): Same.
4400 (strace_marker_create_sals_from_location): Same.
4401 (strace_marker_decode_location): Same.
4402 (create_sals_from_location_default): Same.
4403 (decode_location_default): Same.
4404 * breakpoint.h (struct breakpoint_ops): Same.
4405 (create_breakpoint): Same.
4406 * linespec.h (decode_line_full): Same.
4407 * linespec.c (decode_line_full): Same. Throw error if
4408 result.size () == 0.
4409
df631783
PA
44102020-08-27 Pedro Alves <pedro@palves.net>
4411
4412 PR gdb/26524
4413 * breakpoint.c (until_break_fsm) <location_breakpoint,
4414 caller_breakpoint>: Delete fields.
4415 <breakpoints>: New field.
4416 <until_break_fsm>: Adjust to save a breakpoint vector instead of
4417 two individual breakpoints.
4418 (until_break_fsm::should_stop): Loop over breakpoints in the
4419 breakpoint vector.
4420 (until_break_fsm::clean_up): Adjust to clear the breakpoints
4421 vector.
4422 (until_break_command): Handle location expanding into multiple
4423 sals.
4424
b2b38aa4
PA
44252020-08-27 Pedro Alves <pedro@palves.net>
4426
4427 PR gdb/26523
4428 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
4429 bp_until breakpoints user-specified locations. Update intro
4430 comment.
4431
b886559f
SM
44322020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
4433
4434 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
4435 gdb_bfd_sections): New.
4436 * maint.c (print_bfd_section_info): Change param type to
4437 maint_print_section_data.
4438 (print_objfile_section_info): Likewise.
4439 (print_bfd_section_info_maybe_relocated): Likewise.
4440 (maintenance_info_sections): Use gdb_bfd_sections.
4441
4c6e63bf
SV
44422020-08-25 Shahab Vahedi <shahab@synopsys.com>
4443
4444 * MAINTAINERS: Add ARC target and maintainer.
4445
8d7f0635
AK
44462020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
4447
4448 * configure.tgt: ARC support for GNU/Linux.
4449 * Makefile.in (ALL_TARGET_OBJS): Likewise.
4450 * arc-linux-tdep.c: New file.
4451 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
4452 * arc-tdep.c (arc_write_pc): Use it.
4453
fdd8731b
SV
44542020-08-25 Shahab Vahedi <shahab@synopsys.com>
4455
4456 * arc-tdep.c (arc_check_for_hardware_loop): New.
4457 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
4458
22459524
SV
44592020-08-25 Shahab Vahedi <shahab@synopsys.com>
4460
4461 * arc-tdep.h: Include "gdbarch.h".
4462
995d3a19
SV
44632020-08-25 Shahab Vahedi <shahab@synopsys.com>
4464
4465 * arch/arc.h
4466 (arc_gdbarch_features): New class to stir the selection of target XML.
4467 (arc_create_target_description): Use FEATURES to choose XML target.
4468 (arc_lookup_target_description): Use arc_create_target_description
4469 to create _new_ target descriptions or return the already created
4470 ones if the FEATURES is the same.
4471 * arch/arc.c: Implementation of prototypes described above.
4472 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
4473 (arc_gdbarch_features_init): Initialize the FEATURES struct.
4474 * arc-tdep.c (*_feature_name): Make feature names consistent.
4475 (arc_register_feature): A new struct to hold information about
4476 registers of a particular target/feature.
4477 (arc_check_tdesc_feature): Check if XML provides registers in
4478 compliance with ARC_REGISTER_FEATURE structs.
4479 (arc_update_acc_reg_names): Add aliases for r58 and r59.
4480 (determine_*_reg_feature_set): Which feature name to look for.
4481 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
4482 (mach_type_to_arc_isa): Convert from a set of binutils machine types
4483 to expected ISA enums to be used in arc_gdbarch_features structs.
4484 * features/Makefile (FEATURE_XMLFILES): Add new files.
4485 * gdb/features/arc/v1-aux.c: New file.
4486 * gdb/features/arc/v1-aux.xml: Likewise.
4487 * gdb/features/arc/v1-core.c: Likewise.
4488 * gdb/features/arc/v1-core.xml: Likewise.
4489 * gdb/features/arc/v2-aux.c: Likewise.
4490 * gdb/features/arc/v2-aux.xml: Likewise.
4491 * gdb/features/arc/v2-core.c: Likewise.
4492 * gdb/features/arc/v2-core.xml: Likewise.
4493 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
4494
3945d2d7
GM
44952020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
4496 Andrew Burgess <andrew.burgess@embecosm.com>
4497
4498 PR m2/26372
fc5d6901 4499 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
4500 an assert. Remove single element array indexing pattern as the
4501 MULTI_SUBSCRIPT support will handle this case too.
4502
2677f2d3
SM
45032020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
4504
4505 * value.h (valprint_check_validity): Move declaration from
4506 here...
4507 * valprint.h (valprint_check_validity): ... to here.
4508
c426fddb
SM
45092020-08-24 Simon Marchi <simon.marchi@efficios.com>
4510
4511 * debug.h: New file.
4512 * debug.c (debug_prefixed_vprintf): New function.
4513 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
4514 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
4515
1eb8556f
SM
45162020-08-24 Simon Marchi <simon.marchi@efficios.com>
4517
4518 * infrun.h (infrun_debug_printf_1): New function declaration.
4519 (infrun_debug_printf): New macro.
4520 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
4521 throughout.
4522 (infrun_debug_printf): New function.
4523 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
4524 (handle_jit_event): Likewise.
4525
b8fff44e
MW
45262020-08-21 Mark Wielaard <mark@klomp.org>
4527
4528 * ada-lex.l: Extend register warnings diagnostics comment for g++.
4529
d19c3068
SM
45302020-08-22 Simon Marchi <simon.marchi@efficios.com>
4531
4532 * frame.c (enum class frame_id_status): New.
4533 (struct frame_info) <this_id::p>: Change type to frame_id_status.
4534 (fprintf_frame): Update.
4535 (compute_frame_id): Set frame id status to "computing" on entry.
4536 Set it back to "not_computed" on failure and to "computed" on
4537 success.
4538 (get_frame_id): Assert the frame id is not being computed.
4539 (create_sentinel_frame): Use frame_id_status::COMPUTED.
4540 (create_new_frame): Likewise.
4541 (frame_cleanup_after_sniffer): Update assert.
4542
b70e516e
SM
45432020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4544
4545 * regcache.c (pid_ptid_regcache_map): New type.
4546 (target_ptid_regcache_map): Remove.
4547 (target_pid_ptid_regcache_map): New type.
4548 (regcaches): Change type to target_pid_ptid_regcache_map.
4549 (get_thread_arch_aspace_regcache): Update.
4550 (regcache_thread_ptid_changed): Update, handle pid-like ptid
4551 case.
4552 (regcaches_size): Update.
4553 (regcache_count): Update.
4554 (registers_changed_ptid_target_pid_test): New.
4555 (_initialize_regcache): Register new test.
4556
cdd9148a
SM
45572020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4558
4559 * regcache.c (regcache_count): New.
4560 (struct regcache_test_data): New.
4561 (regcache_test_data_up): New.
4562 (populate_regcaches_for_test): New.
4563 (regcaches_test): Remove.
4564 (get_thread_arch_aspace_regcache_test): New.
4565 (registers_changed_ptid_all_test): New.
4566 (registers_changed_ptid_target_test): New.
4567 (registers_changed_ptid_target_ptid_test): New.
4568 (regcache_thread_ptid_changed): Remove regcache_count lambda.
4569 (_initialize_regcache): Register new tests.
4570
dd125343
SM
45712020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4572
4573 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
4574 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
4575 gdbarch and aspace parameter. Use current inferior's aspace.
4576 Validate regcache's arch value.
4577 (regcaches_test): Update.
4578
3ee93972
SM
45792020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4580
4581 * regcache.c (regcaches_test): Call registers_changed.
4582
33bf4c5c
TBA
45832020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4584
4585 * infrun.c (process_event_stop_test): Fix typo "breapoint".
4586
c2fd7fae
AKS
45872020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4588
4589 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
4590 to find the end of prologue for flang compiled binaries.
4591 * arm-tdep.c (arm_skip_prologue): Likewise.
4592 * i386-tdep.c (i386_skip_prologue): Likewise.
4593 * producer.c (producer_is_llvm): New function.
4594 (producer_parsing_tests): Added new tests for clang/flang.
4595 * producer.h (producer_is_llvm): New declaration.
4596
9327494e
SM
45972020-08-18 Simon Marchi <simon.marchi@efficios.com>
4598
4599 * linux-nat.c (linux_nat_debug_printf): New function.
4600 (linux_nat_debug_printf_1): New macro. Use throughout the file.
4601
d138725a
AM
46022020-08-18 Aaron Merey <amerey@redhat.com>
4603
4604 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
4605 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
4606 (CLIBS): Add DEBUGINFOD_LIBS.
4607
f9b11e6b
ST
46082020-08-17 Sergei Trofimovich <siarheit@google.com>
4609
4610 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
4611 'gdbarch_num_regs'.
4612
3ae7ab99
TT
46132020-08-17 Tom Tromey <tromey@adacore.com>
4614
4615 * ada-varobj.c (ada_varobj_decode_var): Handle case where
4616 ada_get_decoded_value returns NULL.
4617
b017825f
TT
46182020-08-17 Tom Tromey <tromey@adacore.com>
4619
4620 * python/py-inferior.c (infpy_search_memory): Use
4621 gdb_py_object_from_ulongest.
4622 * python/py-infevents.c (create_inferior_call_event_object)
4623 (create_memory_changed_event_object): Use
4624 gdb_py_object_from_ulongest.
4625 * python/py-linetable.c (ltpy_entry_get_pc): Use
4626 gdb_py_object_from_ulongest.
4627
7635cf79
SM
46282020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
4629
4630 * loc.c (class symbol_needs_eval_context): Fix indentation.
4631
f54be24b
SM
46322020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
4633
4634 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
4635 bool.
4636
53d5a2a5
TV
46372020-08-17 Tom de Vries <tdevries@suse.de>
4638
4639 PR gdb/26393
4640 * gdbtypes.c (dump_dynamic_prop): New function.
4641 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
4642
547ce8f0
TV
46432020-08-15 Tom de Vries <tdevries@suse.de>
4644
4645 PR backtrace/26390
4646 * stack.c (print_frame_args): Temporarily set the selected
4647 frame to FRAME while printing the frame's arguments.
4648
6ea815e7
PFC
46492020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4650
4651 PR breakpoints/26385
4652 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
4653 Always clear watchpoint with PTRACE_SET_DEBUGREG.
4654
6e562fa3
PFC
46552020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4656
4657 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
4658 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
4659 and >= to check return value instead of == -1 and != -1.
4660
d369b608
SM
46612020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
4662
4663 * utils.h (class gdb_argv) <as_array_view>: New method.
4664 * utils.c (gdb_argv_as_array_view_test): New.
4665 (_initialize_utils): Register selftest.
4666 * maint.c (maintenance_selftest): Use the new method.
4667
b31488a3
KR
46682020-08-13 Kamil Rytarowski <n54@gmx.com>
4669
4670 * target.h (supports_dumpcore, dumpcore): New
4671 function declarations.
4672 * target.c (supports_dumpcore, dumpcore): New
4673 functions.
4674 * target-delegates.c: Rebuild.
4675 * gcore.c (gcore_command): Use target_supports_dumpcore ()
4676 and target_dumpcore ().
4677
002a3166
AM
46782020-08-13 Aaron Merey <amerey@redhat.com>
4679
4680 * debuginfod-support.c: Replace global variables with user_data.
4681
ece5bc8a
SM
46822020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
4683
4684 * maint.c (maintenance_selftest): Split args and pass array_view
4685 to run_tests.
4686
6d8a0a5e
LM
46872020-08-12 Luis Machado <luis.machado@linaro.org>
4688
4689 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
4690 type's length.
4691 Use %s and pulongest to print the length.
4692
7cf663a9
PA
46932020-08-12 Pedro Alves <palves@redhat.com>
4694
4695 * NEWS: Move "Multi-target debugging support" item to the
4696 "Changes since GDB 9" section.
4697
27c7b875
PA
46982020-08-12 Pedro Alves <palves@redhat.com>
4699
4700 PR gdb/26336
4701 * progspace.c (program_space::remove_objfile): Invalidate the
4702 frame cache.
4703
1796a2a1
TV
47042020-08-11 Tom de Vries <tdevries@suse.de>
4705
4706 * MAINTAINERS: Mark ms1 as deleted.
4707
f8e3fe0d
LM
47082020-08-10 Luis Machado <luis.machado@linaro.org>
4709
4710 PR gdb/26310
4711
4712 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
4713 act accordingly.
4714 (aarch64_analyze_prologue_test): Add more unit tests to exercise
4715 movz/str/stur/stp skipping behavior.
4716
cc308722
LM
47172020-08-10 Luis Machado <luis.machado@linaro.org>
4718
4719 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
4720 struct user_sve_header instead of struct sve_context.
4721
041d9819
SM
47222020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
4723
4724 * read.h (dwarf2_fetch_die_loc_sect_off,
4725 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
4726 `void *` parameter with function_view.
4727 * read.c (dwarf2_fetch_die_loc_sect_off,
4728 dwarf2_fetch_die_loc_cu_off): Likewise.
4729 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
4730 (per_cu_dwarf_call): Adjust.
4731 (get_frame_address_in_block_wrapper): Remove.
4732 (indirect_synthetic_pointer): Adjust.
4733 (get_ax_pc): Remove.
4734 (dwarf2_compile_expr_to_ax): Adjust.
4735
38f8aa06
TV
47362020-08-08 Tom de Vries <tdevries@suse.de>
4737
4738 PR build/26344
4739 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
4740 constructor.
4741 * regcache.c (get_thread_arch_aspace_regcache): Same.
4742
a52b3ae2
TT
47432020-08-07 Tom Tromey <tromey@adacore.com>
4744
4745 * ravenscar-thread.c
4746 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
4747 New method.
4748 (ravenscar_thread_target::wait): Check
4749 runtime_initialized.
4750 (ravenscar_thread_target::prepare_to_store)
4751 (ravenscar_thread_target::stopped_by_sw_breakpoint)
4752 (ravenscar_thread_target::stopped_by_hw_breakpoint)
4753 (ravenscar_thread_target::stopped_by_watchpoint)
4754 (ravenscar_thread_target::stopped_data_address)
4755 (ravenscar_thread_target::core_of_thread): Use
4756 scoped_restore_current_thread and
4757 set_base_thread_from_ravenscar_task.
4758
0e29517d
TT
47592020-08-07 Tom Tromey <tromey@adacore.com>
4760
4761 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
4762
592f9bd7
TT
47632020-08-07 Tom Tromey <tromey@adacore.com>
4764
4765 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
4766 update_inferior_ptid before update_thread_list.
4767 (temporarily_change_regcache_ptid): New class.
4768 (ravenscar_thread_target::fetch_registers)
4769 (ravenscar_thread_target::store_registers)
4770 (ravenscar_thread_target::prepare_to_store): Use base thread when
4771 forwarding operation.
4772
39e2018a
TT
47732020-08-07 Tom Tromey <tromey@adacore.com>
4774
4775 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
4776 "is_pid" case.
4777
2080266b
TT
47782020-08-07 Tom Tromey <tromey@adacore.com>
4779
4780 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
4781 New methods.
4782 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
4783 first.
4784 (ravenscar_thread_target::add_thread): Rename from
4785 ravenscar_add_thread.
4786 (ravenscar_thread_target::update_thread_list): Use a lambda.
4787 (ravenscar_thread_target::xfer_partial): New method.
4788
78c02f21
TT
47892020-08-07 Tom Tromey <tromey@adacore.com>
4790
4791 * ada-lang.h (ada_task_list_iterator_ftype): Now a
4792 gdb::function_view.
4793 (iterate_over_live_ada_tasks): Change type of argument.
4794 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
4795 of argument.
4796
d5d833af
TT
47972020-08-07 Tom Tromey <tromey@adacore.com>
4798
4799 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
4800 Remove.
4801 (ravenscar_thread_target::extra_thread_info): Remove.
4802 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
4803 defer to target beneath for non-Ravenscar threads.
4804
a8ac85bb
TT
48052020-08-07 Tom Tromey <tromey@adacore.com>
4806
4807 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
4808 get_base_thread_from_ravenscar_task>: Now methods.
4809 <m_cpu_map>: New member.
4810 (ravenscar_thread_target::get_thread_base_cpu): Rename from
4811 ravenscar_get_thread_base_cpu. Check m_cpu_map.
4812 (ravenscar_thread_target::task_is_currently_active): Update.
4813 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
4814 Now a method.
4815 (ravenscar_thread_target::add_active_thread): Put initial thread
4816 into the m_cpu_map.
4817
550ab58d
TT
48182020-08-07 Tom Tromey <tromey@adacore.com>
4819
4820 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
4821 event_ptid.
4822
e9546579
TT
48232020-08-07 Tom Tromey <tromey@adacore.com>
4824
4825 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
4826 runtime_initialized.
4827
3d4470e5
TT
48282020-08-07 Tom Tromey <tromey@adacore.com>
4829
4830 * ravenscar-thread.c (ravenscar_thread_target): Don't call
4831 add_active_thread.
4832 (ravenscar_thread_target::add_active_thread): Now public.
4833 (ravenscar_inferior_created): Call add_active_thread after pushing
4834 the target.
4835
888bdb2b
SM
48362020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
4837
4838 * regcache.c (ptid_regcache_map): New type.
4839 (target_ptid_regcache_map): New type.
4840 (regcaches): Change type to target_ptid_regcache_map.
4841 (get_thread_arch_aspace_regcache): Update to regcaches' new
4842 type.
4843 (regcache_thread_ptid_changed): Likewise.
4844 (registers_changed_ptid): Likewise.
4845 (regcaches_size): Likewise.
4846 (regcaches_test): Update.
4847 (regcache_thread_ptid_changed): Update.
4848 * regcache.h (regcache_up): New type.
4849 * gdbsupport/ptid.h (hash_ptid): New struct.
4850
b161a60d
SM
48512020-08-07 Simon Marchi <simon.marchi@efficios.com>
4852
4853 * observable.h (thread_ptid_changed): Add parameter
4854 `process_stratum_target *`.
4855 * infrun.c (infrun_thread_ptid_changed): Add parameter
4856 `process_stratum_target *` and use it.
4857 (selftests): New namespace.
4858 (infrun_thread_ptid_changed): New function.
4859 (_initialize_infrun): Register selftest.
4860 * regcache.c (regcache_thread_ptid_changed): Add parameter
4861 `process_stratum_target *` and use it.
4862 (regcache_thread_ptid_changed): New function.
4863 (_initialize_regcache): Register selftest.
4864 * thread.c (thread_change_ptid): Pass target to
4865 thread_ptid_changed observable.
4866
d2854d8d
CT
48672020-08-06 Caroline Tice <cmtice@google.com>
4868
fe4c3d43
SM
4869 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
4870 (struct dwp_sections): Update field comments. Add loclists and
4871 rnglists fields.
4872 (struct virtual_v2_dwo_sections): Rename struct to
4873 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
4874 size & offset fields for loclists and rnglists.
4875 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
4876 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
4877 skipping dummy type units.
4878 (create_dwp_hash_table): Update the large comment above the function to
4879 discuss Version 5 DWP files as well, with references. Update all the
4880 version checks in the function to check for version 5 as well. Add new
4881 section at the end to create dwp hash table for version 5.
4882 (create_dwp_v2_section): Rename function to
4883 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
4884 Add V5 to error message text.
4885 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
4886 into calls to create_dwp_v2_or_v5_section.
4887 (create_dwo_unit_in_dwp_v5): New function.
4888 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
4889 check for version2; add else clause to handle version 5.
4890 (open_and_init_dwo_file): Add code to check dwarf version & only call
4891 create_debug_types_hash_table (with sections.types) if version is not 5;
4892 else call create_debug_type_hash_table, with sections.info.
4893 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
4894 version 5.
4895 (dwarf2_locate_v5_dwp_sections): New function.
4896 (open_and_init_dwp_file): Add else-if clause for version 5 to call
4897 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 4898
159ed7d9
SM
48992020-08-06 Simon Marchi <simon.marchi@efficios.com>
4900
4901 * regcache.h (class regcache): Remove friend
4902 registers_changed_ptid.
4903 <regcache_thread_ptid_changed>: Remove.
4904 <regcaches>: Remove.
4905 * regcache.c (regcache::regcaches): Rename to...
4906 (regcaches): ... this. Make static.
4907 (get_thread_arch_aspace_regcache): Update.
4908 (regcache::regcache_thread_ptid_changed): Rename to...
4909 (regcache_thread_ptid_changed): ... this. Update.
4910 (class regcache_access): Remove.
4911 (regcaches_test): Update.
4912 (_initialize_regcache): Update.
4913 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
4914 <forward_list>.
4915
174981ae
SM
49162020-08-06 Simon Marchi <simon.marchi@efficios.com>
4917
4918 * regcache.h (class regcache) <current_regcache>: Rename to...
4919 <regcaches>: ... this. Move doc here.
4920 * regcache.c (regcache::current_regcache) Rename to...
4921 (regcache::regcaches): ... this. Move doc to header.
4922 (get_thread_arch_aspace_regcache): Update.
4923 (regcache::regcache_thread_ptid_changed): Update.
4924 (registers_changed_ptid): Update.
4925 (class regcache_access) <current_regcache_size>: Rename to...
4926 <regcaches_size>: ... this.
4927 (current_regcache_test): Rename to...
4928 (regcaches_test): ... this.
4929 (_initialize_regcache): Update.
4930
ed908db6
VC
49312020-08-06 Victor Collod <vcollod@nvidia.com>
4932
4933 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
4934
b5582ab7
KB
49352020-08-05 Kevin Buettner <kevinb@redhat.com>
4936
4937 * corelow.c (core_target::build_file_mappings): Don't output
4938 null pathname in warning.
4939
ea946b86
SM
49402020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
4941
4942 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
4943 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
4944 gdb.dwarf2/dw2-single-line-discriminators.exp,
4945 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
4946
57d02173
TT
49472020-08-05 Tom Tromey <tromey@adacore.com>
4948
4949 PR rust/26197:
4950 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
4951 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
4952 Fix off-by-one and type size errors in ordinary case.
4953
5555c86d
TV
49542020-08-05 Tom de Vries <tdevries@suse.de>
4955
4956 * gdbtypes.c (type_not_allocated, type_not_associated): Use
4957 "prop->const_val () == 0" instead of "prop->const_val () != 0".
4958
97916bfe
SM
49592020-08-04 Simon Marchi <simon.marchi@efficios.com>
4960
4961 * frame.h (frame_id_p): Return bool.
4962 (frame_id_artificial_p): Return bool.
4963 (frame_id_eq): Return bool.
4964 (has_stack_frames): Return bool.
4965 (get_selected_frame): Fix typo in comment.
4966 (get_frame_pc_if_available): Return bool.
4967 (get_frame_address_in_block_if_available): Return bool.
4968 (get_frame_func_if_available): Return bool.
4969 (read_frame_register_unsigned): Return bool.
4970 (get_frame_register_bytes): Return bool.
4971 (safe_frame_unwind_memory): Return bool.
4972 (deprecated_frame_register_read): Return bool.
4973 (frame_unwinder_is): Return bool.
4974 * frame.c (struct frame_info) <prev_arch::p>: Change type to
4975 bool.
4976 <this_id::p>: Likewise.
4977 <prev_p>: Likewise.
4978 (frame_stash_add): Return bool.
4979 (get_frame_id): Use bool.
4980 (frame_id_build_special) Use bool.
4981 (frame_id_build_unavailable_stack): Use bool.
4982 (frame_id_build): Use bool.
4983 (frame_id_p): Return bool, use true/false instead of 1/0.
4984 (frame_id_artificial_p): Likewise.
4985 (frame_id_eq): Likewise.
4986 (frame_id_inner): Likewise.
4987 (get_frame_func_if_available): Likewise.
4988 (read_frame_register_unsigned): Likewise.
4989 (deprecated_frame_register_read): Likewise.
4990 (get_frame_register_bytes): Likewise.
4991 (has_stack_frames): Likewise.
4992 (inside_main_func): Likewise.
4993 (inside_entry_func): Likewise.
4994 (get_frame_pc_if_available): Likewise.
4995 (get_frame_address_in_block_if_available): Likewise.
4996 (frame_unwinder_is): Likewise.
4997 (safe_frame_unwind_memory): Likewise.
4998 (frame_unwind_arch): Likewise.
4999
fedfee88
SM
50002020-08-04 Simon Marchi <simon.marchi@efficios.com>
5001
5002 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
5003 type to cached_copy_status.
5004 (fprintf_frame): Adjust.
5005 (get_frame_func_if_available): Adjust.
5006 (frame_cleanup_after_sniffer): Adjust.
5007
6cfa9b59
MW
50082020-08-04 Mark Wielaard <mark@klomp.org>
5009
5010 * MAINTAINERS (Write After Approval): Update email address.
5011
66d6346b
SM
50122020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5013
5014 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
5015 dynamic_prop::const_val.
5016
8a6d5e35
SM
50172020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5018
5019 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
5020 dynamic_prop::kind.
5021
51d6067d
SM
50222020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5023
5024 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
5025
b26e2ae7
JM
50262020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
5027
5028 * configure.tgt: Set gdb_sim for bpf-*-* targets.
5029
39791af2
JM
50302020-08-04 Weimin Pan <weimin.pan@oracle.com>
5031 Jose E. Marchesi <jose.marchesi@oracle.com>
5032
5033 * configure.tgt: Add entry for bpf-*-*.
5034 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
5035 (ALLDEPFILES): Add bpf-tdep.c.
5036 * bpf-tdep.c: New file.
5037 * MAINTAINERS: Add bpf target and maintainer.
5038 * NEWS: Mention the support for the new target.
5039
521894aa
TV
50402020-08-04 Tom de Vries <tdevries@suse.de>
5041
5042 PR symtab/23270
5043 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
5044 Error.
5045
5d6356e9
JB
50462020-08-03 John Baldwin <jhb@FreeBSD.org>
5047
5048 * syscalls/freebsd.xml: Regenerate.
5049
0cf82b81
JB
50502020-08-03 John Baldwin <jhb@FreeBSD.org>
5051
5052 * syscalls/update-freebsd.sh: Fix usage and year range.
5053
8f34b746
TV
50542020-08-03 Tom de Vries <tdevries@suse.de>
5055
5056 PR symtab/26333
5057 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
5058 DW_LNE_lo_user/DW_LNE_hi_user range.
5059
5e500d33
SM
50602020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
5061
5062 PR ada/26318
5063 * ada-lang.c (ada_modulus): Return 0 if property is not of const
5064 kind.
5065
78319c15
TBA
50662020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5067
5068 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
5069
4c55e970
TBA
50702020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5071
5072 * breakpoint.c (set_breakpoint_condition): Update the condition
5073 expressions after checking that the input condition string parses
5074 successfully and does not contain junk at the end.
5075
1e620590
TBA
50762020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5077
5078 * breakpoint.c (set_breakpoint_condition): Update the
5079 condition string after parsing the new condition successfully.
5080
c8693053
RO
50812020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5082
5083 * proc-api.c (_STRUCTURED_PROC): Don't define.
5084 * proc-events.c: Likewise.
5085 * proc-flags.c: Likewise.
5086 * proc-why.c: Likewise.
5087 * procfs.c: Likewise.
5088
5089 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
5090 * configure, config.in: Regenerate.
5091
5a99adb8
TV
50922020-07-30 Tom de Vries <tdevries@suse.de>
5093
5094 PR build/26320
5095 * ui-style.h (struct ui_file_style::color): Wrap m_value and
5096 m_red/m_green/m_blue in a union.
5097
8ba83e91
TV
50982020-07-29 Tom de Vries <tdevries@suse.de>
5099
5100 PR tdep/26280
5101 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
5102
f75a0693
AB
51032020-07-28 Tom Tromey <tromey@adacore.com>
5104
5105 PR symtab/26270:
5106 * symtab.h (find_pc_partial_function_sym): Declare.
5107 * cli/cli-cmds.c (disassemble_command): Use
5108 find_pc_partial_function_sym. Check asm_demangle.
5109 * blockframe.c (cache_pc_function_sym): New global.
5110 (cache_pc_function_name): Remove.
5111 (clear_pc_function_cache): Update.
5112 (find_pc_partial_function_sym): New function, from
5113 find_pc_partial_function.
5114 (find_pc_partial_function): Rewrite using
5115 find_pc_partial_function_sym.
5116
16f3242c
TT
51172020-07-28 Tom Tromey <tromey@adacore.com>
5118
5119 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
5120 help. Add usage.
5121
4888741a
TT
51222020-07-28 Tom Tromey <tromey@adacore.com>
5123
5124 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
5125 <DW_OP_GNU_variable_value>: Cast to address type.
5126
4d46f402
KR
51272020-07-28 Kamil Rytarowski <n54@gmx.com>
5128
5129 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
5130 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
5131 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
5132 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
5133 (nbsd_get_siginfo_type): New.
5134 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
5135 (_initialize_nbsd_tdep): New.
5136
d70f978b
L
51372020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5138
5139 PR binutils/26301
5140 * configure: Regenerated.
5141
377170fa
L
51422020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5143
5144 PR binutils/26301
5145 * configure: Regenerated.
5146
43d5901d
AB
51472020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5148
5149 * python/py-frame.c: Remove 'user-regs.h' include.
5150 (frapy_read_register): Rewrite to make use of
5151 gdbpy_parse_register_id.
5152 * python/py-registers.c (gdbpy_parse_register_id): New function,
5153 moved here from python/py-unwind.c. Updated the return type, and
5154 also accepts register descriptor objects.
5155 * python/py-unwind.c: Remove 'user-regs.h' include.
5156 (pyuw_parse_register_id): Moved to python/py-registers.c.
5157 (unwind_infopy_add_saved_register): Update to use
5158 gdbpy_parse_register_id.
5159 (pending_framepy_read_register): Likewise.
5160 * python/python-internal.h (gdbpy_parse_register_id): Declare.
5161
14fa8fb3
AB
51622020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5163
5164 * python/py-registers.c: Add 'user-regs.h' include.
5165 (register_descriptor_iter_find): New function.
5166 (register_descriptor_iterator_object_methods): New static global
5167 methods array.
5168 (register_descriptor_iterator_object_type): Add pointer to methods
5169 array.
5170
ddce1758
JB
51712020-07-27 John Baldwin <jhb@FreeBSD.org>
5172
5173 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
5174 for all architectures on FreeBSD 11.3 and later.
5175
a4089f52
TT
51762020-07-27 Tom Tromey <tromey@adacore.com>
5177
5178 * gcore.h (load_corefile): Don't declare.
5179
95420d30
TV
51802020-07-27 Tom de Vries <tdevries@suse.de>
5181
5182 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
5183 * config.in: Regenerate.
5184 * configure: Regenerate.
5185
05a6b8c2
EZ
51862020-07-26 Eli Zaretskii <eliz@gnu.org>
5187
5188 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
5189 ws2tcpip.h. When checking whether socklen_t type is defined, use
5190 ws2tcpip.h if it is available and sys/socket.h isn't.
5191 * configure: Regenerate.
5192 * config.in: Regenerate.
5193
e79eb02f
AB
51942020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
5195
5196 PR fortran/23051
5197 PR fortran/26139
5198 * valops.c (value_ind): Pass address to
5199 readjust_indirect_value_type.
5200 * value.c (readjust_indirect_value_type): Make parameter
5201 non-const, and add extra address parameter. Resolve original type
5202 before using it.
5203 * value.h (readjust_indirect_value_type): Update function
5204 signature and comment.
5205
876518dd
TV
52062020-07-25 Tom de Vries <tdevries@suse.de>
5207
5208 PR symtab/26243
5209 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
5210 entries.
5211
f6720b1c
AM
52122020-07-24 Aaron Merey <amerey@redhat.com>
5213
5214 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
5215 * configure: Rebuild.
5216
513487e1
KB
52172020-07-23 Kevin Buettner <kevinb@redhat.com>
5218
5219 PR corefiles/26294
5220 * corelow.c (_initialize_corelow): Add period to help text
5221 for "maintenance print core-file-backed-mappings".
5222
e7bc9db8
PA
52232020-07-23 Pedro Alves <pedro@palves.net>
5224
5225 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
5226 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
5227 meanwhile.
5228 * frame.c (frame_cache_generation, get_frame_cache_generation):
5229 New.
5230 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
5231 (get_prev_frame_if_no_cycle): On exception, don't touch
5232 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
5233 * frame.h (get_frame_cache_generation): Declare.
5234
90fcc466
TV
52352020-07-23 Tom de Vries <tdevries@suse.de>
5236
5237 PR tui/26282
5238 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
5239 New default constructor.
5240
78344df7
AB
52412020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
5242
5243 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
5244 exclude non-statement entries.
5245
b089853a
KB
52462020-07-22 Kevin Buettner <kevinb@redhat.com>
5247
5248 * NEWS (New commands): Mention new command
5249 "maintenance print core-file-backed-mappings".
5250
09c2f5d4
KB
52512020-07-22 Kevin Buettner <kevinb@redhat.com>
5252
5253 * corelow.c (gdbcmd.h): Include.
5254 (core_target::info_proc_mappings): New method.
5255 (get_current_core_target): New function.
5256 (maintenance_print_core_file_backed_mappings): New function.
5257 (_initialize_corelow): Add core-file-backed-mappings to
5258 "maint print" commands.
5259
9c5ec5c2 52602020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 5261
9c5ec5c2
KB
5262 * linux-tdep.c (dump_note_entry_p): New function.
5263 (linux_dump_mapping_p_ftype): New typedef.
5264 (linux_find_memory_regions_full): Add new parameter,
5265 should_dump_mapping_p.
5266 (linux_find_memory_regions): Adjust call to
5267 linux_find_memory_regions_full.
5268 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
5269 call to linux_find_memory_regions_full.
5270
db082f59
KB
52712020-07-22 Kevin Buettner <kevinb@redhat.com>
5272
5273 * corelow.c (solist.h, unordered_map): Include.
5274 (class core_target): Add field m_core_file_mappings and
5275 method build_file_mappings.
5276 (core_target::core_target): Call build_file_mappings.
5277 (core_target::~core_target): Free memory associated with
5278 m_core_file_mappings.
5279 (core_target::build_file_mappings): New method.
5280 (core_target::xfer_partial): Use m_core_file_mappings
5281 for memory transfers.
5282 * linux-tdep.c (linux_read_core_file_mappings): New
5283 function.
5284 (linux_core_info_proc_mappings): Rewrite to use
5285 linux_read_core_file_mappings.
5286 (linux_init_abi): Register linux_read_core_file_mappings.
5287
7e183d27
KB
52882020-07-22 Kevin Buettner <kevinb@redhat.com>
5289
5290 * arch-utils.c (default_read_core_file_mappings): New function.
5291 * arch-utils.c (default_read_core_file_mappings): Declare.
5292 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
5293 * gdbarch.h, gdbarch.c: Regenerate.
5294
2735d421
KB
52952020-07-22 Kevin Buettner <kevinb@redhat.com>
5296
5297 PR corefiles/25631
5298 * corelow.c (core_target:xfer_partial): Revise
5299 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
5300 case after first checking the stratum beneath the core
5301 target.
5302 (has_all_memory): Return true.
5303 * target.c (raw_memory_xfer_partial): Revise comment
5304 regarding use of has_all_memory.
5305
e56cb451
KB
53062020-07-22 Kevin Buettner <kevinb@redhat.com>
5307
5308 * exec.h (section_table_xfer_memory): Revise declaration,
5309 replacing section name parameter with an optional callback
5310 predicate.
5311 * exec.c (section_table_xfer_memory): Likewise.
5312 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
5313 of section_table_xfer_memory.
5314
32fa152e
TT
53152020-07-22 Tom Tromey <tromey@adacore.com>
5316
5317 * mi/mi-cmd-stack.c (list_args_or_locals): Use
5318 lookup_symbol_search_name.
5319
a67a1c41
AB
53202020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5321
5322 * python/py-registers.c (gdbpy_register_object_data_init): Remove
5323 redundant local variable.
5324 (gdbpy_get_register_descriptor): Extract descriptor vector as a
5325 reference, not pointer, update code accordingly.
5326
a7b4ff4f
SM
53272020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5328 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5329
5330 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
5331 * jit.c (jit_breakpoint_re_set_internal): Use the
5332 `skip_jit_symbol_lookup` field.
5333
2340e834
SM
53342020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5335 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5336
5337 * jit.c (jit_read_descriptor): Define the descriptor address once,
5338 use twice.
5339 (jit_breakpoint_deleted): Move the declaration of the loop variable
5340 `iter` into the loop header.
5341 (jit_breakpoint_re_set_internal): Move the declaration of the local
5342 variable `objf_data` to the first point of definition.
5343 (jit_event_handler): Move the declaration of local variables
5344 `code_entry`, `entry_addr`, and `objf` to their first point of use.
5345 Rename `objf` to `jited`.
5346
c1072906
SM
53472020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5348
5349 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
5350 Remove.
5351 * jit.c (get_jiter_objfile_data): Update.
5352
c8474dc3
TBA
53532020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5354 Simon Marchi <simon.marchi@polymtl.ca>
5355
5356 * jit.c (struct jit_program_space_data): Remove.
5357 (jit_program_space_key): Remove.
5358 (jiter_objfile_data::~jiter_objfile_data): Remove program space
5359 stuff.
5360 (get_jit_program_space_data): Remove.
5361 (jit_breakpoint_deleted): Iterate on all of the program space's
5362 objfiles.
5363 (jit_inferior_init): Likewise.
5364 (jit_breakpoint_re_set_internal): Likewise. Also change return
5365 type to void.
5366 (jit_breakpoint_re_set): Pass current_program_space to
5367 jit_breakpoint_re_set_internal.
5368
77208eb7
SM
53692020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5370
5371 * jit.h (struct jiter_objfile_data) <cached_code_address,
5372 jit_breakpoint>: Move to here from ...
5373 * jit.c (jit_program_space_data): ... here.
5374 (jiter_objfile_data::~jiter_objfile_data): Update.
5375 (jit_breakpoint_deleted): Update.
5376 (jit_breakpoint_re_set_internal): Update.
5377
8c1c720f
SM
53782020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5379
5380 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
5381 checks.
5382 (jit_read_descriptor): Remove NULL check.
5383 (jit_event_handler): Add an assertion.
5384
0e74a041
SM
53852020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5386
5387 * jit.h (struct jit_objfile_data): Split into...
5388 (struct jiter_objfile_data): ... this ...
5389 (struct jited_objfile_data): ... and this.
5390 * objfiles.h (struct objfile) <jit_data>: Remove.
5391 <jiter_data, jited_data>: New fields.
5392 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
5393 (jiter_objfile_data::~jiter_objfile_data): ... this.
5394 (get_jit_objfile_data): Rename to ...
5395 (get_jiter_objfile_data): ... this.
5396 (add_objfile_entry): Update.
5397 (jit_read_descriptor): Use get_jiter_objfile_data.
5398 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
5399 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
5400 (jit_inferior_exit_hook): Use objfile's jited_data field.
5401
238b5c9f
SM
54022020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5403
5404 * jit.h: Forward-declare `struct minimal_symbol`.
5405 (struct jit_objfile_data): Migrate to here from jit.c; also add a
5406 constructor, destructor, and an objfile* field.
5407 * jit.c (jit_objfile_data): Remove.
5408 (struct jit_objfile_data): Migrate from here to jit.h.
5409 (jit_objfile_data::~jit_objfile_data): New destructor
5410 implementation with code moved from free_objfile_data.
5411 (free_objfile_data): Delete.
5412 (get_jit_objfile_data): Update to use the jit_data field of objfile.
5413 (jit_find_objf_with_entry_addr): Ditto.
5414 (jit_inferior_exit_hook): Ditto.
5415 (_initialize_jit): Remove the call to
5416 register_objfile_data_with_cleanup.
5417 * objfiles.h (struct objfile) <jit_data>: New field.
5418
fe053b9e
TBA
54192020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5420
5421 * jit.h: Forward-declare `struct objfile`.
5422 (jit_event_handler): Add a second parameter, the JITer objfile.
5423 * jit.c (jit_read_descriptor): Change the signature to take the
5424 JITer objfile as an argument instead of the jit_program_space_data.
5425 (jit_inferior_init): Update the call to jit_read_descriptor.
5426 (jit_event_handler): Use the new JITer objfile argument when calling
5427 jit_read_descriptor.
5428 * breakpoint.c (handle_jit_event): Update the call to
5429 jit_event_handler to pass the JITer objfile.
5430
4cec0c66
JB
54312020-07-21 John Baldwin <jhb@FreeBSD.org>
5432
5433 * gdbarch.c: Regenerate.
5434 * gdbarch.h: Regenerate.
5435 * gdbarch.sh (handle_segmentation_fault): Remove method.
5436 * infrun.c (handle_segmentation_fault): Remove.
5437 (print_signal_received_reason): Remove call to
5438 handle_segmentation_fault.
5439
0e42f66a
JB
54402020-07-21 John Baldwin <jhb@FreeBSD.org>
5441
5442 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
5443 Rename to sparc64_linux_report_signal_info and add siggnal
5444 argument.
5445 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
5446 instead of sparc64_linux_handle_segmentation_fault.
5447
77bdfeb2
JB
54482020-07-21 John Baldwin <jhb@FreeBSD.org>
5449
5450 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
5451 i386_linux_report_signal_info instead of
5452 i386_linux_handle_segmentation_fault.
5453 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
5454 to i386_linux_report_signal_info and add siggnal argument.
5455 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
5456 of i386_linux_handle_segmentation_fault.
5457 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
5458 to i386_linux_report_signal_info and add siggnal argument.
5459
ad97bfc5
JB
54602020-07-21 John Baldwin <jhb@FreeBSD.org>
5461
5462 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
5463 hook if present.
5464
272bb05c
JB
54652020-07-21 John Baldwin <jhb@FreeBSD.org>
5466
5467 * gdbarch.c: Regenerate.
5468 * gdbarch.h: Regenerate.
5469 * gdbarch.sh (report_signal_info): New method.
5470 * infrun.c (print_signal_received_reason): Invoke gdbarch
5471 report_signal_info hook if present.
5472
baf8791e
AB
54732020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
5474
5475 * python/py-registers.c : Add 'unordered_map' include.
5476 (gdbpy_new_reggroup): Renamed to...
5477 (gdbpy_get_reggroup): ...this. Update to only create register
5478 group descriptors when needed.
5479 (gdbpy_reggroup_iter_next): Update.
5480
f7306dac
AB
54812020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
5482
5483 * python/py-registers.c (gdbpy_register_object_data): New static
5484 global.
5485 (gdbpy_register_object_data_init): New function.
5486 (gdbpy_new_register_descriptor): Renamed to...
5487 (gdbpy_get_register_descriptor): ...this, and update to reuse
5488 existing register descriptors where possible.
5489 (gdbpy_register_descriptor_iter_next): Update.
5490 (gdbpy_initialize_registers): Register new gdbarch data.
5491
05c309a8
SM
54922020-07-21 Simon Marchi <simon.marchi@efficios.com>
5493
5494 * linux-nat.c (stopped_pids): Make static.
5495
d1fd641e
SM
54962020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
5497
5498 PR ada/26235
5499 * gdbtypes.c (ada_discrete_type_low_bound,
5500 ada_discrete_type_high_bound): Handle undefined bounds.
5501
1de14d77
KR
55022020-07-21 Kamil Rytarowski <n54@gmx.com>
5503
5504 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
5505 declaration.
5506 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
5507 function.
5508
ed810cc7
JB
55092020-07-20 John Baldwin <jhb@FreeBSD.org>
5510
5511 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
5512 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
5513 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
5514 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
5515 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
5516 method.
5517
ae5369e7
LC
55182020-07-20 Ludovic Courtès <ludo@gnu.org>
5519
5520 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
5521 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
5522 which are deprecated in Guile 3.0.
5523 * configure.ac (try_guile_versions): Add "guile-3.0".
5524 * configure (try_guile_versions): Regenerate.
5525 * NEWS: Update entry.
5526
68cf161c
LC
55272020-07-20 Ludovic Courtès <ludo@gnu.org>
5528 Doug Evans <dje@google.com>
5529
5530 PR gdb/21104
5531 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
5532 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
5533 USING_GUILE_BEFORE_2_2.
5534 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
5535 Change type to 'scm_t_port_type *'.
5536 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
5537 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
5538 parameter and honor it. Update callers.
5539 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
5540 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
5541 functions.
5542 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
5543 USING_GUILE_BEFORE_2_2.
5544 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
5545 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
5546 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
5547 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
5548 and 'SCM_PORT_TYPE'.
5549 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
5550 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
5551 (gdbscm_memory_port_read, gdbscm_memory_port_write)
5552 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
5553 [!USING_GUILE_BEFORE_2_2]: New functions.
5554 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
5555 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
5556 'gdbscm_memory_port_read'.
5557 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
5558 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
5559 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
5560 function.
5561 (ioscm_init_memory_port): Remove.
5562 (ioscm_init_memory_port_stream): New function
5563 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
5564 function.
5565 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
5566 Return scm_from_uint (0).
5567 (gdbscm_set_memory_port_read_buffer_size_x)
5568 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
5569 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
5570 Return scm_from_uint (0).
5571 (gdbscm_set_memory_port_write_buffer_size_x)
5572 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
5573 * configure.ac (try_guile_versions): Add "guile-2.2".
5574 * configure: Regenerate.
5575 * NEWS: Add entry.
5576
aee91db3
TT
55772020-07-18 Tom Tromey <tom@tromey.com>
5578
5579 * linux-nat.c (linux_multi_process): Remove.
5580 (linux_nat_target::supports_multi_process): Return true.
5581
0e267416
AB
55822020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
5583
5584 * arch/riscv.c (riscv_tdesc_cache): Change map type.
5585 (riscv_lookup_target_description): Return pointer out of
5586 unique_ptr.
5587 * target-descriptions.c (allocate_target_description): Add
5588 comment.
5589 (target_desc_deleter::operator()): Likewise.
5590 * target-descriptions.h (struct target_desc_deleter): Moved to
5591 gdbsupport/tdesc.h.
5592 (target_desc_up): Likewise.
5593
f80c8ec4
TT
55942020-07-17 Tom Tromey <tromey@adacore.com>
5595
5596 * linux-nat.c (linux_nat_target::supports_non_stop)
5597 (linux_nat_target::always_non_stop_p): Use "true".
5598 (linux_nat_target::supports_disable_randomization): Use "true" and
5599 "false".
5600
d0ce17d8
CT
56012020-07-16 Caroline Tice <cmtice@google.com>
5602
5603 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
5604 (RNGLIST_HEADER_SIZE64): New constant definition.
5605 (struct dwop_section_names): Add rnglists_dwo.
5606 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
5607 (struct loclist_header): Rename to 'loclists_rnglists_header'.
5608 (struct dwo_sections): Add rnglists field.
5609 (read_attribut_reprocess): Add tag parameter.
5610 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
5611 (cu_debug_rnglists_section): New function (decl & definition).
5612 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
5613 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
5614 die whose range is being checked; get rnglist section from
5615 cu_debug_rnglists_section, to get from either objfile or dwo file as
5616 appropriate. Add cases for DW_RLE_base_addressx,
5617 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
5618 the base address to DW_RLE_offset_pairs (not to all ranges), moving
5619 test inside if-condition and updating complaint message.
5620 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
5621 dwarf2_rnglists_process.
5622 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
5623 dwarf2_ranges_process.
5624 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
5625 need_ranges_base and update comment appropriately. Also pass die tag
5626 to dwarf2_ranges_read.
5627 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
5628 need_ranges_base and update comment appropriately. Also pass die tag
5629 to dwarf2_ranges_process.
5630 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
5631 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
5632 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
5633 need_ranges_base and update comment appropriately. Also pass die tag
5634 to read_attribute_reprocess and dwarf2_ranges_read.
5635 (read_loclist_header): Rename function to read_loclists_rnglists_header,
5636 and update function comment appropriately.
5637 (read_loclist_index): Call read_loclists_rnglists_header instead of
5638 read_loclist_header.
5639 (read_rnglist_index): New function.
5640 (read_attribute_reprocess): Add tag parameter. Add code for
5641 DW_FORM_rnglistx, passing tag to read_rnglist_index.
5642 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
5643
3dcc261c
AB
56442020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
5645
5646 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
5647 being resolved.
5648
ccb9eba6
AB
56492020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
5650
5651 * arch-utils.c (show_architecture): Update formatting of messages.
5652
cf88be68
SM
56532020-07-12 Simon Marchi <simon.marchi@efficios.com>
5654
5655 * gdbtypes.h (struct type) <bounds>: Handle array and string
5656 types.
5657 * ada-lang.c (assign_aggregate): Use type::bounds on
5658 array/string type.
5659 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
5660 * c-varobj.c (c_number_of_children): Likewise.
5661 (c_describe_child): Likewise.
5662 * eval.c (evaluate_subexp_for_sizeof): Likewise.
5663 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
5664 (f_type_print_base): Likewise.
5665 * f-valprint.c (f77_array_offset_tbl): Likewise.
5666 (f77_get_upperbound): Likewise.
5667 (f77_print_array_1): Likewise.
5668 * guile/scm-type.c (gdbscm_type_range): Likewise.
5669 * m2-typeprint.c (m2_array): Likewise.
5670 (m2_is_long_set_of_type): Likewise.
5671 * m2-valprint.c (get_long_set_bounds): Likewise.
5672 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
5673 * python/py-type.c (typy_range): Likewise.
5674 * rust-lang.c (rust_internal_print_type): Likewise.
5675 * type-stack.c (type_stack::follow_types): Likewise.
5676 * valarith.c (value_subscripted_rvalue): Likewise.
5677 * valops.c (value_cast): Likewise.
5678
509971ae
SM
56792020-07-12 Simon Marchi <simon.marchi@efficios.com>
5680
5681 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
5682 callers to use the equivalent accessor methods.
5683
107406b7
SM
56842020-07-12 Simon Marchi <simon.marchi@efficios.com>
5685
5686 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
5687 (struct type) <bit_stride>: New method.
5688 (TYPE_BIT_STRIDE): Remove.
5689 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
5690
bb789949
SM
56912020-07-12 Simon Marchi <simon.marchi@efficios.com>
5692
5693 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
5694 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
5695 callers to use the equivalent accessor methods instead.
5696
39498edb
SM
56972020-07-12 Simon Marchi <simon.marchi@efficios.com>
5698
5699 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
5700 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
5701 callers to use the equivalent accessor methods instead.
5702
3b606f38
SM
57032020-07-12 Simon Marchi <simon.marchi@efficios.com>
5704
5705 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
5706 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
5707 to use dynamic_prop::kind.
5708
064d9cb9
SM
57092020-07-12 Simon Marchi <simon.marchi@efficios.com>
5710
5711 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
5712 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
5713 to get the bound property's kind and check against
5714 PROP_UNDEFINED.
5715
5537ddd0
SM
57162020-07-12 Simon Marchi <simon.marchi@efficios.com>
5717
5718 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
5719 all callers to use type::range_bounds followed by
5720 dynamic_prop::{low,high}.
5721
8c2e4e06
SM
57222020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
5723
5724 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
5725 const_val, set_const_val, baton, set_locexpr, set_loclist,
5726 set_addr_offset, variant_parts, set_variant_parts,
5727 original_type, set_original_type>: New methods.
5728 <kind>: Rename to...
5729 <m_kind>: ... this. Update all users to use the new methods
5730 instead.
5731 <data>: Rename to...
5732 <m_data>: ... this. Update all users to use the new methods
5733 instead.
5734
7c6f2712
SM
57352020-07-12 Simon Marchi <simon.marchi@efficios.com>
5736
5737 * gdbtypes.c (get_discrete_bounds): Return failure if
5738 the range type's bounds are not both defined and constant
5739 values.
5740 (get_array_bounds): Update comment. Remove undefined bound check.
5741
599088e3
SM
57422020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
5743
5744 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
5745 the type::bounds method directly.
5746
c4dfcb36
SM
57472020-07-12 Simon Marchi <simon.marchi@efficios.com>
5748
5749 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
5750 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
5751 are used to set the range type's bounds to use set_bounds.
5752
0a278aa7
PW
57532020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5754
5755 * exec.c (_initialize_exec): Update exec-file-mismatch help.
5756
cce20f10
PA
57572020-07-10 Pedro Alves <pedro@palves.net>
5758
5759 * gdbthread.h (inferior_ref): Define.
5760 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
5761 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
5762 * thread.c
5763 (scoped_restore_current_thread::restore):
5764 Adjust to gdb::ref_ptr.
5765 (scoped_restore_current_thread::~scoped_restore_current_thread):
5766 Remove manual decref handling.
5767 (scoped_restore_current_thread::scoped_restore_current_thread):
5768 Adjust to use
5769 inferior_ref::new_reference/thread_info_ref::new_reference.
5770 Incref the thread before calling get_frame_id instead of after.
5771 Let TARGET_CLOSE_ERROR propagate.
5772
6d7aa592
PA
57732020-07-10 Pedro Alves <pedro@palves.net>
5774
5775 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
5776 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
5777 NOT_AVAILABLE_ERROR.
5778 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
5779 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
5780
b3e3a4c1
SM
57812020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5782 Pedro Alves <pedro@palves.net>
5783
5784 PR gdb/26199
5785 * infrun.c (threads_are_resumed_pending_p): Delete.
5786 (do_target_wait): Remove threads_are_executing and
5787 threads_are_resumed_pending_p checks from the inferior_matches
5788 lambda. Update comments.
5789
d6cc5d98
PA
57902020-07-10 Pedro Alves <pedro@palves.net>
5791
5792 PR gdb/26199
5793 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
5794 executing threads.
5795
7d3badc6
PA
57962020-07-10 Pedro Alves <pedro@palves.net>
5797
5798 PR gdb/26199
5799 * infrun.c (handle_no_resumed): Handle multiple targets.
5800
42bd97a6
PA
58012020-07-10 Pedro Alves <pedro@palves.net>
5802
5803 PR gdb/26199
5804 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
5805 target_is_async_p.
5806
43667cc6
PA
58072020-07-10 Pedro Alves <pedro@palves.net>
5808
5809 PR gdb/26199
5810 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
5811 threads, not all threads.
5812
96118d11
PA
58132020-07-10 Pedro Alves <pedro@palves.net>
5814
5815 PR gdb/26199
5816 * remote.c (remote_target::open_1): Pass remote target pointer as
5817 data to create_async_event_handler.
5818 (remote_async_inferior_event_handler): Mark async event handler
5819 before returning if the remote target still has either pending
5820 events or unacknowledged notifications.
5821
54904d81
JB
58222020-07-10 John Baldwin <jhb@FreeBSD.org>
5823
5824 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
5825 declaration.
5826 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
5827 function.
5828
f37e5866
JB
58292020-07-09 John Baldwin <jhb@FreeBSD.org>
5830
5831 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
5832 inferior_ptid.
5833
fc238d4a
JB
58342020-07-09 John Baldwin <jhb@FreeBSD.org>
5835
5836 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
5837 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
5838 AT_FREEBSD_PS_STRINGS.
5839
6e2469ff
HD
58402020-07-08 Hannes Domani <ssbssa@yahoo.de>
5841
5842 * auto-load.c (auto_load_objfile_script_1): Convert drive part
5843 of debugfile path on Windows.
5844
d1076c41
JB
58452020-07-08 John Baldwin <jhb@FreeBSD.org>
5846
5847 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
5848 argument to 'data'.
5849
15f3b077
TT
58502020-07-08 Tom Tromey <tromey@adacore.com>
5851
5852 * ada-lang.c (ada_exception_message_1): Use read_memory.
5853
9fc501fd
AB
58542020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5855
5856 PR python/22748
5857 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
5858 special handling for inline frames.
5859 * findvar.c (value_of_register_lazy): Skip inline frames when
5860 creating lazy register values.
5861 * frame.c (frame_id_computed_p): Delete definition.
5862 * frame.h (frame_id_computed_p): Delete declaration.
5863
64cb3757
AB
58642020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5865
5866 * NEWS: Mention additions to Python API.
5867 * python/py-arch.c (archpy_register_groups): New function.
5868 (arch_object_methods): Add 'register_groups' method.
5869 * python/py-registers.c (reggroup_iterator_object): New struct.
5870 (reggroup_object): New struct.
5871 (gdbpy_new_reggroup): New function.
5872 (gdbpy_reggroup_to_string): New function.
5873 (gdbpy_reggroup_name): New function.
5874 (gdbpy_reggroup_iter): New function.
5875 (gdbpy_reggroup_iter_next): New function.
5876 (gdbpy_new_reggroup_iterator): New function
5877 (gdbpy_initialize_registers): Register new types.
5878 (reggroup_iterator_object_type): Define new Python type.
5879 (gdbpy_reggroup_getset): New static global.
5880 (reggroup_object_type): Define new Python type.
5881 * python/python-internal.h
5882
0f767f94
AB
58832020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5884
5885 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
5886 * python/py-arch.c (archpy_registers): New function.
5887 (arch_object_methods): Add 'registers' method.
5888 * python/py-registers.c: New file.
5889 * python/python-internal.h
5890 (gdbpy_new_register_descriptor_iterator): Declare.
5891 (gdbpy_initialize_registers): Declare.
5892 * python/python.c (do_start_initialization): Call
5893 gdbpy_initialize_registers.
5894 * NEWS: Mention additions to the Python API.
5895
87dbc774
AB
58962020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5897
5898 * NEWS: Mention new Python API method.
5899 * python/py-unwind.c (pending_framepy_architecture): New function.
5900 (pending_frame_object_methods): Add architecture method.
5901
3bc98c0c
AB
59022020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5903
5904 * gdbarch.c: Regenerate.
5905 * gdbarch.h: Regenerate.
5906 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
5907 (gdbarch_data): Use internal_error for the case where
5908 deprecated_set_gdbarch_data was originally needed.
5909 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
5910 and use passed in obstack.
5911 (libunwind_frame_set_descr): Should no longer get back NULL from
5912 gdbarch_data.
5913 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
5914 type.
5915 * user-regs.c (user_regs_init): Update parameters, and use passed
5916 in obstack.
5917 (user_reg_add): Should no longer get back NULL from gdbarch_data.
5918 (_initialize_user_regs): Register as a pre-init gdbarch data type.
5919
d8cc8af6
TV
59202020-07-06 Tom de Vries <tdevries@suse.de>
5921
5922 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
5923 End-Of-Sequence in lte_is_less_than.
5924 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
5925 "gdb: Don't reorder line table entries too much when sorting".
5926
947f7597
TV
59272020-07-06 Tom de Vries <tdevries@suse.de>
5928
5929 PR tui/26205
5930 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
5931
1e7c1b22
TV
59322020-07-05 Tom de Vries <tdevries@suse.de>
5933
5934 PR build/26187
5935 * inferior.h (struct infcall_suspend_state_deleter): If available, use
5936 std::uncaught_exceptions instead of deprecated
5937 std::uncaught_exception.
5938
a36158ec
SM
59392020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5940
5941 * macroexp.h (macro_stringify): Return
5942 gdb::unique_xmalloc_ptr<char>.
5943 * macroexp.c (macro_stringify): Likewise.
5944 * macrotab.c (fixup_definition): Update.
5945
14d960c8
SM
59462020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5947
5948 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
5949 (lex_one_token): Update.
5950 * macroexp.c (struct macro_buffer) <release>: Return
5951 gdb::unique_xmalloc_ptr<char>.
5952 (macro_stringify): Update.
5953 (macro_expand): Update.
5954 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
5955 * macroexp.h (macro_expand_next): Likewise.
5956
211d5b1c
SM
59572020-07-02 Simon Marchi <simon.marchi@efficios.com>
5958
5959 * macroexp.h (macro_lookup_ftype): Remove.
5960 (macro_expand, macro_expand_once, macro_expand_next): Remove
5961 lookup function parameters, add scope parameter.
5962 * macroexp.c (scan, substitute_args, expand, maybe_expand,
5963 macro_expand, macro_expand_once, macro_expand_next): Likewise.
5964 * macroscope.h (standard_macro_lookup): Change parameter type
5965 to macro_scope.
5966 * macroscope.c (standard_macro_lookup): Likewise.
5967 * c-exp.y (lex_one_token): Update.
5968 * macrocmd.c (macro_expand_command): Likewise.
5969 (macro_expand_once_command): Likewise.
5970
b1a35af2
SM
59712020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5972
5973 * inf-loop.c (inferior_event_handler): Remove client_data param.
5974 * inf-loop.h (inferior_event_handler): Likewise.
5975 * infcmd.c (step_1): Adjust.
5976 * infrun.c (proceed): Adjust.
5977 (fetch_inferior_event): Remove client_data param.
5978 (infrun_async_inferior_event_handler): Adjust.
5979 * infrun.h (fetch_inferior_event): Remove `void *` param.
5980 * linux-nat.c (handle_target_event): Adjust.
5981 * record-btrace.c (record_btrace_handle_async_inferior_event):
5982 Adjust.
5983 * record-full.c (record_full_async_inferior_event_handler):
5984 Adjust.
5985 * remote.c (remote_async_inferior_event_handler): Adjust.
5986
1cdf9e33
TT
59872020-07-01 Tom Tromey <tom@tromey.com>
5988
5989 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
5990 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
5991
32c1e210
TT
59922020-07-01 Tom Tromey <tom@tromey.com>
5993
5994 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
5995 tui_gen_win_info.
5996 (tui_win_info::make_window): Merge with
5997 tui_gen_win_info::make_window.
5998 (tui_win_info::make_visible): Move from tui_gen_win_info.
5999 * tui/tui-win.c (tui_win_info::max_width): Move from
6000 tui_gen_win_info.
6001 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
6002 type.
6003 <window_factory>: Likewise.
6004 * tui/tui-layout.c (tui_win_info::resize): Move from
6005 tui_gen_win_info.
6006 (make_standard_window): Change return type.
6007 (get_locator_window, tui_get_window_by_name): Likewise.
6008 (tui_layout_window::apply): Remove a cast.
6009 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
6010 (struct tui_win_info): Merge with tui_gen_win_info.
6011 (struct tui_gen_win_info): Remove.
6012
a30cb6da
TT
60132020-07-01 Tom Tromey <tom@tromey.com>
6014
6015 * tui/tui-stack.h (struct tui_locator_window): Derive from
6016 tui_win_info.
6017 <do_scroll_horizontal, do_scroll_vertical>: New methods.
6018 <can_box>: New method.
6019
1eb2161f
TT
60202020-07-01 Tom Tromey <tom@tromey.com>
6021
6022 * tui/tui-stack.h (struct tui_locator_window): Remove body.
6023
7134f2eb
TT
60242020-07-01 Tom Tromey <tom@tromey.com>
6025
6026 * tui/tui-regs.c (tui_data_window::display_registers_from)
6027 (tui_data_window::display_registers_from)
6028 (tui_data_window::first_data_item_displayed)
6029 (tui_data_window::delete_data_content_windows): Update.
6030 (tui_data_window::refresh_window, tui_data_window::no_refresh):
6031 Remove.
6032 (tui_data_window::check_register_values): Update.
6033 (tui_data_item_window::rerender): Add parameters. Update.
6034 (tui_data_item_window::refresh_window): Remove.
6035 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
6036 virtual.
6037 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
6038 tui_gen_win_info.
6039 <refresh_window, max_height, min_height>: Remove.
6040 <rerender>: Add parameters.
6041 <x, y, visible>: New members.
6042 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
6043 <m_item_width>: New member.
6044
22b7b041
TT
60452020-07-01 Tom Tromey <tom@tromey.com>
6046
6047 * tui/tui-regs.c (tui_data_window::show_register_group)
6048 (tui_data_window::check_register_values): Update.
6049 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
6050 from item_no.
6051
c9753adb
TT
60522020-07-01 Tom Tromey <tom@tromey.com>
6053
6054 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
6055 useless "if".
6056
9ab26b4a
TT
60572020-07-01 Tom Tromey <tom@tromey.com>
6058
6059 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
6060 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
6061
e555083f
TT
60622020-07-01 Tom Tromey <tom@tromey.com>
6063
6064 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
6065 * tui/tui-winsource.h (enum tui_line_or_address_kind)
6066 (struct tui_line_or_address): Move from tui-data.h.
6067 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
6068 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
6069 (tui_cmd_window, tui_source_window_base, tui_source_window)
6070 (tui_disasm_window): Don't declare.
6071 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
6072 to tui-winsource.h.
6073 (SINGLE_KEY): Move to tui-stack.c.
6074
7a02bab7
TT
60752020-07-01 Tom Tromey <tom@tromey.com>
6076
6077 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
6078 std::string.
6079 * tui/tui-regs.c (class tab_expansion_file): New.
6080 (tab_expansion_file::write): New method.
6081 (tui_register_format): Change return type. Use
6082 tab_expansion_file.
6083 (tui_get_register, tui_data_window::display_registers_from)
6084 (tui_data_item_window::rerender): Update.
6085 * tui/tui-io.h (tui_expand_tabs): Don't declare.
6086 * tui/tui-io.c (tui_expand_tabs): Remove.
6087
ea68593b
TT
60882020-07-01 Tom Tromey <tom@tromey.com>
6089
6090 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
6091
a8caed5d
FS
60922020-07-01 Fangrui Song <maskray@google.com>
6093
6094 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
6095
9cdf9820
AKS
60962020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6097
6098 * dwarf2/read.c (set_die_type): Removed conditions to restrict
6099 forms for DW_AT_associated and DW_AT_allocated attributes,
6100 which is already checked in function attr_to_dynamic_prop.
6101
a1520ad8
TT
61022020-06-30 Tom Tromey <tromey@adacore.com>
6103
6104 * dwarf2/read.c (quirk_rust_enum): Correctly call
6105 alloc_rust_variant for default-less enum.
6106
5ac58899
TT
61072020-06-30 Tom Tromey <tromey@adacore.com>
6108
6109 PR build/26183:
6110 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
6111 gdb::to_string.
6112
19b187a9
SM
61132020-06-29 Simon Marchi <simon.marchi@efficios.com>
6114
6115 * gdbarch.sh (displaced_step_copy_insn): Update doc.
6116 * gdbarch.h: Re-generate.
6117
cd4c4c07
TT
61182020-06-28 Tom Tromey <tom@tromey.com>
6119
6120 * command.h (cmd_types): Remove.
6121 (cmd_type): Don't declare.
6122 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
6123 typedef.
6124 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
6125 * cli/cli-decode.c (cmd_type): Remove.
6126
05779d57
PA
61272020-06-27 Pedro Alves <palves@redhat.com>
6128
6129 * fork-child.c (prefork_hook): Adjust.
6130 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
6131 Delete.
6132 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
6133 * inferior.c (inferior::set_tty, inferior::tty): New methods.
6134 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
6135 Remove declarations.
6136 (struct inferior) <set_tty, tty>: New methods.
6137 (struct inferior) <terminal>: Rename to ...
6138 (struct inferior) <m_terminal>: ... this and make private.
6139 * main.c (captured_main_1): Adjust.
6140 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
6141 (mi_cmd_inferior_tty_show): Adjust.
6142 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
6143 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
6144
1776e3e5
NA
61452020-06-26 Nick Alcock <nick.alcock@oracle.com>
6146
6147 * configure.ac: Add --enable-libctf: handle --disable-static
6148 properly.
6149 * acinclude.m4: sinclude ../config/enable.m4.
6150 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
6151 (LIBCTF): Substitute in.
6152 (CTF_DEPS): New, likewise.
6153 (CLIBS): libctf needs symbols from libbfd: move earlier.
6154 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
6155 flags.
6156 * ctfread.c: Surround in ENABLE_LIBCTF.
6157 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
6158 * configure: Regenerate.
6159 * config.in: Likewise.
6160
58373b80
SM
61612020-06-25 Simon Marchi <simon.marchi@efficios.com>
6162
6163 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
6164
277474ee
SM
61652020-06-25 Simon Marchi <simon.marchi@efficios.com>
6166
6167 * inferior.h (struct inferior) <terminal>: Change type to
6168 gdb::unique_xmalloc_ptr<char>.
6169 * inferior.c (inferior::~inferior): Don't free inf->terminal.
6170 * infcmd.c (set_inferior_io_terminal): Don't free terminal
6171 field, adjust to unique pointer.
6172 (get_inferior_io_terminal): Adjust to unique pointer.
6173
6d74da72
AB
61742020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6175
6176 * riscv-tdep.c (riscv_print_registers_info): Loop over all
6177 registers, not just the known core set of registers.
6178
2e52d038
AB
61792020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6180
6181 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
6182 fflags, frm, and fcsr registers.
6183 (riscv_register_reggroup_p): Remove unknown CSRs from save and
6184 restore groups.
6185 (riscv_tdesc_unknown_reg): New function.
6186 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
6187 tdesc_use_registers.
6188 * riscv-tdep.h (struct gdbarch_tdep): Add
6189 unknown_csrs_first_regnum, unknown_csrs_count,
6190 duplicate_fflags_regnum, duplicate_frm_regnum, and
6191 duplicate_fcsr_regnum fields.
6192
be64fd07
AB
61932020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6194
6195 * target-descriptions.c (tdesc_use_registers): Add new parameter a
6196 callback, use the callback (when not null) to help number unknown
6197 registers.
6198 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
6199 (tdesc_use_registers): Add extra parameter to declaration.
6200
3b9fce96
AB
62012020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6202
6203 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
6204 in the file.
6205 (class riscv_pending_register_alias): Likewise.
6206 (riscv_register_feature::register_info): Change 'required_p' field
6207 to 'required', and change its type. Add 'check' member function.
6208 (riscv_register_feature::register_info::check): Define new member
6209 function.
6210 (riscv_xreg_feature): Change initialisation of 'required' field.
6211 (riscv_freg_feature): Likewise.
6212 (riscv_virtual_feature): Likewise.
6213 (riscv_csr_feature): Likewise.
6214 (riscv_check_tdesc_feature): Take extra parameter, the csr
6215 tdesc_feature, rewrite the function to use the new
6216 riscv_register_feature::register_info::check function.
6217 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
6218
865bad26
AB
62192020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6220
6221 * features/Makefile: Remove all references to the deleted files
6222 below.
6223 * features/riscv/32bit-csr.c: Deleted.
6224 * features/riscv/32bit-csr.xml: Deleted.
6225 * features/riscv/64bit-csr.c: Deleted.
6226 * features/riscv/64bit-csr.xml: Deleted.
6227 * features/riscv/rebuild-csr-xml.sh: Deleted.
6228
ed69cbc8
AB
62292020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6230
6231 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
6232 whitespace error for declaration of names member variable.
6233 (struct riscv_register_feature): Add new prefer_first_name member
6234 variable, and fix whitespace error in declaration of registers.
6235 (riscv_xreg_feature): Initialize prefer_first_name field.
6236 (riscv_freg_feature): Likewise.
6237 (riscv_virtual_feature): Likewise.
6238 (riscv_csr_feature): Likewise.
6239 (riscv_register_name): Expand on comments. Remove register name
6240 modifications for CSR and virtual registers.
6241
4445e8f5
AB
62422020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6243
6244 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
6245 errors.
6246
767a879e
AB
62472020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6248
6249 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
6250 riscv-opc.h.
6251 (class riscv_pending_register_alias): New class.
6252 (riscv_check_tdesc_feature): Take vector of pending aliases and
6253 populate it as appropriate.
6254 (riscv_setup_register_aliases): Delete.
6255 (riscv_gdbarch_init): Create vector of pending aliases and pass it
6256 to riscv_check_tdesc_feature in all cases. Use the vector to
6257 create the register aliases.
6258
bb6e55f3
RO
62592020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6260
6261 * sol2-tdep.c (sol2_static_transform_name): Remove.
6262 (sol2_init_abi): Don't register it.
6263 * gdbarch.sh (static_transform_name): Remove.
6264 * gdbarch.c, gdbarch.h: Regenerate.
6265
6266 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
6267 gdbarch_static_transform_name.
6268 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
6269 * stabsread.c (define_symbol) <'X'>: Remove.
6270 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
6271 handling.
6272 <'V'>: Likewise.
6273 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
6274 <'S'>: Remove call to gdbarch_static_transform_name.
6275
c6d36836
RO
62762020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6277
6278 * procfs.c (procfs_pre_trace): New function.
6279 (procfs_target::create_inferior): Pass it to fork_inferior.
6280
a7e6196b
RO
62812020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6282
6283 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
6284 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
6285 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
6286 sol2-tdep.o, sparc-sol2-tdep.o.
6287 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
6288 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
6289 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
6290 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
6291
d412e696
RO
62922020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6293
6294 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
6295 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
6296 Call sol2_init_abi.
6297 Remove calls to set_gdbarch_skip_solib_resolver,
6298 set_gdbarch_core_pid_to_str.
6299 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
6300 (i386_sol2_static_transform_name): Remove.
6301 (i386_sol2_init_abi): Call sol2_init_abi.
6302 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6303 set_gdbarch_static_transform_name,
6304 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6305 Use sol2_sigtramp_p.
6306 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
6307 (sol2_sigtramp_p): New function.
6308 (sol2_static_transform_name): New function.
6309 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
6310 (sol2_init_abi): New function.
6311 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
6312 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
6313 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
6314 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
6315 (sparc_sol2_static_transform_name): Remove.
6316 (sparc32_sol2_init_abi): Call sol2_init_abi.
6317 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6318 set_gdbarch_static_transform_name,
6319 set_gdbarch_skip_solib_resolver,
6320 set_gdbarch_core_pid_to_str.
6321 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
6322 (sparc_sol2_static_transform_name): Remove
6323 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
6324 call sol2_sigtramp_p.
6325 (sparc64_sol2_init_abi): Call sol2_init_abi.
6326 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6327 set_gdbarch_static_transform_name,
6328 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6329
a8654e7d
PW
63302020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6331
6332 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
6333 * exec.c (validate_exec_file): If from_tty, set both
6334 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
6335 * symfile.c (symbol_file_add_with_addrs): if always_confirm
6336 and from_tty, unconditionally ask a confirmation.
6337
caa7fd04
AB
63382020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6339
6340 * target-descriptions.c (tdesc_architecture_name): Protect against
6341 NULL pointer dereference.
6342 (maint_print_xml_tdesc_cmd): New function.
6343 (_initialize_target_descriptions): Register new 'maint print
6344 xml-tdesc' command and give it the filename completer.
6345 * NEWS: Mention new 'maint print xml-tdesc' command.
6346
fbf42f4e
AB
63472020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6348
6349 * target-descriptions.c (class tdesc_compatible_info): New class.
6350 (struct target_desc): Change type of compatible vector.
6351 (tdesc_compatible_p): Update for change in type of
6352 target_desc::compatible.
6353 (tdesc_compatible_info_list): New function.
6354 (tdesc_compatible_info_arch_name): New function.
6355 (tdesc_add_compatible): Update for change in type of
6356 target_desc::compatible.
6357 (print_c_tdesc::visit_pre): Likewise.
6358
20821f4e
AB
63592020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6360
6361 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
6362 whitespace to underscore.
6363 (maint_print_c_tdesc_cmd): Use fake filename for target
6364 descriptions that came from the target.
6365 (_initialize_target_descriptions): Add filename command completion
6366 for 'maint print c-tdesc'.
6367
1fb5ee62
SM
63682020-06-23 Simon Marchi <simon.marchi@efficios.com>
6369
6370 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
6371 lines.
6372
fc3ecb3e
SM
63732020-06-23 Simon Marchi <simon.marchi@efficios.com>
6374
6375 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
6376 lines.
6377 (dwarf2_find_location_expression): Likewise.
6378 (call_site_parameter_matches): Likewise.
6379 (dwarf2_compile_expr_to_ax): Likewise.
6380 (disassemble_dwarf_expression): Likewise.
6381 (loclist_describe_location): Likewise.
6382
236ef034
PA
63832020-06-23 Pedro Alves <palves@redhat.com>
6384
6385 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
6386 progspace-and-thread.h. Include scoped-mock-context.h instead.
6387 (register_to_value_test): Use scoped_mock_context.
6388 * regcache.c: Include "scoped-mock-context.h".
6389 (cooked_read_test): Don't error out if a target is already pushed.
6390 Use scoped_mock_context. Adjust.
6391 * scoped-mock-context.h: New file.
6392
39e7ecca
AB
63932020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6394
6395 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
6396 initializer.
6397 (ada_language::is_string_type_p): New member function.
6398 * c-lang.c (c_language_data): Delete la_is_string_type_p
6399 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_is_string_type_p): Delete function, implementation
6405 moved to f_language::is_string_type_p.
6406 (f_language_data): Delete la_is_string_type_p initializer.
6407 (f_language::is_string_type_p): New member function,
6408 implementation from f_is_string_type_p.
6409 * go-lang.c (go_is_string_type_p): Delete function, implementation
6410 moved to go_language::is_string_type_p.
6411 (go_language_data): Delete la_is_string_type_p initializer.
6412 (go_language::is_string_type_p): New member function,
6413 implementation from go_is_string_type_p.
6414 * language.c (language_defn::is_string_type_p): Define new member
6415 function.
6416 (default_is_string_type_p): Make static, add comment copied from
6417 header file.
6418 (unknown_language_data): Delete la_is_string_type_p initializer.
6419 (unknown_language::is_string_type_p): New member function.
6420 (auto_language_data): Delete la_is_string_type_p initializer.
6421 (auto_language::is_string_type_p): New member function.
6422 * language.h (language_data): Delete la_is_string_type_p field.
6423 (language_defn::is_string_type_p): Declare new function.
6424 (default_is_string_type_p): Delete desclaration, move comment to
6425 definition.
6426 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
6427 moved to m2_language::is_string_type_p.
6428 (m2_language_data): Delete la_is_string_type_p initializer.
6429 (m2_language::is_string_type_p): New member function,
6430 implementation from m2_is_string_type_p.
6431 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
6432 initializer.
6433 * opencl-lang.c (opencl_language_data): Likewise.
6434 * p-lang.c (pascal_is_string_type_p): Delete function,
6435 implementation moved to pascal_language::is_string_type_p.
6436 (pascal_language_data): Delete la_is_string_type_p initializer.
6437 (pascal_language::is_string_type_p): New member function,
6438 implementation from pascal_is_string_type_p.
6439 * rust-lang.c (rust_is_string_type_p): Delete function,
6440 implementation moved to rust_language::is_string_type_p.
6441 (rust_language_data): Delete la_is_string_type_p initializer.
6442 (rust_language::is_string_type_p): New member function,
6443 implementation from rust_is_string_type_p.
6444 * valprint.c (val_print_scalar_or_string_type_p): Update call to
6445 is_string_type_p.
6446
4ffc13fb
AB
64472020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6448
6449 * ada-lang.c (ada_language_data): Delete la_print_typedef
6450 initializer.
6451 (ada_language::print_typedef): New member function.
6452 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
6453 (cplus_language_data): Likewise.
6454 (asm_language_data): Likewise.
6455 (minimal_language_data): Likewise.
6456 * d-lang.c (d_language_data): Likewise.
6457 * f-lang.c (f_language_data): Likewise.
6458 (f_language::print_typedef): New member function.
6459 * go-lang.c (go_language_data): Delete la_print_typedef
6460 initializer.
6461 * language.c (language_defn::print_typedef): Define member
6462 function.
6463 (unknown_language_data): Delete la_print_typedef initializer.
6464 (unknown_language::print_typedef): New member function.
6465 (auto_language_data): Delete la_print_typedef initializer.
6466 (auto_language::print_typedef): New member function.
6467 * language.h (language_data): Delete la_print_typedef field.
6468 (language_defn::print_typedef): Declare new member function.
6469 (LA_PRINT_TYPEDEF): Update call to print_typedef.
6470 (default_print_typedef): Delete declaration.
6471 * m2-lang.c (m2_language_data): Delete la_print_typedef
6472 initializer.
6473 (m2_language::print_typedef): New member function.
6474 * objc-lang.c (objc_language_data): Delete la_print_typedef
6475 initializer.
6476 * opencl-lang.c (opencl_language_data): Likewise.
6477 * p-lang.c (pascal_language_data): Likewise.
6478 (pascal_language::print_typedef): New member function.
6479 * rust-lang.c (rust_print_typedef): Delete function,
6480 implementation moved to rust_language::print_typedef.
6481 (rust_language): Delete la_print_typedef initializer.
6482 (rust_language::print_typedef): New member function,
6483 implementation from rust_print_typedef.
6484 * typeprint.c (default_print_typedef): Delete.
6485
d711ee67
AB
64862020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6487
6488 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
6489 (ada_language::printstr): New member function.
6490 * c-lang.c (c_language_data): Delete la_printstr initializer.
6491 (cplus_language_data): Likewise.
6492 (asm_language_data): Likewise.
6493 (minimal_language_data): Likewise.
6494 * d-lang.c (d_language_data): Likewise.
6495 * f-lang.c (f_printstr): Rename to f_language::printstr.
6496 (f_language_data): Delete la_printstr initializer.
6497 (f_language::printstr): New member function, implementation from
6498 f_printstr.
6499 * go-lang.c (go_language_data): Delete la_printstr initializer.
6500 * language.c (language_defn::printstr): Define new member
6501 function.
6502 (unk_lang_printstr): Delete.
6503 (unknown_language_data): Delete la_printstr initializer.
6504 (unknown_language::printstr): New member function.
6505 (auto_language_data): Delete la_printstr initializer.
6506 (auto_language::printstr): New member function.
6507 * language.h (language_data): Delete la_printstr field.
6508 (language_defn::printstr): Declare new member function.
6509 (LA_PRINT_STRING): Update call to printstr.
6510 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
6511 (m2_language_data): Delete la_printstr initializer.
6512 (m2_language::printstr): New member function, implementation from
6513 m2_printstr.
6514 * objc-lang.c (objc_language_data): Delete la_printstr
6515 initializer.
6516 * opencl-lang.c (opencl_language_data): Likewise.
6517 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
6518 (pascal_language_data): Delete la_printstr initializer.
6519 (pascal_language::printstr): New member function, implementation
6520 from pascal_printstr.
6521 * p-lang.h (pascal_printstr): Delete declaration.
6522 * rust-lang.c (rust_printstr): Update header comment.
6523 (rust_language_data): Delete la_printstr initializer.
6524 (rust_language::printstr): New member function.
6525
52b50f2c
AB
65262020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6527
6528 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
6529 (ada_language::printchar): New member function.
6530 * c-lang.c (c_language_data): Delete la_printchar initializer.
6531 (cplus_language_data): Likewise.
6532 (asm_language_data): Likewise.
6533 (minimal_language_data): Likewise.
6534 * d-lang.c (d_language_data): Likewise.
6535 * f-lang.c (f_printchar): Rename to f_language::printchar.
6536 (f_language_data): Delete la_printchar initializer.
6537 (f_language::printchar): New member function, implementation from
6538 f_printchar.
6539 * go-lang.c (go_language_data): Delete la_printchar initializer.
6540 * language.c (unk_lang_printchar): Delete.
6541 (language_defn::printchar): Define new member function.
6542 (unknown_language_data): Delete la_printchar initializer.
6543 (unknown_language::printchar): New member function.
6544 (auto_language_data): Delete la_printchar initializer.
6545 (auto_language::printchar): New member function.
6546 * language.h (language_data): Delete la_printchar field.
6547 (language_defn::printchar): Declare new member function.
6548 (LA_PRINT_CHAR): Update call to printchar.
6549 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
6550 (m2_language::printchar): New member function.
6551 * objc-lang.c (objc_language_data): Delete la_printchar
6552 initializer.
6553 * opencl-lang.c (opencl_language_data): Likewise.
6554 * p-lang.c (pascal_language_data): Delete la_printchar
6555 initializer.
6556 (pascal_language::printchar): New member function.
6557 * rust-lang.c (rust_printchar): Rename to
6558 rust_language::printchar.
6559 (rust_language_data): Delete la_printchar initializer.
6560 (rust_language::printchar): New member function, implementation
6561 from rust_printchar.
6562
ec8cec5b
AB
65632020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6564
6565 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
6566 (ada_language_data): Delete la_emitchar initializer.
6567 (ada_language::emitchar): New member function, implementation from
6568 emit_char.
6569 * c-lang.c (c_language_data): Delete la_emitchar initializer.
6570 (cplus_language_data): Likewise.
6571 (asm_language_data): Likewise.
6572 (minimal_language_data): Likewise.
6573 * d-lang.c (d_language_data): Likewise.
6574 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
6575 (f_language_data): Delete la_emitchar initializer.
6576 (f_language::emitchar): New member function, implementation from
6577 f_emit_char.
6578 * go-lang.c (go_language_data): Delete la_emitchar initializer.
6579 * language.c (unk_lang_emit_char): Delete.
6580 (language_defn::emitchar): New member function definition.
6581 (unknown_language_data): Delete la_emitchar initializer.
6582 (unknown_language::emitchar): New member function.
6583 (auto_language_data): Delete la_emitchar initializer.
6584 (auto_language::emitchar): New member function.
6585 * language.h (language_data): Delete la_emitchar field.
6586 (language_defn::emitchar): New member field declaration.
6587 (LA_EMIT_CHAR): Update call to emitchar.
6588 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
6589 (m2_language_data): Delete la_emitchar initializer.
6590 (m2_language::emitchar): New member function, implementation from
6591 m2_emit_char.
6592 * objc-lang.c (objc_language_data): Delete la_emitchar
6593 initializer.
6594 * opencl-lang.c (opencl_language_data): Likewise.
6595 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
6596 (pascal_language_data): Delete la_emitchar initializer.
6597 (pascal_language::emitchar): New member function, implementation
6598 from pascal_emit_char.
6599 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
6600 (rust_language_data): Delete la_emitchar initializer.
6601 (rust_language::emitchar): New member function, implementation
6602 from rust_emitchar.
6603
1bf9c363
AB
66042020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6605
6606 * ada-lang.c (resolve): Rename to ada_language::post_parser.
6607 (ada_language_data): Delete la_post_parser initializer.
6608 (ada_language::post_parser): New member function.
6609 * c-lang.c (c_language_data): Delete la_post_parser initializer.
6610 (cplus_language_data): Likewise.
6611 (asm_language_data): Likewise.
6612 (minimal_language_data): Likewise.
6613 * d-lang.c (d_language_data): Likewise.
6614 * f-lang.c (f_language_data): Likewise.
6615 * go-lang.c (go_language_data): Likewise.
6616 * language.c (unknown_language_data): Likewise.
6617 (auto_language_data): Likewise.
6618 * language.h (language_data): Delete la_post_parser field.
6619 (language_defn::post_parser): New member function.
6620 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
6621 * objc-lang.c (objc_language_data): Likewise.
6622 * opencl-lang.c (opencl_language_data): Likewise.
6623 * p-lang.c (pascal_language_data): Likewise.
6624 * parse.c (parse_exp_in_context): Update call to post_parser.
6625 (null_post_parser): Delete definition.
6626 * parser-defs.h (null_post_parser): Delete declaration.
6627 * rust-lang.c (rust_language_data): Delete la_post_parser
6628 initializer.
6629
87afa652
AB
66302020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6631
6632 * ada-lang.c (parse): Rename to ada_language::parser.
6633 (ada_language_data): Delete la_parser initializer.
6634 (ada_language::parser): New member function, implementation from
6635 parse.
6636 * c-lang.c (c_language_data): Delete la_parser initializer.
6637 (cplus_language_data): Likewise.
6638 (asm_language_data): Likewise.
6639 (minimal_language_data): Likewise.
6640 * d-lang.c (d_language_data): Likewise.
6641 (d_language::parser): New member function.
6642 * f-lang.c (f_language_data): Delete la_parser initializer.
6643 (f_language::parser): New member function.
6644 * go-lang.c (go_language_data): Delete la_parser initializer.
6645 (go_language::parser): New member function.
6646 * language.c (unk_lang_parser): Delete.
6647 (language_defn::parser): Define new member function.
6648 (unknown_language_data): Delete la_parser initializer.
6649 (unknown_language::parser): New member function.
6650 (auto_language_data): Delete la_parser initializer.
6651 (auto_language::parser): New member function.
6652 * language.h (language_data): Delete la_parser field.
6653 (language_defn::parser): Declare new member function.
6654 * m2-lang.c (m2_language_data): Delete la_parser initializer.
6655 (m2_language::parser): New member function.
6656 * objc-lang.c (objc_language_data): Delete la_parser initializer.
6657 * opencl-lang.c (opencl_language_data): Likewise.
6658 * p-lang.c (pascal_language_data): Likewise.
6659 (pascal_language::parser): New member function.
6660 * parse.c (parse_exp_in_context): Update call to parser.
6661 * rust-lang.c (rust_language_data): Delete la_parser initializer.
6662 (rust_language::parser): New member function.
6663
37825800
AB
66642020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6665
6666 * top.c (print_gdb_configuration): Print --with-python-libdir
6667 configuration value.
6668
5b860c93
PW
66692020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6670
6671 * NEWS: Mention change to the alias command.
6672
cf00cd6f
PW
66732020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6674
6675 * cli/cli-cmds.c (lookup_cmd_for_default_args)
6676 (alias_command_completer)
6677 (make_alias_options_def_group): New functions.
6678 (alias_opts, alias_option_defs): New struct and array.
6679 (alias_usage_error): Update usage.
6680 (alias_command): Handles optional DEFAULT-ARGS... arguments.
6681 Use option framework.
6682 (_initialize_cli_cmds): Update alias command help.
6683 Update aliases command help.
6684 (show_user):
6685 Add NULL for new default_args lookup_cmd argument.
6686 (valid_command_p): Rename to validate_aliased_command.
6687 Add NULL for new default_args lookup_cmd argument. Verify that the
6688 aliased_command has no default args.
6689 * cli/cli-decode.c (help_cmd): Show aliases definitions.
6690 (lookup_cmd_1, lookup_cmd): New argument default_args.
6691 (add_alias_cmd):
6692 Add NULL for new default_args lookup_cmd argument.
6693 (print_help_for_command): Show default args under the layout
6694 alias some_alias = some_aliased_cmd some_alias_default_arg.
6695 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
6696 xfree default_args in destructor.
6697 * cli/cli-script.c (process_next_line, do_define_command):
6698 Add NULL for new default_args lookup_cmd argument.
6699 * command.h: Declare new default_args argument in lookup_cmd
6700 and lookup_cmd_1.
6701 * completer.c (complete_line_internal_1):
6702 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6703 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
6704 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
6705 Likewise.
6706 * infcmd.c (_initialize_infcmd): Likewise.
6707 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
6708 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
6709 * python/py-param.c (add_setshow_generic): Likewise.
6710 * remote.c (_initialize_remote): Likewise.
6711 * top.c (execute_command): Prepend default_args if command has some.
6712 (set_verbose):
6713 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6714 * tracepoint.c (validate_actionline, encode_actions_1):
6715 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6716
bd920864
TBA
67172020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6718
6719 * jit.c (jit_read_descriptor): Use bool as the return type.
6720 (jit_breakpoint_re_set_internal): Use bool as the return type.
6721 Invert the return value logic; return true if the jit breakpoint
6722 has been successfully initialized.
6723 (jit_inferior_init): Update the call to
6724 jit_breakpoint_re_set_internal.
6725
f8098322
PA
67262020-06-22 Pedro Alves <palves@redhat.com>
6727
6728 PR gdb/25939
6729 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
6730 Use the current inferior instead. Don't return
6731 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
6732 wait again.
6733 * sol-thread.c (sol_thread_target::wait): Don't reference
6734 inferior_ptid.
6735 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
6736 (sol_update_thread_list_callback): Use the current inferior's pid
6737 instead of inferior_ptid.
6738
196535a6
RO
67392020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6740
6741 * procfs.c: Cleanup many comments.
6742
6743 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
6744 (AFTER_WATCHFLAG): Replace by value.
6745
6746 (MAIN_PROC_NAME_FORMAT): Inline ...
6747 (create_procinfo): ... here.
6748
6749 (procfs_debug_inferior): Remove SYS_exec handling.
6750 (syscall_is_exec): Likewise.
6751 (procfs_set_exec_trap): Likewise.
6752
6753 (syscall_is_lwp_exit): Inline in callers.
6754 (syscall_is_exit): Likewise.
6755 (syscall_is_exec): Likewise.
6756 (syscall_is_lwp_create): Likewise.
6757
6758 (invalidate_cache): Remove #if 0 code.
6759
6760 (make_signal_thread_runnable): Remove.
6761 (procfs_target::resume): Remove #if 0 code.
6762
cf6f3e86
RO
67632020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6764
6765 PR gdb/25939
6766 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
6767 call ...
6768 (procfs_target::create_inferior): ... here.
6769
48e9cc84
PW
67702020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6771
6772 * exec.c (validate_exec_file): Ensure the build-id is up to
6773 date by calling reopen_exec_file (that checks file timestamp
6774 to decide to re-read the file).
6775
3922b302
PA
67762020-06-18 Pedro Alves <palves@redhat.com>
6777
6778 PR gdb/25412
6779 * gdbthread.h (delete_thread, delete_thread_silent)
6780 (find_thread_ptid): Update comments.
6781 * thread.c (current_thread_): New global.
6782 (is_current_thread): Move higher, and reimplement.
6783 (inferior_thread): Reimplement.
6784 (set_thread_exited): Use bool. Add assertions.
6785 (add_thread_silent): Simplify thread-reuse handling by always
6786 calling delete_thread.
6787 (delete_thread): Remove intro comment.
6788 (find_thread_ptid): Skip exited threads.
6789 (switch_to_thread_no_regs): Write to current_thread_.
6790 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
6791 INFERIOR_PTID. Clear current_thread_.
6792
6dbdab44
PA
67932020-06-18 Pedro Alves <palves@redhat.com>
6794
6795 * aix-thread.c (pd_update): Use switch_to_thread.
6796
2da4b788
PA
67972020-06-18 Pedro Alves <palves@redhat.com>
6798
6799 * ravenscar-thread.c (ravenscar_thread_target): Update.
6800 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
6801 (ravenscar_thread_target::add_active_thread): ... this. Don't
6802 set m_base_ptid here. Update to avoid referencing inferior_ptid.
6803 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
6804
50838d1b
PA
68052020-06-18 Pedro Alves <palves@redhat.com>
6806
6807 * nat/windows-nat.c (current_windows_thread): Remove.
6808 * nat/windows-nat.h (current_windows_thread): Remove.
6809 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
6810 Adjust.
6811 (display_selectors): Adjust to fetch the current
6812 windows_thread_info based on inferior_ptid.
6813 (fake_create_process): No longer write to current_windows_thread.
6814 (windows_nat_target::get_windows_debug_event):
6815 Don't set inferior_ptid or current_windows_thread.
6816 (windows_nat_target::wait): Adjust to not rely on
6817 current_windows_thread.
6818 (do_initial_windows_stuff): Now a method of windows_nat_target.
6819 Switch to the last_ptid thread.
6820 (windows_nat_target::attach): Adjust.
6821 (windows_nat_target::detach): Use switch_to_no_thread instead of
6822 writing to inferior_ptid directly.
6823 (windows_nat_target::create_inferior): Adjust.
6824
31ce04e9
PA
68252020-06-18 Pedro Alves <palves@redhat.com>
6826
6827 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
6828
1ee1a363
PA
68292020-06-18 Pedro Alves <palves@redhat.com>
6830
6831 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
6832 after creating it, instead of writing to inferior_ptid. Don't
6833 write to inferior_ptid.
6834
6d350754
PA
68352020-06-18 Pedro Alves <palves@redhat.com>
6836
6837 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
6838
5d971d48
PA
68392020-06-18 Pedro Alves <palves@redhat.com>
6840
6841 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
6842 it, instead of writing to inferior_ptid.
6843
86e57d1b
PA
68442020-06-18 Pedro Alves <palves@redhat.com>
6845
6846 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
6847 to inferior_ptid.
6848
f2e1c129
PA
68492020-06-18 Pedro Alves <palves@redhat.com>
6850
6851 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
6852 instead of writing to inferior_ptid directly.
6853
60db1b85
PA
68542020-06-18 Pedro Alves <palves@redhat.com>
6855
6856 * corelow.c (core_target::close): Use switch_to_no_thread instead
6857 of writing to inferior_ptid directly.
6858 (add_to_thread_list, core_target_open): Use switch_to_thread
6859 instead of writing to inferior_ptid directly.
6860
fe7d6a8d
PA
68612020-06-18 Pedro Alves <palves@redhat.com>
6862
6863 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
6864 inferior_ptid.
6865 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
6866 inferior_ptid.
6867 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
6868 inferior_ptid directly.
6869 (darwin_nat_target::init_thread_list): Switch to thread, instead
6870 of writing to inferior_ptid.
6871 (darwin_nat_target::attach): Don't write to inferior_ptid.
6872 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
6873
975f8708
PA
68742020-06-18 Pedro Alves <palves@redhat.com>
6875
6876 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
6877 thread.
6878 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
6879 Instead use switch_to_thread.
6880 (gnu_nat_target::detach): Use switch_to_no_thread
6881 instead of writing to inferior_ptid directly. Used passed-in
6882 inferior instead of looking up the inferior by pid.
6883
1a204730
PA
68842020-06-18 Pedro Alves <palves@redhat.com>
6885
6886 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
6887 inferior_ptid.
6888
ebe84f23
PA
68892020-06-18 Pedro Alves <palves@redhat.com>
6890
6891 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
6892 inferior_ptid.
6893 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
6894 thread.
6895 (nto_procfs_target::detach): Avoid referencing
6896 inferior_ptid. Use switch_to_no_thread instead of writing to
6897 inferior_ptid directly.
6898 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
6899 instead of writing to inferior_ptid directly.
6900 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
6901 to thread.
6902
191f02e5
PA
69032020-06-18 Pedro Alves <palves@redhat.com>
6904
6905 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
6906 after creating it, instead of writing to inferior_ptid.
6907 (gdbsim_target_open): Use switch_to_no_thread instead of writing
6908 to inferior_ptid directly.
6909 (gdbsim_target::wait): Don't write to inferior_ptid.
6910
0ac55310
PA
69112020-06-18 Pedro Alves <palves@redhat.com>
6912
6913 * remote.c (remote_target::remote_notice_new_inferior): Use
6914 switch_to_thread instead of writing to inferior_ptid directly.
6915 (remote_target::add_current_inferior_and_thread): Use
6916 switch_to_no_thread instead of writing to inferior_ptid directly.
6917 (extended_remote_target::attach): Use switch_to_inferior_no_thread
6918 and switch_to_thread instead of using set_current_inferior or
6919 writing to inferior_ptid directly.
6920
5233f39b
PA
69212020-06-18 Pedro Alves <palves@redhat.com>
6922
6923 * tracectf.c (ctf_target_open): Switch to added thread instead of
6924 writing to inferior_ptid directly.
6925 (ctf_target::close): Use switch_to_no_thread instead of writing to
6926 inferior_ptid directly.
6927
087e161b
PA
69282020-06-18 Pedro Alves <palves@redhat.com>
6929
6930 * tracefile-tfile.c (tfile_target_open): Don't write to
6931 inferior_ptid directly, instead switch to added thread.
6932 (tfile_target::close): Use switch_to_no_thread instead of writing
6933 to inferior_ptid directly.
6934
7fb43e53
PA
69352020-06-18 Pedro Alves <palves@redhat.com>
6936
6937 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
6938 (procfs_target::detach): Use switch_to_no_thread
6939 instead of writing to inferior_ptid directly.
6940 (do_attach): Change return type to void. Switch to the added
6941 thread.
6942 (procfs_target::create_inferior): Switch to the added thread.
6943 (procfs_do_thread_registers): Don't write to inferior_ptid.
6944
18493a00
PA
69452020-06-18 Pedro Alves <palves@redhat.com>
6946
6947 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
6948 of writing to inferior_ptid.
6949 (scoped_restore_exited_inferior): Delete.
6950 (handle_vfork_child_exec_or_exit): Simplify using
6951 scoped_restore_current_pspace_and_thread. Use switch_to_thread
6952 instead of writing to inferior_ptid.
6953 (THREAD_STOPPED_BY): Delete.
6954 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
6955 (thread_stopped_by_hw_breakpoint): Delete.
6956 (save_waitstatus): Use
6957 scoped_restore_current_thread+switch_to_thread, and call
6958 target_stopped_by_watchpoint instead of
6959 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
6960 instead of thread_stopped_by_sw_breakpoint, and
6961 target_stopped_by_hw_breakpoint instead of
6962 thread_stopped_by_hw_breakpoint.
6963 (handle_inferior_event)
6964 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
6965 inferior_ptid directly, nor
6966 set_current_inferior/set_current_program_space. Use
6967 switch_to_thread / switch_to_inferior_no_thread instead.
6968
a0776b13
PA
69692020-06-18 Pedro Alves <palves@redhat.com>
6970
6971 * target.c (generic_mourn_inferior): Use switch_to_no_thread
6972 instead of writing to inferior_ptid.
6973
6155c136
PA
69742020-06-18 Pedro Alves <palves@redhat.com>
6975
6976 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
6977 added thread.
6978 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
6979 to the added thread.
6980 (inf_ptrace_target::detach_success): Use switch_to_no_thread
6981 instead of writing to inferior_ptid.
6982
c5316fc6
PA
69832020-06-18 Pedro Alves <palves@redhat.com>
6984
6985 * gdbarch-selftests.c: Include "progspace-and-thread.h".
6986 (register_to_value_test): Mock a program_space too. Heap-allocate
6987 the address space. Don't write to inferior_ptid. Use
6988 switch_to_thread instead.
6989
8df01799
PA
69902020-06-18 Pedro Alves <palves@redhat.com>
6991
6992 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
6993 Delete.
6994 (find_signalled_thread()): New, factored out from
6995 linux_make_corefile_notes and adjusted to handle exited threads.
6996 (linux_make_corefile_notes): Adjust to use the new
6997 find_signalled_thread.
6998
41792d68
PA
69992020-06-18 Pedro Alves <palves@redhat.com>
7000
7001 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
7002 of saving/restoring inferior_ptid.
7003
612f258a
TT
70042020-06-17 Tom Tromey <tom@tromey.com>
7005
7006 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
7007 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
7008 declare.
7009 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
7010
efb763a5
SM
70112020-06-15 Simon Marchi <simon.marchi@efficios.com>
7012
7013 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
7014 of partial symtabs.
7015
2951f6c0
SM
70162020-06-17 Simon Marchi <simon.marchi@efficios.com>
7017
7018 * regformats/reg-arm.dat: Remove.
7019 * regformats/reg-bfin.dat: Remove.
7020 * regformats/reg-cris.dat: Remove.
7021 * regformats/reg-crisv32.dat: Remove.
7022 * regformats/reg-m32r.dat: Remove.
7023 * regformats/reg-tilegx.dat: Remove.
7024 * regformats/reg-tilegx32.dat: Remove.
7025
7d458ea5
SM
70262020-06-17 Simon Marchi <simon.marchi@efficios.com>
7027
7028 * features/Makefile (WHICH): Remove arm files.
7029 * regformats/arm/arm-with-iwmmxt.dat: Remove.
7030 * regformats/arm/arm-with-neon.dat: Remove.
7031 * regformats/arm/arm-with-vfpv2.dat: Remove.
7032 * regformats/arm/arm-with-vfpv3.dat: Remove.
7033
3af96c0d
SM
70342020-06-17 Simon Marchi <simon.marchi@efficios.com>
7035
7036 * features/Makefile (XMLTOC): Remove rx.xml.
7037
b25e22fd
PA
70382020-06-17 Pedro Alves <palves@redhat.com>
7039
7040 * gdbthread.h (thread_control_state) <trap_expected> Update
7041 comments.
7042
a78a19b1
AB
70432020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7044
7045 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
7046 ada_language::lookup_symbol_nonlocal.
7047 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
7048 (ada_language::lookup_symbol_nonlocal): New member function,
7049 implementation from ada_lookup_symbol_nonlocal.
7050 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
7051 initializer.
7052 (cplus_language_data): Delete la_lookup_symbol_nonlocal
7053 initializer.
7054 (cplus_language::lookup_symbol_nonlocal): New member function.
7055 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
7056 (minimal_language_data) Likewise.
7057 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
7058 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
7059 initializer.
7060 (d_language::lookup_symbol_nonlocal): New member function.
7061 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
7062 initializer.
7063 (f_language::lookup_symbol_nonlocal): New member function.
7064 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
7065 initializer.
7066 * language.c (unknown_language_data): Likewise.
7067 (auto_language_data): Likewise.
7068 * language.h (language_data): Delete la_lookup_symbol_nonlocal
7069 field.
7070 (language_defn::lookup_symbol_nonlocal): New member function.
7071 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
7072 initializer.
7073 * objc-lang.c (objc_language_data): Likewise.
7074 * opencl-lang.c (opencl_language_data): Likewise.
7075 * p-lang.c (pascal_language_data): Likewise.
7076 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
7077 rust_language::lookup_symbol_nonlocal.
7078 (rust_language_data): Delete la_lookup_symbol_nonlocal
7079 initializer.
7080 (rust_language::lookup_symbol_nonlocal): New member function,
7081 implementation from rust_lookup_symbol_nonlocal.
7082 * symtab.c (lookup_symbol_aux): Update call to
7083 lookup_symbol_nonlocal.
7084 (basic_lookup_symbol_nonlocal): Rename to...
7085 (language_defn::lookup_symbol_nonlocal): ...this, and update
7086 header comment. Remove language_defn parameter, and replace with
7087 uses of `this'.
7088 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
7089
ebe2334e
AB
70902020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7091
7092 * ada-lang.c (ada_language_data): Delete la_value_print_inner
7093 initializer.
7094 (ada_language::value_print_inner): New member function.
7095 * c-lang.c (c_language_data): Delete la_value_print_inner
7096 initializer.
7097 (cplus_language_data): Likewise.
7098 (asm_language_data): Likewise.
7099 (minimal_language_data): Likewise.
7100 * d-lang.c (d_language_data): Likewise.
7101 (d_language::value_print_inner): New member function.
7102 * f-lang.c (f_language_data): Delete la_value_print_inner
7103 initializer.
7104 (f_language::value_print_inner): New member function.
7105 * f-lang.h (f_value_print_innner): Rename to...
7106 (f_value_print_inner): ...this (note spelling of 'inner').
7107 * f-valprint.c (f_value_print_innner): Rename to...
7108 (f_value_print_inner): ...this (note spelling of 'inner').
7109 * go-lang.c (go_language_data): Delete la_value_print_inner
7110 initializer.
7111 (go_language::value_print_inner): New member function.
7112 * language.c (language_defn::value_print_inner): Define new member
7113 function.
7114 (unk_lang_value_print_inner): Delete.
7115 (unknown_language_data): Delete la_value_print_inner initializer.
7116 (unknown_language::value_print_inner): New member function.
7117 (auto_language_data): Delete la_value_print_inner initializer.
7118 (auto_language::value_print_inner): New member function.
7119 * language.h (language_data): Delete la_value_print_inner field.
7120 (language_defn::value_print_inner): Delcare new member function.
7121 * m2-lang.c (m2_language_data): Delete la_value_print_inner
7122 initializer.
7123 (m2_language::value_print_inner): New member function.
7124 * objc-lang.c (objc_language_data): Delete la_value_print_inner
7125 initializer.
7126 * opencl-lang.c (opencl_language_data): Likewise.
7127 * p-lang.c (pascal_language_data): Likewise.
7128 (pascal_language::value_print_inner): New member function.
7129 * rust-lang.c (rust_language_data): Delete la_value_print_inner
7130 initializer.
7131 (rust_language::value_print_inner): New member function.
7132 * valprint.c (do_val_print): Update call to value_print_inner.
7133
a1d1fa3e
AB
71342020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7135
7136 * ada-lang.c (ada_language_data): Delete la_value_print
7137 initializer.
7138 (ada_language::value_print): New member function.
7139 * c-lang.c (c_language_data): Delete la_value_print initializer.
7140 (cplus_language_data): Likewise.
7141 (asm_language_data): Likewise.
7142 (minimal_language_data): Likewise.
7143 * d-lang.c (d_language_data): Likewise.
7144 * f-lang.c (f_language_data): Likewise.
7145 * go-lang.c (go_language_data): Likewise.
7146 * language.c (unk_lang_value_print): Delete.
7147 (language_defn::value_print): Define new member function.
7148 (unknown_language_data): Delete la_value_print initializer.
7149 (unknown_language::value_print): New member function.
7150 (auto_language_data): Delete la_value_print initializer.
7151 (auto_language::value_print): New member function.
7152 * language.h (language_data): Delete la_value_print field.
7153 (language_defn::value_print): Declare new member function.
7154 (LA_VALUE_PRINT): Update call to value_print.
7155 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
7156 * objc-lang.c (objc_language_data): Likewise.
7157 * opencl-lang.c (opencl_language_data): Likewise.
7158 * p-lang.c (pascal_language_data): Likewise.
7159 (pascal_language::value_print): New member function.
7160 * rust-lang.c (rust_language_data): Delete la_value_print
7161 initializer.
7162
f16a9f57
AB
71632020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7164
7165 * ada-lang.c (ada_watch_location_expression): Rename to
7166 ada_language::watch_location_expression.
7167 (ada_language_data): Delete la_watch_location_expression
7168 initializer.
7169 (ada_language::watch_location_expression): New member function,
7170 implementation from ada_watch_location_expression.
7171 * breakpoint.c (watch_command_1): Update call to
7172 watch_location_expression.
7173 * c-lang.c (c_watch_location_expression): Rename to
7174 language_defn::watch_location_expression.
7175 (c_language_data): Delete la_watch_location_expression
7176 initializer.
7177 (cplus_language_data): Likewise.
7178 (asm_language_data): Likewise.
7179 (minimal_language_data): Likewise.
7180 * c-lang.h (c_watch_location_expression): Delete declaration.
7181 * d-lang.c (d_language_data): Delete la_watch_location_expression
7182 initializer.
7183 * f-lang.c (f_language_data): Likewise.
7184 * go-lang.c (go_language_data): Likewise.
7185 * language.c (language_defn::watch_location_expression): Member
7186 function implementation from c_watch_location_expression.
7187 (unknown_language_data): Delete la_watch_location_expression
7188 initializer.
7189 (auto_language_data): Likewise.
7190 * language.h (language_data): Delete la_watch_location_expression
7191 field.
7192 (language_defn::watch_location_expression): Declare new member
7193 function.
7194 * m2-lang.c (m2_language_data): Delete
7195 la_watch_location_expression initializer.
7196 * objc-lang.c (objc_language_data): Likewise.
7197 * opencl-lang.c (opencl_language_data): Likewise.
7198 * p-lang.c (pascal_language_data): Likewise.
7199 * rust-lang.c (rust_watch_location_expression): Rename to
7200 rust_language::watch_location_expression.
7201 (rust_language_data): Delete la_watch_location_expression
7202 initializer.
7203 (rust_language::watch_location_expression): New member function,
7204 implementation from rust_watch_location_expression.
7205
7e56227d
AB
72062020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7207
7208 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
7209 ada_language::collect_symbol_completion_matches.
7210 (ada_language_data): Delete la_collect_symbol_completion_matches
7211 initializer.
7212 (ada_language::collect_symbol_completion_matches): New member
7213 function, implementation from
7214 ada_collect_symbol_completion_matches.
7215 * c-lang.c (c_language_data): Delete
7216 la_collect_symbol_completion_matches initializer.
7217 (cplus_language_data): Likewise.
7218 (asm_language_data): Likewise.
7219 (minimal_language_data): Likewise.
7220 * d-lang.c (d_language_data): Likewise.
7221 * f-lang.c (f_collect_symbol_completion_matches): Rename to
7222 f_language::collect_symbol_completion_matches.
7223 (f_language_data): Delete la_collect_symbol_completion_matches
7224 initializer.
7225 (f_language::collect_symbol_completion_matches) New member
7226 function, implementation from f_collect_symbol_completion_matches.
7227 * go-lang.c (go_language_data): Delete
7228 la_collect_symbol_completion_matches initializer.
7229 * language.c (unknown_language_data): Likewise.
7230 (auto_language_data): Likewise.
7231 * language.h (language_data): Delete
7232 la_collect_symbol_completion_matches field.
7233 (language_defn::collect_symbol_completion_matches): New member
7234 function.
7235 * m2-lang.c (m2_language_data): Delete
7236 la_collect_symbol_completion_matches initializer.
7237 * objc-lang.c (objc_language_data): Likewise.
7238 * opencl-lang.c (opencl_language_data): Likewise.
7239 * p-lang.c (pascal_language_data): Likewise.
7240 * rust-lang.c (rust_language_data): Likewise.
7241 * symtab.c (default_collect_symbol_completion_matches): Delete.
7242 (collect_symbol_completion_matches): Update call to
7243 collect_symbol_completion_matches.
7244 (collect_symbol_completion_matches_type): Likewise.
7245 * symtab.h (default_collect_symbol_completion_matches): Delete
7246 declaration.
7247
53fc67f8
AB
72482020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7249
7250 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
7251 (ada_language_data): Delete la_word_break_characters initializer.
7252 (ada_language::word_break_characters): New member function.
7253 * c-lang.c (c_language_data): Delete la_word_break_characters
7254 initializer.
7255 (cplus_language_data): Likewise.
7256 (asm_language_data): Likewise.
7257 (minimal_language_data): Likewise.
7258 * completer.c: Update global comment.
7259 (advance_to_expression_complete_word_point): Update call to
7260 word_break_characters.
7261 (complete_files_symbols): Likewise.
7262 (complete_line_internal_1): Likewise.
7263 (default_completer_handle_brkchars): Likewise.
7264 (skip_quoted_chars): Likewise.
7265 * d-lang.c (d_language_data): Delete la_word_break_characters
7266 initializer.
7267 * f-lang.c (f_word_break_characters): Delete.
7268 (f_language_data): Delete la_word_break_characters initializer.
7269 (f_language::word_break_characters): New member function.
7270 * go-lang.c (go_language_data): Delete la_word_break_characters
7271 initializer.
7272 * language.c (unknown_language_data): Likewise.
7273 (auto_language_data): Likewise.
7274 * language.h (default_word_break_characters): Move declaration to
7275 earlier in the file.
7276 (language_data): Delete la_word_break_characters field.
7277 (language_defn::word_break_characters): New member function.
7278 * m2-lang.c (m2_language_data): Delete la_word_break_characters
7279 initializer.
7280 * objc-lang.c (objc_language_data): Likewise.
7281 * opencl-lang.c (opencl_language_data): Likewise.
7282 * p-lang.c (pascal_language_data): Likewise.
7283 * rust-lang.c (rust_language_data): Likewise.
7284
c9debfb9
AB
72852020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7286
7287 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
7288 (ada_language_data): Delete la_get_symbol_name_matcher
7289 initializer.
7290 (language_defn::get_symbol_name_matcher_inner): New member
7291 function.
7292 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
7293 initializer.
7294 (cplus_language_data): Likewise.
7295 (cplus_language::get_symbol_name_matcher_inner): New member
7296 function.
7297 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
7298 (minimal_language_data): Likewise.
7299 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
7300 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
7301 initializer.
7302 * dictionary.c (iter_match_first_hashed): Update call to
7303 get_symbol_name_matcher.
7304 (iter_match_next_hashed): Likewise.
7305 (iter_match_next_linear): Likewise.
7306 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
7307 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
7308 initializer.
7309 (f_language::get_symbol_name_matcher_inner): New member function.
7310 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
7311 initializer.
7312 * language.c (default_symbol_name_matcher): Update header comment,
7313 make static.
7314 (language_defn::get_symbol_name_matcher): New definition.
7315 (language_defn::get_symbol_name_matcher_inner): Likewise.
7316 (get_symbol_name_matcher): Delete.
7317 (unknown_language_data): Delete la_get_symbol_name_matcher
7318 initializer.
7319 (auto_language_data): Likewise.
7320 * language.h (language_data): Delete la_get_symbol_name_matcher
7321 field.
7322 (language_defn::get_symbol_name_matcher): New member function.
7323 (language_defn::get_symbol_name_matcher_inner): Likewise.
7324 (default_symbol_name_matcher): Delete declaration.
7325 * linespec.c (find_methods): Update call to
7326 get_symbol_name_matcher.
7327 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
7328 initializer.
7329 * minsyms.c (lookup_minimal_symbol): Update call to
7330 get_symbol_name_matcher.
7331 (iterate_over_minimal_symbols): Likewise.
7332 * objc-lang.c (objc_language_data): Delete
7333 la_get_symbol_name_matcher initializer.
7334 * opencl-lang.c (opencl_language_data): Likewise.
7335 * p-lang.c (pascal_language_data): Likewise.
7336 * psymtab.c (psymbol_name_matches): Update call to
7337 get_symbol_name_matcher.
7338 * rust-lang.c (rust_language_data): Delete
7339 la_get_symbol_name_matcher initializer.
7340 * symtab.c (symbol_matches_search_name): Update call to
7341 get_symbol_name_matcher.
7342 (compare_symbol_name): Likewise.
7343
9a49ad8c
AB
73442020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7345
7346 * ada-lang.c (ada_language_data): Delete la_compute_program
7347 initializer.
7348 * c-lang.c (c_language_data): Likewise.
7349 (c_language::compute_program): New member function.
7350 (cplus_language_data): Delete la_compute_program initializer.
7351 (cplus_language::compute_program): New member function.
7352 (asm_language_data): Delete la_compute_program initializer.
7353 (minimal_language_data): Likewise.
7354 * c-lang.h (c_compute_program): Update comment.
7355 (cplus_compute_program): Likewise.
7356 * compile/compile-c-support.c (c_compute_program): Likewise.
7357 (cplus_compute_program): Likewise.
7358 * compile/compile.c (compile_to_object): Update call to
7359 la_compute_program.
7360 * d-lang.c (d_language_data): Delete la_compute_program
7361 initializer.
7362 * f-lang.c (f_language_data): Likewise.
7363 * go-lang.c (go_language_data): Likewise.
7364 * language.c (unknown_language_data): Likewise.
7365 (auto_language_data): Likewise.
7366 * language.h (language_data): Delete la_compute_program field.
7367 (language_defn::compute_program): New member function.
7368 * m2-lang.c (m2_language_data): Delete la_compute_program
7369 initializer.
7370 * objc-lang.c (objc_language_data): Likewise.
7371 * opencl-lang.c (opencl_language_data): Likewise.
7372 * p-lang.c (pascal_language_data): Likewise.
7373 * rust-lang.c (rust_language_data): Likewise.
7374
eff93b4d
AB
73752020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7376
7377 * ada-lang.c (ada_language_data) Delete
7378 la_class_name_from_physname initializer.
7379 * c-lang.c (c_language_data): Likewise.
7380 (cplus_language_data): Likewise.
7381 (cplus_language::class_name_from_physname): New member function.
7382 (asm_language_data): Delete la_class_name_from_physname
7383 initializer.
7384 (minimal_language_data): Likewise.
7385 * d-lang.c (d_language_data): Likewise.
7386 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
7387 method on language_defn class.
7388 (guess_full_die_structure_name): Likewise.
7389 * f-lang.c (f_language_data): Delete la_class_name_from_physname
7390 initializer.
7391 * go-lang.c (go_language_data): Likewise.
7392 * language.c (language_class_name_from_physname): Delete.
7393 (unk_lang_class_name): Delete.
7394 (unknown_language_data): Delete la_class_name_from_physname
7395 initializer.
7396 (auto_language_data): Likewise.
7397 * language.h (language_data): Delete la_class_name_from_physname
7398 field.
7399 (language_defn::class_name_from_physname): New function.
7400 (language_class_name_from_physname): Delete declaration.
7401 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
7402 initializer.
7403 * objc-lang.c (objc_language_data): Likewise.
7404 * opencl-lang.c (opencl_language_data): Likewise.
7405 * p-lang.c (pascal_language_data): Likewise.
7406 * rust-lang.c (rust_language_data): Likewise.
7407
de543742
TT
74082020-06-16 Tom Tromey <tom@tromey.com>
7409
7410 * tui/tui-data.h (STATUS_NAME): New macro.
7411 * tui/tui-layout.c (tui_remove_some_windows)
7412 (initialize_known_windows, tui_register_window)
7413 (tui_layout_split::remove_windows, initialize_layouts)
7414 (tui_new_layout_command): Don't use hard-coded window names.
7415
a350efd4
TT
74162020-06-16 Tom Tromey <tom@tromey.com>
7417
7418 PR tui/25348:
7419 * tui/tui.c (tui_ensure_readline_initialized): Rename from
7420 tui_initialize_readline. Only run once. Call rl_initialize.
7421 * tui/tui.h (tui_ensure_readline_initialized): Rename from
7422 tui_initialize_readline.
7423 * tui/tui-io.c (tui_setup_io): Call
7424 tui_ensure_readline_initialized.
7425 * tui/tui-interp.c (tui_interp::init): Update.
7426
39ec0490
TT
74272020-06-16 Tom Tromey <tom@tromey.com>
7428
7429 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
7430 Also preserve the status window.
7431
d2d1ea20
TT
74322020-06-16 Tom Tromey <tom@tromey.com>
7433
7434 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
7435 where m_window==nullptr.
7436
66920317
TT
74372020-06-15 Tom Tromey <tromey@adacore.com>
7438
7439 * windows-nat.c (windows_nat::handle_output_debug_string):
7440 Update.
7441 (windows_nat::handle_ms_vc_exception): Update.
7442 * target.h (target_read_string): Change API.
7443 * target.c (target_read_string): Change API.
7444 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
7445 Update.
7446 * solib-frv.c (frv_current_sos): Update.
7447 * solib-dsbt.c (dsbt_current_sos): Update.
7448 * solib-darwin.c (darwin_current_sos): Update.
7449 * linux-thread-db.c (inferior_has_bug): Update.
7450 * expprint.c (print_subexp_standard): Update.
7451 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
7452 (ada_exception_message_1): Update.
7453
a5d871dd
TT
74542020-06-15 Tom Tromey <tromey@adacore.com>
7455
7456 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
7457
670e35fa
TT
74582020-06-15 Tom Tromey <tromey@adacore.com>
7459
7460 * valprint.c (read_string): Update comment.
7461 * target.c (MIN): Remove.
7462 (target_read_string): Rewrite.
7463
f5272a3b
TT
74642020-06-15 Tom Tromey <tromey@adacore.com>
7465
7466 * corefile.c (read_memory_string): Remove.
7467 * ada-valprint.c (ada_value_print_ptr): Update.
7468 * ada-lang.h (ada_tag_name): Change return type.
7469 * ada-lang.c (type_from_tag): Update.
7470 (ada_tag_name_from_tsd): Change return type. Use
7471 target_read_string.
7472 (ada_tag_name): Likewise.
7473 * gdbcore.h (read_memory_string): Don't declare.
7474
2c074f49
HD
74752020-06-14 Hannes Domani <ssbssa@yahoo.de>
7476
7477 * symtab.c (rbreak_command): Ignore Windows drive colon.
7478
6a17d503
SM
74792020-06-12 Simon Marchi <simon.marchi@efficios.com>
7480
7481 * NEWS: Mention removed GDBserver host support.
7482
453c733f
NC
74832020-06-12 Nelson Chu <nelson.chu@sifive.com>
7484
7485 * features/riscv/rebuild-csr-xml.sh: Updated.
7486
2b4e6a3f
TT
74872020-06-11 Tom Tromey <tom@tromey.com>
7488
7489 PR gdb/18318:
7490 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
7491
4412332f
JG
74922020-06-09 Jonny Grant <jg@jguk.org>
74932020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
7494
7495 * main.c (captured_main_1): Don't print new line after help.
7496 (print_gdb_help): add mailing list and IRC channel information
7497 to --help. Add new lines between items in the footer. Remove
7498 quotes around bug url.
7499
2f33032a
KS
75002020-06-11 Keith Seitz <keiths@redhat.com>
7501
7502 PR gdb/21356
7503 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
7504 Resolve typedefs for type length calculations.
7505
7ab96794
TV
75062020-06-10 Tom de Vries <tdevries@suse.de>
7507
7508 PR ada/24713
7509 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
7510 (write_psymbols): Enable .gdb_index for ada.
7511 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
7512 ada.
7513
e5f3ece2
TV
75142020-06-10 Tom de Vries <tdevries@suse.de>
7515
7516 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
7517 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
7518 namei" instead of "const char *name" argument.
7519 (dw2_map_matching_symbols): Use "offset_type namei" variant of
7520 dw2_symtab_iter_init.
7521
940da03e
SM
75222020-06-08 Simon Marchi <simon.marchi@efficios.com>
7523
7524 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
7525 to use type::field and field::type instead.
7526
b6cdac4b
SM
75272020-06-08 Simon Marchi <simon.marchi@efficios.com>
7528
7529 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
7530 to use field::type instead.
7531
5d14b6e5
SM
75322020-06-08 Simon Marchi <simon.marchi@efficios.com>
7533
7534 * gdbtypes.h (struct field) <type, set_type>: New methods.
7535 Rename `type` field to...
7536 <m_type>: ... this. Change references throughout to use type or
7537 set_type methods.
7538 (FIELD_TYPE): Use field::type. Change call sites that modify
7539 the field's type to use field::set_type instead.
7540
3d967001
SM
75412020-06-08 Simon Marchi <simon.marchi@efficios.com>
7542
7543 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
7544 to use type::index_type instead.
7545
262abc0d
SM
75462020-06-08 Simon Marchi <simon.marchi@efficios.com>
7547
7548 * gdbtypes.h (struct type) <index_type, set_index_type>: New
7549 methods.
7550 (TYPE_INDEX_TYPE): Use type::index_type.
7551 * gdbtypes.c (create_array_type_with_stride): Likewise.
7552
82836c92
TT
75532020-06-07 Tom Tromey <tom@tromey.com>
7554
7555 * valprint.c (generic_val_print_float): Remove "embedded_offset"
7556 parameter.
7557 (generic_value_print): Update.
7558
940dace9
AB
75592020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
7560
7561 Revert commit 982a38f60b0.
7562 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
7563
982a38f6
AB
75642020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
7565
7566 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
7567 avoid use after free.
7568
82f06518
TV
75692020-06-05 Tom de Vries <tdevries@suse.de>
7570
7571 * NEWS: Fix typos.
7572
f8c41851
SM
75732020-06-04 Simon Marchi <simon.marchi@efficios.com>
7574
7575 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
7576 the per_bfd object.
7577 (dwarf2_read_debug_names): Likewise.
7578 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
7579 object when re-using a per_bfd object with an index.
7580
f9b5d5ea
TV
75812020-06-03 Tom de Vries <tdevries@suse.de>
7582
7583 PR symtab/26046
7584 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
7585 children for C++.
7586 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
7587 DW_TAG_subprogram.
7588
f6eee2d0
AB
75892020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7590
7591 * ada-lang.c (ada_language_data): Delete skip_trampoline
7592 initializer.
7593 * c-lang.c (c_language_data): Likewise.
7594 (cplus_language_data): Likewise.
7595 (cplus_language::skip_trampoline): New member function.
7596 (asm_language_data): Delete skip_trampoline initializer.
7597 (minimal_language_data): Likewise.
7598 * d-lang.c (d_language_data): Likewise.
7599 * f-lang.c (f_language_data): Likewise.
7600 * go-lang.c (go_language_data): Likewise.
7601 * language.c (unk_lang_trampoline): Delete function.
7602 (skip_language_trampoline): Update.
7603 (unknown_language_data): Delete skip_trampoline initializer.
7604 (auto_language_data): Likewise.
7605 * language.h (language_data): Delete skip_trampoline field.
7606 (language_defn::skip_trampoline): New function.
7607 * m2-lang.c (m2_language_data): Delete skip_trampoline
7608 initializer.
7609 * objc-lang.c (objc_skip_trampoline): Delete function, move
7610 implementation to objc_language::skip_trampoline.
7611 (objc_language_data): Delete skip_trampoline initializer.
7612 (objc_language::skip_trampoline): New member function with
7613 implementation from objc_skip_trampoline.
7614 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
7615 initializer.
7616 * p-lang.c (pascal_language_data): Likewise.
7617 * rust-lang.c (rust_language_data): Likewise.
7618
0a50df5d
AB
76192020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7620
7621 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
7622 (ada_language::demangle): New member function.
7623 * c-lang.c (c_language_data): Delete la_demangle initializer.
7624 (cplus_language_data): Delete la_demangle initializer.
7625 (cplus_language::demangle): New member function.
7626 (asm_language_data): Delete la_demangle initializer.
7627 (minimal_language_data): Delete la_demangle initializer.
7628 * d-lang.c (d_language_data): Delete la_demangle initializer.
7629 (d_language::demangle): New member function.
7630 * f-lang.c (f_language_data): Delete la_demangle initializer.
7631 (f_language::demangle): New member function.
7632 * go-lang.c (go_language_data): Delete la_demangle initializer.
7633 (go_language::demangle): New member function.
7634 * language.c (language_demangle): Update.
7635 (unk_lang_demangle): Delete.
7636 (unknown_language_data): Delete la_demangle initializer.
7637 (unknown_language::demangle): New member function.
7638 (auto_language_data): Delete la_demangle initializer.
7639 (auto_language::demangle): New member function.
7640 * language.h (language_data): Delete la_demangle field.
7641 (language_defn::demangle): New function.
7642 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
7643 * objc-lang.c (objc_language_data): Delete la_demangle
7644 initializer.
7645 (objc_language::demangle): New member function.
7646 * opencl-lang.c (opencl_language_data): Delete la_demangle
7647 initializer.
7648 * p-lang.c (pascal_language_data): Likewise.
7649 * rust-lang.c (rust_language_data): Likewise.
7650 (rust_language::demangle): New member function.
7651
fbfb0a46
AB
76522020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7653
7654 * ada-lang.c (ada_language_data): Delete la_print_type
7655 initializer.
7656 (ada_language::print_type): New member function.
7657 * c-lang.c (c_language_data): Delete la_print_type initializer.
7658 (c_language::print_type): New member function.
7659 (cplus_language_data): Delete la_print_type initializer.
7660 (cplus_language::print_type): New member function.
7661 (asm_language_data): Delete la_print_type initializer.
7662 (asm_language::print_type): New member function.
7663 (minimal_language_data): Delete la_print_type initializer.
7664 (minimal_language::print_type): New member function.
7665 * d-lang.c (d_language_data): Delete la_print_type initializer.
7666 (d_language::print_type): New member function.
7667 * f-lang.c (f_language_data): Delete la_print_type initializer.
7668 (f_language::print_type): New member function.
7669 * go-lang.c (go_language_data): Delete la_print_type initializer.
7670 (go_language::print_type): New member function.
7671 * language.c (unk_lang_print_type): Delete.
7672 (unknown_language_data): Delete la_print_type initializer.
7673 (unknown_language::print_type): New member function.
7674 (auto_language_data): Delete la_print_type initializer.
7675 (auto_language::print_type): New member function.
7676 * language.h (language_data): Delete la_print_type field.
7677 (language_defn::print_type): New function.
7678 (LA_PRINT_TYPE): Update.
7679 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
7680 (m2_language::print_type): New member function.
7681 * objc-lang.c (objc_language_data): Delete la_print_type
7682 initializer.
7683 (objc_language::print_type): New member function.
7684 * opencl-lang.c (opencl_print_type): Delete, implementation moved
7685 to opencl_language::print_type.
7686 (opencl_language_data): Delete la_print_type initializer.
7687 (opencl_language::print_type): New member function, implementation
7688 from opencl_print_type.
7689 * p-lang.c (pascal_language_data): Delete la_print_type
7690 initializer.
7691 (pascal_language::print_type): New member function.
7692 * rust-lang.c (rust_print_type): Delete, implementation moved to
7693 rust_language::print_type.
7694 (rust_language_data): Delete la_print_type initializer.
7695 (rust_language::print_type): New member function, implementation
7696 from rust_print_type.
7697
6f827019
AB
76982020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7699
7700 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
7701 implementation moves to...
7702 (ada_language::sniff_from_mangled_name): ...here. Update return
7703 type.
7704 (ada_language_data): Delete la_sniff_from_mangled_name
7705 initializer.
7706 * c-lang.c (c_language_data): Likewise.
7707 (cplus_language_data): Likewise.
7708 (cplus_language::sniff_from_mangled_name): New member function,
7709 implementation taken from gdb_sniff_from_mangled_name.
7710 (asm_language_data): Delete la_sniff_from_mangled_name
7711 initializer.
7712 (minimal_language_data): Likewise.
7713 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
7714 implementation moves to cplus_language::sniff_from_mangled_name.
7715 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
7716 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
7717 moves to...
7718 (d_language::sniff_from_mangled_name): ...here.
7719 (d_language_data): Delete la_sniff_from_mangled_name initializer.
7720 * f-lang.c (f_language_data): Likewise.
7721 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
7722 moves to...
7723 (go_language::sniff_from_mangled_name): ...here.
7724 (go_language_data): Delete la_sniff_from_mangled_name initializer.
7725 * language.c (language_sniff_from_mangled_name): Delete.
7726 (unknown_language_data): Delete la_sniff_from_mangled_name
7727 initializer.
7728 (auto_language_data): Likewise.
7729 * language.h (language_data): Delete la_sniff_from_mangled_name
7730 field.
7731 (language_defn::sniff_from_mangled_name): New function.
7732 (language_sniff_from_mangled_name): Delete declaration.
7733 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
7734 field.
7735 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
7736 implementation moves to...
7737 (objc_language::sniff_from_mangled_name): ...here.
7738 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
7739 * opencl-lang.c (opencl_language_data): Likewise.
7740 * p-lang.c (pascal_language_data): Likewise.
7741 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
7742 implementation moves to...
7743 (rust_language::sniff_from_mangled_name): ...here.
7744 (rust_language_data): Delete la_sniff_from_mangled_name
7745 initializer.
7746 * symtab.c (symbol_find_demangled_name): Call
7747 sniff_from_mangled_name member function.
7748
fb8006fd
AB
77492020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7750
7751 * ada-lang.c (ada_language_data): Delete la_search_name_hash
7752 initializer.
7753 * c-lang.c (c_language_data): Likewise.
7754 (cplus_language_data): Likewise.
7755 (cplus_language::search_name_hash): New member function.
7756 (asm_language_data): Delete la_search_name_hash initializer.
7757 (minimal_language_data): Likewise.
7758 * d-lang.c (d_language_data): Likewise.
7759 * dictionary.c (default_search_name_hash): Rename to...
7760 (language_defn::search_name_hash): ...this.
7761 * f-lang.c (f_language_data): Likewise.
7762 (f_language::search_name_hash): New member function.
7763 * go-lang.c (go_language_data): Delete la_search_name_hash
7764 initializer.
7765 * language.c (unknown_language_data): Likewise.
7766 (auto_language_data): Likewise.
7767 * language.h (struct language_data): Delete la_search_name_hash
7768 field.
7769 (language_defn::search_name_hash): Declare new member function.
7770 (default_search_name_hash): Delete declaration.
7771 * m2-lang.c (m2_language_data): Delete la_search_name_hash
7772 initializer.
7773 * objc-lang.c (objc_language_data): Likewise.
7774 * opencl-lang.c (opencl_language_data): Likewise.
7775 * p-lang.c (pascal_language_data): Likewise.
7776 * rust-lang.c (rust_language_data): Likewise.
7777 * symtab.c (search_name_hash): Update call.
7778
8e25bafe
AB
77792020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7780
7781 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
7782 initializer.
7783 * c-lang.c (class compile_instance): Declare.
7784 (c_language_data): Delete la_get_compile_instance initializer.
7785 (c_language::get_compile_instance): New member function.
7786 (cplus_language_data): Delete la_get_compile_instance initializer.
7787 (cplus_language::get_compile_instance): New member function.
7788 (asm_language_data): Delete la_get_compile_instance initializer.
7789 (minimal_language_data): Likewise.
7790 * c-lang.h (c_get_compile_context): Update comment.
7791 (cplus_get_compile_context): Update comment.
7792 * compile/compile.c (compile_to_object): Update calls, don't rely
7793 on function pointer being NULL.
7794 * d-lang.c (d_language_data): Delete la_get_compile_instance
7795 initializer.
7796 * f-lang.c (f_language_data): Likewise.
7797 * go-lang.c (go_language_data): Likewise.
7798 * language.c (unknown_language_data): Likewise.
7799 (auto_language_data): Likewise.
7800 * language.h (language_data): Delete la_get_compile_instance field.
7801 (language_defn::get_compile_instance): New member function.
7802 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
7803 initializer.
7804 * objc-lang.c (objc_language_data): Likewise.
7805 * opencl-lang.c (opencl_language_data): Likewise.
7806 * p-lang.c (pascal_language_data): Likewise.
7807 * rust-lang.c (rust_language_data): Likewise.
7808
4009ee92
AB
78092020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7810
7811 * ada-lang.c (ada_add_all_symbols): Update comment.
7812 (ada_iterate_over_symbols): Delete, move implementation to...
7813 (ada_language::iterate_over_symbols): ...here, a new member
7814 function, rewrite to use range based for loop.
7815 (ada_language_data): Delete la_iterate_over_symbols initializer.
7816 * c-lang.c (c_language_data): Likewise.
7817 (cplus_language_data): Likewise.
7818 (asm_language_data): Likewise.
7819 (minimal_language_data): Likewise.
7820 * d-lang.c (d_language_data): Likewise.
7821 * f-lang.c (f_language_data): Likewise.
7822 * go-lang.c (go_language_data): Likewise.
7823 * language.c (unknown_language_data): Likewise.
7824 (auto_language_data): Likewise.
7825 * language.h (language_data): Delete la_iterate_over_symbols field.
7826 (language_defn::iterate_over_symbols): New member function.
7827 (LA_ITERATE_OVER_SYMBOLS): Update.
7828 * linespec.c (iterate_over_all_matching_symtabs): Update.
7829 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
7830 initializer.
7831 * objc-lang.c (objc_language_data): Likewise.
7832 * opencl-lang.c (opencl_language_data): Likewise.
7833 * p-lang.c (pascal_language_data): Likewise.
7834 * rust-lang.c (rust_language_data): Likewise.
7835
54f4ca46
AB
78362020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7837
7838 * ada-lang.c (ada_language_data): Delete
7839 la_lookup_transparent_type initializer.
7840 * c-lang.c (c_language_data): Likewise.
7841 (cplus_language_data): Likewise.
7842 (cplus_language::lookup_transparent_type): New member function.
7843 (asm_language_data): Delete la_lookup_transparent_type
7844 initializer.
7845 (minimal_language_data): Likewise.
7846 * d-lang.c (d_language_data): Likewise.
7847 * f-lang.c (f_language_data): Likewise.
7848 * go-lang.c (go_language_data): Likewise.
7849 * language.c (unknown_language_data): Likewise.
7850 (auto_language_data): Likewise.
7851 * language.h (struct language_data): Delete
7852 la_lookup_transparent_type field.
7853 (language_defn::lookup_transparent_type): New member function.
7854 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
7855 initializer.
7856 * objc-lang.c (objc_language_data): Likewise.
7857 * opencl-lang.c (opencl_language_data): Likewise.
7858 * p-lang.c (pascal_language_data): Likewise.
7859 * rust-lang.c (rust_language_data): Likewise.
7860 * symtab.c (symbol_matches_domain): Update call.
7861
1fb314aa
AB
78622020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7863
7864 * ada-lang.c (ada_language_arch_info): Delete function, move
7865 implementation to...
7866 (ada_language::language_arch_info): ...here, a new member
7867 function.
7868 (ada_language_data): Delete la_language_arch_info.
7869 * c-lang.c (c_language_data): Likewise.
7870 (c_language::language_arch_info): New member function.
7871 (cplus_language_arch_info): Delete function, move
7872 implementation to...
7873 (cplus_language::language_arch_info): ...here, a new member
7874 function.
7875 (cplus_language_data): Delete la_language_arch_info.
7876 (asm_language_data): Likewise.
7877 (asm_language::language_arch_info): New member function.
7878 (minimal_language_data): Delete la_language_arch_info.
7879 (minimal_language::language_arch_info): New member function.
7880 * d-lang.c (d_language_arch_info): Delete function, move
7881 implementation to...
7882 (d_language::language_arch_info): ...here, a new member
7883 function.
7884 (d_language_data): Delete la_language_arch_info.
7885 * f-lang.c (f_language_arch_info): Delete function, move
7886 implementation to...
7887 (f_language::language_arch_info): ...here, a new member
7888 function.
7889 (f_language_data): Delete la_language_arch_info.
7890 * go-lang.c (go_language_arch_info): Delete function, move
7891 implementation to...
7892 (go_language::language_arch_info): ...here, a new member
7893 function.
7894 (go_language_data): Delete la_language_arch_info.
7895 * language.c (unknown_language_data): Likewise.
7896 (unknown_language::language_arch_info): New member function.
7897 (auto_language_data): Delete la_language_arch_info.
7898 (auto_language::language_arch_info): New member function.
7899 (language_gdbarch_post_init): Update call to
7900 la_language_arch_info.
7901 * language.h (language_data): Delete la_language_arch_info
7902 function pointer.
7903 (language_defn::language_arch_info): New function.
7904 * m2-lang.c (m2_language_arch_info): Delete function, move
7905 implementation to...
7906 (m2_language::language_arch_info): ...here, a new member
7907 function.
7908 (m2_language_data): Delete la_language_arch_info.
7909 * objc-lang.c (objc_language_arch_info): Delete function, move
7910 implementation to...
7911 (objc_language::language_arch_info): ...here, a new member
7912 function.
7913 (objc_language_data): Delete la_language_arch_info.
7914 * opencl-lang.c (opencl_language_arch_info): Delete function, move
7915 implementation to...
7916 (opencl_language::language_arch_info): ...here, a new member
7917 function.
7918 (opencl_language_data): Delete la_language_arch_info.
7919 * p-lang.c (pascal_language_arch_info): Delete function, move
7920 implementation to...
7921 (pascal_language::language_arch_info): ...here, a new member
7922 function.
7923 (pascal_language_data): Delete la_language_arch_info.
7924 * rust-lang.c (rust_language_arch_info): Delete function, move
7925 implementation to...
7926 (rust_language::language_arch_info): ...here, a new member
7927 function.
7928 (rust_language_data): Delete la_language_arch_info.
7929
48448202
AB
79302020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7931
7932 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
7933 initializer.
7934 * c-lang.c (c_language_data): Likewise.
7935 (cplus_language_data): Likewise.
7936 (cplus_language::pass_by_reference_info): New method.
7937 (asm_language_data): Delete la_pass_by_reference initializer.
7938 (minimal_language_data): Likewise.
7939 * cp-abi.c (cp_pass_by_reference): Remove use of
7940 default_pass_by_reference.
7941 * d-lang.c (d_language_data): Likewise.
7942 * f-lang.c (f_language_data): Likewise.
7943 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
7944 default_pass_by_reference.
7945 * go-lang.c (go_language_data): Likewise.
7946 * language.c (language_pass_by_reference): Update.
7947 (default_pass_by_reference): Delete.
7948 (unknown_language_data): Delete la_pass_by_reference
7949 initializer.
7950 (auto_language_data): Likewise.
7951 * language.h (struct language_data): Delete la_pass_by_reference
7952 field.
7953 (language_defn::pass_by_reference_info): New member function.
7954 (default_pass_by_reference): Delete declaration.
7955 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
7956 initializer.
7957 * objc-lang.c (objc_language_data): Likewise.
7958 * opencl-lang.c (opencl_language_data): Likewise.
7959 * p-lang.c (pascal_language_data): Likewise.
7960 * rust-lang.c (rust_language_data): Likewise.
7961
15e5fd35
AB
79622020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7963
7964 * ada-lang.c (ada_read_var_value): Delete function, move
7965 implementation to...
7966 (ada_language::read_var_value): ...here.
7967 (ada_language_data): Delete la_read_var_value initializer.
7968 * c-lang.c (c_language_data): Likewise.
7969 (cplus_language_data): Likewise.
7970 (minimal_language_data): Likewise.
7971 * d-lang.c (d_language_data): Likewise.
7972 * f-lang.c (f_language_data): Likewise.
7973 * findvar.c (default_read_var_value): Rename to...
7974 (language_defn::read_var_value): ...this.
7975 * findvar.c (read_var_value): Update header comment, and change to
7976 call member function instead of function pointer.
7977 * go-lang.c (go_language_data): Likewise.
7978 * language.c (unknown_language_data): Delete la_read_var_value
7979 initializer.
7980 (auto_language_data): Likewise.
7981 * language.h (struct language_data): Delete la_read_var_value
7982 field.
7983 (language_defn::read_var_value): New member function.
7984 (default_read_var_value): Delete declaration.
7985 * m2-lang.c (m2_language_data): Delete la_read_var_value
7986 initializer.
7987 * objc-lang.c (objc_language_data): Likewise.
7988 * opencl-lang.c (opencl_language_data): Likewise.
7989 * p-lang.c (pascal_language_data): Likewise.
7990 * rust-lang.c (rust_language_data): Likewise.
7991 * value.h (default_read_var_value): Delete declaration.
7992
5bd40f2a
AB
79932020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7994
7995 * ada-lang.c (ada_print_array_index): Delete function, move
7996 implementation to...
7997 (ada_language::print_array_index): ...here.
7998 (ada_language_data): Delete la_print_array_index initializer.
7999 * c-lang.c (c_language_data): Likewise.
8000 (cplus_language_data): Likewise.
8001 (minimal_language_data): Likewise.
8002 * d-lang.c (d_language_data): Likewise.
8003 * f-lang.c (f_language_data): Likewise.
8004 * go-lang.c (go_language_data): Likewise.
8005 * language.c (default_print_array_index): Delete function, move
8006 implementation to...
8007 (language_defn::print_array_index): ...here.
8008 (unknown_language_data): Delete la_print_array_index initializer.
8009 (auto_language_data): Likewise.
8010 * language.h (struct language_data): Delete la_print_array_index
8011 field.
8012 (language_defn::print_array_index): New member function.
8013 (LA_PRINT_ARRAY_INDEX): Update.
8014 (default_print_array_index): Delete declaration.
8015 * m2-lang.c (m2_language_data): Delete la_print_array_index
8016 initializer.
8017 * objc-lang.c (objc_language_data): Likewise.
8018 * opencl-lang.c (opencl_language_data): Likewise.
8019 * p-lang.c (pascal_language_data): Likewise.
8020 * rust-lang.c (rust_language_data): Likewise.
8021
0874fd07
AB
80222020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8023
8024 * gdb/ada-lang.c (ada_language_defn): Convert to...
8025 (ada_language_data): ...this.
8026 (class ada_language): New class.
8027 (ada_language_defn): New static global.
8028 * gdb/c-lang.c (c_language_defn): Convert to...
8029 (c_language_data): ...this.
8030 (class c_language): New class.
8031 (c_language_defn): New static global.
8032 (cplus_language_defn): Convert to...
8033 (cplus_language_data): ...this.
8034 (class cplus_language): New class.
8035 (cplus_language_defn): New static global.
8036 (asm_language_defn): Convert to...
8037 (asm_language_data): ...this.
8038 (class asm_language): New class.
8039 (asm_language_defn): New static global.
8040 (minimal_language_defn): Convert to...
8041 (minimal_language_data): ...this.
8042 (class minimal_language): New class.
8043 (minimal_language_defn): New static global.
8044 * gdb/d-lang.c (d_language_defn): Convert to...
8045 (d_language_data): ...this.
8046 (class d_language): New class.
8047 (d_language_defn): New static global.
8048 * gdb/f-lang.c (f_language_defn): Convert to...
8049 (f_language_data): ...this.
8050 (class f_language): New class.
8051 (f_language_defn): New static global.
8052 * gdb/go-lang.c (go_language_defn): Convert to...
8053 (go_language_data): ...this.
8054 (class go_language): New class.
8055 (go_language_defn): New static global.
8056 * gdb/language.c (unknown_language_defn): Remove declaration.
8057 (current_language): Initialize to nullptr, real initialization is
8058 moved to _initialize_language.
8059 (languages): Delete global.
8060 (language_defn::languages): Define.
8061 (set_language_command): Use language_defn::languages.
8062 (set_language): Likewise.
8063 (range_error): Likewise.
8064 (language_enum): Likewise.
8065 (language_def): Likewise.
8066 (add_set_language_command): Use language_def::languages for the
8067 language list, and language_def to lookup language pointers.
8068 (skip_language_trampoline): Use language_defn::languages.
8069 (unknown_language_defn): Convert to...
8070 (unknown_language_data): ...this.
8071 (class unknown_language): New class.
8072 (unknown_language_defn): New static global.
8073 (auto_language_defn): Convert to...
8074 (auto_language_data): ...this.
8075 (class auto_language): New class.
8076 (auto_language_defn): New static global.
8077 (language_gdbarch_post_init): Use language_defn::languages.
8078 (_initialize_language): Initialize current_language.
8079 * gdb/language.h (struct language_defn): Rename to...
8080 (struct language_data): ...this.
8081 (struct language_defn): New.
8082 (auto_language_defn): Delete.
8083 (unknown_language_defn): Delete.
8084 (minimal_language_defn): Delete.
8085 (ada_language_defn): Delete.
8086 (asm_language_defn): Delete.
8087 (c_language_defn): Delete.
8088 (cplus_language_defn): Delete.
8089 (d_language_defn): Delete.
8090 (f_language_defn): Delete.
8091 (go_language_defn): Delete.
8092 (m2_language_defn): Delete.
8093 (objc_language_defn): Delete.
8094 (opencl_language_defn): Delete.
8095 (pascal_language_defn): Delete.
8096 (rust_language_defn): Delete.
8097 * gdb/m2-lang.c (m2_language_defn): Convert to...
8098 (m2_language_data): ...this.
8099 (class m2_language): New class.
8100 (m2_language_defn): New static global.
8101 * gdb/objc-lang.c (objc_language_defn): Convert to...
8102 (objc_language_data): ...this.
8103 (class objc_language): New class.
8104 (objc_language_defn): New static global.
8105 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
8106 (opencl_language_data): ...this.
8107 (class opencl_language): New class.
8108 (opencl_language_defn): New static global.
8109 * gdb/p-lang.c (pascal_language_defn): Convert to...
8110 (pascal_language_data): ...this.
8111 (class pascal_language): New class.
8112 (pascal_language_defn): New static global.
8113 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
8114 language pointer, update comment format.
8115 * gdb/rust-lang.c (rust_language_defn): Convert to...
8116 (rust_language_data): ...this.
8117 (class rust_language): New class.
8118 (rust_language_defn): New static global.
8119
1313c56e
AB
81202020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
8121
8122 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
8123 member variable.
8124 <m_stmt_at_address>: New member variable.
8125 (lnp_state_machine::record_line): Don't record some lines, update
8126 tracking of is_stmt at the same address.
8127 (lnp_state_machine::lnp_state_machine): Initialise new member
8128 variables.
8129
b7ed9f3d
ST
81302020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
8131
8132 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
8133 "-include gnu-nat-mig.h".
8134 * gnu-nat-mig.h: New file.
8135 * gnu-nat.c: Include "gnu-nat-mig.h".
8136 (exc_server, msg_reply_server, notify_server,
8137 process_reply_server): Remove declarations.
8138
14a8ad62
ST
81392020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8140
8141 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
8142 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
8143 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
8144 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
8145 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
8146 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
8147 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
8148 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
8149 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
8150 to gnu_nat_target class.
8151 * gnu-nat.c: Likewise.
8152 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
8153 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
8154 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
8155 object.
8156 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
8157 instead of `gnu_target'.
8158
0af5e106
ST
81592020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8160
8161 * i386-gnu-tdep.c: Include "gdbcore.h"
8162 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
8163 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
8164 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
8165 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
8166 i386_gnu_sigcontext_addr): New functions
8167 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
8168 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
8169 tdep.
8170
078f2fc9
ST
81712020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8172
8173 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
8174 before fork_inferior call. Avoid calling it if target_is_pushed returns
8175 true.
8176
53dff92c
ST
81772020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8178
8179 * gnu-nat.h (gnu_target): New variable declaration.
8180 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
8181 gnu_target.
8182 * gnu-nat.c (gnu_target): New variable.
8183 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
8184 add_thread_silent, and add_thread calls.
8185 (gnu_nat_target::create_inferior): Pass gnu_target to
8186 add_thread_silent, thread_change_ptid call.
8187 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
8188 call.
8189
5a8b8627
ST
81902020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8191
8192 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
8193 (gnu_nat_target::find_memory_regions): Remove unused
8194 `old_address' variable.
8195
366f550a
ST
81962020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8197
8198 * gnu-nat.c: Include "gdbarch.h".
8199
f14871bf
ST
82002020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8201
8202 * reply_mig_hack.awk (Error return): Cast function through
8203 void *, to bypass compiler function call check.
8204
c6887cfb
ST
82052020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8206
8207 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
8208 $(srcdir)/reply_mig_hack.awk.
8209
6930bffe
ST
82102020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8211
8212 * gnu-nat.h (gnu_debug_flag): Set type to bool.
8213
112c22ed
JG
82142020-05-30 Jonny Grant <jg@jguk.org>
8215
8216 * configure.ac (ACX_BUGURL): change bug URL to https.
8217
f68f85b5
PA
82182020-05-30 Pedro Alves <palves@redhat.com>
8219
8220 * cp-support.c (replace_typedefs_template): New.
8221 (replace_typedefs_qualified_name): Handle
8222 DEMANGLE_COMPONENT_TEMPLATE.
8223
976ca316
SM
82242020-05-29 Simon Marchi <simon.marchi@efficios.com>
8225
8226 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
8227 dwarf2/index-cache.h, dwarf2/index-write.c,
8228 dwarf2/index-write.h, dwarf2/line-header.c,
8229 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
8230 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
8231 variables and fields from `dwarf2_per_objfile` to just
8232 `per_objfile` throughout.
8233
989ade05
SM
82342020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
8235
8236 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8237 <push_dwarf_reg_entry_value>: Add comment.
8238
c47bae85
KB
82392020-05-28 Kevin Buettner <kevinb@redhat.com>
8240 Keith Seitz <keiths@redhat.com>
8241
8242 * python/python.c (do_start_initialization): Call PyEval_SaveThread
8243 instead of PyEval_ReleaseLock.
8244 (class gdbpy_gil): Move to earlier in file.
8245 (finalize_python): Set gdb_python_initialized.
8246 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
8247 when not initialized.
8248
44486dcf
SM
82492020-05-28 Simon Marchi <simon.marchi@efficios.com>
8250
8251 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8252 <push_dwarf_reg_entry_value>: Remove assert. Override
8253 per_objfile with caller_per_objfile.
8254
f030440d
TV
82552020-05-28 Tom de Vries <tdevries@suse.de>
8256
8257 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
8258 PR gold/15646 workaround to symbol kind "type".
8259
f0fbb768
TT
82602020-05-27 Tom Tromey <tromey@adacore.com>
8261
8262 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
8263
af0b2a3e
TT
82642020-05-27 Tom Tromey <tromey@adacore.com>
8265
8266 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
8267 Use htab_find_with_hash.
8268 <add_abbrev>: Remove "abbrev_number" parameter.
8269 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
8270 "abbrev_number" parameter. Use htab_find_slot_with_hash.
8271 (hash_abbrev): Add comment.
8272 (abbrev_table::lookup_abbrev): Move to header file.
8273 (abbrev_table::read): Update.
8274
7d00ffec
TT
82752020-05-27 Tom Tromey <tromey@adacore.com>
8276
8277 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
8278 method.
8279 <canonical_name>: New member.
8280 <raw_name>: Rename from "name".
8281 (partial_die_info): Initialize canonical_name.
8282 (scan_partial_symbols): Check raw_name.
8283 (partial_die_parent_scope, partial_die_full_name)
8284 (add_partial_symbol, add_partial_subprogram)
8285 (add_partial_enumeration, load_partial_dies): Use "name" method.
8286 (partial_die_info::name): New method.
8287 (partial_die_info::read, guess_partial_die_structure_name)
8288 (partial_die_info::fixup): Update.
8289
697bba18
TT
82902020-05-27 Tom Tromey <tromey@adacore.com>
8291
8292 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
8293 <get_ref_die_offset>: Inline.
8294 <get_ref_die_offset_complaint>: New method.
8295 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
8296 (attribute::get_ref_die_offset_complaint): Rename from
8297 get_ref_die_offset. Just issue complaint.
8298
c17ace43
HD
82992020-05-27 Hannes Domani <ssbssa@yahoo.de>
8300
8301 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
8302
96445f0b
HD
83032020-05-27 Hannes Domani <ssbssa@yahoo.de>
8304
8305 * exec.c (exec_file_attach): Use errno value of first openp failure.
8306
ac637ec3
HD
83072020-05-27 Hannes Domani <ssbssa@yahoo.de>
8308
8309 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
8310 Don't close thread handle.
8311
17ee85fc
TT
83122020-05-27 Tom Tromey <tom@tromey.com>
8313 Simon Marchi <simon.marchi@efficios.com>
8314
8315 * objfiles.h (struct objfile) <partial_symtabs>: Now a
8316 shared_ptr.
8317 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
8318 member.
8319 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
8320 dwarf2_per_bfd_objfile_data_key>: New globals.
8321 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
8322 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
8323 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
8324 shared.
8325 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
8326 short-circuit when sharing.
8327 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
8328 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
8329
39b16f87
SM
83302020-05-27 Simon Marchi <simon.marchi@efficios.com>
8331
8332 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
8333 to...
8334 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
8335 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
8336
fcf23d5b
SM
83372020-05-27 Simon Marchi <simon.marchi@efficios.com>
8338
8339 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
8340 build_name_components, find_name_components_bounds>:
8341 Add per_objfile parameter.
8342 (struct mapped_index) <symbol_name_at>: Likewise.
8343 (struct mapped_debug_names): Remove constructor.
8344 <dwarf2_per_objfile>: Remove field.
8345 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
8346 (mapped_index_base::find_name_components_bounds,
8347 mapped_index_base::build_name_components,
8348 dw2_expand_symtabs_matching_symbol): Likewise.
8349 (class mock_mapped_index) <symbol_name_at>: Likewise.
8350 (check_match): Likewise.
8351 (check_find_bounds_finds): Likewise.
8352 (test_mapped_index_find_name_component_bounds): Update.
8353 (CHECK_MATCH): Update.
8354 (dw2_expand_symtabs_matching): Update.
8355 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
8356 per_objfile parameter.
8357 <find_vec_in_debug_names>: Likewise.
8358 <m_per_objfile>: New field.
8359 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
8360 parameter.
8361 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
8362 (dw2_debug_names_iterator::next): Update.
8363 (dw2_debug_names_lookup_symbol): Update.
8364 (dw2_debug_names_expand_symtabs_for_function): Update.
8365 (dw2_debug_names_map_matching_symbols): Update.
8366 (dw2_debug_names_expand_symtabs_matching): Update.
8367 (dwarf2_read_debug_names): Update.
8368
7188ed02
SM
83692020-05-27 Simon Marchi <simon.marchi@efficios.com>
8370
8371 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
8372 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
8373 move to dwarf2_per_objfile.
8374 <read_in_chain>: Remove.
8375 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
8376 remove_all_cus, age_comp_units>: New methods.
8377 <m_dwarf2_cus>: New member.
8378 (struct dwarf2_per_cu_data) <cu>: Remove.
8379 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
8380 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
8381 moved to methods of dwarf2_per_objfile.
8382 (dwarf2_clear_marks): Remove.
8383 (dwarf2_queue_item::~dwarf2_queue_item): Update.
8384 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
8385 (dwarf2_per_bfd::free_cached_comp_units): Remove.
8386 (dwarf2_per_objfile::remove_all_cus): New.
8387 (class free_cached_comp_units) <~free_cached_comp_units>:
8388 Update.
8389 (load_cu): Update.
8390 (dw2_do_instantiate_symtab): Adjust.
8391 (fill_in_sig_entry_from_dwo_entry): Adjust.
8392 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8393 (cutu_reader::cutu_reader): Likewise.
8394 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
8395 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
8396 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
8397 and dwarf2_per_objfile::age_comp_units.
8398 (load_partial_comp_unit): Update.
8399 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
8400 (process_queue): Likewise.
8401 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
8402 backlink.
8403 (dwarf2_read_addr_index): Likewise.
8404 (follow_die_offset): Likewise.
8405 (dwarf2_fetch_die_loc_sect_off): Likewise.
8406 (dwarf2_fetch_constant_bytes): Likewise.
8407 (dwarf2_fetch_die_type_sect_off): Likewise.
8408 (follow_die_sig_1): Likewise.
8409 (load_full_type_unit): Likewise.
8410 (read_signatured_type): Likewise.
8411 (dwarf2_cu::dwarf2_cu): Don't set cu field.
8412 (dwarf2_cu::~dwarf2_cu): Remove.
8413 (dwarf2_per_objfile::get_cu): New.
8414 (dwarf2_per_objfile::set_cu): New.
8415 (age_cached_comp_units): Rename to...
8416 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
8417 to std::unordered_map.
8418 (free_one_cached_comp_unit): Rename to...
8419 (dwarf2_per_objfile::remove_cu): ... this. Adjust
8420 to std::unordered_map.
8421 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
8422 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
8423 a dwarf2_per_objfile in data.
8424 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
8425 (dwarf2_clear_marks): Remove.
8426
2e671100
SM
84272020-05-27 Simon Marchi <simon.marchi@efficios.com>
8428
8429 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
8430 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
8431 (init_tu_and_read_dwo_dies): Likewise.
8432 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
8433 (cutu_reader::cutu_reader): Likewise.
8434 (load_partial_comp_unit): Likewise.
8435 (process_psymtab_comp_unit): Update.
8436 (build_type_psymtabs_1): Update.
8437 (process_skeletonless_type_unit): Update.
8438 (load_full_comp_unit): Update.
8439 (find_partial_die): Update.
8440 (dwarf2_read_addr_index): Update.
8441 (read_signatured_type): Update.
8442
2e6a9f79
SM
84432020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8444
8445 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
8446 m_header_read_in>: New fields.
8447 <get_header>: New method.
8448 * dwarf2/read.c (per_cu_header_read_in): Remove.
8449 (dwarf2_per_cu_data::get_header): New.
8450 (dwarf2_per_cu_data::addr_size): Update.
8451 (dwarf2_per_cu_data::offset_size): Update.
8452 (dwarf2_per_cu_data::ref_addr_size): Update.
8453
1b555f17
SM
84542020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8455
8456 * dwarf2/read.c (load_cu): Return dwarf2_cu.
8457 (dw2_do_instantiate_symtab): Update.
8458 (queue_and_load_all_dwo_tus): Change parameter from
8459 dwarf2_per_cu_data to dwarf2_cu.
8460 (dwarf2_fetch_die_loc_sect_off): Update.
8461 (dwarf2_fetch_constant_bytes): Update.
8462 (dwarf2_fetch_die_type_sect_off): Update.
8463
8fc0b21d
SM
84642020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8465
8466 * dwarf2/read.c (process_full_comp_unit,
8467 process_full_type_unit): Remove per_cu, per_objfile paramters.
8468 Add dwarf2_cu parameter.
8469 (process_queue): Update.
8470
168c9250
SM
84712020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8472
8473 * dwarf2/read.c (create_cu_from_index_list): Replace
8474 dwarf2_per_objfile parameter with dwarf2_per_bfd.
8475 (create_cus_from_index_list): Likewise.
8476 (create_cus_from_index): Likewise.
8477 (create_signatured_type_table_from_index): Likewise.
8478 (create_cus_from_debug_names_list): Likewise.
8479 (create_cus_from_debug_names): Likewise.
8480 (dwarf2_read_gdb_index): Update.
8481 (dwarf2_read_debug_names): Update.
8482
e286671b
TT
84832020-05-27 Tom Tromey <tom@tromey.com>
8484 Simon Marchi <simon.marchi@efficios.com>
8485
8486 * dwarf2/read.h (struct dwarf2_per_objfile)
8487 <get_type_for_signatured_type, set_type_for_signatured_type>:
8488 New methods.
8489 <m_type_map>: New member.
8490 (struct signatured_type) <type>: Remove.
8491 * dwarf2/read.c
8492 (dwarf2_per_objfile::get_type_for_signatured_type,
8493 dwarf2_per_objfile::set_type_for_signatured_type): New.
8494 (get_signatured_type): Use new methods.
8495
8adb8487
TT
84962020-05-27 Tom Tromey <tom@tromey.com>
8497 Simon Marchi <simon.marchi@efficios.com>
8498
8499 * dwarf2/read.h (struct type_unit_group_unshareable): New.
8500 (struct dwarf2_per_objfile) <type_units>: New member.
8501 <get_type_unit_group_unshareable>: New method.
8502 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
8503 num_symtabs, symtabs>: Remove; move to
8504 type_unit_group_unshareable.
8505 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
8506 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
8507 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
8508
127bbf4b
SM
85092020-05-27 Simon Marchi <simon.marchi@efficios.com>
8510
8511 * dwarf2/read.h (struct dwarf2_per_cu_data):
8512 <dwarf2_per_objfile>: Remove.
8513 * dwarf2/read.c (create_cu_from_index_list): Don't assign
8514 dwarf2_per_objfile.
8515 (create_signatured_type_table_from_index): Likewise.
8516 (create_signatured_type_table_from_debug_names): Likewise.
8517 (create_debug_type_hash_table): Likewise.
8518 (fill_in_sig_entry_from_dwo_entry): Likewise.
8519 (create_type_unit_group): Likewise.
8520 (read_comp_units_from_section): Likewise.
8521 (create_cus_hash_table): Likewise.
8522
f6e649dd
SM
85232020-05-27 Simon Marchi <simon.marchi@efficios.com>
8524
8525 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
8526 dwarf2_per_cu_data::dwarf2_per_objfile.
8527 (compute_compunit_symtab_includes): Likewise.
8528 (dwarf2_cu::start_symtab): Likewise.
8529
aa66c379
SM
85302020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8531
8532 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
8533 parameter.
8534 * dwarf2/read.c (get_die_type_at_offset): Likewise.
8535 (read_namespace_alias): Update.
8536 (lookup_die_type): Update.
8537 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
8538 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
8539 Update.
8540 (disassemble_dwarf_expression): Update.
8541
120ce1b5
SM
85422020-05-27 Simon Marchi <simon.marchi@efficios.com>
8543
8544 * dwarf2/read.h (struct dwarf2_queue_item): Add
8545 dwarf2_per_objfile parameter, assign new parameter.
8546 <per_objfile>: New field.
8547 * dwarf2/read.c (free_one_cached_comp_unit): Add
8548 dwarf2_per_objfile parameter.
8549 (queue_comp_unit): Likewise.
8550 (dw2_do_instantiate_symtab): Update.
8551 (process_psymtab_comp_unit): Update.
8552 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
8553 (process_imported_unit_die): Update.
8554 (queue_and_load_dwo_tu): Update.
8555 (follow_die_offset): Update.
8556 (follow_die_sig_1): Update.
8557
9f47c707
SM
85582020-05-27 Simon Marchi <simon.marchi@efficios.com>
8559
8560 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
8561 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
8562 (read_call_site_scope): Assign per_objfile.
8563 (dwarf2_per_cu_data::objfile): Remove.
8564 * gdbtypes.h (struct call_site) <per_objfile>: New member.
8565 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
8566 dwarf2_per_objfile parameter.
8567 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
8568 dwarf2_per_objfile parameter.
8569 (dwarf_expr_reg_to_entry_parameter): Add output
8570 dwarf2_per_objfile parameter.
8571 (locexpr_get_frame_base): Update.
8572 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
8573 <push_dwarf_reg_entry_value>: Update.
8574 <call_site_to_target_addr>: Update.
8575 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
8576 parameter.
8577 (value_of_dwarf_reg_entry): Update.
8578 (rw_pieced_value): Update.
8579 (indirect_synthetic_pointer): Update.
8580 (dwarf2_evaluate_property): Update.
8581 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
8582 parameter.
8583 (locexpr_read_variable): Update.
8584 (locexpr_get_symbol_read_needs): Update.
8585 (loclist_read_variable): Update.
8586
14095eb3
SM
85872020-05-27 Simon Marchi <simon.marchi@efficios.com>
8588
8589 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8590 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8591 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
8592 parameter.
8593 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8594 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8595 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
8596 parameter.
8597 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
8598 sect_variable_value): Add dwarf2_per_objfile parameter.
8599 (class dwarf_evaluate_loc_desc) <dwarf_call,
8600 dwarf_variable_value>: Update.
8601 (fetch_const_value_from_synthetic_pointer): Add
8602 dwarf2_per_objfile parameter.
8603 (fetch_const_value_from_synthetic_pointer): Update.
8604 (coerced_pieced_ref): Update.
8605 (class symbol_needs_eval_context) <dwarf_call,
8606 dwarf_variable_value>: Update.
8607 (dwarf2_compile_expr_to_ax): Update.
8608
3c3cd3d4
SM
86092020-05-27 Simon Marchi <simon.marchi@efficios.com>
8610
8611 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
8612 parameter.
8613 (dwarf2_evaluate_loc_desc_full): Update.
8614
82ca3f51
SM
86152020-05-27 Simon Marchi <simon.marchi@efficios.com>
8616
8617 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
8618 parameter.
8619 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
8620 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
8621 dwarf2_per_objfile parameter.
8622 (decode_debug_loc_dwo_addresses): Likewise.
8623 (dwarf2_find_location_expression): Update.
8624 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
8625 (locexpr_describe_location_piece): Add dwarf2_per_objfile
8626 parameter.
8627 (disassemble_dwarf_expression): Add dwarf2_per_objfile
8628 parameter.
8629 (locexpr_describe_location_1): Likewise.
8630 (locexpr_describe_location): Update.
8631
4b167ea1
SM
86322020-05-27 Simon Marchi <simon.marchi@efficios.com>
8633
8634 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
8635 Remove.
8636 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
8637 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
8638 (dwarf2_compile_property_to_c): Update.
8639 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
8640 use text offset from objfile.
8641 (locexpr_tracepoint_var_ref): Update.
8642 (locexpr_generate_c_location): Update.
8643 (loclist_describe_location): Update.
8644 (loclist_tracepoint_var_ref): Update.
8645 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
8646 dwarf2_per_objfile parameter.
8647 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
8648 use text offset from objfile.
8649 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
8650
89b07335
SM
86512020-05-27 Simon Marchi <simon.marchi@efficios.com>
8652
8653 * dwarf2/expr.h (struct dwarf_expr_context)
8654 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
8655 <offset>: Remove.
8656 <per_objfile>: New member.
8657 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
8658 dwarf2_per_objfile parameter. Don't set offset, set
8659 per_objfile.
8660 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
8661 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
8662 a dwarf2_per_objfile object instead of an offset.
8663 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
8664 constructor.
8665 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
8666 to dwarf2_expr_executor constructor. Don't set offset.
8667 (dwarf2_fetch_cfa_info): Update.
8668 (struct dwarf2_frame_cache) <text_offset>: Remove.
8669 <per_objfile>: New field.
8670 (dwarf2_frame_cache): Update.
8671 (dwarf2_frame_prev_register): Update.
8672 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8673 <dwarf_evaluate_loc_desc>: Add constructor.
8674 (dwarf2_evaluate_loc_desc_full): Update.
8675 (dwarf2_locexpr_baton_eval): Update.
8676 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
8677 Add constructor.
8678 (dwarf2_loc_desc_get_symbol_read_needs): Update.
8679
293e7e51
SM
86802020-05-27 Simon Marchi <simon.marchi@efficios.com>
8681
8682 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
8683 addr_sized_int_type>: Move to dwarf2_cu.
8684 <int_type>: Move to dwarf2_per_objfile.
8685 (struct dwarf2_per_objfile) <int_type>: Move here.
8686 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
8687 addr_sized_int_type>: Move here.
8688 (read_func_scope): Update.
8689 (read_array_type): Update.
8690 (read_tag_string_type): Update.
8691 (attr_to_dynamic_prop): Update.
8692 (dwarf2_per_cu_data::int_type): Rename to...
8693 (dwarf2_per_objfile::int_type): ... this.
8694 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
8695 (dwarf2_cu::addr_sized_int_type): ... this.
8696 (read_subrange_type): Update.
8697 (dwarf2_per_cu_data::addr_type): Rename to...
8698 (dwarf2_cu::addr_type): ... this.
8699 (set_die_type): Update.
8700
64874a40
SM
87012020-05-27 Simon Marchi <simon.marchi@efficios.com>
8702
8703 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
8704 data through per_cu->cu.
8705
4ab09049
SM
87062020-05-27 Simon Marchi <simon.marchi@efficios.com>
8707
8708 * dwarf2/read.c (lookup_dwo_comp_unit): Change
8709 dwarf2_per_cu_data parameter fo dwarf2_cu.
8710 (lookup_dwo_type_unit): Likewise.
8711 (read_cutu_die_from_dwo): Likewise.
8712 (lookup_dwo_unit): Likewise.
8713 (open_and_init_dwo_file): Likewise.
8714 (lookup_dwo_cutu): Likewise.
8715 (lookup_dwo_comp_unit): Likewise.
8716 (lookup_dwo_type_unit): Likewise.
8717 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8718 (cutu_reader::cutu_reader): Update.
8719
47b14e86
SM
87202020-05-27 Simon Marchi <simon.marchi@efficios.com>
8721
8722 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
8723 parameter.
8724 (process_full_type_unit): Likewise.
8725 (process_queue): Update.
8726
43182c09
SM
87272020-05-27 Simon Marchi <simon.marchi@efficios.com>
8728
8729 * dwarf2/read.c (recursively_compute_inclusions): Add
8730 dwarf2_per_objfile parameter.
8731 (compute_compunit_symtab_includes): Likewise.
8732 (process_cu_includes): Update.
8733
7aa104c4
SM
87342020-05-27 Simon Marchi <simon.marchi@efficios.com>
8735
8736 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
8737 parameter.
8738 (create_type_unit_group): Update.
8739 (process_psymtab_comp_unit_reader): Update.
8740 (build_type_psymtabs_reader): Update.
8741
e3beb21d
SM
87422020-05-27 Simon Marchi <simon.marchi@efficios.com>
8743
8744 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
8745 object through m_this_cu->cu.
8746
d460f660
SM
87472020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8748
8749 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
8750 the info parameter.
8751 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
8752
ab432490
SM
87532020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8754
8755 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
8756 per_objfile parameter.
8757 (load_full_type_unit): Add per_objfile parameter.
8758 (read_signatured_type): Likewise.
8759 (load_full_comp_unit): Likewise.
8760 (load_cu): Likewise.
8761 (dw2_do_instantiate_symtab): Likewise.
8762 (dw2_get_file_names): Likewise.
8763 (dw2_map_symtabs_matching_filename): Update.
8764 (dw_expand_symtabs_matching_file_matcher): Update.
8765 (dw2_map_symbol_filenames): Update.
8766 (process_psymtab_comp_unit): Add per_objfile parameter.
8767 (build_type_psymtabs_1): Update.
8768 (process_skeletonless_type_unit): Update.
8769 (dwarf2_build_psymtabs_hard): Update.
8770 (load_partial_comp_unit): Add per_objfile parameter.
8771 (scan_partial_symbols): Update.
8772 (load_full_comp_unit): Add per_objfile parameter.
8773 (process_imported_unit_die): Update.
8774 (create_cus_hash_table): Update.
8775 (find_partial_die): Update.
8776 (dwarf2_read_addr_index): Update.
8777 (follow_die_offset): Update.
8778 (dwarf2_fetch_die_loc_sect_off): Update.
8779 (dwarf2_fetch_constant_bytes): Update.
8780 (dwarf2_fetch_die_type_sect_off): Update.
8781 (follow_die_sig_1): Update.
8782 (load_full_type_unit): Add per_objfile parameter.
8783 (read_signatured_type): Likewise.
8784
313bad1b
SM
87852020-05-27 Simon Marchi <simon.marchi@efficios.com>
8786
8787 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
8788 of objfile_name.
8789
c3699833
SM
87902020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8791
8792 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
8793 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
8794 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
8795 field.
8796 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
8797 (create_cus_from_index): Update.
8798 (dwarf2_read_gdb_index): Update.
8799 (create_cus_from_debug_names): Update.
8800 (dwarf2_read_debug_names): Update.
8801 (get_abbrev_section_for_cu): Update.
8802 (create_all_comp_units): Update.
8803 (read_attribute_value): Update.
8804 (get_debug_line_section): Update.
8805 * dwarf2/index-cache.c (index_cache::store): Update.
8806 * dwarf2/index-write.c (save_gdb_index_command): Update.
8807 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
8808
1859c670
SM
88092020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8810
8811 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
8812 member.
8813 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
8814 dwarf2_per_cu_data::per_bfd.
8815 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
8816 (create_type_unit_group): Likewise.
8817 (queue_comp_unit): Remove reference to
8818 per_cu->dwarf2_per_objfile.
8819 (maybe_queue_comp_unit): Likewise.
8820 (fill_in_sig_entry_from_dwo_entry): Assign new field.
8821 (create_cus_hash_table): Assign new field.
8822
5e22e966
SM
88232020-05-27 Simon Marchi <simon.marchi@efficios.com>
8824
8825 * dwarf2/read.c: Replace
8826 dwarf2_cu->per_cu->dwarf2_per_objfile references with
8827 dwarf2_cu->per_objfile throughout.
8828
97a1449a
SM
88292020-05-27 Simon Marchi <simon.marchi@efficios.com>
8830
8831 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
8832 parameter, don't use per_cu->dwarf2_per_objfile.
8833 (dw2_instantiate_symtab): Likewise.
8834 (dw2_find_last_source_symtab): Update.
8835 (dw2_map_expand_apply): Update.
8836 (dw2_lookup_symbol): Update.
8837 (dw2_expand_symtabs_for_function): Update.
8838 (dw2_expand_all_symtabs): Update.
8839 (dw2_expand_symtabs_with_fullname): Update.
8840 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
8841 don't use per_cu->dwarf2_per_objfile.
8842 (dw2_expand_marked_cus): Update.
8843 (dw2_find_pc_sect_compunit_symtab): Update.
8844 (dw2_debug_names_lookup_symbol): Update.
8845 (dw2_debug_names_expand_symtabs_for_function): Update.
8846 (dw2_debug_names_map_matching_symbols): Update.
8847 (dwarf2_psymtab::expand_psymtab): Update.
8848
9e021579
SM
88492020-05-27 Simon Marchi <simon.marchi@efficios.com>
8850
8851 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
8852 <per_objfile>: New member.
8853 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
8854 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
8855 call to dwarf2_cu.
8856 (cutu_reader::cutu_reader): Update.
8857 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
8858
ae090bdb
SM
88592020-05-27 Simon Marchi <simon.marchi@efficios.com>
8860
8861 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
8862 struct dwarf2_per_objfile.
8863 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
8864 dwarf2_per_bfd.
8865 * dwarf2/read.c (set_die_type): Update.
8866 (get_die_type_at_offset): Update.
8867
af758d11
SM
88682020-05-27 Tom Tromey <tom@tromey.com>
8869 Simon Marchi <simon.marchi@efficios.com>
8870
8871 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
8872 method.
8873 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
8874 get_symtab, set_symtab>: New methods.
8875 <m_symtabs>: New field.
8876 (struct dwarf2_psymtab): Derive from partial_symtab.
8877 <readin_p, get_compunit_symtab>: Declare methods.
8878 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
8879 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
8880 New methods.
8881 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
8882 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
8883 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
8884 (dw2_symtab_iter_next, dw2_print_stats)
8885 (dw2_expand_symtabs_with_fullname)
8886 (dw2_expand_symtabs_matching_one)
8887 (dw_expand_symtabs_matching_file_matcher)
8888 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
8889 (dw2_debug_names_iterator::next)
8890 (dw2_debug_names_map_matching_symbols)
8891 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
8892 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
8893 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
8894 New methods.
8895 (get_compunit_symtab, process_full_comp_unit)
8896 (process_full_type_unit): Update.
8897 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
8898
5989a64e
SM
88992020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8900
8901 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
8902 then introduce a new dwarf2_per_objfile type.
8903 <read_line_string>: Move to the new dwarf2_per_objfile type.
8904 <objfile>: Likewise.
8905 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
8906 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
8907 dwarf2_per_objfile->per_bfd.
8908 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
8909 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
8910 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
8911 (dwarf2_per_bfd::free_cached_comp_units): ... this.
8912 (dwarf2_has_info): Allocate dwarf2_per_bfd.
8913 (dwarf2_per_objfile::locate_sections): Rename to...
8914 (dwarf2_per_bfd::locate_sections): ... this.
8915 (dwarf2_per_objfile::get_cutu): Rename to...
8916 (dwarf2_per_bfd::get_cutu): ... this.
8917 (dwarf2_per_objfile::get_cu): Rename to...
8918 (dwarf2_per_bfd::get_cu): ... this.
8919 (dwarf2_per_objfile::get_tu): Rename to...
8920 (dwarf2_per_bfd::get_tu): ... this.
8921 (dwarf2_per_objfile::allocate_per_cu): Rename to...
8922 (dwarf2_per_bfd::allocate_per_cu): ... this.
8923 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
8924 (dwarf2_per_bfd::allocate_signatured_type): ... this.
8925 (get_gdb_index_contents_ftype): Change parameter from
8926 dwarf2_per_objfile to dwarf2_per_bfd.
8927 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
8928 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
8929
a50264ba
TT
89302020-05-27 Tom Tromey <tom@tromey.com>
8931 Simon Marchi <simon.marchi@efficios.com>
8932
8933 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
8934 (allocate_piece_closure): Set "per_objfile" member.
8935 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
8936 (locexpr_describe_location, loclist_describe_location): Use new
8937 member.
8938 * dwarf2/read.c (read_call_site_scope)
8939 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
8940 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
8941 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
8942 handle_data_member_location): Set per_objfile member.
8943 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
8944 member.
8945 (struct dwarf2_loclist_baton) <per_objfile>: New member.
8946
d3473f0c
TT
89472020-05-27 Tom Tromey <tom@tromey.com>
8948
8949 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
8950 allocate_signatured_type>: Declare new methods.
8951 <m_num_psymtabs>: New member.
8952 (struct dwarf2_per_cu_data) <index>: New member.
8953 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
8954 (dwarf2_per_objfile::allocate_signatured_type): New methods.
8955 (create_cu_from_index_list): Use allocate_per_cu.
8956 (create_signatured_type_table_from_index)
8957 (create_signatured_type_table_from_debug_names)
8958 (create_debug_type_hash_table, add_type_unit)
8959 (read_comp_units_from_section): Use allocate_signatured_type.
8960
5717c425
TT
89612020-05-27 Tom Tromey <tom@tromey.com>
8962
8963 * psymtab.c (partial_map_expand_apply)
8964 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
8965 (psym_lookup_global_symbol_language)
8966 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
8967 (psym_print_stats, psym_expand_symtabs_for_function)
8968 (psym_map_symbol_filenames, psym_map_matching_symbols)
8969 (psym_expand_symtabs_matching)
8970 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
8971 (maintenance_check_psymtabs): Update.
8972 * psympriv.h (struct partial_symtab) <readin_p,
8973 get_compunit_symtab>: Add objfile parameter.
8974 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
8975 Likewise.
8976 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
8977 get_compunit_symtab>: Likewise.
8978 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
8979
45940949
TT
89802020-05-27 Tom Tromey <tom@tromey.com>
8981
8982 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
8983 member.
8984 * dwarf2/read.c (delete_file_name_entry): Fix comment.
8985 (create_cu_from_index_list)
8986 (create_signatured_type_table_from_index)
8987 (create_signatured_type_table_from_debug_names)
8988 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
8989 (dwarf2_create_include_psymtab)
8990 (create_debug_type_hash_table, add_type_unit)
8991 (create_type_unit_group, read_comp_units_from_section)
8992 (dwarf2_compute_name, create_cus_hash_table)
8993 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
8994 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
8995 obstack.
8996 (dw2_get_real_path): Likewise. Change argument to
8997 dwarf2_per_objfile.
8998
f8c6d152
LM
89992020-05-27 Luis Machado <luis.machado@linaro.org>
9000
9001 PR tdep/26000
9002 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
9003 for ldrd (immediate).
9004
e98d2e6d
PW
90052020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9006
9007 * command.h: Add comment giving the name of class_tui.
9008 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
9009 create the fake command for the help for class_tui.
9010
53a47a3e
TT
90112020-05-26 Tom Tromey <tromey@adacore.com>
9012
9013 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
9014 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
9015 (val_atr): New function.
9016 (value_val_atr): Use it.
9017 * ada-valprint.c (print_optional_low_bound): Change low bound
9018 handling for enums.
9019 (val_print_packed_array_elements): Don't call discrete_position.
9020 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
9021 discrete_position for enum types.
9022 * language.c (default_print_array_index): Change type.
9023 * language.h (struct language_defn) <la_print_array_index>: Add
9024 index_type parameter, change type of index_value.
9025 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
9026 (default_print_array_index): Update.
9027 * valprint.c (maybe_print_array_index): Don't call
9028 value_from_longest. Update.
9029 (value_print_array_elements): Don't call discrete_position.
9030
0bc2354b
TT
90312020-05-26 Tom Tromey <tromey@adacore.com>
9032
9033 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
9034 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
9035
1218a4bf
CDA
90362020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
9037
9038 PR gdb/13519
9039 * avr-tdep.c (avr_integer_to_address): Return data or code
9040 address accordingly to the second 'type' argument of the
9041 function.
9042
92651b1d
MW
90432020-05-25 Michael Weghorn <m.weghorn@posteo.de>
9044
9045 * infcmd.c, inferior.h: (construct_inferior_arguments):
9046 Moved function from here to gdbsupport/common-inferior.{h,cc}
9047
0a4f5f8c
TT
90482020-05-23 Tom Tromey <tom@tromey.com>
9049
9050 Revert commit eca1f90c:
9051 * NEWS: Remove entry for completion styling.
9052 * completer.c (_rl_completion_prefix_display_length): Move
9053 declaration later.
9054 (gdb_fnprint): Revert.
9055 (gdb_display_match_list_1): Likewise.
9056 * cli/cli-style.c (completion_prefix_style)
9057 (completion_difference_style, completion_suffix_style): Remove.
9058 (_initialize_cli_style): Revert.
9059 * cli/cli-style.h (completion_prefix_style)
9060 (completion_difference_style, completion_suffix_style): Don't
9061 declare.
9062
e08bd6c5
PA
90632020-05-24 Pedro Alves <palves@redhat.com>
9064
9065 * symtab.c (completion_list_add_name): Return boolean indication
9066 of whether the symbol matched.
9067 (completion_list_add_symbol): Don't try to remove C++ aliases if
9068 the symbol didn't match in the first place.
9069 * symtab.h (completion_list_add_name): Return bool.
9070
ceacbf6e
SM
90712020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
9072
9073 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
9074 type::field.
9075
26f16254
JB
90762020-05-23 Joel Brobecker <brobecker@adacore.com>
9077
9078 GDB 9.2 released.
9079
eca1f90c
TT
90802020-05-23 Tom Tromey <tom@tromey.com>
9081
9082 * NEWS: Add entry for completion styling.
9083 * completer.c (_rl_completion_prefix_display_length): Move
9084 declaration earlier.
9085 (gdb_fnprint): Use completion_style.
9086 (gdb_display_match_list_1): Likewise.
9087 * cli/cli-style.c (completion_prefix_style)
9088 (completion_difference_style, completion_suffix_style): New
9089 globals.
9090 (_initialize_cli_style): Register new globals.
9091 * cli/cli-style.h (completion_prefix_style)
9092 (completion_difference_style, completion_suffix_style): Declare.
9093
51e2cfa2
PA
90942020-05-23 Pedro Alves <palves@redhat.com>
9095
9096 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
9097 (parse_escape): Use ISDIGIT instead of isdigit.
9098 (puts_debug): Use gdb_isprint instead of isprint.
9099 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
9100 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
9101 ISSPACE instead of isspace.
9102 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
9103 instead of isspace.
9104 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
9105 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
9106 instead of isxdigit and ISDIGIT instead of isdigit.
9107
80fc5e77
SM
91082020-05-22 Simon Marchi <simon.marchi@efficios.com>
9109
9110 * gdbtypes.h (struct type) <field>: New method.
9111 (TYPE_FIELDS): Remove, replace all uses with either type::fields
9112 or type::field.
9113
3cabb6b0
SM
91142020-05-22 Simon Marchi <simon.marchi@efficios.com>
9115
9116 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
9117 (TYPE_FIELDS): Use type::fields. Change all call sites that
9118 modify the propery to use type::set_fields instead.
9119
1f704f76
SM
91202020-05-22 Simon Marchi <simon.marchi@efficios.com>
9121
9122 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
9123 type::num_fields instead.
9124
5e33d5f4
SM
91252020-05-22 Simon Marchi <simon.marchi@efficios.com>
9126
9127 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
9128 methods.
9129 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
9130 that modify the number of fields to use type::set_num_fields
9131 instead.
9132
9392ebb3
TT
91332020-05-22 Tom Tromey <tromey@adacore.com>
9134
9135 * compile/compile-object-load.h (munmap_list_free): Don't
9136 declare.
9137
7c13f4e8
AB
91382020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
9139
9140 * annotate.c (annotate_source_line): Update return type, add call
9141 to update current symtab and line.
9142 * annotate.h (annotate_source_line): Update return type, and
9143 extend header comment.
9144 * source.c (info_line_command): Check annotation_level before
9145 calling annotate_source_line.
9146 * stack.c (print_frame_info): If calling annotate_source_line
9147 returns true, then don't print any other source line information.
9148
aa370940
SM
91492020-05-21 Simon Marchi <simon.marchi@efficios.com>
9150
9151 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
9152
84d53fa9
SM
91532020-05-21 Simon Marchi <simon.marchi@efficios.com>
9154
9155 * coffread.c (patch_type): Remove NULL check before xfree.
9156 * corefile.c (set_gnutarget): Likewise.
9157 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
9158 * exec.c (build_section_table): Likewise.
9159 * remote.c (remote_target::pass_signals): Likewise.
9160 * utils.c (n_spaces): Likewise.
9161 * cli/cli-script.c (document_command): Likewise.
9162 * i386-windows-tdep.c (core_process_module_section): Likewise.
9163 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
9164
9d428aae
SM
91652020-05-20 Simon Marchi <simon.marchi@efficios.com>
9166
9167 * symfile.c (reread_symbols): Clear objfile's section_offsets
9168 vector and section indices, re-compute them by calling
9169 sym_offsets.
9170
250106a7
TT
91712020-05-20 Tom Tromey <tromey@adacore.com>
9172
9173 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 9174 (desc_one_bound, desc_index_type): Compute field name.
250106a7 9175
9a0bacfb
TV
91762020-05-20 Tom de Vries <tdevries@suse.de>
9177
9178 PR symtab/25833
9179 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
9180
7b958a48
AM
91812020-05-20 Alan Modra <amodra@gmail.com>
9182
9183 PR 25993
9184 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
9185 bfd_set_filename.
9186 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
9187 passed to bfd_set_filename.
9188 * symfile-mem.c (add_vsyscall_page): Likewise for string
9189 passed to symbol_file_add_from_memory.
9190 (symbol_file_add_from_memory): Make name param a const char* and
9191 don't strdup.
9192
c7e97679
AM
91932020-05-20 Alan Modra <amodra@gmail.com>
9194
9195 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
9196 rather than accessing bfd->filename directly.
9197 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
9198 and use bfd_section_name.
9199 * dwarf2/frame.c (decode_frame_entry): Likewise.
9200 * exec.c (exec_set_section_address): Likewise.
9201 * solib-aix.c (solib_aix_bfd_open): Likewise.
9202 * stap-probe.c (get_stap_base_address): Likewise.
9203 * symfile.c (reread_symbols): Likewise.
9204
563c591b
TT
92052020-05-19 Tom Tromey <tromey@adacore.com>
9206
9207 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
9208
f408d82c
SM
92092020-05-19 Simon Marchi <simon.marchi@efficios.com>
9210
9211 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
9212
98c59b52
PA
92132020-05-19 Pedro Alves <palves@redhat.com>
9214
9215 * NEWS (set exec-file-mismatch): Adjust entry.
9216 * exec.c: Include "build-id.h".
9217 (validate_exec_file): Try to match build IDs instead of filenames.
9218 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
9219 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
9220 and pass down 'warn_if_slow'.
9221 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
9222 gdb_bfd_open_closure to pass it down.
9223 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
9224
4111f652
PA
92252020-05-19 Pedro Alves <palves@redhat.com>
9226
9227 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
9228 * target.c (target_fileio_open_1): Rename to target_fileio_open
9229 and make extern. Use bool.
9230 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
9231 (target_fileio_read_alloc_1): Adjust.
9232 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
9233 (target_fileio_open_warn_if_slow): Delete declaration.
9234
ad80db5b
PA
92352020-05-19 Pedro Alves <palves@redhat.com>
9236
9237 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
9238 Adjust all callers.
9239
1d6ce4d3
YS
92402020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
9241
9242 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
9243 whether disp is negative.
9244
9005fbbb
SM
92452020-05-19 Simon Marchi <simon.marchi@efficios.com>
9246
9247 * symfile.h (struct symfile_segment_data)
9248 <~symfile_segment_data>: Remove.
9249 <segment_info>: Change to std::vector.
9250 * symfile.c (default_symfile_segments): Update.
9251 * elfread.c (elf_symfile_segments): Update.
9252
68b888ff
SM
92532020-05-19 Simon Marchi <simon.marchi@efficios.com>
9254
9255 * symfile.h (struct symfile_segment_data) <struct segment>: New.
9256 <segments>: New.
9257 <segment_bases, segment_sizes>: Remove.
9258 * symfile.c (default_symfile_segments): Update.
9259 * elfread.c (elf_symfile_segments): Update.
9260 * remote.c (remote_target::get_offsets): Update.
9261 * solib-target.c (solib_target_relocate_section_addresses):
9262 Update.
9263
62982abd
SM
92642020-05-19 Simon Marchi <simon.marchi@efficios.com>
9265
9266 * symfile.h (struct symfile_segment_data): Initialize fields.
9267 <~symfile_segment_data>: Add.
9268 (symfile_segment_data_up): New.
9269 (struct sym_fns) <sym_segments>: Return a
9270 symfile_segment_data_up.
9271 (default_symfile_segments): Return a symfile_segment_data_up.
9272 (free_symfile_segment_data): Remove.
9273 (get_symfile_segment_data): Return a symfile_segment_data_up.
9274 * symfile.c (default_symfile_segments): Likewise.
9275 (get_symfile_segment_data): Likewise.
9276 (free_symfile_segment_data): Remove.
9277 (symfile_find_segment_sections): Update.
9278 * elfread.c (elf_symfile_segments): Return a
9279 symfile_segment_data_up.
9280 * remote.c (remote_target::get_offsets): Update.
9281 * solib-target.c (solib_target_relocate_section_addresses):
9282 Update.
9283 * symfile-debug.c (debug_sym_segments): Return a
9284 symfile_segment_data_up.
9285
7f204339
RO
92862020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9287
e52a0f1b
RO
9288 PR build/25981
9289 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
9290 Hardcode register numbers.
9291
7f204339
RO
9292 PR build/25981
9293 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
9294 procfs_find_LDT_entry): Remove.
9295 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
9296 procfs_find_LDT_entry): Remove.
9297 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
9298 Remove.
9299
7f32a4d5
PA
93002020-05-17 Pedro Alves <palves@redhat.com>
9301 Andrew Burgess <andrew.burgess@embecosm.com>
9302 Keno Fischer <keno@juliacomputing.com>
9303
9304 PR gdb/25741
9305 * breakpoint.c (build_target_condition_list): Update comments.
9306 (build_target_command_list): Update comments and skip matching
9307 locations.
9308 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
9309 a separate function. Simplify "set breakpoint auto-hw off"
9310 handling.
9311 (insert_breakpoints): Update comment.
9312 (tracepoint_locations_match): New parameter. For breakpoints,
9313 compare location types too, if the caller wants to.
9314 (handle_automatic_hardware_breakpoints): New functions.
9315 (bp_location_is_less_than): Also sort by location type and
9316 hardware breakpoint length.
9317 (update_global_location_list): Handle "set breakpoint auto-hw on"
9318 here.
9319 (update_breakpoint_locations): Ask breakpoint_locations_match to
9320 ignore location types.
9321
7d93a1e0
SM
93222020-05-16 Simon Marchi <simon.marchi@efficios.com>
9323
9324 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
9325 type::name instead.
9326
d0e39ea2
SM
93272020-05-16 Simon Marchi <simon.marchi@efficios.com>
9328
9329 * gdbtypes.h (struct type) <name, set_name>: New methods.
9330 (TYPE_CODE): Use type::name. Change all call sites used to set
9331 the name to use type::set_name instead.
9332
2dab0c7b
TT
93332020-05-16 Tom Tromey <tom@tromey.com>
9334
9335 * top.c (quit_force): Update.
9336 * infrun.c (handle_no_resumed): Update.
9337 * top.h (all_uis): New function.
9338 (ALL_UIS): Remove.
9339
59f7bd8d
SM
93402020-05-16 Simon Marchi <simon.marchi@efficios.com>
9341
9342 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
9343
9bf058f0
PA
93442020-05-16 Pedro Alves <palves@redhat.com>
9345
9346 * ia64-linux-nat.c
9347 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
9348 Declare method.
9349 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
9350
8f86ae1a
SM
93512020-05-15 Simon Marchi <simon.marchi@efficios.com>
9352
9353 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
9354 (sparc64_adi_info): Likewise.
9355
d6bc0792
TT
93562020-05-15 Tom Tromey <tom@tromey.com>
9357
9358 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
9359 block_objfile.
9360 (lookup_objfile_from_block): Remove.
9361 (lookup_symbol_in_block, lookup_symbol_in_static_block)
9362 (lookup_global_symbol): Use block_objfile.
9363 * symtab.h (lookup_objfile_from_block): Don't declare.
9364 * printcmd.c (clear_dangling_display_expressions): Use
9365 block_objfile.
9366 * parse.c (operator_check_standard): Use block_objfile.
9367
8c14c3a3
TT
93682020-05-15 Tom Tromey <tom@tromey.com>
9369
9370 * language.c (language_alloc_type_symbol): Set
9371 SYMBOL_SECTION.
9372 * symtab.c (initialize_objfile_symbol): Remove.
9373 (allocate_symbol): Remove.
9374 (allocate_template_symbol): Remove.
9375 * dwarf2/read.c (fixup_go_packaging): Use "new".
9376 (new_symbol): Use "new".
9377 (read_variable): Don't call initialize_objfile_symbol. Use
9378 "new".
9379 (read_func_scope): Use "new".
9380 * xcoffread.c (process_xcoff_symbol): Don't call
9381 initialize_objfile_symbol.
9382 (SYMBOL_DUP): Remove.
9383 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
9384 "new".
9385 * symtab.h (allocate_symbol, initialize_objfile_symbol)
9386 (allocate_template_symbol): Don't declare.
9387 (struct symbol): Add copy constructor. Change defaults.
9388 * jit.c (finalize_symtab): Use "new".
9389 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
9390 Use "new".
9391 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
9392 (common_block_end): Use "new".
9393 * mdebugread.c (parse_symbol): Use "new".
9394 (new_symbol): Likewise.
9395
5b4a1a8d
PW
93962020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9397
9398 * NEWS: Mention changes to help and apropos.
9399
57b4f16e
PW
94002020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9401
9402 * command.h (enum command_class): Improve comments, document
9403 that class_alias is for user-defined aliases, give the class
9404 name for each class, remove unused class_xdb.
9405 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
9406 * breakpoint.c (_initialize_breakpoint): Replace class_alias
9407 by a precise class.
9408 * infcmd.c (_initialize_infcmd): Likewise.
9409 * reverse.c (_initialize_reverse): Likewise.
9410 * stack.c (_initialize_stack): Likewise.
9411 * symfile.c (_initialize_symfile): Likewise.
9412 * tracepoint.c (_initialize_tracepoint): Likewise.
9413
7c05caf7
PW
94142020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9415
9416 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
9417 when their aliased command is traversed.
9418 (help_cmd): Add fput_command_names_styled call to
9419 output command name and aliases when command has an alias.
9420
3b3aaacb
PW
94212020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9422
9423 * cli/cli-decode.h (help_cmd_list): Remove declaration.
9424 * cli/cli-decode.c (help_cmd_list): Declare as static,
9425 remove prefix argument, use bool for recurse arg, rework to show the aliases of
9426 a command together with the command.
9427 (fput_command_name_styled, fput_command_names_styled): New functions.
9428 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
9429 fput_command_name_styled.
9430 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
9431 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
9432
7aa1b46f
PW
94332020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9434
9435 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
9436 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
9437 * command.h (cmd_show_list): Likewise.
9438 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
9439 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
9440
89bcba74
PW
94412020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9442
9443 * unittests/command-def-selftests.c (traverse_command_structure):
9444 Verify all commands of a list have the same prefix command and
9445 that only the top cmdlist commands have a null prefix.
9446
3f4d92eb
PW
94472020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9448
9449 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
9450 as prefix, not one of its aliases.
9451 (set_cmd_prefix): Remove.
9452 (do_add_cmd): Centralize the setting of the prefix of a command, when
9453 command is defined after its full chain of prefix commands.
9454 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
9455 (add_setshow_cmd_full): Likewise.
9456 (update_prefix_field_of_prefixed_commands): New function.
9457 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
9458 update_prefix_field_of_prefixed_commands.
9459 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
9460 addresses of remote_set_cmdlist and remote_show_cmdlist given
9461 as argument, not the address of an argument.
9462 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
9463 * gdb/remote.c (_initialize_remote): Likewise.
9464
0605465f
PW
94652020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9466
9467 * cli/cli-cmds.c (alias_command): Check for an existing alias
9468 using lookup_cmd_composition, as valid_command_p is too strict
9469 and forbids aliases that are the prefix of an existing alias
9470 or command.
9471 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
9472 command is properly recognised as a valid command.
9473
58e6ac70
PW
94742020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9475
9476 * unittests/help-doc-selftests.c: Rename to
9477 unittests/command-def-selftests.c
9478 * unittests/command-def-selftests.c (help_doc_tests): Update some
9479 comments.
9480 (command_structure_tests, traverse_command_structure): New namespace
9481 and function.
9482 (command_structure_invariants_tests): New function.
9483 (_initialize_command_def_selftests) Renamed from
9484 _initialize_help_doc_selftests, register command_structure_invariants
9485 selftest.
9486
a7b9ceb8
PW
94872020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9488
9489 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
9490 an alias of 'show'.
9491
b2188a06
JB
94922020-05-15 Joel Brobecker <brobecker@adacore.com>
9493
9494 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
9495 ada_is_fixed_point_type. Update all callers.
9496 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
9497 all callers.
9498 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
9499 Update all callers.
9500 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
9501 print_fixed_point_type. Update all callers.
9502 * ada-valprint.c (ada_value_print_num): Replace call to
9503 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
9504
a51951c2
KB
95052020-05-14 Kevin Buettner <kevinb@redhat.com>
9506
9507 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
9508 processors.
9509 (cpu_supports_bts): Add CV_AMD case.
9510
29d6859f
LM
95112020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
9512 Simon Marchi <simon.marchi@efficios.com>
9513
9514 * infrun.c (stop_all_threads): Collect multiple wait events at
9515 each pass.
9516
78134374
SM
95172020-05-14 Simon Marchi <simon.marchi@efficios.com>
9518
9519 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
9520 type::code instead.
9521
67607e24
SM
95222020-05-14 Simon Marchi <simon.marchi@efficios.com>
9523
9524 * gdbtypes.h (struct type) <code, set_code>: New methods.
9525 (TYPE_CODE): Use type::code. Change all call sites used to set
9526 the code to use type::set_code instead.
9527
a05575d3
TBA
95282020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9529 Tom de Vries <tdevries@suse.de>
9530 Pedro Alves <palves@redhat.com>
9531
9532 PR threads/25478
9533 * infrun.c (stop_all_threads): Do NOT ignore
9534 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
9535 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
9536 received.
9537 (handle_no_resumed): Remove code handling a live inferior with no
9538 threads.
9539 * remote.c (has_single_non_exited_thread): New.
9540 (remote_target::update_thread_list): Do not delete a thread if is
9541 the last thread of the process.
9542 * thread.c (thread_select): Call delete_exited_threads instead of
9543 prune_threads.
9544
6ad82919
TBA
95452020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9546
9547 * infrun.c (stop_all_threads): Enable/disable thread events of all
9548 targets. Move a debug message denoting the end of the function
9549 into the SCOPED_EXIT block.
9550
d890404b
TBA
95512020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9552
9553 * process-stratum-target.h: Include <set>.
9554 (all_non_exited_process_targets, switch_to_target_no_thread): New
9555 function declarations.
9556 * process-stratum-target.c (all_non_exited_process_targets)
9557 (switch_to_target_no_thread): New function implementations.
9558
293b3ebc
TBA
95592020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9560
9561 * infrun.c (handle_inferior_event): Extract out a piece of code
9562 into...
9563 (mark_non_executing_threads): ...this new function.
9564
7ca9b62a
TBA
95652020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9566
9567 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
9568 use.
9569
fc75c28b
TBA
95702020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9571
9572 * regcache.c (regcache_read_pc_protected): New function
9573 implementation that returns 0 if the PC cannot read via
9574 'regcache_read_pc'.
9575 * infrun.c (proceed): Call 'regcache_read_pc_protected'
9576 instead of 'regcache_read_pc'.
9577 (keep_going_pass_signal): Ditto.
9578
a89febbd
TT
95792020-05-13 Tom Tromey <tromey@adacore.com>
9580
9581 * ada-lang.c (align_value): Remove.
9582 (ada_template_to_fixed_record_type_1): Use align_up.
9583
f7e23710
TBA
95842020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9585
9586 * async-event.c: Update the copyright year.
9587 * async-event.h: Update the copyright year.
9588
02ff80c2
SM
95892020-05-12 Simon Marchi <simon.marchi@efficios.com>
9590
9591 * objfiles.h (is_addr_in_objfile,
9592 shared_objfile_contains_address_p): Return bool.
9593 * objfile.c (is_addr_in_objfile,
9594 shared_objfile_contains_address_p): Return bool.
9595
4fd6c7e8
TT
95962020-05-11 Tom Tromey <tromey@adacore.com>
9597
9598 * cli/cli-cmds.c (info_command): Restore.
9599 (_initialize_cli_cmds): Use add_prefix_command for "info".
9600 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
9601
5eb68a39
TT
96022020-05-11 Tom Tromey <tromey@adacore.com>
9603
9604 * ada-lang.c (ada_value_primitive_field): Now public.
9605 * ada-lang.h (ada_value_primitive_field): Declare.
9606 * ada-valprint.c (print_field_values): Use
9607 ada_value_primitive_field for wrapper fields.
9608
7666722f
TV
96092020-05-11 Tom de Vries <tdevries@suse.de>
9610
9611 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
9612 MODULE_DOMAIN.
9613
3ee6bb11
TV
96142020-05-11 Tom de Vries <tdevries@suse.de>
9615
9616 PR symtab/25941
9617 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
9618 with length 0, if not gdb-produced.
9619 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
9620
43434996
TV
96212020-05-09 Tom de Vries <tdevries@suse.de>
9622
9623 PR gdb/25955
9624 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
9625 calculation.
9626
2f78cffc
TT
96272020-05-09 Tom Tromey <tom@tromey.com>
9628
9629 * top.c (server_command): Now bool.
9630 * top.h (server_command): Now bool.
9631
4f7bc5ed
TT
96322020-05-08 Tom Tromey <tromey@adacore.com>
9633
9634 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
9635 already being processed.
9636
8be4b118
TT
96372020-05-08 Tom Tromey <tom@tromey.com>
9638
9639 * printcmd.c (struct display) <next>: Remove.
9640 <display>: New constructor.
9641 <exp_string>: Now a std::string.
9642 <enabled_p>: Now a bool.
9643 (display_number): Move definition earlier.
9644 (displays): Rename from display_chain. Now a std::vector.
9645 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
9646 (display_command): Update.
9647 (do_one_display, disable_display)
9648 (enable_disable_display_command, do_enable_disable_display):
9649 Update.
9650 (free_display): Remove.
9651 (clear_displays): Rewrite.
9652 (delete_display): Update.
9653 (map_display_numbers): Use function_view. Remove "data"
9654 parameter. Update.
9655 (do_delete_display): Remove.
9656 (undisplay_command): Update.
9657 (do_one_display, do_displays, disable_display)
9658 (info_display_command): Update.
9659 (do_enable_disable_display): Remove.
9660 (enable_disable_display_command)
9661 (clear_dangling_display_expressions): Update.
9662
94c93c35
TT
96632020-05-08 Tom Tromey <tom@tromey.com>
9664
9665 * symtab.c (set_symbol_cache_size)
9666 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
9667 (maintenance_print_symbol_cache_statistics): Update.
9668 * symmisc.c (print_symbol_bcache_statistics)
9669 (print_objfile_statistics, maintenance_print_objfiles)
9670 (maintenance_info_symtabs, maintenance_check_symtabs)
9671 (maintenance_expand_symtabs, maintenance_info_line_tables):
9672 Update.
9673 * symfile-debug.c (set_debug_symfile): Update.
9674 * source.c (forget_cached_source_info): Update.
9675 * python/python.c (gdbpy_progspaces): Update.
9676 * psymtab.c (maintenance_info_psymtabs): Update.
9677 * probe.c (parse_probes): Update.
9678 * linespec.c (iterate_over_all_matching_symtabs)
9679 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
9680 * guile/scm-progspace.c (gdbscm_progspaces): Update.
9681 * exec.c (exec_target::close): Update.
9682 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
9683 * breakpoint.c (print_one_breakpoint_location)
9684 (create_longjmp_master_breakpoint)
9685 (create_std_terminate_master_breakpoint): Update.
9686 * progspace.c (program_spaces): Now a std::vector.
9687 (maybe_new_address_space): Update.
9688 (add_program_space): Remove.
9689 (program_space::program_space): Update.
9690 (remove_program_space): Update.
9691 (number_of_program_spaces): Remove.
9692 (print_program_space, update_address_spaces): Update.
9693 * progspace.h (program_spaces): Change type.
9694 (ALL_PSPACES): Remove.
9695 (number_of_program_spaces): Don't declare.
9696 (struct program_space) <next>: Remove.
9697
a1fd1ac9
TT
96982020-05-08 Tom Tromey <tom@tromey.com>
9699
9700 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
9701 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
9702 (enable_break): Update.
9703 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
9704 (frv_fdpic_find_canonical_descriptor): Update.
9705 (frv_fetch_objfile_link_map): Update.
9706 * progspace.c (program_space::free_all_objfiles): Update.
9707 (program_space::solibs): New method.
9708 * progspace.h (struct program_space) <solibs>: New method.
9709 * solist.h (master_so_list): Don't declare.
9710 (ALL_SO_LIBS): Remove.
9711 * solib.h (so_list_head): Remove.
9712 (update_solib_list): Update comment.
9713 * solib.c (master_so_list): Remove.
9714 (solib_used, update_solib_list, solib_add)
9715 (info_sharedlibrary_command, clear_solib)
9716 (reload_shared_libraries_1, remove_user_added_objfile): Update.
9717
38eae084
TT
97182020-05-08 Tom Tromey <tom@tromey.com>
9719
9720 * extension.c (extension_languages): Now a std::array.
9721 (ALL_EXTENSION_LANGUAGES): Remove.
9722 (get_ext_lang_defn, get_ext_lang_of_file)
9723 (eval_ext_lang_from_control_command): Update.
9724 (finish_ext_lang_initialization)
9725 (auto_load_ext_lang_scripts_for_objfile)
9726 (ext_lang_type_printers::ext_lang_type_printers)
9727 (apply_ext_lang_type_printers)
9728 (ext_lang_type_printers::~ext_lang_type_printers)
9729 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
9730 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
9731 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
9732 (get_matching_xmethod_workers, ext_lang_colorize)
9733 (ext_lang_before_prompt): Update.
9734 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
9735
596dc4ad
TT
97362020-05-08 Tom Tromey <tom@tromey.com>
9737
9738 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
9739 overload.
9740 <swap_string, m_string>: Remove.
9741 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
9742 Update.
9743 * stabsread.c (define_symbol, read_type): Update.
9744 * linespec.c (find_linespec_symbols): Update.
9745 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
9746 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
9747 * dbxread.c (read_dbx_symtab): Update.
9748 * cp-support.h (cp_canonicalize_string_full)
9749 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
9750 Return unique_xmalloc_ptr.
9751 * cp-support.c (inspect_type): Update.
9752 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
9753 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
9754 Likewise.
9755 * c-typeprint.c (print_name_maybe_canonical): Update.
9756 * break-catch-throw.c (check_status_exception_catchpoint):
9757 Update.
9758
bf4cb9be
TV
97592020-05-08 Tom de Vries <tdevries@suse.de>
9760
9761 * infrun.c (follow_fork): Copy current_line and current_symtab to
9762 child thread.
9763
a1b68f28
SM
97642020-05-07 Simon Marchi <simon.marchi@efficios.com>
9765
9766 * async-event.c (struct async_signal_handler, struct
9767 async_event_handler): Reformat, remove typedef.
9768
98d48915
SM
97692020-05-07 Simon Marchi <simon.marchi@efficios.com>
9770
9771 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
9772 access thistype->main_type->dyn_prop_list directly.
9773
7aa91313
SM
97742020-05-07 Simon Marchi <simon.marchi@efficios.com>
9775
9776 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
9777 (remove_dyn_prop): Remove. Update all users to use
9778 type::remove_dyn_prop.
9779 * gdbtypes.c (remove_dyn_prop): Rename to...
9780 (type::remove_dyn_prop): ... this.
9781
5c54719c
SM
97822020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
9783
9784 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
9785 (add_dyn_prop): Remove. Update all users to use
9786 type::add_dyn_prop.
9787 * gdbtypes.c (add_dyn_prop): Rename to...
9788 (type::add_dyn_prop): ... this.
9789
24e99c6c
SM
97902020-05-07 Simon Marchi <simon.marchi@efficios.com>
9791
9792 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
9793 (get_dyn_prop): Remove. Update all users to use
9794 type::dyn_prop.
9795 * gdbtypes.c (get_dyn_prop): Rename to...
9796 (type::dyn_prop): ... this.
9797
0d4bf016
SM
97982020-05-06 Simon Marchi <simon.marchi@efficios.com>
9799
9800 * gdbtypes.h (struct main_type) <flag_static>: Remove.
9801
ac4a4f1c
SM
98022020-05-06 Simon Marchi <simon.marchi@efficios.com>
9803
9804 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
9805 instruction, skip it if it's there.
9806
a3bbacc1
SM
98072020-05-05 Simon Marchi <simon.marchi@efficios.com>
9808
9809 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
9810
c3236f84
SM
98112020-05-04 Simon Marchi <simon.marchi@efficios.com>
9812
9813 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
9814 * gdbtypes.c (recursive_dump_type): Remove use of
9815 TYPE_INCOMPLETE.
9816
3b6acaee
TT
98172020-05-03 Tom Tromey <tom@tromey.com>
9818
9819 * breakpoint.c (catch_command, tcatch_command): Remove.
9820 (_initialize_breakpoint): Use add_basic_prefix_cmd,
9821 add_show_prefix_cmd.
9822 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
9823 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
9824 Remove.
9825 (add_internal_problem_command): Use add_basic_prefix_cmd,
9826 add_show_prefix_cmd.
9827 * mips-tdep.c (set_mipsfpu_command): Remove.
9828 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
9829 * dwarf2/index-cache.c (set_index_cache_command): Remove.
9830 (_initialize_index_cache): Use add_basic_prefix_cmd.
9831 * memattr.c (dummy_cmd): Remove.
9832 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
9833 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
9834 (_initialize_tui_win): Use add_basic_prefix_cmd,
9835 add_show_prefix_cmd.
9836 * cli/cli-logging.c (set_logging_command): Remove.
9837 (_initialize_cli_logging): Use add_basic_prefix_cmd,
9838 add_show_prefix_cmd.
9839 (show_logging_command): Remove.
9840 * target.c (target_command): Remove.
9841 (add_target): Use add_basic_prefix_cmd.
9842
a51119cd
HD
98432020-05-02 Hannes Domani <ssbssa@yahoo.de>
9844
9845 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
9846
652fc23a 98472020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 9848
652fc23a
PW
9849 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
9850 info_command.
9851
117539e6
KR
98522020-04-30 Kamil Rytarowski <n54@gmx.com>
9853
9854 * nbsd-nat.c (nbsd_enable_proc_events)
9855 (nbsd_nat_target::post_startup_inferior): Add.
9856 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
9857 (nbsd_nat_target::update_thread_list): Rewrite.
9858 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
9859 "PTRACE_LWP_CREATE".
9860 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
9861
102e38eb 98622020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 9863
102e38eb
PW
9864 * stack.c (_initialize_stack): Remove duplicated creation
9865 of "frame" command and "f" alias.
9866
ee9d1e5f
HD
98672020-04-30 Hannes Domani <ssbssa@yahoo.de>
9868
9869 PR gdb/18706
9870 * gdbtypes.c (check_typedef): Calculate size of array of
9871 stubbed type.
9872
627c7fb8
HD
98732020-04-30 Hannes Domani <ssbssa@yahoo.de>
9874
9875 PR gdb/15559
9876 * i386-tdep.c (i386_push_dummy_call): Call
9877 i386_thiscall_push_dummy_call.
9878 (i386_thiscall_push_dummy_call): New function.
9879 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
9880 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
9881 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
9882
ffc2844e
SM
98832020-04-29 Simon Marchi <simon.marchi@efficios.com>
9884
9885 * gdbarch.sh (do_read): Add shellcheck disable directive for
9886 warning SC2162.
9887
1207375d
SM
98882020-04-29 Simon Marchi <simon.marchi@efficios.com>
9889
9890 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
9891 "referenced but not assigned" warning.
9892
9fdb2916
SM
98932020-04-29 Simon Marchi <simon.marchi@efficios.com>
9894
9895 * gdbarch.sh: Remove code that sets fallbackdefault.
9896
759cea5e
SM
98972020-04-29 Simon Marchi <simon.marchi@efficios.com>
9898
9899 * gdbarch.sh: Use shell operators && and || instead of
9900 -a and -o.
9901
cb02ab24
SM
99022020-04-29 Simon Marchi <simon.marchi@efficios.com>
9903
9904 * gdbarch.sh: Use $(...) instead of `...`.
9905
a6fc5ffc
SM
99062020-04-29 Simon Marchi <simon.marchi@efficios.com>
9907
9908 * gdbarch.sh: Use double quotes around variables.
9909
8d113d13
SM
99102020-04-29 Simon Marchi <simon.marchi@efficios.com>
9911
9912 * gdbarch.sh: Use %s with printf, instead of variables in the
9913 format string.
9914
ed6acedd
TT
99152020-04-29 Tom Tromey <tromey@adacore.com>
9916
9917 PR ada/25875:
9918 * dwarf2/read.c (update_enumeration_type_from_children): Compute
9919 type fields here.
9920 (read_enumeration_type): Call
9921 update_enumeration_type_from_children later. Update comments.
9922 (process_enumeration_scope): Don't create type fields.
9923
b68b1b58
KR
99242020-04-29 Kamil Rytarowski <n54@gmx.com>
9925
9926 * nbsd-tdep.c: Include "xml-syscall.h".
9927 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
9928
f94b2e03
KR
99292020-04-29 Kamil Rytarowski <n54@gmx.com>
9930
9931 * nbsd-nat.c: Include "sys/wait.h".
9932 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
9933 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
9934 (nbsd_nat_target::remove_exec_catchpoint)
9935 (nbsd_nat_target::set_syscall_catchpoint): Add.
9936 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
9937 (nbsd_nat_target::insert_exec_catchpoint)
9938 (nbsd_nat_target::remove_exec_catchpoint)
9939 (nbsd_nat_target::set_syscall_catchpoint): Add.
9940 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
9941 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
9942 `nbsd_get_syscall_number'.
9943
fc49bc72
TT
99442020-04-29 Tom Tromey <tom@tromey.com>
9945
9946 * stack.c (print_block_frame_labels): Remove.
9947
d642b692
HD
99482020-04-29 Hannes Domani <ssbssa@yahoo.de>
9949
9950 PR gdb/17320
9951 * ada-valprint.c (val_print_packed_array_elements): Move array
9952 end bracket to new line.
9953 (ada_val_print_string): Remove extra spaces before first array
9954 element.
9955 * c-valprint.c (c_value_print_array): Likewise.
9956 * m2-valprint.c (m2_print_array_contents): Likewise.
9957 (m2_value_print_inner): Likewise.
9958 * p-valprint.c (pascal_value_print_inner): Likewise.
9959 * valprint.c (generic_val_print_array): Likewise.
9960 (value_print_array_elements): Move first array element and array
9961 end bracket to new line.
9962
ea90f227
TV
99632020-04-29 Tom de Vries <tdevries@suse.de>
9964
9965 PR symtab/25889
9966 * linespec.c (find_method): Fix ix calculation.
9967
4498ef4f
KR
99682020-04-28 Kamil Rytarowski <n54@gmx.com>
9969
9970 * syscalls/update-netbsd.sh: New file.
9971 * syscalls/netbsd.xml: Regenerate.
9972 * data-directory/Makefile.in: Register `netbsd.xml' in
9973 `SYSCALLS_FILES'.
9974
a55e30b5
SM
99752020-04-28 Simon Marchi <simon.marchi@efficios.com>
9976
9977 * syscalls/update-freebsd.sh: Add double quotes.
9978
2b2fbab8
TT
99792020-04-28 Tom Tromey <tom@tromey.com>
9980
9981 * NEWS: Update.
9982 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
9983 (cmdpy_init): Allow class_tui.
9984
a65189c9
TV
99852020-04-28 Mark Williams <mark@myosotissp.com>
9986
9987 PR gdb/24480
9988 * dwarf2read.c: Add missing assingments to list_in_scope when
9989 start_symtab was already called.
9990
1b95cdb7
SM
99912020-04-28 Simon Marchi <simon.marchi@efficios.com>
9992
9993 PR gdb/25881
9994 * dwarf2/read.c (offset_map_type): Use
9995 gdb:hash_enum<sect_offset> as hash function.
9996
15cd93d0
TV
99972020-04-28 Tom de Vries <tdevries@suse.de>
9998
9999 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
10000 with DW_AT_signature.
10001
1eb39914
SM
100022020-04-27 Simon Marchi <simon.marchi@efficios.com>
10003
10004 * configure.ac: Remove check for fs_base/gs_base in
10005 user_regs_struct.
10006 * configure: Re-generate.
10007 * config.in: Re-generate.
10008 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
10009 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
10010 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
10011
991a3e2e
LM
100122020-04-27 Luis Machado <luis.machado@linaro.org>
10013
10014 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
10015 problematic inline frame unwinding situation.
10016 * frame.c (frame_id_computed_p): New function.
10017 * frame.h (frame_id_computed_p): New prototype.
10018
361ba0e8
TT
100192020-04-26 Tom Tromey <tom@tromey.com>
10020
10021 * command.h (enum command_class) <class_pseudo>: Remove.
10022
bc3609fd
PW
100232020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10024
10025 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
10026 and whitespace.
10027
b9771db7
KR
100282020-04-25 Kamil Rytarowski <n54@gmx.com>
10029
ec16513e
SM
10030 * inf-ptrace.c (inf_ptrace_target::wait): Remove
10031 `PT_GET_PROCESS_STATE' block.
b9771db7 10032
7151c1af
TT
100332020-04-24 Tom Tromey <tom@tromey.com>
10034
10035 * symtab.h (symbol_get_demangled_name): Don't declare.
10036 * symtab.c (symbol_get_demangled_name): Remove.
10037 (general_symbol_info::natural_name)
10038 (general_symbol_info::demangled_name): Update.
10039
906bb4c5
TT
100402020-04-24 Tom Tromey <tom@tromey.com>
10041
10042 PR rust/25025:
10043 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
10044
bcfe6157
TT
100452020-04-24 Tom Tromey <tom@tromey.com>
10046
10047 PR symtab/12707:
10048 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
10049 exists.
10050 (new_symbol): Likewise.
10051 * compile/compile-object-load.c (get_out_value_type): Use
10052 symbol_matches_search_name.
10053
f049a313
TT
100542020-04-24 Tom Tromey <tom@tromey.com>
10055
10056 * dwarf2/read.c (add_partial_symbol): Do not call
10057 compute_and_set_names.
10058
76e288d1
TT
100592020-04-24 Tom Tromey <tom@tromey.com>
10060
10061 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
10062 overload.
10063
2467f4f6
TT
100642020-04-24 Tom Tromey <tom@tromey.com>
10065
10066 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
10067 (add_psymbol_to_list): New overload. Make old overload call new
10068 one.
10069 * psympriv.h (add_psymbol_to_list): New overload.
10070
e61108c9
TT
100712020-04-24 Tom Tromey <tom@tromey.com>
10072
10073 * dwarf2/read.c (partial_die_info::read) <case
10074 DW_AT_linkage_name>: Use value_as_string.
10075 (dwarf2_string_attr): Use value_as_string.
10076 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
10077 method.
10078 * dwarf2/attribute.c (attribute::value_as_string): New method.
10079
8c87a452
TT
100802020-04-24 Tom Tromey <tom@tromey.com>
10081
10082 * symtab.c (general_symbol_info::natural_name)
10083 (general_symbol_info::demangled_name): Check for language_rust.
10084
787de330
TT
100852020-04-24 Tom Tromey <tom@tromey.com>
10086
10087 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
10088 (dwarf2_physname): ... from here.
10089 (partial_die_info::read): Add Rust "{" hack.
10090
ff985671
TT
100912020-04-24 Tom Tromey <tom@tromey.com>
10092
10093 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
10094 method.
10095 (symbol_set_demangled_name): Don't declare.
10096 * symtab.c (general_symbol_info::set_demangled_name): Rename from
10097 symbol_set_demangled_name.
10098 (general_symbol_info::set_language)
10099 (general_symbol_info::compute_and_set_names): Update.
10100 * minsyms.c (minimal_symbol_reader::install): Update.
10101 * dwarf2/read.c (new_symbol): Update.
10102
1acda803
TT
101032020-04-24 Tom Tromey <tromey@adacore.com>
10104
10105 PR python/23662:
10106 * python/py-type.c (convert_field): Handle
10107 FIELD_LOC_KIND_DWARF_BLOCK.
10108 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
10109 (typy_get_dynamic): Nw function.
10110 (type_object_getset): Add "dynamic".
10111 * NEWS: Add entry.
10112
d656f129
TT
101132020-04-24 Tom Tromey <tromey@adacore.com>
10114
10115 * ada-typeprint.c (print_choices, print_variant_part)
10116 (print_record_field_types_dynamic): New functions.
10117 (print_record_field_types): Use print_record_field_types_dynamic.
10118
7d79de9a
TT
101192020-04-24 Tom Tromey <tromey@adacore.com>
10120
10121 * dwarf2/read.c (handle_data_member_location): New overload.
10122 (dwarf2_add_field): Use it.
10123 (decode_locdesc): Add "computed" parameter. Update comment.
10124 * gdbtypes.c (is_dynamic_type_internal): Also look for
10125 FIELD_LOC_KIND_DWARF_BLOCK.
10126 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
10127 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
10128 virtual base classes.
10129 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
10130 FIELD_LOC_KIND_DWARF_BLOCK.
10131
f8e89861
TT
101322020-04-24 Tom Tromey <tromey@adacore.com>
10133
10134 * dwarf2/read.c (read_structure_type): Handle dynamic length.
10135 * gdbtypes.c (is_dynamic_type_internal): Check
10136 TYPE_HAS_DYNAMIC_LENGTH.
10137 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
10138 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
10139 New macros.
10140 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
10141 constant.
10142
9c6a1327
TT
101432020-04-24 Tom Tromey <tromey@adacore.com>
10144
10145 * dwarf2/read.c (struct variant_field): Rewrite.
10146 (struct variant_part_builder): New.
10147 (struct nextfield): Remove "variant" field. Add "offset".
10148 (struct field_info): Add "current_variant_part" and
10149 "variant_parts".
10150 (alloc_discriminant_info): Remove.
10151 (alloc_rust_variant): New function.
10152 (quirk_rust_enum): Update.
10153 (dwarf2_add_field): Set "offset" member. Don't handle
10154 DW_TAG_variant_part.
10155 (offset_map_type): New typedef.
10156 (convert_variant_range, create_one_variant)
10157 (create_one_variant_part, create_variant_parts)
10158 (add_variant_property): New functions.
10159 (dwarf2_attach_fields_to_type): Call add_variant_property.
10160 (read_structure_type): Don't handle DW_TAG_variant_part.
10161 (handle_variant_part, handle_variant): New functions.
10162 (handle_struct_member_die): Use them.
10163 (process_structure_scope): Don't handle variant parts.
10164 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
10165 (struct discriminant_info): Remove.
10166 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
10167 (struct main_type) <flag_discriminated_union>: Remove.
10168 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
10169 (rust_enum_variant): Return int. Remove "contents". Rewrite.
10170 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
10171 Update.
10172 * valops.c (value_union_variant): Remove.
10173 * value.h (value_union_variant): Don't declare.
10174
b249d2c2
TT
101752020-04-24 Tom Tromey <tromey@adacore.com>
10176
10177 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
10178 (ada_value_primitive_packed_val): Update.
10179 * ada-valprint.c (ada_value_print_1): Update.
10180 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
10181 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
10182 just an address. Use evaluate_for_locexpr_baton.
10183 (dwarf2_evaluate_property): Update.
10184 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
10185 array_view.
10186 * findvar.c (default_read_var_value): Update.
10187 * gdbtypes.c (compute_variant_fields_inner)
10188 (resolve_dynamic_type_internal): Update.
10189 (resolve_dynamic_type): Change type of valaddr parameter.
10190 * gdbtypes.h (resolve_dynamic_type): Update.
10191 * valarith.c (value_subscripted_rvalue): Update.
10192 * value.c (value_from_contents_and_address): Update.
10193
61122aa9
TT
101942020-04-24 Tom Tromey <tromey@adacore.com>
10195
10196 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
10197 "push_initial_value" parameter.
10198 (dwarf2_evaluate_property): Likewise.
10199 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
10200
ef83a141
TT
102012020-04-24 Tom Tromey <tromey@adacore.com>
10202
10203 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
10204 (variant::matches, compute_variant_fields_recurse)
10205 (compute_variant_fields_inner, compute_variant_fields): New
10206 functions.
10207 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
10208 Use resolved_type after type is made.
10209 (operator==): Add new cases.
10210 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
10211 (struct discriminant_range, struct variant, struct variant_part):
10212 New.
10213 (union dynamic_prop_data) <variant_parts, original_type>: New
10214 members.
10215 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
10216 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
10217 constants.
10218 * value.c (unpack_bits_as_long): Now public.
10219 * value.h (unpack_bits_as_long): Declare.
10220
675127ec
TT
102212020-04-24 Tom Tromey <tromey@adacore.com>
10222
10223 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
10224 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
10225
9852ceef
HD
102262020-04-24 Hannes Domani <ssbssa@yahoo.de>
10227
10228 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
10229
7632c6ce
KR
102302020-04-24 Kamil Rytarowski <n54@gmx.com>
10231
10232 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
10233 (remove_fork_catchpoint, post_startup_inferior)
10234 (post_attach): Move...
10235 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
10236 (remove_fork_catchpoint, post_startup_inferior)
10237 (post_attach): ...here.
10238 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
10239 (remove_fork_catchpoint, post_startup_inferior)
10240 (post_attach): Move...
10241 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
10242 (remove_fork_catchpoint, post_startup_inferior)
10243 (post_attach): ...here.
10244
7be2bb4f
TT
102452020-04-24 Tom Tromey <tromey@adacore.com>
10246
10247 * nat/windows-nat.h (struct windows_thread_info)
10248 <pc_adjusted>: New member.
10249 * windows-nat.c (windows_fetch_one_register): Check
10250 pc_adjusted.
10251 (windows_nat_target::get_windows_debug_event)
10252 (windows_nat_target::wait): Set pc_adjusted.
10253
f80cb3b4
TV
102542020-04-24 Tom de Vries <tdevries@suse.de>
10255
10256 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
10257 Run gdb-add-index inside temp dir.
10258
29514b87
TT
102592020-04-23 Tom Tromey <tromey@adacore.com>
10260
10261 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
10262 in loop.
10263
5939967b
LM
102642020-04-23 Luis Machado <luis.machado@linaro.org>
10265
10266 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10267 get_frame_register instead of gdbarch_unwind_pc.
10268
70bc38f5
TV
102692020-04-23 Tom de Vries <tdevries@suse.de>
10270
10271 * symtab.c (lookup_global_symbol): Prefer def over decl.
10272
de82891c
TV
102732020-04-23 Tom de Vries <tdevries@suse.de>
10274
10275 PR symtab/25807
10276 * block.c (best_symbol, better_symbol): Promote to external.
10277 * block.h (best_symbol, better_symbol): Declare.
10278 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
10279 decl.
10280
ecc6c606
TT
102812020-04-23 Tom Tromey <tromey@adacore.com>
10282
10283 PR ada/25837:
10284 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
10285 "const char *", not a "const std::string &".
10286 <name_and_matcher::operator==>: Update.
10287 * unittests/lookup_name_info-selftests.c: Change type of
10288 "result".
10289
740480b8
TT
102902020-04-23 Tom Tromey <tom@tromey.com>
10291
10292 * inferior.h (iterate_over_inferiors): Don't declare.
10293 * inferior.c (iterate_over_inferiors): Remove.
10294 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
10295 Remove.
10296 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
10297 use iterate_over_inferiors.
10298 (darwin_resume_inferior_it)
10299 (struct resume_inferior_threads_param)
10300 (darwin_resume_inferior_threads_it): Remove.
10301 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
10302
ae3ab1f0
TV
103032020-04-23 Tom de Vries <tdevries@suse.de>
10304
10305 * blockframe.c (find_pc_partial_function): Use
10306 find_pc_sect_compunit_symtab rather than
10307 objfile->sf->qf->find_pc_sect_compunit_symtab.
10308
317d2668
TV
103092020-04-22 Tom de Vries <tdevries@suse.de>
10310
10311 PR symtab/25764
10312 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
10313 in psymtabs.
10314
eea9e357
TV
103152020-04-22 Tom de Vries <tdevries@suse.de>
10316
10317 PR symtab/25801
10318 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
10319 symtabs.
10320
3d5afab3
TV
103212020-04-22 Tom de Vries <tdevries@suse.de>
10322
10323 PR symtab/25700
10324 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
10325 CU if already created.
10326
d43b7a2d
TBA
103272020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10328
10329 * infrun.c (displaced_step_fixup): Switch to the event_thread
10330 before calling displaced_step_restore, not after.
10331
d89edf9b
MM
103322020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10333
10334 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
10335 its inferior is not recorded by us.
10336 (record_btrace_target_open): Replace call to
10337 all_non_exited_threads () with call to current_inferior
10338 ()->non_exited_threads ().
10339 (record_btrace_target::stop_recording): Likewise.
10340 (record_btrace_target::close): Likewise.
10341 (record_btrace_target::wait): Likewise.
10342 (record_btrace_target::record_stop_replaying): Likewise.
10343
5897fd49
MM
103442020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10345
10346 * btrace.c (btrace_enable): Throw an error on double enables and
10347 when enabling recording fails.
10348 (btrace_disable): Throw an error if the thread is not recorded.
10349
1a476b6d
MM
103502020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10351
10352 * record-btrace.c (record_btrace_target::fetch_registers): Forward
10353 request if we do not have a thread_info.
10354
4778a5f8
TV
103552020-04-21 Tom de Vries <tdevries@suse.de>
10356
10357 PR gdb/25471
10358 * thread.c
10359 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
10360 exception in get_frame_id.
10361
0fa7617d
TT
103622020-04-20 Tom Tromey <tromey@adacore.com>
10363
10364 * python/python.c (struct gdbpy_event): Mark move constructor as
10365 noexcept.
10366 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
10367 constructor as noexcept.
10368 * completer.h (struct completion_result): Mark move constructor as
10369 noexcept.
10370 * completer.c (completion_result::completion_result): Use
10371 initialization style. Don't call reset_match_list.
10372
ad23bda0
MS
103732020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
10374
10375 * MAINTAINERS (Write After Approval): Add myself.
10376
45e1f031
TT
103772020-04-18 Tom Tromey <tom@tromey.com>
10378
10379 * windows-tdep.c (init_w32_command_list)
10380 (w32_prefix_command_valid): Restore.
10381 (_initialize_windows_tdep): Call init_w32_command_list.
10382
08feed99
TT
103832020-04-18 Tom Tromey <tom@tromey.com>
10384
10385 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
10386 * value.c (value_fn_field): Update.
10387 * valops.c (find_function_in_inferior)
10388 (value_allocate_space_in_inferior): Update.
10389 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10390 Update.
10391 * tui/tui-source.c (tui_source_window::set_contents): Update.
10392 * symtab.c (lookup_global_or_static_symbol)
10393 (find_function_start_sal_1, skip_prologue_sal)
10394 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
10395 * symmisc.c (dump_msymbols, dump_symtab_1)
10396 (maintenance_print_one_line_table): Update.
10397 * symfile.c (init_entry_point_info, section_is_mapped)
10398 (list_overlays_command, simple_read_overlay_table)
10399 (simple_overlay_update_1): Update.
10400 * stap-probe.c (handle_stap_probe): Update.
10401 * stabsread.c (dbx_init_float_type, define_symbol)
10402 (read_one_struct_field, read_enum_type, read_range_type): Update.
10403 * source.c (info_line_command): Update.
10404 * python/python.c (gdbpy_source_objfile_script)
10405 (gdbpy_execute_objfile_script): Update.
10406 * python/py-type.c (save_objfile_types): Update.
10407 * python/py-objfile.c (py_free_objfile): Update.
10408 * python/py-inferior.c (python_new_objfile): Update.
10409 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
10410 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
10411 (maintenance_check_psymtabs): Update.
10412 * printcmd.c (info_address_command): Update.
10413 * objfiles.h (struct objfile) <arch>: New method, from
10414 get_objfile_arch.
10415 (get_objfile_arch): Don't declare.
10416 * objfiles.c (get_objfile_arch): Remove.
10417 (filter_overlapping_sections): Update.
10418 * minsyms.c (msymbol_is_function): Update.
10419 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
10420 (output_nondebug_symbol): Update.
10421 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
10422 (mdebug_expand_psymtab): Update.
10423 * machoread.c (macho_add_oso_symfile): Update.
10424 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
10425 Update.
10426 * linux-fork.c (checkpoint_command): Update.
10427 * linespec.c (convert_linespec_to_sals): Update.
10428 * jit.c (finalize_symtab): Update.
10429 * infrun.c (insert_exception_resume_from_probe): Update.
10430 * ia64-tdep.c (ia64_find_unwind_table): Update.
10431 * hppa-tdep.c (internalize_unwinds): Update.
10432 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
10433 Update.
10434 * gcore.c (call_target_sbrk): Update.
10435 * elfread.c (record_minimal_symbol, elf_symtab_read)
10436 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
10437 (elf_gnu_ifunc_resolve_by_got): Update.
10438 * dwarf2/read.c (create_addrmap_from_index)
10439 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10440 (read_debug_names_from_section)
10441 (process_psymtab_comp_unit_reader, add_partial_symbol)
10442 (add_partial_subprogram, process_full_comp_unit)
10443 (read_file_scope, read_func_scope, read_lexical_block_scope)
10444 (read_call_site_scope, dwarf2_ranges_read)
10445 (dwarf2_record_block_ranges, dwarf2_add_field)
10446 (mark_common_block_symbol_computed, read_tag_pointer_type)
10447 (read_tag_string_type, dwarf2_init_float_type)
10448 (dwarf2_init_complex_target_type, read_base_type)
10449 (partial_die_info::read, partial_die_info::read)
10450 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
10451 (dwarf2_fetch_die_loc_sect_off): Update.
10452 * dwarf2/loc.c (dwarf2_find_location_expression)
10453 (class dwarf_evaluate_loc_desc, rw_pieced_value)
10454 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
10455 (dwarf2_loc_desc_get_symbol_read_needs)
10456 (locexpr_describe_location_piece, locexpr_describe_location_1)
10457 (loclist_describe_location): Update.
10458 * dwarf2/index-write.c (write_debug_names): Update.
10459 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
10460 * dtrace-probe.c (dtrace_process_dof): Update.
10461 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
10462 (process_one_symbol): Update.
10463 * ctfread.c (ctf_init_float_type, read_base_type): Update.
10464 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
10465 (coff_read_enum_type): Update.
10466 * cli/cli-cmds.c (edit_command, list_command): Update.
10467 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
10468 * breakpoint.c (create_overlay_event_breakpoint)
10469 (create_longjmp_master_breakpoint)
10470 (create_std_terminate_master_breakpoint)
10471 (create_exception_master_breakpoint, get_sal_arch): Update.
10472 * block.c (block_gdbarch): Update.
10473 * annotate.c (annotate_source_line): Update.
10474
0743fc83
TT
104752020-04-17 Tom Tromey <tromey@adacore.com>
10476
10477 * auto-load.c (show_auto_load_cmd): Remove.
10478 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
10479 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
10480 (maintenance_print_arc_command): Remove.
10481 * tui/tui-win.c (tui_command): Remove.
10482 (tui_get_cmd_list): Use add_basic_prefix_cmd.
10483 * tui/tui-layout.c (tui_layout_command): Remove.
10484 (_initialize_tui_layout): Use add_basic_prefix_cmd.
10485 * python/python.c (user_set_python, user_show_python): Remove.
10486 (_initialize_python): Use add_basic_prefix_cmd,
10487 add_show_prefix_cmd.
10488 * guile/guile.c (set_guile_command, show_guile_command): Remove.
10489 (install_gdb_commands): Use add_basic_prefix_cmd,
10490 add_show_prefix_cmd.
10491 (info_guile_command): Remove.
10492 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
10493 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
10494 add_show_prefix_cmd.
10495 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
10496 Remove do_set and do_show parameters.
10497 * cli/cli-style.c (set_style, show_style): Remove.
10498 (_initialize_cli_style): Use add_basic_prefix_cmd,
10499 add_show_prefix_cmd.
10500 (cli_style_option::add_setshow_commands): Remove do_set and
10501 do_show parameters.
10502 (cli_style_option::add_setshow_commands): Use
10503 add_basic_prefix_cmd, add_show_prefix_cmd.
10504 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
10505 (set_style_name): Remove.
10506 * cli/cli-dump.c (dump_command, append_command): Remove.
10507 (srec_dump_command, ihex_dump_command, verilog_dump_command)
10508 (tekhex_dump_command, binary_dump_command)
10509 (binary_append_command): Remove.
10510 (_initialize_cli_dump): Use add_basic_prefix_cmd.
10511 * windows-tdep.c (w32_prefix_command_valid): Remove global.
10512 (init_w32_command_list): Remove; move into ...
10513 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
10514 * valprint.c (set_print, show_print, set_print_raw)
10515 (show_print_raw): Remove.
10516 (_initialize_valprint): Use add_basic_prefix_cmd,
10517 add_show_prefix_cmd.
10518 * typeprint.c (set_print_type, show_print_type): Remove.
10519 (_initialize_typeprint): Use add_basic_prefix_cmd,
10520 add_show_prefix_cmd.
10521 * record.c (set_record_command, show_record_command): Remove.
10522 (_initialize_record): Use add_basic_prefix_cmd,
10523 add_show_prefix_cmd.
10524 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
10525 add_show_prefix_cmd.
10526 (info_command, show_command, set_debug, show_debug): Remove.
10527 * top.h (set_history, show_history): Don't declare.
10528 * top.c (set_history, show_history): Remove.
10529 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
10530 (unset_tdesc_cmd): Remove.
10531 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
10532 add_show_prefix_cmd.
10533 * symtab.c (info_module_command): Remove.
10534 (_initialize_symtab): Use add_basic_prefix_cmd.
10535 * symfile.c (overlay_command): Remove.
10536 (_initialize_symfile): Use add_basic_prefix_cmd.
10537 * sparc64-tdep.c (info_adi_command): Remove.
10538 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
10539 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
10540 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
10541 add_show_prefix_cmd.
10542 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
10543 (_initialize_serial): Use add_basic_prefix_cmd,
10544 add_show_prefix_cmd.
10545 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
10546 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
10547 add_show_prefix_cmd.
10548 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
10549 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
10550 add_show_prefix_cmd.
10551 * riscv-tdep.c (show_riscv_command, set_riscv_command)
10552 (show_debug_riscv_command, set_debug_riscv_command): Remove.
10553 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
10554 add_show_prefix_cmd.
10555 * remote.c (remote_command, set_remote_cmd): Remove.
10556 (_initialize_remote): Use add_basic_prefix_cmd.
10557 * record-full.c (set_record_full_command)
10558 (show_record_full_command): Remove.
10559 (_initialize_record_full): Use add_basic_prefix_cmd,
10560 add_show_prefix_cmd.
10561 * record-btrace.c (cmd_set_record_btrace)
10562 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
10563 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
10564 (cmd_show_record_btrace_pt): Remove.
10565 (_initialize_record_btrace): Use add_basic_prefix_cmd,
10566 add_show_prefix_cmd.
10567 * ravenscar-thread.c (set_ravenscar_command)
10568 (show_ravenscar_command): Remove.
10569 (_initialize_ravenscar): Use add_basic_prefix_cmd,
10570 add_show_prefix_cmd.
10571 * mips-tdep.c (show_mips_command, set_mips_command)
10572 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
10573 add_show_prefix_cmd.
10574 * maint.c (maintenance_command, maintenance_info_command)
10575 (maintenance_check_command, maintenance_print_command)
10576 (maintenance_set_cmd, maintenance_show_cmd): Remove.
10577 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
10578 add_show_prefix_cmd.
10579 (show_per_command_cmd): Remove.
10580 * maint-test-settings.c (maintenance_set_test_settings_cmd):
10581 Remove.
10582 (maintenance_show_test_settings_cmd): Remove.
10583 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
10584 add_show_prefix_cmd.
10585 * maint-test-options.c (maintenance_test_options_command):
10586 Remove.
10587 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
10588 * macrocmd.c (macro_command): Remove
10589 (_initialize_macrocmd): Use add_basic_prefix_cmd.
10590 * language.c (set_check, show_check): Remove.
10591 (_initialize_language): Use add_basic_prefix_cmd,
10592 add_show_prefix_cmd.
10593 * infcmd.c (unset_command): Remove.
10594 (_initialize_infcmd): Use add_basic_prefix_cmd.
10595 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
10596 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
10597 add_show_prefix_cmd.
10598 * go32-nat.c (go32_info_dos_command): Remove.
10599 (_initialize_go32_nat): Use add_basic_prefix_cmd.
10600 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
10601 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
10602 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
10603 (_initialize_frame): Use add_basic_prefix_cmd,
10604 add_show_prefix_cmd.
10605 * dcache.c (set_dcache_command, show_dcache_command): Remove.
10606 (_initialize_dcache): Use add_basic_prefix_cmd,
10607 add_show_prefix_cmd.
10608 * cp-support.c (maint_cplus_command): Remove.
10609 (_initialize_cp_support): Use add_basic_prefix_cmd.
10610 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
10611 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
10612 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
10613 add_basic_prefix_cmd, add_show_prefix_cmd.
10614 * breakpoint.c (save_command): Remove.
10615 (_initialize_breakpoint): Use add_basic_prefix_cmd.
10616 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
10617 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
10618 add_show_prefix_cmd.
10619 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
10620 (set_ada_command, show_ada_command): Remove.
10621 (_initialize_ada_language): Use add_basic_prefix_cmd,
10622 add_show_prefix_cmd.
10623 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
10624
3557f442
KR
106252020-04-16 Kamil Rytarowski <n54@gmx.com>
10626
10627 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
10628 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
10629
16197208
SM
106302020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
10631
10632 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
10633 warning messages.
10634
00ac85d3
SM
106352020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
10636
10637 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
10638 import table is not at beginning of .idata section.
10639
381ce63f
PA
106402020-04-16 Pedro Alves <palves@redhat.com>
10641
10642 * inferior.c (delete_inferior): Use delete operator directly
10643 instead of delete_program_space.
10644 * progspace.c (add_program_space): New, factored out from
10645 program_space::program_space.
10646 (remove_program_space): New, factored out from
10647 delete_program_space.
10648 (program_space::program_space): Remove intro comment. Rewrite.
10649 (program_space::~program_space): Remove intro comment. Call
10650 remove_program_space.
10651 (delete_program_space): Delete.
10652 * progspace.h (program_space::program_space): Make explicit. Move
10653 intro comment here, adjusted.
10654 (program_space::~program_space): Move intro comment here,
10655 adjusted.
10656 (delete_program_space): Remove.
10657
a010605f
TT
106582020-04-16 Tom Tromey <tromey@adacore.com>
10659
10660 * windows-nat.c (windows_nat::handle_access_violation): New
10661 function.
10662 * nat/windows-nat.h (handle_access_violation): Declare.
10663 * nat/windows-nat.c (handle_exception): Move Cygwin code to
10664 windows-nat.c. Call handle_access_violation.
10665
efba5c23
TV
106662020-04-16 Tom de Vries <tdevries@suse.de>
10667
10668 PR symtab/25791
10669 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
10670 CUs without psymtab.
10671
97ed802d
KB
106722020-04-16 Kevin Buettner <kevinb@redhat.com>
10673
10674 * python/python.c (do_start_initialization): Don't call
10675 PyEval_InitThreads for Python 3.9 and beyond.
10676
c7d64809
KR
106772020-04-15 Kamil Rytarowski <n54@gmx.com>
10678
10679 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
10680 thread functions.
10681 (obsd_nat_target::wait): Likewise.
10682
ce127a96
TT
106832020-04-15 Tom Tromey <tromey@adacore.com>
10684
10685 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
10686 (DEBUG_EXCEPT): Use debug_printf.
10687
99f1bc6a
AB
106882020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
10689
10690 * completer.c (class completion_tracker::completion_hash_entry)
10691 <hash_name>: New member function.
10692 (completion_tracker::discard_completions): New callback to hash a
10693 completion_hash_entry, pass this to htab_create_alloc.
10694
a0e9b532
JT
106952016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
10696
10697 * windows-nat.c (windows_make_so): Warn rather than stopping with
10698 an error if realpath() fails.
10699
06ca5dd4
KR
107002020-04-14 Kamil Rytarowski <n54@gmx.com>
10701
10702 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
10703 (nbsd_nat_target::info_proc): Add do_status.
10704
194d088f
TV
107052020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
10706 Tom de Vries <tdevries@suse.de>
10707
10708 PR symtab/25718
10709 * psympriv.h (struct partial_symtab::read_symtab)
10710 (struct partial_symtab::expand_psymtab)
10711 (struct partial_symtab::read_dependencies): Update comments.
10712 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
10713 read_symtab for includer.
10714 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
10715 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
10716 (struct dwarf2_include_psymtab::m_readin): Remove.
10717 (struct dwarf2_include_psymtab::includer): New member function.
10718 (dwarf2_psymtab::expand_psymtab): Assert !readin.
10719
c1a66c06
TV
107202020-04-14 Tom de Vries <tdevries@suse.de>
10721
10722 PR symtab/25720
10723 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
10724 with NULL symbol_matcher and lookup_name.
10725 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
10726 and lookup_name.
10727 * dwarf2/read.c (dw2_expand_symtabs_matching)
10728 (dw2_debug_names_expand_symtabs_matching): Same.
10729 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
10730 Make lookup_name a pointer. Update comment.
10731 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
10732 lookup_name being a pointer.
10733 * symfile.c (expand_symtabs_matching): Same.
10734 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
10735 * linespec.c (iterate_over_all_matching_symtabs): Same.
10736
400b5eca
TT
107372020-04-13 Tom Tromey <tom@tromey.com>
10738
10739 * run-on-main-thread.c: Update include.
10740 * unittests/main-thread-selftests.c: Update include.
10741 * tui/tui-win.c: Update include.
10742 * tui/tui-io.c: Update include.
10743 * tui/tui-interp.c: Update include.
10744 * tui/tui-hooks.c: Update include.
10745 * top.h: Update include.
10746 * top.c: Update include.
10747 * ser-base.c: Update include.
10748 * remote.c: Update include.
10749 * remote-notif.c: Update include.
10750 * remote-fileio.c: Update include.
10751 * record-full.c: Update include.
10752 * record-btrace.c: Update include.
10753 * python/python.c: Update include.
10754 * posix-hdep.c: Update include.
10755 * mingw-hdep.c: Update include.
10756 * mi/mi-main.c: Update include.
10757 * mi/mi-interp.c: Update include.
10758 * main.c: Update include.
10759 * linux-nat.c: Update include.
10760 * interps.c: Update include.
10761 * infrun.c: Update include.
10762 * inf-loop.c: Update include.
10763 * event-top.c: Update include.
10764 * event-loop.c: Move to ../gdbsupport/.
10765 * event-loop.h: Move to ../gdbsupport/.
10766 * async-event.h: Update include.
10767 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
10768
93b54c8e
TT
107692020-04-13 Tom Tromey <tom@tromey.com>
10770
10771 * tui/tui-win.c: Include async-event.h.
10772 * remote.c: Include async-event.h.
10773 * remote-notif.c: Include async-event.h.
10774 * record-full.c: Include async-event.h.
10775 * record-btrace.c: Include async-event.h.
10776 * infrun.c: Include async-event.h.
10777 * event-top.c: Include async-event.h.
10778 * event-loop.h: Move some declarations to async-event.h.
10779 * event-loop.c: Don't include ser-event.h or top.h. Move some
10780 code to async-event.c.
10781 * async-event.h: New file.
10782 * async-event.c: New file.
10783 * Makefile.in (COMMON_SFILES): Add async-event.c.
10784 (HFILES_NO_SRCDIR): Add async-event.h.
10785
c1cd3163
TT
107862020-04-13 Tom Tromey <tom@tromey.com>
10787
10788 * utils.c (flush_streams): New function.
10789 * event-loop.c (gdb_wait_for_event): Call flush_streams.
10790
29f2bf4f
TT
107912020-04-13 Tom Tromey <tom@tromey.com>
10792
10793 * event-loop.c (handle_file_event): Use warning, not
10794 printf_unfiltered.
10795
98029d02
TT
107962020-04-13 Tom Tromey <tom@tromey.com>
10797
10798 * event-loop.c: Include <chrono>.
10799
06cc9596
TT
108002020-04-13 Tom Tromey <tom@tromey.com>
10801
10802 * gdb_select.h: Move to ../gdbsupport/.
10803 * event-loop.c: Update include path.
10804 * top.c: Update include path.
10805 * ser-base.c: Update include path.
10806 * ui-file.c: Update include path.
10807 * ser-tcp.c: Update include path.
10808 * guile/scm-ports.c: Update include path.
10809 * posix-hdep.c: Update include path.
10810 * ser-unix.c: Update include path.
10811 * gdb_usleep.c: Update include path.
10812 * mingw-hdep.c: Update include path.
10813 * inflow.c: Update include path.
10814 * infrun.c: Update include path.
10815 * event-top.c: Update include path.
10816
8ae8e197
TT
108172020-04-13 Tom Tromey <tom@tromey.com>
10818
10819 * configure: Rebuild.
10820 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
10821
58cf28e8
TT
108222020-04-13 Tom Tromey <tom@tromey.com>
10823
10824 * event-loop.h (start_event_loop): Don't declare.
10825 * event-loop.c (start_event_loop): Move...
10826 * main.c (start_event_loop): ...here. Now static.
10827
b7f999ae
SDJ
108282020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
10829
10830 * MAINTAINERS: Update my email address.
10831
1085dfd4
KR
108322020-04-12 Kamil Rytarowski <n54@gmx.com>
10833
10834 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
10835 IP_ALL.
10836
49d1d1f5
KR
108372020-04-12 Kamil Rytarowski <n54@gmx.com>
10838
10839 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 10840 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 10841
b4848d2a
KR
108422020-04-12 Kamil Rytarowski <n54@gmx.com>
10843
10844 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 10845 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 10846
51c133d5
KR
108472020-04-12 Kamil Rytarowski <n54@gmx.com>
10848
10849 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
10850
54b8cbd0
KR
108512020-04-11 Kamil Rytarowski <n54@gmx.com>
10852
10853 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
10854 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
10855 (nbsd_nat_target::info_proc): New functions.
10856 * nbsd-nat.c (kinfo_get_vmmap): New function.
10857 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
10858 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
10859 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
10860 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
10861 functions.
10862 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
10863 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
10864 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
10865 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
10866 (KINFO_VME_FLAG_GROWS_DOWN): New.
10867
cf83625d
AS
108682020-04-10 Artur Shepilko <nomadbyte@gmail.com>
10869
10870 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
10871 bit shift.
10872
0c4311ab
TT
108732020-04-10 Tom Tromey <tromey@adacore.com>
10874
10875 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
10876
3e65b3e9
TT
108772020-04-10 Tom Tromey <tromey@adacore.com>
10878
10879 * symtab.c (get_symbol_address, get_msymbol_address): Skip
10880 separate debug files.
10881
13302e95
HD
108822020-04-10 Hannes Domani <ssbssa@yahoo.de>
10883
10884 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
10885 Move to...
10886 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
10887 ... here.
10888 * windows-nat.c (windows_nat_target::get_windows_debug_event):
10889 Check for STATUS_WX86_BREAKPOINT.
10890 (windows_nat_target::wait): Same.
10891
bdfc1e8a
TV
108922020-04-10 Tom de Vries <tdevries@suse.de>
10893
10894 PR cli/25808
10895 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
10896
f4460aec
SM
108972020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10898
10899 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
10900 (Write After Approval): Remove Tom de Vries.
10901
a25198bb
BE
109022020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
10903
10904 revert partially:
10905 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10906
aac66a4c
SM
10907 * buildsym.c (record_line): Fix undefined behavior and preserve
10908 lines at eof.
a25198bb 10909
206c98a6
KR
109102020-04-09 Kamil Rytarowski <n54@gmx.com>
10911
10912 * auxv.h (svr4_auxv_parse): New.
10913 * auxv.c (default_auxv_parse): Split into default_auxv_parse
10914 and generic_auxv_parse.
10915 (svr4_auxv_parse): Add.
10916 * obsd-tdep.c: Include "auxv.h".
10917 (obsd_auxv_parse): Remove.
10918 (obsd_init_abi): Remove comment.
10919 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
10920 from `obsd_auxv_parse' to `svr4_auxv_parse'.
10921 * nbsd-tdep.c: Include "auxv.h".
10922 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
10923
71fbdbaf
TT
109242020-04-08 Tom Tromey <tromey@adacore.com>
10925
10926 * nat/windows-nat.h (last_wait_event): Don't declare.
10927 (wait_for_debug_event): Update comment.
10928 * nat/windows-nat.c (last_wait_event): Now static.
10929
2c1d95e8
TT
109302020-04-08 Tom Tromey <tromey@adacore.com>
10931
10932 * windows-nat.c (wait_for_debug_event): Move to
10933 nat/windows-nat.c.
10934 * nat/windows-nat.h (wait_for_debug_event): Declare.
10935 * nat/windows-nat.c (wait_for_debug_event): Move from
10936 windows-nat.c. No longer static.
10937
d2977bc4
TT
109382020-04-08 Tom Tromey <tromey@adacore.com>
10939
10940 * windows-nat.c (get_windows_debug_event): Use
10941 fetch_pending_stop.
10942 * nat/windows-nat.h (fetch_pending_stop): Declare.
10943 * nat/windows-nat.c (fetch_pending_stop): New function.
10944
e758e19c
TT
109452020-04-08 Tom Tromey <tromey@adacore.com>
10946
10947 * windows-nat.c (windows_continue): Use matching_pending_stop and
10948 continue_last_debug_event.
10949 * nat/windows-nat.h (matching_pending_stop)
10950 (continue_last_debug_event): Declare.
10951 * nat/windows-nat.c (DEBUG_EVENTS): New define.
10952 (matching_pending_stop, continue_last_debug_event): New
10953 functions.
10954
8d30e395
TT
109552020-04-08 Tom Tromey <tromey@adacore.com>
10956
10957 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
10958 (handle_exception_result): Move to nat/windows-nat.h.
10959 (DEBUG_EXCEPTION_SIMPLE): Remove.
10960 (windows_nat::handle_ms_vc_exception): New function.
10961 (handle_exception): Move to nat/windows-nat.c.
10962 (get_windows_debug_event): Update.
10963 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
10964 nat/windows-nat.c.
10965 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
10966 (handle_exception_result): Move from windows-nat.c.
10967 (handle_exception): Declare.
10968 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
10969 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
10970 windows-nat.c.
10971
29de418d
TT
109722020-04-08 Tom Tromey <tromey@adacore.com>
10973
10974 * windows-nat.c (exception_count, event_count): Remove.
10975 (handle_exception, get_windows_debug_event)
10976 (do_initial_windows_stuff): Update.
10977
a816ba18
TT
109782020-04-08 Tom Tromey <tromey@adacore.com>
10979
10980 * windows-nat.c (windows_nat::handle_load_dll)
10981 (windows_nat::handle_unload_dll): Rename. No longer static.
10982 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
10983 Declare.
10984
a00caa12
TT
109852020-04-08 Tom Tromey <tromey@adacore.com>
10986
10987 * complaints.h (stop_whining): Declare at top-level.
10988 (complaint): Don't declare stop_whining.
10989
d41b524f
TT
109902020-04-08 Tom Tromey <tromey@adacore.com>
10991
10992 * windows-nat.c (windows_nat::handle_output_debug_string):
10993 Rename. No longer static.
10994 * nat/windows-nat.h (handle_output_debug_string): Declare.
10995
3c76026d
TT
109962020-04-08 Tom Tromey <tromey@adacore.com>
10997
10998 * windows-nat.c (current_process_handle, current_process_id)
10999 (main_thread_id, last_sig, current_event, last_wait_event)
11000 (current_windows_thread, desired_stop_thread_id, pending_stops)
11001 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
11002 (display_selectors, fake_create_process)
11003 (get_windows_debug_event): Update.
11004 * nat/windows-nat.h (current_process_handle, current_process_id)
11005 (main_thread_id, last_sig, current_event, last_wait_event)
11006 (current_windows_thread, desired_stop_thread_id, pending_stops)
11007 (struct pending_stop, siginfo_er): Move from windows-nat.c.
11008 * nat/windows-nat.c (current_process_handle, current_process_id)
11009 (main_thread_id, last_sig, current_event, last_wait_event)
11010 (current_windows_thread, desired_stop_thread_id, pending_stops)
11011 (siginfo_er): New globals. Move from windows-nat.c.
11012
9d8679cc
TT
110132020-04-08 Tom Tromey <tromey@adacore.com>
11014
11015 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
11016 (handle_load_dll): Update.
11017 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
11018
28688adf
TT
110192020-04-08 Tom Tromey <tromey@adacore.com>
11020
11021 * windows-nat.c (enum thread_disposition_type): Move to
11022 nat/windows-nat.h.
11023 (windows_nat::thread_rec): Rename from thread_rec. No longer
11024 static.
11025 (windows_add_thread, windows_nat_target::fetch_registers)
11026 (windows_nat_target::store_registers, handle_exception)
11027 (windows_nat_target::resume, get_windows_debug_event)
11028 (windows_nat_target::get_tib_address)
11029 (windows_nat_target::thread_name)
11030 (windows_nat_target::thread_alive): Update.
11031 * nat/windows-nat.h (enum thread_disposition_type): Move from
11032 windows-nat.c.
11033 (thread_rec): Declare.
11034
4834dad0
TT
110352020-04-08 Tom Tromey <tromey@adacore.com>
11036
11037 * windows-nat.c: Add "using namespace".
11038 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
11039 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
11040
65bafd5b
TT
110412020-04-08 Tom Tromey <tromey@adacore.com>
11042
11043 * nat/windows-nat.h (struct windows_thread_info): Declare
11044 destructor.
11045 * nat/windows-nat.c (~windows_thread_info): New.
11046
0a4afda3
TT
110472020-04-08 Tom Tromey <tromey@adacore.com>
11048
11049 PR gdb/22992
11050 * windows-nat.c (current_event): Update comment.
11051 (last_wait_event, desired_stop_thread_id): New globals.
11052 (struct pending_stop): New.
11053 (pending_stops): New global.
11054 (windows_nat_target) <stopped_by_sw_breakpoint>
11055 <supports_stopped_by_sw_breakpoint>: New methods.
11056 (windows_fetch_one_register): Add assertions. Adjust PC.
11057 (windows_continue): Handle pending stops. Suspend other threads
11058 when stepping. Use last_wait_event
11059 (wait_for_debug_event): New function.
11060 (get_windows_debug_event): Use wait_for_debug_event. Handle
11061 pending stops. Queue spurious stops.
11062 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
11063 (windows_nat_target::kill): Use wait_for_debug_event.
11064 * nat/windows-nat.h (struct windows_thread_info)
11065 <stopped_at_software_breakpoint>: New field.
11066 * nat/windows-nat.c (windows_thread_info::resume): Clear
11067 stopped_at_software_breakpoint.
11068
8e61ebec
TT
110692020-04-08 Tom Tromey <tromey@adacore.com>
11070
11071 * windows-nat.c (enum thread_disposition_type): New.
11072 (thread_rec): Replace "get_context" parameter with "disposition";
11073 change type.
11074 (windows_add_thread, windows_nat_target::fetch_registers)
11075 (windows_nat_target::store_registers, handle_exception)
11076 (windows_nat_target::resume, get_windows_debug_event)
11077 (windows_nat_target::get_tib_address)
11078 (windows_nat_target::thread_name)
11079 (windows_nat_target::thread_alive): Update.
11080
98a03287
TT
110812020-04-08 Tom Tromey <tromey@adacore.com>
11082
11083 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
11084 (windows_continue): Use windows_continue::resume.
11085 * nat/windows-nat.h (struct windows_thread_info) <suspend,
11086 resume>: Declare new methods.
11087 * nat/windows-nat.c: New file.
11088 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
11089
7c7411bc
TT
110902020-04-08 Tom Tromey <tromey@adacore.com>
11091
11092 * windows-nat.c (windows_add_thread, windows_delete_thread)
11093 (windows_nat_target::fetch_registers)
11094 (windows_nat_target::store_registers, fake_create_process)
11095 (windows_nat_target::resume, windows_nat_target::resume)
11096 (get_windows_debug_event, windows_nat_target::wait)
11097 (windows_nat_target::pid_to_str)
11098 (windows_nat_target::get_tib_address)
11099 (windows_nat_target::get_ada_task_ptid)
11100 (windows_nat_target::thread_name)
11101 (windows_nat_target::thread_alive): Use lwp, not tid.
11102
2950fdf7
TT
111032020-04-08 Tom Tromey <tromey@adacore.com>
11104
11105 * windows-nat.c (handle_exception)
11106 (windows_nat_target::thread_name): Update.
11107 * nat/windows-nat.h (windows_thread_info): Remove destructor.
11108 <name>: Now unique_xmalloc_ptr.
11109
62fe396b
TT
111102020-04-08 Tom Tromey <tromey@adacore.com>
11111
11112 * windows-nat.c (thread_rec)
11113 (windows_nat_target::fetch_registers): Update.
11114 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
11115 Update comment.
11116 <debug_registers_changed, reload_context>: Now bool.
11117
e9534bd2
TT
111182020-04-08 Tom Tromey <tromey@adacore.com>
11119
11120 * windows-nat.c (windows_add_thread): Use new.
11121 (windows_init_thread_list, windows_delete_thread): Use delete.
11122 (get_windows_debug_event): Update.
11123 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
11124 destructor, and initializers.
11125
ae1f8880
TT
111262020-04-08 Tom Tromey <tromey@adacore.com>
11127
11128 * windows-nat.c (struct windows_thread_info): Remove.
11129 * nat/windows-nat.h: New file.
11130
55a1e039
TT
111312020-04-08 Tom Tromey <tromey@adacore.com>
11132
11133 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
11134 (thread_rec, windows_add_thread, windows_delete_thread)
11135 (windows_continue): Update.
11136
93366324
TT
111372020-04-08 Tom Tromey <tromey@adacore.com>
11138
11139 * windows-nat.c (struct windows_thread_info): Remove typedef.
11140 (thread_head): Remove.
11141 (thread_list): New global.
11142 (thread_rec, windows_add_thread, windows_init_thread_list)
11143 (windows_delete_thread, windows_continue): Update.
11144
0f2265e2
SM
111452020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11146
11147 * windows-tdep.h (windows_init_abi): Add comment.
11148 (cygwin_init_abi): New declaration.
11149 * windows-tdep.c: Split signal enumeration in two, one for
11150 Windows and one for Cygwin.
11151 (windows_gdb_signal_to_target): Only deal with signal of the
11152 Windows OS ABI.
11153 (cygwin_gdb_signal_to_target): New function.
11154 (windows_init_abi): Rename to windows_init_abi_common, don't set
11155 gdb_signal_to_target gdbarch method. Add new new function with
11156 this name.
11157 (cygwin_init_abi): New function.
11158 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
11159 comment. Don't call windows_init_abi.
11160 (amd64_windows_init_abi): Add comment, call windows_init_abi.
11161 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
11162 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
11163 i386_windows_init_abi_common, don't call windows_init_abi. Add
11164 a new function of this name.
11165 (i386_cygwin_init_abi): New function.
11166 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
11167 OS ABI Cygwin.
11168
3810f182
SM
111692020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11170
11171 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
11172 parameter.c.
11173 (dwarf2_read_gdb_index): Update.
11174
063f8e80
KR
111752020-04-07 Kamil Rytarowski <n54@gmx.com>
11176
11177 * nbsd-tdep.c: Include "objfiles.h".
11178 (nbsd_skip_solib_resolver): New.
11179 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
11180
85a9510c 111812020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11182
11183 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
11184 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
11185 with DW_LLE_base_addressx are being emitted in DWARFv5.
11186 Add the newly added kind DW_LOC_OFFSET_PAIR also.
11187 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
11188 unsigned integer.
11189
9fc3eaae 111902020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11191
11192 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
11193 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
11194 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
11195 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
11196 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
11197 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
11198 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
11199
11200
41144253 112012020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11202
11203 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
11204 (read_loclist_index): New function definition.
11205 (lookup_loclist_base): New function definition.
11206 (read_loclist_header): New function definition.
11207 (dwarf2_cu): Add loclist_base and loclist_header field.
11208 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
11209 (read_full_die_1): Read the value of DW_AT_loclists_base.
11210 (read_attribute_reprocess): Handle DW_FORM_loclistx.
11211 (read_attribute_value): Handle DW_FORM_loclistx.
11212 (skip_one_die): Handle DW_FORM_loclistx.
11213 (loclist_header): New structure declaration.
11214 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
11215
9f4e76a4
SM
112162020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11217
11218 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
11219 constructor. Remove `addr` parameter from other constructor and
11220 add `per_cu` parameter.
11221 * dwarf2/read.c (create_partial_symtab): Update.
11222
25c11aca
TV
112232020-04-07 Tom de Vries <tdevries@suse.de>
11224
11225 PR symtab/25796
11226 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
11227 (partial_die_info::fixup): Inherit has_const_value.
11228
5707e24b
TV
112292020-04-07 Tom de Vries <tdevries@suse.de>
11230
11231 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
11232 symbols without address.
11233
05f00e22
KR
112342020-04-06 Kamil Rytarowski <n54@gmx.com>
11235
11236 * nbsd-nat.h (struct thread_info): Add forward declaration.
11237 (nbsd_nat_target::thread_alive): Add.
11238 (nbsd_nat_target::thread_name): Likewise.
11239 (nbsd_nat_target::update_thread_list): Likewise.
11240 (update_thread_list::post_attach): Likewise.
11241 (post_attach::pid_to_str): Likewise.
11242 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
11243 (nbsd_thread_lister): Add.
11244 (nbsd_nat_target::thread_alive): Likewise.
11245 (nbsd_nat_target::thread_name): Likewise.
11246 (nbsd_add_threads): Likewise.
11247 (update_thread_list::post_attach): Likewise.
11248 (nbsd_nat_target::update_thread_list): Likewise.
11249 (post_attach::pid_to_str): Likewise.
11250
6ee448cc
TT
112512020-04-06 Tom Tromey <tromey@adacore.com>
11252
11253 * ada-valprint.c (print_variant_part): Extract the variant field.
11254 (print_field_values): Use the field as the outer value when
11255 recursing.
11256
dea34e8c
TT
112572020-04-06 Tom Tromey <tromey@adacore.com>
11258
11259 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
11260 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
11261 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
11262 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
11263 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
11264
93689ce9
TT
112652020-04-06 Tom Tromey <tromey@adacore.com>
11266
11267 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
11268 TYPE_CODE_ERROR.
11269
79743962
KR
112702020-04-06 Kamil Rytarowski <n54@gmx.com>
11271
11272 * nbsd-tdep.c: Include "gdbarch.h".
11273 Define enum with NetBSD signal numbers.
11274 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
11275 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
11276 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
11277 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
11278 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
11279 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
11280 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
11281 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11282 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
11283 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
11284 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
11285 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
11286
9e7c9a03
HD
112872020-04-03 Hannes Domani <ssbssa@yahoo.de>
11288
11289 PR gdb/25325
11290 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
11291
d9e49b61
TT
112922020-04-03 Tom Tromey <tromey@adacore.com>
11293
11294 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
11295 Read constant block.
11296
e0fc5c3f
SM
112972020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11298
11299 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
11300 (gdb_bfd_get_full_section_contents): New declaration.
11301 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
11302 * windows-tdep.c (is_linked_with_cygwin_dll): Use
11303 gdb_bfd_get_full_section_contents.
11304
e2ff18a0
SM
113052020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11306
11307 * exec.c (build_section_table): Replace internal_error with
11308 gdb_assert.
11309 (section_table_xfer_memory_partial): Likewise.
11310 * mdebugread.c (parse_partial_symbols): Likewise.
11311 * psymtab.c (lookup_partial_symbol): Likewise.
11312 * utils.c (wrap_here): Likewise.
11313
0830d301
TT
113142020-04-02 Tom Tromey <tromey@adacore.com>
11315
11316 * f-lang.c (build_fortran_types): Use arch_type to initialize
11317 builtin_complex_s32 in the TYPE_CODE_ERROR case.
11318
e7da7f8f
TT
113192020-04-02 Tom Tromey <tromey@adacore.com>
11320
11321 * dwarf2/read.c (partial_die_info::read): Do not create a vector
11322 of attributes.
11323
c90d28ac
AB
113242020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
11325 Bernd Edlinger <bernd.edlinger@hotmail.de>
11326 Tom Tromey <tromey@adacore.com>
11327
11328 * buildsym.c (buildsym_compunit::record_line): Remove
11329 deduplication code.
11330
1aa98955
TV
113312020-04-02 Tom de Vries <tdevries@suse.de>
11332
11333 PR ada/24671
11334 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
11335
d3214198
TV
113362020-04-02 Tom de Vries <tdevries@suse.de>
11337
11338 * dwarf2/read.c (dwarf2_gdb_index_functions,
11339 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
11340 NULL.
11341 * psymtab.c (psym_lookup_global_symbol_language): New function.
11342 (psym_functions): Init psym_lookup_global_symbol_language with
11343 psym_lookup_global_symbol_language.
11344 * symfile-debug.c (debug_sym_quick_functions): Init
11345 lookup_global_symbol_language with NULL.
11346 * symfile.c (set_initial_language): Remove fixme comment.
11347 * symfile.h (struct quick_symbol_functions): Add
11348 lookup_global_symbol_language.
11349 * symtab.c (find_quick_global_symbol_language): New function.
11350 (find_main_name): Use find_quick_global_symbol_language.
11351
2836752f
SM
113522020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
11353
11354 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
11355
64dc2d4b
BE
113562020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11357
11358 * buildsym.c (record_line): Fix undefined behavior and preserve
11359 lines at eof.
11360
bbe3dc41
BE
113612020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11362
11363 * buildsym.c (record_line): Fix the resizing condition.
11364
6b4a335b
TT
113652020-04-01 Tom Tromey <tom@tromey.com>
11366
11367 * value.h (value_literal_complex): Add comment.
11368 * valops.c (value_literal_complex): Refer to value.h.
11369
3638a098
TT
113702020-04-01 Tom Tromey <tom@tromey.com>
11371
11372 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
11373 (scalar_type): New rule, from typebase.
11374 (typebase): Use scalar_type. Recognize complex types.
11375 (field_name): Handle FLOAT_KEYWORD.
11376 (ident_tokens): Add _Complex and __complex__.
11377
c34e8714
TT
113782020-04-01 Tom Tromey <tom@tromey.com>
11379
11380 PR exp/25299:
11381 * valarith.c (promotion_type, complex_binop): New functions.
11382 (scalar_binop): Handle complex numbers. Use promotion_type.
11383 (value_pos, value_neg, value_complement): Handle complex numbers.
11384
fa649bb7
TT
113852020-04-01 Tom Tromey <tom@tromey.com>
11386
11387 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
11388 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
11389 (parse_number): Handle complex numbers.
11390
981c08ce
TT
113912020-04-01 Tom Tromey <tom@tromey.com>
11392
11393 * c-valprint.c (c_decorations): Change complex suffix to "i".
11394
4c99290d
TT
113952020-04-01 Tom Tromey <tom@tromey.com>
11396
11397 * valprint.c (generic_value_print_complex): Use accessors.
11398 * value.h (value_real_part, value_imaginary_part): Declare.
11399 * valops.c (value_real_part, value_imaginary_part): New
11400 functions.
11401 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
11402
5b930b45
TT
114032020-04-01 Tom Tromey <tom@tromey.com>
11404
11405 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
11406 (read_range_type): Update.
11407 * mdebugread.c (basic_type): Update.
11408 * go-lang.c (build_go_types): Use init_complex_type.
11409 * gdbtypes.h (struct main_type) <complex_type>: New member.
11410 (init_complex_type): Update.
11411 (arch_complex_type): Don't declare.
11412 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
11413 Make name if none given. Use alloc_type_copy. Look for cached
11414 complex type.
11415 (arch_complex_type): Remove.
11416 (gdbtypes_post_init): Use init_complex_type.
11417 * f-lang.c (build_fortran_types): Use init_complex_type.
11418 * dwarf2/read.c (read_base_type): Update.
11419 * d-lang.c (build_d_types): Use init_complex_type.
11420 * ctfread.c (read_base_type): Update.
11421
53cccef1
TBA
114222020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11423
11424 * infrun.c (stop_all_threads): Update assertion, plus when
11425 stopping threads, take into account that we might be trying
11426 to stop an all-stop target.
11427 (stop_waiting): Call 'stop_all_threads' if there exists a
11428 non-stop target.
11429
a0714d30
TBA
114302020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11431
11432 * target.h (exists_non_stop_target): New function declaration.
11433 * target.c (exists_non_stop_target): New function.
11434
60e22c1e
HD
114352020-04-01 Hannes Domani <ssbssa@yahoo.de>
11436
11437 PR gdb/24789
11438 * eval.c (is_integral_or_integral_reference): New function.
11439 (evaluate_subexp_standard): Allow integer references in
11440 pointer arithmetic.
11441
e139a727
TBA
114422020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11443
11444 * remote.c (remote_target::remote_parse_stop_reply): Remove the
11445 check for no ptid in the stop reply when the target is non-stop.
11446
e0802d59
TT
114472020-04-01 Tom Tromey <tromey@adacore.com>
11448
11449 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
11450 "name" parameter to rvalue reference. Initialize m_name_holder.
11451 <lookup_name_info>: New overloads.
11452 <name>: Return gdb::string_view.
11453 <c_str>: New method.
11454 <make_ignore_params>: Update.
11455 <search_name_hash>: Update.
11456 <language_lookup_name>: Return const char *.
11457 <m_name>: Change type.
11458 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
11459 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
11460 (lookup_name_info::match_any): Update.
11461 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
11462 Update.
11463 * minsyms.c (linkage_name_str): Update.
11464 * language.c (default_symbol_name_matcher): Update.
11465 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
11466 Update.
11467 * ada-lang.c (ada_fold_name): Change parameter to string_view.
11468 (ada_lookup_name_info::ada_lookup_name_info): Update.
11469 (literal_symbol_name_matcher): Update.
11470
8c072cb6
TT
114712020-04-01 Tom Tromey <tromey@adacore.com>
11472
11473 * psymtab.c (psymtab_search_name): Remove function.
11474 (psym_lookup_symbol): Create search name and lookup name here.
11475 (lookup_partial_symbol): Remove "name" parameter; add
11476 lookup_name.
11477 (psym_expand_symtabs_for_function): Update.
11478
6f29a534
TT
114792020-03-31 Joel Jones <joelkevinjones@gmail.com>
11480
11481 PR tui/25597:
11482 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
11483
af62665e
TT
114842020-03-31 Tom Tromey <tromey@adacore.com>
11485
11486 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
11487 memcpy.
11488
d1a89da5
NC
114892020-03-30 Nelson Chu <nelson.chu@sifive.com>
11490
11491 * features/riscv/32bit-csr.xml: Regenerated.
11492 * features/riscv/64bit-csr.xml: Regenerated.
11493
d8af9068
TT
114942020-03-30 Tom Tromey <tromey@adacore.com>
11495
11496 * ada-valprint.c (print_variant_part): Update.
11497 * ada-lang.h (ada_which_variant_applies): Update.
11498 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
11499 outer_valaddr parameters; replace with "outer" value parameter.
11500 (to_fixed_variant_branch_type): Update.
11501
227c0bf4
PFC
115022020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11503
11504 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
11505 <list>. Remove inclusion of observable.h.
11506 (PPC_DEBUG_CURRENT_VERSION): Move up define.
11507 (struct arch_lwp_info): New struct.
11508 (class ppc_linux_dreg_interface): New class.
11509 (struct ppc_linux_process_info): New struct.
11510 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
11511 <low_new_clone, low_forget_process, low_prepare_to_resume>
11512 <copy_thread_dreg_state, mark_thread_stale>
11513 <mark_debug_registers_changed, register_hw_breakpoint>
11514 <clear_hw_breakpoint, register_wp, clear_wp>
11515 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
11516 <num_memory_accesses, get_trigger_type>
11517 <create_watchpoint_request, hwdebug_point_cmp>
11518 <init_arch_lwp_info, get_arch_lwp_info>
11519 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
11520 methods.
11521 <struct ptid_hash>: New inner struct.
11522 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
11523 members.
11524 (saved_dabr_value, hwdebug_info, max_slots_number)
11525 (struct hw_break_tuple, struct thread_points, ppc_threads)
11526 (have_ptrace_hwdebug_interface)
11527 (hwdebug_find_thread_points_by_tid)
11528 (hwdebug_insert_point, hwdebug_remove_point): Remove.
11529 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
11530 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
11531 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
11532 use m_dreg_interface.
11533 (hwdebug_point_cmp): Change to...
11534 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
11535 reference arguments instead of pointers.
11536 (ppc_linux_nat_target::ranged_break_num_registers): Use
11537 m_dreg_interface.
11538 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
11539 m_dreg_interface. Call register_hw_breakpoint.
11540 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
11541 m_dreg_interface. Call clear_hw_breakpoint.
11542 (get_trigger_type): Change to...
11543 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
11544 comment.
11545 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
11546 use m_dreg_interface. Call register_hw_breakpoint.
11547 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
11548 use m_dreg_interface. Call clear_hw_breakpoint.
11549 (can_use_watchpoint_cond_accel): Change to...
11550 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
11551 method. Update comment, use m_dreg_interface and
11552 m_process_info.
11553 (calculate_dvc): Change to...
11554 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
11555 m_dreg_interface.
11556 (num_memory_accesses): Change to...
11557 (ppc_linux_nat_target::num_memory_accesses): ...this method.
11558 (check_condition): Change to...
11559 (ppc_linux_nat_target::check_condition): ...this method.
11560 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
11561 comment, use m_dreg_interface.
11562 (create_watchpoint_request): Change to...
11563 (ppc_linux_nat_target::create_watchpoint_request): ...this
11564 method. Use m_dreg_interface.
11565 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
11566 m_dreg_interface. Call register_hw_breakpoint or register_wp.
11567 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
11568 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
11569 (ppc_linux_nat_target::low_forget_process)
11570 (ppc_linux_nat_target::low_new_fork)
11571 (ppc_linux_nat_target::low_new_clone)
11572 (ppc_linux_nat_target::low_delete_thread)
11573 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
11574 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
11575 only call mark_thread_stale.
11576 (ppc_linux_thread_exit): Remove.
11577 (ppc_linux_nat_target::stopped_data_address): Change to...
11578 (ppc_linux_nat_target::low_stopped_data_address): This. Add
11579 comment, use m_dreg_interface and m_thread_hw_breakpoints.
11580 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
11581 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
11582 comment. Call low_stopped_data_address.
11583 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
11584 m_dreg_interface.
11585 (ppc_linux_nat_target::masked_watch_num_registers): Use
11586 m_dreg_interface.
11587 (ppc_linux_nat_target::copy_thread_dreg_state)
11588 (ppc_linux_nat_target::mark_thread_stale)
11589 (ppc_linux_nat_target::mark_debug_registers_changed)
11590 (ppc_linux_nat_target::register_hw_breakpoint)
11591 (ppc_linux_nat_target::clear_hw_breakpoint)
11592 (ppc_linux_nat_target::register_wp)
11593 (ppc_linux_nat_target::clear_wp)
11594 (ppc_linux_nat_target::init_arch_lwp_info)
11595 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
11596 (_initialize_ppc_linux_nat): Remove observer callback.
11597
4db10d8f
PFC
115982020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11599
11600 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
11601 (ppc_linux_nat_target::auxv_parse)
11602 (ppc_linux_nat_target::read_description)
11603 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
11604 Move up.
11605
1310c1b0
PFC
116062020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11607
11608 * linux-nat.h (low_new_clone): New method.
11609 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
11610
69b037c3
SM
116112020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
11612
11613 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
11614 (dbx_expand_psymtab): ... this.
11615 (start_psymtab): Update.
11616 * mdebugread.c (psymtab_to_symtab_1): Rename to...
11617 (mdebug_expand_psymtab): ... this.
11618 (parse_partial_symbols): Update.
11619 (new_psymtab): Update.
11620 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
11621 (xcoff_expand_psymtab): ... this.
11622 (xcoff_start_psymtab): Update.
11623
48993951
SM
116242020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
11625
11626 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
11627 <expand_dependencies>: ... this.
11628 * psymtab.c (partial_symtab::read_dependencies): Rename to...
11629 (partial_symtab::expand_dependencies): ... this.
11630 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
11631 Update.
11632 (dwarf2_psymtab::expand_psymtab): Update.
11633 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
11634 * mdebugread.c (psymtab_to_symtab_1): Update.
11635 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
11636
3ad83046
SM
116372020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
11638
11639 * psympriv.h (discard_psymtab): Remove.
11640 * dbxread.c (dbx_end_psymtab): Update.
11641 * xcoffread.c (xcoff_end_psymtab): Update.
11642
4d1b9ab6
TT
116432020-03-28 Tom Tromey <tom@tromey.com>
11644
11645 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
11646 comment.
11647
f1749218
TT
116482020-03-28 Tom Tromey <tom@tromey.com>
11649
11650 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
11651
ebea7626
HD
116522020-03-27 Hannes Domani <ssbssa@yahoo.de>
11653
11654 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
11655
a879b4d5
JB
116562020-03-26 John Baldwin <jhb@FreeBSD.org>
11657
11658 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
11659
0826b30a
TT
116602020-03-26 Tom Tromey <tom@tromey.com>
11661
11662 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
11663 (mark_common_block_symbol_computed, read_tag_string_type)
11664 (attr_to_dynamic_prop, read_subrange_type): Update.
11665 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
11666 to be methods on struct attribute.
11667 (skip_one_die, process_imported_unit_die, read_namespace_alias)
11668 (read_call_site_scope, partial_die_info::read)
11669 (partial_die_info::read, lookup_die_type, follow_die_ref):
11670 Update.
11671 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
11672 from dwarf2_get_ref_die_offset.
11673 (attribute::constant_value): New method, from
11674 dwarf2_get_attr_constant_value.
11675 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
11676 Declare method.
11677 <constant_value>: New method.
11678
2b2558bf
TT
116792020-03-26 Tom Tromey <tom@tromey.com>
11680
11681 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
11682 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
11683 (dwarf_type_encoding_name): Move to stringify.c.
11684 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
11685 * dwarf2/stringify.c: New file.
11686 * dwarf2/stringify.h: New file.
11687
eeb64781
TT
116882020-03-26 Tom Tromey <tom@tromey.com>
11689
11690 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
11691 Rewrite.
11692
a39fdb41
TT
116932020-03-26 Tom Tromey <tom@tromey.com>
11694
11695 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
11696 methods.
11697 * dwarf2/read.c (lookup_addr_base): Move to die.h.
11698 (lookup_ranges_base): Likewise.
11699 (read_cutu_die_from_dwo, read_full_die_1): Update.
11700
436c571c
TT
117012020-03-26 Tom Tromey <tom@tromey.com>
11702
11703 * dwarf2/read.c (read_import_statement, read_file_scope)
11704 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
11705 (read_lexical_block_scope, read_call_site_scope)
11706 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
11707 (handle_struct_member_die, process_structure_scope)
11708 (update_enumeration_type_from_children)
11709 (process_enumeration_scope, read_array_type, read_common_block)
11710 (read_namespace, read_module, read_subroutine_type): Update.
11711 (sibling_die): Remove.
11712
052c8bb8
TT
117132020-03-26 Tom Tromey <tom@tromey.com>
11714
11715 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
11716 (build_type_psymtabs_reader, read_structure_type)
11717 (read_enumeration_type, read_full_die_1): Update.
11718 (dwarf2_attr_no_follow): Move to die.h.
11719 * dwarf2/die.h (struct die_info) <attr>: New method.
11720
2b24b6e4
TT
117212020-03-26 Tom Tromey <tom@tromey.com>
11722
11723 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
11724 <base_address>: Now an optional.
11725 (dwarf2_find_base_address, dwarf2_rnglists_process)
11726 (dwarf2_ranges_process, fill_in_loclist_baton)
11727 (dwarf2_symbol_mark_computed): Update.
11728
c2d50fd0
TT
117292020-03-26 Tom Tromey <tom@tromey.com>
11730
11731 * dwarf2/read.c (struct die_info): Move to die.h.
11732 * dwarf2/die.h: New file.
11733
0df7ad3a
TT
117342020-03-26 Tom Tromey <tom@tromey.com>
11735
11736 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
11737 * dwarf2/read.c
11738 (dwarf2_statement_list_fits_in_line_number_section_complaint):
11739 Move to line-header.c.
11740 (read_checked_initial_length_and_offset, read_formatted_entries):
11741 Likewise.
11742 (dwarf_decode_line_header): Split into two.
11743 * dwarf2/line-header.c
11744 (dwarf2_statement_list_fits_in_line_number_section_complaint):
11745 Move from read.c.
11746 (read_checked_initial_length_and_offset, read_formatted_entries):
11747 Likewise.
11748 (dwarf_decode_line_header): New function, split from read.c.
11749
86c0bb4c
TT
117502020-03-26 Tom Tromey <tom@tromey.com>
11751
11752 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
11753 Declare method.
11754 * dwarf2/read.c (read_attribute_value): Update.
11755 (dwarf2_per_objfile::read_line_string): Rename from
11756 read_indirect_line_string.
11757 (read_formatted_entries): Update.
11758
2ef46c2f
TT
117592020-03-26 Tom Tromey <tom@tromey.com>
11760
11761 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
11762 variable.
11763
4f9c1eda
TT
117642020-03-26 Tom Tromey <tom@tromey.com>
11765
11766 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
11767 const.
11768 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
11769 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
11770 parameter const.
11771
5a0e026f
TT
117722020-03-26 Tom Tromey <tom@tromey.com>
11773
11774 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
11775 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
11776 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
11777 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
11778
8844c11b
TT
117792020-03-26 Tom Tromey <tom@tromey.com>
11780
11781 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
11782 file_names_size, file_full_name, file_file_name>: Use const.
11783 <file_name_at, file_names>: Add const overload.
11784 * dwarf2/line-header.c (line_header::file_file_name)
11785 (line_header::file_full_name): Update.
11786
c90ec28a
TT
117872020-03-26 Tom Tromey <tom@tromey.com>
11788
11789 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
11790 (macro_start_file, consume_improper_spaces)
11791 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
11792 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
11793 (dwarf_decode_macros): Move to macro.c.
11794 * dwarf2/macro.c: New file.
11795 * dwarf2/macro.h: New file.
11796 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
11797
4f44ae6c
TT
117982020-03-26 Tom Tromey <tom@tromey.com>
11799
11800 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
11801 method.
11802 * dwarf2/section.c: New method. From
11803 read_indirect_string_at_offset_from.
11804 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
11805 (read_indirect_string_at_offset_from): Move to section.c.
11806 (read_indirect_string_at_offset): Rewrite.
11807 (read_indirect_line_string_at_offset): Remove.
11808 (read_indirect_string, read_indirect_line_string)
11809 (dwarf_decode_macro_bytes): Update.
11810
a0194fa8
TT
118112020-03-26 Tom Tromey <tom@tromey.com>
11812
11813 * dwarf2/section.h (struct dwarf2_section_info)
11814 <overload_complaint>: Declare.
11815 (dwarf2_section_buffer_overflow_complaint): Don't declare.
11816 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
11817 Rename from dwarf2_section_buffer_overflow_complaint.
11818 * dwarf2/read.c (skip_one_die, partial_die_info::read)
11819 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
11820
3d27bbdb
TT
118212020-03-26 Tom Tromey <tom@tromey.com>
11822
11823 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
11824 Declare.
11825 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
11826 Move from read.c.
11827 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
11828 to section.c.
11829
9eac9650
TT
118302020-03-26 Tom Tromey <tom@tromey.com>
11831
11832 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
11833
bf80d710
TT
118342020-03-26 Tom Tromey <tom@tromey.com>
11835
11836 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
11837 "builder".
11838 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
11839 parameter.
11840 (dwarf_decode_macros): Update.
11841
0314b390
TT
118422020-03-26 Tom Tromey <tom@tromey.com>
11843
11844 * dwarf2/read.c (read_attribute_value): Update.
11845 (read_indirect_string_from_dwz): Move to dwz.c; change into
11846 method.
11847 (dwarf_decode_macro_bytes): Update.
11848 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
11849 * dwarf2/dwz.c: New file.
11850 * Makefile.in (COMMON_SFILES): Add dwz.c.
11851
9fda78b6
TT
118522020-03-26 Tom Tromey <tom@tromey.com>
11853
11854 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
11855 * dwarf2/read.c: Add include.
11856 * dwarf2/index-write.c: Add include.
11857 * dwarf2/index-cache.c: Add include.
11858 * dwarf2/dwz.h: New file.
11859
33aa3c10
TT
118602020-03-25 Tom Tromey <tom@tromey.com>
11861
11862 * compile/compile-object-load.c (get_out_value_type): Mention
11863 correct symbol name in error message.
11864
d503b685
HD
118652020-03-25 Hannes Domani <ssbssa@yahoo.de>
11866
11867 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
11868
7b1eff95
TV
118692020-03-25 Tom de Vries <tdevries@suse.de>
11870
11871 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
11872 * symmisc.c (dump_symtab_1): Print user and includes fields.
11873 (maintenance_info_symtabs): Same.
11874
dd895392
AB
118752020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
11876
11877 PR gdb/25534
11878 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
11879 (riscv_regcache_cooked_write): New function.
11880 (riscv_push_dummy_call): Use new function.
11881 (riscv_return_value): Likewise.
11882
5ab2fbf1
SM
118832020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
11884
11885 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
11886 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
11887 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
11888 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
11889 * infrun.c (follow_fork): Likewise.
11890 (follow_fork_inferior): Likewise.
11891 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
11892 * linux-nat.h (class linux_nat_target): Likewise.
11893 * remote.c (class remote_target) <follow_fork>: Likewise.
11894 (remote_target::follow_fork): Likewise.
11895 * target-delegates.c: Re-generate.
11896 * target.c (default_follow_fork): Likewise.
11897 (target_follow_fork): Likewise.
11898 * target.h (struct target_ops) <follow_fork>: Likewise.
11899 (target_follow_fork): Likewise.
11900
a64fafb5
TV
119012020-03-24 Tom de Vries <tdevries@suse.de>
11902
11903 * psymtab.c (maintenance_info_psymtabs): Print user field.
11904
fe26d3a3
TT
119052020-03-20 Tom Tromey <tromey@adacore.com>
11906
11907 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
11908 const.
11909 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
11910 const.
11911
c884cc46
SM
119122020-03-20 Simon Marchi <simon.marchi@efficios.com>
11913
11914 * ptrace.m4: Don't check for ptrace declaration.
11915 * config.in: Re-generate.
11916 * configure: Re-generate.
11917 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
11918 not defined.
11919
1ff700c2
KR
119202020-03-20 Kamil Rytarowski <n54@gmx.com>
11921
11922 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
11923 `PTRACE_TYPE_RET'.
11924 * i386-bsd-nat.c (gdb_ptrace): Likewise.
11925 * sparc-nat.c (gdb_ptrace): Likewise.
11926 * x86-bsd-nat.c (gdb_ptrace): Likewise.
11927
f7d4f0b1
TT
119282020-03-20 Tom Tromey <tromey@adacore.com>
11929
11930 * c-exp.y (lex_one_token): Fix assert.
11931
f67210ff
TT
119322020-03-20 Tom Tromey <tromey@adacore.com>
11933
11934 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
11935 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
11936 strncpy call.
11937
1773be9e
TT
119382020-03-20 Tom Tromey <tromey@adacore.com>
11939
11940 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
11941
70304be9
TT
119422020-03-20 Tom Tromey <tromey@adacore.com>
11943
11944 * ada-valprint.c (print_variant_part): Remove parameters; switch
11945 to value-based API.
11946 (print_field_values): Likewise.
11947 (ada_val_print_struct_union): Likewise.
11948 (ada_value_print_1): Update.
11949
9faa006d
KR
119502020-03-20 Kamil Rytarowski <n54@gmx.com>
11951
11952 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
11953 nbsd_nat_target instead of inf_ptrace_target.
11954 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11955 nbsd_nat_target.
11956
4a90f062
KR
119572020-03-20 Kamil Rytarowski <n54@gmx.com>
11958
11959 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
11960 it to the ptrace call.
11961 * (store_registers): Likewise.
11962
119632020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
11964
11965 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
11966 it to the ptrace call.
11967 * (store_registers): Likewise.
11968
2d07da27
LM
119692020-03-19 Luis Machado <luis.machado@linaro.org>
11970
11971 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
11972 valid, fetch vg value from ptrace.
11973
f09db380
KR
119742020-03-19 Kamil Rytarowski <n54@gmx.com>
11975 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
11976 * inf-ptrace.c: Likewise.
11977 * (gdb_ptrace): Add.
11978 * (inf_ptrace_target::resume): Update.
11979 * (inf_ptrace_target::xfer_partial): Likewise.
11980 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
11981 * (inf_ptrace_peek_poke): Update.
11982
fcc7376e
KR
119832020-03-19 Kamil Rytarowski <n54@gmx.com>
11984
11985 * x86-bsd-nat.c (gdb_ptrace): New.
11986 * (x86bsd_dr_set): Add new argument `ptid'.
11987 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
11988 x86bsd_dr_set_addr): Update.
11989
cada5fc9
AB
119902020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
11991
11992 * remote.c (remote_target::process_stop_reply): Handle events for
11993 all threads differently.
11994
19a2740f
AB
119952020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
11996
11997 * completer.c (completion_tracker::remove_completion): Define new
11998 function.
11999 * completer.h (completion_tracker::remove_completion): Declare new
12000 function.
12001 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
12002 when adding a C++ function symbol.
12003
724fd9ba
AB
120042020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12005
12006 * completer.c (completion_tracker::completion_hash_entry): Define
12007 new class.
12008 (advance_to_filename_complete_word_point): Call
12009 recompute_lowest_common_denominator.
12010 (completion_tracker::completion_tracker): Call discard_completions
12011 to setup the hash table.
12012 (completion_tracker::discard_completions): Allow for being called
12013 from the constructor, pass new equal function, and element deleter
12014 when constructing the hash table. Initialise new class member
12015 variables.
12016 (completion_tracker::maybe_add_completion): Remove use of
12017 m_entries_vec, and store more information into m_entries_hash.
12018 (completion_tracker::recompute_lcd_visitor): New function, most
12019 content taken from...
12020 (completion_tracker::recompute_lowest_common_denominator):
12021 ...here, this now just visits each item in the hash calling the
12022 above visitor.
12023 (completion_tracker::build_completion_result): Remove use of
12024 m_entries_vec, call recompute_lowest_common_denominator.
12025 * completer.h (completion_tracker::have_completions): Remove use
12026 of m_entries_vec.
12027 (completion_tracker::completion_hash_entry): Declare new class.
12028 (completion_tracker::recompute_lowest_common_denominator): Change
12029 function signature.
12030 (completion_tracker::recompute_lcd_visitor): Declare new function.
12031 (completion_tracker::m_entries_vec): Delete.
12032 (completion_tracker::m_entries_hash): Initialize to NULL.
12033 (completion_tracker::m_lowest_common_denominator_valid): New
12034 member variable.
12035 (completion_tracker::m_lowest_common_denominator_max_length): New
12036 member variable.
12037
5a82b8a1
KR
120382020-03-17 Kamil Rytarowski <n54@gmx.com>
12039
12040 * regformats/regdef.h: Put reg in gdb namespace.
12041
fb516a69
KR
120422020-03-17 Kamil Rytarowski <n54@gmx.com>
12043
12044 * i386-bsd-nat.c (gdb_ptrace): New.
12045 * (i386bsd_fetch_inferior_registers,
12046 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12047 * (i386bsd_fetch_inferior_registers,
12048 i386bsd_store_inferior_registers) Use gdb_ptrace.
12049
1c0aa1fb
KR
120502020-03-17 Kamil Rytarowski <n54@gmx.com>
12051
12052 * amd64-bsd-nat.c (gdb_ptrace): New.
12053 * (amd64bsd_fetch_inferior_registers,
12054 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12055 * (amd64bsd_fetch_inferior_registers,
12056 amd64bsd_store_inferior_registers) Use gdb_ptrace.
12057
5ccd2fb7
KR
120582020-03-17 Kamil Rytarowski <n54@gmx.com>
12059
12060 * user-regs.c (user_reg::read): Rename to...
12061 (user_reg::xread): ...this.
12062 * (append_user_reg): Rename argument `read' to `xread'.
12063 * (user_reg_add_builtin): Likewise.
12064 * (user_reg_add): Likewise.
12065 * (value_of_user_reg): Likewise.
12066
2108a63a
KR
120672020-03-17 Kamil Rytarowski <n54@gmx.com>
12068
12069 * sparc-nat.c (gdb_ptrace): New.
12070 * sparc-nat.c (sparc_fetch_inferior_registers)
12071 (sparc_store_inferior_registers) Remove obsolete comment.
12072 * sparc-nat.c (sparc_fetch_inferior_registers)
12073 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
12074 * sparc-nat.c (sparc_fetch_inferior_registers)
12075 (sparc_store_inferior_registers) Use gdb_ptrace.
12076
a225c9a8
KR
120772020-03-17 Kamil Rytarowski <n54@gmx.com>
12078
12079 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
12080 it to the ptrace call.
12081 * sh-nbsd-nat.c (store_registers): Likewise.
12082
98097623
KR
120832020-03-17 Kamil Rytarowski <n54@gmx.com>
12084
12085 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
12086 nbsd_nat_target instead of inf_ptrace_target.
12087 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12088 nbsd_nat_target.
12089
9e38d619
KR
120902020-03-17 Kamil Rytarowski <n54@gmx.com>
12091
12092 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
12093
a2ecbe9f
KR
120942020-03-17 Kamil Rytarowski <n54@gmx.com>
12095
12096 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
12097 <sys/sysctl.h>.
12098 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
12099
58990295
TV
121002020-03-17 Tom de Vries <tdevries@suse.de>
12101
12102 PR gdb/23710
12103 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
12104 fields.
12105 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
12106 fields.
12107 (process_imported_unit_die): Skip import of c++ CUs.
12108
771dd3a8
TT
121092020-03-16 Tom Tromey <tom@tromey.com>
12110
12111 * p-valprint.c (pascal_object_print_value): Initialize
12112 base_value.
12113
817a7585
AK
121142020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
12115 Shahab Vahedi <shahab@synopsys.com>
12116
12117 * Makefile.in: Add arch/arc.o
12118 * configure.tgt: Likewise.
12119 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
12120 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 12121 (arc_read_description): New function to cache target descriptions.
817a7585
AK
12122 * arc-tdep.h (arc_read_description): Add proto type.
12123 * arch/arc.c: New file.
12124 * arch/arc.h: Likewise.
12125 * features/Makefile: Replace old target descriptions with new.
12126 * features/arc-arcompact.c: Remove.
12127 * features/arc-arcompact.xml: Likewise.
12128 * features/arc-v2.c: Likewise
12129 * features/arc-v2.xml: Likewise
12130 * features/arc/aux-arcompact.xml: New file.
12131 * features/arc/aux-v2.xml: Likewise.
12132 * features/arc/core-arcompact.xml: Likewise.
12133 * features/arc/core-v2.xml: Likewise.
12134 * features/arc/aux-arcompact.c: Generate.
12135 * features/arc/aux-v2.c: Likewise.
12136 * features/arc/core-arcompact.c: Likewise.
12137 * features/arc/core-v2.c: Likewise.
12138 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
12139
67430cd0
TT
121402020-03-16 Tom Tromey <tromey@adacore.com>
12141
12142 PR gdb/25663:
12143 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
12144 putting value into bcache.
12145
30efb6c7
SM
121462020-03-16 Simon Marchi <simon.marchi@efficios.com>
12147
12148 PR gdb/21500
12149 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
12150 to...
12151 (amd64_windows_init_abi_common): ... this. Don't set size of
12152 long type.
12153 (amd64_windows_init_abi): New function.
12154 (amd64_cygwin_init_abi): New function.
12155 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
12156 the Cygwin OS ABI.
12157 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
12158 comment.
12159
8db52437
SM
121602020-03-16 Simon Marchi <simon.marchi@efficios.com>
12161
12162 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
12163 * windows-tdep.c (CYGWIN_DLL_NAME): New.
12164 (pe_import_directory_entry): New struct type.
12165 (is_linked_with_cygwin_dll): New function.
12166 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
12167 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
12168 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
12169
5982a56a
SM
121702020-03-16 Simon Marchi <simon.marchi@efficios.com>
12171
12172 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
12173 i386_cygwin_core_osabi_sniffer.
12174
7a1998df
SM
121752020-03-16 Simon Marchi <simon.marchi@efficios.com>
12176
12177 * i386-cygwin-tdep.c: Rename to...
12178 * i386-windows-tdep.c: ... this.
12179 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
12180 i386-windows-tdep.c.
12181 * configure.tgt: Likewise.
12182
053205cc
SM
121832020-03-16 Simon Marchi <simon.marchi@efficios.com>
12184
12185 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
12186 * osabi.c (gdb_osabi_names): Add "Windows".
12187 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
12188 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
12189 (i386_cygwin_core_osabi_sniffer): New function, extracted from
12190 i386_cygwin_osabi_sniffer.
12191 (_initialize_i386_cygwin_tdep): Register OS ABI
12192 GDB_OSABI_WINDOWS for i386.
12193 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
12194 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
12195 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
12196 for x86-64.
12197 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
12198 when the target matches '*-*-mingw*'.
12199
fe4b2ee6
SM
122002020-03-16 Simon Marchi <simon.marchi@efficios.com>
12201
12202 * defs.h (enum gdb_osabi): Move to...
12203 * osabi.h (enum gdb_osabi): ... here.
12204 * gdbarch.sh: Include osabi.h in gdbarch.h.
12205 * gdbarch.h: Re-generate.
12206
cb9b645d
SM
122072020-03-16 Simon Marchi <simon.marchi@efficios.com>
12208
12209 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
12210 function.
12211 (_initialize_amd64_windows_tdep): Register osabi sniffer.
12212
3293bbaf
TT
122132020-03-14 Tom Tromey <tom@tromey.com>
12214
12215 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
12216 for C++.
12217 (c_type_print_modifier): Likewise. Add "language" parameter.
12218 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
12219 (c_type_print_base_1): Update.
12220 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
12221 constants.
12222 * type-stack.c (type_stack::insert): Handle tp_atomic and
12223 tp_restrict.
12224 (type_stack::follow_type_instance_flags): Likewise.
12225 (type_stack::follow_types): Likewise. Merge type-following code.
12226 * c-exp.y (RESTRICT, ATOMIC): New tokens.
12227 (space_identifier, cv_with_space_id)
12228 (const_or_volatile_or_space_identifier_noopt)
12229 (const_or_volatile_or_space_identifier): Remove.
12230 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
12231 rules.
12232 (ptr_operator, typebase): Update.
12233 (enum token_flag) <FLAG_C>: New constant.
12234 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
12235 "_Atomic".
12236 (lex_one_token): Handle FLAG_C.
12237
154151a6
KR
122382020-03-14 Kamil Rytarowski <n54@gmx.com>
12239
12240 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
12241 it to the ptrace call.
12242 * m68k-bsd-nat.c (store_registers): Likewise.
12243
bc107784
KR
122442020-03-14 Kamil Rytarowski <n54@gmx.com>
12245
12246 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
12247 gdb_byte *.
12248 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
12249 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
12250 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
12251
01a80117
KR
122522020-03-14 Kamil Rytarowski <n54@gmx.com>
12253
12254 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
12255 nbsd_nat_target instead of inf_ptrace_target.
12256 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12257 nbsd_nat_target.
12258
f90280ca
KR
122592020-03-14 Kamil Rytarowski <n54@gmx.com>
12260
12261 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
12262 register_t.
12263
6def66f1
KR
122642020-03-14 Kamil Rytarowski <n54@gmx.com>
12265
12266 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
12267 it to the ptrace call.
12268 * alpha-bsd-nat.c (store_registers): Likewise.
12269
66eaca97
KR
122702020-03-14 Kamil Rytarowski <n54@gmx.com>
12271
12272 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
12273 includes.
12274 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
12275 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
12276 fill_fpregset): Likewise.
12277
4fed520b
KR
122782020-03-14 Kamil Rytarowski <n54@gmx.com>
12279
12280 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
12281 nbsd_nat_target instead of inf_ptrace_target.
12282 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12283 nbsd_nat_target.
12284
2190cf06
KR
122852020-03-14 Kamil Rytarowski <n54@gmx.com>
12286
12287 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
12288 register_t.
12289
75c56d3d
KR
122902020-03-14 Kamil Rytarowski <n54@gmx.com>
12291
12292 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
12293 it to the ptrace call.
12294 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
12295 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
12296 * arm-nbsd-nat.c (store_register): Likewise.
12297 * arm-nbsd-nat.c (store_regs): Likewise.
12298 * arm-nbsd-nat.c (store_fp_register): Likewise.
12299 * arm-nbsd-nat.c (store_fp_regs): Likewise.
12300
6018d381
KR
123012020-03-14 Kamil Rytarowski <n54@gmx.com>
12302
12303 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
12304 nbsd_nat_target instead of inf_ptrace_target.
12305 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12306 nbsd_nat_target.
12307
013f99f0
KR
123082020-03-14 Kamil Rytarowski <n54@gmx.com>
12309
12310 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
12311 it to the ptrace call.
12312 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
12313
12753073
KR
123142020-03-14 Kamil Rytarowski <n54@gmx.com>
12315
6227b330
KR
12316 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
12317 it to the ptrace call.
12318 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
12319
123202020-03-14 Kamil Rytarowski <n54@gmx.com>
12321
12322 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
12323 gdb_byte *.
12753073
KR
12324 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
12325
d5be5fa4
KR
123262020-03-14 Kamil Rytarowski <n54@gmx.com>
12327
12328 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
12329 instead of inf_ptrace_target.
12330 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12331 nbsd_nat_target.
12332
8110f842
KR
123332020-03-14 Kamil Rytarowski <n54@gmx.com>
12334
12335 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12336 register_t.
12337
52feded7
KR
123382020-03-14 Kamil Rytarowski <n54@gmx.com>
12339
12340 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12341 register_t.
12342
25567eee
KR
123432020-03-14 Kamil Rytarowski <n54@gmx.com>
12344
12345 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
12346 register_t.
12347
426a9c18
TT
123482020-03-13 Tom Tromey <tom@tromey.com>
12349
12350 * value.h (val_print): Don't declare.
12351 * valprint.h (val_print_array_elements)
12352 (val_print_scalar_formatted, generic_val_print): Don't declare.
12353 * valprint.c (generic_val_print_array): Take a struct value.
12354 (generic_val_print_ptr, generic_val_print_memberptr)
12355 (generic_val_print_bool, generic_val_print_int)
12356 (generic_val_print_char, generic_val_print_complex)
12357 (generic_val_print): Remove.
12358 (generic_value_print): Update.
12359 (do_val_print): Remove unused parameters. Don't call
12360 la_val_print.
12361 (val_print): Remove.
12362 (common_val_print): Update. Don't call value_check_printable.
12363 (val_print_scalar_formatted, val_print_array_elements): Remove.
12364 * rust-lang.c (rust_val_print): Remove.
12365 (rust_language_defn): Update.
12366 * p-valprint.c (pascal_val_print): Remove.
12367 (pascal_value_print_inner): Update.
12368 (pascal_object_print_val_fields, pascal_object_print_val):
12369 Remove.
12370 (pascal_object_print_static_field): Update.
12371 * p-lang.h (pascal_val_print): Don't declare.
12372 * p-lang.c (pascal_language_defn): Update.
12373 * opencl-lang.c (opencl_language_defn): Update.
12374 * objc-lang.c (objc_language_defn): Update.
12375 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
12376 * m2-lang.h (m2_val_print): Don't declare.
12377 * m2-lang.c (m2_language_defn): Update.
12378 * language.h (struct language_defn) <la_val_print>: Remove.
12379 * language.c (unk_lang_value_print_inner): Rename. Change
12380 argument types.
12381 (unknown_language_defn, auto_language_defn): Update.
12382 * go-valprint.c (go_val_print): Remove.
12383 * go-lang.h (go_val_print): Don't declare.
12384 * go-lang.c (go_language_defn): Update.
12385 * f-valprint.c (f_val_print): Remove.
12386 * f-lang.h (f_value_print): Don't declare.
12387 * f-lang.c (f_language_defn): Update.
12388 * d-valprint.c (d_val_print): Remove.
12389 * d-lang.h (d_value_print): Don't declare.
12390 * d-lang.c (d_language_defn): Update.
12391 * cp-valprint.c (cp_print_value_fields)
12392 (cp_print_value_fields_rtti, cp_print_value): Remove.
12393 (cp_print_static_field): Update.
12394 * c-valprint.c (c_val_print_array, c_val_print_ptr)
12395 (c_val_print_struct, c_val_print_union, c_val_print_int)
12396 (c_val_print_memberptr, c_val_print): Remove.
12397 * c-lang.h (c_val_print_array, cp_print_value_fields)
12398 (cp_print_value_fields_rtti): Don't declare.
12399 * c-lang.c (c_language_defn, cplus_language_defn)
12400 (asm_language_defn, minimal_language_defn): Update.
12401 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
12402 (ada_val_print_enum): Take a struct value.
12403 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
12404 (ada_val_print): Remove.
12405 (ada_value_print_1): Update.
12406 (printable_val_type): Remove.
12407 * ada-lang.h (ada_val_print): Don't declare.
12408 * ada-lang.c (ada_language_defn): Update.
12409
42331a1e
TT
124102020-03-13 Tom Tromey <tom@tromey.com>
12411
12412 * valprint.c (do_val_print): Update.
12413 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
12414 a struct value.
12415 (value_to_value_object_no_release): Declare.
12416 * python/py-value.c (value_to_value_object_no_release): New
12417 function.
12418 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
12419 struct value.
12420 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
12421 function.
12422 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
12423 a struct value.
12424 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
12425 Declare.
12426 (gdbscm_apply_val_pretty_printer): Take a struct value.
12427 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
12428 value.
12429 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
12430 value.
12431 * extension-priv.h (struct extension_language_ops)
12432 <apply_val_pretty_printer>: Take a struct value.
12433 * cp-valprint.c (cp_print_value): Create a struct value.
12434 (cp_print_value): Update.
12435
3a916a97
TT
124362020-03-13 Tom Tromey <tom@tromey.com>
12437
12438 * ada-valprint.c (print_field_values): Call common_val_print.
12439
b59eac37
TT
124402020-03-13 Tom Tromey <tom@tromey.com>
12441
12442 * ada-valprint.c (val_print_packed_array_elements): Remove
12443 bitoffset and val parameters. Call common_val_print.
12444 (ada_val_print_string): Remove offset, address, and original_value
12445 parameters.
12446 (ada_val_print_array): Update.
12447 (ada_value_print_array): New function.
12448 (ada_value_print_1): Call it.
12449
03371129
TT
124502020-03-13 Tom Tromey <tom@tromey.com>
12451
12452 * ada-valprint.c (ada_value_print): Use common_val_print.
12453
2e088f8b
TT
124542020-03-13 Tom Tromey <tom@tromey.com>
12455
12456 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
12457
39ef85a8
TT
124582020-03-13 Tom Tromey <tom@tromey.com>
12459
12460 * ada-valprint.c (ada_value_print_num): New function.
12461 (ada_value_print_1): Use it.
12462
b9fa6e07
TT
124632020-03-13 Tom Tromey <tom@tromey.com>
12464
12465 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
12466
416595d6
TT
124672020-03-13 Tom Tromey <tom@tromey.com>
12468
12469 * ada-valprint.c (ada_value_print_ptr): New function.
12470 (ada_value_print_1): Use it.
12471
5b5e15ec
TT
124722020-03-13 Tom Tromey <tom@tromey.com>
12473
12474 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
12475 call common_val_print.
12476 (ada_val_print_1): Update.
12477 (ada_value_print_1): New function.
12478 (ada_value_print_inner): Rewrite.
12479
fbf54e75
TT
124802020-03-13 Tom Tromey <tom@tromey.com>
12481
12482 * cp-valprint.c (cp_print_value_fields): Update.
12483 (cp_print_value): New function.
12484
64b653ca
TT
124852020-03-13 Tom Tromey <tom@tromey.com>
12486
12487 * m2-valprint.c (m2_value_print_inner): Use
12488 cp_print_value_fields.
12489 * cp-valprint.c (cp_print_value_fields): New function.
12490 * c-valprint.c (c_value_print_struct): New function.
12491 (c_value_print_inner): Use c_value_print_struct.
12492 * c-lang.h (cp_print_value_fields): Declare.
12493
6999f067
TT
124942020-03-13 Tom Tromey <tom@tromey.com>
12495
12496 * c-valprint.c (c_value_print_array): New function.
12497 (c_value_print_inner): Use it.
12498
ce80b8bd
TT
124992020-03-13 Tom Tromey <tom@tromey.com>
12500
12501 * c-valprint.c (c_value_print_memberptr): New function.
12502 (c_value_print_inner): Use it.
12503
2faac269
TT
125042020-03-13 Tom Tromey <tom@tromey.com>
12505
12506 * c-valprint.c (c_value_print_int): New function.
12507 (c_value_print_inner): Use it.
12508
da3e2c29
TT
125092020-03-13 Tom Tromey <tom@tromey.com>
12510
12511 * c-valprint.c (c_value_print_ptr): New function.
12512 (c_value_print_inner): Use it.
12513
50836231
TT
125142020-03-13 Tom Tromey <tom@tromey.com>
12515
12516 * c-valprint.c (c_value_print_inner): Rewrite.
12517
4f412b6e
TT
125182020-03-13 Tom Tromey <tom@tromey.com>
12519
12520 * valprint.c (generic_value_print_complex): New function.
12521 (generic_value_print): Use it.
12522
f5354008
TT
125232020-03-13 Tom Tromey <tom@tromey.com>
12524
12525 * valprint.c (generic_val_print_float): Don't call
12526 val_print_scalar_formatted.
12527 (generic_val_print, generic_value_print): Update.
12528
3eec3b05
TT
125292020-03-13 Tom Tromey <tom@tromey.com>
12530
12531 * valprint.c (generic_value_print_char): New function
12532 (generic_value_print): Use it.
12533
fdddfccb
TT
125342020-03-13 Tom Tromey <tom@tromey.com>
12535
12536 * valprint.c (generic_value_print_int): New function.
12537 (generic_value_print): Use it.
12538
6dde7521
TT
125392020-03-13 Tom Tromey <tom@tromey.com>
12540
12541 * valprint.c (generic_value_print_bool): New function.
12542 (generic_value_print): Use it.
12543
4112d2e6
TT
125442020-03-13 Tom Tromey <tom@tromey.com>
12545
12546 * valprint.c (generic_val_print_func): Simplify.
12547 (generic_val_print, generic_value_print): Update.
12548
65786af6
TT
125492020-03-13 Tom Tromey <tom@tromey.com>
12550
12551 * valprint.c (generic_val_print_flags): Remove.
12552 (generic_val_print, generic_value_print): Update.
12553 (val_print_type_code_flags): Add original_value parameter.
12554
40f3ce18
TT
125552020-03-13 Tom Tromey <tom@tromey.com>
12556
12557 * valprint.c (generic_val_print): Update.
12558 (generic_value_print): Update.
12559 * valprint.c (generic_val_print_enum): Don't call
12560 val_print_scalar_formatted.
12561
2a5b130b
TT
125622020-03-13 Tom Tromey <tom@tromey.com>
12563
12564 * valprint.c (generic_value_print): Call generic_value_print_ptr.
12565 * valprint.c (generic_value_print_ptr): New function.
12566
abc66ce9
TT
125672020-03-13 Tom Tromey <tom@tromey.com>
12568
12569 * valprint.c (generic_value_print): Rewrite.
12570
07a32858
TT
125712020-03-13 Tom Tromey <tom@tromey.com>
12572
12573 * p-valprint.c (pascal_object_print_value_fields)
12574 (pascal_object_print_value): New functions.
12575
64d64d3a
TT
125762020-03-13 Tom Tromey <tom@tromey.com>
12577
12578 * p-valprint.c (pascal_value_print_inner): Rewrite.
12579
6a95a1f5
TT
125802020-03-13 Tom Tromey <tom@tromey.com>
12581
12582 * f-valprint.c (f_value_print_innner): Rewrite.
12583
59fcdac6
TT
125842020-03-13 Tom Tromey <tom@tromey.com>
12585
12586 * m2-valprint.c (m2_print_unbounded_array): New overload.
12587 (m2_print_unbounded_array): Update.
12588 (m2_print_array_contents): Take a struct value.
12589 (m2_value_print_inner): Rewrite.
12590
d133c3e1
TT
125912020-03-13 Tom Tromey <tom@tromey.com>
12592
12593 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
12594 (d_value_print_inner): New function.
12595 * d-lang.h (d_value_print_inner): Declare.
12596 * d-lang.c (d_language_defn): Use d_value_print_inner.
12597
23b0f06b
TT
125982020-03-13 Tom Tromey <tom@tromey.com>
12599
12600 * go-valprint.c (go_value_print_inner): New function.
12601 * go-lang.h (go_value_print_inner): Declare.
12602 * go-lang.c (go_language_defn): Use go_value_print_inner.
12603
5f56f7cb
TT
126042020-03-13 Tom Tromey <tom@tromey.com>
12605
12606 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
12607 API.
12608 (rust_val_print): Rewrite.
12609 (rust_value_print_inner): New function, from rust_val_print.
12610 (rust_language_defn): Use rust_value_print_inner.
12611
26792ee0
TT
126122020-03-13 Tom Tromey <tom@tromey.com>
12613
12614 * ada-valprint.c (ada_value_print_inner): New function.
12615 * ada-lang.h (ada_value_print_inner): Declare.
12616 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
12617
24051bbe
TT
126182020-03-13 Tom Tromey <tom@tromey.com>
12619
12620 * f-valprint.c (f_value_print_innner): New function.
12621 * f-lang.h (f_value_print_innner): Declare.
12622 * f-lang.c (f_language_defn): Use f_value_print_innner.
12623
c0941be6
TT
126242020-03-13 Tom Tromey <tom@tromey.com>
12625
12626 * p-valprint.c (pascal_value_print_inner): New function.
12627 * p-lang.h (pascal_value_print_inner): Declare.
12628 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
12629
62c4663d
TT
126302020-03-13 Tom Tromey <tom@tromey.com>
12631
12632 * m2-valprint.c (m2_value_print_inner): New function.
12633 * m2-lang.h (m2_value_print_inner): Declare.
12634 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
12635
62182190
TT
126362020-03-13 Tom Tromey <tom@tromey.com>
12637
12638 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
12639 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
12640 * c-valprint.c (c_value_print_inner): New function.
12641 * c-lang.h (c_value_print_inner): Declare.
12642 * c-lang.c (c_language_defn, cplus_language_defn)
12643 (asm_language_defn, minimal_language_defn): Use
12644 c_value_print_inner.
12645
1e592a8a
TT
126462020-03-13 Tom Tromey <tom@tromey.com>
12647
12648 * p-valprint.c (pascal_object_print_value_fields): Now static.
12649 * p-lang.h (pascal_object_print_value_fields): Don't declare.
12650
7fe471e9
TT
126512020-03-13 Tom Tromey <tom@tromey.com>
12652
12653 * c-valprint.c (c_val_print_array): Simplify.
12654
d121c6ce
TT
126552020-03-13 Tom Tromey <tom@tromey.com>
12656
12657 * valprint.c (value_print_array_elements): New function.
12658 * valprint.h (value_print_array_elements): Declare.
12659
4dba70ee
TT
126602020-03-13 Tom Tromey <tom@tromey.com>
12661
12662 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
12663 * mips-tdep.c (mips_print_register): Use
12664 value_print_scalar_formatted.
12665
4f9ae810
TT
126662020-03-13 Tom Tromey <tom@tromey.com>
12667
12668 * valprint.h (value_print_scalar_formatted): Declare.
12669 * valprint.c (value_print_scalar_formatted): New function.
12670
156bfec9
TT
126712020-03-13 Tom Tromey <tom@tromey.com>
12672
12673 * valprint.h (generic_value_print): Declare.
12674 * valprint.c (generic_value_print): New function.
12675
2b4e573d
TT
126762020-03-13 Tom Tromey <tom@tromey.com>
12677
12678 * valprint.c (do_val_print): Call la_value_print_inner, if
12679 available.
12680 * rust-lang.c (rust_language_defn): Update.
12681 * p-lang.c (pascal_language_defn): Update.
12682 * opencl-lang.c (opencl_language_defn): Update.
12683 * objc-lang.c (objc_language_defn): Update.
12684 * m2-lang.c (m2_language_defn): Update.
12685 * language.h (struct language_defn) <la_value_print_inner>: New
12686 member.
12687 * language.c (unknown_language_defn, auto_language_defn): Update.
12688 * go-lang.c (go_language_defn): Update.
12689 * f-lang.c (f_language_defn): Update.
12690 * d-lang.c (d_language_defn): Update.
12691 * c-lang.c (c_language_defn, cplus_language_defn)
12692 (asm_language_defn, minimal_language_defn): Update.
12693 * ada-lang.c (ada_language_defn): Update.
12694
a1f6a07c
TT
126952020-03-13 Tom Tromey <tom@tromey.com>
12696
12697 * c-valprint.c (c_value_print): Use common_val_print.
12698
410cf315
TT
126992020-03-13 Tom Tromey <tom@tromey.com>
12700
12701 * cp-valprint.c (cp_print_static_field): Use common_val_print.
12702
72a45c93
TT
127032020-03-13 Tom Tromey <tom@tromey.com>
12704
12705 * f-valprint.c (f77_print_array_1, f_val_print): Use
12706 common_val_print.
12707
040f66bd
TT
127082020-03-13 Tom Tromey <tom@tromey.com>
12709
12710 * riscv-tdep.c (riscv_print_one_register_info): Use
12711 common_val_print.
12712
a6e05a6c
TT
127132020-03-13 Tom Tromey <tom@tromey.com>
12714
12715 * mi/mi-main.c (output_register): Use common_val_print.
12716
3444c526
TT
127172020-03-13 Tom Tromey <tom@tromey.com>
12718
12719 * infcmd.c (default_print_one_register_info): Use
12720 common_val_print.
12721
c2a44efe
TT
127222020-03-13 Tom Tromey <tom@tromey.com>
12723
12724 * valprint.h (common_val_print_checked): Declare.
12725 * valprint.c (common_val_print_checked): New function.
12726 * stack.c (print_frame_arg): Use common_val_print_checked.
12727
b0c26e99
TT
127282020-03-13 Tom Tromey <tom@tromey.com>
12729
12730 * valprint.c (do_val_print): New function, from val_print.
12731 (val_print): Use do_val_print.
12732 (common_val_print): Use do_val_print.
12733
ce3acbe9
TT
127342020-03-13 Tom Tromey <tom@tromey.com>
12735
12736 * valprint.c (value_print): Use scoped_value_mark.
12737
96c7f873
TV
127382020-03-13 Tom de Vries <tdevries@suse.de>
12739
12740 PR symtab/25646
12741 * psymtab.c (partial_symtab::partial_symtab): Don't set
12742 globals_offset and statics_offset. Push element onto
12743 current_global_psymbols and current_static_psymbols stacks.
12744 (concat): New function.
12745 (end_psymtab_common): Set globals_offset and statics_offset. Pop
12746 element from current_global_psymbols and current_static_psymbols
12747 stacks. Concat popped elements to global_psymbols and
12748 static_symbols.
12749 (add_psymbol_to_list): Use current_global_psymbols and
12750 current_static_psymbols stacks.
12751 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
12752 current_static_psymbols fields.
12753
6ba0a321
CB
127542020-03-12 Christian Biesinger <cbiesinger@google.com>
12755
12756 * corelow.c (sniff_core_bfd): Remove.
12757 (class core_target) <m_core_vec>: Remove.
12758 (core_target::core_target): Update.
12759 (core_file_fns): Remove.
12760 (deprecated_add_core_fns): Remove.
12761 (default_core_sniffer): Remove.
12762 (sniff_core_bfd): Remove.
12763 (default_check_format): Remove.
12764 (gdb_check_format): Remove.
12765 (core_target_open): Update.
12766 (core_target::get_core_register_section): Update.
12767 (get_core_registers_cb): Update.
12768 (core_target::fetch_registers): Update.
12769 * gdbcore.h (struct core_fns): Remove.
12770 (deprecated_add_core_fns): Remove.
12771 (default_core_sniffer): Remove.
12772 (default_check_format): Remove.
12773
227031b2
TT
127742020-03-12 Tom Tromey <tom@tromey.com>
12775
12776 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
12777 CORE_ADDR.
12778 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
12779
53807e9f
TT
127802020-03-12 Tom Tromey <tom@tromey.com>
12781
12782 * remote.c (remote_target::download_tracepoint)
12783 (remote_target::enable_tracepoint)
12784 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
12785 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
12786 sprintf_vma.
12787
64f25102
TT
127882020-03-12 Tom Tromey <tom@tromey.com>
12789
12790 * symfile-mem.c: Update CORE_ADDR size assert.
12791
272cd5a3
SM
127922020-03-12 Simon Marchi <simon.marchi@efficios.com>
12793
12794 * selftest.m4: Move to gdbsupport/.
12795 * acinclude.m4: Update path to selftest.m4.
12796
74cd3f9d
SM
127972020-03-12 Simon Marchi <simon.marchi@efficios.com>
12798
12799 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
12800 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
12801 gdbarch-selfselftests.c and selftest-arch.c.
12802 (SUBDIR_UNITTESTS_OBS): Rename to...
12803 (SELFTESTS_OBS): ... this.
12804 (COMMON_SFILES): Remove disasm-selftests.c and
12805 gdbarch-selftests.c.
12806 * configure.ac: Don't add selftest-arch.{c,o} to
12807 CONFIG_{SRCS,OBS}.
12808 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
12809 preprocessor conditions.
12810
db6878ac
SM
128112020-03-12 Simon Marchi <simon.marchi@efficios.com>
12812
12813 * configure.ac: Don't source bfd/development.sh.
12814 * selftest.m4: Modify comment.
12815 * configure: Re-generate.
12816
4d696a5c
SM
128172020-03-12 Simon Marchi <simon.marchi@efficios.com>
12818
12819 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
12820 not "true" or "false".
12821 * configure: Re-generate.
12822
8dd8e1c7
CB
128232020-03-12 Christian Biesinger <cbiesinger@google.com>
12824
12825 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
12826 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
12827 renamed to arm_nbsd_supply_gregset.
12828 (fetch_register): Update to call arm_nbsd_supply_gregset.
12829 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
12830 (arm_netbsd_nat_target::fetch_registers): Update.
12831 (fetch_elfcore_registers): Removed.
12832 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
12833 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
12834 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
12835 not require NetBSD system headers.
12836 (arm_nbsd_regset): New struct.
12837 (arm_nbsd_iterate_over_regset_sections): New function.
12838 (arm_netbsd_init_abi_common): Updated to call
12839 set_gdbarch_iterate_over_regset_sections.
12840 * arm-nbsd-tdep.h: New file.
12841
dd69bf7a
KB
128422020-03-11 Kevin Buettner <kevinb@redhat.com>
12843
12844 * symtab.c (find_pc_sect_line): Add check which prevents infinite
12845 recursion.
12846
a0761e34
SM
128472020-03-11 Simon Marchi <simon.marchi@efficios.com>
12848
12849 * configure: Re-generate.
12850
e7a82140
TT
128512020-03-11 Tom Tromey <tromey@adacore.com>
12852
12853 * ada-typeprint.c (print_choices): Fix comment.
12854
dcc050c8
AB
128552020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
12856
12857 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
12858 previous item in the list, when the list has no items.
12859
1c33af77
TV
128602020-03-11 Tom de Vries <tdevries@suse.de>
12861
12862 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
12863 PROP_LOCLIST handling code.
12864
8c95582d
AB
128652020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
12866
12867 * buildsym-legacy.c (record_line): Pass extra parameter to
12868 record_line.
12869 * buildsym.c (buildsym_compunit::record_line): Take an extra
12870 parameter, reduce duplication in the line table, and record the
12871 is_stmt flag in the line table.
12872 * buildsym.h (buildsym_compunit::record_line): Add extra
12873 parameter.
12874 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
12875 non-statement lines.
12876 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
12877 this to the symtab builder.
12878 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
12879 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
12880 through to dwarf_record_line_1.
12881 * infrun.c (process_event_stop_test): When stepping, don't stop at
12882 a non-statement instruction, and only refresh the step info when
12883 we land in the middle of a line's range. Also add an extra
12884 comment.
12885 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
12886 field.
12887 * record-btrace.c (btrace_find_line_range): Only record lines
12888 marked as is-statement.
12889 * stack.c (frame_show_address): Show the frame address if we are
12890 in a non-statement sal.
12891 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
12892 (maintenance_print_one_line_table): Print a header for the is_stmt
12893 column, and include is_stmt information in the output.
12894 * symtab.c (find_pc_sect_line): Find lines marked as statements in
12895 preference to non-statements.
12896 (find_pcs_for_symtab_line): Prefer is-statement entries.
12897 (find_line_common): Likewise.
12898 * symtab.h (struct linetable_entry): Add is_stmt field.
12899 (struct symtab_and_line): Likewise.
12900 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
12901 arranging the line table.
12902
e4003a34
TV
129032020-03-07 Tom de Vries <tdevries@suse.de>
12904
12905 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
12906 DIE.
12907
e8932576
TT
129082020-03-07 Tom Tromey <tom@tromey.com>
12909
12910 * valops.c (value_literal_complex): Remove obsolete comment.
12911 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
12912 comment.
12913
29734269
SM
129142020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
12915
12916 * infrun.h: Forward-declare thread_info.
12917 (set_step_info): Add thread_info parameter, add doc.
12918 * infrun.c (set_step_info): Add thread_info parameter, move doc
12919 to header.
12920 * infrun.c (process_event_stop_test): Pass thread to
12921 set_step_info call.
12922 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
12923 set_step_info.
12924 (prepare_one_step): Add thread_info parameter, pass it to
12925 set_step_frame and prepare_one_step (recursive) call.
12926 (step_1): Pass thread to prepare_one_step call.
12927 (step_command_fsm::should_stop): Pass thread to
12928 prepare_one_step.
12929 (until_next_fsm): Pass thread to set_step_frame call.
12930 (finish_command): Pass thread to set_step_info call.
12931
b7d64b29
HD
129322020-03-06 Hannes Domani <ssbssa@yahoo.de>
12933
12934 * windows-tdep.c (windows_solib_create_inferior_hook):
12935 Check if inferior is running.
12936
09f2921c
TV
129372020-03-06 Tom de Vries <tdevries@suse.de>
12938
12939 * NEWS: Fix "the the".
12940 * ctfread.c: Same.
12941
fd760e79
TV
129422020-03-06 Tom de Vries <tdevries@suse.de>
12943
12944 * psymtab.c (psymtab_to_symtab): Don't print "done.".
12945
20ea4a60
AB
129462020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12947
12948 * .dir-locals.el: Add a comment referencing the other copies of
12949 this file.
12950
0afbabf0
JB
129512020-03-05 John Baldwin <jhb@FreeBSD.org>
12952
12953 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
12954 psargs.
12955
842806cb
TBA
129562020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12957
12958 * .gitattributes: New file.
12959
be1e3d3e
TT
129602020-03-04 Tom Tromey <tom@tromey.com>
12961
12962 * symmisc.c (print_symbol_bcache_statistics)
12963 (print_objfile_statistics): Update.
12964 * symfile.c (allocate_symtab): Use intern.
12965 * psymtab.c (partial_symtab::partial_symtab): Use intern.
12966 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
12967 macro_cache>: Remove.
12968 <string_cache>: New member.
12969 (struct objfile) <intern>: New methods.
12970 * elfread.c (elf_symtab_read): Use intern.
12971 * dwarf2/read.c (fixup_go_packaging): Intern package name.
12972 (dwarf2_compute_name, dwarf2_physname)
12973 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
12974 names.
12975 (guess_partial_die_structure_name): Update.
12976 (partial_die_info::fixup): Intern name.
12977 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
12978 name.
12979 (dwarf2_name): Intern name. Update.
12980 * buildsym.c (buildsym_compunit::get_macro_table): Use
12981 string_cache.
12982
4e7625fd
TT
129832020-03-04 Tom Tromey <tom@tromey.com>
12984
12985 * jit.c (bfd_open_from_target_memory): Make "target" const.
12986 * corefile.c (gnutarget): Now const.
12987 * gdbcore.h (gnutarget): Now const.
12988
46f9f931
HD
129892020-03-04 Hannes Domani <ssbssa@yahoo.de>
12990
12991 * NEWS: Mention support for WOW64 processes.
12992 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
12993 (amd64_windows_segment_register_p): Remove static.
12994 (_initialize_amd64_windows_nat): Update.
12995 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
12996 * i386-windows-nat.c (context_offset): Update.
12997 (i386_mappings): Rename and remove static.
12998 (i386_windows_segment_register_p): Remove static.
12999 (_initialize_i386_windows_nat): Update.
13000 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
13001 (STATUS_WX86_SINGLE_STEP): New macro.
13002 (EnumProcessModulesEx): New macro.
13003 (Wow64SuspendThread): New macro.
13004 (Wow64GetThreadContext): New macro.
13005 (Wow64SetThreadContext): New macro.
13006 (Wow64GetThreadSelectorEntry): New macro.
13007 (windows_set_context_register_offsets): Add static.
13008 (windows_set_segment_register_p): Likewise.
13009 (windows_add_thread): Adapt for WOW64 processes.
13010 (windows_fetch_one_register): Likewise.
13011 (windows_nat_target::fetch_registers): Likewise.
13012 (windows_store_one_register): Likewise.
13013 (display_selector): Likewise.
13014 (display_selectors): Likewise.
13015 (handle_exception): Likewise.
13016 (windows_continue): Likewise.
13017 (windows_nat_target::resume): Likewise.
13018 (windows_add_all_dlls): Likewise.
13019 (do_initial_windows_stuff): Likewise.
13020 (windows_nat_target::attach): Likewise.
13021 (windows_get_exec_module_filename): Likewise.
13022 (windows_nat_target::create_inferior): Likewise.
13023 (windows_xfer_siginfo): Likewise.
13024 (_initialize_loadable): Initialize Wow64SuspendThread,
13025 Wow64GetThreadContext, Wow64SetThreadContext,
13026 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
13027 * windows-nat.h (windows_set_context_register_offsets):
13028 Remove declaration.
13029 (windows_set_segment_register_p): Likewise.
13030 (i386_windows_segment_register_p): Add declaration.
13031 (amd64_windows_segment_register_p): Likewise.
13032
440cf44e
LM
130332020-03-04 Luis Machado <luis.machado@linaro.org>
13034
13035 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
13036 in "info registers" for AArch64/ARM.
13037
13038 The change caused "info registers" to not print GPR's.
13039
13040 gdb/ChangeLog:
13041
13042 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
13043
13044 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13045 when reg->group is empty and reggroup is not.
13046
1009d92f
TT
130472020-03-03 Tom Tromey <tromey@adacore.com>
13048
13049 * dwarf2/frame.c (struct dwarf2_frame_cache)
13050 <checked_tailcall_bottom, entry_cfa_sp_offset,
13051 entry_cfa_sp_offset_p>: Remove members.
13052 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
13053 (dwarf2_frame_prev_register): Don't call
13054 dwarf2_tailcall_sniffer_first.
13055 (dwarf2_append_unwinders): Don't append tailcall unwinder.
13056 * frame-unwind.c (add_unwinder): New fuction.
13057 (frame_unwind_init): Use it. Add tailcall unwinder.
13058
5e5d66b6
AB
130592020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
13060 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13061
13062 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
13063 value should be printed as true.
13064
584cf46d
HD
130652020-03-03 Hannes Domani <ssbssa@yahoo.de>
13066
13067 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
13068 (windows_init_abi): Set and use windows_so_ops.
13069
7b973adc
SDJ
130702020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
13071
13072 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
13073 when verifying if dealing with a convenience variable.
13074
bb7b70ab
LM
130752020-03-03 Luis Machado <luis.machado@linaro.org>
13076
13077 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
13078
9822cb57
SM
130792020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
13080
13081 * infrun.c (gdbarch_supports_displaced_stepping): New.
13082 (use_displaced_stepping): Break up conditions in smaller pieces.
13083 Use gdbarch_supports_displaced_stepping.
13084 (displaced_step_prepare_throw): Use
13085 gdbarch_supports_displaced_stepping.
13086
63e163f2
AB
130872020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13088
13089 * NEWS: Mention new behaviour of the history filename.
13090 * top.c (write_history_p): Add comment.
13091 (show_write_history_p): Add header comment, give a different
13092 message when history writing is on, but the history filename is
13093 empty.
13094 (history_filename): Add comment.
13095 (history_filename_empty): New function.
13096 (show_history_filename): Add header comment, give a different
13097 message when the filename is empty.
13098 (init_history): Compare history_filename against nullptr, and only
13099 read history if the filename is not empty.
13100 (set_history_filename): Add header comment, and only make
13101 non-empty filenames absolute.
13102 (init_main): Make the filename argument to 'set history filename'
13103 optional.
13104
81b86b97
CB
131052020-03-02 Christian Biesinger <cbiesinger@google.com>
13106
13107 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
13108 (arm_supply_vfpregset): ...this, and update to use VFP registers.
13109 (fetch_fp_register): Update.
13110 (fetch_fp_regs): Update.
13111 (store_fp_register): Update.
13112 (store_fp_regs): Update.
13113 (arm_netbsd_nat_target::read_description): New function.
13114 (fetch_elfcore_registers): Update.
13115
24ed6739
AB
131162020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13117
13118 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
13119 general_thread if the stop reply is missing a thread-id.
13120 (remote_target::process_stop_reply): Use the first non-exited
13121 thread if the target didn't pass a thread-id.
13122 * infrun.c (do_target_wait): Move call to
13123 switch_to_inferior_no_thread to ....
13124 (do_target_wait_1): ... here.
13125
a84bb2a0
JT
131262020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
13127
13128 * debuginfod-support.c: Include defs.h first.
13129
658dadf0
TV
131302020-02-28 Tom de Vries <tdevries@suse.de>
13131
13132 * symfile.c (set_initial_language): Use default language for lookup.
13133
4ebe4877
SM
131342020-02-28 Simon Marchi <simon.marchi@efficios.com>
13135
13136 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
13137 reader variable, pass `this` to read_cutu_die_from_dwo.
13138
e5da1139
AM
131392020-02-27 Aaron Merey <amerey@redhat.com>
13140
13141 * source.c (open_source_file): Check for nullptr when computing
13142 srcpath.
13143
317f7127
TT
131442020-02-27 Tom Tromey <tromey@adacore.com>
13145
13146 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
13147 member.
13148 (dwarf2_add_field): Don't update nfields.
13149 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
13150
3104d9ee
AB
131512020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13152
13153 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
13154 abs.
13155
b83470bf
TT
131562020-02-26 Tom Tromey <tom@tromey.com>
13157
13158 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
13159 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
13160 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
13161 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
13162 per_cu_data.
13163
edfe0a0c
TT
131642020-02-26 Tom Tromey <tom@tromey.com>
13165
13166 * dwarf2/index-write.c (psym_index_map): Change type.
13167 (add_address_entry_worker, write_one_signatured_type)
13168 (recursively_count_psymbols, recursively_write_psymbols)
13169 (class debug_names, psyms_seen_size, write_gdbindex)
13170 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
13171
0d79cdc4
AM
131722020-02-26 Aaron Merey <amerey@redhat.com>
13173
13174 * Makefile.in: Handle optional debuginfod support.
13175 * NEWS: Update.
13176 * README: Add --with-debuginfod summary.
13177 * config.in: Regenerate.
13178 * configure: Regenerate.
13179 * configure.ac: Handle optional debuginfod support.
13180 * debuginfod-support.c: debuginfod helper functions.
13181 * debuginfod-support.h: Ditto.
13182 * doc/gdb.texinfo: Add --with-debuginfod to configure options
13183 summary.
13184 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
13185 when a dwz file cannot be found.
13186 * elfread.c (elf_symfile_read): Query debuginfod servers when a
13187 debuginfo file cannot be found.
13188 * source.c (open_source_file): Query debuginfod servers when a
13189 source file cannot be found.
13190 * top.c (print_gdb_configuration): Include
13191 --{with,without}-debuginfod in the output.
13192
b65ce565
JG
131932020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
13194
13195 * thread.c (thr_try_catch_cmd): Print thread name.
13196
d4c9a4f8
SM
131972020-02-26 Simon Marchi <simon.marchi@efficios.com>
13198
13199 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
13200 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13201 dwarf2_fetch_die_type_sect_off): Move to...
13202 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
13203 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13204 dwarf2_fetch_die_type_sect_off): ... here.
13205 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
13206 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13207 dwarf2_fetch_die_type_sect_off): Move doc to header file.
13208
0dce4280
TV
132092020-02-26 Tom de Vries <tdevries@suse.de>
13210
13211 PR gdb/25603
13212 * symfile.c (set_initial_language): Exit-early if
13213 language_mode == language_mode_manual.
13214
450a1bfc
SM
132152020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13216
13217 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
13218 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
13219 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
13220
9e80cfa1
AB
132212020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
13222
13223 * gdbtypes.c (create_array_type_with_stride): Handle negative
13224 array strides.
13225 * valarith.c (value_subscripted_rvalue): Likewise.
13226
09624f1f
LM
132272020-02-25 Luis Machado <luis.machado@linaro.org>
13228
13229 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
13230
8cb5117c
SM
132312020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13232
13233 * loc.h (dwarf2_get_die_type): Move to...
13234 * read.h (dwarf2_get_die_type): ... here.
13235 * read.c (dwarf2_get_die_type): Move doc to header.
13236
c325c44e
JB
132372020-02-25 Joel Brobecker <brobecker@adacore.com>
13238
13239 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
13240 'gnulib/Makefile.in' to the list.
13241
4ac93832
TT
132422020-02-24 Tom Tromey <tom@tromey.com>
13243
13244 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
13245 Remove.
13246 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
13247 XOBNEWVEC.
13248
197400e8
TT
132492020-02-24 Tom Tromey <tom@tromey.com>
13250
13251 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
13252 New method.
13253 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
13254 (dw2_do_instantiate_symtab, dw2_get_file_names)
13255 (build_type_psymtab_dependencies, load_full_type_unit): Update.
13256
76935768
TT
132572020-02-24 Tom Tromey <tom@tromey.com>
13258
13259 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
13260 make_scoped_restore.
13261 (dwarf2_psymtab::read_symtab): Don't clear
13262 reading_partial_symbols.
13263
a88ef40d
TV
132642020-02-24 Tom de Vries <tdevries@suse.de>
13265
13266 PR gdb/25592
13267 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
13268
c9af6521
TV
132692020-02-24 Tom de Vries <tdevries@suse.de>
13270
13271 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
13272 commands layout next/prev/regs.
13273
5707a07a
TT
132742020-02-22 Tom Tromey <tom@tromey.com>
13275
13276 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
13277 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
13278
3b0fb49e
TT
132792020-02-22 Tom Tromey <tom@tromey.com>
13280
13281 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
13282
283be8bf
TT
132832020-02-22 Tom Tromey <tom@tromey.com>
13284
13285 * tui/tui-win.c (_initialize_tui_win): Add usage text.
13286 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
13287 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
13288 * tui/tui.c (_initialize_tui): Add usage text.
13289
ca793b96
TT
132902020-02-22 Tom Tromey <tom@tromey.com>
13291
13292 * tui/tui-win.c (tui_set_focus_command)
13293 (tui_set_win_height_command): Use error_no_arg.
13294 (_initialize_tui_win): Update help text.
13295 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
13296
432b5c40
TT
132972020-02-22 Tom Tromey <tom@tromey.com>
13298
13299 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
13300 * tui/tui-disasm.h (struct tui_disasm_window)
13301 <display_start_addr>: Declare.
13302 * tui/tui-source.h (struct tui_source_window)
13303 <display_start_addr>: Declare.
13304 * tui/tui-winsource.h (struct tui_source_window_base)
13305 <show_source_line, display_start_addr>: New methods.
13306 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
13307 Rename and move to protected section.
13308 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
13309 (tui_source_window_base::do_erase_source_content): Update.
13310 (tui_source_window_base::show_source_line): Now a method.
13311 (tui_source_window_base::show_source_content)
13312 (tui_source_window_base::tui_source_window_base)
13313 (tui_source_window_base::rerender)
13314 (tui_source_window_base::refill)
13315 (tui_source_window_base::do_scroll_horizontal)
13316 (tui_source_window_base::set_is_exec_point_at)
13317 (tui_source_window_base::update_breakpoint_info)
13318 (tui_source_window_base::update_exec_info): Update.
13319 * tui/tui-source.c (tui_source_window::set_contents)
13320 (tui_source_window::showing_source_p)
13321 (tui_source_window::do_scroll_vertical)
13322 (tui_source_window::location_matches_p)
13323 (tui_source_window::line_is_displayed): Update.
13324 (tui_source_window::display_start_addr): New method.
13325 * tui/tui-disasm.c (tui_disasm_window::set_contents)
13326 (tui_disasm_window::do_scroll_vertical)
13327 (tui_disasm_window::location_matches_p): Update.
13328 (tui_disasm_window::display_start_addr): New method.
13329
01b1af32
TT
133302020-02-22 Tom Tromey <tom@tromey.com>
13331
13332 * NEWS: Add entry for gdb.register_window_type.
13333 * tui/tui-layout.h (window_factory): New typedef.
13334 (tui_register_window): Declare.
13335 * tui/tui-layout.c (saved_tui_windows): New global.
13336 (tui_apply_current_layout): Use it.
13337 (tui_register_window): New function.
13338 * python/python.c (do_start_initialization): Call
13339 gdbpy_initialize_tui.
13340 (python_GdbMethods): Add "register_window_type" function.
13341 * python/python-internal.h (gdbpy_register_tui_window)
13342 (gdbpy_initialize_tui): Declare.
13343 * python/py-tui.c: New file.
13344 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
13345
fc96d20b
TT
133462020-02-22 Tom Tromey <tom@tromey.com>
13347
13348 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
13349
935c78c0
TT
133502020-02-22 Tom Tromey <tom@tromey.com>
13351
13352 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
13353 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
13354 * tui/tui-data.c (tui_set_win_with_focus): Remove.
13355 (tui_set_win_focus_to): Move from tui-win.c.
13356
0240c8f1
TT
133572020-02-22 Tom Tromey <tom@tromey.com>
13358
13359 * tui/tui-layout.c (make_standard_window, get_locator_window): New
13360 functions.
13361 (known_window_types): New global.
13362 (tui_get_window_by_name): Reimplement.
13363 (initialize_known_windows): New function.
13364 (validate_window_name): Rewrite.
13365 (_initialize_tui_layout): Call initialize_known_windows.
13366
fdb01f0c
TT
133672020-02-22 Tom Tromey <tom@tromey.com>
13368
13369 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
13370 Remove constants.
13371 * tui/tui-winsource.h (struct tui_source_window_base)
13372 <tui_source_window_base>: Remove parameter.
13373 * tui/tui-winsource.c
13374 (tui_source_window_base::tui_source_window_base): Remove
13375 parameter.
13376 (tui_source_window_base::refill): Update.
13377 * tui/tui-stack.h (struct tui_locator_window)
13378 <tui_locator_window>: Update.
13379 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
13380 Default the constructor.
13381 * tui/tui-regs.h (struct tui_data_item_window)
13382 <tui_data_item_window>: Default the constructor.
13383 (struct tui_data_window) <tui_data_window>: Likewise.
13384 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
13385 Default the constructor.
13386 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
13387 Default the constructor.
13388 <type>: Remove.
13389 (struct tui_win_info) <tui_win_info>: Default the constructor.
13390 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
13391 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
13392 Default the constructor.
13393
865a5aec
TT
133942020-02-22 Tom Tromey <tom@tromey.com>
13395
13396 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
13397 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
13398 * tui/tui-win.c (tui_resize_all): Don't call
13399 tui_delete_invisible_windows.
13400 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
13401 done.
13402 (tui_set_layout): Update.
13403 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
13404 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
13405 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
13406
e098d18c
TT
134072020-02-22 Tom Tromey <tom@tromey.com>
13408
13409 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
13410 correctly.
13411
eb9c8874
TT
134122020-02-22 Tom Tromey <tom@tromey.com>
13413
13414 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
13415
7eed1a8e
TT
134162020-02-22 Tom Tromey <tom@tromey.com>
13417
13418 * tui/tui-winsource.h (struct tui_source_window_iterator)
13419 <inner_iterator>: New etytypedef.
13420 <tui_source_window_iterator>: Take "end" parameter.
13421 <tui_source_window_iterator>: Take iterator.
13422 <operator*, advance>: Update.
13423 <m_iter>: Change type.
13424 <m_end>: New field.
13425 (struct tui_source_windows) <begin, end>: Update.
13426 * tui/tui-layout.c (tui_windows): New global.
13427 (tui_apply_current_layout): Clear tui_windows.
13428 (tui_layout_window::apply): Update tui_windows.
13429 * tui/tui-data.h (tui_windows): Declare.
13430 (all_tui_windows): Now inline function.
13431 (class tui_window_iterator, struct all_tui_windows): Remove.
13432
7c043ba6
TT
134332020-02-22 Tom Tromey <tom@tromey.com>
13434
13435 PR tui/17850:
13436 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
13437 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
13438 "height" argument.
13439 (class tui_layout_window) <get_sizes>: Likewise.
13440 (class tui_layout_split) <tui_layout_split>: Add "vertical"
13441 argument.
13442 <get_sizes>: Add "height" argument.
13443 <m_vertical>: New field.
13444 * tui/tui-layout.c (tui_layout_split::clone): Update.
13445 (tui_layout_split::get_sizes): Add "height" argument.
13446 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
13447 (tui_new_layout_command): Parse "-horizontal".
13448 (_initialize_tui_layout): Update help string.
13449 (tui_layout_split::specification): Add "-horizontal" when needed.
13450 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
13451 argument.
13452 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
13453 New methods.
13454
6bc56648
TT
134552020-02-22 Tom Tromey <tom@tromey.com>
13456
13457 * tui/tui-layout.h (enum tui_adjust_result): New.
13458 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
13459 (class tui_layout_window) <adjust_size>: Return
13460 tui_adjust_result. Rewrite.
13461 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
13462 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
13463
c22fef7e
TT
134642020-02-22 Tom Tromey <tom@tromey.com>
13465
13466 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
13467 parameter and return types.
13468 (class tui_layout_base) <specification>: Add "depth".
13469 (class tui_layout_window) <specification>: Add "depth".
13470 (class tui_layout_split) <specification>: Add "depth".
13471 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
13472 and return types.
13473 (tui_new_layout_command): Parse sub-layouts.
13474 (_initialize_tui_layout): Update help string.
13475 (tui_layout_window::specification): Add "depth".
13476 (add_layout_command): Update.
13477
ee325b61
TT
134782020-02-22 Tom Tromey <tom@tromey.com>
13479
13480 * NEWS: Add "tui new-layout" item.
13481 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
13482 Add new-layout command to help text.
13483 (validate_window_name): New function.
13484 (tui_new_layout_command): New function.
13485 (_initialize_tui_layout): Register "new-layout".
13486 (tui_layout_window::specification): New method.
13487 (tui_layout_window::specification): New method.
13488 * tui/tui-layout.h (class tui_layout_base) <specification>: New
13489 method.
13490 (class tui_layout_window) <specification>: New method.
13491 (class tui_layout_split) <specification>: New method.
13492
416eb92d
TT
134932020-02-22 Tom Tromey <tom@tromey.com>
13494
13495 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
13496 * tui/tui-win.c (window_name_completer): Update comment.
13497 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
13498 Declare method.
13499 (class tui_layout_window) <replace_window>: Likewise.
13500 (class tui_layout_split) <replace_window>: Likewise.
13501 (tui_set_layout): Don't declare.
13502 (tui_set_initial_layout): Declare function.
13503 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
13504 (asm_regs_layout): New globals.
13505 (tui_current_layout, show_layout): Remove.
13506 (tui_set_layout, tui_add_win_to_layout): Rewrite.
13507 (find_layout, tui_apply_layout): New function.
13508 (layout_completer): Remove.
13509 (tui_next_layout): Reimplement.
13510 (tui_next_layout_command): New function.
13511 (tui_set_initial_layout, tui_prev_layout_command): New functions.
13512 (tui_regs_layout): Reimplement.
13513 (tui_regs_layout_command): New function.
13514 (extract_display_start_addr): Rewrite.
13515 (next_layout, prev_layout): Remove.
13516 (tui_layout_window::replace_window): New method.
13517 (tui_layout_split::replace_window): New method.
13518 (destroy_layout): New function.
13519 (layout_list): New global.
13520 (add_layout_command): New function.
13521 (initialize_layouts): Update.
13522 (tui_layout_command): New function.
13523 (_initialize_tui_layout): Install "layout" commands.
13524 * tui/tui-data.h (enum tui_layout_type): Remove.
13525 (tui_current_layout): Don't declare.
13526
0dbc2fc7
TT
135272020-02-22 Tom Tromey <tom@tromey.com>
13528
13529 * tui/tui-regs.c (tui_reg_layout): Remove.
13530 (tui_reg_command): Use tui_regs_layout.
13531 * tui/tui-layout.h (tui_reg_command): Declare.
13532 * tui/tui-layout.c (tui_reg_command): New function.
13533
5afe342e
TT
135342020-02-22 Tom Tromey <tom@tromey.com>
13535
13536 * tui/tui.c (tui_rl_delete_other_windows): Call
13537 tui_remove_some_windows.
13538 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
13539 Declare method.
13540 (class tui_layout_window) <remove_windows>: New method.
13541 (class tui_layout_split) <remove_windows>: Declare.
13542 (tui_remove_some_windows): Declare.
13543 * tui/tui-layout.c (tui_remove_some_windows): New function.
13544 (tui_layout_split::remove_windows): New method.
13545
427326a8
TT
135462020-02-22 Tom Tromey <tom@tromey.com>
13547
13548 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
13549 * tui/tui-layout.h (tui_next_layout): Declare.
13550 * tui/tui-layout.c (tui_next_layout): New function.
13551
3fe12b6d
TT
135522020-02-22 Tom Tromey <tom@tromey.com>
13553
13554 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
13555 correct coordinates.
13556
59b8b5d2
TT
135572020-02-22 Tom Tromey <tom@tromey.com>
13558
13559 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
13560 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
13561 DATA_WIN case.
13562
2a3d458b
TT
135632020-02-22 Tom Tromey <tom@tromey.com>
13564
13565 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
13566 TUI_DISASM_WIN, not tui_win_list.
13567
3f0cbb04
TT
135682020-02-22 Tom Tromey <tom@tromey.com>
13569
13570 * valprint.c (generic_val_print_enum_1)
13571 (val_print_type_code_flags): Style member names.
13572 * rust-lang.c (val_print_struct, rust_print_enum)
13573 (rust_print_struct_def, rust_internal_print_type): Style member
13574 names.
13575 * p-valprint.c (pascal_object_print_value_fields): Style member
13576 names. Only call fprintf_symbol_filtered for static members.
13577 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
13578 * f-valprint.c (f_val_print): Style member names.
13579 * f-typeprint.c (f_type_print_base): Style member names.
13580 * cp-valprint.c (cp_print_value_fields): Style member names. Only
13581 call fprintf_symbol_filtered for static members.
13582 (cp_print_class_member): Style member names.
13583 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
13584 member names.
13585 * ada-valprint.c (ada_print_scalar): Style enum names.
13586 (ada_val_print_enum): Likewise.
13587 * ada-typeprint.c (print_enum_type): Style enum names.
13588
d4d947ae
TT
135892020-02-21 Tom Tromey <tom@tromey.com>
13590
13591 * psympriv.h (struct partial_symtab): Update comment.
13592
e94e944b
TT
135932020-02-21 Tom Tromey <tromey@adacore.com>
13594
13595 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
13596 type is CORE_ADDR.
13597
1eb73179
TV
135982020-02-21 Tom de Vries <tdevries@suse.de>
13599
13600 PR gdb/25534
13601 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
13602 if dependencies[i]->user != NULL.
13603
4f180d53
AT
136042020-02-21 Ali Tamur <tamur@google.com>
13605
13606 * dwarf2/read.c (dwarf2_name): Add null check.
13607
22b6cd70
TT
136082020-02-20 Tom Tromey <tom@tromey.com>
13609
13610 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
13611 ">=", in binary search.
13612 (dwarf2_find_containing_comp_unit): New overload.
13613 (run_test): New self-test.
13614 (_initialize_dwarf2_read): Register new test.
13615
bd0cf5a6
NC
136162020-02-20 Nelson Chu <nelson.chu@sifive.com>
13617
13618 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
13619 * riscv-tdep.h: Likewise.
13620 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
13621 rv32-only CSR.
13622 * features/riscv/64bit-csr.xml: Regenerated.
13623
3f702acd
SDJ
136242020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
13625 Tom Tromey <tom@tromey.com>
13626
13627 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
13628 of 'fputc_unfiltered'.
13629 (putchar_unfiltered): Call 'fputc_unfiltered'.
13630 (fputc_unfiltered): Call 'fputs_unfiltered'.
13631
d13c7322
AB
136322020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
13633
13634 * config.in: Regenerate.
13635 * configure: Regenerate.
13636 * configure.ac: Add --with-python-libdir option.
13637 * main.c: Use WITH_PYTHON_LIBDIR.
13638
869d8950
TT
136392020-02-19 Tom Tromey <tom@tromey.com>
13640
13641 * symtab.c (general_symbol_info::compute_and_set_names): Use
13642 obstack_strndup. Simplify call to symbol_set_demangled_name.
13643
298e9637
SM
136442020-02-19 Simon Marchi <simon.marchi@efficios.com>
13645
13646 * dwarf2/read.c (allocate_signatured_type_table,
13647 allocate_dwo_unit_table, allocate_type_unit_groups_table,
13648 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
13649 Remove objfile parameter, update all callers.
13650
08410482
DE
136512020-02-19 Doug Evans <dje@google.com>
13652
13653 PR rust/25535
13654 * rust-lang.c (rust_print_enum): Apply embedded_offset to
13655 rust_enum_variant calculation.
13656
dfdeeca1
TT
136572020-02-19 Tom Tromey <tromey@adacore.com>
13658
13659 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
13660
2ef5453b
TT
136612020-02-19 Tom Tromey <tromey@adacore.com>
13662
13663 * ada-lang.c (cache_symbol): Use obstack_strdup.
13664
9f1528a1
AB
136652020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
13666
13667 * configure: Regenerate.
13668
d3c22fa8
TT
136692020-02-19 Tom Tromey <tromey@adacore.com>
13670
13671 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
13672 NULL check.
13673
bf84f706
MR
136742020-02-19 Maciej W. Rozycki <macro@wdc.com>
13675
13676 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
13677
d1c9b20f
AB
136782020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
13679
13680 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
13681 if GDBSERVER is not defined.
13682 (riscv_tdesc_cache): Likewise, also store const target_desc.
13683 (STATIC_IN_GDB): Define.
13684 (riscv_create_target_description): Update declaration with
13685 STATIC_IN_GDB.
13686 (riscv_lookup_target_description): New function, only define if
13687 GDBSERVER is not defined.
13688 * arch/riscv.h (riscv_create_target_description): Declare only
13689 when GDBSERVER is defined.
13690 (riscv_lookup_target_description): New declaration when GDBSERVER
13691 is not defined.
13692 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
13693 (riscv_linux_read_features): ...this, and return
13694 riscv_gdbarch_features instead of target_desc.
13695 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
13696 (riscv_linux_read_description): Rename to...
13697 (riscv_linux_read_features): ...this.
13698 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
13699 Update to use riscv_gdbarch_features and
13700 riscv_lookup_target_description.
13701 * riscv-tdep.c (riscv_find_default_target_description): Use
13702 riscv_lookup_target_description instead of
13703 riscv_create_target_description.
13704
373d7ac0
SM
137052020-02-18 Simon Marchi <simon.marchi@efficios.com>
13706
13707 * valprint.c (generic_val_print_enum_1): When printing a flag
13708 enum with value 0 and there is no enumerator with value 0, print
13709 just "0" instead of "(unknown: 0x0)".
13710
b29a2df0
SM
137112020-02-18 Simon Marchi <simon.marchi@efficios.com>
13712
13713 * valprint.c (generic_val_print_enum_1): Print unknown part of
13714 flag enum in hex.
13715
6740f0cc
SM
137162020-02-18 Simon Marchi <simon.marchi@efficios.com>
13717
13718 * dwarf2/read.c (update_enumeration_type_from_children): Allow
13719 flag enums to contain duplicate enumerators.
13720 * valprint.c (generic_val_print_enum_1): Update comment.
13721
edd45eb0
SM
137222020-02-18 Simon Marchi <simon.marchi@efficios.com>
13723
13724 * dwarf2/read.c: Include "count-one-bits.h".
13725 (update_enumeration_type_from_children): If an enumerator has
13726 multiple bits set, don't treat the enumeration as a "flag enum".
13727 * valprint.c (generic_val_print_enum_1): Assert that enumerators
13728 of flag enums have 0 or 1 bit set.
13729
6d0cf446
BE
137302020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
13731
13732 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
13733 conversion.
13734 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13735 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
13736 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13737 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
13738 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13739
7001c1b7
SM
137402020-02-18 Simon Marchi <simon.marchi@efficios.com>
13741
13742 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
13743
fdb61c6c
SM
137442020-02-14 Simon Marchi <simon.marchi@efficios.com>
13745
13746 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
13747 displaced_step_closure_up.
13748 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
13749 (struct displaced_step_closure_up):
13750 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13751 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
13752 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
13753 Likewise.
13754 * gdbarch.sh (displaced_step_copy_insn): Likewise.
13755 * gdbarch.c, gdbarch.h: Re-generate.
13756 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
13757 displaced_step_closure_up.
13758 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13759 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
13760 * infrun.h (displaced_step_closure_up): New type alias.
13761 (struct displaced_step_inferior_state) <step_closure>: Change
13762 type to displaced_step_closure_up.
13763 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
13764 displaced_step_closure_up.
13765 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13766
a4a38eb4
TT
137672020-02-14 Tom Tromey <tom@tromey.com>
13768
13769 * minidebug.c (gnu_debug_key): New global.
13770 (find_separate_debug_file_in_section): Use it.
13771
e8217e61
SM
137722020-02-14 Simon Marchi <simon.marchi@efficios.com>
13773
13774 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
13775 std::unique_ptr.
13776 * gdbarch.c: Re-generate.
13777 * gdbarch.h: Re-generate.
13778 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
13779 change.
13780 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
13781 type to std::unique_ptr.
13782 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
13783 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13784 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
13785 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
13786 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
13787 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13788 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
13789 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
13790 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13791
d8d83535
SM
137922020-02-14 Simon Marchi <simon.marchi@efficios.com>
13793
13794 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
13795 std::unique_ptr.
13796 (displaced_step_clear): Rename to...
13797 (displaced_step_reset): ... this. Just call displaced->reset ().
13798 (displaced_step_clear_cleanup): Rename to...
13799 (displaced_step_reset_cleanup): ... this.
13800 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
13801 (displaced_step_fixup): Likewise.
13802 (resume_1): Likewise.
13803 (handle_inferior_event): Restore child's memory before calling
13804 displaced_step_fixup on the parent.
13805 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
13806 to std::unique_ptr.
13807 <step_closure>: Change type to std::unique_ptr.
13808
5f661e03
SM
138092020-02-14 Simon Marchi <simon.marchi@efficios.com>
13810
13811 * arm-tdep.c: Include count-one-bits.h.
13812 (cleanup_block_store_pc): Use count_one_bits.
13813 (cleanup_block_load_pc): Use count_one_bits.
13814 (arm_copy_block_xfer): Use count_one_bits.
13815 (thumb2_copy_block_xfer): Use count_one_bits.
13816 (thumb_copy_pop_pc_16bit): Use count_one_bits.
13817 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
13818 (thumb_get_next_pcs_raw): Use count_one_bits.
13819 (arm_get_next_pcs_raw): Use count_one_bits_l.
13820 * arch/arm.c (bitcount): Remove.
13821 * arch/arm.h (bitcount): Remove.
13822
8084e579
TT
138232020-02-14 Tom Tromey <tromey@adacore.com>
13824
13825 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
13826 Update.
13827 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
13828 * dwarf2/loc.c (call_site_find_chain_1): Return
13829 unique_xmalloc_ptr.
13830 (call_site_find_chain): Likewise.
13831
258bf0ee
RB
138322020-02-14 Richard Biener <rguenther@suse.de>
13833
13834 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
13835 on expression with division operators.
13836
f98a8458
AKS
138372020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13838
13839 * MAINTAINERS (Write After Approval): Adding myself.
13840
d1437c0e
TT
138412020-02-12 Tom Tromey <tom@tromey.com>
13842
13843 * event-loop.c (event_data, gdb_event, event_handler_func):
13844 Remove.
13845
3d4560f7
TT
138462020-02-12 Tom Tromey <tom@tromey.com>
13847
13848 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
13849 (dwarf2_frame_objfile_data): Add comment.
13850 (find_comp_unit, set_comp_unit): New functions.
13851 (dwarf2_frame_find_fde): Use find_comp_unit.
13852 (dwarf2_build_frame_info): Use set_comp_unit.
13853
21982304
TT
138542020-02-12 Tom Tromey <tom@tromey.com>
13855
13856 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
13857 (comp_unit): Don't initialize objfile.
13858 (execute_cfa_program): Add text_offset parameter.
13859 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
13860 (dwarf2_frame_cache): Update.
13861 (dwarf2_build_frame_info): Don't set "objfile" member.
13862
4debb237
TT
138632020-02-12 Tom Tromey <tom@tromey.com>
13864
13865 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
13866 (decode_frame_entry): Likewise.
13867 (dwarf2_build_frame_info): Update.
13868
0d404d44
TT
138692020-02-12 Tom Tromey <tom@tromey.com>
13870
13871 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
13872 (decode_frame_entry_1): Use the comp_unit obstack.
13873
a7a3ae5c
TT
138742020-02-12 Tom Tromey <tom@tromey.com>
13875
13876 * dwarf2/frame.c (struct comp_unit): Add initializers and
13877 constructor.
13878 (dwarf2_frame_objfile_data): Store a comp_unit.
13879 (dwarf2_frame_find_fde): Update.
13880 (dwarf2_build_frame_info): Use "new".
13881
a9d65418
TT
138822020-02-12 Tom Tromey <tom@tromey.com>
13883
13884 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
13885 (dwarf2_fde_table): Typedef for std::vector.
13886 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
13887 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
13888 (decode_frame_entry): Update.
13889 (dwarf2_build_frame_info): Use "new".
13890
7559c217
CB
138912020-02-12 Christian Biesinger <cbiesinger@google.com>
13892
13893 * arm-tdep.c (arm_gdbarch_init): Update.
13894 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
13895 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
13896 have_neon, is_m>: Change to bool.
13897
aeefc73c
CB
138982020-02-12 Christian Biesinger <cbiesinger@google.com>
13899
13900 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
13901
d27b8e5f
TT
139022020-02-12 Tom Tromey <tom@tromey.com>
13903
13904 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
13905
cd5900f3
HD
139062020-02-12 Hannes Domani <ssbssa@yahoo.de>
13907
13908 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
13909 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
13910
f056b22b
TT
139112020-02-11 Tom Tromey <tom@tromey.com>
13912
13913 * psymtab.h: Update comment.
13914
f92ff6b5
TT
139152020-02-11 Tom Tromey <tom@tromey.com>
13916
13917 * gdb_obstack.h (struct auto_obstack): Use
13918 DISABLE_COPY_AND_ASSIGN.
13919
3fd6912b
TT
139202020-02-11 Tom Tromey <tom@tromey.com>
13921
13922 * dwarf2/frame.h (struct objfile): Don't forward declare.
13923
69ed9b74
CB
139242020-02-11 Christian Biesinger <cbiesinger@google.com>
13925
13926 * cris-tdep.c (cris_supply_gregset): Change signature to match
13927 what struct regset expects.
13928 (cris_regset): New struct.
13929 (fetch_core_registers): Remove.
13930 (cris_iterate_over_regset_sections): New function.
13931 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
13932 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
13933
bda874f6
CB
139342020-02-11 Christian Biesinger <cbiesinger@google.com>
13935
13936 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
13937 registers.
13938
754e1564
CB
139392020-02-11 Christian Biesinger <cbiesinger@google.com>
13940
13941 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
13942
8ddd8e0e
SM
139432020-02-11 Simon Marchi <simon.marchi@efficios.com>
13944
13945 * configure: Re-generate.
13946
898e7f60
SM
139472020-02-11 Simon Marchi <simon.marchi@efficios.com>
13948
13949 * configure: Re-generate.
13950
58df732b
SM
139512020-02-11 Simon Marchi <simon.marchi@efficios.com>
13952
13953 * acinclude: Update warning.m4 path.
13954 * warning.m4: Move to gdbsupport.
13955
da5bd37e
TT
139562020-02-11 Tom Tromey <tromey@adacore.com>
13957
13958 * remote.c (remote_console_output): Update.
13959 * printcmd.c (printf_command): Update.
13960 * event-loop.c (gdb_wait_for_event): Update.
13961 * linux-nat.c (sigchld_handler): Update.
13962 * remote-sim.c (gdb_os_write_stdout): Update.
13963 (gdb_os_flush_stdout): Update.
13964 (gdb_os_flush_stderr): Update.
13965 (gdb_os_write_stderr): Update.
13966 * exceptions.c (print_exception): Update.
13967 * remote-fileio.c (remote_fileio_func_read): Update.
13968 (remote_fileio_func_write): Update.
13969 * tui/tui.c (tui_enable): Update.
13970 * tui/tui-interp.c (tui_interp::init): Update.
13971 * utils.c (init_page_info): Update.
13972 (putchar_unfiltered, fputc_unfiltered): Update.
13973 (gdb_flush): Update.
13974 (emit_style_escape): Update.
13975 (flush_wrap_buffer, fputs_maybe_filtered): Update.
13976 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
13977 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
13978 (stderr_file::write): Update.
13979 (stderr_file::puts): Update.
13980 * ui-file.h (ui_file_isatty, ui_file_write)
13981 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
13982 (ui_file_puts): Don't declare.
13983
85f0dd3c
TV
139842020-02-10 Tom de Vries <tdevries@suse.de>
13985
13986 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
13987 sentinel to char *.
13988
2e927613
TV
139892020-02-09 Tom de Vries <tdevries@suse.de>
13990
13991 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
13992 filename if it matches "<artificial>".
13993
6bafc845
HD
139942020-02-09 Hannes Domani <ssbssa@yahoo.de>
13995
13996 * windows-tdep.c (struct enum_value_name): New struct.
13997 (create_enum): New function.
13998 (windows_get_siginfo_type): Create and use enum types.
13999
7928d571
HD
140002020-02-09 Hannes Domani <ssbssa@yahoo.de>
14001
14002 * NEWS: Mention $_siginfo support for Windows.
14003 * windows-nat.c (handle_exception): Set siginfo_er.
14004 (windows_nat_target::mourn_inferior): Reset siginfo_er.
14005 (windows_xfer_siginfo): New function.
14006 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
14007 * windows-tdep.c (struct windows_gdbarch_data): New struct.
14008 (init_windows_gdbarch_data): New function.
14009 (get_windows_gdbarch_data): New function.
14010 (windows_get_siginfo_type): New function.
14011 (windows_init_abi): Register windows_get_siginfo_type.
14012 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
14013
6751ebae
TT
140142020-02-08 Tom Tromey <tom@tromey.com>
14015
14016 * dwarf2/read.c (class cutu_reader) <cutu_reader,
14017 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
14018 <keep>: Declare method.
14019 <m_keep>: Remove member.
14020 <~cutu_reader>: Remove.
14021 (cutu_reader::init_tu_and_read_dwo_dies): Update.
14022 (cutu_reader::cutu_reader): Update.
14023 (cutu_reader::keep): Rename from ~cutu_reader.
14024 (process_psymtab_comp_unit, build_type_psymtabs_1)
14025 (process_skeletonless_type_unit, load_partial_comp_unit)
14026 (load_full_comp_unit, dwarf2_read_addr_index)
14027 (read_signatured_type): Update.
14028
135f5437
TT
140292020-02-08 Tom Tromey <tom@tromey.com>
14030
14031 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
14032 "want_partial_unit" parameter.
14033 (process_psymtab_comp_unit): Change want_partial_unit to bool.
14034 Inline check for DW_TAG_partial_unit.
14035 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
14036
9f66ff1c
TT
140372020-02-08 Tom Tromey <tom@tromey.com>
14038
14039 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
14040 read.c.
14041 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
14042 read.c.
14043
c8a7a66f
TT
140442020-02-08 Tom Tromey <tom@tromey.com>
14045
14046 * dwarf2/read.c (read_address): Move to comp-unit.c.
14047 (dwarf2_rnglists_process, dwarf2_ranges_process)
14048 (read_attribute_value, dwarf_decode_lines_1)
14049 (var_decode_location, decode_locdesc): Update.
14050 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
14051 read.c. Remove "cu" parameter.
14052 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
14053 method.
14054
8266302d
TT
140552020-02-08 Tom Tromey <tom@tromey.com>
14056
14057 * dwarf2/read.c (read_attribute_value, read_indirect_string)
14058 (read_indirect_line_string): Update.
14059 * dwarf2/comp-unit.c (read_offset): Remove.
14060 (read_comp_unit_head): Update.
14061 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
14062 method.
14063 (read_offset): Don't declare.
14064
4057dfde
TT
140652020-02-08 Tom Tromey <tom@tromey.com>
14066
14067 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
14068 * dwarf2/read.c (struct comp_unit_head): Move to
14069 dwarf2/comp-unit.h.
14070 (enum class rcuh_kind): Move to comp-unit.h.
14071 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
14072 (read_comp_unit_head, error_check_comp_unit_head)
14073 (read_and_check_comp_unit_head): Move to comp-unit.c.
14074 (read_offset, dwarf_unit_type_name): Likewise.
14075 (create_debug_type_hash_table, read_cutu_die_from_dwo)
14076 (cutu_reader::cutu_reader, read_call_site_scope)
14077 (find_partial_die, follow_die_offset): Update.
14078 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
14079
24aa364d
TT
140802020-02-08 Tom Tromey <tom@tromey.com>
14081
14082 * dwarf2/read.c (read_offset_1): Move to leb.c.
14083 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
14084 (dwarf_decode_macro_bytes): Update.
14085 * dwarf2/leb.c (read_offset): Rename; move from read.c.
14086 * dwarf2/leb.h (read_offset): Declare.
14087
2c7d5afc
TT
140882020-02-08 Tom Tromey <tom@tromey.com>
14089
14090 * dwarf2/read.c (dwarf2_section_size): Remove.
14091 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
14092 Update.
14093 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
14094
4075cb26
TT
140952020-02-08 Tom Tromey <tom@tromey.com>
14096
14097 * dwarf2/read.c (read_initial_length): Move to leb.c.
14098 * dwarf2/leb.h (read_initial_length): Declare.
14099 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
14100 handle_nonstd parameter.
14101 * dwarf2/frame.c (read_initial_length): Remove.
14102 (decode_frame_entry_1): Update.
14103
09ba997f
TT
141042020-02-08 Tom Tromey <tom@tromey.com>
14105
14106 * dwarf2/loc.c (dwarf2_find_location_expression)
14107 (dwarf_evaluate_loc_desc::get_tls_address)
14108 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
14109 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
14110 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
14111 (dwarf2_compile_property_to_c)
14112 (dwarf2_loc_desc_get_symbol_read_needs)
14113 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
14114 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
14115 (loclist_describe_location, loclist_tracepoint_var_ref)
14116 (loclist_generate_c_location): Update.
14117 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
14118 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
14119 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
14120 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
14121 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
14122 (dwarf2_per_cu_data::addr_size)
14123 (dwarf2_per_cu_data::ref_addr_size)
14124 (dwarf2_per_cu_data::text_offset)
14125 (dwarf2_per_cu_data::addr_type): Now methods.
14126 (per_cu_header_read_in): Make per_cu "const".
14127 (dwarf2_version): Remove.
14128 (dwarf2_per_cu_data::int_type): Now a method.
14129 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
14130 (set_die_type, read_array_type, read_subrange_index_type)
14131 (read_tag_string_type, read_subrange_type): Update.
14132 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
14133 offset_size, ref_addr_size, text_offset, addr_type, version,
14134 objfile, int_type, addr_sized_int_type>: Declare methods.
14135
96c738c0
TT
141362020-02-08 Tom Tromey <tom@tromey.com>
14137
14138 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
14139 Move earlier.
14140
8fdd972c
TT
141412020-02-08 Tom Tromey <tom@tromey.com>
14142
14143 * dwarf2/read.h (dwarf_line_debug): Declare.
14144 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
14145 * dwarf2/read.c: Move line_header code to new files.
14146 (dwarf_line_debug): No longer static.
14147 * dwarf2/line-header.c: New file.
14148 * dwarf2/line-header.h: New file.
14149
03075812
TT
141502020-02-08 Tom Tromey <tom@tromey.com>
14151
14152 * dwarf2/read.c (struct line_header) <file_full_name,
14153 file_file_name>: Return unique_xmalloc_ptr.
14154 (line_header::file_file_name): Update.
14155 (line_header::file_full_name): Update.
14156 (dw2_get_file_names_reader): Update.
14157 (macro_start_file): Update.
14158
bb822404
TT
141592020-02-08 Tom Tromey <tom@tromey.com>
14160
14161 * dwarf2/read.c (struct line_header) <file_full_name,
14162 file_file_name>: Declare methods.
14163 (dw2_get_file_names_reader): Update.
14164 (file_file_name): Now a method.
14165 (file_full_name): Likewise.
14166 (macro_start_file): Update.
14167
009b64fc
TT
141682020-02-08 Tom Tromey <tom@tromey.com>
14169
14170 * dwarf2/read.c (dwarf_always_disassemble)
14171 (show_dwarf_always_disassemble): Move to loc.c.
14172 (_initialize_dwarf2_read): Move "always-disassemble" registration
14173 to loc.c.
14174 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
14175 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
14176 static.
14177 (show_dwarf_always_disassemble): Move from read.c.
14178 (_initialize_dwarf2loc): Move always-disassemble from read.c.
14179
5895093f
TT
141802020-02-08 Tom Tromey <tom@tromey.com>
14181
14182 * dwarf2/read.c (~dwarf2_per_objfile): Update.
14183 (create_quick_file_names_table): Return htab_up.
14184 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
14185 Update.
14186 * dwarf2/read.h (struct dwarf2_per_objfile)
14187 <quick_file_names_table>: Now htab_up.
14188
b3b32279
TT
141892020-02-08 Tom Tromey <tom@tromey.com>
14190
14191 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
14192
1d33d811
TT
141932020-02-08 Tom Tromey <tom@tromey.com>
14194
14195 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
14196 Rewrite.
14197 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
14198 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
14199 (abbrev_table::abbrev_table): No longer inline.
14200 (ABBREV_HASH_SIZE): Remove.
14201 (abbrev_table::m_abbrevs): Now an htab_up.
14202
86de1d91
TT
142032020-02-08 Tom Tromey <tom@tromey.com>
14204
14205 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
14206 (cutu_reader): Update.
14207 (build_type_psymtabs_1): Update.
14208 * dwarf2/abbrev.c (abbrev_table::read): Rename.
14209 (abbrev_table::alloc_abbrev): Update.
14210 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
14211 (abbrev_table::read): New static method, renamed from
14212 abbrev_table_read_table.
14213 (abbrev_table::alloc_abbrev)
14214 (abbrev_table::add_abbrev): Now private.
14215 (abbrev_table::abbrev_table): Now private.
14216 (abbrev_table::m_abbrev_obstack): Now private. Rename.
14217
0335378b
TT
142182020-02-08 Tom Tromey <tom@tromey.com>
14219
14220 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
14221 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
14222 htab_up.
14223
48b490f2
TT
142242020-02-08 Tom Tromey <tom@tromey.com>
14225
14226 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
14227 htab_up.
14228 (lookup_dwo_unit_in_dwp): Update.
14229 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
14230 on obstack.
14231
bc68fb19
TT
142322020-02-08 Tom Tromey <tom@tromey.com>
14233
14234 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
14235 obstack.
14236
d15acc42
TT
142372020-02-08 Tom Tromey <tom@tromey.com>
14238
14239 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
14240 line_header_hash.
14241 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
14242 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
14243 Change type to htab_up.
14244
eaa5fa8b
TT
142452020-02-08 Tom Tromey <tom@tromey.com>
14246
14247 * dwarf2/read.c (allocate_type_unit_groups_table): Return
14248 htab_up. Don't allocate on obstack.
14249 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
14250 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
14251 Change type to htab_up.
14252
b0b6a987
TT
142532020-02-08 Tom Tromey <tom@tromey.com>
14254
14255 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
14256 Change type to htab_up.
14257 * dwarf2/read.c (create_signatured_type_table_from_index)
14258 (create_signatured_type_table_from_debug_names)
14259 (create_all_type_units, add_type_unit)
14260 (lookup_dwo_signatured_type, lookup_signatured_type)
14261 (process_skeletonless_type_unit): Update.
14262 (create_debug_type_hash_table, create_debug_types_hash_table):
14263 Change type of types_htab.
14264 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
14265 htab_up. Don't allocate on obstack.
14266 (create_cus_hash_table): Change type of cus_htab parameter.
14267 (struct dwo_file) <cus, tus>: Now htab_up.
14268 (lookup_dwo_signatured_type, lookup_dwo_cutu)
14269 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
14270 (queue_and_load_all_dwo_tus): Update.
14271 * dwarf2/index-write.c (write_gdbindex): Update.
14272 (write_debug_names): Update.
14273
39856def
TT
142742020-02-08 Tom Tromey <tom@tromey.com>
14275
14276 * dwarf2/read.h (struct dwarf2_queue_item): Move from
14277 dwarf2/read.c. Remove "next" member. Add constructor ntad
14278 destructor.
14279 (struct dwarf2_per_objfile) <queue>: New member.
14280 * dwarf2/read.c (struct dwarf2_queue_item): Move to
14281 dwarf2/read.h.
14282 (dwarf2_queue, dwarf2_queue_tail): Remove.
14283 (class dwarf2_queue_guard): Add parameter to constructor. Use
14284 DISABLE_COPY_AND_ASSIGN.
14285 <m_per_objfile>: New member.
14286 <~dwarf2_queue_guard>: Rewrite.
14287 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
14288 Update.
14289 (~dwarf2_queue_item): New.
14290
3e225074
TT
142912020-02-08 Tom Tromey <tom@tromey.com>
14292
14293 * dwarf2/read.c (struct die_info) <has_children>: New member.
14294 (dw2_get_file_names_reader): Remove has_children.
14295 (dw2_get_file_names): Update.
14296 (read_cutu_die_from_dwo): Remove has_children.
14297 (cutu_reader::init_tu_and_read_dwo_dies)
14298 (cutu_reader::cutu_reader): Update.
14299 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
14300 Remove has_children.
14301 (build_type_psymtabs_1, process_skeletonless_type_unit)
14302 (load_partial_comp_unit, load_full_comp_unit): Update.
14303 (create_dwo_cu_reader): Remove has_children.
14304 (create_cus_hash_table, read_die_and_children): Update.
14305 (read_full_die_1,read_full_die): Remove has_children.
14306 (read_signatured_type): Update.
14307 (class cutu_reader) <has_children>: Remove.
14308
82ca8957
TT
143092020-02-08 Tom Tromey <tom@tromey.com>
14310
14311 * dwarf2/expr.c: Rename from dwarf2expr.c.
14312 * dwarf2/expr.h: Rename from dwarf2expr.h.
14313 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
14314 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
14315 * dwarf2/frame.c: Rename from dwarf2-frame.c.
14316 * dwarf2/frame.h: Rename from dwarf2-frame.h.
14317 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
14318 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
14319 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
14320 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
14321 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
14322 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
14323 * dwarf2/loc.c: Rename from dwarf2loc.c.
14324 * dwarf2/loc.h: Rename from dwarf2loc.h.
14325 * dwarf2/read.c: Rename from dwarf2read.c.
14326 * dwarf2/read.h: Rename from dwarf2read.h.
14327 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
14328 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
14329 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
14330 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
14331 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
14332 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
14333 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
14334 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
14335 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
14336 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
14337 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
14338 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
14339 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
14340 Update.
14341 * Makefile.in (COMMON_SFILES): Update.
14342 (HFILES_NO_SRCDIR): Update.
14343
9e35d499
TT
143442020-02-08 Tom Tromey <tom@tromey.com>
14345
14346 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
14347 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
14348
1eba2311
TT
143492020-02-08 Tom Tromey <tom@tromey.com>
14350
14351 * dwarf2read.h (struct die_info): Don't declare.
14352
e41c2da2
TT
143532020-02-08 Tom Tromey <tom@tromey.com>
14354
14355 * dwarf2read.h (die_info_ptr): Remove typedef.
14356
4fc6c0d5
TT
143572020-02-08 Tom Tromey <tom@tromey.com>
14358
14359 * dwarf2read.c (read_call_site_scope)
14360 (handle_data_member_location, dwarf2_add_member_fn)
14361 (mark_common_block_symbol_computed, read_common_block)
14362 (attr_to_dynamic_prop, partial_die_info::read)
14363 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
14364 (dwarf2_symbol_mark_computed, set_die_type): Update.
14365 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
14366 method.
14367 (attr_form_is_block): Don't declare.
14368 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
14369
cd6c91b4
TT
143702020-02-08 Tom Tromey <tom@tromey.com>
14371
14372 * dwarf2read.c (dwarf2_find_base_address, )
14373 (read_call_site_scope, rust_containing_type)
14374 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
14375 (handle_data_member_location, dwarf2_add_member_fn)
14376 (get_alignment, read_structure_type, process_structure_scope)
14377 (mark_common_block_symbol_computed, read_common_block)
14378 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
14379 (partial_die_info::read, read_attribute_value, new_symbol)
14380 (lookup_die_type, dwarf2_get_ref_die_offset)
14381 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
14382 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
14383 (dwarf2_symbol_mark_computed): Update.
14384 * dwarf2/attribute.h (struct attribute) <value_as_address,
14385 form_is_section_offset, form_is_constant, form_is_ref>: Declare
14386 methods.
14387 (value_as_address, attr_form_is_section_offset)
14388 (attr_form_is_constant, attr_form_is_ref): Don't declare.
14389 * dwarf2/attribute.c (attribute::value_as_address)
14390 (attribute::form_is_section_offset, attribute::form_is_constant)
14391 (attribute::form_is_ref): Now methods.
14392
162dce55
TT
143932020-02-08 Tom Tromey <tom@tromey.com>
14394
14395 * dwarf2read.c (struct attribute, DW_STRING)
14396 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
14397 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
14398 (attr_form_is_block, attr_form_is_section_offset)
14399 (attr_form_is_constant, attr_form_is_ref): Move.
14400 * dwarf2/attribute.h: New file.
14401 * dwarf2/attribute.c: New file, from dwarf2read.c.
14402 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
14403
3054dd54
TT
144042020-02-08 Tom Tromey <tom@tromey.com>
14405
14406 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
14407 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
14408 Move.
14409 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
14410 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
14411 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
14412 abbrev.c.
14413 * dwarf2/abbrev.h: New file.
14414 * dwarf2/abbrev.c: New file, from dwarf2read.c.
14415 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
14416
96b79293
TT
144172020-02-08 Tom Tromey <tom@tromey.com>
14418
14419 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
14420 (dwarf2_section_size, dwarf2_get_section_info)
14421 (create_signatured_type_table_from_debug_names)
14422 (create_addrmap_from_aranges, read_debug_names_from_section)
14423 (get_gdb_index_contents_from_section, read_comp_unit_head)
14424 (error_check_comp_unit_head, read_abbrev_offset)
14425 (create_debug_type_hash_table, init_cu_die_reader)
14426 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
14427 (read_comp_units_from_section, create_cus_hash_table)
14428 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
14429 (create_dwp_v2_section, dwarf2_rnglists_process)
14430 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
14431 (abbrev_table_read_table, read_indirect_string_at_offset_from)
14432 (read_indirect_string_from_dwz, read_addr_index_1)
14433 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
14434 (dwarf_decode_macro_bytes, dwarf_decode_macros)
14435 (fill_in_loclist_baton): Update.
14436 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
14437 get_containing_section, get_bfd_owner, get_bfd_section,
14438 get_file_name, get_id, get_flags, empty, read>: Declare methods.
14439 (dwarf2_read_section, get_section_name, get_section_file_name)
14440 (get_containing_section, get_section_bfd_owner)
14441 (get_section_bfd_section, get_section_name, get_section_file_name)
14442 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
14443 declare.
14444 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
14445 (dwarf2_section_info::get_bfd_owner)
14446 (dwarf2_section_info::get_bfd_section)
14447 (dwarf2_section_info::get_name)
14448 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
14449 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
14450 (dwarf2_section_info::read): Now methods.
14451 * dwarf-index-write.c (class debug_names): Update.
14452
2c86cff9
TT
144532020-02-08 Tom Tromey <tom@tromey.com>
14454
14455 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
14456 Move to dwarf2/section.h.
14457 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
14458 (get_section_bfd_section, get_section_name)
14459 (get_section_file_name, get_section_id, get_section_flags)
14460 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
14461 dwarf2/section.c.
14462 * dwarf2/section.h: New file.
14463 * dwarf2/section.c: New file, from dwarf2read.c.
14464 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
14465
f4382c45
TT
144662020-02-08 Tom Tromey <tom@tromey.com>
14467
14468 * dwarf2read.h (read_unsigned_leb128): Don't declare.
14469 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
14470 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
14471 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
14472 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
14473 * dwarf2/leb.h: New file, from dwarf2read.c.
14474 * dwarf2/leb.c: New file, from dwarf2read.c.
14475 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
14476 Remove.
14477 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
14478 (COMMON_SFILES): Add dwarf2/leb.c.
14479
01840b7a
JB
144802020-02-08 Joel Brobecker <brobecker@adacore.com>
14481
14482 GDB 9.1 released.
14483
dfcb27e4
IB
144842020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
14485
14486 PR gdb/25190:
aac66a4c
SM
14487 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
14488 * gdb/remote.c (remote_console_output): Update.
14489 * gdb/ui-file.c (fputs_unfiltered): Rename to...
14490 (ui_file_puts): ...this.
14491 * gdb/ui-file.h (ui_file_puts): Add declaration.
14492 * gdb/utils.c (emit_style_escape): Update.
14493 (flush_wrap_buffer): Update.
14494 (fputs_maybe_filtered): Update.
14495 (fputs_unfiltered): Add function.
dfcb27e4 14496
faa17681
IB
144972020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
14498
aac66a4c
SM
14499 * gdb/event-loop.c (gdb_wait_for_event): Update.
14500 * gdb/printcmd.c (printf_command): Update.
14501 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
14502 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
14503 (gdb_os_flush_stderr): Update.
14504 * gdb/remote.c (remote_console_output): Update.
14505 * gdb/ui-file.c (gdb_flush): Rename to...
14506 (ui_file_flush): ...this.
14507 (stderr_file::write): Update.
14508 (stderr_file::puts): Update.
14509 * gdb/ui-file.h (gdb_flush): Rename to...
14510 (ui_file_flush): ...this.
14511 * gdb/utils.c (gdb_flush): Add function.
14512 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 14513
5abbbe1d
TT
145142020-02-07 Tom Tromey <tromey@adacore.com>
14515
14516 PR breakpoints/24915:
14517 * source.c (find_and_open_source): Do not check basenames_may_differ.
14518
919adfe8
TT
145192020-02-07 Tom Tromey <tom@tromey.com>
14520
14521 * README: Update gdbserver documentation.
14522 * gdbserver: Move to top level.
14523 * configure.tgt (build_gdbserver): Remove.
14524 * configure.ac: Remove --enable-gdbserver.
14525 * configure: Rebuild.
14526 * Makefile.in (distclean): Don't mention gdbserver.
14527
1d5d29e7
SV
145282020-02-06 Shahab Vahedi <shahab@synopsys.com>
14529
14530 * source-cache.c (source_cache::ensure): Surround
14531 get_plain_source_lines with a try/catch.
14532 (source_cache::get_line_charpos): Get rid of try/catch
14533 and only check for the return value of "ensure".
14534 * tui/tui-source.c (tui_source_window::set_contents):
14535 Simplify "nlines" calculation.
14536
6eb1129c
SV
145372020-02-06 Shahab Vahedi <shahab@synopsys.com>
14538
14539 * MAINTAINERS (Write After Approval): Add myself.
14540
c6a42d11
CB
145412020-02-05 Christian Biesinger <cbiesinger@google.com>
14542
14543 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
14544 function call.
14545
c8ecdda6
CB
145462020-02-05 Christian Biesinger <cbiesinger@google.com>
14547
14548 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
14549
f6480e70
MR
145502020-02-05 Maciej W. Rozycki <macro@wdc.com>
14551
14552 * nat/riscv-linux-tdesc.h: New file.
14553 * nat/riscv-linux-tdesc.c: New file, taking code from...
14554 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
14555 ... here.
14556 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
14557 NATDEPFILES.
14558
dcc9fbc6
AB
145592020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
14560
14561 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
14562 we don't set the fake simulator ptid to the null_ptid.
14563
719546c4
SM
145642020-02-03 Simon Marchi <simon.marchi@efficios.com>
14565
14566 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
14567 * gdbthread.h (class thread_info) <resumed>: Likewise.
14568 * infrun.c (resume_1): Likewise.
14569 (proceed): Likewise.
14570 (infrun_thread_stop_requested): Likewise.
14571 (stop_all_threads): Likewise.
14572 (handle_inferior_event): Likewise.
14573 (restart_threads): Likewise.
14574 (finish_step_over): Likewise.
14575 (keep_going_stepped_thread): Likewise.
14576 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
14577 (linux_handle_extended_wait): Likewise.
14578 * record-btrace.c (get_thread_current_frame_id): Likewise.
14579 * record-full.c (record_full_wait_1): Likewise.
14580 * remote.c (remote_target::process_initial_stop_replies): Likewise.
14581 * target.c (target_resume): Likewise.
14582 * thread.c (set_running_thread): Likewise.
14583
e409c542
AKS
145842020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14585
14586 * f-valprint.c (f77_print_array_1): Changed datatype of index
14587 variable to LONGEST from int to enable it to contain bound
14588 values correctly.
14589
ee98c0da
MR
145902020-02-03 Maciej W. Rozycki <macro@wdc.com>
14591
14592 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
14593 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
14594 offsets according to FLEN determined.
14595 (riscv_linux_nat_target::read_description): Determine FLEN
14596 dynamically.
14597 (riscv_linux_nat_target::fetch_registers): Size regset buffer
14598 according to FLEN determined.
14599 (riscv_linux_nat_target::store_registers): Likewise.
14600
aa66aac4
SV
146012020-02-01 Shahab Vahedi <shahab@synopsys.com>
14602
14603 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
14604 when reg->group is empty and reggroup is not.
14605
fd9faca8
TT
146062020-01-31 Tom Tromey <tromey@adacore.com>
14607
14608 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
14609 Call beneath target's mourn_inferior after unpushing.
14610
42330a68
AB
146112020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
14612
14613 PR tui/9765
14614 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
14615 have enough lines to fill the screen, still return the lowest
14616 address we found.
14617
7a27a45b
AB
146182020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
14619
14620 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
14621 '-', '<', and '>' commands.
14622
c47f70e2
PA
146232020-01-29 Pedro Alves <palves@redhat.com>
14624 Sergio Durigan Junior <sergiodj@redhat.com>
14625
14626 * infcmd.c (construct_inferior_arguments): Assert that
14627 'argc' is greater than 0.
14628
5133a315
LM
146292020-01-29 Luis Machado <luis.machado@linaro.org>
14630
14631 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
14632 (BRK_INSN_MASK): Define to 0xd4200000.
14633 (aarch64_program_breakpoint_here_p): New function.
14634 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
14635 * arch-utils.c (default_program_breakpoint_here_p): Moved from
14636 breakpoint.c.
14637 * arch-utils.h (default_program_breakpoint_here_p): Moved from
14638 breakpoint.h
14639 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
14640 call gdbarch_program_breakpoint_here_p.
14641 (program_breakpoint_here): Moved to arch-utils.c, renamed to
14642 default_program_breakpoint_here_p, changed return type to bool and
14643 simplified.
14644 * breakpoint.h (program_breakpoint_here): Moved prototype to
14645 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
14646 return type to bool.
14647 * gdbarch.c: Regenerate.
14648 * gdbarch.h: Regenerate.
14649 * gdbarch.sh (program_breakpoint_here_p): New method.
14650 * infrun.c (handle_signal_stop): Call
14651 gdbarch_program_breakpoint_here_p.
14652
168f8c6b
TT
146532020-01-26 Tom Tromey <tom@tromey.com>
14654
14655 * ctfread.c (struct ctf_fp_info): Reindent.
14656 (_initialize_ctfread): Remove.
14657
128a391f
TT
146582020-01-26 Tom Tromey <tom@tromey.com>
14659
14660 * psymtab.c (partial_map_expand_apply)
14661 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
14662 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
14663 (psym_print_stats, psym_expand_symtabs_for_function)
14664 (psym_map_symbol_filenames, psym_map_matching_symbols)
14665 (psym_expand_symtabs_matching)
14666 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
14667 (maintenance_check_psymtabs): Use new methods.
14668 * psympriv.h (struct partial_symtab) <readin_p,
14669 get_compunit_symtab>: New methods.
14670 <readin, compunit_symtab>: Remove members.
14671 (struct standard_psymtab): New.
14672 (struct legacy_psymtab): Derive from standard_psymtab.
14673 * dwarf2read.h (struct dwarf2_psymtab): Derive from
14674 standard_psymtab.
14675 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
14676
0494dbec
TT
146772020-01-26 Tom Tromey <tom@tromey.com>
14678
14679 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
14680 read_dependencies. Add assert.
14681 * psymtab.c (partial_symtab::read_dependencies): New method.
14682 * psympriv.h (struct partial_symtab) <read_dependencies>: New
14683 method.
14684 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
14685 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
14686 read_dependencies.
14687 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
14688 Add assert.
14689
8566b89b
TT
146902020-01-26 Tom Tromey <tom@tromey.com>
14691
14692 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
14693 Call expand_psymtab.
14694 (xcoff_read_symtab): Call expand_psymtab.
14695 (xcoff_start_psymtab, xcoff_end_psymtab): Set
14696 legacy_expand_psymtab.
14697 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
14698 method.
14699 (struct legacy_psymtab) <expand_psymtab>: Implement.
14700 <legacy_expand_psymtab>: New member.
14701 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
14702 (parse_partial_symbols): Set legacy_expand_psymtab.
14703 (psymtab_to_symtab_1): Change argument order. Call
14704 expand_psymtab.
14705 (new_psymtab): Set legacy_expand_psymtab.
14706 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
14707 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
14708 expand_psymtab.
14709 (dwarf2_psymtab::expand_psymtab): Rename from
14710 psymtab_to_symtab_1. Call expand_psymtab.
14711 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
14712 (dbx_end_psymtab): Likewise.
14713 (dbx_psymtab_to_symtab_1): Change argument order. Call
14714 expand_psymtab.
14715 (dbx_read_symtab): Call expand_psymtab.
14716 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
14717 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
14718 (ctf_psymtab::read_symtab): Call expand_psymtab.
14719
077cbab2
TT
147202020-01-26 Tom Tromey <tom@tromey.com>
14721
14722 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
14723 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
14724 messages.
14725 * mdebugread.c (mdebug_read_symtab): Remove prints.
14726 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
14727 assert.
14728 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
14729
891813be
TT
147302020-01-26 Tom Tromey <tom@tromey.com>
14731
14732 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
14733 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
14734 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
14735 legacy_symtab.
14736 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
14737 * psymtab.c (psymtab_to_symtab): Call method.
14738 (dump_psymtab): Update.
14739 * psympriv.h (struct partial_symtab): Add virtual destructor.
14740 <read_symtab>: New method.
14741 (struct legacy_symtab): New.
14742 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
14743 (struct pst_map) <pst>: Now a legacy_psymtab.
14744 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
14745 (new_psymtab): Use legacy_psymtab.
14746 * dwarf2read.h (struct dwarf2_psymtab): New.
14747 (struct dwarf2_per_cu_data) <psymtab>: Use it.
14748 * dwarf2read.c (dwarf2_create_include_psymtab)
14749 (dwarf2_build_include_psymtabs, create_type_unit_group)
14750 (create_partial_symtab, process_psymtab_comp_unit_reader)
14751 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
14752 (set_partial_user): Use dwarf2_psymtab.
14753 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
14754 (psymtab_to_symtab_1, process_full_comp_unit)
14755 (process_full_type_unit, dwarf2_ranges_read)
14756 (dwarf2_get_pc_bounds, psymtab_include_file_name)
14757 (dwarf_decode_lines): Use dwarf2_psymtab.
14758 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
14759 (add_address_entry_worker, write_one_signatured_type)
14760 (recursively_count_psymbols, recursively_write_psymbols)
14761 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
14762 (write_debug_names): Likewise.
14763 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
14764 <pst>: Now a legacy_psymtab.
14765 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
14766 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
14767 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
14768 * ctfread.c (struct ctf_psymtab): New.
14769 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
14770 ctf_psymtab.
14771 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
14772 (create_partial_symtab): Return a ctf_psymtab.
14773 (scan_partial_symbols): Update.
14774
c3693a1d
TT
147752020-01-26 Tom Tromey <tom@tromey.com>
14776
14777 * xcoffread.c (xcoff_start_psymtab): Use new.
14778 * psymtab.c (partial_symtab::partial_symtab): New constructor,
14779 renamed from start_psymtab_common.
14780 * psympriv.h (struct partial_symtab): Add new constructor.
14781 (start_psymtab_common): Don't declare.
14782 * mdebugread.c (parse_partial_symbols): Use new.
14783 * dwarf2read.c (create_partial_symtab): Use new.
14784 * dbxread.c (start_psymtab): Use new.
14785 * ctfread.c (create_partial_symtab): Use new.
14786
32caafd0
TT
147872020-01-26 Tom Tromey <tom@tromey.com>
14788
14789 * xcoffread.c (xcoff_end_psymtab): Use new.
14790 * psymtab.c (start_psymtab_common): Use new.
14791 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
14792 Update.
14793 * psympriv.h (struct partial_symtab): Add parameters to
14794 constructor. Don't inline.
14795 (allocate_psymtab): Don't declare.
14796 * mdebugread.c (new_psymtab): Use new.
14797 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
14798 * dbxread.c (dbx_end_psymtab): Use new.
14799
abaa2f23
TT
148002020-01-26 Tom Tromey <tom@tromey.com>
14801
14802 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
14803 allocate_psymtab. Update documentation.
14804 * psymtab.c (psymtab_storage::install_psymtab): Rename from
14805 allocate_psymtab. Do not use new.
14806 (allocate_psymtab): Use new. Update.
14807
6d94535f
TT
148082020-01-26 Tom Tromey <tom@tromey.com>
14809
14810 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
14811 * psymtab.c (psym_print_stats): Update.
14812 * psympriv.h (struct partial_symtab) <readin,
14813 psymtabs_addrmap_supported, anonymous>: Now bool.
14814 * mdebugread.c (psymtab_to_symtab_1): Update.
14815 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
14816 (build_type_psymtabs_reader, psymtab_to_symtab_1)
14817 (process_full_comp_unit, process_full_type_unit): Update.
14818 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
14819 * ctfread.c (psymtab_to_symtab): Update.
14820
6f17252b
TT
148212020-01-26 Tom Tromey <tom@tromey.com>
14822
14823 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
14824 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
14825 * psymtab.c (psymtab_storage): Delete psymtabs.
14826 (psymtab_storage::allocate_psymtab): Use new.
14827 (psymtab_storage::discard_psymtab): Use delete.
14828 * psympriv.h (struct partial_symtab): Add constructor and
14829 initializers.
14830
f6f1cebc
TT
148312020-01-26 Tom Tromey <tom@tromey.com>
14832
14833 * machoread.c: Do not include psympriv.h.
14834
e47e48f6
PW
148352020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14836
14837 * NEWS: Mention the new option and the set/show commands.
14838
a2fedca9
PW
148392020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14840
14841 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
14842 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
14843 (validate_exec_file): New variables, enums, functions.
14844 (exec_file_locate_attach, print_section_info): Style the filenames.
14845 (_initialize_exec): Install show_exec_file_mismatch_command and
14846 set_exec_file_mismatch_command.
14847 * gdbcore.h (validate_exec_file): Declare.
14848 * infcmd.c (attach_command): Call validate_exec_file.
14849 * remote.c ( remote_target::remote_add_inferior): Likewise.
14850
7ffa82e1
AB
148512020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14852
14853 * frame.c (find_frame_sal): Move call to get_next_frame into more
14854 inner scope.
14855 * inline-frame.c (inilne_state) <inline_state>: Update argument
14856 types.
14857 (inilne_state) <skipped_symbol>: Rename to...
14858 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
14859 (skip_inline_frames): Build vector of skipped symbols and use this
14860 to reate the inline_state.
14861 (inline_skipped_symbol): Add a comment and some assertions, fetch
14862 skipped symbol from the list.
14863
3d92a3e3
AB
148642020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14865
14866 * buildsym.c (lte_is_less_than): Delete.
14867 (buildsym_compunit::end_symtab_with_blockvector): Create local
14868 lambda function to sort line table entries, and use
14869 std::stable_sort instead of std::sort.
14870 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
14871 markers when looking for a previous line.
14872
94a72be7
AB
148732020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14874
14875 * dwarf2read.c (lnp_state_machine::record_line): Include
14876 end_sequence parameter in debug print out. Record the line if we
14877 are at an end_sequence marker even if it's not the start of a
14878 statement.
14879 * symmisc.c (maintenance_print_one_line_table): Print end of
14880 sequence markers with 'END' not '0'.
14881
53af73bf
PA
148822020-01-24 Pedro Alves <palves@redhat.com>
14883
14884 PR gdb/25410
14885 * thread.c (scoped_restore_current_thread::restore): Use
14886 switch_to_inferior_no_thread.
14887 * exec.c: Include "progspace-and-thread.h".
14888 (add_target_sections, remove_target_sections):
14889 scoped_restore_current_pspace_and_thread instead of
14890 scoped_restore_current_thread.
14891 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
14892 and aspace to the inferior before calling clone_program_space.
14893 Remove stale comment.
14894
3050c6f4
CB
148952020-01-24 Christian Biesinger <cbiesinger@google.com>
14896
14897 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
14898 (arm_netbsd_nat_target::fetch_registers): ...this.
14899 (arm_nbsd_nat_target::store_registers): Rename to...
14900 (arm_netbsd_nat_target::store_registers): ...this.
14901
73685c7e
CB
149022020-01-24 Christian Biesinger <cbiesinger@google.com>
14903
14904 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
14905 register_t.
14906
89203d40
CB
149072020-01-24 Christian Biesinger <cbiesinger@google.com>
14908
14909 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
14910 Update comment.
14911 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
14912 Likewise.
14913 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
14914 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
14915 the correct replacement (iterate_over_regset_sections).
14916 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
14917 Update comment.
14918
1ba1ac88
AB
149192020-01-24 Graham Markall <graham.markall@embecosm.com>
14920
14921 PR gdb/23718
14922 * gdb/python/python.c (execute_gdb_command): Call
14923 async_enable_stdin in catch block.
14924
f3364a6d
AB
149252020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14926
14927 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
14928 SWITCH_THRU_ALL_UIS.
14929
733d0a67
AB
149302020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14931
14932 PR tui/9765
14933 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
14934 comment, add extra parameter, and update to store previous symbol
14935 when appropriate.
14936 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
14937 add extra parameter.
14938 * tui/tui-disasm.c (tui_disassemble): Update header comment,
14939 remove unneeded parameter, add try/catch around gdb_print_insn,
14940 rewrite to add items to asm_lines vector.
14941 (tui_find_backward_disassembly_start_address): New function.
14942 (tui_find_disassembly_address): Updated throughout.
14943 (tui_disasm_window::set_contents): Update for changes to
14944 tui_disassemble.
14945 (tui_disasm_window::do_scroll_vertical): No need to adjust the
14946 number of lines to scroll.
14947
b3b3bada
SM
149482020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
14949
14950 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
14951 (SECT_OFF_DATA): Likewise.
14952 (SECT_OFF_RODATA): Likewise.
14953 (SECT_OFF_TEXT): Likewise.
14954 (SECT_OFF_BSS): Likewise.
14955 (struct objfile) <text_section_offset, data_section_offset>: New
14956 methods.
14957 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
14958 objfile::text_section_offset.
14959 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
14960 * coffread.c (coff_symtab_read): Likewise.
14961 (enter_linenos): Likewise.
14962 (process_coff_symbol): Likewise.
14963 * ctfread.c (get_objfile_text_range): Likewise.
14964 * dtrace-probe.c (dtrace_probe::get_relocated_address):
14965 Use objfile::data_section_offset.
14966 * dwarf2-frame.c (execute_cfa_program): Use
14967 objfile::text_section_offset.
14968 (dwarf2_frame_find_fde): Likewise.
14969 * dwarf2read.c (create_addrmap_from_index): Likewise.
14970 (create_addrmap_from_aranges): Likewise.
14971 (dw2_find_pc_sect_compunit_symtab): Likewise.
14972 (process_psymtab_comp_unit_reader): Likewise.
14973 (add_partial_symbol): Likewise.
14974 (add_partial_subprogram): Likewise.
14975 (process_full_comp_unit): Likewise.
14976 (read_file_scope): Likewise.
14977 (read_func_scope): Likewise.
14978 (read_lexical_block_scope): Likewise.
14979 (read_call_site_scope): Likewise.
14980 (dwarf2_rnglists_process): Likewise.
14981 (dwarf2_ranges_process): Likewise.
14982 (dwarf2_ranges_read): Likewise.
14983 (dwarf_decode_lines_1): Likewise.
14984 (new_symbol): Likewise.
14985 (dwarf2_fetch_die_loc_sect_off): Likewise.
14986 (dwarf2_per_cu_text_offset): Likewise.
14987 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
14988 * hppa-tdep.c (read_unwind_info): Likewise.
14989 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
14990 * psympriv.h (struct partial_symtab): Likewise.
14991 * psymtab.c (find_pc_sect_psymtab): Likewise.
14992 * solib-svr4.c (enable_break): Likewise.
14993 * stap-probe.c (relocate_address): Use
14994 objfile::data_section_offset.
14995 * xcoffread.c (enter_line_range): Use
14996 objfile::text_section_offset.
14997 (read_xcoff_symtab): Likewise.
14998
ab53f382
SM
149992020-01-23 Simon Marchi <simon.marchi@efficios.com>
15000
15001 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
15002 declaration to narrower scopes.
15003
e7eee665
SM
150042020-01-23 Simon Marchi <simon.marchi@efficios.com>
15005
15006 * darwin-nat.h (struct darwin_exception_msg, enum
15007 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
15008 Move up.
15009 (class darwin_nat_target) <wait_1, check_new_threads,
15010 decode_exception_message, decode_message, stop_inferior,
15011 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
15012 * darwin-nat.c (darwin_check_new_threads): Rename to...
15013 (darwin_nat_target::check_new_threads): ... this.
15014 (darwin_suspend_inferior_it): Remove.
15015 (darwin_decode_exception_message): Rename to...
15016 (darwin_nat_target::decode_exception_message): ... this.
15017 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
15018 (darwin_decode_message): Rename to...
15019 (darwin_nat_target::decode_message): ... this.
15020 (cancel_breakpoint): Rename to...
15021 (darwin_nat_target::cancel_breakpoint): ... this.
15022 (darwin_wait): Rename to...
15023 (darwin_nat_target::wait_1): ... this. Use range-based for loop
15024 instead of iterate_over_inferiors.
15025 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
15026 (darwin_stop_inferior): Rename to...
15027 (darwin_nat_target::stop_inferior): ... this.
15028 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
15029 (darwin_init_thread_list): Rename to...
15030 (darwin_nat_target::init_thread_list): ... this.
15031 (darwin_ptrace_him): Rename to...
15032 (darwin_nat_target::ptrace_him): ... this.
15033 (darwin_nat_target::create_inferior): Pass lambda function to
15034 fork_inferior.
15035 (darwin_nat_target::detach): Call stop_inferior instead of
15036 darwin_stop_inferior.
15037 * fork-inferior.h (fork_inferior): Change init_trace_fun
15038 parameter to gdb::function_view.
15039 * fork-inferior.c (fork_inferior): Likewise.
15040
c162ed3e
HD
150412020-01-23 Hannes Domani <ssbssa@yahoo.de>
15042
15043 * i386-cygwin-tdep.c (core_process_module_section): Update.
15044 * windows-nat.c (struct lm_info_windows): Add text_offset.
15045 (windows_xfer_shared_libraries): Update.
15046 * windows-tdep.c (windows_xfer_shared_library):
15047 Add text_offset_cached argument.
15048 * windows-tdep.h (windows_xfer_shared_library): Update.
15049
a1237872
SM
150502020-01-21 Simon Marchi <simon.marchi@efficios.com>
15051
15052 * gdbarch.sh: Add declaration for _initialize_gdbarch.
15053
b3ee6dd9
SM
150542020-01-21 Simon Marchi <simon.marchi@efficios.com>
15055
15056 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
15057 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
15058 replace with range-based for.
15059 (gdbsim_interrupt_inferior): Remove.
15060 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
15061 with a range-based for. Inline code from
15062 gdbsim_interrupt_inferior.
15063
f9fac3c8
SM
150642020-01-21 Simon Marchi <simon.marchi@efficios.com>
15065
15066 * infrun.c (proceed): Fix indentation.
15067
f6474de9
TT
150682020-01-21 Tom Tromey <tromey@adacore.com>
15069
15070 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
15071 * python/python.c (python_extension_ops): Update.
15072 (gdbpy_colorize): New function.
15073 * python/lib/gdb/__init__.py (colorize): New function.
15074 * extension.h (ext_lang_colorize): Declare.
15075 * extension.c (ext_lang_colorize): New function.
15076 * extension-priv.h (struct extension_language_ops) <colorize>: New
15077 member.
15078 * cli/cli-style.c (_initialize_cli_style): Update help text.
15079
f0c702d4
LM
150802020-01-21 Luis Machado <luis.machado@linaro.org>
15081
15082 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
15083 <cond>: Change type to bool.
15084 (aarch64_displaced_step_b_cond): Update cond to use bool type.
15085 (aarch64_displaced_step_cb): Likewise.
15086 (aarch64_displaced_step_tb): Likewise.
15087
1ab139e5
LM
150882020-01-21 Luis Machado <luis.machado@linaro.org>
15089
15090 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
15091 output.
15092
0c271889
LM
150932020-01-21 Luis Machado <luis.machado@linaro.org>
15094
15095 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
15096 <pc_adjust>: Adjust the documentation.
15097 (aarch64_displaced_step_fixup): Check if PC really moved before
15098 adjusting it.
15099
4d89c1c7
TT
151002020-01-19 Tom Tromey <tom@tromey.com>
15101
15102 * disasm.c (~gdb_disassembler): New destructor.
15103 (gdb_buffered_insn_length): Call disassemble_free_target.
15104 * disasm.h (class gdb_disassembler): Declare destructor. Use
15105 DISABLE_COPY_AND_ASSIGN.
15106
c0ab21c2
TT
151072020-01-19 Tom Tromey <tom@tromey.com>
15108
15109 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
15110 (die_reader_func_ftype): Remove.
15111 (cutu_reader): New class.
15112 (dw2_get_file_names_reader): Remove "data" parameter.
15113 (dw2_get_file_names): Use cutu_reader.
15114 (create_debug_type_hash_table): Update.
15115 (read_cutu_die_from_dwo): Update comment.
15116 (lookup_dwo_unit): Add dwo_name parameter.
15117 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
15118 die_reader_func_ftype and data parameters.
15119 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
15120 Remove die_reader_func_ftype and data parameters.
15121 (~cutu_reader): New; from init_cutu_and_read_dies.
15122 (cutu_reader::cutu_reader): Rename from
15123 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
15124 and data parameters.
15125 (init_cutu_and_read_dies_simple): Remove.
15126 (struct process_psymtab_comp_unit_data): Remove.
15127 (process_psymtab_comp_unit_reader): Remove data parameter; add
15128 want_partial_unit and pretend_language parameters.
15129 (process_psymtab_comp_unit): Use cutu_reader.
15130 (build_type_psymtabs_reader): Remove data parameter.
15131 (build_type_psymtabs_1): Use cutu_reader.
15132 (process_skeletonless_type_unit): Likewise.
15133 (load_partial_comp_unit_reader): Remove.
15134 (load_partial_comp_unit): Use cutu_reader.
15135 (load_full_comp_unit_reader): Remove.
15136 (load_full_comp_unit): Use cutu_reader.
15137 (struct create_dwo_cu_data): Remove.
15138 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
15139 dwo_unit parameters.
15140 (create_cus_hash_table): Use cutu_reader.
15141 (struct dwarf2_read_addr_index_data): Remove.
15142 (dwarf2_read_addr_index_reader): Remove.
15143 (dwarf2_read_addr_index): Use cutu_reader.
15144 (read_signatured_type_reader): Remove.
15145 (read_signatured_type): Use cutu_reader.
15146
45bbae5c
TT
151472020-01-19 Tom Tromey <tom@tromey.com>
15148
15149 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
15150 * tui/tui-wingeneral.h (class tui_suppress_output): New.
15151 (tui_wrefresh): Declare.
15152 * tui/tui-wingeneral.c (suppress_output): New global.
15153 (tui_suppress_output, ~tui_suppress_output): New constructor and
15154 destructor.
15155 (tui_wrefresh): New function.
15156 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
15157 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
15158 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
15159 method.
15160 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
15161 tui_wrefresh.
15162 (tui_data_window::no_refresh): New method.
15163 (tui_data_item_window::refresh_window): Call tui_wrefresh.
15164 (tui_reg_command): Use tui_suppress_output
15165 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
15166 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
15167 method.
15168 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
15169
4f13c1c0
TT
151702020-01-19 Tom Tromey <tom@tromey.com>
15171
15172 * tui/tui-winsource.c (tui_update_source_windows_with_line):
15173 Handle case where symtab is null.
15174
fa47e446
SM
151752020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
15176
15177 * linux-fork.c (one_fork_p): Simplify.
15178
26f42329
SM
151792020-01-17 Simon Marchi <simon.marchi@efficios.com>
15180
15181 * top.c (struct qt_args): Remove.
15182 (kill_or_detach): Change return type to void, replace `void *`
15183 parameter with a proper one.
15184 (print_inferior_quit_action): Likewise.
15185 (quit_confirm): Use range-based for loop to iterate over inferiors.
15186 (quit_force): Likewise.
15187
a9ac81b1
SM
151882020-01-17 Simon Marchi <simon.marchi@efficios.com>
15189
15190 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
15191 `void *` parameter with proper parameters.
15192 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
15193 (print_one_inferior): Change return type to void, replace `void *`
15194 parameter with proper parameters.
15195 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
15196 inferiors.
15197 (get_other_inferior): Remove.
15198 (mi_cmd_remove_inferior): Use range-based loop to iterate over
15199 inferiors.
15200
788eca49
SM
152012020-01-17 Simon Marchi <simon.marchi@efficios.com>
15202
15203 * mi/mi-interp.c (report_initial_inferior): Remove.
15204 (mi_interp::init): Use range-based for to iterate over inferiors.
15205
d9bc85b6
SM
152062020-01-17 Simon Marchi <simon.marchi@efficios.com>
15207
15208 * python/py-inferior.c (build_inferior_list): Remove.
15209 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
15210
40c94099
CB
152112020-01-16 Christian Biesinger <cbiesinger@google.com>
15212
15213 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
15214 (btrace_stitch_trace): Likewise.
15215 * charset.c (intermediate_encoding): Likewise (vaild).
15216 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
15217 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
15218 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
15219
e0cdfe3c
HD
152202020-01-16 Hannes Domani <ssbssa@yahoo.de>
15221
15222 * windows-tdep.c (windows_get_tlb_type):
15223 Add rtl_user_process_parameters type.
15224
790f1718 152252020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 15226 Norbert Lange <nolange79@gmail.com>
790f1718
PA
15227
15228 PR build/24805
15229 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
15230 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
15231 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
15232 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
15233 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
15234 (ps_plog): Redeclare exported functions with default visibility.
15235
3112ed97
NA
152362020-01-16 Nitika Achra <Nitika.Achra@amd.com>
15237
15238 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
15239 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
15240
8dc3273e
SM
152412020-01-15 Simon Marchi <simon.marchi@efficios.com>
15242
15243 * infcmd.c (post_create_inferior): Use get_thread_regcache
15244 instead of get_current_regcache.
15245
ff47f4f0
TT
152462020-01-14 Tom Tromey <tom@tromey.com>
15247
15248 PR symtab/12535:
15249 * python/python.c (gdbpy_decode_line): Treat empty string the same
15250 as no argument.
15251
975f45b7
TT
152522020-01-14 Tom Tromey <tom@tromey.com>
15253
15254 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
15255
25e57356
TT
152562020-01-14 Tom Tromey <tom@tromey.com>
15257
15258 * nat/linux-btrace.c: Don't include <config.h>.
15259 * nat/linux-ptrace.c: Don't include <config.h>.
15260 * nat/x86-linux-dregs.c: Don't include <config.h>.
15261
05ea2a05
TT
152622020-01-14 Tom Tromey <tom@tromey.com>
15263
15264 * configure: Rebuild.
15265 * configure.ac: Move many checks to ../gdbsupport/common.m4.
15266
01027315
TT
152672020-01-14 Tom Tromey <tom@tromey.com>
15268
15269 * nat/x86-linux-dregs.c: Include configh.h.
15270 * nat/linux-ptrace.c: Include configh.h.
15271 * nat/linux-btrace.c: Include configh.h.
15272 * defs.h: Include config.h, bfd.h.
15273 * configure.ac: Don't source common.host.
15274 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
15275 * configure: Rebuild.
15276 * acinclude.m4: Update path.
15277 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
15278 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
15279 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
15280 (CLIBS): Add LIBSUPPORT.
15281 (CDEPS): Likewise.
15282 (COMMON_SFILES): Remove gdbsupport files.
15283 (HFILES_NO_SRCDIR): Likewise.
15284 (stamp-version): Update path to create-version.sh.
15285 (ALLDEPFILES): Remove gdbsupport files.
15286
b2ceabe8
TT
152872020-01-14 Tom Tromey <tom@tromey.com>
15288
15289 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
15290 USE_WIN32API when needed.
15291 * configure.ac (USE_WIN32API): Don't define.
15292 (WIN32LIBS): Use WIN32APILIBS.
15293 * configure: Rebuild.
15294
25c51f71
TT
152952020-01-14 Tom Tromey <tom@tromey.com>
15296
15297 * configure: Rebuild.
15298 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
15299
717c684d
BE
153002020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
15301
15302 * skip.c (skip_function_command): Make skip w/o arguments use the
15303 name of the inlined function if pc is inside any inlined function.
15304
7da6a5b9
LM
153052020-01-14 Luis Machado <luis.machado@linaro.org>
15306
15307 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
15308 * infrun.c (resume_1): Likewise.
15309 (handle_inferior_event): Remove stale comment.
15310 * linux-nat.c (linux_nat_target::resume): Update comments.
15311 (save_stop_reason): Likewise.
15312 (linux_nat_filter_event): Likewise.
15313 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
15314
44e4c775
AB
153152020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15316
15317 * elfread.c (record_minimal_symbol): Set section index to 0 for
15318 non-allocatable sections.
15319
18a8505e
AT
15320
153212020-01-13 Ali Tamur <tamur@google.com>
15322
15323 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
15324 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
15325 to gdb::optional. Update comments.
15326 (dwo_file): Update comments.
15327 (read_attribute): Update API to take an additional out parameter,
15328 need_reprocess. This is used to mark attributes that need other
15329 attributes (e.g. str_offsets_base) for correct computation which may not
15330 have been read yet.
15331 (read_attribute_reprocess): New function declaration.
15332 (read_addr_index): Likewise.
15333 (read_dwo_str_index): Likewise.
15334 (read_stub_str_index): Likewise.
15335 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
15336 (lookup_addr_base): New function definition.
15337 (lookup_ranges_base): Likewise.
15338 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
15339 lookup_ranges_base.
15340 (init_cutu_and_read_dies): Update comments.
15341 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
15342 unit. This is used to inherit parent's str_offsets_base and addr_base.
15343 Update comments.
15344 (init_cutu_and_read_dies_simple): Reflect API changes.
15345 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
15346 (create_cus_hash_table): Change API to take parent compile unit.
15347 Reflect API changes.
15348 (open_and_init_dwo_file): Reflect API changes.
15349 (dwarf2_get_pc_bounds): Update comments.
15350 (dwarf2_record_block_ranges): Likewise.
15351 (read_full_die_1): Change implementation to reprocess attributes that
15352 need str_offsets_base and addr_base.
15353 (partial_die_info::read): Likewise.
15354 (read_attribute_reprocess): New function definition.
15355 (read_attribute_value): Change API to take an additional out parameter,
15356 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
15357 when a non-dwo compile unit has index based attributes.
15358 (read_attribute): Reflect API changes.
15359 (read_addr_index_1): Reflect API changes. Update comments.
15360 (dwarf2_read_addr_index_data): Reflect API changes.
15361 (dwarf2_read_addr_index): Likewise.
15362 (read_str_index): Change API and implementation. This becomes a helper
15363 to be used by the new string index related methods. Update error
15364 message and comments.
15365 (read_dwo_str_index): New function definition.
15366 (read_stub_str_index): Likewise.
15367 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
15368 * symfile.h (dwarf2_debug_sections): Likewise.
15369 * xcoffread.c (dwarf2_debug_sections): Likewise.
15370
0cac9354
SM
153712020-01-13 Simon Marchi <simon.marchi@efficios.com>
15372
15373 * gdbcore.h (struct core_fns) <core_read_registers>: Change
15374 core_reg_sect type to gdb_byte *.
15375 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
15376 * cris-tdep.c (fetch_core_registers): Likewise.
15377 * corelow.c (core_target::get_core_register_section): Change
15378 type of `contents` to gdb::byte_vector.
15379
9a6d629c
AB
153802020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15381
15382 * tui/tui-wingeneral.c (box_win): Position the title in the center
15383 of the border.
15384
d8b2f9e3
SM
153852020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15386
15387 * corelow.c (core_target::get_core_register_section): Use
15388 std::vector instead of alloca.
15389
bb564c58
SM
153902020-01-13 Simon Marchi <simon.marchi@efficios.com>
15391
15392 * warning.m4: Add -Wmissing-declarations to build_warnings.
15393 * configure: Re-generate.
15394
6b366111
SM
153952020-01-13 Simon Marchi <simon.marchi@efficios.com>
15396
15397 * python/python.c (init__gdb_module): Add declaration.
15398
6c265988
SM
153992020-01-13 Simon Marchi <simon.marchi@efficios.com>
15400
15401 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
15402 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
15403 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
15404 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
15405 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
15406 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
15407 * ada-exp.y (_initialize_ada_exp): Add declaration.
15408 * ada-lang.c (_initialize_ada_language): Add declaration.
15409 * ada-tasks.c (_initialize_tasks): Add declaration.
15410 * agent.c (_initialize_agent): Add declaration.
15411 * aix-thread.c (_initialize_aix_thread): Add declaration.
15412 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
15413 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
15414 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
15415 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
15416 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
15417 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
15418 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
15419 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
15420 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
15421 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
15422 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
15423 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
15424 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
15425 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
15426 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
15427 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
15428 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
15429 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
15430 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
15431 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
15432 * annotate.c (_initialize_annotate): Add declaration.
15433 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
15434 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
15435 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
15436 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
15437 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
15438 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
15439 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
15440 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
15441 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
15442 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
15443 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
15444 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
15445 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
15446 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
15447 * auto-load.c (_initialize_auto_load): Add declaration.
15448 * auxv.c (_initialize_auxv): Add declaration.
15449 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
15450 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
15451 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
15452 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
15453 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
15454 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
15455 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
15456 * breakpoint.c (_initialize_breakpoint): Add declaration.
15457 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
15458 * btrace.c (_initialize_btrace): Add declaration.
15459 * charset.c (_initialize_charset): Add declaration.
15460 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
15461 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
15462 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
15463 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
15464 * cli/cli-script.c (_initialize_cli_script): Add declaration.
15465 * cli/cli-style.c (_initialize_cli_style): Add declaration.
15466 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
15467 * coffread.c (_initialize_coffread): Add declaration.
15468 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
15469 * compile/compile.c (_initialize_compile): Add declaration.
15470 * complaints.c (_initialize_complaints): Add declaration.
15471 * completer.c (_initialize_completer): Add declaration.
15472 * copying.c (_initialize_copying): Add declaration.
15473 * corefile.c (_initialize_core): Add declaration.
15474 * corelow.c (_initialize_corelow): Add declaration.
15475 * cp-abi.c (_initialize_cp_abi): Add declaration.
15476 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
15477 * cp-support.c (_initialize_cp_support): Add declaration.
15478 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
15479 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
15480 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
15481 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
15482 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
15483 * ctfread.c (_initialize_ctfread): Add declaration.
15484 * d-lang.c (_initialize_d_language): Add declaration.
15485 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
15486 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
15487 * dbxread.c (_initialize_dbxread): Add declaration.
15488 * dcache.c (_initialize_dcache): Add declaration.
15489 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
15490 * disasm.c (_initialize_disasm): Add declaration.
15491 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
15492 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
15493 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
15494 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
15495 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
15496 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
15497 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
15498 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
15499 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
15500 * elfread.c (_initialize_elfread): Add declaration.
15501 * exec.c (_initialize_exec): Add declaration.
15502 * extension.c (_initialize_extension): Add declaration.
15503 * f-lang.c (_initialize_f_language): Add declaration.
15504 * f-valprint.c (_initialize_f_valprint): Add declaration.
15505 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
15506 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
15507 * filesystem.c (_initialize_filesystem): Add declaration.
15508 * findcmd.c (_initialize_mem_search): Add declaration.
15509 * findvar.c (_initialize_findvar): Add declaration.
15510 * fork-child.c (_initialize_fork_child): Add declaration.
15511 * frame-base.c (_initialize_frame_base): Add declaration.
15512 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
15513 * frame.c (_initialize_frame): Add declaration.
15514 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
15515 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
15516 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
15517 * gcore.c (_initialize_gcore): Add declaration.
15518 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
15519 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
15520 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
15521 * gdbarch.c (_initialize_gdbarch): Add declaration.
15522 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
15523 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
15524 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
15525 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
15526 * go-lang.c (_initialize_go_language): Add declaration.
15527 * go32-nat.c (_initialize_go32_nat): Add declaration.
15528 * guile/guile.c (_initialize_guile): Add declaration.
15529 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
15530 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
15531 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
15532 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
15533 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
15534 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
15535 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
15536 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
15537 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
15538 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
15539 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
15540 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
15541 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
15542 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
15543 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
15544 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
15545 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
15546 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
15547 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
15548 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
15549 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
15550 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
15551 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
15552 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
15553 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
15554 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
15555 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
15556 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
15557 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
15558 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
15559 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
15560 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
15561 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
15562 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
15563 * infcall.c (_initialize_infcall): Add declaration.
15564 * infcmd.c (_initialize_infcmd): Add declaration.
15565 * inflow.c (_initialize_inflow): Add declaration.
15566 * infrun.c (_initialize_infrun): Add declaration.
15567 * interps.c (_initialize_interpreter): Add declaration.
15568 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
15569 * jit.c (_initialize_jit): Add declaration.
15570 * language.c (_initialize_language): Add declaration.
15571 * linux-fork.c (_initialize_linux_fork): Add declaration.
15572 * linux-nat.c (_initialize_linux_nat): Add declaration.
15573 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
15574 * linux-thread-db.c (_initialize_thread_db): Add declaration.
15575 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
15576 * m2-lang.c (_initialize_m2_language): Add declaration.
15577 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
15578 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
15579 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
15580 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
15581 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
15582 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
15583 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
15584 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
15585 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
15586 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
15587 * machoread.c (_initialize_machoread): Add declaration.
15588 * macrocmd.c (_initialize_macrocmd): Add declaration.
15589 * macroscope.c (_initialize_macroscope): Add declaration.
15590 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
15591 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
15592 * maint.c (_initialize_maint_cmds): Add declaration.
15593 * mdebugread.c (_initialize_mdebugread): Add declaration.
15594 * memattr.c (_initialize_mem): Add declaration.
15595 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
15596 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
15597 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
15598 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
15599 * mi/mi-main.c (_initialize_mi_main): Add declaration.
15600 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
15601 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
15602 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
15603 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
15604 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
15605 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
15606 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
15607 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
15608 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
15609 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
15610 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
15611 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
15612 * mipsread.c (_initialize_mipsread): Add declaration.
15613 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
15614 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
15615 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
15616 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
15617 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
15618 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
15619 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
15620 * nto-procfs.c (_initialize_procfs): Add declaration.
15621 * objc-lang.c (_initialize_objc_language): Add declaration.
15622 * observable.c (_initialize_observer): Add declaration.
15623 * opencl-lang.c (_initialize_opencl_language): Add declaration.
15624 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
15625 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
15626 * osabi.c (_initialize_gdb_osabi): Add declaration.
15627 * osdata.c (_initialize_osdata): Add declaration.
15628 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
15629 * parse.c (_initialize_parse): Add declaration.
15630 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
15631 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
15632 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
15633 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
15634 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
15635 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
15636 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
15637 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
15638 * printcmd.c (_initialize_printcmd): Add declaration.
15639 * probe.c (_initialize_probe): Add declaration.
15640 * proc-api.c (_initialize_proc_api): Add declaration.
15641 * proc-events.c (_initialize_proc_events): Add declaration.
15642 * proc-service.c (_initialize_proc_service): Add declaration.
15643 * procfs.c (_initialize_procfs): Add declaration.
15644 * producer.c (_initialize_producer): Add declaration.
15645 * psymtab.c (_initialize_psymtab): Add declaration.
15646 * python/python.c (_initialize_python): Add declaration.
15647 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
15648 * record-btrace.c (_initialize_record_btrace): Add declaration.
15649 * record-full.c (_initialize_record_full): Add declaration.
15650 * record.c (_initialize_record): Add declaration.
15651 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
15652 * regcache.c (_initialize_regcache): Add declaration.
15653 * reggroups.c (_initialize_reggroup): Add declaration.
15654 * remote-notif.c (_initialize_notif): Add declaration.
15655 * remote-sim.c (_initialize_remote_sim): Add declaration.
15656 * remote.c (_initialize_remote): Add declaration.
15657 * reverse.c (_initialize_reverse): Add declaration.
15658 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
15659 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
15660 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
15661 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
15662 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
15663 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
15664 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
15665 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
15666 Add declaration.
15667 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
15668 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
15669 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
15670 * rust-exp.y (_initialize_rust_exp): Add declaration.
15671 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
15672 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
15673 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
15674 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
15675 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
15676 * score-tdep.c (_initialize_score_tdep): Add declaration.
15677 * ser-go32.c (_initialize_ser_dos): Add declaration.
15678 * ser-mingw.c (_initialize_ser_windows): Add declaration.
15679 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
15680 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
15681 * ser-uds.c (_initialize_ser_socket): Add declaration.
15682 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
15683 * serial.c (_initialize_serial): Add declaration.
15684 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
15685 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
15686 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
15687 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
15688 * skip.c (_initialize_step_skip): Add declaration.
15689 * sol-thread.c (_initialize_sol_thread): Add declaration.
15690 * solib-aix.c (_initialize_solib_aix): Add declaration.
15691 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
15692 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
15693 * solib-frv.c (_initialize_frv_solib): Add declaration.
15694 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
15695 * solib-target.c (_initialize_solib_target): Add declaration.
15696 * solib.c (_initialize_solib): Add declaration.
15697 * source-cache.c (_initialize_source_cache): Add declaration.
15698 * source.c (_initialize_source): Add declaration.
15699 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
15700 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
15701 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
15702 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
15703 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
15704 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
15705 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
15706 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
15707 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
15708 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
15709 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
15710 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
15711 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
15712 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
15713 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
15714 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
15715 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
15716 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
15717 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
15718 * stabsread.c (_initialize_stabsread): Add declaration.
15719 * stack.c (_initialize_stack): Add declaration.
15720 * stap-probe.c (_initialize_stap_probe): Add declaration.
15721 * std-regs.c (_initialize_frame_reg): Add declaration.
15722 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
15723 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
15724 * symfile.c (_initialize_symfile): Add declaration.
15725 * symmisc.c (_initialize_symmisc): Add declaration.
15726 * symtab.c (_initialize_symtab): Add declaration.
15727 * target.c (_initialize_target): Add declaration.
15728 * target-connection.c (_initialize_target_connection): Add
15729 declaration.
15730 * target-dcache.c (_initialize_target_dcache): Add declaration.
15731 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
15732 * thread.c (_initialize_thread): Add declaration.
15733 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
15734 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
15735 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
15736 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
15737 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
15738 * tracectf.c (_initialize_ctf): Add declaration.
15739 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
15740 * tracefile.c (_initialize_tracefile): Add declaration.
15741 * tracepoint.c (_initialize_tracepoint): Add declaration.
15742 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
15743 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
15744 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
15745 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
15746 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
15747 * tui/tui-win.c (_initialize_tui_win): Add declaration.
15748 * tui/tui.c (_initialize_tui): Add declaration.
15749 * typeprint.c (_initialize_typeprint): Add declaration.
15750 * ui-style.c (_initialize_ui_style): Add declaration.
15751 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
15752 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
15753 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
15754 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
15755 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
15756 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
15757 * unittests/filtered_iterator-selftests.c
15758 (_initialize_filtered_iterator_selftests): Add declaration.
15759 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
15760 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
15761 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
15762 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
15763 * unittests/main-thread-selftests.c
15764 (_initialize_main_thread_selftests): Add declaration.
15765 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
15766 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
15767 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
15768 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
15769 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
15770 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
15771 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
15772 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
15773 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
15774 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
15775 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
15776 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
15777 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
15778 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
15779 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
15780 declaration.
15781 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
15782 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
15783 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
15784 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
15785 * user-regs.c (_initialize_user_regs): Add declaration.
15786 * utils.c (_initialize_utils): Add declaration.
15787 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
15788 * valops.c (_initialize_valops): Add declaration.
15789 * valprint.c (_initialize_valprint): Add declaration.
15790 * value.c (_initialize_values): Add declaration.
15791 * varobj.c (_initialize_varobj): Add declaration.
15792 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
15793 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
15794 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
15795 * windows-nat.c (_initialize_windows_nat): Add declaration.
15796 (_initialize_check_for_gdb_ini): Add declaration.
15797 (_initialize_loadable): Add declaration.
15798 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
15799 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
15800 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
15801 * xcoffread.c (_initialize_xcoffread): Add declaration.
15802 * xml-support.c (_initialize_xml_support): Add declaration.
15803 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
15804 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
15805 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
15806 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
15807
e2de1eec
SM
158082020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15809
15810 * regformats/regdat.sh: Generate declaration for init function.
15811
e0037b4c
SM
158122020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15813
15814 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
15815 up.
15816 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
15817 close_one_inferior>: New methods.
15818 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
15819 pass down target to find_inferior_pid.
15820 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
15821 Pass down target to find_inferior_ptid.
15822 (gdbsim_target::create_inferior): Pass down target to
15823 add_thread_silent.
15824 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
15825 target down to find_inferior_ptid and switch_to_thread.
15826 (gdbsim_target::close): Update to call close_one_inferior.
15827 (struct resume_data): Remove.
15828 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
15829 directly, rather than through a void pointer.
15830 (gdbsim_target::resume): Update to call resume_one_inferior.
15831
58920b5b
SM
158322020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
15833
15834 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
15835
4ec89149
PA
158362020-01-12 Pedro Alves <palves@redhat.com>
15837
15838 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
15839 directly for the current inferior instead of
15840 discard_all_inferiors.
15841 (discard_all_inferiors): Delete.
15842
7c392d1d
TT
158432020-01-11 Tom Tromey <tom@tromey.com>
15844
15845 * tui/tui-wingeneral.c (box_win): Check cli_styling.
15846 * tui/tui-winsource.c (tui_source_window_base::refill): Use
15847 deprecated_safe_get_selected_frame.
15848
d9ebdab7
TBA
158492020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
15850
15851 * inferior.c (print_inferior): Switch inferior before printing it.
15852
f3c469b9
PA
158532020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
15854 Pedro Alves <palves@redhat.com>
15855
15856 * progspace-and-thread.c (switch_to_program_space_and_thread):
15857 Assert there's an inferior for PSPACE. Use
15858 switch_to_inferior_no_thread to switch the inferior too.
15859 * progspace.c (program_space::~program_space): Call
15860 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
15861 (program_space::free_all_objfiles): Don't call clear_symtab_users
15862 here.
15863 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
15864
65c574f6
PA
158652020-01-10 Pedro Alves <palves@redhat.com>
15866
15867 * NEWS: Mention multi-target debugging, "info connections", and
15868 "add-inferior -no-connection".
15869
2f4fcf00
PA
158702020-01-10 Pedro Alves <palves@redhat.com>
15871
15872 * infrun.c: Include "target-connection.h".
15873 (check_multi_target_resumption): New.
15874 (proceed): Call it.
15875 * target-connection.c (make_target_connection_string): Make
15876 extern.
15877 * target-connection.h (make_target_connection_string): Declare.
15878
121b3efd
PA
158792020-01-10 Pedro Alves <palves@redhat.com>
15880
15881 * Makefile.in (COMMON_SFILES): Add target-connection.c.
15882 * inferior.c (uiout_field_connection): New function.
15883 (print_inferior): Add new "connection-id" column.
15884 (add_inferior_command): Show connection number/string of added
15885 inferior.
15886 * process-stratum-target.h
15887 (process_stratum_target::connection_string): New virtual method.
15888 (process_stratum_target::connection_number): New field.
15889 * remote.c (remote_target::connection_string): New override.
15890 * target-connection.c: New file.
15891 * target-connection.h: New file.
15892 * target.c (decref_target): Remove process_stratum targets from
15893 the connection list.
15894 (target_stack::push): Add process_stratum targets to the
15895 connection list.
15896
4f837581
PA
158972020-01-10 Pedro Alves <palves@redhat.com>
15898
15899 Revert:
15900 2016-04-12 Pedro Alves <palves@redhat.com>
15901 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
15902 Remove references to name.
15903 * serial.h (struct serial) <name>: Delete.
15904
f4ec508e
PA
159052020-01-10 Pedro Alves <palves@redhat.com>
15906
15907 * gdbarch-selftests.c (register_to_value_test): Remove "target
15908 already pushed" check.
15909
5b6d1e4f
PA
159102020-01-10 Pedro Alves <palves@redhat.com>
15911 John Baldwin <jhb@FreeBSD.org>
15912
15913 * aarch64-linux-nat.c
15914 (aarch64_linux_nat_target::thread_architecture): Adjust.
15915 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
15916 (task_command_1): Likewise.
15917 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
15918 (aix_thread_target::wait, aix_thread_target::fetch_registers)
15919 (aix_thread_target::store_registers)
15920 (aix_thread_target::thread_alive): Adjust.
15921 * amd64-fbsd-tdep.c: Include "inferior.h".
15922 (amd64fbsd_get_thread_local_address): Pass down target.
15923 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
15924 thread's gdbarch instead of target_gdbarch.
15925 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
15926 get_last_target_status.
15927 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
15928 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
15929 inferiors.
15930 (update_inserted_breakpoint_locations): Skip if inferiors with no
15931 execution.
15932 (update_global_location_list): When handling moribund locations,
15933 find representative inferior for location's pspace, and use thread
15934 count of its process_stratum target.
15935 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
15936 * bsd-uthread.c (bsd_uthread_target::wait): Use
15937 as_process_stratum_target and adjust thread_change_ptid and
15938 add_thread calls.
15939 (bsd_uthread_target::update_thread_list): Use
15940 as_process_stratum_target and adjust find_thread_ptid,
15941 thread_change_ptid and add_thread calls.
15942 * btrace.c (maint_btrace_packet_history_cmd): Adjust
15943 find_thread_ptid call.
15944 * corelow.c (add_to_thread_list): Adjust add_thread call.
15945 (core_target_open): Adjust add_thread_silent and thread_count
15946 calls.
15947 (core_target::pid_to_str): Adjust find_inferior_ptid call.
15948 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
15949 * event-top.c (async_disconnect): Pop targets from all inferiors.
15950 * exec.c (add_target_sections): Push exec target on all inferiors
15951 sharing the program space.
15952 (remove_target_sections): Remove the exec target from all
15953 inferiors sharing the program space.
15954 (exec_on_vfork): New.
15955 * exec.h (exec_on_vfork): Declare.
15956 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
15957 Pass it down.
15958 (fbsd_nat_target::update_thread_list): Adjust.
15959 (fbsd_nat_target::resume): Adjust.
15960 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
15961 down.
15962 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
15963 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
15964 get_thread_arch_regcache call.
15965 * fork-child.c (gdb_startup_inferior): Pass target down to
15966 startup_inferior and set_executing.
15967 * gdbthread.h (struct process_stratum_target): Forward declare.
15968 (add_thread, add_thread_silent, add_thread_with_info)
15969 (in_thread_list): Add process_stratum_target parameter.
15970 (find_thread_ptid(inferior*, ptid_t)): New overload.
15971 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
15972 parameter.
15973 (all_threads()): Delete overload.
15974 (all_threads, all_non_exited_threads): Add process_stratum_target
15975 parameter.
15976 (all_threads_safe): Use brace initialization.
15977 (thread_count): Add process_stratum_target parameter.
15978 (set_resumed, set_running, set_stop_requested, set_executing)
15979 (threads_are_executing, finish_thread_state): Add
15980 process_stratum_target parameter.
15981 (switch_to_thread): Use is_current_thread.
15982 * i386-fbsd-tdep.c: Include "inferior.h".
15983 (i386fbsd_get_thread_local_address): Pass down target.
15984 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
15985 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
15986 have_inferiors check.
15987 * inf-ptrace.c (inf_ptrace_target::create_inferior)
15988 (inf_ptrace_target::attach): Adjust.
15989 * infcall.c (run_inferior_call): Adjust.
15990 * infcmd.c (run_command_1): Pass target to
15991 scoped_finish_thread_state.
15992 (proceed_thread_callback): Skip inferiors with no execution.
15993 (continue_command): Rename 'all_threads' local to avoid hiding
15994 'all_threads' function. Adjust get_last_target_status call.
15995 (prepare_one_step): Adjust set_running call.
15996 (signal_command): Use user_visible_resume_target. Compare thread
15997 pointers instead of inferior_ptid.
15998 (info_program_command): Adjust to pass down target.
15999 (attach_command): Mark target's 'thread_executing' flag.
16000 (stop_current_target_threads_ns): New, factored out from ...
16001 (interrupt_target_1): ... this. Switch inferior before making
16002 target calls.
16003 * inferior-iter.h
16004 (struct all_inferiors_iterator, struct all_inferiors_range)
16005 (struct all_inferiors_safe_range)
16006 (struct all_non_exited_inferiors_range): Filter on
16007 process_stratum_target too. Remove explicit.
16008 * inferior.c (inferior::inferior): Push dummy target on target
16009 stack.
16010 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
16011 Add process_stratum_target parameter, and pass it down.
16012 (have_live_inferiors): Adjust.
16013 (switch_to_inferior_and_push_target): New.
16014 (add_inferior_command, clone_inferior_command): Handle
16015 "-no-connection" parameter. Use
16016 switch_to_inferior_and_push_target.
16017 (_initialize_inferior): Mention "-no-connection" option in
16018 the help of "add-inferior" and "clone-inferior" commands.
16019 * inferior.h: Include "process-stratum-target.h".
16020 (interrupt_target_1): Use bool.
16021 (struct inferior) <push_target, unpush_target, target_is_pushed,
16022 find_target_beneath, top_target, process_target, target_at,
16023 m_stack>: New.
16024 (discard_all_inferiors): Delete.
16025 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
16026 (all_inferiors, all_non_exited_inferiors): Add
16027 process_stratum_target parameter.
16028 * infrun.c: Include "gdb_select.h" and <unordered_map>.
16029 (target_last_proc_target): New global.
16030 (follow_fork_inferior): Push target on new inferior. Pass target
16031 to add_thread_silent. Call exec_on_vfork. Handle target's
16032 reference count.
16033 (follow_fork): Adjust get_last_target_status call. Also consider
16034 target.
16035 (follow_exec): Push target on new inferior.
16036 (struct execution_control_state) <target>: New field.
16037 (user_visible_resume_target): New.
16038 (do_target_resume): Call target_async.
16039 (resume_1): Set target's threads_executing flag. Consider resume
16040 target.
16041 (commit_resume_all_targets): New.
16042 (proceed): Also consider resume target. Skip threads of inferiors
16043 with no execution. Commit resumtion in all targets.
16044 (start_remote): Pass current inferior to wait_for_inferior.
16045 (infrun_thread_stop_requested): Consider target as well. Pass
16046 thread_info pointer to clear_inline_frame_state instead of ptid.
16047 (infrun_thread_thread_exit): Consider target as well.
16048 (random_pending_event_thread): New inferior parameter. Use it.
16049 (do_target_wait): Rename to ...
16050 (do_target_wait_1): ... this. Add inferior parameter, and pass it
16051 down.
16052 (threads_are_resumed_pending_p, do_target_wait): New.
16053 (prepare_for_detach): Adjust calls.
16054 (wait_for_inferior): New inferior parameter. Handle it. Use
16055 do_target_wait_1 instead of do_target_wait.
16056 (fetch_inferior_event): Adjust. Switch to representative
16057 inferior. Pass target down.
16058 (set_last_target_status): Add process_stratum_target parameter.
16059 Save target in global.
16060 (get_last_target_status): Add process_stratum_target parameter and
16061 handle it.
16062 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
16063 (context_switch): Check inferior_ptid == null_ptid before calling
16064 inferior_thread().
16065 (get_inferior_stop_soon): Pass down target.
16066 (wait_one): Rename to ...
16067 (poll_one_curr_target): ... this.
16068 (struct wait_one_event): New.
16069 (wait_one): New.
16070 (stop_all_threads): Adjust.
16071 (handle_no_resumed, handle_inferior_event): Adjust to consider the
16072 event's target.
16073 (switch_back_to_stepped_thread): Also consider target.
16074 (print_stop_event): Update.
16075 (normal_stop): Update. Also consider the resume target.
16076 * infrun.h (wait_for_inferior): Remove declaration.
16077 (user_visible_resume_target): New declaration.
16078 (get_last_target_status, set_last_target_status): New
16079 process_stratum_target parameter.
16080 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16081 process_stratum_target parameter, and use it.
16082 (clear_inline_frame_state (thread_info*)): New.
16083 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16084 process_stratum_target parameter.
16085 (clear_inline_frame_state (thread_info*)): Declare.
16086 * linux-fork.c (delete_checkpoint_command): Pass target down to
16087 find_thread_ptid.
16088 (checkpoint_command): Adjust.
16089 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
16090 instead of just tweaking inferior_ptid.
16091 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
16092 (exit_lwp): Pass target down to find_thread_ptid.
16093 (attach_proc_task_lwp_callback): Pass target down to
16094 add_thread/set_running/set_executing.
16095 (linux_nat_target::attach): Pass target down to
16096 thread_change_ptid.
16097 (get_detach_signal): Pass target down to find_thread_ptid.
16098 Consider last target status's target.
16099 (linux_resume_one_lwp_throw, resume_lwp)
16100 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
16101 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
16102 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
16103 (linux_nat_target::async_wait_fd): New.
16104 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
16105 target down.
16106 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
16107 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
16108 * linux-thread-db.c (struct thread_db_info::process_target): New
16109 field.
16110 (add_thread_db_info): Save target.
16111 (get_thread_db_info): New process_stratum_target parameter. Also
16112 match target.
16113 (delete_thread_db_info): New process_stratum_target parameter.
16114 Also match target.
16115 (thread_from_lwp): Adjust to pass down target.
16116 (thread_db_notice_clone): Pass down target.
16117 (check_thread_db_callback): Pass down target.
16118 (try_thread_db_load_1): Always push the thread_db target.
16119 (try_thread_db_load, record_thread): Pass target down.
16120 (thread_db_target::detach): Pass target down. Always unpush the
16121 thread_db target.
16122 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
16123 target down. Always unpush the thread_db target.
16124 (find_new_threads_callback, thread_db_find_new_threads_2)
16125 (thread_db_target::update_thread_list): Pass target down.
16126 (thread_db_target::pid_to_str): Pass current inferior down.
16127 (thread_db_target::get_thread_local_address): Pass target down.
16128 (thread_db_target::resume, maintenance_check_libthread_db): Pass
16129 target down.
16130 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
16131 * procfs.c (procfs_target::procfs_init_inferior): Declare.
16132 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
16133 (procfs_init_inferior): Rename to ...
16134 (procfs_target::procfs_init_inferior): ... this and adjust.
16135 (procfs_target::create_inferior, procfs_notice_thread)
16136 (procfs_do_thread_registers): Adjust.
16137 * ppc-fbsd-tdep.c: Include "inferior.h".
16138 (ppcfbsd_get_thread_local_address): Pass down target.
16139 * proc-service.c (ps_xfer_memory): Switch current inferior and
16140 program space as well.
16141 (get_ps_regcache): Pass target down.
16142 * process-stratum-target.c
16143 (process_stratum_target::thread_address_space)
16144 (process_stratum_target::thread_architecture): Pass target down.
16145 * process-stratum-target.h
16146 (process_stratum_target::threads_executing): New field.
16147 (as_process_stratum_target): New.
16148 * ravenscar-thread.c
16149 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
16150 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
16151 down.
16152 * record-btrace.c (record_btrace_target::info_record): Adjust.
16153 (record_btrace_target::record_method)
16154 (record_btrace_target::record_is_replaying)
16155 (record_btrace_target::fetch_registers)
16156 (get_thread_current_frame_id, record_btrace_target::resume)
16157 (record_btrace_target::wait, record_btrace_target::stop): Pass
16158 target down.
16159 * record-full.c (record_full_wait_1): Switch to event thread.
16160 Pass target down.
16161 * regcache.c (regcache::regcache)
16162 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
16163 process_stratum_target parameter and handle it.
16164 (current_thread_target): New global.
16165 (get_thread_regcache): Add process_stratum_target parameter and
16166 handle it. Switch inferior before calling target method.
16167 (get_thread_regcache): Pass target down.
16168 (get_thread_regcache_for_ptid): Pass target down.
16169 (registers_changed_ptid): Add process_stratum_target parameter and
16170 handle it.
16171 (registers_changed_thread, registers_changed): Pass target down.
16172 (test_get_thread_arch_aspace_regcache): New.
16173 (current_regcache_test): Define a couple local test_target_ops
16174 instances and use them for testing.
16175 (readwrite_regcache): Pass process_stratum_target parameter.
16176 (cooked_read_test, cooked_write_test): Pass mock_target down.
16177 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
16178 (get_thread_arch_aspace_regcache): Add process_stratum_target
16179 parameter.
16180 (regcache::target): New method.
16181 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
16182 (regcache::registers_changed_ptid): Add process_stratum_target
16183 parameter.
16184 (regcache::m_target): New field.
16185 (registers_changed_ptid): Add process_stratum_target parameter.
16186 * remote.c (remote_state::supports_vCont_probed): New field.
16187 (remote_target::async_wait_fd): New method.
16188 (remote_unpush_and_throw): Add remote_target parameter.
16189 (get_current_remote_target): Adjust.
16190 (remote_target::remote_add_inferior): Push target.
16191 (remote_target::remote_add_thread)
16192 (remote_target::remote_notice_new_inferior)
16193 (get_remote_thread_info): Pass target down.
16194 (remote_target::update_thread_list): Skip threads of inferiors
16195 bound to other targets. (remote_target::close): Don't discard
16196 inferiors. (remote_target::add_current_inferior_and_thread)
16197 (remote_target::process_initial_stop_replies)
16198 (remote_target::start_remote)
16199 (remote_target::remote_serial_quit_handler): Pass down target.
16200 (remote_target::remote_unpush_target): New remote_target
16201 parameter. Unpush the target from all inferiors.
16202 (remote_target::remote_unpush_and_throw): New remote_target
16203 parameter. Pass it down.
16204 (remote_target::open_1): Check whether the current inferior has
16205 execution instead of checking whether any inferior is live. Pass
16206 target down.
16207 (remote_target::remote_detach_1): Pass down target. Use
16208 remote_unpush_target.
16209 (extended_remote_target::attach): Pass down target.
16210 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
16211 (remote_target::append_resumption): Pass down target.
16212 (remote_target::append_pending_thread_resumptions)
16213 (remote_target::remote_resume_with_hc, remote_target::resume)
16214 (remote_target::commit_resume): Pass down target.
16215 (remote_target::remote_stop_ns): Check supports_vCont_probed.
16216 (remote_target::interrupt_query)
16217 (remote_target::remove_new_fork_children)
16218 (remote_target::check_pending_events_prevent_wildcard_vcont)
16219 (remote_target::remote_parse_stop_reply)
16220 (remote_target::process_stop_reply): Pass down target.
16221 (first_remote_resumed_thread): New remote_target parameter. Pass
16222 it down.
16223 (remote_target::wait_as): Pass down target.
16224 (unpush_and_perror): New remote_target parameter. Pass it down.
16225 (remote_target::readchar, remote_target::remote_serial_write)
16226 (remote_target::getpkt_or_notif_sane_1)
16227 (remote_target::kill_new_fork_children, remote_target::kill): Pass
16228 down target.
16229 (remote_target::mourn_inferior): Pass down target. Use
16230 remote_unpush_target.
16231 (remote_target::core_of_thread)
16232 (remote_target::remote_btrace_maybe_reopen): Pass down target.
16233 (remote_target::pid_to_exec_file)
16234 (remote_target::thread_handle_to_thread_info): Pass down target.
16235 (remote_target::async_wait_fd): New.
16236 * riscv-fbsd-tdep.c: Include "inferior.h".
16237 (riscv_fbsd_get_thread_local_address): Pass down target.
16238 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
16239 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
16240 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
16241 Adjust.
16242 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
16243 * solib-svr4.c (enable_break): Pass down target.
16244 * spu-multiarch.c (parse_spufs_run): Pass down target.
16245 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
16246 * target-delegates.c: Regenerate.
16247 * target.c (g_target_stack): Delete.
16248 (current_top_target): Return the current inferior's top target.
16249 (target_has_execution_1): Refer to the passed-in inferior's top
16250 target.
16251 (target_supports_terminal_ours): Check whether the initial
16252 inferior was already created.
16253 (decref_target): New.
16254 (target_stack::push): Incref/decref the target.
16255 (push_target, push_target, unpush_target): Adjust.
16256 (target_stack::unpush): Defref target.
16257 (target_is_pushed): Return bool. Adjust to refer to the current
16258 inferior's target stack.
16259 (dispose_inferior): Delete, and inline parts ...
16260 (target_preopen): ... here. Only dispose of the current inferior.
16261 (target_detach): Hold strong target reference while detaching.
16262 Pass target down.
16263 (target_thread_name): Add assertion.
16264 (target_resume): Pass down target.
16265 (target_ops::beneath, find_target_at): Adjust to refer to the
16266 current inferior's target stack.
16267 (get_dummy_target): New.
16268 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
16269 has a thread running.
16270 (initialize_targets): Rename to ...
16271 (_initialize_target): ... this.
16272 * target.h: Include "gdbsupport/refcounted-object.h".
16273 (struct target_ops): Inherit refcounted_object.
16274 (target_ops::shortname, target_ops::longname): Make const.
16275 (target_ops::async_wait_fd): New method.
16276 (decref_target): Declare.
16277 (struct target_ops_ref_policy): New.
16278 (target_ops_ref): New typedef.
16279 (get_dummy_target): Declare function.
16280 (target_is_pushed): Return bool.
16281 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
16282 (all_matching_threads_iterator::all_matching_threads_iterator):
16283 Handle filter target.
16284 * thread-iter.h (struct all_matching_threads_iterator, struct
16285 all_matching_threads_range, class all_non_exited_threads_range):
16286 Filter by target too. Remove explicit.
16287 * thread.c (threads_executing): Delete.
16288 (inferior_thread): Pass down current inferior.
16289 (clear_thread_inferior_resources): Pass down thread pointer
16290 instead of ptid_t.
16291 (add_thread_silent, add_thread_with_info, add_thread): Add
16292 process_stratum_target parameter. Use it for thread and inferior
16293 searches.
16294 (is_current_thread): New.
16295 (thread_info::deletable): Use it.
16296 (find_thread_ptid, thread_count, in_thread_list)
16297 (thread_change_ptid, set_resumed, set_running): New
16298 process_stratum_target parameter. Pass it down.
16299 (set_executing): New process_stratum_target parameter. Pass it
16300 down. Adjust reference to 'threads_executing'.
16301 (threads_are_executing): New process_stratum_target parameter.
16302 Adjust reference to 'threads_executing'.
16303 (set_stop_requested, finish_thread_state): New
16304 process_stratum_target parameter. Pass it down.
16305 (switch_to_thread): Also match inferior.
16306 (switch_to_thread): New process_stratum_target parameter. Pass it
16307 down.
16308 (update_threads_executing): Reimplement.
16309 * top.c (quit_force): Pop targets from all inferior.
16310 (gdb_init): Don't call initialize_targets.
16311 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
16312 Declare.
16313 (windows_add_thread, windows_delete_thread): Adjust.
16314 (get_windows_debug_event): Rename to ...
16315 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
16316 * tracefile-tfile.c (tfile_target_open): Pass down target.
16317 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
16318 Forward declare.
16319 (switch_to_thread): Add process_stratum_target parameter.
16320 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
16321 parameter. Use it.
16322 (mi_on_resume): Pass target down.
16323 * nat/fork-inferior.c (startup_inferior): Add
16324 process_stratum_target parameter. Pass it down.
16325 * nat/fork-inferior.h (startup_inferior): Add
16326 process_stratum_target parameter.
16327 * python/py-threadevent.c (py_get_event_thread): Pass target down.
16328
75c6c844
PA
163292020-01-10 Pedro Alves <palves@redhat.com>
16330
16331 * remote.c (remote_target::start_remote): Don't set inferior_ptid
16332 directly. Instead find the first thread in the thread list and
16333 use switch_to_thread.
16334
78f2c40a
PA
163352020-01-10 Pedro Alves <palves@redhat.com>
16336
16337 * remote.c (remote_target::remote_add_inferior): Don't bind a
16338 process to the current inferior if the current inferior is already
16339 bound to a process.
16340
e7af6c70
TBA
163412020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16342 Pedro Alves <palves@redhat.com>
16343
16344 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
16345 If no process is specified, return null_ptid instead of
16346 inferior_ptid.
16347 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
16348 TARGET_WAITKIND_SIGNALLED with no pid.
16349
31ba933e
PA
163502020-01-10 Pedro Alves <palves@redhat.com>
16351
16352 * remote.c (first_remote_resumed_thread): New.
16353 (remote_target::wait_as): Use it as default event_ptid instead of
16354 inferior_ptid.
16355
735fc2ca
PA
163562020-01-10 Pedro Alves <palves@redhat.com>
16357
16358 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
16359
c17e02e1
PA
163602020-01-10 Pedro Alves <palves@redhat.com>
16361
16362 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
16363 not -1.
16364
ab1ddbcf
PA
163652020-01-10 Pedro Alves <palves@redhat.com>
16366
16367 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
16368 ptid to get_last_target_status.
16369 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
16370 ptid to get_last_target_status.
16371 * infcmd.c (continue_command): Don't pass a target_waitstatus to
16372 get_last_target_status.
16373 (info_program_command): Don't pass a target_waitstatus to
16374 get_last_target_status.
16375 * infrun.c (init_wait_for_inferior): Use
16376 nullify_last_target_wait_ptid.
16377 (get_last_target_status): Handle nullptr arguments.
16378 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
16379 (print_stop_event): Don't pass a ptid to get_last_target_status.
16380 (normal_stop): Don't pass a ptid to get_last_target_status.
16381 * infrun.h (get_last_target_status, set_last_target_status): Move
16382 comments here and update.
16383 (nullify_last_target_wait_ptid): Declare.
16384 * linux-fork.c (fork_load_infrun_state): Remove local extern
16385 declaration of nullify_last_target_wait_ptid.
16386 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
16387 to get_last_target_status.
16388
f3f8ece4
PA
163892020-01-10 Pedro Alves <palves@redhat.com>
16390
16391 * gdbthread.h (scoped_restore_current_thread)
16392 <dont_restore, restore, m_dont_restore>: Declare.
16393 * thread.c (thread_alive): Add assertion. Return bool.
16394 (switch_to_thread_if_alive): New.
16395 (prune_threads): Switch inferior/thread.
16396 (print_thread_info_1): Switch thread before calling target methods.
16397 (scoped_restore_current_thread::restore): New, factored out from
16398 ...
16399 (scoped_restore_current_thread::~scoped_restore_current_thread):
16400 ... this.
16401 (scoped_restore_current_thread::scoped_restore_current_thread):
16402 Add assertion.
16403 (thread_apply_all_command, thread_select): Use
16404 switch_to_thread_if_alive.
16405 * infrun.c (proceed, restart_threads, handle_signal_stop)
16406 (switch_back_to_stepped_thread): Switch current thread before
16407 calling target methods.
16408
db2d40f7
PA
164092020-01-10 Pedro Alves <palves@redhat.com>
16410
16411 * inferior.c (switch_to_inferior_no_thread): New function,
16412 factored out from ...
16413 (inferior_command): ... here.
16414 * inferior.h (switch_to_inferior_no_thread): Declare.
16415 * mi/mi-main.c (run_one_inferior): Use
16416 switch_to_inferior_no_thread.
16417
bd420a2d
PA
164182020-01-10 Pedro Alves <palves@redhat.com>
16419
16420 * infcmd.c (kill_command): Remove dead code.
16421
ddf5db90
PA
164222020-01-10 Pedro Alves <palves@redhat.com>
16423
16424 * remote.c (remote_target::mourn_inferior): No longer check
16425 whether the target is running.
16426
5018ce90
PA
164272020-01-10 Pedro Alves <palves@redhat.com>
16428
16429 * corelow.c (core_target::has_execution): Change parameter type to
16430 inferior pointer.
16431 * inferior.c (number_of_live_inferiors): Use
16432 inferior::has_execution instead of target_has_execution_1.
16433 * inferior.h (inferior::has_execution): New.
16434 * linux-thread-db.c (thread_db_target::update_thread_list): Use
16435 inferior::has_execution instead of target_has_execution_1.
16436 * process-stratum-target.c
16437 (process_stratum_target::has_execution): Change parameter type to
16438 inferior pointer. Check the inferior's PID instead of
16439 inferior_ptid.
16440 * process-stratum-target.h
16441 (process_stratum_target::has_execution): Change parameter type to
16442 inferior pointer.
16443 * record-full.c (record_full_core_target::has_execution): Change
16444 parameter type to inferior pointer.
16445 * target.c (target_has_execution_1): Change parameter type to
16446 inferior pointer.
16447 (target_has_execution_current): Adjust.
16448 * target.h (target_ops::has_execution): Change parameter type to
16449 inferior pointer.
16450 (target_has_execution_1): Change parameter type to inferior
16451 pointer. Change return type to bool.
16452 * tracefile.h (tracefile_target::has_execution): Change parameter
16453 type to inferior pointer.
16454
74375d18
PA
164552020-01-10 Pedro Alves <palves@redhat.com>
16456
16457 * exceptions.c (print_flush): Remove current_top_target() check.
16458
acdf84a6
PA
164592020-01-10 Pedro Alves <palves@redhat.com>
16460
16461 * remote.c (show_remote_exec_file): Show the current inferior's
16462 exec-file instead of the command variable's value.
16463
ec506636
PA
164642020-01-10 Pedro Alves <palves@redhat.com>
16465
16466 * record-full.c (record_full_resume_ptid): New global.
16467 (record_full_target::resume): Set it.
16468 (record_full_wait_1): Use record_full_resume_ptid instead of
16469 inferior_ptid.
16470
873657b9
PA
164712020-01-10 Pedro Alves <palves@redhat.com>
16472
16473 * gdbthread.h (scoped_restore_current_thread)
16474 <dont_restore, restore, m_dont_restore>: Declare.
16475 * thread.c (thread_alive): Add assertion. Return bool.
16476 (switch_to_thread_if_alive): New.
16477 (prune_threads): Switch inferior/thread.
16478 (print_thread_info_1): Switch thread before calling target methods.
16479 (scoped_restore_current_thread::restore): New, factored out from
16480 ...
16481 (scoped_restore_current_thread::~scoped_restore_current_thread):
16482 ... this.
16483 (scoped_restore_current_thread::scoped_restore_current_thread):
16484 Add assertion.
16485 (thread_apply_all_command, thread_select): Use
16486 switch_to_thread_if_alive.
16487
7f0ae84c
GB
164882020-01-10 George Barrett <bob@bob131.so>
16489
16490 * stap-probe.c (stap_modify_semaphore): Don't check for null
16491 semaphores.
16492 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
16493 for null semaphores.
16494
f5a7c406
AB
164952020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16496
16497 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
16498 all source windows, and maintain horizontal scroll status while
16499 doing so.
16500
9ae6bf64
TT
165012020-01-09 Tom Tromey <tom@tromey.com>
16502
16503 PR tui/18932:
16504 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
16505 update_source_window, not print_source_lines.
16506
b2efe70c
AB
165072020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16508
16509 * tui/tui.c (tui_enable): Register tui hooks after calling
16510 tui_display_main.
16511
5f23a082
CB
165122020-01-09 Christian Biesinger <cbiesinger@google.com>
16513
16514 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
16515
3061113b
SM
165162020-01-08 Simon Marchi <simon.marchi@efficios.com>
16517
16518 * thread.c (print_thread_info_1): Fix indentation.
16519
57d75002
CB
165202020-01-09 Christian Biesinger <cbiesinger@google.com>
16521
16522 * symtab.c (general_symbol_info::compute_and_set_names): Move the
16523 unique_xmalloc_ptr outside the if to always free the demangled name.
16524
6a053cb1
TT
165252020-01-08 Tom Tromey <tromey@adacore.com>
16526
16527 * xcoffread.c (enter_line_range, read_xcoff_symtab)
16528 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
16529 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
16530 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
16531 Remove.
16532 (section_offsets): New typedef.
16533 * symtab.c (fixup_section, get_msymbol_address): Update.
16534 * symmisc.c (dump_msymbols): Update.
16535 * symfile.h (relative_addr_info_to_section_offsets)
16536 (symfile_map_offsets_to_segments): Update.
16537 * symfile.c (build_section_addr_info_from_objfile)
16538 (init_objfile_sect_indices): Update.
16539 (struct place_section_arg): Change type of "offsets".
16540 (place_section): Update.
16541 (relative_addr_info_to_section_offsets): Change type of
16542 "section_offsets". Remove "num_sections" parameter.
16543 (default_symfile_offsets, syms_from_objfile_1)
16544 (set_objfile_default_section_offset): Update.
16545 (reread_symbols): No need to preserve section offsets by hand.
16546 (symfile_map_offsets_to_segments): Change type of "offsets".
16547 * stap-probe.c (relocate_address): Update.
16548 * stabsread.h (process_one_symbol): Update.
16549 * solib-target.c (struct lm_info_target) <offsets>: Change type.
16550 (solib_target_relocate_section_addresses): Update.
16551 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
16552 Update.
16553 * solib-frv.c (frv_relocate_main_executable): Update.
16554 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
16555 * solib-aix.c (solib_aix_get_section_offsets): Change return
16556 type.
16557 (solib_aix_solib_create_inferior_hook): Update.
16558 * remote.c (remote_target::get_offsets): Update.
16559 * psymtab.c (find_pc_sect_psymtab): Update.
16560 * psympriv.h (struct partial_symbol) <address, text_low,
16561 text_high>: Update.
16562 * objfiles.h (obj_section_offset): Update.
16563 (struct objfile) <section_offsets>: Change type.
16564 <num_sections>: Remove.
16565 (objfile_relocate): Update.
16566 * objfiles.c (entry_point_address_query): Update
16567 (relocate_one_symbol): Change type of "section_offsets".
16568 (objfile_relocate1, objfile_relocate1): Change type of
16569 "new_offsets".
16570 (objfile_rebase1): Update.
16571 * mipsread.c (mipscoff_symfile_read): Update.
16572 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
16573 parameter.
16574 * mdebugread.c (parse_symbol): Change type of "section_offsets".
16575 (parse_external, psymtab_to_symtab_1): Update.
16576 * machoread.c (macho_symfile_offsets): Update.
16577 * ia64-tdep.c (ia64_find_unwind_table): Update.
16578 * hppa-tdep.c (read_unwind_info): Update.
16579 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
16580 * dwarf2read.c (create_addrmap_from_index)
16581 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
16582 (process_psymtab_comp_unit_reader, add_partial_symbol)
16583 (add_partial_subprogram, process_full_comp_unit)
16584 (read_file_scope, read_func_scope, read_lexical_block_scope)
16585 (read_call_site_scope, dwarf2_rnglists_process)
16586 (dwarf2_ranges_process, dwarf2_ranges_read)
16587 (dwarf_decode_lines_1, var_decode_location, new_symbol)
16588 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
16589 Update.
16590 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
16591 Update.
16592 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
16593 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
16594 (process_one_symbol): Change type of "section_offsets".
16595 * ctfread.c (get_objfile_text_range): Update.
16596 * coffread.c (coff_symtab_read, enter_linenos)
16597 (process_coff_symbol): Update.
16598 * coff-pe-read.c (add_pe_forwarded_sym): Update.
16599 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
16600
456e800a
TT
166012020-01-08 Tom Tromey <tromey@adacore.com>
16602
16603 * dwarf2read.c (parse_macro_definition): Use std::string.
16604 (parse_macro_definition): Likewise.
16605
6dfa2fc2
TT
166062020-01-08 Tom Tromey <tromey@adacore.com>
16607
16608 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
16609 (ATTR_ALLOC_CHUNK): Remove.
16610
421d1616
TT
166112020-01-08 Tom Tromey <tromey@adacore.com>
16612
16613 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
16614
43816ebc
TT
166152020-01-08 Tom Tromey <tromey@adacore.com>
16616
16617 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
16618 (dwarf2_compute_name, open_dwo_file): Likewise.
16619 (process_enumeration_scope): Use std::vector.
16620 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
16621 (partial_die_info::fixup, dwarf2_start_subfile)
16622 (guess_full_die_structure_name, dwarf2_name): Likewise.
16623 (determine_prefix): Update.
16624 (guess_full_die_structure_name): Make return type const.
16625 (partial_die_full_name): Return unique_xmalloc_ptr.
16626 (DW_FIELD_ALLOC_CHUNK): Remove.
16627
4212d509
TT
166282020-01-07 Tom Tromey <tromey@adacore.com>
16629
16630 PR build/24937:
16631 * stap-probe.c (class stap_static_probe_ops): Add constructor.
16632
06a6207a
JT
166332020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
16634
16635 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
16636
153d79c4
AB
166372020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
16638
16639 * stack.c (print_frame_info): Move disassemble_next_line code
16640 inside source_print block.
16641
66182876
EZ
166422020-01-06 Eli Zaretskii <eliz@gnu.org>
16643
16644 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
16645 gdb/signals.h, as we are now using native signal symbols.
16646
cbfa8581
SV
166472020-01-06 Shahab Vahedi <shahab@synopsys.com>
16648
16649 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
16650 overflow by an early check of content vs threshold.
aac66a4c 16651 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
16652 Likewise.
16653
3f602821
EZ
166542020-01-06 Eli Zaretskii <eliz@gnu.org>
16655
16656 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
16657
a08c904d
JT
166582020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
16659
16660 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
16661 export table if no section contains it's RVA.
16662
89a65580
EZ
166632020-01-06 Eli Zaretskii <eliz@gnu.org>
16664
16665 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
16666
8b7fcda2
HD
166672020-01-06 Hannes Domani <ssbssa@yahoo.de>
16668
16669 * source.c (print_source_lines_base): Set last_line_listed.
16670
a61b4f69
SV
166712020-01-06 Shahab Vahedi <shahab@synopsys.com>
16672
16673 * tui/tui-disasm.c: Remove trailing spaces.
16674
559e7e50
EZ
166752020-01-06 Eli Zaretskii <eliz@gnu.org>
16676 Pedro Alves <palves@redhat.com>
16677
16678 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
16679 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
16680 (windows_gdb_signal_to_target): New function, uses the above
16681 enumeration to convert GDB internal signal codes to equivalent
16682 Windows codes.
16683 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
16684 * windows-nat.c: Include "gdb_wait.h".
16685 (get_windows_debug_event): Extract the fatal exception from the
16686 exit status and convert to the equivalent Posix signal number.
16687 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
16688 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
16689 * gdbsupport/gdb_wait.c: New file, implements
16690 windows_status_to_termsig.
16691 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
16692 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
16693
f2302a34
AB
166942020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
16695
16696 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
16697 show_layout.
16698
6a5206eb
LM
166992020-01-05 Luis Machado <luis.machado@linaro.org>
16700
16701 * aarch64-linux-nat.c
16702 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
16703 and bfd_mach_aarch64.
16704
6ec1d75e
PW
167052020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16706
16707 * ui-file.c (stdio_file::can_emit_style_escape)
16708 (tee_file::can_emit_style_escape): Ensure style is used also on
16709 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
16710 to gdb_stdout.
16711 * main.c (set_gdb_data_directory): Use file style to output the
16712 warning that the given pathname is not a directory.
16713 * top.c (show_history_filename, gdb_safe_append_history)
16714 (show_gdb_datadir): Use file style.
16715
44f81a76
HD
167162020-01-03 Hannes Domani <ssbssa@yahoo.de>
16717
16718 * solib-target.c (struct lm_info_target):
16719 Change offsets to be a unique_xmalloc_ptr.
16720 (solib_target_relocate_section_addresses): Update.
16721
25057eb0
HD
167222020-01-03 Hannes Domani <ssbssa@yahoo.de>
16723
16724 * windows-nat.c (windows_clear_solib): Free so_list linked list.
16725
6e2118f5
BE
167262020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
16727
16728 * MAINTAINERS (Write After Approval): Add myself.
16729
8133c7dc
LM
167302020-01-02 Luis Machado <luis.machado@linaro.org>
16731
16732 * proc-service.c (get_ps_regcache): Remove reference to obsolete
16733 Cell BE architecture.
16734 * target.h (struct target_ops) <thread_architecture>: Likewise.
16735
48189bec
HD
167362020-01-01 Hannes Domani <ssbssa@yahoo.de>
16737
16738 * Makefile.in: Use INSTALL_PROGRAM_ENV.
16739
ead1063b
HD
167402020-01-01 Hannes Domani <ssbssa@yahoo.de>
16741
16742 * MAINTAINERS (Write After Approval): Add myself.
16743
e5d78223
JB
167442020-01-01 Joel Brobecker <brobecker@adacore.com>
16745
16746 * gdbarch.sh: Update copyright year range of generated files.
16747
b811d2c2
JB
167482020-01-01 Joel Brobecker <brobecker@adacore.com>
16749
16750 Update copyright year range in all GDB files.
16751
5f4def5c
JB
167522020-01-01 Joel Brobecker <brobecker@adacore.com>
16753
16754 * copyright.py: Convert to Python 3.
16755
51fd4002
JB
167562020-01-01 Joel Brobecker <brobecker@adacore.com>
16757
16758 * copyright.py: Adapt after move of gnulib directory from gdb
16759 directory to toplevel directory.
16760
5fb651f2
JB
167612020-01-01 Joel Brobecker <brobecker@adacore.com>
16762
16763 * copyright.py (main): Exit if run from the wrong directory.
16764
5dd8bf88
JB
167652020-01-01 Joel Brobecker <brobecker@adacore.com>
16766
16767 * top.c (print_gdb_version): Change copyright year to 2020.
16768
9f71dacb 167692020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 16770
9f71dacb 16771 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 16772
9f71dacb 16773For older changes see ChangeLog-2019.
c906108c
SS
16774\f
16775Local Variables:
16776mode: change-log
16777left-margin: 8
16778fill-column: 74
16779version-control: never
57da7796 16780coding: utf-8
c906108c 16781End: