Fix Rust regression with -readnow
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2020-11-12 Tom Tromey <tom@tromey.com>
2
3 PR rust/26799:
4 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
5 exist.
6
7 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
8
9 * features/Makefile (XMLTOC): Add rx.xml.
10 (FEATURE_XMLFILES): Remove rx.xml.
11 (FEATURE_CFILES rule): Pass '-single-feature' flag.
12 * features/rx.c: Regenerate.
13 * features/rx.xml: Wrap in `target` tags, and reindent.
14 * target-descriptions.c (struct maint_print_c_tdesc_options): New
15 structure.
16 (maint_print_c_tdesc_opt_def): New typedef.
17 (maint_print_c_tdesc_opt_defs): New static global.
18 (make_maint_print_c_tdesc_options_def_group): New function.
19 (maint_print_c_tdesc_cmd): Make use of command line flags, only
20 print single feature C file for target descriptions containing a
21 single feature.
22 (maint_print_c_tdesc_cmd_completer): New function.
23 (_initialize_target_descriptions): Update call to register command
24 completer, and include command line flag in help text.
25
26 2020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
27
28 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
29 numbers.
30 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
31 enum values.
32
33 2020-11-10 Tom Tromey <tom@tromey.com>
34
35 * value.h (internalvar_name): Update.
36 * value.c (internalvar_name): Make return type const.
37
38 2020-11-10 Tom Tromey <tom@tromey.com>
39
40 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
41 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
42 const.
43
44 2020-11-10 Tom Tromey <tom@tromey.com>
45
46 * objc-lang.h (value_nsstring): Update.
47 * objc-lang.c (value_nsstring): Make "ptr" const.
48
49 2020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
50
51 * expprint.c (print_subexp_funcall): Increment expression position
52 after reading argument count.
53 * f-lang.c (print_subexp_f): Skip over opcode before calling
54 common function.
55 (dump_subexp_body_f): Likewise.
56
57 2020-11-06 Romain Geissler <romain.geissler@amadeus.com>
58
59 PR python/26832
60 * configure: Regenerate.
61 * configure.ac: Check for python modules ctypes instead of
62 itertools.
63
64 2020-11-06 Pedro Alves <pedro@palves.net>
65
66 * macroexp.c (struct macro_buffer): Split in two classes. Add
67 uses adjusted.
68 (struct shared_macro_buffer): New, factored out from struct
69 macro_buffer.
70 (struct growable_macro_buffer): New, factored out from struct
71 macro_buffer.
72 (set_token, get_comment, get_identifier, get_pp_number)
73 (get_character_constant, get_string_literal, get_punctuator)
74 (get_next_token_for_substitution): Constify parameters.
75 (substitute_args): Constify locals.
76
77 2020-11-05 Tom Tromey <tom@tromey.com>
78
79 * dwarf2/read.c (read_cutu_die_from_dwo)
80 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
81 (build_type_psymtabs_1): Update.
82 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
83 parameter.
84 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
85 Don't read section. Add assert.
86
87 2020-11-04 Tom Tromey <tromey@adacore.com>
88
89 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
90
91 2020-11-04 Tom Tromey <tromey@adacore.com>
92
93 * ada-typeprint.c (ada_print_type): Handle __T types.
94
95 2020-11-04 Tom Tromey <tromey@adacore.com>
96
97 * dwarf2/read.c (add_partial_symbol, process_die):
98 Handle DW_TAG_array_type.
99 (is_type_tag_for_partial): Add "lang" parameter.
100 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
101
102 2020-11-04 Tom Tromey <tromey@adacore.com>
103
104 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
105
106 2020-11-04 Tom Tromey <tromey@adacore.com>
107
108 * dwarf2/read.c (read_array_type): Only apply stride to innermost
109 array.
110
111 2020-11-04 Tom Tromey <tromey@adacore.com>
112
113 * gdbtypes.c (update_static_array_size): Handle bit stride.
114
115 2020-11-04 Tom Tromey <tromey@adacore.com>
116
117 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
118
119 2020-11-04 Tom Tromey <tromey@adacore.com>
120
121 * ada-lang.c (ada_is_any_packed_array_type): New function.
122 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
123
124 2020-11-04 Tom Tromey <tromey@adacore.com>
125
126 * dwarf2/read.c (recognize_bound_expression)
127 (quirk_ada_thick_pointer): New functions.
128 (read_array_type): Call quirk_ada_thick_pointer.
129 (set_die_type): Add "skip_data_location" parameter.
130 (quirk_ada_thick_pointer): New function.
131 (process_structure_scope): Call quirk_ada_thick_pointer.
132 * ada-lang.c (ada_is_unconstrained_packed_array_type)
133 (decode_packed_array_bitsize): Handle thick pointers without
134 parallel types.
135 (ada_is_gnat_encoded_packed_array_type): Rename from
136 ada_is_packed_array_type.
137 (ada_is_constrained_packed_array_type): Update.
138 * ada-valprint.c (ada_val_print_gnat_array): Remove.
139 (ada_value_print_1): Use ada_get_decoded_value.
140
141 2020-11-04 Tom Tromey <tromey@adacore.com>
142
143 * ada-lang.c (recursively_update_array_bitsize): New function.
144 (decode_constrained_packed_array_type): Call it.
145
146 2020-11-04 Tom Tromey <tromey@adacore.com>
147
148 * ada-lang.c (to_fixed_array_type): Error if
149 decode_constrained_packed_array_type returns NULL.
150
151 2020-11-04 Tom Tromey <tromey@adacore.com>
152
153 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
154
155 2020-11-02 Tom Tromey <tromey@adacore.com>
156
157 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
158 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
159 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
160 * amd64-ravenscar-thread.c: New file.
161 * amd64-ravenscar-thread.h: New file.
162 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
163 * configure.tgt (amd64_tobjs): Add ravenscar objects.
164
165 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
166
167 * main.c (execute_cmdargs): New function.
168 (captured_main_1): Make use of execute_cmdargs.
169
170 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
171
172 * NEWS: Mention changes to config file search path.
173 * main.c
174
175 2020-11-02 Tom Tromey <tromey@adacore.com>
176
177 * python/python.c: Consolidate two HAVE_PYTHON blocks.
178 (python_GdbModuleDef): Move earlier. Now static.
179 (do_start_initialization): Consolidate some IS_PY3K blocks.
180
181 2020-11-02 Simon Marchi <simon.marchi@efficios.com>
182
183 * aarch64-linux-tdep.c: Fix indentation.
184 * aarch64-ravenscar-thread.c: Fix indentation.
185 * aarch64-tdep.c: Fix indentation.
186 * aarch64-tdep.h: Fix indentation.
187 * ada-lang.c: Fix indentation.
188 * ada-lang.h: Fix indentation.
189 * ada-tasks.c: Fix indentation.
190 * ada-typeprint.c: Fix indentation.
191 * ada-valprint.c: Fix indentation.
192 * ada-varobj.c: Fix indentation.
193 * addrmap.c: Fix indentation.
194 * addrmap.h: Fix indentation.
195 * agent.c: Fix indentation.
196 * aix-thread.c: Fix indentation.
197 * alpha-bsd-nat.c: Fix indentation.
198 * alpha-linux-tdep.c: Fix indentation.
199 * alpha-mdebug-tdep.c: Fix indentation.
200 * alpha-nbsd-tdep.c: Fix indentation.
201 * alpha-obsd-tdep.c: Fix indentation.
202 * alpha-tdep.c: Fix indentation.
203 * amd64-bsd-nat.c: Fix indentation.
204 * amd64-darwin-tdep.c: Fix indentation.
205 * amd64-linux-nat.c: Fix indentation.
206 * amd64-linux-tdep.c: Fix indentation.
207 * amd64-nat.c: Fix indentation.
208 * amd64-obsd-tdep.c: Fix indentation.
209 * amd64-tdep.c: Fix indentation.
210 * amd64-windows-tdep.c: Fix indentation.
211 * annotate.c: Fix indentation.
212 * arc-tdep.c: Fix indentation.
213 * arch-utils.c: Fix indentation.
214 * arch/arm-get-next-pcs.c: Fix indentation.
215 * arch/arm.c: Fix indentation.
216 * arm-linux-nat.c: Fix indentation.
217 * arm-linux-tdep.c: Fix indentation.
218 * arm-nbsd-tdep.c: Fix indentation.
219 * arm-pikeos-tdep.c: Fix indentation.
220 * arm-tdep.c: Fix indentation.
221 * arm-tdep.h: Fix indentation.
222 * arm-wince-tdep.c: Fix indentation.
223 * auto-load.c: Fix indentation.
224 * auxv.c: Fix indentation.
225 * avr-tdep.c: Fix indentation.
226 * ax-gdb.c: Fix indentation.
227 * ax-general.c: Fix indentation.
228 * bfin-linux-tdep.c: Fix indentation.
229 * block.c: Fix indentation.
230 * block.h: Fix indentation.
231 * blockframe.c: Fix indentation.
232 * bpf-tdep.c: Fix indentation.
233 * break-catch-sig.c: Fix indentation.
234 * break-catch-syscall.c: Fix indentation.
235 * break-catch-throw.c: Fix indentation.
236 * breakpoint.c: Fix indentation.
237 * breakpoint.h: Fix indentation.
238 * bsd-uthread.c: Fix indentation.
239 * btrace.c: Fix indentation.
240 * build-id.c: Fix indentation.
241 * buildsym-legacy.h: Fix indentation.
242 * buildsym.c: Fix indentation.
243 * c-typeprint.c: Fix indentation.
244 * c-valprint.c: Fix indentation.
245 * c-varobj.c: Fix indentation.
246 * charset.c: Fix indentation.
247 * cli/cli-cmds.c: Fix indentation.
248 * cli/cli-decode.c: Fix indentation.
249 * cli/cli-decode.h: Fix indentation.
250 * cli/cli-script.c: Fix indentation.
251 * cli/cli-setshow.c: Fix indentation.
252 * coff-pe-read.c: Fix indentation.
253 * coffread.c: Fix indentation.
254 * compile/compile-cplus-types.c: Fix indentation.
255 * compile/compile-object-load.c: Fix indentation.
256 * compile/compile-object-run.c: Fix indentation.
257 * completer.c: Fix indentation.
258 * corefile.c: Fix indentation.
259 * corelow.c: Fix indentation.
260 * cp-abi.h: Fix indentation.
261 * cp-namespace.c: Fix indentation.
262 * cp-support.c: Fix indentation.
263 * cp-valprint.c: Fix indentation.
264 * cris-linux-tdep.c: Fix indentation.
265 * cris-tdep.c: Fix indentation.
266 * darwin-nat-info.c: Fix indentation.
267 * darwin-nat.c: Fix indentation.
268 * darwin-nat.h: Fix indentation.
269 * dbxread.c: Fix indentation.
270 * dcache.c: Fix indentation.
271 * disasm.c: Fix indentation.
272 * dtrace-probe.c: Fix indentation.
273 * dwarf2/abbrev.c: Fix indentation.
274 * dwarf2/attribute.c: Fix indentation.
275 * dwarf2/expr.c: Fix indentation.
276 * dwarf2/frame.c: Fix indentation.
277 * dwarf2/index-cache.c: Fix indentation.
278 * dwarf2/index-write.c: Fix indentation.
279 * dwarf2/line-header.c: Fix indentation.
280 * dwarf2/loc.c: Fix indentation.
281 * dwarf2/macro.c: Fix indentation.
282 * dwarf2/read.c: Fix indentation.
283 * dwarf2/read.h: Fix indentation.
284 * elfread.c: Fix indentation.
285 * eval.c: Fix indentation.
286 * event-top.c: Fix indentation.
287 * exec.c: Fix indentation.
288 * exec.h: Fix indentation.
289 * expprint.c: Fix indentation.
290 * f-lang.c: Fix indentation.
291 * f-typeprint.c: Fix indentation.
292 * f-valprint.c: Fix indentation.
293 * fbsd-nat.c: Fix indentation.
294 * fbsd-tdep.c: Fix indentation.
295 * findvar.c: Fix indentation.
296 * fork-child.c: Fix indentation.
297 * frame-unwind.c: Fix indentation.
298 * frame-unwind.h: Fix indentation.
299 * frame.c: Fix indentation.
300 * frv-linux-tdep.c: Fix indentation.
301 * frv-tdep.c: Fix indentation.
302 * frv-tdep.h: Fix indentation.
303 * ft32-tdep.c: Fix indentation.
304 * gcore.c: Fix indentation.
305 * gdb_bfd.c: Fix indentation.
306 * gdbarch.sh: Fix indentation.
307 * gdbarch.c: Re-generate
308 * gdbarch.h: Re-generate.
309 * gdbcore.h: Fix indentation.
310 * gdbthread.h: Fix indentation.
311 * gdbtypes.c: Fix indentation.
312 * gdbtypes.h: Fix indentation.
313 * glibc-tdep.c: Fix indentation.
314 * gnu-nat.c: Fix indentation.
315 * gnu-nat.h: Fix indentation.
316 * gnu-v2-abi.c: Fix indentation.
317 * gnu-v3-abi.c: Fix indentation.
318 * go32-nat.c: Fix indentation.
319 * guile/guile-internal.h: Fix indentation.
320 * guile/scm-cmd.c: Fix indentation.
321 * guile/scm-frame.c: Fix indentation.
322 * guile/scm-iterator.c: Fix indentation.
323 * guile/scm-math.c: Fix indentation.
324 * guile/scm-ports.c: Fix indentation.
325 * guile/scm-pretty-print.c: Fix indentation.
326 * guile/scm-value.c: Fix indentation.
327 * h8300-tdep.c: Fix indentation.
328 * hppa-linux-nat.c: Fix indentation.
329 * hppa-linux-tdep.c: Fix indentation.
330 * hppa-nbsd-nat.c: Fix indentation.
331 * hppa-nbsd-tdep.c: Fix indentation.
332 * hppa-obsd-nat.c: Fix indentation.
333 * hppa-tdep.c: Fix indentation.
334 * hppa-tdep.h: Fix indentation.
335 * i386-bsd-nat.c: Fix indentation.
336 * i386-darwin-nat.c: Fix indentation.
337 * i386-darwin-tdep.c: Fix indentation.
338 * i386-dicos-tdep.c: Fix indentation.
339 * i386-gnu-nat.c: Fix indentation.
340 * i386-linux-nat.c: Fix indentation.
341 * i386-linux-tdep.c: Fix indentation.
342 * i386-nto-tdep.c: Fix indentation.
343 * i386-obsd-tdep.c: Fix indentation.
344 * i386-sol2-nat.c: Fix indentation.
345 * i386-tdep.c: Fix indentation.
346 * i386-tdep.h: Fix indentation.
347 * i386-windows-tdep.c: Fix indentation.
348 * i387-tdep.c: Fix indentation.
349 * i387-tdep.h: Fix indentation.
350 * ia64-libunwind-tdep.c: Fix indentation.
351 * ia64-libunwind-tdep.h: Fix indentation.
352 * ia64-linux-nat.c: Fix indentation.
353 * ia64-linux-tdep.c: Fix indentation.
354 * ia64-tdep.c: Fix indentation.
355 * ia64-tdep.h: Fix indentation.
356 * ia64-vms-tdep.c: Fix indentation.
357 * infcall.c: Fix indentation.
358 * infcmd.c: Fix indentation.
359 * inferior.c: Fix indentation.
360 * infrun.c: Fix indentation.
361 * iq2000-tdep.c: Fix indentation.
362 * language.c: Fix indentation.
363 * linespec.c: Fix indentation.
364 * linux-fork.c: Fix indentation.
365 * linux-nat.c: Fix indentation.
366 * linux-tdep.c: Fix indentation.
367 * linux-thread-db.c: Fix indentation.
368 * lm32-tdep.c: Fix indentation.
369 * m2-lang.c: Fix indentation.
370 * m2-typeprint.c: Fix indentation.
371 * m2-valprint.c: Fix indentation.
372 * m32c-tdep.c: Fix indentation.
373 * m32r-linux-tdep.c: Fix indentation.
374 * m32r-tdep.c: Fix indentation.
375 * m68hc11-tdep.c: Fix indentation.
376 * m68k-bsd-nat.c: Fix indentation.
377 * m68k-linux-nat.c: Fix indentation.
378 * m68k-linux-tdep.c: Fix indentation.
379 * m68k-tdep.c: Fix indentation.
380 * machoread.c: Fix indentation.
381 * macrocmd.c: Fix indentation.
382 * macroexp.c: Fix indentation.
383 * macroscope.c: Fix indentation.
384 * macrotab.c: Fix indentation.
385 * macrotab.h: Fix indentation.
386 * main.c: Fix indentation.
387 * mdebugread.c: Fix indentation.
388 * mep-tdep.c: Fix indentation.
389 * mi/mi-cmd-catch.c: Fix indentation.
390 * mi/mi-cmd-disas.c: Fix indentation.
391 * mi/mi-cmd-env.c: Fix indentation.
392 * mi/mi-cmd-stack.c: Fix indentation.
393 * mi/mi-cmd-var.c: Fix indentation.
394 * mi/mi-cmds.c: Fix indentation.
395 * mi/mi-main.c: Fix indentation.
396 * mi/mi-parse.c: Fix indentation.
397 * microblaze-tdep.c: Fix indentation.
398 * minidebug.c: Fix indentation.
399 * minsyms.c: Fix indentation.
400 * mips-linux-nat.c: Fix indentation.
401 * mips-linux-tdep.c: Fix indentation.
402 * mips-nbsd-tdep.c: Fix indentation.
403 * mips-tdep.c: Fix indentation.
404 * mn10300-linux-tdep.c: Fix indentation.
405 * mn10300-tdep.c: Fix indentation.
406 * moxie-tdep.c: Fix indentation.
407 * msp430-tdep.c: Fix indentation.
408 * namespace.h: Fix indentation.
409 * nat/fork-inferior.c: Fix indentation.
410 * nat/gdb_ptrace.h: Fix indentation.
411 * nat/linux-namespaces.c: Fix indentation.
412 * nat/linux-osdata.c: Fix indentation.
413 * nat/netbsd-nat.c: Fix indentation.
414 * nat/x86-dregs.c: Fix indentation.
415 * nbsd-nat.c: Fix indentation.
416 * nbsd-tdep.c: Fix indentation.
417 * nios2-linux-tdep.c: Fix indentation.
418 * nios2-tdep.c: Fix indentation.
419 * nto-procfs.c: Fix indentation.
420 * nto-tdep.c: Fix indentation.
421 * objfiles.c: Fix indentation.
422 * objfiles.h: Fix indentation.
423 * opencl-lang.c: Fix indentation.
424 * or1k-tdep.c: Fix indentation.
425 * osabi.c: Fix indentation.
426 * osabi.h: Fix indentation.
427 * osdata.c: Fix indentation.
428 * p-lang.c: Fix indentation.
429 * p-typeprint.c: Fix indentation.
430 * p-valprint.c: Fix indentation.
431 * parse.c: Fix indentation.
432 * ppc-linux-nat.c: Fix indentation.
433 * ppc-linux-tdep.c: Fix indentation.
434 * ppc-nbsd-nat.c: Fix indentation.
435 * ppc-nbsd-tdep.c: Fix indentation.
436 * ppc-obsd-nat.c: Fix indentation.
437 * ppc-ravenscar-thread.c: Fix indentation.
438 * ppc-sysv-tdep.c: Fix indentation.
439 * ppc64-tdep.c: Fix indentation.
440 * printcmd.c: Fix indentation.
441 * proc-api.c: Fix indentation.
442 * producer.c: Fix indentation.
443 * producer.h: Fix indentation.
444 * prologue-value.c: Fix indentation.
445 * prologue-value.h: Fix indentation.
446 * psymtab.c: Fix indentation.
447 * python/py-arch.c: Fix indentation.
448 * python/py-bpevent.c: Fix indentation.
449 * python/py-event.c: Fix indentation.
450 * python/py-event.h: Fix indentation.
451 * python/py-finishbreakpoint.c: Fix indentation.
452 * python/py-frame.c: Fix indentation.
453 * python/py-framefilter.c: Fix indentation.
454 * python/py-inferior.c: Fix indentation.
455 * python/py-infthread.c: Fix indentation.
456 * python/py-objfile.c: Fix indentation.
457 * python/py-prettyprint.c: Fix indentation.
458 * python/py-registers.c: Fix indentation.
459 * python/py-signalevent.c: Fix indentation.
460 * python/py-stopevent.c: Fix indentation.
461 * python/py-stopevent.h: Fix indentation.
462 * python/py-threadevent.c: Fix indentation.
463 * python/py-tui.c: Fix indentation.
464 * python/py-unwind.c: Fix indentation.
465 * python/py-value.c: Fix indentation.
466 * python/py-xmethods.c: Fix indentation.
467 * python/python-internal.h: Fix indentation.
468 * python/python.c: Fix indentation.
469 * ravenscar-thread.c: Fix indentation.
470 * record-btrace.c: Fix indentation.
471 * record-full.c: Fix indentation.
472 * record.c: Fix indentation.
473 * reggroups.c: Fix indentation.
474 * regset.h: Fix indentation.
475 * remote-fileio.c: Fix indentation.
476 * remote.c: Fix indentation.
477 * reverse.c: Fix indentation.
478 * riscv-linux-tdep.c: Fix indentation.
479 * riscv-ravenscar-thread.c: Fix indentation.
480 * riscv-tdep.c: Fix indentation.
481 * rl78-tdep.c: Fix indentation.
482 * rs6000-aix-tdep.c: Fix indentation.
483 * rs6000-lynx178-tdep.c: Fix indentation.
484 * rs6000-nat.c: Fix indentation.
485 * rs6000-tdep.c: Fix indentation.
486 * rust-lang.c: Fix indentation.
487 * rx-tdep.c: Fix indentation.
488 * s12z-tdep.c: Fix indentation.
489 * s390-linux-tdep.c: Fix indentation.
490 * score-tdep.c: Fix indentation.
491 * ser-base.c: Fix indentation.
492 * ser-mingw.c: Fix indentation.
493 * ser-uds.c: Fix indentation.
494 * ser-unix.c: Fix indentation.
495 * serial.c: Fix indentation.
496 * sh-linux-tdep.c: Fix indentation.
497 * sh-nbsd-tdep.c: Fix indentation.
498 * sh-tdep.c: Fix indentation.
499 * skip.c: Fix indentation.
500 * sol-thread.c: Fix indentation.
501 * solib-aix.c: Fix indentation.
502 * solib-darwin.c: Fix indentation.
503 * solib-frv.c: Fix indentation.
504 * solib-svr4.c: Fix indentation.
505 * solib.c: Fix indentation.
506 * source.c: Fix indentation.
507 * sparc-linux-tdep.c: Fix indentation.
508 * sparc-nbsd-tdep.c: Fix indentation.
509 * sparc-obsd-tdep.c: Fix indentation.
510 * sparc-ravenscar-thread.c: Fix indentation.
511 * sparc-tdep.c: Fix indentation.
512 * sparc64-linux-tdep.c: Fix indentation.
513 * sparc64-nbsd-tdep.c: Fix indentation.
514 * sparc64-obsd-tdep.c: Fix indentation.
515 * sparc64-tdep.c: Fix indentation.
516 * stabsread.c: Fix indentation.
517 * stack.c: Fix indentation.
518 * stap-probe.c: Fix indentation.
519 * stubs/ia64vms-stub.c: Fix indentation.
520 * stubs/m32r-stub.c: Fix indentation.
521 * stubs/m68k-stub.c: Fix indentation.
522 * stubs/sh-stub.c: Fix indentation.
523 * stubs/sparc-stub.c: Fix indentation.
524 * symfile-mem.c: Fix indentation.
525 * symfile.c: Fix indentation.
526 * symfile.h: Fix indentation.
527 * symmisc.c: Fix indentation.
528 * symtab.c: Fix indentation.
529 * symtab.h: Fix indentation.
530 * target-float.c: Fix indentation.
531 * target.c: Fix indentation.
532 * target.h: Fix indentation.
533 * tic6x-tdep.c: Fix indentation.
534 * tilegx-linux-tdep.c: Fix indentation.
535 * tilegx-tdep.c: Fix indentation.
536 * top.c: Fix indentation.
537 * tracefile-tfile.c: Fix indentation.
538 * tracepoint.c: Fix indentation.
539 * tui/tui-disasm.c: Fix indentation.
540 * tui/tui-io.c: Fix indentation.
541 * tui/tui-regs.c: Fix indentation.
542 * tui/tui-stack.c: Fix indentation.
543 * tui/tui-win.c: Fix indentation.
544 * tui/tui-winsource.c: Fix indentation.
545 * tui/tui.c: Fix indentation.
546 * typeprint.c: Fix indentation.
547 * ui-out.h: Fix indentation.
548 * unittests/copy_bitwise-selftests.c: Fix indentation.
549 * unittests/memory-map-selftests.c: Fix indentation.
550 * utils.c: Fix indentation.
551 * v850-tdep.c: Fix indentation.
552 * valarith.c: Fix indentation.
553 * valops.c: Fix indentation.
554 * valprint.c: Fix indentation.
555 * valprint.h: Fix indentation.
556 * value.c: Fix indentation.
557 * value.h: Fix indentation.
558 * varobj.c: Fix indentation.
559 * vax-tdep.c: Fix indentation.
560 * windows-nat.c: Fix indentation.
561 * windows-tdep.c: Fix indentation.
562 * xcoffread.c: Fix indentation.
563 * xml-syscall.c: Fix indentation.
564 * xml-tdesc.c: Fix indentation.
565 * xstormy16-tdep.c: Fix indentation.
566 * xtensa-config.c: Fix indentation.
567 * xtensa-linux-nat.c: Fix indentation.
568 * xtensa-linux-tdep.c: Fix indentation.
569 * xtensa-tdep.c: Fix indentation.
570
571 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
572 Craig Blackmore <craig.blackmore@embecosm.com>
573
574 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
575 as an unsigned value.
576
577 2020-11-01 Tom Tromey <tom@tromey.com>
578
579 * dbxread.c (dbx_end_psymtab): Update.
580 * dwarf2/read.c (process_psymtab_comp_unit_reader)
581 (build_type_psymtabs_reader): Update.
582 * xcoffread.c (xcoff_end_psymtab): Update.
583 * ctfread.c (scan_partial_symbols): Update.
584 * psymtab.c (sort_pst_symbols): Remove.
585 (partial_symtab::end): Rename from end_psymtab_common. Inline
586 sort_pst_symbols.
587 * psympriv.h (struct partial_symtab) <end>: New method.
588 (end_psymtab_common): Don't declare.
589
590 2020-11-01 Tom Tromey <tom@tromey.com>
591
592 * symmisc.c (count_psyms): New function.
593 (print_objfile_statistics): Use it.
594 * psymtab.c (append_psymbol_to_list): Remove.
595 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
596 * objfiles.h (struct objstats) <n_psyms>: Remove.
597
598 2020-11-01 Tom Tromey <tom@tromey.com>
599
600 * dbxread.c (dbx_end_psymtab): Update.
601 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
602 (build_type_psymtabs_reader): Update.
603 * xcoffread.c (xcoff_end_psymtab): Update.
604 * ctfread.c (scan_partial_symbols): Update.
605 * psympriv.h (end_psymtab_common): Update.
606 * psymtab.c (end_psymtab_common): Remove objfile parameter.
607 (sort_pst_symbols): Likewise.
608
609 2020-11-01 Tom Tromey <tom@tromey.com>
610
611 * dbxread.c (dbx_symfile_read): Update.
612 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
613 * xcoffread.c (xcoff_initial_scan): Update.
614 * psympriv.h (init_psymbol_list): Don't declare.
615 * psymtab.c (init_psymbol_list): Remove.
616
617 2020-11-01 Joel Brobecker <brobecker@adacore.com>
618
619 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
620 gnat_encoded_fixed_type_info. Update all callers.
621
622 2020-11-01 Joel Brobecker <brobecker@adacore.com>
623
624 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
625 line too long.
626
627 2020-11-01 Joel Brobecker <brobecker@adacore.com>
628
629 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
630 cast_from_fixed. Update all callers.
631 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
632 Update all callers.
633 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
634 Update all callers.
635 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
636 ada_scaling_factor.
637 * ada-typeprint.c: Replace call to ada_scaling_factor by call
638 to print_gnat_encoded_fixed_point_type.
639 * ada-valprint.c: Likewise.
640
641 2020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
642
643 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
644 (debug_prefixed_printf): Add check of debug_displaced flag.
645 * linux-nat.c (linux_nat_debug_printf): Add check of
646 debug_linux_nat flag.
647
648 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
649
650 * infrun.c (infrun_debug_printf_1): Remove.
651 (displaced_debug_printf_1): Remove.
652 (stop_all_threads): Use debug_prefixed_printf.
653 * infrun.h (infrun_debug_printf_1): Remove.
654 (infrun_debug_printf): Use debug_prefixed_printf.
655 (displaced_debug_printf_1): Remove.
656 (displaced_debug_printf): Use debug_prefixed_printf.
657 * linux-nat.c (linux_nat_debug_printf_1): Remove.
658 (linux_nat_debug_printf): Use debug_prefixed_printf.
659
660 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
661
662 * configure: Re-generate.
663 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
664 AC_LANG_PROGRAM.
665
666 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
667
668 * configure: Re-generate.
669
670 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
671
672 * configure: Re-generate.
673
674 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
675
676 * configure: Re-generate.
677
678 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
679
680 * configure: Re-generate.
681
682 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
683
684 * acinclude.m4: Modernize.
685 * configure: Re-generate.
686
687 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
688
689 * configure.ac: Modernize.
690 * configure: Re-generate.
691
692 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
693
694 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
695 * configure: Re-generate.
696 * configure.ac: Remove AM_PROG_CC_STDC.
697
698 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
699
700 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
701 AC_CANONICAL_SYSTEM.
702 * configure: Re-generate.
703
704 2020-10-30 Simon Marchi <simon.marchi@efficios.com>
705
706 * infrun.h (displaced_debug_printf): New macro. Replace
707 displaced debug prints throughout to use it.
708 (displaced_debug_printf_1): New declaration.
709 (displaced_step_dump_bytes): Return string, remove ui_file
710 parameter, update all callers.
711 * infrun.c (displaced_debug_printf_1): New function.
712 (displaced_step_dump_bytes): Return string, remove ui_file
713 parameter
714
715 2020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
716
717 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
718
719 2020-10-30 Tom Tromey <tromey@adacore.com>
720
721 * Makefile.in (stamp-init): Depend on config.status.
722
723 2020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
724
725 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
726
727 2020-10-30 Pedro Alves <pedro@palves.net>
728
729 * thread.c (lookup_selected_frame): Move ...
730 * frame.c (lookup_selected_frame): ... here.
731
732 2020-10-30 Pedro Alves <pedro@palves.net>
733
734 * blockframe.c (block_innermost_frame): Use get_selected_frame.
735 * frame.c
736 (scoped_restore_selected_frame::scoped_restore_selected_frame):
737 Use save_selected_frame. Save language as well.
738 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
739 Use restore_selected_frame, and restore language as well.
740 (selected_frame_id, selected_frame_level): New.
741 (selected_frame): Update comments.
742 (save_selected_frame, restore_selected_frame): New.
743 (get_selected_frame): Use lookup_selected_frame.
744 (get_selected_frame_if_set): Delete.
745 (select_frame): Record selected_frame_level and selected_frame_id.
746 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
747 fields.
748 (get_selected_frame): Make 'message' parameter optional.
749 (get_selected_frame_if_set): Delete declaration.
750 (select_frame): Update comments.
751 (save_selected_frame, restore_selected_frame)
752 (lookup_selected_frame): Declare.
753 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
754 * infrun.c (struct infcall_control_state) <selected_frame_level>:
755 New field.
756 (save_infcall_control_state): Use save_selected_frame.
757 (restore_selected_frame): Delete.
758 (restore_infcall_control_state): Use restore_selected_frame.
759 * stack.c (select_frame_command_core, frame_command_core): Use
760 get_selected_frame.
761 * thread.c (restore_selected_frame): Rename to ...
762 (lookup_selected_frame): ... this and make extern. Select the
763 current frame if the frame level is -1.
764 (scoped_restore_current_thread::restore): Also restore the
765 language.
766 (scoped_restore_current_thread::~scoped_restore_current_thread):
767 Don't try/catch.
768 (scoped_restore_current_thread::scoped_restore_current_thread):
769 Save the language as well. Use save_selected_frame.
770
771 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
772
773 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
774 documentation.
775 * gdbarch.h: Re-generate.
776
777 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
778
779 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
780 parameter.
781 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
782 Likewise.
783 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
784 Likewise.
785 * arch-utils.c (default_displaced_step_hw_singlestep):
786 Likewise.
787 * arch-utils.h (default_displaced_step_hw_singlestep):
788 Likewise.
789 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
790 Likewise.
791 * s390-tdep.c (s390_displaced_step_hw_singlestep):
792 Likewise.
793 * gdbarch.c: Re-generate.
794 * gdbarch.h: Re-generate.
795 * infrun.c (resume_1): Adjust.
796
797 2020-10-29 Tom Tromey <tom@tromey.com>
798
799 * progspace.c (program_space::~program_space): Don't call
800 exec_close.
801
802 2020-10-29 Tom Tromey <tom@tromey.com>
803
804 * exec.c (exec_target::close): Don't change current program
805 space.
806
807 2020-10-29 Tom Tromey <tom@tromey.com>
808
809 * symfile.c (add_symbol_file_command): Update.
810 * exec.c (program_space::add_target_sections): Rename.
811 * symfile-mem.c (symbol_file_add_from_memory): Update.
812 * progspace.h (struct program_space) <add_target_sections>:
813 Declare new overload.
814 * exec.h (add_target_sections_of_objfile): Don't declare.
815
816 2020-10-29 Tom Tromey <tom@tromey.com>
817
818 * solib.c (solib_map_sections): Update.
819 * exec.c (program_space::add_target_sections): Now a method.
820 (exec_file_attach): Update.
821 * exec.h (add_target_sections): Don't declare.
822 * progspace.h (struct program_space) <add_target_sections>:
823 Declare.
824
825 2020-10-29 Tom Tromey <tom@tromey.com>
826
827 * progspace.h (struct program_space) <remove_target_sections>:
828 Declare.
829 * exec.c (program_space::remove_target_sections): Now a method.
830 * exec.h (remove_target_sections): Don't declare.
831
832 2020-10-29 Tom Tromey <tom@tromey.com>
833
834 * inferior.c (delete_inferior): Update.
835 * progspace.c (program_space::empty): Rename from
836 program_space_empty_p. Return bool.
837 * progspace.h (struct program_space) <empty>: New method.
838 (program_space_empty_p): Don't declare.
839
840 2020-10-29 Tom Tromey <tom@tromey.com>
841
842 * progspace.c (program_space::~program_space): Don't call
843 clear_program_space_solib_cache.
844 (program_space::clear_solib_cache): Rename from
845 clear_solib_cache.
846 * solib.c (handle_solib_event): Update.
847 * progspace.h (struct program_space) <clear_solib_cache>: New
848 method.
849 (clear_program_space_solib_cache): Don't declare.
850
851 2020-10-29 Tom Tromey <tom@tromey.com>
852
853 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
854 * target.c (info_target_command): Update.
855 * symfile.c (syms_from_objfile_1, finish_new_objfile)
856 (symbol_file_clear, reread_symbols): Update.
857 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
858 * stabsread.c (scan_file_globals): Update.
859 * solib.c (update_solib_list): Update.
860 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
861 (svr4_fetch_objfile_link_map, enable_break)
862 (svr4_relocate_main_executable)
863 (svr4_iterate_over_objfiles_in_search_order): Update.
864 * solib-frv.c (lm_base, enable_break)
865 (frv_relocate_main_executable): Update.
866 (main_got, frv_fdpic_find_canonical_descriptor): Update.
867 (frv_fetch_objfile_link_map): Update.
868 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
869 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
870 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
871 * remote.c (remote_target::get_offsets): Update.
872 (remote_target::start_remote)
873 (extended_remote_target::post_attach): Update.
874 * objfiles.c (entry_point_address_query): Update.
875 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
876 * minsyms.c (get_symbol_leading_char): Update.
877 * frame.c (inside_main_func): Update.
878 * progspace.h (symfile_objfile): Remove macro.
879
880 2020-10-29 Tom Tromey <tom@tromey.com>
881
882 * exec.c (exec_file_attach): Update.
883 * progspace.c (program_space::exec_close): Update.
884 * progspace.h (struct program_space) <ebfd>: Now a
885 gdb_bfd_ref_ptr.
886 <set_exec_bfd>: Change argument type.
887 <exec_bfd>: Update.
888
889 2020-10-29 Tom Tromey <tom@tromey.com>
890
891 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
892 * symfile.c (reread_symbols): Update.
893 * symfile-mem.c (add_symbol_file_from_memory_command)
894 (add_vsyscall_page): Update.
895 * source-cache.c (source_cache::get_plain_source_lines): Update.
896 * solib-svr4.c (find_program_interpreter, elf_locate_base)
897 (svr4_current_sos_direct, svr4_exec_displacement)
898 (svr4_relocate_main_executable): Update.
899 (svr4_iterate_over_objfiles_in_search_order): Update.
900 * solib-frv.c (enable_break2, enable_break): Update.
901 * solib-dsbt.c (lm_base, enable_break): Update.
902 * solib-darwin.c (find_program_interpreter)
903 (darwin_solib_create_inferior_hook): Update.
904 * sol-thread.c (rw_common, ps_pdmodel): Update.
905 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
906 * remote.c (compare_sections_command)
907 (remote_target::trace_set_readonly_regions): Update.
908 * remote-sim.c (get_sim_inferior_data)
909 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
910 (gdbsim_target_open, gdbsim_target::files_info): Update.
911 * exec.h (exec_bfd): Remove macro.
912 * progspace.c (initialize_progspace): Update.
913 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
914 Update.
915 * nto-procfs.c (nto_procfs_target::post_attach)
916 (nto_procfs_target::create_inferior): Update.
917 * maint.c (maintenance_info_sections): Update.
918 * linux-thread-db.c (thread_db_target::get_thread_local_address):
919 Update.
920 * infcmd.c (post_create_inferior): Update.
921 * gcore.c (default_gcore_arch, default_gcore_target): Update.
922 (objfile_find_memory_regions): Update.
923 * exec.c (validate_exec_file, exec_file_attach)
924 (exec_read_partial_read_only, print_section_info): Update.
925 * corelow.c (core_target_open): Update.
926 * corefile.c (reopen_exec_file, validate_files): Update.
927 * arm-tdep.c (gdb_print_insn_arm): Update.
928 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
929 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
930 methods.
931
932 2020-10-29 Tom Tromey <tom@tromey.com>
933
934 * progspace.h (current_target_sections): Remove macro.
935 * solib-svr4.c (scan_dyntag): Update.
936 * solib-dsbt.c (scan_dyntag): Update.
937 * exec.c (exec_target::close): Update.
938 (add_target_sections, add_target_sections_of_objfile)
939 (remove_target_sections, exec_target::get_section_table)
940 (exec_target::files_info, set_section_command)
941 (exec_set_section_address, exec_target::has_memory)
942 (exec_target::has_memory): Update.
943
944 2020-10-29 Tom Tromey <tom@tromey.com>
945
946 * source-cache.c (source_cache::get_plain_source_lines): Use
947 current_program_space.
948 * corefile.c (reopen_exec_file): Use current_program_space.
949 * exec.c (exec_file_attach): Use current_program_space.
950 * exec.h (exec_bfd_mtime): Remove.
951
952 2020-10-29 Tom Tromey <tom@tromey.com>
953
954 * gcore.c (default_gcore_mach): Remove.
955 (create_gcore_bfd): Update.
956
957 2020-10-29 Tom Tromey <tom@tromey.com>
958
959 * progspace.c (program_space::exec_close): New method, from
960 exec_close in exec.c.
961 * exec.c (exec_close): Move to progspace.c.
962 (exec_target::close, exec_file_attach): Update.
963 * progspace.h (struct program_space) <exec_close>: Declare
964 method.
965
966 2020-10-29 Tom Tromey <tom@tromey.com>
967
968 * progspace.h (struct program_space) <exec_filename>: Rename from
969 pspace_exec_filename. Now a unique_xmalloc_ptr.
970 * inferior.c (print_selected_inferior): Update.
971 (print_inferior): Update.
972 * mi/mi-main.c (print_one_inferior): Update.
973 * exec.h (exec_filename): Remove macro.
974 * corefile.c (get_exec_file): Update.
975 * exec.c (exec_close): Update.
976 (exec_file_attach): Update.
977 * progspace.c (clone_program_space): Update.
978 (print_program_space): Update.
979
980 2020-10-29 Tom Tromey <tom@tromey.com>
981
982 * target-section.h (struct target_section): Add constructor.
983 * exec.c (build_section_table, add_target_sections_of_objfile):
984 Update.
985 * corelow.c (core_target::build_file_mappings): Update.
986
987 2020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
988
989 PR gdb/19318
990 * inferior.c (detach_inferior_command): Restore the current thread.
991 (kill_inferior_command): Ditto.
992
993 2020-10-28 Tom de Vries <tdevries@suse.de>
994
995 PR symtab/26772
996 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
997 map, check it in the "best match" loop.
998
999 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1000
1001 * m32c-tdep.c: Remove unused includes.
1002
1003 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1004
1005 * xtensa-tdep.c: Remove includes.
1006
1007 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1008
1009 * breakpoint.c (struct condition_command_opts): New struct.
1010 (condition_command_option_defs): New static global.
1011 (make_condition_command_options_def_group): New function.
1012 (condition_completer): Update to consider the '-force' flag.
1013 (condition_command): Use gdb::option for the '-force' flag.
1014
1015 2020-10-27 Tom de Vries <tdevries@suse.de>
1016
1017 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
1018 symbols in section check.
1019
1020 2020-10-27 Tom de Vries <tdevries@suse.de>
1021
1022 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
1023
1024 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1025
1026 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
1027 * breakpoint.c: Update the help text of the 'condition' and 'break'
1028 commands.
1029 (set_breakpoint_condition): Take a new bool parameter
1030 to control whether condition definition should be forced even when
1031 the condition expression is invalid in all of the current locations.
1032 (condition_command): Update the call to 'set_breakpoint_condition'.
1033 (find_condition_and_thread): Take the "-force-condition" flag into
1034 account.
1035 * linespec.c (linespec_keywords): Add "-force-condition" as an
1036 element.
1037 (FORCE_KEYWORD_INDEX): New #define.
1038 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
1039 as a keyword.
1040 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
1041 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
1042 * python/py-breakpoint.c (bppy_set_condition): Ditto.
1043 * NEWS: Mention the changes to the 'break' and 'condition' commands.
1044
1045 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1046
1047 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
1048 * breakpoint.c (set_breakpoint_location_condition): New function.
1049 (set_breakpoint_condition): Disable a breakpoint location if parsing
1050 the condition string gives an error.
1051 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
1052 (build_target_condition_list): Ditto.
1053 (build_target_command_list): Ditto.
1054 (build_bpstat_chain): Ditto.
1055 (print_one_breakpoint_location): Ditto.
1056 (print_one_breakpoint): Ditto.
1057 (breakpoint_1): Ditto.
1058 (bp_location::bp_location): Ditto.
1059 (locations_are_equal): Ditto.
1060 (update_breakpoint_locations): Ditto.
1061 (enable_disable_bp_num_loc): Ditto.
1062 (init_breakpoint_sal): Use set_breakpoint_location_condition.
1063 (find_condition_and_thread_for_sals): New static function.
1064 (create_breakpoint): Call find_condition_and_thread_for_sals.
1065 (location_to_sals): Call find_condition_and_thread_for_sals instead
1066 of find_condition_and_thread.
1067
1068 2020-10-26 Tom de Vries <tdevries@suse.de>
1069
1070 * dwarf2/read.c (process_full_comp_unit): Call
1071 dwarf2_find_base_address.
1072
1073 2020-10-26 Tom Tromey <tromey@adacore.com>
1074
1075 * gdbtypes.c (create_range_type): Revert previous patch. Add
1076 comment.
1077
1078 2020-10-26 Pedro Alves <pedro@palves.net>
1079
1080 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
1081 (my_waitpid): Use gdb::handle_eintr.
1082
1083 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
1084
1085 * acinclude.m4: Update ptrace.m4 path.
1086 * ptrace.m4: Moved to gdbsupport.
1087
1088 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1089
1090 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
1091 instead of target_gdbarch.
1092
1093 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1094
1095 * jit.c (jit_reader_load_command): Pass current inferior.
1096 (jit_inferior_init): Change parameter type to inferior, use it.
1097 (jit_inferior_created): Remove.
1098 (jit_inferior_created_hook): Pass inferior parameter down.
1099 (_initialize_jit): Use jit_inferior_created_hook instead of
1100 jit_inferior_created.
1101 * jit.h (jit_inferior_created_hook): Add inferior parameter.
1102 * infrun.c (follow_exec): Pass inferior to
1103 jit_inferior_created_hook.
1104
1105 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
1106
1107 * linux-thread-db.c (check_pid_namespace_match): Add inferior
1108 parameter and use it.
1109 (thread_db_inferior_created): Pass inferior argument.
1110
1111 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
1112
1113 * aix-thread.c (aix_thread_inferior_created): Add inferior
1114 parameter.
1115 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
1116 * dummy-frame.c (cleanup_dummy_frames): Likewise.
1117 * jit.c (jit_inferior_created): Likewise.
1118 * linux-thread-db.c (thread_db_inferior_created): Likewise.
1119 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
1120 * observable.h (inferior_created): Likewise.
1121 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
1122 * symfile-mem.c (add_vsyscall_page): Likewise.
1123 * infcmd.c (post_create_inferior): Pass inferior argument.
1124
1125 2020-10-24 Joel Brobecker <brobecker@adacore.com>
1126
1127 GDB 10.1 released.
1128
1129 2020-10-23 Joel Brobecker <brobecker@adacore.com>
1130
1131 * ada-typeprint.c (ada_print_type): Remove superfluous second call
1132 to ada_check_typedef.
1133
1134 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1135
1136 * f-exp.y (f_parse): Rename to...
1137 (f_language::parser): ...this.
1138 * f-lang.c (f_get_encoding): Rename to...
1139 (f_language::get_encoding): ...this.
1140 (f_op_print_tab): Rename to...
1141 (f_language::op_print_tab): ...this.
1142 (exp_descriptor_f): Rename to...
1143 (f_language::exp_descriptor_tab): ...this.
1144 (class f_language): Moved to f-lang.h.
1145 (f_language::language_arch_info): New function, moved out of class
1146 declaration.
1147 (f_language::search_name_hash): Likewise.
1148 (f_language::lookup_symbol_nonlocal): Likewise.
1149 (f_language::get_symbol_name_matcher_inner): Likewise.
1150 * f-lang.h: Add 'valprint.h' include.
1151 (class f_language): Moved here from f-lang.c.
1152 * f-typeprint.c (f_type_print_args): Delete commented out
1153 declaration.
1154 (f_print_typedef): Rename to...
1155 (f_language::print_typedef): ...this.
1156 (f_print_type): Rename to...
1157 (f_language::print_type): ...this.
1158 (f_type_print_varspec_prefix): Delete declaration and rename to...
1159 (f_language::f_type_print_varspec_prefix): ...this.
1160 (f_type_print_varspec_suffix): Delete declaration and rename to...
1161 (f_language::f_type_print_varspec_suffix): ...this.
1162 (f_type_print_base): Delete declaration and rename to...
1163 (f_language::f_type_print_base): ...this.
1164 * f-valprint.c (f_value_print_inner): Rename to...
1165 (f_language::value_print_inner): ...this.
1166 * parse.c: Delete 'f-lang.h' include.
1167
1168 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1169
1170 * language.h (language_defn::print_type): Add variable names in
1171 declaration, and update header comment.
1172
1173 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1174
1175 * ada-lang.c (ada_language::demangle): Rename to...
1176 (ada_language::demangle_symbol): ...this.
1177 * c-lang.c (cplus_language::demangle): Rename to...
1178 (cplus_language::demangle_symbol): ...this.
1179 * d-lang.c (d_language::demangle): Rename to...
1180 (d_language::demangle_symbol): ...this.
1181 * f-lang.c (f_language::demangle): Rename to...
1182 (f_language::demangle_symbol): ...this.
1183 * go-lang.c (go_language::demangle): Rename to...
1184 (go_language::demangle_symbol): ...this.
1185 * language.c (language_demangle): Update call to demangle_symbol.
1186 (auto_or_unknown_language::demangle): Rename to...
1187 (auto_or_unknown_language::demangle_symbol): ...this.
1188 * language.h (language_defn::demangle): Rename to...
1189 (language_defn::demangle_symbol): ...this.
1190 * objc-lang.c (objc_language::demangle): Rename to...
1191 (objc_language::demangle_symbol): ...this.
1192 * rust-lang.c (rust_language::demangle): Rename to...
1193 (rust_language::demangle_symbol): ...this.
1194
1195 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1196
1197 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
1198 (iterate_over_file_blocks): Replace use of macro with the macros
1199 definition.
1200
1201 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1202
1203 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
1204 * valprint.c (maybe_print_array_index): Replace use of macro with
1205 the macros definition.
1206
1207 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1208
1209 * ada-lang.c (ada_language::print_array_index): Call value_print
1210 directly.
1211 * language.c (language_defn::print_array_index): Likewise.
1212 * language.h (LA_VALUE_PRINT): Delete.
1213 * valprint.c (value_print): Call value_print on the
1214 current_language directly.
1215
1216 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1217
1218 * language.h (LA_PRINT_TYPEDEF): Delete.
1219 * typeprint.c (typedef_print): Call print_typedef directly on the
1220 current_language object.
1221
1222 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1223
1224 * m2-exp.y (m2_parse): Rename to...
1225 (m2_language::parser): ...this. Update function signature.
1226 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
1227 (m2_op_print): Rename to...
1228 (m2_language::op_print_tab): ...this, and make const.
1229 (exp_descriptor_modula2): Rename to...
1230 (m2_language::exp_descriptor_modula2): ...this.
1231 (class m2_language): Move to m2-lang.h.
1232 (m2_language::language_arch_info): New function, moved out of
1233 class declaration.
1234 (m2_language::printchar): New function, body from m2_printchar.
1235 (m2_language::printstr): New function, moved out of class
1236 declaration.
1237 (m2_language::emitchar): Likewise.
1238 * m2-lang.h (m2_parse): Delete declaration.
1239 (m2_print_typedef): Delete declaration.
1240 (m2_value_print_inner): Delete declaration.
1241 (class m2_language): Class declaration moved from m2-lang.c,
1242 larger functions are left in m2-lang.c.
1243 * m2-typeprint.c (m2_print_typedef): Rename to...
1244 (m2_language::print_typedef): ...this, and update function
1245 signature.
1246 * m2-valprint.c (m2_value_print_inner): Rename to...
1247 (m2_language::value_print_inner): ...this, replace use of
1248 LA_PRINT_STRING with a direct call to printstr member function,
1249 and update recursive call.
1250
1251 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1252
1253 * language.c (default_is_string_type_p): Delete, implementation
1254 moved into auto_or_unknown_language::is_string_type_p.
1255 (unk_op_print_tab): Moved into
1256 auto_or_unknown_language::opcode_print_table.
1257 (unknown_language_arch_info): Delete, implementation moved into
1258 auto_or_unknown_language::language_arch_info.
1259 (class auto_or_unknown_language): New class, member functions
1260 copied from unknown_language class, with some updates.
1261 (class unknown_language): Most member functions moved into
1262 auto_or_unknown_language class. Inherit from
1263 auto_or_unknown_language class.
1264 (class auto_language): Inherit from auto_or_unknown_language.
1265 Delete most member functions.
1266
1267 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
1268
1269 * stabsread.c (read_member_functions): Remove gdb_assert.
1270
1271 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
1272
1273 * gdbtypes.c (init_complex_type): Check target type name.
1274
1275 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1276
1277 * target-debug.h (target_debug_print_struct_target_ops_p):
1278 Remove.
1279 (target_debug_print_async_callback_ftype_p): Remove.
1280 (target_debug_print_struct_trace_state_variable_p): Remove.
1281 (target_debug_print_struct_traceframe_info_p): Remove.
1282 (target_debug_print_VEC__btrace_block_s__pp): Remove.
1283 (target_debug_print_enum_btrace_format): Remove.
1284 (target_debug_print_enum_info_proc_what): Remove.
1285 (target_debug_print_thread_info_pp): Remove.
1286
1287 2020-10-22 Simon Marchi <simon.marchi@efficios.com>
1288
1289 * target.h (struct target_ops) <make_corefile_notes>:
1290 Change return type to unique pointer.
1291 * target.c (dummy_make_corefile_notes): Likewise.
1292 * exec.c (struct exec_target) <make_corefile_notes>:
1293 Likewise.
1294 (exec_target::make_corefile_notes): Likewise.
1295 * procfs.c (class procfs_target) <make_corefile_notes>:
1296 Likewise.
1297 (procfs_do_thread_registers): Adjust to unique pointer.
1298 (struct procfs_corefile_thread_data): Add constructor.
1299 <note_data>: Change type to unique pointer.
1300 (procfs_corefile_thread_callback): Adjust to unique pointer.
1301 (procfs_target::make_corefile_notes): Change return type to
1302 unique pointer.
1303 * target-delegates.c: Re-generate.
1304 * gcore.c (write_gcore_file_1): Adjust.
1305 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
1306 New.
1307
1308 2020-10-22 Tom de Vries <tdevries@suse.de>
1309
1310 * block.c (find_block_in_blockvector): Make sure the returned block
1311 contains pc.
1312
1313 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1314
1315 PR gdb/26693
1316 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
1317 parameter.
1318 (load_cu): Pass existing CU.
1319 (process_imported_unit_die): Likewise.
1320 (follow_die_offset): Likewise.
1321
1322 2020-10-22 Luis Machado <luis.machado@linaro.org>
1323
1324 * corelow.c (core_target::xfer_partial): Also check for an empty
1325 m_core_unavailable_mappings vector.
1326
1327 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1328
1329 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
1330 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
1331 * f-exp.y (arglist): Allow for a series of subranges.
1332 (subrange): Add cases for subranges with strides.
1333 * f-lang.c (value_f90_subarray): Catch use of array strides and
1334 throw an error.
1335 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
1336
1337 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1338
1339 * expprint.c (print_subexp_standard): Change enum range_type to
1340 range_flag and rename variables to match.
1341 (dump_subexp_body_standard): Likewise.
1342 * expression.h (enum range_type): Rename to...
1343 (enum range_flag): ...this.
1344 (range_types): Rename to...
1345 (range_flags): ...this.
1346 * f-lang.c (value_f90_subarray): Change enum range_type to
1347 range_flag and rename variables to match.
1348 * parse.c (operator_length_standard): Likewise.
1349 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
1350 range_type to range_flag.
1351 * rust-lang.c (rust_evaluate_funcall): Likewise.
1352 (rust_range): Likewise.
1353 (rust_compute_range): Likewise.
1354 (rust_subscript): Likewise.
1355
1356 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1357
1358 * expprint.c (print_subexp_standard): Update to reflect changes to
1359 enum range_type.
1360 (dump_subexp_body_standard): Likewise.
1361 * expression.h (enum range_type): Convert to a bit field enum, and
1362 make the enum unsigned.
1363 * f-exp.y (subrange): Update to reflect changes to enum
1364 range_type.
1365 * f-lang.c (value_f90_subarray): Likewise.
1366 * parse.c (operator_length_standard): Likewise.
1367 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
1368 * rust-lang.c (rust_range): Likewise.
1369 (rust_compute_range): Likewise.
1370 (rust_subscript): Likewise.
1371
1372 2020-10-21 Simon Marchi <simon.marchi@efficios.com>
1373
1374 * infrun.c (displaced_step_in_progress_thread): Fix comment.
1375 (displaced_step_in_progress): Fix comment.
1376
1377 2020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
1378
1379 * gdbarch.sh (make_corefile_notes): Return unique pointer.
1380 * gdbarch.c: Re-generate.
1381 * gdbarch.h: Re-generate.
1382 * gcore.c (write_gcore_file_1): Adjust.
1383 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
1384 constructor.
1385 <note_data>: Change type to unique pointer.
1386 <abort_iteration>: Change type to bool.
1387 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
1388 (fbsd_collect_thread_registers): Return void, adjust.
1389 (struct fbsd_corefile_thread_data): Add construtor.
1390 <note_data>: Change type to unique pointer.
1391 (fbsd_corefile_thread): Adjust.
1392 (fbsd_make_corefile_notes): Return unique pointer, adjust.
1393 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
1394 to unique pointer, adjust.
1395 (struct linux_collect_regset_section_cb_data): Add constructor.
1396 <note_data>: Change type to unique pointer.
1397 <abort_iteration>: Change type to bool.
1398 (linux_collect_thread_registers): Return void, adjust.
1399 (struct linux_corefile_thread_data): Add constructor.
1400 <note_data>: Change type to unique pointer.
1401 (linux_corefile_thread): Adjust.
1402 (linux_make_corefile_notes): Return unique pointer, adjust.
1403
1404 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1405
1406 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
1407 * gdbarch.c: Re-generate.
1408 * gdbarch.h: Re-generate.
1409 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
1410 bool.
1411 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1412 Likewise.
1413 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
1414 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
1415 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
1416 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
1417
1418 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1419
1420 * gdbarch.sh: Make generated predicates return bool.
1421 * gdbarch.c: Re-generate.
1422 * gdbarch.h: Re-generate.
1423
1424 2020-10-20 Tom Tromey <tom@tromey.com>
1425
1426 * varobj-iter.h (struct varobj_item): Remove typedef.
1427
1428 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1429
1430 * infrun.c (currently_stepping): Change int to bool
1431 (maybe_software_singlestep): Likewise.
1432 (show_stop_on_solib_events): Likewise.
1433 (stepping_past_nonsteppable_watchpoint): Likewise.
1434 (displaced_step_in_progress_any_inferior): Likewise.
1435 (displaced_step_in_progress_thread): Likewise.
1436 (keep_going_stepped_thread): Likewise.
1437 (thread_still_needs_step_over): Likewise.
1438 (start_step_over): Likewise.
1439 (do_target_resume): Likewise.
1440 (resume_1): Likewise.
1441 (clear_proceed_status): Likewise.
1442 (thread_still_needs_step_over_bp): Likewise.
1443 (proceed): Likewise.
1444 (switch_back_to_stepped_thread): Likewise.
1445 (adjust_pc_after_break): Likewise.
1446 (stepped_in_from): Likewise.
1447 (handle_stop_requested): Likewise.
1448 (handle_syscall_event): Likewise.
1449 (handle_no_resumed): Likewise.
1450 (handle_inferior_event): Likewise.
1451 (finish_step_over): Likewise.
1452 (handle_signal_stop): Likewise.
1453 (process_event_stop_test): Likewise.
1454
1455 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1456
1457 * infrun.c (get_displaced_stepping_state): Fix comment.
1458
1459 2020-10-20 Andreas Schwab <schwab@linux-m68k.org>
1460
1461 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
1462
1463 2020-10-19 Tom Tromey <tromey@adacore.com>
1464
1465 PR tui/26719
1466 * tui/tui-winsource.h (struct tui_source_window_base)
1467 <refresh_window>: Rename from refresh_pad.
1468 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
1469 Rename from refresh_pad.
1470 (tui_source_window_base::show_source_content)
1471 (tui_source_window_base::do_scroll_horizontal): Update.
1472
1473 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1474
1475 * thread.c (_initialize_thread): Fine-tune the help text of
1476 'info threads'.
1477
1478 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1479
1480 * frame.c: Remove the unused 'uinteger_option_def' type alias.
1481
1482 2020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
1483
1484 * breakpoint.c (handle_jit_event): Add an argument, change how
1485 `jit_event_handler` is called.
1486
1487 2020-10-17 Tom Tromey <tom@tromey.com>
1488
1489 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
1490 (scan_xcoff_symtab): Update.
1491 * psymtab.h (class psymtab_storage) <global_psymbols,
1492 static_psymbols, current_global_psymbols,
1493 current_static_psymbols>: Remove.
1494 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
1495 (match_partial_symbol, lookup_partial_symbol): Update.
1496 (print_partial_symbols): Change parameters.
1497 (dump_psymtab, recursively_search_psymtabs)
1498 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
1499 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
1500 (concat): Remove.
1501 (end_psymtab_common): Simplify.
1502 (append_psymbol_to_list): Change parameters.
1503 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
1504 (init_psymbol_list): Simplify.
1505 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
1506 * psympriv.h (struct partial_symtab) <empty>: New method.
1507 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
1508 Remove.
1509 <global_psymbols, static_psymbols>: New members.
1510 <add_psymbol>: New methods.
1511 (add_psymbol_to_list): Don't declare.
1512 (psymbol_placement): Move earlier.
1513 * mdebugread.c (parse_partial_symbols): Update.
1514 (handle_psymbol_enumerators): Change parameters.
1515 (mdebug_expand_psymtab): Update.
1516 * dwarf2/read.c (process_psymtab_comp_unit_reader)
1517 (add_partial_symbol): Update.
1518 * dwarf2/index-write.c (write_psymbols): Change parameters.
1519 (write_one_signatured_type): Update.
1520 (recursively_count_psymbols): Update.
1521 (recursively_write_psymbols): Update.
1522 (class debug_names) <recursively_write_psymbols>: Update.
1523 <write_psymbols>: Change parameters.
1524 <write_one_signatured_type>: Update.
1525 * dbxread.c (read_dbx_symtab): Update.
1526 (dbx_end_psymtab): Use partial_symtab::empty.
1527 * ctfread.c (struct ctf_context) <pst>: New member.
1528 (create_partial_symtab): Set it.
1529 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
1530 (scan_partial_symbols): Use the psymtab's context. Update.
1531
1532 2020-10-17 Tom Tromey <tom@tromey.com>
1533
1534 * valprint.c (generic_value_print): Remove comment.
1535 * m2-valprint.c (m2_value_print_inner): Remove comment.
1536 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
1537 type.
1538
1539 2020-10-17 Tom de Vries <tdevries@suse.de>
1540
1541 PR symtab/26317
1542 * source.c (select_source_symtab): Handling sal.symtab == NULL for
1543 symbol main.
1544
1545 2020-10-14 Tom de Vries <tdevries@suse.de>
1546
1547 PR gdb/26733
1548 * solib.c (solib_contains_address_p): Handle
1549 'solib->sections == nullptr'.
1550
1551 2020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
1552
1553 PR gdb/26642
1554 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
1555 target can't do async.
1556 * target.c (target_wait): Assert that we don't pass
1557 TARGET_WNOHANG to a target that can't async.
1558
1559 2020-10-13 Kamil Rytarowski <n54@gmx.com>
1560
1561 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
1562 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
1563 * alpha-bsd-nat.c: Adjust include.
1564 * alpha-bsd-tdep.h: Adjust comment.
1565 * alpha-nbsd-tdep.c: Rename to ...
1566 * alpha-netbsd-tdep.c: ... this, adjust include.
1567 * amd64-nbsd-nat.c: Rename to ...
1568 * amd64-netbsd-nat.c: ... this, adjust include.
1569 * amd64-nbsd-tdep.c: Rename to ...
1570 * amd64-netbsd-tdep.c: ... this, adjust include.
1571 * amd64-tdep.h: Adjust include.
1572 * arm-nbsd-nat.c: Rename to ...
1573 * arm-netbsd-nat.c: ... this, adjust include.
1574 * arm-nbsd-tdep.c: Rename to ...
1575 * arm-netbsd-tdep.c: ... this, adjust include.
1576 * arm-nbsd-tdep.h: Rename to ...
1577 * arm-netbsd-tdep.h: ... this, adjust include.
1578 * configure.nat: Adjust file lists.
1579 * configure.tgt: Likewise.
1580 * hppa-nbsd-nat.c: Rename to ...
1581 * hppa-netbsd-nat.c: ... this, adjust include.
1582 * hppa-nbsd-tdep.c: Rename to ...
1583 * hppa-netbsd-tdep.c: ... this, adjust include.
1584 * i386-nbsd-nat.c: Rename to ...
1585 * i386-netbsd-nat.c: ... this, adjust include.
1586 * i386-nbsd-tdep.c: Rename to ...
1587 * i386-netbsd-tdep.c: ... this, adjust include.
1588 * m68k-bsd-nat.c: Adjust include.
1589 * mips-nbsd-nat.c: Rename to ...
1590 * mips-netbsd-nat.c: ... this, adjust include.
1591 * mips-nbsd-tdep.c: Rename to ...
1592 * mips-netbsd-tdep.c: ... this, adjust include.
1593 * mips-nbsd-tdep.h: Rename to ...
1594 * mips-netbsd-tdep.h: ... this.
1595 * nbsd-nat.c: Rename to ...
1596 * netbsd-nat.c: ... this, adjust include.
1597 * nbsd-nat.h: Rename to ...
1598 * netbsd-nat.h: ... this, adjust include.
1599 * nbsd-tdep.c: Rename to ...
1600 * netbsd-tdep.c: ... this, adjust include.
1601 * nbsd-tdep.h: Rename to ...
1602 * netbsd-tdep.h: ... this.
1603 * ppc-nbsd-nat.c: Rename to ...
1604 * ppc-netbsd-nat.c: ... this, adjust include.
1605 * ppc-nbsd-tdep.c: Rename to ...
1606 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
1607 * ppc-nbsd-tdep.h: Rename to ...
1608 * ppc-netbsd-tdep.h: ... this.
1609 * sh-nbsd-nat.c: Rename to ...
1610 * sh-netbsd-nat.c: ... this, adjust include.
1611 * sh-nbsd-tdep.c: Rename to ...
1612 * sh-netbsd-tdep.c: ... this, adjust include.
1613 * sparc-nbsd-nat.c: Rename to ...
1614 * sparc-netbsd-nat.c: ... this.
1615 * sparc-nbsd-tdep.c: Rename to ...
1616 * sparc-netbsd-tdep.c: ... this, adjust include.
1617 * sparc64-nbsd-nat.c: Rename to ...
1618 * sparc64-netbsd-nat.c: ... this.
1619 * sparc64-nbsd-tdep.c: Rename to ...
1620 * sparc64-netbsd-tdep.c: ... this, adjust include.
1621 * sparc64-tdep.h: Adjust comment.
1622 * vax-bsd-nat.c: Adjust include.
1623 * vax-nbsd-tdep.c: Rename to ...
1624 * vax-netbsd-tdep.c: ... this, adjust include.
1625
1626 2020-10-12 Tom Tromey <tom@tromey.com>
1627
1628 * target.h (struct target_ops) <get_section_table>: Update.
1629 (target_get_section_table): Update.
1630 * target.c (target_get_section_table, target_section_by_addr)
1631 (memory_xfer_partial_1): Update.
1632 * target-section.h (target_section_table): Now an alias.
1633 * target-delegates.c: Rebuild.
1634 * target-debug.h (target_debug_print_target_section_table_p):
1635 Rename from target_debug_print_struct_target_section_table_p.
1636 * symfile.c (build_section_addr_info_from_section_table): Update.
1637 * solib.c (solib_map_sections, solib_contains_address_p): Update.
1638 * solib-svr4.c (scan_dyntag): Update.
1639 * solib-dsbt.c (scan_dyntag): Update.
1640 * remote.c (remote_target::remote_xfer_live_readonly_partial):
1641 Update.
1642 * record-full.c (record_full_core_target::xfer_partial): Update.
1643 * progspace.h (struct program_space) <target_sections>: Update.
1644 * exec.h (print_section_info): Update.
1645 * exec.c (exec_target::close, build_section_table)
1646 (add_target_sections, add_target_sections_of_objfile)
1647 (remove_target_sections, exec_on_vfork)
1648 (section_table_available_memory)
1649 (section_table_xfer_memory_partial)
1650 (exec_target::get_section_table, exec_target::xfer_partial)
1651 (print_section_info, set_section_command)
1652 (exec_set_section_address, exec_target::has_memory): Update.
1653 * corelow.c (core_target::build_file_mappings)
1654 (core_target::xfer_partial, core_target::info_proc_mappings)
1655 (core_target::info_proc_mappings): Update.
1656 * bfd-target.c (class target_bfd): Update
1657
1658 2020-10-12 Tom Tromey <tom@tromey.com>
1659
1660 * progspace.c (program_space::~program_space): Don't call
1661 clear_section_table.
1662 * exec.h (clear_section_table): Don't declare.
1663 * exec.c (exec_target::close): Update.
1664 (clear_section_table): Remove.
1665
1666 2020-10-12 Tom Tromey <tom@tromey.com>
1667
1668 * exec.c (add_target_sections_of_objfile): Simplify.
1669
1670 2020-10-12 Tom Tromey <tom@tromey.com>
1671
1672 * solib.c (solib_map_sections): Update.
1673 * record-full.c (record_full_core_open_1): Update.
1674 * exec.h (build_section_table): Return a target_section_table.
1675 * exec.c (exec_file_attach): Update.
1676 (build_section_table): Return a target_section_table.
1677 * corelow.c (core_target::core_target): Update.
1678 * bfd-target.c (target_bfd::target_bfd): Update.
1679
1680 2020-10-12 Tom Tromey <tom@tromey.com>
1681
1682 * target.c (target_section_by_addr, memory_xfer_partial_1):
1683 Update.
1684 * target-section.h (struct target_section_table): Use
1685 std::vector.
1686 * symfile.h (build_section_addr_info_from_section_table): Take a
1687 target_section_table.
1688 * symfile.c (build_section_addr_info_from_section_table): Take a
1689 target_section_table.
1690 * solist.h (struct so_list) <sections>: Change type.
1691 <sections_end>: Remove.
1692 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
1693 (solib_contains_address_p): Update.
1694 * solib-svr4.c (scan_dyntag): Update.
1695 * solib-dsbt.c (scan_dyntag): Update.
1696 * remote.c (remote_target::remote_xfer_live_readonly_partial):
1697 Update.
1698 * record-full.c (record_full_core_start, record_full_core_end):
1699 Remove.
1700 (record_full_core_sections): New global.
1701 (record_full_core_open_1, record_full_core_target::xfer_partial):
1702 Update.
1703 * exec.h (build_section_table, section_table_xfer_memory_partial)
1704 (add_target_sections): Take a target_section_table.
1705 * exec.c (exec_file_attach, clear_section_table): Update.
1706 (resize_section_table): Remove.
1707 (build_section_table, add_target_sections): Take a
1708 target_section_table.
1709 (add_target_sections_of_objfile, remove_target_sections)
1710 (exec_on_vfork): Update.
1711 (section_table_available_memory): Take a target_section_table.
1712 (section_table_read_available_memory): Update.
1713 (section_table_xfer_memory_partial): Take a target_section_table.
1714 (print_section_info, set_section_command)
1715 (exec_set_section_address, exec_target::has_memory): Update.
1716 * corelow.c (class core_target) <m_core_section_table,
1717 m_core_file_mappings>: Remove braces.
1718 <~core_target>: Remove.
1719 (core_target::core_target): Update.
1720 (core_target::~core_target): Remove.
1721 (core_target::build_file_mappings)
1722 (core_target::xfer_memory_via_mappings)
1723 (core_target::xfer_partial, core_target::info_proc_mappings):
1724 Update.
1725 * bfd-target.c (target_bfd::xfer_partial): Update.
1726 (target_bfd::target_bfd): Update.
1727 (target_bfd::~target_bfd): Remove.
1728
1729 2020-10-12 Tom Tromey <tom@tromey.com>
1730
1731 * target.h (struct target_section, struct target_section_table):
1732 Move to target-section.h.
1733 * target-section.h: New file.
1734
1735 2020-10-12 Pedro Alves <pedro@palves.net>
1736
1737 PR exp/26602
1738 * valops.c (struct struct_field_searcher): New.
1739 (update_search_result): Rename to ...
1740 (struct_field_searcher::update_result): ... this. Simplify
1741 prototype. Record all found fields.
1742 (do_search_struct_field): Rename to ...
1743 (struct_field_searcher::search): ... this. Simplify prototype.
1744 Maintain stack of visited baseclass path. Call update_result for
1745 fields too. Keep searching fields in baseclasses instead of
1746 stopping at the first found field.
1747 (search_struct_field): Use struct_field_searcher. When looking
1748 for fields, report ambiguous access attempts.
1749
1750 2020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
1751
1752 * frame.c (inside_main_func): Check full symbols as well as
1753 minimal symbols.
1754
1755 2020-10-09 Joel Brobecker <brobecker@adacore.com>
1756
1757 * ada-lang.c (advance_wild_match): Rewrite the function's
1758 description. Change the type of target0, t0 and t1 to char.
1759
1760 2020-10-09 Tom Tromey <tromey@adacore.com>
1761
1762 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
1763
1764 2020-10-09 Tom Tromey <tromey@adacore.com>
1765
1766 * ada-lang.h (ada_encode): Return std::string.
1767 * ada-lang.c (ada_encode_1): Return std::string.
1768 (ada_encode): Likewise.
1769 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
1770 Update.
1771 * ada-exp.y (block_lookup, write_var_or_type): Update.
1772
1773 2020-10-09 Hannes Domani <ssbssa@yahoo.de>
1774
1775 PR exp/26714
1776 * printcmd.c (print_formatted): Handle void results as
1777 unformatted prints.
1778
1779 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
1780
1781 * arch/aarch32.c (aarch32_create_target_description): Release the
1782 target_desc_up as late as possible.
1783 * arch/aarch64.c (aarch64_create_target_description): Likewise.
1784 * arch/amd64.c (amd64_create_target_description): Likewise.
1785 * arch/arc.c (arc_create_target_description): Return a
1786 target_desc_up, don't release it.
1787 * arch/arc.h (arc_create_target_description): Update declaration.
1788 (arc_lookup_target_description): Move target_desc_up into the
1789 cache, and return a borrowed pointer.
1790 * arch/arm.c (arm_create_target_description): Release the
1791 target_desc_up as late as possible.
1792 * arch/i386.c (i386_create_target_description): Likewise.
1793 * arch/riscv.h (riscv_create_target_description): Update
1794 declaration to match definition.
1795 * arch/tic6x.c (tic6x_create_target_description): Release the
1796 target_desc_up as late as possible.
1797
1798 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
1799
1800 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
1801 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
1802
1803 2020-10-09 Jan Vrany <jan.vrany@labware.com>
1804
1805 * source.c (directory_command): Notify observers that "directories"
1806 parameter has changed.
1807
1808 2020-10-08 Tom Tromey <tom@tromey.com>
1809
1810 * cli/cli-cmds.c (print_disassembly): Style function name and
1811 addresses. Add _() wrappers.
1812
1813 2020-10-08 Shahab Vahedi <shahab@synopsys.com>
1814
1815 * NEWS: Mention ARC support in GDBserver.
1816
1817 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
1818
1819 * arch/aarch32.c (aarch32_create_target_description): Release
1820 unique_ptr returned from allocate_target_description.
1821 * arch/aarch64.c (aarch64_create_target_description): Likewise.
1822 * arch/amd64.c (amd64_create_target_description): Likewise.
1823 * arch/arc.c (arc_create_target_description): Likewise.
1824 * arch/arm.c (arm_create_target_description): Likewise.
1825 * arch/i386.c (i386_create_target_description): Likewise.
1826 * arch/riscv.c (riscv_create_target_description): Update return
1827 type. Handle allocate_target_description returning a unique_ptr.
1828 (riscv_lookup_target_description): Update to handle unique_ptr.
1829 * arch/tic6x.c (tic6x_create_target_description): Release
1830 unique_ptr returned from allocate_target_description.
1831 * features/microblaze-with-stack-protect.c: Regenerate.
1832 * features/microblaze.c: Regenerate.
1833 * features/mips-dsp-linux.c: Regenerate.
1834 * features/mips-linux.c: Regenerate.
1835 * features/mips64-dsp-linux.c: Regenerate.
1836 * features/mips64-linux.c: Regenerate.
1837 * features/nds32.c: Regenerate.
1838 * features/nios2.c: Regenerate.
1839 * features/or1k.c: Regenerate.
1840 * features/rs6000/powerpc-32.c: Regenerate.
1841 * features/rs6000/powerpc-32l.c: Regenerate.
1842 * features/rs6000/powerpc-403.c: Regenerate.
1843 * features/rs6000/powerpc-403gc.c: Regenerate.
1844 * features/rs6000/powerpc-405.c: Regenerate.
1845 * features/rs6000/powerpc-505.c: Regenerate.
1846 * features/rs6000/powerpc-601.c: Regenerate.
1847 * features/rs6000/powerpc-602.c: Regenerate.
1848 * features/rs6000/powerpc-603.c: Regenerate.
1849 * features/rs6000/powerpc-604.c: Regenerate.
1850 * features/rs6000/powerpc-64.c: Regenerate.
1851 * features/rs6000/powerpc-64l.c: Regenerate.
1852 * features/rs6000/powerpc-7400.c: Regenerate.
1853 * features/rs6000/powerpc-750.c: Regenerate.
1854 * features/rs6000/powerpc-860.c: Regenerate.
1855 * features/rs6000/powerpc-altivec32.c: Regenerate.
1856 * features/rs6000/powerpc-altivec32l.c: Regenerate.
1857 * features/rs6000/powerpc-altivec64.c: Regenerate.
1858 * features/rs6000/powerpc-altivec64l.c: Regenerate.
1859 * features/rs6000/powerpc-e500.c: Regenerate.
1860 * features/rs6000/powerpc-e500l.c: Regenerate.
1861 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
1862 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
1863 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
1864 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
1865 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
1866 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
1867 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
1868 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
1869 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
1870 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
1871 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
1872 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
1873 * features/rs6000/powerpc-vsx32.c: Regenerate.
1874 * features/rs6000/powerpc-vsx32l.c: Regenerate.
1875 * features/rs6000/powerpc-vsx64.c: Regenerate.
1876 * features/rs6000/powerpc-vsx64l.c: Regenerate.
1877 * features/rs6000/rs6000.c: Regenerate.
1878 * features/rx.c: Regenerate.
1879 * features/s390-gs-linux64.c: Regenerate.
1880 * features/s390-linux32.c: Regenerate.
1881 * features/s390-linux32v1.c: Regenerate.
1882 * features/s390-linux32v2.c: Regenerate.
1883 * features/s390-linux64.c: Regenerate.
1884 * features/s390-linux64v1.c: Regenerate.
1885 * features/s390-linux64v2.c: Regenerate.
1886 * features/s390-te-linux64.c: Regenerate.
1887 * features/s390-tevx-linux64.c: Regenerate.
1888 * features/s390-vx-linux64.c: Regenerate.
1889 * features/s390x-gs-linux64.c: Regenerate.
1890 * features/s390x-linux64.c: Regenerate.
1891 * features/s390x-linux64v1.c: Regenerate.
1892 * features/s390x-linux64v2.c: Regenerate.
1893 * features/s390x-te-linux64.c: Regenerate.
1894 * features/s390x-tevx-linux64.c: Regenerate.
1895 * features/s390x-vx-linux64.c: Regenerate.
1896 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
1897 from allocate_target_description.
1898 * target-descriptions.c (allocate_target_description): Update
1899 return type.
1900 (print_c_tdesc::visit_pre): Release unique_ptr returned from
1901 allocate_target_description.
1902
1903 2020-10-07 Tom Tromey <tromey@adacore.com>
1904
1905 * unittests/search-memory-selftests.c: New file.
1906 * Makefile.in (SELFTESTS_SRCS): Add
1907 unittests/search-memory-selftests.c.
1908
1909 2020-10-07 Tom Tromey <tromey@adacore.com>
1910
1911 PR gdb/16930:
1912 * findcmd.c (_initialize_mem_search): Mention that the range is
1913 inclusive.
1914
1915 2020-10-07 Tom Tromey <tromey@adacore.com>
1916
1917 * target.h (simple_search_memory): Don't declare.
1918 * target.c (simple_search_memory): Move to gdbsupport.
1919 (default_search_memory): Update.
1920 * remote.c (remote_target::search_memory): Update.
1921
1922 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
1923
1924 * Makefile.in (COMPILE): Add CXXFLAGS.
1925 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
1926 (check-headers): Add CXXFLAGS.
1927
1928 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
1929
1930 * arc-linux-tdep.h: New file.
1931 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
1932 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
1933 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
1934 arc_linux_gregset, arc_linux_v2_regset,
1935 arc_linux_iterate_over_regset_sections,
1936 arc_linux_core_read_description): Implement.
1937 (arc_linux_init_osabi): Set iterate_over_regset_sections.
1938 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
1939 (arc_gdbarch_features_create): Add.
1940 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
1941
1942 2020-10-07 Shahab Vahedi <shahab@synopsys.com>
1943
1944 * arch/arc.h: Rename "arc_gdbarch_features" to
1945 "arc_arch_features".
1946 * arc-tdep.h: Likewise.
1947 * arc-tdep.c: Likewise.
1948
1949 2020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1950
1951 * infcmd.c (attach_command): Remove the redundant call to
1952 `clear_proceed_status`.
1953
1954 2020-10-07 Kamil Rytarowski <n54@gmx.com>
1955
1956 * nat/netbsd-nat.c (write_memory, read_memory): Update.
1957
1958 2020-10-07 Kamil Rytarowski <n54@gmx.com>
1959
1960 * nat/netbsd-nat.c (write_memory, read_memory): Add.
1961 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
1962 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
1963
1964 2020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
1965
1966 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
1967 (_initialize_break_catch_sig): Don't allocate array.
1968
1969 2020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
1970
1971 * symtab.c (find_pc_line): Return unmapped addresses when the
1972 requested address is also unmapped.
1973
1974 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
1975
1976 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
1977 tui/tui-out.h.
1978
1979 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
1980
1981 * amd64-windows-tdep.c (amd64_windows_return_value): Use
1982 type::is_vector instead of TYPE_VECTOR.
1983
1984 2020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
1985
1986 * auto-load.c (auto_load_objfile_script_1): Don't use
1987 debugfile_holder as temporary variable when stripping drive
1988 letter.
1989
1990 2020-10-05 Hannes Domani <ssbssa@yahoo.de>
1991
1992 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
1993 Add TYPE_CODE_COMPLEX.
1994 (amd64_windows_return_value): Fix types returned via XMM0.
1995
1996 2020-10-05 Alan Hayward <alan.hayward@arm.com>
1997
1998 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
1999 AArch64/ARM maintainers.
2000
2001 2020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
2002
2003 * NEWS: Mention set/show debug event-loop.
2004
2005 2020-10-02 Tom Tromey <tromey@adacore.com>
2006
2007 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
2008 REG_EXTENDED.
2009
2010 2020-10-02 Simon Marchi <simon.marchi@efficios.com>
2011
2012 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
2013 * procfs.c (procfs_inferior_created): Remove.
2014 (_initialize_procfs): Don't register procfs_inferior_created.
2015
2016 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2017
2018 * async-event.c (invoke_async_signal_handlers): Add debug
2019 print.
2020 (check_async_event_handlers): Likewise.
2021 * event-top.c (show_debug_event_loop): New function.
2022 (_initialize_event_top): Register "set debug event-loop"
2023 setting.
2024
2025 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2026
2027 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
2028 * debug.h: Remove.
2029 * infrun.c: Include gdbsupport/common-debug.h.
2030 * linux-nat.c: Likewise.
2031
2032 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2033
2034 * async-event.h (create_async_signal_handler): Add name
2035 parameter.
2036 (create_async_event_handler): Likewise.
2037 * async-event.c (struct async_signal_handler) <name>: New field.
2038 (struct async_event_handler) <name>: New field.
2039 (create_async_signal_handler): Assign name.
2040 (create_async_event_handler): Assign name.
2041 * event-top.c (async_init_signals): Pass name when creating
2042 handler.
2043 * infrun.c (_initialize_infrun): Likewise.
2044 * record-btrace.c (record_btrace_push_target): Likewise.
2045 * record-full.c (record_full_open): Likewise.
2046 * remote-notif.c (remote_notif_state_allocate): Likewise.
2047 * remote.c (remote_target::open_1): Likewise.
2048 * tui/tui-win.c (tui_initialize_win): Likewise.
2049
2050 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2051
2052 * async-event.c (initialize_async_signal_handlers): Pass name to
2053 add_file_handler
2054 * event-top.c (ui_register_input_event_handler): Likewise.
2055 * linux-nat.c (linux_nat_target::async): Likewise.
2056 * run-on-main-thread.c (_initialize_run_on_main_thread):
2057 Likewise
2058 * ser-base.c (reschedule): Likewise.
2059 (ser_base_async): Likewise.
2060 * tui/tui-io.c: Likewise.
2061 * top.h (struct ui) <num>: New field.
2062 * top.c (highest_ui_num): New variable.
2063 (ui::ui): Initialize num.
2064
2065 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2066
2067 * observable.h <inferior_created>: Remove parameters. Update all
2068 listeners.
2069 * inferior.h (post_create_inferior): Remove target parameter.
2070 Update all callers.
2071
2072 2020-10-02 Nitika Achra <Nitika.Achra@amd.com>
2073
2074 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
2075 and DW_MACRO_undef_strx.
2076 (dwarf_decode_macros): Likewise
2077 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
2078 which is the value of DW_AT_str_offsets_base.
2079 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
2080 str_offsets_base.
2081
2082 2020-10-01 Kamil Rytarowski <n54@gmx.com>
2083
2084 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
2085
2086 2020-10-01 Kamil Rytarowski <n54@gmx.com>
2087
2088 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
2089 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
2090
2091 2020-10-01 Kamil Rytarowski <n54@gmx.com>
2092
2093 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
2094
2095 2020-09-30 Tom de Vries <tdevries@suse.de>
2096
2097 PR symtab/26683
2098 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
2099
2100 2020-09-30 Tom Tromey <tromey@adacore.com>
2101
2102 * dwarf2/read.c (handle_variant): Use constant_value.
2103
2104 2020-09-29 Tom Tromey <tom@tromey.com>
2105
2106 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
2107 (read_file_scope, dwarf2_get_pc_bounds)
2108 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
2109 (read_structure_type, handle_struct_member_die)
2110 (read_enumeration_type, read_array_type, read_set_type)
2111 (read_tag_pointer_type, read_tag_reference_type)
2112 (read_subroutine_type, read_base_type, read_subrange_type)
2113 (read_full_die_1, partial_die_info::read)
2114 (partial_die_info::read, by, new_symbol)
2115 (dwarf2_const_value_data, dwarf2_const_value_attr)
2116 (dump_die_shallow, dwarf2_fetch_constant_bytes)
2117 (prepare_one_comp_unit): Update.
2118 * dwarf2/attribute.h (DW_UNSND): Remove.
2119
2120 2020-09-29 Tom Tromey <tom@tromey.com>
2121
2122 * dwarf2/read.c (read_func_scope, prototyped_function_p)
2123 (read_subroutine_type, partial_die_info::read)
2124 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
2125 (dwarf2_add_member_fn): Update.
2126 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
2127 * dwarf2/attribute.c (attribute::as_boolean): New method.
2128
2129 2020-09-29 Tom Tromey <tom@tromey.com>
2130
2131 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
2132 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
2133 method.
2134 * dwarf2/attribute.c (attribute::as_virtuality): New method.
2135
2136 2020-09-29 Tom Tromey <tom@tromey.com>
2137
2138 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
2139 the attribute's form.
2140
2141 2020-09-29 Tom Tromey <tom@tromey.com>
2142
2143 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
2144 (dwarf2_add_member_fn): Update.
2145 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
2146 * dwarf2/attribute.c (attribute::defaulted): New method, from
2147 is_valid_DW_AT_defaulted.
2148
2149 2020-09-29 Tom Tromey <tom@tromey.com>
2150
2151 * dwarf2/read.c (dw2_get_file_names_reader)
2152 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
2153 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
2154 (dwarf2_symbol_mark_computed): Use as_unsigned.
2155 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
2156 method.
2157 <form_is_section_offset>: Update comment.
2158
2159 2020-09-29 Tom Tromey <tom@tromey.com>
2160
2161 * dwarf2/read.c (dwarf2_access_attribute): Rename from
2162 dwarf2_default_access_attribute. Look up attribute.
2163 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
2164 Update.
2165
2166 2020-09-29 Tom Tromey <tom@tromey.com>
2167
2168 * dwarf2/read.c (skip_one_die): Update.
2169 (read_full_die_1): Change how reprocessing is done.
2170 (partial_die_info::read): Update.
2171 (read_attribute_value): Remove need_reprocess parameter.
2172 (read_attribute): Likewise.
2173 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
2174 New method.
2175
2176 2020-09-29 Tom Tromey <tom@tromey.com>
2177
2178 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
2179 (dwarf2_const_value_attr, dump_die_shallow)
2180 (dwarf2_fetch_constant_bytes): Update.
2181 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
2182 comment.
2183 <set_address>: New method.
2184 (DW_ADDR): Remove.
2185 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
2186 (attribute::as_string, attribute::as_address): Add assert.
2187
2188 2020-09-29 Tom Tromey <tom@tromey.com>
2189
2190 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
2191 (read_attribute_reprocess, read_attribute_value): Update.
2192 (read_attribute): Clear requires_reprocessing.
2193 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
2194 form_requires_reprocessing>: New methods.
2195 <string_init>: Clear requires_reprocessing.
2196 <set_unsigned_reprocess>: New method.
2197 <name>: Shrink by one bit.
2198 <requires_reprocessing>: New member.
2199 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
2200 method.
2201
2202 2020-09-29 Tom Tromey <tom@tromey.com>
2203
2204 * dwarf2/read.c (read_attribute_value): Update.
2205 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
2206 set_unsigned>: New methods.
2207 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
2208
2209 2020-09-29 Tom Tromey <tom@tromey.com>
2210
2211 * dwarf2/read.c (get_alignment, read_array_order)
2212 (read_attribute_value, dwarf2_const_value_attr)
2213 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
2214 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
2215 New methods.
2216 (DW_SND): Remove.
2217
2218 2020-09-29 Tom Tromey <tom@tromey.com>
2219
2220 * dwarf2/read.c (read_attribute_value, lookup_die_type)
2221 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
2222 Update.
2223 * dwarf2/attribute.h (struct attribute) <as_signature,
2224 set_signature>: New methods.
2225 (DW_SIGNATURE): Remove.
2226
2227 2020-09-29 Tom Tromey <tom@tromey.com>
2228
2229 * dwarf2/read.c (read_call_site_scope)
2230 (handle_data_member_location, dwarf2_add_member_fn)
2231 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
2232 (partial_die_info::read, read_attribute_value)
2233 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
2234 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
2235 (dwarf2_symbol_mark_computed): Update.
2236 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
2237 methods.
2238 (DW_BLOCK): Remove.
2239 * dwarf2/attribute.c (attribute::form_is_block): Add
2240 DW_FORM_data16.
2241
2242 2020-09-29 Tom Tromey <tom@tromey.com>
2243
2244 * dwarf2/read.c (read_cutu_die_from_dwo)
2245 (read_attribute_reprocess, read_attribute_value, read_attribute)
2246 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
2247 (dwarf2_fetch_constant_bytes): Update.
2248 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
2249 <set_string_noncanonical, set_string_canonical>: New methods.
2250 <string_is_canonical>: Update comment.
2251 <canonical_string_p>: Add assert.
2252 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
2253 * dwarf2/attribute.c (attribute::form_is_string): New method.
2254 (attribute::string): Use it.
2255
2256 2020-09-29 Tom Tromey <tom@tromey.com>
2257
2258 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
2259 (dump_die_shallow): Use canonical_string_p.
2260 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
2261 method.
2262
2263 2020-09-29 Tom Tromey <tom@tromey.com>
2264
2265 * dwarf2/read.c (partial_die_info::read)
2266 (dwarf2_const_value_attr, anonymous_struct_prefix, )
2267 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
2268 attribute::as_string.
2269
2270 2020-09-29 Tom Tromey <tom@tromey.com>
2271
2272 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
2273 DW_ADDR.
2274 (attribute::string): Don't use DW_STRING.
2275 (attribute::get_ref_die_offset): Don't use DW_UNSND.
2276 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
2277
2278 2020-09-29 Tom Tromey <tom@tromey.com>
2279
2280 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
2281 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
2282 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
2283 * dwarf2/attribute.h (struct attribute): Rename methods.
2284 * dwarf2/attribute.c (attribute::as_address): Rename from
2285 value_as_address.
2286 (attribute::as_string): Rename from value_as_string.
2287
2288 2020-09-29 Tom Tromey <tom@tromey.com>
2289
2290 * dwarf2/read.c (partial_die_info::read) <case
2291 DW_AT_linkage_name>: Use value_as_string.
2292 (dwarf2_string_attr): Use value_as_string.
2293 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
2294 method.
2295 * dwarf2/attribute.c (attribute::value_as_string): New method.
2296
2297 2020-09-29 Pedro Alves <pedro@palves.net>
2298
2299 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
2300 defined before using '#pragma GCC diagnostic' instead of checking
2301 __clang__.
2302
2303 2020-09-28 Tom Tromey <tom@tromey.com>
2304
2305 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
2306 (handle_signal_stop): Update.
2307 * procfs.c (procfs_target::insert_watchpoint): Update.
2308 * target.h (target_have_steppable_watchpoint): Now a function.
2309
2310 2020-09-28 Tom Tromey <tom@tromey.com>
2311
2312 * infrun.c (set_schedlock_func): Update.
2313 * target.h (target_can_lock_scheduler): Now a function.
2314
2315 2020-09-28 Tom Tromey <tom@tromey.com>
2316
2317 * inferior.h (class inferior) <has_execution>: Update.
2318 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2319 * valops.c (find_function_in_inferior)
2320 (value_allocate_space_in_inferior): Update.
2321 * top.c (kill_or_detach): Update.
2322 * target.c (target_preopen, set_target_permissions): Update.
2323 (target_has_execution_current): Remove.
2324 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
2325 Update.
2326 * solib.c (update_solib_list, reload_shared_libraries): Update.
2327 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
2328 * solib-dsbt.c (enable_break): Update.
2329 * score-tdep.c (score7_fetch_inst): Update.
2330 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
2331 Update.
2332 * remote.c (remote_target::start_remote)
2333 (remote_target::remote_check_symbols, remote_target::open_1)
2334 (remote_target::remote_detach_1, remote_target::verify_memory)
2335 (remote_target::xfer_partial, remote_target::read_description)
2336 (remote_target::get_min_fast_tracepoint_insn_len): Update.
2337 * record-full.c (record_full_open_1): Update.
2338 * record-btrace.c (record_btrace_target_open): Update.
2339 * objc-lang.c (lookup_objc_class, lookup_child_selector)
2340 (value_nsstring): Update.
2341 * linux-thread-db.c (add_thread_db_info)
2342 (thread_db_find_new_threads_silently, check_thread_db_callback)
2343 (try_thread_db_load_1, record_thread): Update.
2344 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
2345 Update.
2346 * linux-fork.c (checkpoint_command): Update.
2347 * infrun.c (set_non_stop, set_observer_mode)
2348 (check_multi_target_resumption, for_each_just_stopped_thread)
2349 (maybe_remove_breakpoints, normal_stop)
2350 (class infcall_suspend_state): Update.
2351 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
2352 (info_program_command, attach_command): Update.
2353 * infcall.c (call_function_by_hand_dummy): Update.
2354 * inf-loop.c (inferior_event_handler): Update.
2355 * gcore.c (gcore_command, derive_heap_segment): Update.
2356 * exec.c (exec_file_command): Update.
2357 * eval.c (evaluate_subexp): Update.
2358 * compile/compile.c (compile_to_object): Update.
2359 * cli/cli-dump.c (restore_command): Update.
2360 * breakpoint.c (update_watchpoint)
2361 (update_inserted_breakpoint_locations)
2362 (insert_breakpoint_locations, get_bpstat_thread): Update.
2363 * target.h (target_has_execution): Remove macro.
2364 (target_has_execution_current): Don't declare.
2365 (target_has_execution): Rename from target_has_execution_1. Add
2366 argument default.
2367
2368 2020-09-28 Tom Tromey <tom@tromey.com>
2369
2370 * mi/mi-main.c (exec_reverse_continue)
2371 (mi_cmd_list_target_features): Update.
2372 * infrun.c (set_exec_direction_func): Update.
2373 * target.c (default_execution_direction): Update.
2374 * reverse.c (exec_reverse_once): Update.
2375 * target.h (target_can_execute_reverse): Now a function.
2376
2377 2020-09-28 Tom Tromey <tom@tromey.com>
2378
2379 * tui/tui-regs.c (tui_get_register)
2380 (tui_data_window::show_registers): Update.
2381 * thread.c (scoped_restore_current_thread::restore)
2382 (scoped_restore_current_thread::scoped_restore_current_thread):
2383 Update.
2384 * regcache-dump.c (regcache_print): Update.
2385 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2386 Update.
2387 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
2388 * mep-tdep.c (current_me_module, current_options): Update.
2389 * linux-thread-db.c (thread_db_load): Update.
2390 * infcmd.c (registers_info, info_vector_command)
2391 (info_float_command): Update.
2392 * ia64-tdep.c (ia64_frame_prev_register)
2393 (ia64_sigtramp_frame_prev_register): Update.
2394 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
2395 * gcore.c (derive_stack_segment): Update.
2396 * frame.c (get_current_frame, has_stack_frames): Update.
2397 * findvar.c (language_defn::read_var_value): Update.
2398 * arm-tdep.c (arm_pc_is_thumb): Update.
2399 * target.c (target_has_registers): Rename from
2400 target_has_registers_1.
2401 * target.h (target_has_registers): Remove macro.
2402 (target_has_registers): Rename from target_has_registers_1.
2403
2404 2020-09-28 Tom Tromey <tom@tromey.com>
2405
2406 * windows-tdep.c (tlb_make_value): Update.
2407 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2408 * thread.c (scoped_restore_current_thread::restore)
2409 (scoped_restore_current_thread::scoped_restore_current_thread)
2410 (thread_command): Update.
2411 * stack.c (backtrace_command_1, frame_apply_level_command)
2412 (frame_apply_all_command, frame_apply_command): Update.
2413 * infrun.c (siginfo_make_value, restore_infcall_control_state):
2414 Update.
2415 * gcore.c (derive_stack_segment): Update.
2416 * frame.c (get_current_frame, has_stack_frames): Update.
2417 * auxv.c (info_auxv_command): Update.
2418 * ada-tasks.c (ada_build_task_list): Update.
2419 * target.c (target_has_stack): Rename from target_has_stack_1.
2420 * target.h (target_has_stack): Remove macro.
2421 (target_has_stack): Rename from target_has_stack_1.
2422
2423 2020-09-28 Tom Tromey <tom@tromey.com>
2424
2425 * target.c (target_has_memory): Rename from target_has_memory_1.
2426 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2427 * thread.c (scoped_restore_current_thread::restore)
2428 (scoped_restore_current_thread::scoped_restore_current_thread):
2429 Update.
2430 * frame.c (get_current_frame, has_stack_frames): Update.
2431 * target.h (target_has_memory): Remove macro.
2432 (target_has_memory): Rename from target_has_memory_1.
2433
2434 2020-09-28 Tom Tromey <tom@tromey.com>
2435
2436 * target.c (target_has_all_memory_1): Remove.
2437 * target.h (target_has_all_memory): Remove define.
2438 (target_has_all_memory_1): Don't declare.
2439
2440 2020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
2441
2442 * ser-base.c: Adjust comments formatting.
2443
2444 2020-09-27 Tom Tromey <tom@tromey.com>
2445
2446 PR tui/25342:
2447 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
2448
2449 2020-09-27 Tom Tromey <tom@tromey.com>
2450
2451 PR tui/25342:
2452 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
2453
2454 2020-09-27 Tom Tromey <tom@tromey.com>
2455
2456 * unittests/tui-selftests.c: Update.
2457 * tui/tui-winsource.h (struct tui_source_window_base)
2458 <extra_margin, show_line_number, refresh_pad>: New methods.
2459 <m_max_length, m_pad>: New members.
2460 (tui_copy_source_line): Update.
2461 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
2462 first_col, line_width, ndigits parameters. Add length.
2463 (tui_source_window_base::show_source_line): Write to pad. Line
2464 number now 0-based.
2465 (tui_source_window_base::refresh_pad): New method.
2466 (tui_source_window_base::show_source_content): Write to pad. Call
2467 refresh_pad.
2468 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
2469 not refill.
2470 (tui_source_window_base::update_exec_info): Call
2471 show_line_number.
2472 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
2473 method.
2474 <m_digits>: New member.
2475 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
2476 and m_max_length.
2477 (tui_source_window::show_line_number): New method.
2478 * tui/tui-io.h (tui_puts): Fix comment.
2479 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
2480 m_max_length.
2481
2482 2020-09-27 Tom Tromey <tom@tromey.com>
2483
2484 * tui/tui-winsource.c
2485 (tui_source_window_base::set_is_exec_point_at): Don't call
2486 show_source_line.
2487
2488 2020-09-27 Tom Tromey <tom@tromey.com>
2489
2490 * python/py-tui.c (class tui_py_window) <refresh_window>: New
2491 method.
2492 <erase>: Update.
2493 <cursor_x, cursor_y>: Remove.
2494 <m_inner_window>: New member.
2495 (tui_py_window::rerender): Create inner window.
2496 (tui_py_window::output): Write to inner window.
2497
2498 2020-09-26 Gareth Rees <grees@undo.io> (tiny change)
2499
2500 PR python/26586
2501 * cli/cli-script.c (execute_control_commands): don't set
2502 instream to nullptr here as this breaks the from_tty argument
2503 to gdb.execute in Python.
2504 (execute_user_command): set instream to nullptr here instead.
2505
2506 2020-09-25 Simon Marchi <simon.marchi@efficios.com>
2507
2508 * infrun.h (infrun_debug_printf): Fix formatting.
2509 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
2510
2511 2020-09-25 Saagar Jha <saagar@saagarjha.com>
2512
2513 * compile/compile-object-load.h (struct munmap_list): Add
2514 explicitly-defined move constructor.
2515
2516 2020-09-24 Tom Tromey <tromey@adacore.com>
2517
2518 PR tui/26638:
2519 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
2520 method.
2521 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
2522 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
2523 (tui_prev_win): Rewrite.
2524
2525 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
2526
2527 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
2528 in WOW64 processes as SIGINT.
2529 * nat/windows-nat.h: Make wow64_process a shared variable.
2530 * windows-nat.c: Remove static wow64_process variable.
2531
2532 2020-09-23 Tom Tromey <tom@tromey.com>
2533
2534 PR symtab/25470:
2535 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
2536 offset and bit size.
2537 * printcmd.c (print_scalar_formatted): Handle zero-length
2538 integer.
2539 (print_scalar_formatted): Use bit_size_differs_p.
2540 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
2541 constant.
2542 (union type_specific): <int_stuff>: New member.
2543 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
2544 methods.
2545 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
2546 TYPE_SPECIFIC_FIELD.
2547 (recursive_dump_type, copy_type_recursive): Update.
2548 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
2549 DW_AT_data_bit_offset.
2550
2551 2020-09-23 Tom Tromey <tom@tromey.com>
2552
2553 * utils.h (class gdb_argv): Add move operators.
2554 <append>: New methods.
2555 * compile/compile.c (build_argc_argv): Remove.
2556 (compile_args_argc): Remove.
2557 (compile_args_argv): Change type.
2558 (set_compile_args): Simplify.
2559 (append_args): Remove.
2560 (filter_args): Remove argcp parameter.
2561 (get_args): Return gdb_argv. Simplify.
2562 (compile_to_object): Update.
2563
2564 2020-09-23 Tom Tromey <tom@tromey.com>
2565
2566 * compile/compile-object-run.c (do_module_cleanup)
2567 <~do_module_cleanup> :Remove.
2568 (do_module_cleanup): Update.
2569 * compile/compile-object-load.h (struct munmap_list): Add move
2570 assignment operator.
2571 <source_file>: Now a std::string.
2572 <munmap_list>: Rename. No longer a pointer.
2573 * compile/compile-object-load.c (struct setup_sections_data): Add
2574 constructor.
2575 <setup_one_section>: Declare.
2576 <munmap_list>: Move earlier.
2577 <m_bfd>: New member.
2578 <m_last_size, m_last_section_first, m_last_prot,
2579 m_last_max_alignment>: Rename, add initializers where needed.
2580 (setup_sections_data::setup_one_section): Rename from
2581 setup_sections. Update.
2582 (compile_object_load): Update. Don't use bfd_map_over_sections.
2583
2584 2020-09-23 Tom Tromey <tom@tromey.com>
2585
2586 * compile/compile-object-run.c (struct do_module_cleanup): Add
2587 parameters to constructor. Update destructor.
2588 <source_file, scope, scope_data, out_value_type, out_value_addr,
2589 munmap_list_head, objfile_name_string>: Remove.
2590 <module>: New member.
2591 (do_module_cleanup): Update.
2592 (compile_object_run): Update.
2593
2594 2020-09-23 Tom Tromey <tom@tromey.com>
2595
2596 * compile/compile.c (eval_compile_command): Update.
2597 * compile/compile-object-run.h (compile_object_run): Take a
2598 compile_module_up.
2599 * compile/compile-object-run.c (compile_object_run): Take a
2600 compile_module_up.
2601 * compile/compile-object-load.h (struct compile_module): Add
2602 constructor, destructor.
2603 (compile_module_up): New typedef.
2604 (compile_object_load): Return compile_object_up.
2605 * compile/compile-object-load.c (compile_object_load): Return
2606 compile_module_up.
2607
2608 2020-09-23 Tom Tromey <tom@tromey.com>
2609
2610 * compile/compile-object-run.c (struct do_module_cleanup): Add
2611 constructor, destructor.
2612 <objfile_name_string>: Don't use struct hack.
2613 (do_module_cleanup): Use delete.
2614 (compile_object_run): Use new.
2615
2616 2020-09-23 Tom Tromey <tom@tromey.com>
2617
2618 * compile/compile-cplus-types.c
2619 (compile_cplus_convert_struct_or_union): Use std::vector.
2620 (compile_cplus_convert_func): Likewise.
2621 * compile/compile-c-types.c (convert_func): Use std::vector.
2622
2623 2020-09-21 Tom Tromey <tromey@adacore.com>
2624
2625 * sparc-tdep.c (sparc32_skip_prologue): Use
2626 skip_prologue_using_sal.
2627
2628 2020-09-19 Tom Tromey <tom@tromey.com>
2629
2630 * symfile.c (add_section_size_callback): Remove.
2631 (load_one_section): Rename from load_section_callback. Change
2632 parameters.
2633 (generic_load): Use foreach.
2634
2635 2020-09-19 Tom Tromey <tom@tromey.com>
2636
2637 * exec.c (add_to_section_table): Remove.
2638 (build_section_table): Use foreach.
2639
2640 2020-09-19 Tom Tromey <tom@tromey.com>
2641
2642 * elfread.c (elf_locate_sections): Change parameters.
2643 (elf_symfile_read): Use foreach.
2644
2645 2020-09-19 Tom Tromey <tom@tromey.com>
2646
2647 * cli/cli-dump.c (struct callback_data): Remove.
2648 (restore_one_section): Rename from restore_section_callback.
2649 Change parameters.
2650 (restore_binary_file): Change parameters.
2651 (restore_command): Use foreach.
2652
2653 2020-09-19 Tom Tromey <tom@tromey.com>
2654
2655 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
2656 (gcore_copy_callback): Likewise.
2657 (gcore_memory_sections): Use foreach.
2658
2659 2020-09-19 Tom Tromey <tom@tromey.com>
2660
2661 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
2662 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
2663 parameters.
2664 (generic_elf_osabi_sniffer): Use foreach.
2665 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
2666 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
2667
2668 2020-09-19 Tom Tromey <tom@tromey.com>
2669
2670 * dwarf2/read.c (locate_dwz_sections): Change parameters.
2671 (dwarf2_get_dwz_file): Use foreach.
2672 (dwarf2_locate_dwo_sections): Change parameters.
2673 (open_and_init_dwo_file): Use foreach.
2674 (dwarf2_locate_common_dwp_sections): Change parameters.
2675 (open_and_init_dwp_file): Use foreach.
2676
2677 2020-09-19 Tom Tromey <tom@tromey.com>
2678
2679 * symfile.h: (find_lowest_section): Don't declare.
2680 * symfile.c (find_lowest_section): Now static. Change
2681 parameters.
2682 (struct place_section_arg): Remove.
2683 (place_section): Change parameters.
2684 (addr_info_make_relative): Use foreach.
2685 (symfile_dummy_outputs): Remove.
2686 (default_symfile_relocate): Use foreach.
2687
2688 2020-09-19 Tom Tromey <tom@tromey.com>
2689
2690 * objfiles.c (add_to_objfile_sections): Rename from
2691 add_to_objfile_sections_full.
2692 (add_to_objfile_sections): Remove.
2693 (build_objfile_section_table): Use foreach.
2694
2695 2020-09-19 Tom Tromey <tom@tromey.com>
2696
2697 * stap-probe.c (get_stap_base_address_1): Remove.
2698 (get_stap_base_address): Use foreach.
2699
2700 2020-09-19 Tom Tromey <tom@tromey.com>
2701
2702 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
2703 parameters.
2704 (gdb_bfd_close_or_warn): Use foreach.
2705
2706 2020-09-19 Tom Tromey <tom@tromey.com>
2707
2708 * corelow.c (add_to_thread_list): Change parameters.
2709 (core_target_open): Use foreach.
2710
2711 2020-09-19 Tom Tromey <tom@tromey.com>
2712
2713 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
2714 existing function.
2715
2716 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2717
2718 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
2719 for arrays.
2720
2721 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2722
2723 * eval.c: Remove 'f-lang.h' include.
2724 (value_f90_subarray): Moved to f-lang.c.
2725 (eval_call): Renamed to...
2726 (evaluate_subexp_do_call): ...this, is no longer static, header
2727 comment moved into header file.
2728 (evaluate_funcall): Update call to eval_call.
2729 (skip_undetermined_arglist): Moved to f-lang.c.
2730 (fortran_value_subarray): Likewise.
2731 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
2732 moved to evaluate_subexp_f.
2733 (calc_f77_array_dims): Moved to f-lang.c
2734 * expprint.c (print_subexp_funcall): New function.
2735 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
2736 moved to print_subexp_f, OP_FUNCALL uses new function.
2737 (dump_subexp_body_funcall): New function.
2738 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
2739 moved to dump_subexp_f, OP_FUNCALL uses new function.
2740 * expression.h (evaluate_subexp_do_call): Declare.
2741 * f-lang.c (value_f90_subarray): Moved from eval.c.
2742 (skip_undetermined_arglist): Likewise.
2743 (calc_f77_array_dims): Likewise.
2744 (fortran_value_subarray): Likewise.
2745 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
2746 (operator_length_f): Likewise.
2747 (print_subexp_f): Likewise.
2748 (dump_subexp_body_f): Likewise.
2749 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
2750 declaration of this operation to here.
2751 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
2752 support moved to operator_length_f.
2753 * parser-defs.h (dump_subexp_body_funcall): Declare.
2754 (print_subexp_funcall): Declare.
2755 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
2756 fortran-operator.def.
2757
2758 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2759
2760 * eval.c (fortran_value_subarray): New function, content is taken
2761 from...
2762 (evaluate_subexp_standard): ...here, in two places. Now arrays
2763 and strings both call the new function.
2764 (calc_f77_array_dims): Add header comment, handle strings.
2765
2766 2020-09-18 Victor Collod <vcollod@nvidia.com>
2767
2768 PR gdb/26635
2769 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
2770 (i386_analyze_prologue): Call i386_skip_endbr.
2771
2772 2020-09-18 Tom Tromey <tromey@adacore.com>
2773
2774 * windows-nat.c (struct windows_nat_target) <wait>: Update.
2775 (windows_nat_target::wait): Update.
2776 * target/wait.h (enum target_wait_flag): New. Use
2777 DEF_ENUM_FLAGS_TYPE.
2778 * target/target.h (target_wait): Change type of options.
2779 * target.h (target_options_to_string, default_target_wait):
2780 Update.
2781 (struct target_ops) <wait>: Change type of options.
2782 * target.c (target_wait, default_target_wait, do_option): Change
2783 type of "options".
2784 (target_options_to_string): Likewise.
2785 * target-delegates.c: Rebuild.
2786 * target-debug.h (target_debug_print_target_wait_flags): Rename
2787 from target_debug_print_options.
2788 * sol-thread.c (class sol_thread_target) <wait>: Update.
2789 (sol_thread_target::wait): Update.
2790 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
2791 (rs6000_nat_target::wait): Update.
2792 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
2793 Update.
2794 (remote_target::wait_ns, remote_target::wait_as): Change type of
2795 "options".
2796 (remote_target::wait): Update.
2797 * remote-sim.c (struct gdbsim_target) <wait>: Update.
2798 (gdbsim_target::wait): Update.
2799 * record-full.c (class record_full_base_target) <wait>: Update.
2800 (record_full_wait_1): Change type of "options".
2801 (record_full_base_target::wait): Update.
2802 * record-btrace.c (class record_btrace_target) <wait>: Update.
2803 (record_btrace_target::wait): Update.
2804 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
2805 Update.
2806 (ravenscar_thread_target::wait): Update.
2807 * procfs.c (class procfs_target) <wait>: Update.
2808 (procfs_target::wait): Update.
2809 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
2810 * obsd-nat.c (obsd_nat_target::wait): Update.
2811 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
2812 (nto_procfs_target::wait): Update.
2813 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
2814 * nbsd-nat.c (nbsd_wait): Change type of "options".
2815 (nbsd_nat_target::wait): Update.
2816 * linux-thread-db.c (class thread_db_target) <wait>: Update.
2817 (thread_db_target::wait): Update.
2818 * linux-nat.h (class linux_nat_target) <wait>: Update.
2819 * linux-nat.c (linux_nat_target::wait): Update.
2820 (linux_nat_wait_1): Update.
2821 * infrun.c (do_target_wait_1, do_target_wait): Change type of
2822 "options".
2823 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
2824 * inf-ptrace.c (inf_ptrace_target::wait): Update.
2825 * go32-nat.c (struct go32_nat_target) <wait>: Update.
2826 (go32_nat_target::wait): Update.
2827 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
2828 * gnu-nat.c (gnu_nat_target::wait): Update.
2829 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
2830 * fbsd-nat.c (fbsd_nat_target::wait): Update.
2831 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
2832 * darwin-nat.c (darwin_nat_target::wait): Update.
2833 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
2834 (bsd_uthread_target::wait): Update.
2835 * aix-thread.c (class aix_thread_target) <wait>: Update.
2836 (aix_thread_target::wait): Update.
2837
2838 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
2839
2840 * compile/compile-object-run.c (create_copied_type_recursive): New
2841 function.
2842 (compile_object_run): Use new function.
2843
2844 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
2845
2846 * NEWS: Mention x86_64 Cygwin core file support.
2847
2848 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2849
2850 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
2851 (core_process_module_section): Handle NOTE_INFO_MODULE64.
2852
2853 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2854
2855 * windows-tdep.h: Add prototypes.
2856 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
2857 (i386_windows_core_pid_to_str): Move and rename ...
2858 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
2859 (windows_core_pid_to_str): ... and here.
2860 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
2861
2862 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2863 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
2864 (amd64_windows_init_abi_common): ... and register.
2865
2866 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2867
2868 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
2869 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
2870
2871 2020-09-18 Pedro Alves <pedro@palves.net>
2872
2873 PR gdb/26631
2874 * thread.c (thread_find_command): Switch inferior before calling
2875 target methods.
2876
2877 2020-09-17 Tom Tromey <tromey@adacore.com>
2878
2879 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
2880 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
2881 (tdesc_arch_data_up): New typedef.
2882 (tdesc_use_registers, tdesc_data_alloc): Update.
2883 (tdesc_data_cleanup): Don't declare.
2884 * target-descriptions.c (tdesc_data_alloc): Return a
2885 tdesc_arch_data_up.
2886 (tdesc_arch_data_deleter::operator()): Rename from
2887 tdesc_data_cleanup. Change argument type.
2888 (tdesc_use_registers): Change early_data to an rvalue reference.
2889 (tdesc_use_registers): Don't use delete.
2890 * sparc-tdep.c (sparc32_gdbarch_init): Update.
2891 * s390-tdep.c (s390_gdbarch_init): Update.
2892 * rx-tdep.c (rx_gdbarch_init): Update.
2893 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2894 * riscv-tdep.c (riscv_gdbarch_init): Update.
2895 * or1k-tdep.c (or1k_gdbarch_init): Update.
2896 * nios2-tdep.c (nios2_gdbarch_init): Update.
2897 * nds32-tdep.c (nds32_gdbarch_init): Update.
2898 * mips-tdep.c (mips_gdbarch_init): Update.
2899 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
2900 * m68k-tdep.c (m68k_gdbarch_init): Update.
2901 * i386-tdep.c (i386_gdbarch_init): Update.
2902 * arm-tdep.c (arm_gdbarch_init): Update.
2903 * arc-tdep.c (arc_tdesc_init): Update.
2904 (arc_gdbarch_init): Update.
2905 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
2906
2907 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
2908
2909 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
2910 for WOW64 processes.
2911
2912 2020-09-17 Tom Tromey <tom@tromey.com>
2913
2914 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
2915
2916 2020-09-17 Tom Tromey <tom@tromey.com>
2917
2918 * value.c (preserve_values): Update.
2919 * python/py-type.c (save_objfile_types): Update.
2920 * guile/scm-type.c (save_objfile_types): Update.
2921 * gdbtypes.h (create_copied_types_hash): Return htab_up.
2922 * gdbtypes.c (create_copied_types_hash): Return htab_up.
2923 * compile/compile-object-run.c (compile_object_run): Update.
2924
2925 2020-09-17 Tom Tromey <tom@tromey.com>
2926
2927 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
2928 Remove.
2929 <m_table>: Now htab_up.
2930 * typeprint.c (typedef_hash_table::recursively_update)
2931 (typedef_hash_table::add_template_parameters)
2932 (typedef_hash_table::typedef_hash_table): Update.
2933 (typedef_hash_table::~typedef_hash_table): Remove.
2934 (typedef_hash_table::typedef_hash_table)
2935 (typedef_hash_table::find_global_typedef)
2936 (typedef_hash_table::find_typedef): Update.
2937
2938 2020-09-17 Tom Tromey <tom@tromey.com>
2939
2940 * target-descriptions.c (tdesc_use_registers): Use htab_up.
2941
2942 2020-09-17 Tom Tromey <tom@tromey.com>
2943
2944 * linespec.c (class decode_compound_collector)
2945 <~decode_compound_collector>: Remove.
2946 <m_unique_syms>: Now htab_up.
2947 (decode_compound_collector::operator ()): Update.
2948 (class symtab_collector) <~symtab_collector>: Remove.
2949 <m_symtab_table>: Now htab_up.
2950 (symtab_collector::operator ()): Update.
2951
2952 2020-09-17 Tom Tromey <tom@tromey.com>
2953
2954 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
2955 (filename_seen_cache::clear): Update.
2956 (~filename_seen_cache): Remove.
2957 (filename_seen_cache::seen): Update.
2958 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
2959 htab_up.
2960 <~filename_seen_cache>: Remove.
2961 <traverse>: Update.
2962
2963 2020-09-17 Tom Tromey <tom@tromey.com>
2964
2965 * completer.c (completion_tracker::discard_completions)
2966 (completion_tracker::~completion_tracker)
2967 (completion_tracker::maybe_add_completion)
2968 (completion_tracker::remove_completion)
2969 (completion_tracker::recompute_lowest_common_denominator)
2970 (completion_tracker::build_completion_result): Update.
2971 * completer.h (class completion_tracker) <have_completions>:
2972 Update.
2973 <m_entries_hash>: Now htab_up.
2974
2975 2020-09-17 Tom Tromey <tom@tromey.com>
2976
2977 * breakpoint.c (ambiguous_names_p): Use htab_up.
2978
2979 2020-09-17 Tom Tromey <tom@tromey.com>
2980
2981 * auto-load.c (struct auto_load_pspace_info)
2982 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
2983 <loaded_script_files, loaded_script_texts>: Change type to
2984 htab_up.
2985 (~auto_load_pspace_info) Remove.
2986 (init_loaded_scripts_info, maybe_add_script_file)
2987 (maybe_add_script_text, auto_load_info_scripts): Update.
2988
2989 2020-09-17 Tom Tromey <tromey@adacore.com>
2990
2991 * c-exp.y (name_obstack): Now static.
2992
2993 2020-09-17 Chungyi Chi <demonic@csie.io>
2994
2995 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
2996
2997 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
2998
2999 * breakpoint.h (init_catchpoint): Change int parameter to bool.
3000 (add_solib_catchpoint): Likewise.
3001 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
3002 to bool.
3003 (add_solib_catchpoint): Change int parameter/variable to bool.
3004 (catch_load_or_unload): Likewise.
3005 (init_catchpoint): Likewise.
3006 (create_fork_vfork_event_catchpoint): Likewise.
3007 (catch_fork_command_1): Likewise.
3008 (catch_exec_command_1): Likewise.
3009
3010 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
3011
3012 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
3013 Change instance_flags to m_instance_flags.
3014
3015 2020-09-16 Tom Tromey <tromey@adacore.com>
3016
3017 PR gdb/26598:
3018 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
3019
3020 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3021
3022 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
3023 PL_FLAG_EXEC.
3024 (fbsd_nat_target::insert_exec_catchpoint)
3025 (fbsd_nat_target::remove_exec_catchpoint): Always define.
3026 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
3027 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
3028
3029 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3030
3031 * configure.ac: Remove check for kinfo_getvmmap().
3032 * configure, config.in: Regenerate.
3033 * fbsd-nat.c (fbsd_read_mapping): Remove
3034 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
3035 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
3036 kinfo_get_vmmap() are always present.
3037
3038 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3039
3040 * fbsd-nat.c: Always include support for
3041 TARGET_OBJECT_SIGNAL_INFO.
3042
3043 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3044
3045 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
3046 sysctl and remove procfs fallback.
3047
3048 2020-09-16 John Baldwin <jhb@FreeBSD.org>
3049
3050 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
3051 * fbsd-nat.h: Likewise.
3052
3053 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3054
3055 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
3056 argument.
3057
3058 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3059
3060 * ada-lang.c (ada_language_data): Delete.
3061 (ada_language): Remove references to ada_language_data.
3062 * c-lang.c (c_language_data): Delete.
3063 (c_language): Remove references to c_language_data.
3064 (cplus_language_data): Delete.
3065 (cplus_language): Remove references to cplus_language_data.
3066 (asm_language_data): Delete.
3067 (asm_language): Remove references to asm_language_data.
3068 (minimal_language_data): Delete.
3069 (minimal_language): Remove references to minimal_language_data.
3070 * d-lang.c (d_language_data): Delete.
3071 (d_language): Remove references to d_language_data.
3072 * f-lang.c (f_language_data): Delete.
3073 (f_language): Remove references to f_language_data.
3074 * go-lang.c (go_language_data): Delete.
3075 (go_language): Remove references to go_language_data.
3076 * language.c (unknown_language_data): Delete.
3077 (unknown_language): Remove references to unknown_language_data.
3078 (auto_language_data): Delete.
3079 (auto_language): Remove references to auto_language_data.
3080 * language.h (language_data): Delete struct.
3081 (language_defn): No longer inherit from language_data.
3082 * m2-lang.c (m2_language_data): Delete.
3083 (m2_language): Remove references to m2_language_data.
3084 * objc-lang.c (objc_language_data): Delete.
3085 (objc_language): Remove references to objc_language_data.
3086 * opencl-lang.c (opencl_language_data): Delete.
3087 (opencl_language): Remove references to opencl_language_data.
3088 * p-lang.c (pascal_language_data): Delete.
3089 (pascal_language): Remove references to pascal_language_data.
3090 * rust-lang.c (rust_language_data): Delete.
3091 (rust_language): Remove references to rust_language_data.
3092
3093 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3094
3095 * ada-lang.c (ada_language_data): Remove la_op_print_tab
3096 initializer.
3097 (ada_language::opcode_print_table): New member function.
3098 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
3099 (c_language::opcode_print_table): New member function.
3100 (cplus_language_data): Remove la_op_print_tab initializer.
3101 (cplus_language::opcode_print_table): New member function.
3102 (asm_language_data): Remove la_op_print_tab initializer.
3103 (asm_language::opcode_print_table): New member function.
3104 (minimal_language_data): Remove la_op_print_tab initializer.
3105 (minimal_language::opcode_print_table): New member function.
3106 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
3107 (d_language::opcode_print_table): New member function.
3108 * expprint.c (print_subexp_standard): Update call to
3109 opcode_print_table.
3110 (op_string): Likewise.
3111 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
3112 (f_language::opcode_print_table): New member function.
3113 * go-lang.c (go_language_data): Remove la_op_print_tab
3114 initializer.
3115 (go_language::opcode_print_table): New member function.
3116 * language.c (unknown_language_data): Remove la_op_print_tab
3117 initializer.
3118 (unknown_language::opcode_print_table): New member function.
3119 (auto_language_data): Remove la_op_print_tab initializer.
3120 (auto_language::opcode_print_table): New member function.
3121 * language.h (language_data): Remove la_op_print_tab field.
3122 (language_defn::opcode_print_table): Declare new member function.
3123 * m2-lang.c (m2_language_data): Remove la_op_print_tab
3124 initializer.
3125 (m2_language::opcode_print_table): New member function.
3126 * objc-lang.c (objc_language_data): Remove la_op_print_tab
3127 initializer.
3128 (objc_language::opcode_print_table): New member function.
3129 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
3130 initializer.
3131 (opencl_language::opcode_print_table): New member function.
3132 * p-lang.c (pascal_language_data): Remove la_op_print_tab
3133 initializer.
3134 (pascal_language::opcode_print_table): New member function.
3135 * rust-lang.c (rust_language_data): Remove la_op_print_tab
3136 initializer.
3137 (rust_language::opcode_print_table): New member function.
3138
3139 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3140
3141 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
3142 (ada_language::expression_ops): New member function.
3143 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
3144 (c_language::expression_ops): New member function.
3145 (cplus_language_data): Remove la_exp_desc initializer.
3146 (cplus_language::expression_ops): New member function.
3147 (asm_language_data): Remove la_exp_desc initializer.
3148 (asm_language::expression_ops): New member function.
3149 (minimal_language_data): Remove la_exp_desc initializer.
3150 (minimal_language::expression_ops): New member function.
3151 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
3152 (d_language::expression_ops): New member function.
3153 * eval.c (evaluate_subexp): Update call to expression_ops.
3154 * expprint.c (print_subexp): Likewise.
3155 (op_name): Likewise.
3156 (dump_subexp_body): Likewise.
3157 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
3158 (f_language::expression_ops): New member function.
3159 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
3160 (go_language::expression_ops): New member function.
3161 * language.c (language_defn::expression_ops): New function.
3162 (unknown_language_data): Remove la_exp_desc initializer.
3163 (auto_language_data): Likewise.
3164 * language.h (language_data): Remove la_exp_desc field.
3165 (language_defn::expression_ops): Declare new member function.
3166 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
3167 (m2_language::expression_ops): New member function.
3168 * objc-lang.c (objc_language_data): Remove la_exp_desc
3169 initializer.
3170 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
3171 initializer.
3172 (opencl_language::expression_ops): New member function.
3173 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
3174 * parse.c (operator_length): Update call to expression_ops.
3175 (exp_iterate): Likewise.
3176 * rust-lang.c (rust_language_data): Remove la_exp_desc
3177 initializer.
3178 (ruse_language::expression_ops): New member function.
3179
3180 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3181
3182 * ada-lang.c (ada_language_data): Remove la_varobj_ops
3183 initializer.
3184 (ada_language::varobj_ops): New member function.
3185 * c-lang.c (c_language_data): Remove la_varobj_ops
3186 initializer.
3187 (cplus_language_data): Likewise.
3188 (cplus_language::varobj_ops): New member function.
3189 (asm_language_data): Remove la_varobj_ops initializer.
3190 (minimal_language_data): Likewise.
3191 * d-lang.c (d_language_data): Likewise.
3192 * f-lang.c (f_language_data): Likewise.
3193 * go-lang.c (go_language_data): Likewise.
3194 * language.c (language_defn::varobj_ops): New function.
3195 (unknown_language_data): Remove la_varobj_ops
3196 initializer.
3197 (auto_language_data): Likewise.
3198 * language.h (language_data): Remove la_varobj_ops field.
3199 (language_defn::varobj_ops): Declare new member function.
3200 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
3201 * objc-lang.c (objc_language_data): Likewise.
3202 * opencl-lang.c (opencl_language_data): Likewise.
3203 * p-lang.c (pascal_language_data): Likewise.
3204 * rust-lang.c (rust_language_data): Likewise.
3205 * varobj.c (varobj_create): Update call to varobj_ops.
3206 * varobj.h (default_varobj_ops): Delete define.
3207
3208 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3209
3210 * ada-lang.c (ada_language_data): Remove la_macro_expansion
3211 initializer.
3212 * c-lang.c (c_language_data): Likewise.
3213 (c_language::macro_expansion): New member function.
3214 (cplus_language_data): Likewise.
3215 (cplus_language::macro_expansion): New member function.
3216 (asm_language_data): Likewise.
3217 (asm_language::macro_expansion): New member function.
3218 (minimal_language_data): Likewise.
3219 (minimal_language::macro_expansion): New member function.
3220 * d-lang.c (d_language_data): Remove la_macro_expansion
3221 initializer.
3222 * f-lang.c (f_language_data): Likewise.
3223 * go-lang.c (go_language_data): Likewise.
3224 * language.c (unknown_language_data): Likewise.
3225 (auto_language_data): Likewise.
3226 * language.h (language_data): Remove la_macro_expansion field.
3227 (language_defn::macro_expansion): New member function.
3228 * m2-lang.c (m2_language_data): Remove la_macro_expansion
3229 initializer.
3230 * objc-lang.c (objc_language_data): Likewise.
3231 (objc_language::macro_expansion): New member function.
3232 * opencl-lang.c (opencl_language_data): Likewise.
3233 (opencl_language::macro_expansion): New member function.
3234 * p-lang.c (pascal_language_data): Remove la_macro_expansion
3235 initializer.
3236 * rust-lang.c (rust_language_data): Likewise.
3237 * symtab.c (default_collect_symbol_completion_matches_break_on):
3238 Update call to macro_expansion.
3239
3240 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3241
3242 * ada-lang.c (ada_language_data): Remove la_array_ordering
3243 initializer.
3244 * c-lang.c (c_language_data): Likewise.
3245 (cplus_language_data): Likewise.
3246 (asm_language_data): Likewise.
3247 (minimal_language_data): Likewise.
3248 * d-lang.c (d_language_data): Likewise.
3249 * dwarf2/read.c (read_array_order): Update for call to
3250 array_ordering.
3251 * f-lang.c (f_language_data): Remove la_array_ordering
3252 initializer.
3253 (f_language::array_ordering): New member function.
3254 * go-lang.c (go_language_data): Remove la_array_ordering
3255 initializer.
3256 * language.c (unknown_language_data): Likewise.
3257 (auto_language_data): Likewise.
3258 * language.h (language_data): Delete la_array_ordering field.
3259 (language_defn::array_ordering): New member function.
3260 * m2-lang.c (m2_language_data): Remove la_array_ordering
3261 initializer.
3262 * objc-lang.c (objc_language_data): Likewise.
3263 * opencl-lang.c (opencl_language_data): Likewise.
3264 * p-lang.c (pascal_language_data): Likewise.
3265 * rust-lang.c (rust_language_data): Likewise.
3266
3267 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3268
3269 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
3270 initializer.
3271 * c-lang.c (c_language_data): Likewise.
3272 (cplus_language_data): Likewise.
3273 (asm_language_data): Likewise.
3274 (minimal_language_data): Likewise.
3275 * d-lang.c (d_language_data): Likewise.
3276 * f-lang.c (f_language_data): Likewise.
3277 (f_language::case_sensitivity): New member function.
3278 * go-lang.c (go_language_data): Remove la_case_sensitivity
3279 initializer.
3280 * language.c (enum case_mode): Moved here from language.h.
3281 (case_mode): Make static.
3282 (show_case_command): Update for case_sensitivity being a method.
3283 (set_case_command): Likewise.
3284 (set_range_case): Likewise.
3285 (unknown_language_data): Remove la_case_sensitivity initializer.
3286 (auto_language_data): Likewise.
3287 * language.h (case_mode): Delete, move enum declaration to
3288 language.c.
3289 (language_data): Delete la_case_sensitivity field.
3290 (language_defn::case_sensitivity): New member function.
3291 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
3292 initializer.
3293 * objc-lang.c (objc_language_data): Likewise.
3294 * opencl-lang.c (opencl_language_data): Likewise.
3295 * p-lang.c (pascal_language_data): Likewise.
3296 * rust-lang.c (rust_language_data): Likewise.
3297
3298 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3299
3300 * ada-lang.c (ada_language_data): Remove la_range_check
3301 initializer.
3302 * c-lang.c (c_language_data): Likewise.
3303 (cplus_language_data): Likewise.
3304 (asm_language_data): Likewise.
3305 (minimal_language_data): Likewise.
3306 * d-lang.c (d_language_data): Likewise.
3307 * f-lang.c (f_language_data): Likewise.
3308 (f_language::range_checking_on_by_default): New member function.
3309 * go-lang.c (go_language_data): Remove la_range_check initializer.
3310 * language.c (enum range_mode): Moved here from language.h.
3311 (range_mode): Made static.
3312 (show_range_command): Update to use
3313 range_checking_on_by_default.
3314 (set_range_command): Likewise.
3315 (set_range_case): Likewise.
3316 (unknown_language_data): Remove la_range_check initializer.
3317 (auto_language_data): Likewise.
3318 * language.h (range_mode): Delete. Enum definition moved to
3319 language.c.
3320 (language_data): Remove la_range_check field.
3321 (language_defn::range_checking_on_by_default): New member
3322 function.
3323 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
3324 (m2_language::range_checking_on_by_default): New member function.
3325 * objc-lang.c (objc_language_data): Remove la_range_check
3326 initializer.
3327 * opencl-lang.c (opencl_language_data): Likewise.
3328 * p-lang.c (pascal_language_data): Likewise.
3329 (pascal_language::range_checking_on_by_default): New member
3330 function.
3331 * rust-lang.c (rust_language_data): Remove la_range_check
3332 initializer.
3333 (rust_language::range_checking_on_by_default): New member
3334 function.
3335
3336 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3337
3338 * dwarf2/read.c (dwarf2_physname): Remove special case for
3339 language_go.
3340 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
3341 member function.
3342
3343 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3344
3345 * ada-lang.c (ada_language_data): Remove
3346 la_store_sym_names_in_linkage_form_p initializer.
3347 (ada_language::store_sym_names_in_linkage_form_p): New member
3348 function.
3349 * c-lang.c (c_language_data): Remove
3350 la_store_sym_names_in_linkage_form_p initializer.
3351 (c_language::store_sym_names_in_linkage_form_p): New member
3352 function.
3353 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
3354 initializer.
3355 (asm_language_data): Likewise.
3356 (asm_language::store_sym_names_in_linkage_form_p): New member
3357 function.
3358 (minimal_language_data): Remove
3359 la_store_sym_names_in_linkage_form_p initializer.
3360 (minimal_language::store_sym_names_in_linkage_form_p): New member
3361 function.
3362 * d-lang.c (d_language_data): Remove
3363 la_store_sym_names_in_linkage_form_p initializer.
3364 * dwarf2/read.c (dwarf2_physname): Update call to
3365 store_sym_names_in_linkage_form_p.
3366 * f-lang.c (f_language_data): Remove
3367 la_store_sym_names_in_linkage_form_p initializer.
3368 * go-lang.c (go_language_data): Remove
3369 la_store_sym_names_in_linkage_form_p initializer.
3370 * language.c (unknown_language_data): Remove
3371 la_store_sym_names_in_linkage_form_p initializer.
3372 (unknown_language::store_sym_names_in_linkage_form_p): New member
3373 function.
3374 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
3375 initializer.
3376 (auto_language::store_sym_names_in_linkage_form_p): New member
3377 function.
3378 * language.h (language_data): Remove
3379 la_store_sym_names_in_linkage_form_p member variable.
3380 (language_defn::store_sym_names_in_linkage_form_p): New member
3381 function.
3382 * m2-lang.c (m2_language_data): Remove
3383 la_store_sym_names_in_linkage_form_p initializer.
3384 * objc-lang.c (objc_language_data): Likewise.
3385 * opencl-lang.c (opencl_language_data): Likewise.
3386 * p-lang.c (pascal_language_data): Likewise.
3387 * rust-lang.c (rust_language_data): Likewise.
3388
3389 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3390
3391 * ada-lang.c (ada_language_data): Remove string_lower_bound
3392 initializer.
3393 * c-lang.c (c_language_data): Likewise.
3394 (cplus_language_data): Likewise.
3395 (asm_language_data): Likewise.
3396 (minimal_language_data): Likewise.
3397 * d-lang.c (d_language_data): Likewise.
3398 * f-lang.c (f_language_data): Likewise.
3399 * go-lang.c (go_language_data): Likewise.
3400 * language.c (unknown_language_data): Likewise.
3401 (auto_language_data): Likewise.
3402 * language.h (language_data): Remove string_lower_bound field.
3403 (language_defn::string_lower_bound): New member function.
3404 * m2-lang.c (m2_language_data): Remove string_lower_bound
3405 initializer.
3406 (m2_language::string_lower_bound): New member function.
3407 * objc-lang.c (objc_language_data): Remove string_lower_bound
3408 initializer.
3409 * opencl-lang.c (opencl_language_data): Likewise.
3410 * p-lang.c (pascal_language_data): Likewise.
3411 * rust-lang.c (rust_language_data): Likewise.
3412 * valops.c (value_cstring): Update call to string_lower_bound.
3413 (value_string): Likewise.
3414 * value.c (allocate_repeated_value): Likewise.
3415
3416 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3417
3418 * valops.c (value_repeat): Fix incorrect argument name in comment.
3419
3420 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3421
3422 * ada-lang.c (ada_language_data): Remove c_style_arrays
3423 initializer.
3424 (ada_language::c_style_arrays_p): New member fuction.
3425 * c-lang.c (c_language_data): Remove c_style_arrays
3426 initializer.
3427 (cplus_language_data): Likewise.
3428 (asm_language_data): Likewise.
3429 (minimal_language_data): Likewise.
3430 * d-lang.c (d_language_data): Likewise.
3431 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
3432 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
3433 (f_language::c_style_arrays_p): New member function.
3434 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
3435 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
3436 * language.c (unknown_language_data): Remove c_style_arrays
3437 initializer.
3438 (auto_language_data): Likewise.
3439 * language.h (language_data): Remove c_style_arrays field.
3440 (language_defn::c_style_arrays_p): New member function.
3441 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
3442 (m2_language::c_style_arrays_p): New member function.
3443 * objc-lang.c (objc_language_data): Remove c_style_arrays
3444 initializer.
3445 * opencl-lang.c (opencl_language_data): Likewise.
3446 * p-lang.c (pascal_language_data): Likewise.
3447 * rust-lang.c (rust_language_data): Likewise.
3448 * valarith.c (value_subscript): Update call to c_style_arrays_p,
3449 and update local variable to a bool.
3450 * valops.c (value_cast): Update call to c_style_arrays_p.
3451 (value_array): Likewise.
3452 * value.c (coerce_array): Likewise.
3453
3454 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3455
3456 * ada-lang.c (ada_language_data): Remove la_language initializer.
3457 * c-lang.c (c_language_data): Likewise.
3458 (cplus_language_data): Likewise.
3459 (asm_language_data): Likewise.
3460 (minimal_language_data): Likewise.
3461 * d-lang.c (d_language_data): Likewise.
3462 * f-lang.c (f_language_data): Likewise.
3463 * go-lang.c (go_language_data): Likewise.
3464 * language.c (unknown_language_data): Likewise.
3465 (auto_language_data): Likewise.
3466 * language.h (language_data): Remove la_language field.
3467 (language_defn::language_defn): Initialise la_language field.
3468 (language_defn::la_language): New member variable.
3469 * m2-lang.c (m2_language_data): Remove la_language field.
3470 * objc-lang.c (objc_language_data): Likewise.
3471 * opencl-lang.c (opencl_language_data): Likewise.
3472 * p-lang.c (pascal_language_data): Likewise.
3473 * rust-lang.c (rust_language_data): Likewise.
3474
3475 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3476
3477 * ada-lang.c (ada_extensions): Delete, moved into
3478 ada_language::filename_extensions.
3479 (ada_language_data): Remove la_filename_extensions initializer.
3480 (ada_language::filename_extensions): New member function.
3481 * c-lang.c (c_extensions): Delete, moved into
3482 c_language::filename_extensions.
3483 (c_language_data): Remove la_filename_extensions initializer.
3484 (c_language::filename_extensions): New member function.
3485 (cplus_extensions): Delete, moved into
3486 cplus_language::filename_extensions.
3487 (cplus_language_data): Remove la_filename_extensions initializer.
3488 (cplus_language::filename_extensions): New member function.
3489 (asm_extensions): Delete, moved into
3490 asm_language::filename_extensions.
3491 (asm_language_data): Remove la_filename_extensions initializer.
3492 (asm_language::filename_extensions): New member function.
3493 (minimal_language_data): Remove la_filename_extensions
3494 initializer.
3495 * d-lang.c (d_extensions): Delete, moved into
3496 d_language::filename_extensions.
3497 (d_language_data): Remove la_filename_extensions initializer.
3498 (d_language::filename_extensions): New member function.
3499 * f-lang.c (f_extensions): Delete, moved into
3500 f_language::filename_extensions.
3501 (f_language_data): Remove la_filename_extensions initializer.
3502 (f_language::filename_extensions): New member function.
3503 * go-lang.c (go_language_data): Remove la_filename_extensions
3504 initializer.
3505 * language.c (add_set_language_command): Update now that
3506 filename_extensions returns a vector.
3507 (unknown_language_data): Remove la_filename_extensions
3508 initializer.
3509 (auto_language_data): Likewise.
3510 * language.h (language_data): Remove la_filename_extensions field.
3511 (language_defn::filename_extensions): New member function.
3512 * m2-lang.c (m2_language_data): Remove la_filename_extensions
3513 initializer.
3514 * objc-lang.c (objc_extensions): Delete, moved into
3515 objc_language::filename_extensions.
3516 (objc_language_data): Remove la_filename_extensions initializer.
3517 (objc_language::filename_extensions): New member function.
3518 * opencl-lang.c (opencl_language_data): Remove
3519 la_filename_extensions initializer.
3520 * p-lang.c (pascal_extensions): Delete, moved into
3521 pascal_language::filename_extensions.
3522 (pascal_language_data): Remove la_filename_extensions initializer.
3523 (pascal_language::filename_extensions): New member function.
3524 * rust-lang.c (rust_extensions): Delete, moved into
3525 rust_language::filename_extensions.
3526 (rust_language_data): Remove la_filename_extensions initializer.
3527 (rust_language::filename_extensions): New member function.
3528 * symfile.c (add_filename_language): Add new assert.
3529
3530 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3531
3532 * ada-lang.c (ada_language_data): Remove la_name and
3533 la_natural_name initializers.
3534 (ada_language::name): New member function.
3535 (ada_language::natural_name): New member function.
3536 * c-lang.c (c_language_data): Remove la_name and
3537 la_natural_name initializers.
3538 (c_language::name): New member function.
3539 (c_language::natural_name): New member function.
3540 (cplus_language_data): Remove la_name and
3541 la_natural_name initializers.
3542 (cplus_language::name): New member function.
3543 (cplus_language::natural_name): New member function.
3544 (asm_language_data): Remove la_name and
3545 la_natural_name initializers.
3546 (asm_language::name): New member function.
3547 (asm_language::natural_name): New member function.
3548 (minimal_language_data): Remove la_name and
3549 la_natural_name initializers.
3550 (minimal_language::name): New member function.
3551 (minimal_language::natural_name): New member function.
3552 * compile/compile.c (compile_to_object): Update call to
3553 lanugage_defn::name.
3554 * d-lang.c (d_language_data): Remove la_name and
3555 la_natural_name initializers.
3556 (d_language::name): New member function.
3557 (d_language::natural_name): New member function.
3558 * expprint.c (print_subexp_standard): Update call to
3559 language_defn::name.
3560 (dump_raw_expression): Likewise
3561 (dump_prefix_expression): Likewise.
3562 * f-lang.c (f_language_data): Remove la_name and
3563 la_natural_name initializers.
3564 (f_language::name): New member function.
3565 (f_language::natural_name): New member function.
3566 * go-lang.c (go_language_data): Remove la_name and
3567 la_natural_name initializers.
3568 (go_language::name): New member function.
3569 (go_language::natural_name): New member function.
3570 * language.c (show_language_command): Update call to
3571 language_defn::name.
3572 (set_language_command): Likewise.
3573 (language_enum): Likewise.
3574 (language_str): Likewise.
3575 (add_set_language_command): Likewise, use
3576 language_defn::natural_name in the doc string.
3577 (unknown_language_data): Remove la_name and
3578 la_natural_name initializers.
3579 (unknown_language::name): New member function.
3580 (unknown_language::natural_name): New member function.
3581 (auto_language_data): Remove la_name and
3582 la_natural_name initializers.
3583 (auto_language::name): New member function.
3584 (auto_language::natural_name): New member function.
3585 (language_lookup_primitive_type_as_symbol): Update call to
3586 language_defn::name.
3587 * language.h (language_data): Remove la_name and la_natural_name
3588 member variables.
3589 (language_defn::name): New member function.
3590 (language_defn::natural_name): New member function.
3591 * m2-lang.c (m2_language_data): Remove la_name and
3592 la_natural_name initializers.
3593 (m2_language::name): New member function.
3594 (m2_language::natural_name): New member function.
3595 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
3596 language_defn::natural_name.
3597 * objc-lang.c (objc_language_data): Remove la_name and
3598 la_natural_name initializers.
3599 (objc_language::name): New member function.
3600 (objc_language::natural_name): New member function.
3601 * opencl-lang.c (opencl_language_data): Remove la_name and
3602 la_natural_name initializers.
3603 (opencl_language::name): New member function.
3604 (opencl_language::natural_name): New member function.
3605 * p-lang.c (pascal_language_data): Remove la_name and
3606 la_natural_name initializers.
3607 (pascal_language::name): New member function.
3608 (pascal_language::natural_name): New member function.
3609 * rust-lang.c (rust_language_data): Remove la_name and
3610 la_natural_name initializers.
3611 (rust_language::name): New member function.
3612 (rust_language::natural_name): New member function.
3613 * symtab.c (lookup_language_this): Update call to
3614 language_defn::name.
3615
3616 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3617
3618 * ada-lang.c (ada_language_data): Remove la_name_of_this
3619 initializer.
3620 * ax-gdb.c (gen_expr): Update call to name_of_this.
3621 * c-exp.y (classify_name): Likewise.
3622 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
3623 (cplus_language_data): Likewise.
3624 (cplus_language::name_of_this): New member function.
3625 (asm_language_data): Remove la_name_of_this initializer.
3626 (minimal_language_data): Likewise.
3627 * d-lang.c (d_language_data): Likewise.
3628 (d_language::name_of_this): New member function.
3629 * expprint.c (print_subexp_standard): Update call to name_of_this.
3630 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
3631 * go-lang.c (go_language_data): Likewise.
3632 * language.c (unknown_language_data): Likewise.
3633 (unknown_language::name_of_this): New member function.
3634 (auto_language_data): Remove la_name_of_this initializer.
3635 (auto_language::name_of_this): New member function.
3636 * language.h (language_data): Delete la_name_of_this member
3637 variable.
3638 (language_defn::name_of_this): New member function.
3639 * m2-lang.c (m2_language_data): Remove la_name_of_this
3640 initializer.
3641 * objc-lang.c (objc_language_data): Likewise.
3642 (objc_language::name_of_this): New member function.
3643 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
3644 initializer.
3645 * p-lang.c (pascal_language_data): Likewise.
3646 (pascal_language::name_of_this): New member function.
3647 * rust-lang.c (rust_language_data): Remove la_name_of_this
3648 initializer.
3649 * symtab.c (lookup_language_this): Update call to name_of_this.
3650 (lookup_symbol_aux): Likewise.
3651 * valops.c (value_of_this): Likewise.
3652
3653 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3654
3655 * ada-lang.c (ada_language_data): Remove
3656 la_struct_too_deep_ellipsis initializer.
3657 (ada_language::struct_too_deep_ellipsis): New member function.
3658 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
3659 initializer.
3660 (cplus_language_data): Likewise.
3661 (asm_language_data): Likewise.
3662 (minimal_language_data): Likewise.
3663 * cp-valprint.c (cp_print_value): Update call to
3664 struct_too_deep_ellipsis.
3665 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
3666 initializer.
3667 * f-lang.c (f_language_data): Likewise.
3668 (f_language::struct_too_deep_ellipsis): New member function.
3669 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
3670 initializer.
3671 * language.c (unknown_language_data): Likewise.
3672 (auto_language_data): Likewise.
3673 * language.h (language_data): Delete la_struct_too_deep_ellipsis
3674 member variable.
3675 (language_defn::struct_too_deep_ellipsis): New member function.
3676 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
3677 initializer.Q
3678 * objc-lang.c (objc_language_data): Likewise.
3679 * opencl-lang.c (opencl_language_data): Likewise.
3680 * p-lang.c (pascal_language_data): Likewise.
3681 * rust-lang.c (rust_language_data): Likewise.
3682 * valprint.c (val_print_check_max_depth): Update call to
3683 struct_too_deep_ellipsis.
3684
3685 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
3686
3687 * MAINTAINERS (Write After Approval): Add myself.
3688
3689 2020-09-15 Tom Tromey <tom@tromey.com>
3690
3691 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
3692 Remove.
3693
3694 2020-09-15 Tom Tromey <tom@tromey.com>
3695
3696 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
3697 and TYPE_CODE_METHODPTR cases.
3698 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
3699 (c_value_print_inner): Update.
3700 * valprint.c (generic_value_print_memberptr): New function, from
3701 c_value_print_memberptr.
3702 (generic_value_print): Use it. Call cplus_print_method_ptr.
3703
3704 2020-09-15 Tom Tromey <tromey@adacore.com>
3705
3706 * python/python-internal.h (PyInt_FromLong): Remove define.
3707 * python/py-value.c (convert_value_from_python): Use
3708 gdb_py_object_from_longest.
3709 * python/py-type.c (typy_get_code): Use
3710 gdb_py_object_from_longest.
3711 * python/py-symtab.c (salpy_get_line): Use
3712 gdb_py_object_from_longest.
3713 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
3714 gdb_py_object_from_longest.
3715 * python/py-record.c (recpy_gap_reason_code): Use
3716 gdb_py_object_from_longest.
3717 * python/py-record-btrace.c (recpy_bt_insn_size)
3718 (recpy_bt_func_level, btpy_list_count): Use
3719 gdb_py_object_from_longest.
3720 * python/py-infthread.c (gdbpy_create_ptid_object): Use
3721 gdb_py_object_from_longest. Fix error handling.
3722 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
3723 gdb_py_object_from_longest.
3724 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
3725 gdb_py_object_from_longest.
3726 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
3727 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
3728 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
3729
3730 2020-09-15 Tom Tromey <tromey@adacore.com>
3731
3732 * python/python.c (gdbpy_parameter_value): Use
3733 gdb_py_object_from_ulongest.
3734
3735 2020-09-15 Tom Tromey <tromey@adacore.com>
3736
3737 * python/py-infevents.c (create_register_changed_event_object):
3738 Use gdb_py_object_from_longest.
3739 * python/py-exitedevent.c (create_exited_event_object): Use
3740 gdb_py_object_from_longest.
3741
3742 2020-09-15 Tom Tromey <tromey@adacore.com>
3743
3744 * python/python.c (gdbpy_parameter_value): Use
3745 gdb_py_object_from_longest.
3746 * python/py-type.c (convert_field, typy_range): Use
3747 gdb_py_object_from_longest.
3748 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
3749 gdb_py_object_from_longest.
3750 * python/py-lazy-string.c (stpy_get_length): Use
3751 gdb_py_object_from_longest.
3752 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
3753 gdb_py_object_from_longest.
3754 * python/py-infevents.c (create_memory_changed_event_object): Use
3755 gdb_py_object_from_longest.
3756 * python/py-inferior.c (infpy_get_num): Use
3757 gdb_py_object_from_longest.
3758 (infpy_get_pid): Likewise.
3759
3760 2020-09-15 Tom Tromey <tromey@adacore.com>
3761
3762 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
3763 defines.
3764 * python/py-value.c (valpy_long): Use
3765 gdb_py_object_from_ulongest.
3766 * python/py-symtab.c (salpy_get_pc): Use
3767 gdb_py_object_from_ulongest.
3768 (salpy_get_last): Likewise.
3769 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
3770 gdb_py_object_from_ulongest.
3771 * python/py-lazy-string.c (stpy_get_address): Use
3772 gdb_py_object_from_ulongest.
3773 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
3774 * python/py-arch.c (archpy_disassemble): Use
3775 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
3776 error handling.
3777
3778 2020-09-15 Tom Tromey <tromey@adacore.com>
3779
3780 * python/python-internal.h (gdb_py_long_from_longest): Remove
3781 defines.
3782 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
3783 * python/py-type.c (convert_field, typy_get_sizeof): Use
3784 gdb_py_object_from_longest.
3785 * python/py-record-btrace.c (btpy_list_index): Use
3786 gdb_py_object_from_longest.
3787
3788 2020-09-15 Tom Tromey <tromey@adacore.com>
3789
3790 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
3791 * python/py-record.c (recpy_element_number): Use
3792 gdb_py_object_from_longest.
3793 (recpy_gap_number): Likewise.
3794
3795 2020-09-15 Tom Tromey <tromey@adacore.com>
3796
3797 * top.c (ui::ui): Update.
3798 (highest_ui_num): Remove.
3799 * top.h (struct ui) <num>: Remove.
3800
3801 2020-09-15 Tom Tromey <tromey@adacore.com>
3802
3803 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
3804 * ui-style.c (ansi_regex_text): Now array.
3805 * rust-exp.y (number_regex_text): Now array.
3806 * linespec.c (linespec_quote_characters): Now array.
3807 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
3808 Now arrays.
3809
3810 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3811
3812 * debuginfod-support.c (debuginfod_client_deleter): New.
3813 (debuginfod_client_up): New.
3814 (debuginfod_init): Return debuginfod_client_up.
3815 (debuginfod_source_query): Adjust.
3816 (debuginfod_debuginfo_query): Adjust.
3817
3818 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3819
3820 * debuginfod-support.c (debuginfod_source_query): Use
3821 make_unique_xstrdup.
3822
3823 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3824
3825 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
3826 with `type::instance_flags`.
3827
3828 2020-09-14 Michael Mullin <masmullin@gmail.com>
3829
3830 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
3831 Remove baton parameter.
3832
3833 2020-09-14 Pedro Alves <pedro@palves.net>
3834
3835 * Makefile.in (SELFTESTS_SRCS): Add
3836 unittests/enum-flags-selftests.c.
3837 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
3838 btrace_function_flags instead of enum btrace_function_flag.
3839 * compile/compile-c-types.c (convert_qualified): Use
3840 enum_flags::raw.
3841 * compile/compile-cplus-symbols.c (convert_one_symbol)
3842 (convert_symbol_bmsym):
3843 * compile/compile-cplus-types.c (compile_cplus_convert_method)
3844 (compile_cplus_convert_struct_or_union_methods)
3845 (compile_cplus_instance::convert_qualified_base):
3846 * go-exp.y (parse_string_or_char): Add cast to int.
3847 * unittests/enum-flags-selftests.c: New file.
3848 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
3849 type to btrace_thread_flags from btrace_thread_flag.
3850 (record_btrace_cancel_resume, record_btrace_step_thread): Change
3851 local's type to btrace_thread_flags from btrace_thread_flag. Add
3852 cast in DEBUG call.
3853
3854 2020-09-14 Pedro Alves <pedro@palves.net>
3855
3856 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
3857 * gdbtypes.c (address_space_name_to_int): Rename to ...
3858 (address_space_name_to_type_instance_flags): ... this.
3859 (address_space_int_to_name): Rename to ...
3860 (address_space_type_instance_flags_to_name): ... this.
3861 * gdbtypes.h (address_space_name_to_int): Rename to ...
3862 (address_space_name_to_type_instance_flags): ... this.
3863 (address_space_int_to_name): Rename to ...
3864 (address_space_type_instance_flags_to_name): ... this.
3865 * type-stack.c (type_stack::insert): Adjust to rename.
3866 * type-stack.h (type_stack::insert): Likewise.
3867
3868 2020-09-14 Pedro Alves <pedro@palves.net>
3869 Andrew Burgess <andrew.burgess@embecosm.com>
3870
3871 * avr-tdep.c (avr_address_class_type_flags): Return
3872 type_instance_flags.
3873 (avr_address_class_type_flags_to_name): Take a
3874 type_instance_flags.
3875 (avr_address_class_name_to_type_flags): Return bool and take a
3876 type_instance_flags.
3877 * d-lang.c (build_d_types): Use type::set_instance_flags.
3878 * ft32-tdep.c (ft32_address_class_type_flags): Return
3879 type_instance_flags.
3880 (ft32_address_class_type_flags_to_name): Take a
3881 type_instance_flags.
3882 (ft32_address_class_name_to_type_flags): Return bool and take a
3883 type_instance_flags.
3884 (ft32_gdbarch_init): Use type::set_instance_flags.
3885 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
3886 * gdbarch.h, gdbarch.c: Regenerate.
3887 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
3888 (address_class_name_to_type_flags): Use type_instance_flags and
3889 bool.
3890 * gdbtypes.c (address_space_name_to_int)
3891 (address_space_int_to_name, make_qualified_type): Use
3892 type_instance_flags.
3893 (make_qualified_type): Use type_instance_flags and
3894 type::set_instance_flags.
3895 (make_type_with_address_space, make_cv_type, make_vector_type)
3896 (check_typedef): Use type_instance_flags.
3897 (recursive_dump_type): Cast type_instance_flags to unsigned for
3898 printing.
3899 (copy_type_recursive): Use type::set_instance_flags.
3900 (gdbtypes_post_init): Use type::set_instance_flags.
3901 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
3902 <m_instance_flags>: ... this.
3903 <instance_flags, set_instance_flags>: New methods.
3904 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
3905 (SET_TYPE_INSTANCE_FLAGS): New.
3906 (address_space_name_to_int, address_space_int_to_name)
3907 (make_type_with_address_space): Pass flags using
3908 type_instance_flags instead of int.
3909 * stabsread.c (cleanup_undefined_types_noname): Use
3910 type::set_instance_flags.
3911 * s390-tdep.c (s390_address_class_type_flags): Return
3912 type_instance_flags.
3913 (s390_address_class_type_flags_to_name): Take a
3914 type_instance_flags.
3915 (s390_address_class_name_to_type_flags): Return bool and take a
3916 type_instance_flags.
3917 * type-stack.c (type_stack::follow_types): Use
3918 type_instance_flags.
3919 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
3920
3921 2020-09-14 Tom Tromey <tromey@adacore.com>
3922
3923 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
3924 * x86-tdep.c (x86_is_thunk_register_name)
3925 (x86_in_indirect_branch_thunk): Update.
3926 * sparc64-tdep.c (sparc64_fpu_register_names)
3927 (sparc64_cp0_register_names, sparc64_register_names)
3928 (sparc64_pseudo_register_names): Now const.
3929 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
3930 cp0_registers_num>: Now const.
3931 * sparc-tdep.c (sparc_core_register_names)
3932 (sparc32_fpu_register_names, sparc32_cp0_register_names)
3933 (sparc32_pseudo_register_names): Now const.
3934 (validate_tdesc_registers): Update.
3935 * rust-lang.c (rust_extensions): Now const.
3936 * p-lang.c (p_extensions): Now const.
3937 * objc-lang.c (objc_extensions): Now const.
3938 * nto-tdep.c (nto_thread_state_str): Now const.
3939 * moxie-tdep.c (moxie_register_names): Now const.
3940 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
3941 Now const.
3942 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
3943 (mips_linux_reg_names): Now const.
3944 (mips_gdbarch_init): Update.
3945 * microblaze-tdep.c (microblaze_register_names): Now const.
3946 * m68k-tdep.c (m68k_register_names): Now const.
3947 * m32r-tdep.c (m32r_register_names): Now const.
3948 * ia64-tdep.c (ia64_register_names): Now const.
3949 * i386-tdep.h (struct gdbarch_tdep) <register_names,
3950 ymmh_register_names, ymm16h_regnum, mpx_register_names,
3951 k_register_names, zmmh_register_names, xmm_avx512_register_names,
3952 ymm_avx512_register_names, pkeys_register_names>: Now const.
3953 * i386-tdep.c (i386_register_names, i386_zmm_names)
3954 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
3955 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
3956 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
3957 * f-lang.c (f_extensions): Now const.
3958 * d-lang.c (d_extensions): Now const.
3959 * csky-tdep.c (csky_register_names): Now const.
3960 * charset.c (default_charset_names, charset_enum): Now const.
3961 (_initialize_charset): Update.
3962 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
3963 const.
3964 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
3965 (bsd_uthread_solib_loaded): Update.
3966 (bsd_uthread_state): Now const.
3967 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
3968 (amd64_ymm_avx512_names, amd64_ymmh_names)
3969 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
3970 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
3971 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
3972 (amd64_dword_names): Now const.
3973 * agent.c (can_use_agent_enum): Now const.
3974 * ada-tasks.c (task_states, long_task_states): Now const.
3975 * ada-lang.c (known_runtime_file_name_patterns)
3976 (known_auxiliary_function_name_patterns, attribute_names)
3977 (standard_exc, ada_extensions): Now const.
3978
3979 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3980
3981 * bcache.h (struct bcache) <bcache>: Remove constructor.
3982 <m_hash_function, m_compare_function>: Remove.
3983 <~bcache>: Make virtual.
3984 <compare>: Remove static method, introduce virtual method.
3985 <default_hash>: Remove.
3986 <hash>: New virtual method.
3987 * bcache.c (bcache::expand_hash_table): Update.
3988 (bcache::insert): Update.
3989 (bcache::hash): New.
3990 (bcache::compare): Update comment and parameter names.
3991 * gdbtypes.c (types_deeply_equal): Update.
3992 * psymtab.h (struct psymbol_bcache): New struct.
3993 (class psymtab_storage) <psymtab_storage>: Make default.
3994 <psymbol_cache>: Change type to psymbol_bcache.
3995 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
3996 (psymbol_hash): Change to...
3997 (psymbol_bcache::hash): ... this.
3998 (psymbol_compare): Change to...
3999 (psymbol_bcache::compare): ... this.
4000
4001 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4002
4003 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
4004 checking for initial lwp.
4005
4006 2020-09-14 Tom Tromey <tromey@adacore.com>
4007
4008 * m68k-tdep.c (m68k_extract_return_value): Use
4009 pointer_result_regnum.
4010 (m68k_store_return_value): Likewise.
4011 (m68k_reg_struct_return_p): Handle vectors and arrays.
4012 (m68k_return_value): Handle arrays.
4013 (m68k_svr4_return_value): Fix single-element aggregate handling.
4014 Handle long double. Adjust for embedded ABI.
4015 (m68k_svr4_init_abi): Set pointer_result_regnum.
4016 (m68k_embedded_init_abi): New function.
4017 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
4018 (m68k_osabi_sniffer): New function.
4019 (_initialize_m68k_tdep): Register osabi sniffer.
4020 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
4021 member.
4022
4023 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4024
4025 * xml-support.c (xml_fetch_content_from_file): Replace xfree
4026 with gdb::unique_xmalloc_ptr<char>.
4027
4028 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4029
4030 * xml-support.h (xml_fetch_another): Change type to be a
4031 function_view.
4032 (xml_process_xincludes): Remove baton parameter.
4033 (xml_fetch_content_from_file): Change baton parameter to
4034 dirname.
4035 * xml-support.c (struct xinclude_parsing_data)
4036 <xinclude_parsing_data>: Remove baton parameter.
4037 <fetcher_baton>: Remove.
4038 (xinclude_start_include): Adjust.
4039 (xml_process_xincludes): Adjust.
4040 (xml_fetch_content_from_file): Replace baton parameter with
4041 dirname.
4042 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
4043 (xml_init_syscalls_info): Use a lambda.
4044 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
4045 (file_read_description_xml): Use a lambda.
4046 (fetch_available_features_from_target): Change baton parameter
4047 to target_ops.
4048 (target_read_description_xml): Use a lambda.
4049 (target_fetch_description_xml): Use a lambda.
4050 (string_read_description_xml): Update.
4051
4052 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4053
4054 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
4055 uses with type::endianity_is_not_default.
4056
4057 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4058
4059 * gdbtypes.h (struct type) <endianity_is_not_default,
4060 set_endianity_is_not_default>: New methods.
4061 (TYPE_ENDIANITY_NOT_DEFAULT): Use
4062 type::endianity_is_not_default, change all write call sites to
4063 use type::set_endianity_is_not_default.
4064
4065 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4066
4067 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
4068 uses with type::is_fixed_instance.
4069
4070 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4071
4072 * gdbtypes.h (struct type) <is_fixed_instance,
4073 set_is_fixed_instance>: New methods.
4074 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
4075 write call sites to use type::set_is_fixed_instance.
4076
4077 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4078
4079 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
4080 uses with type::is_gnu_ifunc.
4081
4082 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4083
4084 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
4085 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
4086 use type::set_is_gnu_ifunc.
4087
4088 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4089
4090 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
4091 uses with type::stub_is_supported.
4092
4093 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4094
4095 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
4096 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
4097 use type::set_stub_is_supported.
4098
4099 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4100
4101 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
4102 uses with type::is_vector.
4103
4104 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4105
4106 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
4107 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
4108 use type::set_is_vector.
4109
4110 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4111
4112 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
4113 uses with type::has_varargs.
4114
4115 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4116
4117 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
4118 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
4119 use type::set_has_varargs.
4120
4121 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4122
4123 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
4124 uses with type::is_prototyped.
4125
4126 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4127
4128 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
4129 New methods.
4130 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
4131 call sites to use type::set_is_prototyped.
4132
4133 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4134
4135 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
4136 uses with type::target_is_stub.
4137
4138 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4139
4140 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
4141 New methods.
4142 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
4143 sites to use type::set_target_is_stub.
4144
4145 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4146
4147 * gdbtypes.h (TYPE_STUB): Remove, replace all
4148 uses with type::is_stub.
4149
4150 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4151
4152 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
4153 (TYPE_STUB): Use type::is_stub, change all write call sites to
4154 use type::set_is_stub.
4155
4156 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4157
4158 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
4159 type::has_no_signedness.
4160
4161 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4162
4163 * gdbtypes.h (struct type) <has_no_signedness,
4164 set_has_no_signedness>: New methods.
4165 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
4166 call sites to use type::set_has_no_signedness.
4167
4168 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4169
4170 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
4171 type::is_unsigned.
4172
4173 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4174
4175 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
4176 methods.
4177 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
4178 sites to use type::set_is_unsigned.
4179
4180 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
4181 Adam Renquinha <arenquinha@cimeq.qc.ca>
4182
4183 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
4184 pointer and stack frame offset when unwinding.
4185
4186 2020-09-13 Pedro Alves <pedro@palves.net>
4187
4188 * NEWS: Document "-break-insert --qualified".
4189 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
4190
4191 2020-09-13 Pedro Alves <pedro@palves.net>
4192
4193 * linespec.c (classify_mtype, compare_msyms): Delete.
4194 (search_minsyms_for_name): Remove classification logic. Instead
4195 filter out trampoline symbols if we also found an external
4196 function of the same name.
4197
4198 2020-09-13 Joel Brobecker <brobecker@adacore.com>
4199
4200 * NEWS: Create a new section for the next release branch.
4201 Rename the section of the current branch, now that it has
4202 been cut.
4203
4204 2020-09-13 Joel Brobecker <brobecker@adacore.com>
4205
4206 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
4207 * version.in: Bump version to 11.0.50.DATE-git.
4208
4209 2020-09-12 Joel Brobecker <brobecker@adacore.com>
4210
4211 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
4212
4213 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
4214 Felix Willgerodt <Felix.Willgerodt@intel.com>
4215
4216 * gdbarch.sh: Added bfloat16 type.
4217 * gdbarch.c: Regenerated.
4218 * gdbarch.h: Regenerated.
4219 * gdbtypes.c (floatformats_bfloat16): New struct.
4220 (gdbtypes_post_init): Add builtin_bfloat16.
4221 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
4222 (floatformats_bfloat16): New struct.
4223 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
4224 (i386_ymm_type): Add field "v16_bfloat16"
4225 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
4226 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
4227 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
4228 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
4229 * features/i386/64bit-avx512.xml: Add bfloat16 type.
4230 * features/i386/64bit-avx512.c: Regenerated.
4231 * features/i386/64bit-sse.xml: Add bfloat16 type.
4232 * features/i386/64bit-sse.c: Regenerated.
4233
4234 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
4235
4236 * i386-tdep.c (i386_zmm_type): Fix field names.
4237 (i386_ymm_type): Fix field names.
4238
4239 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4240
4241 * breakpoint.c: Fix typo in the help message of the
4242 "set breakpoint condition-evaluation" command.
4243
4244 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4245
4246 * nbsd-nat.c: Include "nat/netbsd-nat.h".
4247 * (nbsd_nat_target::pid_to_exec_file)
4248 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
4249 (nbsd_nat_target::post_startup_inferior)
4250 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
4251 (nbsd_add_threads): Switch local code to common gdb/nat functions.
4252 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
4253 * (nbsd_thread_lister): Remove.
4254
4255 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4256
4257 * fork-inferior.c (startup_inferior): Avoid double free.
4258
4259 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4260
4261 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
4262 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
4263
4264 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4265
4266 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
4267 * netbsd-nat.c: Include <sys/ptrace.h>.
4268 * (netbsd_nat::enable_proc_events): Add.
4269
4270 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4271
4272 * netbsd-nat.h: Include "gdbsupport/function-view.h".
4273 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4274 (netbsd_nat::for_each_thread): Add.
4275 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
4276 "gdbsupport/common-debug.h".
4277 * (netbsd_nat::netbsd_thread_lister)
4278 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4279 (netbsd_nat::for_each_thread): Add.
4280
4281 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4282
4283 * netbsd-nat.h: Include <unistd.h>.
4284 * (netbsd_nat::pid_to_exec_file): Add.
4285 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
4286 * (netbsd_nat::pid_to_exec_file) Add.
4287
4288 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4289
4290 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
4291
4292 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4293
4294 * netbsd-nat.h: New file.
4295 * netbsd-nat.c: Likewise.
4296
4297 2020-09-09 Tom Tromey <tromey@adacore.com>
4298
4299 * ada-lang.c (remove_extra_symbols): Do not increment when
4300 removing an element
4301
4302 2020-09-08 Tom Tromey <tromey@adacore.com>
4303
4304 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
4305
4306 2020-09-08 Tom Tromey <tromey@adacore.com>
4307
4308 PR win32/25302:
4309 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
4310 (gdb_bfd_init_data): New function.
4311 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
4312
4313 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4314
4315 * infrun.c (fetch_inferior_event): Use
4316 `switch_to_target_no_thread` to switch the target.
4317
4318 2020-09-06 Tom Tromey <tom@tromey.com>
4319
4320 * symfile.h (dwarf2_free_objfile): Don't declare.
4321
4322 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4323
4324 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
4325 to match 16 byte real/complex type generated by Flang compiler.
4326
4327 2020-09-03 Tom de Vries <tdevries@suse.de>
4328
4329 PR breakpoint/26546
4330 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
4331 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
4332
4333 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
4334
4335 * maint.c (index_digits): New function.
4336 (struct maint_print_section_data): Remove.
4337 (print_bfd_section_info): Remove print_data parameter, add arg
4338 and index_digits.
4339 (print_objfile_section_info): Likewise.
4340 (print_bfd_section_info_maybe_relocated): Likewise (plus
4341 objfile).
4342 (maintenance_info_sections): Adjust calls.
4343
4344 2020-09-02 Tom Tromey <tromey@adacore.com>
4345
4346 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
4347 for null pointers.
4348 (ada_varobj_adjust_for_child_access): Special-case null pointers.
4349
4350 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
4351
4352 * bcache.h (struct bcache) <insert>: Change type of `added` to
4353 pointer to bool.
4354 * bcache.c (bcache::insert): Likewise.
4355 * gdbtypes.c (check_types_worklist): Adjust.
4356 * psymtab.c (add_psymbol_to_bcache): Adjust.
4357
4358 2020-08-31 Kevin Buettner <kevinb@redhat.com>
4359
4360 * corelow.c (unordered_set): Include.
4361 (class core_target): Add field 'm_core_unavailable_mappings'.
4362 (core_target::build_file_mappings): Print only one warning
4363 per inaccessible file. Add unavailable/broken mappings
4364 to m_core_unavailable_mappings.
4365 (core_target::xfer_partial): Call...
4366 (core_target::xfer_memory_via_mappings): New method.
4367
4368 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4369
4370 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
4371 type to bool.
4372
4373 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4374
4375 * dwarf2/read.c (struct field_info): Fix indentation.
4376
4377 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
4378
4379 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
4380 ordering in comment.
4381 * frame.c (frame_id_eq): Fix indentation.
4382
4383 2020-08-31 Scott Linder <scott@scottlinder.com>
4384 Simon Marchi <simon.marchi@efficios.com>
4385
4386 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
4387 inline frame ids in outer frame.
4388
4389 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
4390
4391 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
4392 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
4393 (outer_frame_id): Use FID_STACK_OUTER instead of
4394 FID_STACK_INVALID.
4395 (frame_id_p): Don't check for outer_frame_id.
4396
4397 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
4398
4399 * frame-unwind.c (frame_unwind_got_optimized): Don't set
4400 regnum/frame in value. Call allocate_value_lazy.
4401 * frame.c (frame_unwind_register_value): Use
4402 val_print_not_saved.
4403
4404 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
4405
4406 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
4407
4408 2020-08-29 Pedro Alves <pedro@palves.net>
4409
4410 * progspace.c (print_program_space): Use all_inferiors. Switch to
4411 the inferior before calling target_pid_to_str.
4412
4413 2020-08-28 Tom Tromey <tom@tromey.com>
4414
4415 * xcoffread.c (xcoff_end_psymtab): Update comment.
4416 * dbxread.c (dbx_end_psymtab): Update comment.
4417
4418 2020-08-28 Tom de Vries <tdevries@suse.de>
4419
4420 PR breakpoint/26544
4421 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
4422 event_location.
4423 (create_breakpoint): Same.
4424 (base_breakpoint_decode_location): Same.
4425 (bkpt_create_sals_from_location): Same.
4426 (bkpt_decode_location): Same.
4427 (bkpt_probe_create_sals_from_location): Same.
4428 (bkpt_probe_decode_location): Same.
4429 (tracepoint_create_sals_from_location): Same.
4430 (tracepoint_decode_location): Same.
4431 (tracepoint_probe_decode_location): Same.
4432 (strace_marker_create_sals_from_location): Same.
4433 (strace_marker_decode_location): Same.
4434 (create_sals_from_location_default): Same.
4435 (decode_location_default): Same.
4436 * breakpoint.h (struct breakpoint_ops): Same.
4437 (create_breakpoint): Same.
4438 * linespec.h (decode_line_full): Same.
4439 * linespec.c (decode_line_full): Same. Throw error if
4440 result.size () == 0.
4441
4442 2020-08-27 Pedro Alves <pedro@palves.net>
4443
4444 PR gdb/26524
4445 * breakpoint.c (until_break_fsm) <location_breakpoint,
4446 caller_breakpoint>: Delete fields.
4447 <breakpoints>: New field.
4448 <until_break_fsm>: Adjust to save a breakpoint vector instead of
4449 two individual breakpoints.
4450 (until_break_fsm::should_stop): Loop over breakpoints in the
4451 breakpoint vector.
4452 (until_break_fsm::clean_up): Adjust to clear the breakpoints
4453 vector.
4454 (until_break_command): Handle location expanding into multiple
4455 sals.
4456
4457 2020-08-27 Pedro Alves <pedro@palves.net>
4458
4459 PR gdb/26523
4460 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
4461 bp_until breakpoints user-specified locations. Update intro
4462 comment.
4463
4464 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
4465
4466 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
4467 gdb_bfd_sections): New.
4468 * maint.c (print_bfd_section_info): Change param type to
4469 maint_print_section_data.
4470 (print_objfile_section_info): Likewise.
4471 (print_bfd_section_info_maybe_relocated): Likewise.
4472 (maintenance_info_sections): Use gdb_bfd_sections.
4473
4474 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
4475
4476 * MAINTAINERS: Add ARC target and maintainer.
4477
4478 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
4479
4480 * configure.tgt: ARC support for GNU/Linux.
4481 * Makefile.in (ALL_TARGET_OBJS): Likewise.
4482 * arc-linux-tdep.c: New file.
4483 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
4484 * arc-tdep.c (arc_write_pc): Use it.
4485
4486 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
4487
4488 * arc-tdep.c (arc_check_for_hardware_loop): New.
4489 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
4490
4491 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
4492
4493 * arc-tdep.h: Include "gdbarch.h".
4494
4495 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
4496
4497 * arch/arc.h
4498 (arc_gdbarch_features): New class to stir the selection of target XML.
4499 (arc_create_target_description): Use FEATURES to choose XML target.
4500 (arc_lookup_target_description): Use arc_create_target_description
4501 to create _new_ target descriptions or return the already created
4502 ones if the FEATURES is the same.
4503 * arch/arc.c: Implementation of prototypes described above.
4504 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
4505 (arc_gdbarch_features_init): Initialize the FEATURES struct.
4506 * arc-tdep.c (*_feature_name): Make feature names consistent.
4507 (arc_register_feature): A new struct to hold information about
4508 registers of a particular target/feature.
4509 (arc_check_tdesc_feature): Check if XML provides registers in
4510 compliance with ARC_REGISTER_FEATURE structs.
4511 (arc_update_acc_reg_names): Add aliases for r58 and r59.
4512 (determine_*_reg_feature_set): Which feature name to look for.
4513 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
4514 (mach_type_to_arc_isa): Convert from a set of binutils machine types
4515 to expected ISA enums to be used in arc_gdbarch_features structs.
4516 * features/Makefile (FEATURE_XMLFILES): Add new files.
4517 * gdb/features/arc/v1-aux.c: New file.
4518 * gdb/features/arc/v1-aux.xml: Likewise.
4519 * gdb/features/arc/v1-core.c: Likewise.
4520 * gdb/features/arc/v1-core.xml: Likewise.
4521 * gdb/features/arc/v2-aux.c: Likewise.
4522 * gdb/features/arc/v2-aux.xml: Likewise.
4523 * gdb/features/arc/v2-core.c: Likewise.
4524 * gdb/features/arc/v2-core.xml: Likewise.
4525 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
4526
4527 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
4528 Andrew Burgess <andrew.burgess@embecosm.com>
4529
4530 PR m2/26372
4531 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
4532 an assert. Remove single element array indexing pattern as the
4533 MULTI_SUBSCRIPT support will handle this case too.
4534
4535 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
4536
4537 * value.h (valprint_check_validity): Move declaration from
4538 here...
4539 * valprint.h (valprint_check_validity): ... to here.
4540
4541 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
4542
4543 * debug.h: New file.
4544 * debug.c (debug_prefixed_vprintf): New function.
4545 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
4546 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
4547
4548 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
4549
4550 * infrun.h (infrun_debug_printf_1): New function declaration.
4551 (infrun_debug_printf): New macro.
4552 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
4553 throughout.
4554 (infrun_debug_printf): New function.
4555 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
4556 (handle_jit_event): Likewise.
4557
4558 2020-08-21 Mark Wielaard <mark@klomp.org>
4559
4560 * ada-lex.l: Extend register warnings diagnostics comment for g++.
4561
4562 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
4563
4564 * frame.c (enum class frame_id_status): New.
4565 (struct frame_info) <this_id::p>: Change type to frame_id_status.
4566 (fprintf_frame): Update.
4567 (compute_frame_id): Set frame id status to "computing" on entry.
4568 Set it back to "not_computed" on failure and to "computed" on
4569 success.
4570 (get_frame_id): Assert the frame id is not being computed.
4571 (create_sentinel_frame): Use frame_id_status::COMPUTED.
4572 (create_new_frame): Likewise.
4573 (frame_cleanup_after_sniffer): Update assert.
4574
4575 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4576
4577 * regcache.c (pid_ptid_regcache_map): New type.
4578 (target_ptid_regcache_map): Remove.
4579 (target_pid_ptid_regcache_map): New type.
4580 (regcaches): Change type to target_pid_ptid_regcache_map.
4581 (get_thread_arch_aspace_regcache): Update.
4582 (regcache_thread_ptid_changed): Update, handle pid-like ptid
4583 case.
4584 (regcaches_size): Update.
4585 (regcache_count): Update.
4586 (registers_changed_ptid_target_pid_test): New.
4587 (_initialize_regcache): Register new test.
4588
4589 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4590
4591 * regcache.c (regcache_count): New.
4592 (struct regcache_test_data): New.
4593 (regcache_test_data_up): New.
4594 (populate_regcaches_for_test): New.
4595 (regcaches_test): Remove.
4596 (get_thread_arch_aspace_regcache_test): New.
4597 (registers_changed_ptid_all_test): New.
4598 (registers_changed_ptid_target_test): New.
4599 (registers_changed_ptid_target_ptid_test): New.
4600 (regcache_thread_ptid_changed): Remove regcache_count lambda.
4601 (_initialize_regcache): Register new tests.
4602
4603 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4604
4605 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
4606 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
4607 gdbarch and aspace parameter. Use current inferior's aspace.
4608 Validate regcache's arch value.
4609 (regcaches_test): Update.
4610
4611 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4612
4613 * regcache.c (regcaches_test): Call registers_changed.
4614
4615 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4616
4617 * infrun.c (process_event_stop_test): Fix typo "breapoint".
4618
4619 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4620
4621 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
4622 to find the end of prologue for flang compiled binaries.
4623 * arm-tdep.c (arm_skip_prologue): Likewise.
4624 * i386-tdep.c (i386_skip_prologue): Likewise.
4625 * producer.c (producer_is_llvm): New function.
4626 (producer_parsing_tests): Added new tests for clang/flang.
4627 * producer.h (producer_is_llvm): New declaration.
4628
4629 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
4630
4631 * linux-nat.c (linux_nat_debug_printf): New function.
4632 (linux_nat_debug_printf_1): New macro. Use throughout the file.
4633
4634 2020-08-18 Aaron Merey <amerey@redhat.com>
4635
4636 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
4637 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
4638 (CLIBS): Add DEBUGINFOD_LIBS.
4639
4640 2020-08-17 Sergei Trofimovich <siarheit@google.com>
4641
4642 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
4643 'gdbarch_num_regs'.
4644
4645 2020-08-17 Tom Tromey <tromey@adacore.com>
4646
4647 * ada-varobj.c (ada_varobj_decode_var): Handle case where
4648 ada_get_decoded_value returns NULL.
4649
4650 2020-08-17 Tom Tromey <tromey@adacore.com>
4651
4652 * python/py-inferior.c (infpy_search_memory): Use
4653 gdb_py_object_from_ulongest.
4654 * python/py-infevents.c (create_inferior_call_event_object)
4655 (create_memory_changed_event_object): Use
4656 gdb_py_object_from_ulongest.
4657 * python/py-linetable.c (ltpy_entry_get_pc): Use
4658 gdb_py_object_from_ulongest.
4659
4660 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
4661
4662 * loc.c (class symbol_needs_eval_context): Fix indentation.
4663
4664 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
4665
4666 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
4667 bool.
4668
4669 2020-08-17 Tom de Vries <tdevries@suse.de>
4670
4671 PR gdb/26393
4672 * gdbtypes.c (dump_dynamic_prop): New function.
4673 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
4674
4675 2020-08-15 Tom de Vries <tdevries@suse.de>
4676
4677 PR backtrace/26390
4678 * stack.c (print_frame_args): Temporarily set the selected
4679 frame to FRAME while printing the frame's arguments.
4680
4681 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4682
4683 PR breakpoints/26385
4684 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
4685 Always clear watchpoint with PTRACE_SET_DEBUGREG.
4686
4687 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4688
4689 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
4690 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
4691 and >= to check return value instead of == -1 and != -1.
4692
4693 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
4694
4695 * utils.h (class gdb_argv) <as_array_view>: New method.
4696 * utils.c (gdb_argv_as_array_view_test): New.
4697 (_initialize_utils): Register selftest.
4698 * maint.c (maintenance_selftest): Use the new method.
4699
4700 2020-08-13 Kamil Rytarowski <n54@gmx.com>
4701
4702 * target.h (supports_dumpcore, dumpcore): New
4703 function declarations.
4704 * target.c (supports_dumpcore, dumpcore): New
4705 functions.
4706 * target-delegates.c: Rebuild.
4707 * gcore.c (gcore_command): Use target_supports_dumpcore ()
4708 and target_dumpcore ().
4709
4710 2020-08-13 Aaron Merey <amerey@redhat.com>
4711
4712 * debuginfod-support.c: Replace global variables with user_data.
4713
4714 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
4715
4716 * maint.c (maintenance_selftest): Split args and pass array_view
4717 to run_tests.
4718
4719 2020-08-12 Luis Machado <luis.machado@linaro.org>
4720
4721 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
4722 type's length.
4723 Use %s and pulongest to print the length.
4724
4725 2020-08-12 Pedro Alves <palves@redhat.com>
4726
4727 * NEWS: Move "Multi-target debugging support" item to the
4728 "Changes since GDB 9" section.
4729
4730 2020-08-12 Pedro Alves <palves@redhat.com>
4731
4732 PR gdb/26336
4733 * progspace.c (program_space::remove_objfile): Invalidate the
4734 frame cache.
4735
4736 2020-08-11 Tom de Vries <tdevries@suse.de>
4737
4738 * MAINTAINERS: Mark ms1 as deleted.
4739
4740 2020-08-10 Luis Machado <luis.machado@linaro.org>
4741
4742 PR gdb/26310
4743
4744 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
4745 act accordingly.
4746 (aarch64_analyze_prologue_test): Add more unit tests to exercise
4747 movz/str/stur/stp skipping behavior.
4748
4749 2020-08-10 Luis Machado <luis.machado@linaro.org>
4750
4751 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
4752 struct user_sve_header instead of struct sve_context.
4753
4754 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
4755
4756 * read.h (dwarf2_fetch_die_loc_sect_off,
4757 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
4758 `void *` parameter with function_view.
4759 * read.c (dwarf2_fetch_die_loc_sect_off,
4760 dwarf2_fetch_die_loc_cu_off): Likewise.
4761 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
4762 (per_cu_dwarf_call): Adjust.
4763 (get_frame_address_in_block_wrapper): Remove.
4764 (indirect_synthetic_pointer): Adjust.
4765 (get_ax_pc): Remove.
4766 (dwarf2_compile_expr_to_ax): Adjust.
4767
4768 2020-08-08 Tom de Vries <tdevries@suse.de>
4769
4770 PR build/26344
4771 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
4772 constructor.
4773 * regcache.c (get_thread_arch_aspace_regcache): Same.
4774
4775 2020-08-07 Tom Tromey <tromey@adacore.com>
4776
4777 * ravenscar-thread.c
4778 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
4779 New method.
4780 (ravenscar_thread_target::wait): Check
4781 runtime_initialized.
4782 (ravenscar_thread_target::prepare_to_store)
4783 (ravenscar_thread_target::stopped_by_sw_breakpoint)
4784 (ravenscar_thread_target::stopped_by_hw_breakpoint)
4785 (ravenscar_thread_target::stopped_by_watchpoint)
4786 (ravenscar_thread_target::stopped_data_address)
4787 (ravenscar_thread_target::core_of_thread): Use
4788 scoped_restore_current_thread and
4789 set_base_thread_from_ravenscar_task.
4790
4791 2020-08-07 Tom Tromey <tromey@adacore.com>
4792
4793 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
4794
4795 2020-08-07 Tom Tromey <tromey@adacore.com>
4796
4797 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
4798 update_inferior_ptid before update_thread_list.
4799 (temporarily_change_regcache_ptid): New class.
4800 (ravenscar_thread_target::fetch_registers)
4801 (ravenscar_thread_target::store_registers)
4802 (ravenscar_thread_target::prepare_to_store): Use base thread when
4803 forwarding operation.
4804
4805 2020-08-07 Tom Tromey <tromey@adacore.com>
4806
4807 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
4808 "is_pid" case.
4809
4810 2020-08-07 Tom Tromey <tromey@adacore.com>
4811
4812 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
4813 New methods.
4814 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
4815 first.
4816 (ravenscar_thread_target::add_thread): Rename from
4817 ravenscar_add_thread.
4818 (ravenscar_thread_target::update_thread_list): Use a lambda.
4819 (ravenscar_thread_target::xfer_partial): New method.
4820
4821 2020-08-07 Tom Tromey <tromey@adacore.com>
4822
4823 * ada-lang.h (ada_task_list_iterator_ftype): Now a
4824 gdb::function_view.
4825 (iterate_over_live_ada_tasks): Change type of argument.
4826 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
4827 of argument.
4828
4829 2020-08-07 Tom Tromey <tromey@adacore.com>
4830
4831 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
4832 Remove.
4833 (ravenscar_thread_target::extra_thread_info): Remove.
4834 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
4835 defer to target beneath for non-Ravenscar threads.
4836
4837 2020-08-07 Tom Tromey <tromey@adacore.com>
4838
4839 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
4840 get_base_thread_from_ravenscar_task>: Now methods.
4841 <m_cpu_map>: New member.
4842 (ravenscar_thread_target::get_thread_base_cpu): Rename from
4843 ravenscar_get_thread_base_cpu. Check m_cpu_map.
4844 (ravenscar_thread_target::task_is_currently_active): Update.
4845 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
4846 Now a method.
4847 (ravenscar_thread_target::add_active_thread): Put initial thread
4848 into the m_cpu_map.
4849
4850 2020-08-07 Tom Tromey <tromey@adacore.com>
4851
4852 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
4853 event_ptid.
4854
4855 2020-08-07 Tom Tromey <tromey@adacore.com>
4856
4857 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
4858 runtime_initialized.
4859
4860 2020-08-07 Tom Tromey <tromey@adacore.com>
4861
4862 * ravenscar-thread.c (ravenscar_thread_target): Don't call
4863 add_active_thread.
4864 (ravenscar_thread_target::add_active_thread): Now public.
4865 (ravenscar_inferior_created): Call add_active_thread after pushing
4866 the target.
4867
4868 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
4869
4870 * regcache.c (ptid_regcache_map): New type.
4871 (target_ptid_regcache_map): New type.
4872 (regcaches): Change type to target_ptid_regcache_map.
4873 (get_thread_arch_aspace_regcache): Update to regcaches' new
4874 type.
4875 (regcache_thread_ptid_changed): Likewise.
4876 (registers_changed_ptid): Likewise.
4877 (regcaches_size): Likewise.
4878 (regcaches_test): Update.
4879 (regcache_thread_ptid_changed): Update.
4880 * regcache.h (regcache_up): New type.
4881 * gdbsupport/ptid.h (hash_ptid): New struct.
4882
4883 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
4884
4885 * observable.h (thread_ptid_changed): Add parameter
4886 `process_stratum_target *`.
4887 * infrun.c (infrun_thread_ptid_changed): Add parameter
4888 `process_stratum_target *` and use it.
4889 (selftests): New namespace.
4890 (infrun_thread_ptid_changed): New function.
4891 (_initialize_infrun): Register selftest.
4892 * regcache.c (regcache_thread_ptid_changed): Add parameter
4893 `process_stratum_target *` and use it.
4894 (regcache_thread_ptid_changed): New function.
4895 (_initialize_regcache): Register selftest.
4896 * thread.c (thread_change_ptid): Pass target to
4897 thread_ptid_changed observable.
4898
4899 2020-08-06 Caroline Tice <cmtice@google.com>
4900
4901 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
4902 (struct dwp_sections): Update field comments. Add loclists and
4903 rnglists fields.
4904 (struct virtual_v2_dwo_sections): Rename struct to
4905 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
4906 size & offset fields for loclists and rnglists.
4907 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
4908 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
4909 skipping dummy type units.
4910 (create_dwp_hash_table): Update the large comment above the function to
4911 discuss Version 5 DWP files as well, with references. Update all the
4912 version checks in the function to check for version 5 as well. Add new
4913 section at the end to create dwp hash table for version 5.
4914 (create_dwp_v2_section): Rename function to
4915 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
4916 Add V5 to error message text.
4917 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
4918 into calls to create_dwp_v2_or_v5_section.
4919 (create_dwo_unit_in_dwp_v5): New function.
4920 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
4921 check for version2; add else clause to handle version 5.
4922 (open_and_init_dwo_file): Add code to check dwarf version & only call
4923 create_debug_types_hash_table (with sections.types) if version is not 5;
4924 else call create_debug_type_hash_table, with sections.info.
4925 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
4926 version 5.
4927 (dwarf2_locate_v5_dwp_sections): New function.
4928 (open_and_init_dwp_file): Add else-if clause for version 5 to call
4929 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
4930
4931 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
4932
4933 * regcache.h (class regcache): Remove friend
4934 registers_changed_ptid.
4935 <regcache_thread_ptid_changed>: Remove.
4936 <regcaches>: Remove.
4937 * regcache.c (regcache::regcaches): Rename to...
4938 (regcaches): ... this. Make static.
4939 (get_thread_arch_aspace_regcache): Update.
4940 (regcache::regcache_thread_ptid_changed): Rename to...
4941 (regcache_thread_ptid_changed): ... this. Update.
4942 (class regcache_access): Remove.
4943 (regcaches_test): Update.
4944 (_initialize_regcache): Update.
4945 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
4946 <forward_list>.
4947
4948 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
4949
4950 * regcache.h (class regcache) <current_regcache>: Rename to...
4951 <regcaches>: ... this. Move doc here.
4952 * regcache.c (regcache::current_regcache) Rename to...
4953 (regcache::regcaches): ... this. Move doc to header.
4954 (get_thread_arch_aspace_regcache): Update.
4955 (regcache::regcache_thread_ptid_changed): Update.
4956 (registers_changed_ptid): Update.
4957 (class regcache_access) <current_regcache_size>: Rename to...
4958 <regcaches_size>: ... this.
4959 (current_regcache_test): Rename to...
4960 (regcaches_test): ... this.
4961 (_initialize_regcache): Update.
4962
4963 2020-08-06 Victor Collod <vcollod@nvidia.com>
4964
4965 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
4966
4967 2020-08-05 Kevin Buettner <kevinb@redhat.com>
4968
4969 * corelow.c (core_target::build_file_mappings): Don't output
4970 null pathname in warning.
4971
4972 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
4973
4974 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
4975 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
4976 gdb.dwarf2/dw2-single-line-discriminators.exp,
4977 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
4978
4979 2020-08-05 Tom Tromey <tromey@adacore.com>
4980
4981 PR rust/26197:
4982 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
4983 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
4984 Fix off-by-one and type size errors in ordinary case.
4985
4986 2020-08-05 Tom de Vries <tdevries@suse.de>
4987
4988 * gdbtypes.c (type_not_allocated, type_not_associated): Use
4989 "prop->const_val () == 0" instead of "prop->const_val () != 0".
4990
4991 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
4992
4993 * frame.h (frame_id_p): Return bool.
4994 (frame_id_artificial_p): Return bool.
4995 (frame_id_eq): Return bool.
4996 (has_stack_frames): Return bool.
4997 (get_selected_frame): Fix typo in comment.
4998 (get_frame_pc_if_available): Return bool.
4999 (get_frame_address_in_block_if_available): Return bool.
5000 (get_frame_func_if_available): Return bool.
5001 (read_frame_register_unsigned): Return bool.
5002 (get_frame_register_bytes): Return bool.
5003 (safe_frame_unwind_memory): Return bool.
5004 (deprecated_frame_register_read): Return bool.
5005 (frame_unwinder_is): Return bool.
5006 * frame.c (struct frame_info) <prev_arch::p>: Change type to
5007 bool.
5008 <this_id::p>: Likewise.
5009 <prev_p>: Likewise.
5010 (frame_stash_add): Return bool.
5011 (get_frame_id): Use bool.
5012 (frame_id_build_special) Use bool.
5013 (frame_id_build_unavailable_stack): Use bool.
5014 (frame_id_build): Use bool.
5015 (frame_id_p): Return bool, use true/false instead of 1/0.
5016 (frame_id_artificial_p): Likewise.
5017 (frame_id_eq): Likewise.
5018 (frame_id_inner): Likewise.
5019 (get_frame_func_if_available): Likewise.
5020 (read_frame_register_unsigned): Likewise.
5021 (deprecated_frame_register_read): Likewise.
5022 (get_frame_register_bytes): Likewise.
5023 (has_stack_frames): Likewise.
5024 (inside_main_func): Likewise.
5025 (inside_entry_func): Likewise.
5026 (get_frame_pc_if_available): Likewise.
5027 (get_frame_address_in_block_if_available): Likewise.
5028 (frame_unwinder_is): Likewise.
5029 (safe_frame_unwind_memory): Likewise.
5030 (frame_unwind_arch): Likewise.
5031
5032 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
5033
5034 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
5035 type to cached_copy_status.
5036 (fprintf_frame): Adjust.
5037 (get_frame_func_if_available): Adjust.
5038 (frame_cleanup_after_sniffer): Adjust.
5039
5040 2020-08-04 Mark Wielaard <mark@klomp.org>
5041
5042 * MAINTAINERS (Write After Approval): Update email address.
5043
5044 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5045
5046 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
5047 dynamic_prop::const_val.
5048
5049 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5050
5051 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
5052 dynamic_prop::kind.
5053
5054 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5055
5056 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
5057
5058 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
5059
5060 * configure.tgt: Set gdb_sim for bpf-*-* targets.
5061
5062 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
5063 Jose E. Marchesi <jose.marchesi@oracle.com>
5064
5065 * configure.tgt: Add entry for bpf-*-*.
5066 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
5067 (ALLDEPFILES): Add bpf-tdep.c.
5068 * bpf-tdep.c: New file.
5069 * MAINTAINERS: Add bpf target and maintainer.
5070 * NEWS: Mention the support for the new target.
5071
5072 2020-08-04 Tom de Vries <tdevries@suse.de>
5073
5074 PR symtab/23270
5075 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
5076 Error.
5077
5078 2020-08-03 John Baldwin <jhb@FreeBSD.org>
5079
5080 * syscalls/freebsd.xml: Regenerate.
5081
5082 2020-08-03 John Baldwin <jhb@FreeBSD.org>
5083
5084 * syscalls/update-freebsd.sh: Fix usage and year range.
5085
5086 2020-08-03 Tom de Vries <tdevries@suse.de>
5087
5088 PR symtab/26333
5089 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
5090 DW_LNE_lo_user/DW_LNE_hi_user range.
5091
5092 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
5093
5094 PR ada/26318
5095 * ada-lang.c (ada_modulus): Return 0 if property is not of const
5096 kind.
5097
5098 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5099
5100 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
5101
5102 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5103
5104 * breakpoint.c (set_breakpoint_condition): Update the condition
5105 expressions after checking that the input condition string parses
5106 successfully and does not contain junk at the end.
5107
5108 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5109
5110 * breakpoint.c (set_breakpoint_condition): Update the
5111 condition string after parsing the new condition successfully.
5112
5113 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5114
5115 * proc-api.c (_STRUCTURED_PROC): Don't define.
5116 * proc-events.c: Likewise.
5117 * proc-flags.c: Likewise.
5118 * proc-why.c: Likewise.
5119 * procfs.c: Likewise.
5120
5121 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
5122 * configure, config.in: Regenerate.
5123
5124 2020-07-30 Tom de Vries <tdevries@suse.de>
5125
5126 PR build/26320
5127 * ui-style.h (struct ui_file_style::color): Wrap m_value and
5128 m_red/m_green/m_blue in a union.
5129
5130 2020-07-29 Tom de Vries <tdevries@suse.de>
5131
5132 PR tdep/26280
5133 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
5134
5135 2020-07-28 Tom Tromey <tromey@adacore.com>
5136
5137 PR symtab/26270:
5138 * symtab.h (find_pc_partial_function_sym): Declare.
5139 * cli/cli-cmds.c (disassemble_command): Use
5140 find_pc_partial_function_sym. Check asm_demangle.
5141 * blockframe.c (cache_pc_function_sym): New global.
5142 (cache_pc_function_name): Remove.
5143 (clear_pc_function_cache): Update.
5144 (find_pc_partial_function_sym): New function, from
5145 find_pc_partial_function.
5146 (find_pc_partial_function): Rewrite using
5147 find_pc_partial_function_sym.
5148
5149 2020-07-28 Tom Tromey <tromey@adacore.com>
5150
5151 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
5152 help. Add usage.
5153
5154 2020-07-28 Tom Tromey <tromey@adacore.com>
5155
5156 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
5157 <DW_OP_GNU_variable_value>: Cast to address type.
5158
5159 2020-07-28 Kamil Rytarowski <n54@gmx.com>
5160
5161 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
5162 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
5163 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
5164 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
5165 (nbsd_get_siginfo_type): New.
5166 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
5167 (_initialize_nbsd_tdep): New.
5168
5169 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5170
5171 PR binutils/26301
5172 * configure: Regenerated.
5173
5174 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5175
5176 PR binutils/26301
5177 * configure: Regenerated.
5178
5179 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5180
5181 * python/py-frame.c: Remove 'user-regs.h' include.
5182 (frapy_read_register): Rewrite to make use of
5183 gdbpy_parse_register_id.
5184 * python/py-registers.c (gdbpy_parse_register_id): New function,
5185 moved here from python/py-unwind.c. Updated the return type, and
5186 also accepts register descriptor objects.
5187 * python/py-unwind.c: Remove 'user-regs.h' include.
5188 (pyuw_parse_register_id): Moved to python/py-registers.c.
5189 (unwind_infopy_add_saved_register): Update to use
5190 gdbpy_parse_register_id.
5191 (pending_framepy_read_register): Likewise.
5192 * python/python-internal.h (gdbpy_parse_register_id): Declare.
5193
5194 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5195
5196 * python/py-registers.c: Add 'user-regs.h' include.
5197 (register_descriptor_iter_find): New function.
5198 (register_descriptor_iterator_object_methods): New static global
5199 methods array.
5200 (register_descriptor_iterator_object_type): Add pointer to methods
5201 array.
5202
5203 2020-07-27 John Baldwin <jhb@FreeBSD.org>
5204
5205 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
5206 for all architectures on FreeBSD 11.3 and later.
5207
5208 2020-07-27 Tom Tromey <tromey@adacore.com>
5209
5210 * gcore.h (load_corefile): Don't declare.
5211
5212 2020-07-27 Tom de Vries <tdevries@suse.de>
5213
5214 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
5215 * config.in: Regenerate.
5216 * configure: Regenerate.
5217
5218 2020-07-26 Eli Zaretskii <eliz@gnu.org>
5219
5220 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
5221 ws2tcpip.h. When checking whether socklen_t type is defined, use
5222 ws2tcpip.h if it is available and sys/socket.h isn't.
5223 * configure: Regenerate.
5224 * config.in: Regenerate.
5225
5226 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
5227
5228 PR fortran/23051
5229 PR fortran/26139
5230 * valops.c (value_ind): Pass address to
5231 readjust_indirect_value_type.
5232 * value.c (readjust_indirect_value_type): Make parameter
5233 non-const, and add extra address parameter. Resolve original type
5234 before using it.
5235 * value.h (readjust_indirect_value_type): Update function
5236 signature and comment.
5237
5238 2020-07-25 Tom de Vries <tdevries@suse.de>
5239
5240 PR symtab/26243
5241 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
5242 entries.
5243
5244 2020-07-24 Aaron Merey <amerey@redhat.com>
5245
5246 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
5247 * configure: Rebuild.
5248
5249 2020-07-23 Kevin Buettner <kevinb@redhat.com>
5250
5251 PR corefiles/26294
5252 * corelow.c (_initialize_corelow): Add period to help text
5253 for "maintenance print core-file-backed-mappings".
5254
5255 2020-07-23 Pedro Alves <pedro@palves.net>
5256
5257 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
5258 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
5259 meanwhile.
5260 * frame.c (frame_cache_generation, get_frame_cache_generation):
5261 New.
5262 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
5263 (get_prev_frame_if_no_cycle): On exception, don't touch
5264 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
5265 * frame.h (get_frame_cache_generation): Declare.
5266
5267 2020-07-23 Tom de Vries <tdevries@suse.de>
5268
5269 PR tui/26282
5270 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
5271 New default constructor.
5272
5273 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
5274
5275 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
5276 exclude non-statement entries.
5277
5278 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5279
5280 * NEWS (New commands): Mention new command
5281 "maintenance print core-file-backed-mappings".
5282
5283 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5284
5285 * corelow.c (gdbcmd.h): Include.
5286 (core_target::info_proc_mappings): New method.
5287 (get_current_core_target): New function.
5288 (maintenance_print_core_file_backed_mappings): New function.
5289 (_initialize_corelow): Add core-file-backed-mappings to
5290 "maint print" commands.
5291
5292 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5293
5294 * linux-tdep.c (dump_note_entry_p): New function.
5295 (linux_dump_mapping_p_ftype): New typedef.
5296 (linux_find_memory_regions_full): Add new parameter,
5297 should_dump_mapping_p.
5298 (linux_find_memory_regions): Adjust call to
5299 linux_find_memory_regions_full.
5300 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
5301 call to linux_find_memory_regions_full.
5302
5303 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5304
5305 * corelow.c (solist.h, unordered_map): Include.
5306 (class core_target): Add field m_core_file_mappings and
5307 method build_file_mappings.
5308 (core_target::core_target): Call build_file_mappings.
5309 (core_target::~core_target): Free memory associated with
5310 m_core_file_mappings.
5311 (core_target::build_file_mappings): New method.
5312 (core_target::xfer_partial): Use m_core_file_mappings
5313 for memory transfers.
5314 * linux-tdep.c (linux_read_core_file_mappings): New
5315 function.
5316 (linux_core_info_proc_mappings): Rewrite to use
5317 linux_read_core_file_mappings.
5318 (linux_init_abi): Register linux_read_core_file_mappings.
5319
5320 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5321
5322 * arch-utils.c (default_read_core_file_mappings): New function.
5323 * arch-utils.c (default_read_core_file_mappings): Declare.
5324 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
5325 * gdbarch.h, gdbarch.c: Regenerate.
5326
5327 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5328
5329 PR corefiles/25631
5330 * corelow.c (core_target:xfer_partial): Revise
5331 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
5332 case after first checking the stratum beneath the core
5333 target.
5334 (has_all_memory): Return true.
5335 * target.c (raw_memory_xfer_partial): Revise comment
5336 regarding use of has_all_memory.
5337
5338 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5339
5340 * exec.h (section_table_xfer_memory): Revise declaration,
5341 replacing section name parameter with an optional callback
5342 predicate.
5343 * exec.c (section_table_xfer_memory): Likewise.
5344 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
5345 of section_table_xfer_memory.
5346
5347 2020-07-22 Tom Tromey <tromey@adacore.com>
5348
5349 * mi/mi-cmd-stack.c (list_args_or_locals): Use
5350 lookup_symbol_search_name.
5351
5352 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5353
5354 * python/py-registers.c (gdbpy_register_object_data_init): Remove
5355 redundant local variable.
5356 (gdbpy_get_register_descriptor): Extract descriptor vector as a
5357 reference, not pointer, update code accordingly.
5358
5359 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5360 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5361
5362 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
5363 * jit.c (jit_breakpoint_re_set_internal): Use the
5364 `skip_jit_symbol_lookup` field.
5365
5366 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5367 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5368
5369 * jit.c (jit_read_descriptor): Define the descriptor address once,
5370 use twice.
5371 (jit_breakpoint_deleted): Move the declaration of the loop variable
5372 `iter` into the loop header.
5373 (jit_breakpoint_re_set_internal): Move the declaration of the local
5374 variable `objf_data` to the first point of definition.
5375 (jit_event_handler): Move the declaration of local variables
5376 `code_entry`, `entry_addr`, and `objf` to their first point of use.
5377 Rename `objf` to `jited`.
5378
5379 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5380
5381 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
5382 Remove.
5383 * jit.c (get_jiter_objfile_data): Update.
5384
5385 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5386 Simon Marchi <simon.marchi@polymtl.ca>
5387
5388 * jit.c (struct jit_program_space_data): Remove.
5389 (jit_program_space_key): Remove.
5390 (jiter_objfile_data::~jiter_objfile_data): Remove program space
5391 stuff.
5392 (get_jit_program_space_data): Remove.
5393 (jit_breakpoint_deleted): Iterate on all of the program space's
5394 objfiles.
5395 (jit_inferior_init): Likewise.
5396 (jit_breakpoint_re_set_internal): Likewise. Also change return
5397 type to void.
5398 (jit_breakpoint_re_set): Pass current_program_space to
5399 jit_breakpoint_re_set_internal.
5400
5401 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5402
5403 * jit.h (struct jiter_objfile_data) <cached_code_address,
5404 jit_breakpoint>: Move to here from ...
5405 * jit.c (jit_program_space_data): ... here.
5406 (jiter_objfile_data::~jiter_objfile_data): Update.
5407 (jit_breakpoint_deleted): Update.
5408 (jit_breakpoint_re_set_internal): Update.
5409
5410 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5411
5412 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
5413 checks.
5414 (jit_read_descriptor): Remove NULL check.
5415 (jit_event_handler): Add an assertion.
5416
5417 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5418
5419 * jit.h (struct jit_objfile_data): Split into...
5420 (struct jiter_objfile_data): ... this ...
5421 (struct jited_objfile_data): ... and this.
5422 * objfiles.h (struct objfile) <jit_data>: Remove.
5423 <jiter_data, jited_data>: New fields.
5424 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
5425 (jiter_objfile_data::~jiter_objfile_data): ... this.
5426 (get_jit_objfile_data): Rename to ...
5427 (get_jiter_objfile_data): ... this.
5428 (add_objfile_entry): Update.
5429 (jit_read_descriptor): Use get_jiter_objfile_data.
5430 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
5431 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
5432 (jit_inferior_exit_hook): Use objfile's jited_data field.
5433
5434 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5435
5436 * jit.h: Forward-declare `struct minimal_symbol`.
5437 (struct jit_objfile_data): Migrate to here from jit.c; also add a
5438 constructor, destructor, and an objfile* field.
5439 * jit.c (jit_objfile_data): Remove.
5440 (struct jit_objfile_data): Migrate from here to jit.h.
5441 (jit_objfile_data::~jit_objfile_data): New destructor
5442 implementation with code moved from free_objfile_data.
5443 (free_objfile_data): Delete.
5444 (get_jit_objfile_data): Update to use the jit_data field of objfile.
5445 (jit_find_objf_with_entry_addr): Ditto.
5446 (jit_inferior_exit_hook): Ditto.
5447 (_initialize_jit): Remove the call to
5448 register_objfile_data_with_cleanup.
5449 * objfiles.h (struct objfile) <jit_data>: New field.
5450
5451 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5452
5453 * jit.h: Forward-declare `struct objfile`.
5454 (jit_event_handler): Add a second parameter, the JITer objfile.
5455 * jit.c (jit_read_descriptor): Change the signature to take the
5456 JITer objfile as an argument instead of the jit_program_space_data.
5457 (jit_inferior_init): Update the call to jit_read_descriptor.
5458 (jit_event_handler): Use the new JITer objfile argument when calling
5459 jit_read_descriptor.
5460 * breakpoint.c (handle_jit_event): Update the call to
5461 jit_event_handler to pass the JITer objfile.
5462
5463 2020-07-21 John Baldwin <jhb@FreeBSD.org>
5464
5465 * gdbarch.c: Regenerate.
5466 * gdbarch.h: Regenerate.
5467 * gdbarch.sh (handle_segmentation_fault): Remove method.
5468 * infrun.c (handle_segmentation_fault): Remove.
5469 (print_signal_received_reason): Remove call to
5470 handle_segmentation_fault.
5471
5472 2020-07-21 John Baldwin <jhb@FreeBSD.org>
5473
5474 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
5475 Rename to sparc64_linux_report_signal_info and add siggnal
5476 argument.
5477 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
5478 instead of sparc64_linux_handle_segmentation_fault.
5479
5480 2020-07-21 John Baldwin <jhb@FreeBSD.org>
5481
5482 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
5483 i386_linux_report_signal_info instead of
5484 i386_linux_handle_segmentation_fault.
5485 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
5486 to i386_linux_report_signal_info and add siggnal argument.
5487 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
5488 of i386_linux_handle_segmentation_fault.
5489 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
5490 to i386_linux_report_signal_info and add siggnal argument.
5491
5492 2020-07-21 John Baldwin <jhb@FreeBSD.org>
5493
5494 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
5495 hook if present.
5496
5497 2020-07-21 John Baldwin <jhb@FreeBSD.org>
5498
5499 * gdbarch.c: Regenerate.
5500 * gdbarch.h: Regenerate.
5501 * gdbarch.sh (report_signal_info): New method.
5502 * infrun.c (print_signal_received_reason): Invoke gdbarch
5503 report_signal_info hook if present.
5504
5505 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
5506
5507 * python/py-registers.c : Add 'unordered_map' include.
5508 (gdbpy_new_reggroup): Renamed to...
5509 (gdbpy_get_reggroup): ...this. Update to only create register
5510 group descriptors when needed.
5511 (gdbpy_reggroup_iter_next): Update.
5512
5513 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
5514
5515 * python/py-registers.c (gdbpy_register_object_data): New static
5516 global.
5517 (gdbpy_register_object_data_init): New function.
5518 (gdbpy_new_register_descriptor): Renamed to...
5519 (gdbpy_get_register_descriptor): ...this, and update to reuse
5520 existing register descriptors where possible.
5521 (gdbpy_register_descriptor_iter_next): Update.
5522 (gdbpy_initialize_registers): Register new gdbarch data.
5523
5524 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
5525
5526 * linux-nat.c (stopped_pids): Make static.
5527
5528 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
5529
5530 PR ada/26235
5531 * gdbtypes.c (ada_discrete_type_low_bound,
5532 ada_discrete_type_high_bound): Handle undefined bounds.
5533
5534 2020-07-21 Kamil Rytarowski <n54@gmx.com>
5535
5536 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
5537 declaration.
5538 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
5539 function.
5540
5541 2020-07-20 John Baldwin <jhb@FreeBSD.org>
5542
5543 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
5544 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
5545 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
5546 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
5547 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
5548 method.
5549
5550 2020-07-20 Ludovic Courtès <ludo@gnu.org>
5551
5552 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
5553 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
5554 which are deprecated in Guile 3.0.
5555 * configure.ac (try_guile_versions): Add "guile-3.0".
5556 * configure (try_guile_versions): Regenerate.
5557 * NEWS: Update entry.
5558
5559 2020-07-20 Ludovic Courtès <ludo@gnu.org>
5560 Doug Evans <dje@google.com>
5561
5562 PR gdb/21104
5563 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
5564 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
5565 USING_GUILE_BEFORE_2_2.
5566 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
5567 Change type to 'scm_t_port_type *'.
5568 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
5569 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
5570 parameter and honor it. Update callers.
5571 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
5572 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
5573 functions.
5574 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
5575 USING_GUILE_BEFORE_2_2.
5576 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
5577 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
5578 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
5579 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
5580 and 'SCM_PORT_TYPE'.
5581 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
5582 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
5583 (gdbscm_memory_port_read, gdbscm_memory_port_write)
5584 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
5585 [!USING_GUILE_BEFORE_2_2]: New functions.
5586 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
5587 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
5588 'gdbscm_memory_port_read'.
5589 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
5590 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
5591 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
5592 function.
5593 (ioscm_init_memory_port): Remove.
5594 (ioscm_init_memory_port_stream): New function
5595 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
5596 function.
5597 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
5598 Return scm_from_uint (0).
5599 (gdbscm_set_memory_port_read_buffer_size_x)
5600 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
5601 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
5602 Return scm_from_uint (0).
5603 (gdbscm_set_memory_port_write_buffer_size_x)
5604 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
5605 * configure.ac (try_guile_versions): Add "guile-2.2".
5606 * configure: Regenerate.
5607 * NEWS: Add entry.
5608
5609 2020-07-18 Tom Tromey <tom@tromey.com>
5610
5611 * linux-nat.c (linux_multi_process): Remove.
5612 (linux_nat_target::supports_multi_process): Return true.
5613
5614 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
5615
5616 * arch/riscv.c (riscv_tdesc_cache): Change map type.
5617 (riscv_lookup_target_description): Return pointer out of
5618 unique_ptr.
5619 * target-descriptions.c (allocate_target_description): Add
5620 comment.
5621 (target_desc_deleter::operator()): Likewise.
5622 * target-descriptions.h (struct target_desc_deleter): Moved to
5623 gdbsupport/tdesc.h.
5624 (target_desc_up): Likewise.
5625
5626 2020-07-17 Tom Tromey <tromey@adacore.com>
5627
5628 * linux-nat.c (linux_nat_target::supports_non_stop)
5629 (linux_nat_target::always_non_stop_p): Use "true".
5630 (linux_nat_target::supports_disable_randomization): Use "true" and
5631 "false".
5632
5633 2020-07-16 Caroline Tice <cmtice@google.com>
5634
5635 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
5636 (RNGLIST_HEADER_SIZE64): New constant definition.
5637 (struct dwop_section_names): Add rnglists_dwo.
5638 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
5639 (struct loclist_header): Rename to 'loclists_rnglists_header'.
5640 (struct dwo_sections): Add rnglists field.
5641 (read_attribut_reprocess): Add tag parameter.
5642 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
5643 (cu_debug_rnglists_section): New function (decl & definition).
5644 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
5645 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
5646 die whose range is being checked; get rnglist section from
5647 cu_debug_rnglists_section, to get from either objfile or dwo file as
5648 appropriate. Add cases for DW_RLE_base_addressx,
5649 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
5650 the base address to DW_RLE_offset_pairs (not to all ranges), moving
5651 test inside if-condition and updating complaint message.
5652 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
5653 dwarf2_rnglists_process.
5654 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
5655 dwarf2_ranges_process.
5656 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
5657 need_ranges_base and update comment appropriately. Also pass die tag
5658 to dwarf2_ranges_read.
5659 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
5660 need_ranges_base and update comment appropriately. Also pass die tag
5661 to dwarf2_ranges_process.
5662 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
5663 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
5664 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
5665 need_ranges_base and update comment appropriately. Also pass die tag
5666 to read_attribute_reprocess and dwarf2_ranges_read.
5667 (read_loclist_header): Rename function to read_loclists_rnglists_header,
5668 and update function comment appropriately.
5669 (read_loclist_index): Call read_loclists_rnglists_header instead of
5670 read_loclist_header.
5671 (read_rnglist_index): New function.
5672 (read_attribute_reprocess): Add tag parameter. Add code for
5673 DW_FORM_rnglistx, passing tag to read_rnglist_index.
5674 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
5675
5676 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
5677
5678 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
5679 being resolved.
5680
5681 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
5682
5683 * arch-utils.c (show_architecture): Update formatting of messages.
5684
5685 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5686
5687 * gdbtypes.h (struct type) <bounds>: Handle array and string
5688 types.
5689 * ada-lang.c (assign_aggregate): Use type::bounds on
5690 array/string type.
5691 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
5692 * c-varobj.c (c_number_of_children): Likewise.
5693 (c_describe_child): Likewise.
5694 * eval.c (evaluate_subexp_for_sizeof): Likewise.
5695 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
5696 (f_type_print_base): Likewise.
5697 * f-valprint.c (f77_array_offset_tbl): Likewise.
5698 (f77_get_upperbound): Likewise.
5699 (f77_print_array_1): Likewise.
5700 * guile/scm-type.c (gdbscm_type_range): Likewise.
5701 * m2-typeprint.c (m2_array): Likewise.
5702 (m2_is_long_set_of_type): Likewise.
5703 * m2-valprint.c (get_long_set_bounds): Likewise.
5704 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
5705 * python/py-type.c (typy_range): Likewise.
5706 * rust-lang.c (rust_internal_print_type): Likewise.
5707 * type-stack.c (type_stack::follow_types): Likewise.
5708 * valarith.c (value_subscripted_rvalue): Likewise.
5709 * valops.c (value_cast): Likewise.
5710
5711 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5712
5713 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
5714 callers to use the equivalent accessor methods.
5715
5716 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5717
5718 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
5719 (struct type) <bit_stride>: New method.
5720 (TYPE_BIT_STRIDE): Remove.
5721 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
5722
5723 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5724
5725 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
5726 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
5727 callers to use the equivalent accessor methods instead.
5728
5729 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5730
5731 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
5732 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
5733 callers to use the equivalent accessor methods instead.
5734
5735 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5736
5737 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
5738 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
5739 to use dynamic_prop::kind.
5740
5741 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5742
5743 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
5744 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
5745 to get the bound property's kind and check against
5746 PROP_UNDEFINED.
5747
5748 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5749
5750 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
5751 all callers to use type::range_bounds followed by
5752 dynamic_prop::{low,high}.
5753
5754 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
5755
5756 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
5757 const_val, set_const_val, baton, set_locexpr, set_loclist,
5758 set_addr_offset, variant_parts, set_variant_parts,
5759 original_type, set_original_type>: New methods.
5760 <kind>: Rename to...
5761 <m_kind>: ... this. Update all users to use the new methods
5762 instead.
5763 <data>: Rename to...
5764 <m_data>: ... this. Update all users to use the new methods
5765 instead.
5766
5767 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5768
5769 * gdbtypes.c (get_discrete_bounds): Return failure if
5770 the range type's bounds are not both defined and constant
5771 values.
5772 (get_array_bounds): Update comment. Remove undefined bound check.
5773
5774 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
5775
5776 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
5777 the type::bounds method directly.
5778
5779 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5780
5781 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
5782 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
5783 are used to set the range type's bounds to use set_bounds.
5784
5785 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5786
5787 * exec.c (_initialize_exec): Update exec-file-mismatch help.
5788
5789 2020-07-10 Pedro Alves <pedro@palves.net>
5790
5791 * gdbthread.h (inferior_ref): Define.
5792 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
5793 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
5794 * thread.c
5795 (scoped_restore_current_thread::restore):
5796 Adjust to gdb::ref_ptr.
5797 (scoped_restore_current_thread::~scoped_restore_current_thread):
5798 Remove manual decref handling.
5799 (scoped_restore_current_thread::scoped_restore_current_thread):
5800 Adjust to use
5801 inferior_ref::new_reference/thread_info_ref::new_reference.
5802 Incref the thread before calling get_frame_id instead of after.
5803 Let TARGET_CLOSE_ERROR propagate.
5804
5805 2020-07-10 Pedro Alves <pedro@palves.net>
5806
5807 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
5808 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
5809 NOT_AVAILABLE_ERROR.
5810 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
5811 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
5812
5813 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5814 Pedro Alves <pedro@palves.net>
5815
5816 PR gdb/26199
5817 * infrun.c (threads_are_resumed_pending_p): Delete.
5818 (do_target_wait): Remove threads_are_executing and
5819 threads_are_resumed_pending_p checks from the inferior_matches
5820 lambda. Update comments.
5821
5822 2020-07-10 Pedro Alves <pedro@palves.net>
5823
5824 PR gdb/26199
5825 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
5826 executing threads.
5827
5828 2020-07-10 Pedro Alves <pedro@palves.net>
5829
5830 PR gdb/26199
5831 * infrun.c (handle_no_resumed): Handle multiple targets.
5832
5833 2020-07-10 Pedro Alves <pedro@palves.net>
5834
5835 PR gdb/26199
5836 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
5837 target_is_async_p.
5838
5839 2020-07-10 Pedro Alves <pedro@palves.net>
5840
5841 PR gdb/26199
5842 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
5843 threads, not all threads.
5844
5845 2020-07-10 Pedro Alves <pedro@palves.net>
5846
5847 PR gdb/26199
5848 * remote.c (remote_target::open_1): Pass remote target pointer as
5849 data to create_async_event_handler.
5850 (remote_async_inferior_event_handler): Mark async event handler
5851 before returning if the remote target still has either pending
5852 events or unacknowledged notifications.
5853
5854 2020-07-10 John Baldwin <jhb@FreeBSD.org>
5855
5856 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
5857 declaration.
5858 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
5859 function.
5860
5861 2020-07-09 John Baldwin <jhb@FreeBSD.org>
5862
5863 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
5864 inferior_ptid.
5865
5866 2020-07-09 John Baldwin <jhb@FreeBSD.org>
5867
5868 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
5869 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
5870 AT_FREEBSD_PS_STRINGS.
5871
5872 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
5873
5874 * auto-load.c (auto_load_objfile_script_1): Convert drive part
5875 of debugfile path on Windows.
5876
5877 2020-07-08 John Baldwin <jhb@FreeBSD.org>
5878
5879 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
5880 argument to 'data'.
5881
5882 2020-07-08 Tom Tromey <tromey@adacore.com>
5883
5884 * ada-lang.c (ada_exception_message_1): Use read_memory.
5885
5886 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5887
5888 PR python/22748
5889 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
5890 special handling for inline frames.
5891 * findvar.c (value_of_register_lazy): Skip inline frames when
5892 creating lazy register values.
5893 * frame.c (frame_id_computed_p): Delete definition.
5894 * frame.h (frame_id_computed_p): Delete declaration.
5895
5896 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5897
5898 * NEWS: Mention additions to Python API.
5899 * python/py-arch.c (archpy_register_groups): New function.
5900 (arch_object_methods): Add 'register_groups' method.
5901 * python/py-registers.c (reggroup_iterator_object): New struct.
5902 (reggroup_object): New struct.
5903 (gdbpy_new_reggroup): New function.
5904 (gdbpy_reggroup_to_string): New function.
5905 (gdbpy_reggroup_name): New function.
5906 (gdbpy_reggroup_iter): New function.
5907 (gdbpy_reggroup_iter_next): New function.
5908 (gdbpy_new_reggroup_iterator): New function
5909 (gdbpy_initialize_registers): Register new types.
5910 (reggroup_iterator_object_type): Define new Python type.
5911 (gdbpy_reggroup_getset): New static global.
5912 (reggroup_object_type): Define new Python type.
5913 * python/python-internal.h
5914
5915 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5916
5917 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
5918 * python/py-arch.c (archpy_registers): New function.
5919 (arch_object_methods): Add 'registers' method.
5920 * python/py-registers.c: New file.
5921 * python/python-internal.h
5922 (gdbpy_new_register_descriptor_iterator): Declare.
5923 (gdbpy_initialize_registers): Declare.
5924 * python/python.c (do_start_initialization): Call
5925 gdbpy_initialize_registers.
5926 * NEWS: Mention additions to the Python API.
5927
5928 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5929
5930 * NEWS: Mention new Python API method.
5931 * python/py-unwind.c (pending_framepy_architecture): New function.
5932 (pending_frame_object_methods): Add architecture method.
5933
5934 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5935
5936 * gdbarch.c: Regenerate.
5937 * gdbarch.h: Regenerate.
5938 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
5939 (gdbarch_data): Use internal_error for the case where
5940 deprecated_set_gdbarch_data was originally needed.
5941 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
5942 and use passed in obstack.
5943 (libunwind_frame_set_descr): Should no longer get back NULL from
5944 gdbarch_data.
5945 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
5946 type.
5947 * user-regs.c (user_regs_init): Update parameters, and use passed
5948 in obstack.
5949 (user_reg_add): Should no longer get back NULL from gdbarch_data.
5950 (_initialize_user_regs): Register as a pre-init gdbarch data type.
5951
5952 2020-07-06 Tom de Vries <tdevries@suse.de>
5953
5954 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
5955 End-Of-Sequence in lte_is_less_than.
5956 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
5957 "gdb: Don't reorder line table entries too much when sorting".
5958
5959 2020-07-06 Tom de Vries <tdevries@suse.de>
5960
5961 PR tui/26205
5962 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
5963
5964 2020-07-05 Tom de Vries <tdevries@suse.de>
5965
5966 PR build/26187
5967 * inferior.h (struct infcall_suspend_state_deleter): If available, use
5968 std::uncaught_exceptions instead of deprecated
5969 std::uncaught_exception.
5970
5971 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5972
5973 * macroexp.h (macro_stringify): Return
5974 gdb::unique_xmalloc_ptr<char>.
5975 * macroexp.c (macro_stringify): Likewise.
5976 * macrotab.c (fixup_definition): Update.
5977
5978 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5979
5980 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
5981 (lex_one_token): Update.
5982 * macroexp.c (struct macro_buffer) <release>: Return
5983 gdb::unique_xmalloc_ptr<char>.
5984 (macro_stringify): Update.
5985 (macro_expand): Update.
5986 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
5987 * macroexp.h (macro_expand_next): Likewise.
5988
5989 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
5990
5991 * macroexp.h (macro_lookup_ftype): Remove.
5992 (macro_expand, macro_expand_once, macro_expand_next): Remove
5993 lookup function parameters, add scope parameter.
5994 * macroexp.c (scan, substitute_args, expand, maybe_expand,
5995 macro_expand, macro_expand_once, macro_expand_next): Likewise.
5996 * macroscope.h (standard_macro_lookup): Change parameter type
5997 to macro_scope.
5998 * macroscope.c (standard_macro_lookup): Likewise.
5999 * c-exp.y (lex_one_token): Update.
6000 * macrocmd.c (macro_expand_command): Likewise.
6001 (macro_expand_once_command): Likewise.
6002
6003 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6004
6005 * inf-loop.c (inferior_event_handler): Remove client_data param.
6006 * inf-loop.h (inferior_event_handler): Likewise.
6007 * infcmd.c (step_1): Adjust.
6008 * infrun.c (proceed): Adjust.
6009 (fetch_inferior_event): Remove client_data param.
6010 (infrun_async_inferior_event_handler): Adjust.
6011 * infrun.h (fetch_inferior_event): Remove `void *` param.
6012 * linux-nat.c (handle_target_event): Adjust.
6013 * record-btrace.c (record_btrace_handle_async_inferior_event):
6014 Adjust.
6015 * record-full.c (record_full_async_inferior_event_handler):
6016 Adjust.
6017 * remote.c (remote_async_inferior_event_handler): Adjust.
6018
6019 2020-07-01 Tom Tromey <tom@tromey.com>
6020
6021 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
6022 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
6023
6024 2020-07-01 Tom Tromey <tom@tromey.com>
6025
6026 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
6027 tui_gen_win_info.
6028 (tui_win_info::make_window): Merge with
6029 tui_gen_win_info::make_window.
6030 (tui_win_info::make_visible): Move from tui_gen_win_info.
6031 * tui/tui-win.c (tui_win_info::max_width): Move from
6032 tui_gen_win_info.
6033 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
6034 type.
6035 <window_factory>: Likewise.
6036 * tui/tui-layout.c (tui_win_info::resize): Move from
6037 tui_gen_win_info.
6038 (make_standard_window): Change return type.
6039 (get_locator_window, tui_get_window_by_name): Likewise.
6040 (tui_layout_window::apply): Remove a cast.
6041 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
6042 (struct tui_win_info): Merge with tui_gen_win_info.
6043 (struct tui_gen_win_info): Remove.
6044
6045 2020-07-01 Tom Tromey <tom@tromey.com>
6046
6047 * tui/tui-stack.h (struct tui_locator_window): Derive from
6048 tui_win_info.
6049 <do_scroll_horizontal, do_scroll_vertical>: New methods.
6050 <can_box>: New method.
6051
6052 2020-07-01 Tom Tromey <tom@tromey.com>
6053
6054 * tui/tui-stack.h (struct tui_locator_window): Remove body.
6055
6056 2020-07-01 Tom Tromey <tom@tromey.com>
6057
6058 * tui/tui-regs.c (tui_data_window::display_registers_from)
6059 (tui_data_window::display_registers_from)
6060 (tui_data_window::first_data_item_displayed)
6061 (tui_data_window::delete_data_content_windows): Update.
6062 (tui_data_window::refresh_window, tui_data_window::no_refresh):
6063 Remove.
6064 (tui_data_window::check_register_values): Update.
6065 (tui_data_item_window::rerender): Add parameters. Update.
6066 (tui_data_item_window::refresh_window): Remove.
6067 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
6068 virtual.
6069 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
6070 tui_gen_win_info.
6071 <refresh_window, max_height, min_height>: Remove.
6072 <rerender>: Add parameters.
6073 <x, y, visible>: New members.
6074 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
6075 <m_item_width>: New member.
6076
6077 2020-07-01 Tom Tromey <tom@tromey.com>
6078
6079 * tui/tui-regs.c (tui_data_window::show_register_group)
6080 (tui_data_window::check_register_values): Update.
6081 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
6082 from item_no.
6083
6084 2020-07-01 Tom Tromey <tom@tromey.com>
6085
6086 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
6087 useless "if".
6088
6089 2020-07-01 Tom Tromey <tom@tromey.com>
6090
6091 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
6092 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
6093
6094 2020-07-01 Tom Tromey <tom@tromey.com>
6095
6096 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
6097 * tui/tui-winsource.h (enum tui_line_or_address_kind)
6098 (struct tui_line_or_address): Move from tui-data.h.
6099 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
6100 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
6101 (tui_cmd_window, tui_source_window_base, tui_source_window)
6102 (tui_disasm_window): Don't declare.
6103 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
6104 to tui-winsource.h.
6105 (SINGLE_KEY): Move to tui-stack.c.
6106
6107 2020-07-01 Tom Tromey <tom@tromey.com>
6108
6109 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
6110 std::string.
6111 * tui/tui-regs.c (class tab_expansion_file): New.
6112 (tab_expansion_file::write): New method.
6113 (tui_register_format): Change return type. Use
6114 tab_expansion_file.
6115 (tui_get_register, tui_data_window::display_registers_from)
6116 (tui_data_item_window::rerender): Update.
6117 * tui/tui-io.h (tui_expand_tabs): Don't declare.
6118 * tui/tui-io.c (tui_expand_tabs): Remove.
6119
6120 2020-07-01 Tom Tromey <tom@tromey.com>
6121
6122 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
6123
6124 2020-07-01 Fangrui Song <maskray@google.com>
6125
6126 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
6127
6128 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6129
6130 * dwarf2/read.c (set_die_type): Removed conditions to restrict
6131 forms for DW_AT_associated and DW_AT_allocated attributes,
6132 which is already checked in function attr_to_dynamic_prop.
6133
6134 2020-06-30 Tom Tromey <tromey@adacore.com>
6135
6136 * dwarf2/read.c (quirk_rust_enum): Correctly call
6137 alloc_rust_variant for default-less enum.
6138
6139 2020-06-30 Tom Tromey <tromey@adacore.com>
6140
6141 PR build/26183:
6142 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
6143 gdb::to_string.
6144
6145 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
6146
6147 * gdbarch.sh (displaced_step_copy_insn): Update doc.
6148 * gdbarch.h: Re-generate.
6149
6150 2020-06-28 Tom Tromey <tom@tromey.com>
6151
6152 * command.h (cmd_types): Remove.
6153 (cmd_type): Don't declare.
6154 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
6155 typedef.
6156 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
6157 * cli/cli-decode.c (cmd_type): Remove.
6158
6159 2020-06-27 Pedro Alves <palves@redhat.com>
6160
6161 * fork-child.c (prefork_hook): Adjust.
6162 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
6163 Delete.
6164 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
6165 * inferior.c (inferior::set_tty, inferior::tty): New methods.
6166 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
6167 Remove declarations.
6168 (struct inferior) <set_tty, tty>: New methods.
6169 (struct inferior) <terminal>: Rename to ...
6170 (struct inferior) <m_terminal>: ... this and make private.
6171 * main.c (captured_main_1): Adjust.
6172 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
6173 (mi_cmd_inferior_tty_show): Adjust.
6174 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
6175 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
6176
6177 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
6178
6179 * configure.ac: Add --enable-libctf: handle --disable-static
6180 properly.
6181 * acinclude.m4: sinclude ../config/enable.m4.
6182 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
6183 (LIBCTF): Substitute in.
6184 (CTF_DEPS): New, likewise.
6185 (CLIBS): libctf needs symbols from libbfd: move earlier.
6186 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
6187 flags.
6188 * ctfread.c: Surround in ENABLE_LIBCTF.
6189 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
6190 * configure: Regenerate.
6191 * config.in: Likewise.
6192
6193 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
6194
6195 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
6196
6197 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
6198
6199 * inferior.h (struct inferior) <terminal>: Change type to
6200 gdb::unique_xmalloc_ptr<char>.
6201 * inferior.c (inferior::~inferior): Don't free inf->terminal.
6202 * infcmd.c (set_inferior_io_terminal): Don't free terminal
6203 field, adjust to unique pointer.
6204 (get_inferior_io_terminal): Adjust to unique pointer.
6205
6206 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6207
6208 * riscv-tdep.c (riscv_print_registers_info): Loop over all
6209 registers, not just the known core set of registers.
6210
6211 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6212
6213 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
6214 fflags, frm, and fcsr registers.
6215 (riscv_register_reggroup_p): Remove unknown CSRs from save and
6216 restore groups.
6217 (riscv_tdesc_unknown_reg): New function.
6218 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
6219 tdesc_use_registers.
6220 * riscv-tdep.h (struct gdbarch_tdep): Add
6221 unknown_csrs_first_regnum, unknown_csrs_count,
6222 duplicate_fflags_regnum, duplicate_frm_regnum, and
6223 duplicate_fcsr_regnum fields.
6224
6225 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6226
6227 * target-descriptions.c (tdesc_use_registers): Add new parameter a
6228 callback, use the callback (when not null) to help number unknown
6229 registers.
6230 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
6231 (tdesc_use_registers): Add extra parameter to declaration.
6232
6233 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6234
6235 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
6236 in the file.
6237 (class riscv_pending_register_alias): Likewise.
6238 (riscv_register_feature::register_info): Change 'required_p' field
6239 to 'required', and change its type. Add 'check' member function.
6240 (riscv_register_feature::register_info::check): Define new member
6241 function.
6242 (riscv_xreg_feature): Change initialisation of 'required' field.
6243 (riscv_freg_feature): Likewise.
6244 (riscv_virtual_feature): Likewise.
6245 (riscv_csr_feature): Likewise.
6246 (riscv_check_tdesc_feature): Take extra parameter, the csr
6247 tdesc_feature, rewrite the function to use the new
6248 riscv_register_feature::register_info::check function.
6249 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
6250
6251 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6252
6253 * features/Makefile: Remove all references to the deleted files
6254 below.
6255 * features/riscv/32bit-csr.c: Deleted.
6256 * features/riscv/32bit-csr.xml: Deleted.
6257 * features/riscv/64bit-csr.c: Deleted.
6258 * features/riscv/64bit-csr.xml: Deleted.
6259 * features/riscv/rebuild-csr-xml.sh: Deleted.
6260
6261 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6262
6263 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
6264 whitespace error for declaration of names member variable.
6265 (struct riscv_register_feature): Add new prefer_first_name member
6266 variable, and fix whitespace error in declaration of registers.
6267 (riscv_xreg_feature): Initialize prefer_first_name field.
6268 (riscv_freg_feature): Likewise.
6269 (riscv_virtual_feature): Likewise.
6270 (riscv_csr_feature): Likewise.
6271 (riscv_register_name): Expand on comments. Remove register name
6272 modifications for CSR and virtual registers.
6273
6274 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6275
6276 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
6277 errors.
6278
6279 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6280
6281 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
6282 riscv-opc.h.
6283 (class riscv_pending_register_alias): New class.
6284 (riscv_check_tdesc_feature): Take vector of pending aliases and
6285 populate it as appropriate.
6286 (riscv_setup_register_aliases): Delete.
6287 (riscv_gdbarch_init): Create vector of pending aliases and pass it
6288 to riscv_check_tdesc_feature in all cases. Use the vector to
6289 create the register aliases.
6290
6291 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6292
6293 * sol2-tdep.c (sol2_static_transform_name): Remove.
6294 (sol2_init_abi): Don't register it.
6295 * gdbarch.sh (static_transform_name): Remove.
6296 * gdbarch.c, gdbarch.h: Regenerate.
6297
6298 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
6299 gdbarch_static_transform_name.
6300 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
6301 * stabsread.c (define_symbol) <'X'>: Remove.
6302 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
6303 handling.
6304 <'V'>: Likewise.
6305 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
6306 <'S'>: Remove call to gdbarch_static_transform_name.
6307
6308 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6309
6310 * procfs.c (procfs_pre_trace): New function.
6311 (procfs_target::create_inferior): Pass it to fork_inferior.
6312
6313 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6314
6315 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
6316 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
6317 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
6318 sol2-tdep.o, sparc-sol2-tdep.o.
6319 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
6320 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
6321 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
6322 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
6323
6324 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6325
6326 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
6327 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
6328 Call sol2_init_abi.
6329 Remove calls to set_gdbarch_skip_solib_resolver,
6330 set_gdbarch_core_pid_to_str.
6331 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
6332 (i386_sol2_static_transform_name): Remove.
6333 (i386_sol2_init_abi): Call sol2_init_abi.
6334 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6335 set_gdbarch_static_transform_name,
6336 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6337 Use sol2_sigtramp_p.
6338 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
6339 (sol2_sigtramp_p): New function.
6340 (sol2_static_transform_name): New function.
6341 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
6342 (sol2_init_abi): New function.
6343 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
6344 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
6345 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
6346 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
6347 (sparc_sol2_static_transform_name): Remove.
6348 (sparc32_sol2_init_abi): Call sol2_init_abi.
6349 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6350 set_gdbarch_static_transform_name,
6351 set_gdbarch_skip_solib_resolver,
6352 set_gdbarch_core_pid_to_str.
6353 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
6354 (sparc_sol2_static_transform_name): Remove
6355 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
6356 call sol2_sigtramp_p.
6357 (sparc64_sol2_init_abi): Call sol2_init_abi.
6358 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6359 set_gdbarch_static_transform_name,
6360 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6361
6362 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6363
6364 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
6365 * exec.c (validate_exec_file): If from_tty, set both
6366 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
6367 * symfile.c (symbol_file_add_with_addrs): if always_confirm
6368 and from_tty, unconditionally ask a confirmation.
6369
6370 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6371
6372 * target-descriptions.c (tdesc_architecture_name): Protect against
6373 NULL pointer dereference.
6374 (maint_print_xml_tdesc_cmd): New function.
6375 (_initialize_target_descriptions): Register new 'maint print
6376 xml-tdesc' command and give it the filename completer.
6377 * NEWS: Mention new 'maint print xml-tdesc' command.
6378
6379 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6380
6381 * target-descriptions.c (class tdesc_compatible_info): New class.
6382 (struct target_desc): Change type of compatible vector.
6383 (tdesc_compatible_p): Update for change in type of
6384 target_desc::compatible.
6385 (tdesc_compatible_info_list): New function.
6386 (tdesc_compatible_info_arch_name): New function.
6387 (tdesc_add_compatible): Update for change in type of
6388 target_desc::compatible.
6389 (print_c_tdesc::visit_pre): Likewise.
6390
6391 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6392
6393 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
6394 whitespace to underscore.
6395 (maint_print_c_tdesc_cmd): Use fake filename for target
6396 descriptions that came from the target.
6397 (_initialize_target_descriptions): Add filename command completion
6398 for 'maint print c-tdesc'.
6399
6400 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
6401
6402 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
6403 lines.
6404
6405 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
6406
6407 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
6408 lines.
6409 (dwarf2_find_location_expression): Likewise.
6410 (call_site_parameter_matches): Likewise.
6411 (dwarf2_compile_expr_to_ax): Likewise.
6412 (disassemble_dwarf_expression): Likewise.
6413 (loclist_describe_location): Likewise.
6414
6415 2020-06-23 Pedro Alves <palves@redhat.com>
6416
6417 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
6418 progspace-and-thread.h. Include scoped-mock-context.h instead.
6419 (register_to_value_test): Use scoped_mock_context.
6420 * regcache.c: Include "scoped-mock-context.h".
6421 (cooked_read_test): Don't error out if a target is already pushed.
6422 Use scoped_mock_context. Adjust.
6423 * scoped-mock-context.h: New file.
6424
6425 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6426
6427 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
6428 initializer.
6429 (ada_language::is_string_type_p): New member function.
6430 * c-lang.c (c_language_data): Delete la_is_string_type_p
6431 initializer.
6432 (cplus_language_data): Likewise.
6433 (asm_language_data): Likewise.
6434 (minimal_language_data): Likewise.
6435 * d-lang.c (d_language_data): Likewise.
6436 * f-lang.c (f_is_string_type_p): Delete function, implementation
6437 moved to f_language::is_string_type_p.
6438 (f_language_data): Delete la_is_string_type_p initializer.
6439 (f_language::is_string_type_p): New member function,
6440 implementation from f_is_string_type_p.
6441 * go-lang.c (go_is_string_type_p): Delete function, implementation
6442 moved to go_language::is_string_type_p.
6443 (go_language_data): Delete la_is_string_type_p initializer.
6444 (go_language::is_string_type_p): New member function,
6445 implementation from go_is_string_type_p.
6446 * language.c (language_defn::is_string_type_p): Define new member
6447 function.
6448 (default_is_string_type_p): Make static, add comment copied from
6449 header file.
6450 (unknown_language_data): Delete la_is_string_type_p initializer.
6451 (unknown_language::is_string_type_p): New member function.
6452 (auto_language_data): Delete la_is_string_type_p initializer.
6453 (auto_language::is_string_type_p): New member function.
6454 * language.h (language_data): Delete la_is_string_type_p field.
6455 (language_defn::is_string_type_p): Declare new function.
6456 (default_is_string_type_p): Delete desclaration, move comment to
6457 definition.
6458 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
6459 moved to m2_language::is_string_type_p.
6460 (m2_language_data): Delete la_is_string_type_p initializer.
6461 (m2_language::is_string_type_p): New member function,
6462 implementation from m2_is_string_type_p.
6463 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
6464 initializer.
6465 * opencl-lang.c (opencl_language_data): Likewise.
6466 * p-lang.c (pascal_is_string_type_p): Delete function,
6467 implementation moved to pascal_language::is_string_type_p.
6468 (pascal_language_data): Delete la_is_string_type_p initializer.
6469 (pascal_language::is_string_type_p): New member function,
6470 implementation from pascal_is_string_type_p.
6471 * rust-lang.c (rust_is_string_type_p): Delete function,
6472 implementation moved to rust_language::is_string_type_p.
6473 (rust_language_data): Delete la_is_string_type_p initializer.
6474 (rust_language::is_string_type_p): New member function,
6475 implementation from rust_is_string_type_p.
6476 * valprint.c (val_print_scalar_or_string_type_p): Update call to
6477 is_string_type_p.
6478
6479 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6480
6481 * ada-lang.c (ada_language_data): Delete la_print_typedef
6482 initializer.
6483 (ada_language::print_typedef): New member function.
6484 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
6485 (cplus_language_data): Likewise.
6486 (asm_language_data): Likewise.
6487 (minimal_language_data): Likewise.
6488 * d-lang.c (d_language_data): Likewise.
6489 * f-lang.c (f_language_data): Likewise.
6490 (f_language::print_typedef): New member function.
6491 * go-lang.c (go_language_data): Delete la_print_typedef
6492 initializer.
6493 * language.c (language_defn::print_typedef): Define member
6494 function.
6495 (unknown_language_data): Delete la_print_typedef initializer.
6496 (unknown_language::print_typedef): New member function.
6497 (auto_language_data): Delete la_print_typedef initializer.
6498 (auto_language::print_typedef): New member function.
6499 * language.h (language_data): Delete la_print_typedef field.
6500 (language_defn::print_typedef): Declare new member function.
6501 (LA_PRINT_TYPEDEF): Update call to print_typedef.
6502 (default_print_typedef): Delete declaration.
6503 * m2-lang.c (m2_language_data): Delete la_print_typedef
6504 initializer.
6505 (m2_language::print_typedef): New member function.
6506 * objc-lang.c (objc_language_data): Delete la_print_typedef
6507 initializer.
6508 * opencl-lang.c (opencl_language_data): Likewise.
6509 * p-lang.c (pascal_language_data): Likewise.
6510 (pascal_language::print_typedef): New member function.
6511 * rust-lang.c (rust_print_typedef): Delete function,
6512 implementation moved to rust_language::print_typedef.
6513 (rust_language): Delete la_print_typedef initializer.
6514 (rust_language::print_typedef): New member function,
6515 implementation from rust_print_typedef.
6516 * typeprint.c (default_print_typedef): Delete.
6517
6518 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6519
6520 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
6521 (ada_language::printstr): New member function.
6522 * c-lang.c (c_language_data): Delete la_printstr initializer.
6523 (cplus_language_data): Likewise.
6524 (asm_language_data): Likewise.
6525 (minimal_language_data): Likewise.
6526 * d-lang.c (d_language_data): Likewise.
6527 * f-lang.c (f_printstr): Rename to f_language::printstr.
6528 (f_language_data): Delete la_printstr initializer.
6529 (f_language::printstr): New member function, implementation from
6530 f_printstr.
6531 * go-lang.c (go_language_data): Delete la_printstr initializer.
6532 * language.c (language_defn::printstr): Define new member
6533 function.
6534 (unk_lang_printstr): Delete.
6535 (unknown_language_data): Delete la_printstr initializer.
6536 (unknown_language::printstr): New member function.
6537 (auto_language_data): Delete la_printstr initializer.
6538 (auto_language::printstr): New member function.
6539 * language.h (language_data): Delete la_printstr field.
6540 (language_defn::printstr): Declare new member function.
6541 (LA_PRINT_STRING): Update call to printstr.
6542 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
6543 (m2_language_data): Delete la_printstr initializer.
6544 (m2_language::printstr): New member function, implementation from
6545 m2_printstr.
6546 * objc-lang.c (objc_language_data): Delete la_printstr
6547 initializer.
6548 * opencl-lang.c (opencl_language_data): Likewise.
6549 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
6550 (pascal_language_data): Delete la_printstr initializer.
6551 (pascal_language::printstr): New member function, implementation
6552 from pascal_printstr.
6553 * p-lang.h (pascal_printstr): Delete declaration.
6554 * rust-lang.c (rust_printstr): Update header comment.
6555 (rust_language_data): Delete la_printstr initializer.
6556 (rust_language::printstr): New member function.
6557
6558 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6559
6560 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
6561 (ada_language::printchar): New member function.
6562 * c-lang.c (c_language_data): Delete la_printchar initializer.
6563 (cplus_language_data): Likewise.
6564 (asm_language_data): Likewise.
6565 (minimal_language_data): Likewise.
6566 * d-lang.c (d_language_data): Likewise.
6567 * f-lang.c (f_printchar): Rename to f_language::printchar.
6568 (f_language_data): Delete la_printchar initializer.
6569 (f_language::printchar): New member function, implementation from
6570 f_printchar.
6571 * go-lang.c (go_language_data): Delete la_printchar initializer.
6572 * language.c (unk_lang_printchar): Delete.
6573 (language_defn::printchar): Define new member function.
6574 (unknown_language_data): Delete la_printchar initializer.
6575 (unknown_language::printchar): New member function.
6576 (auto_language_data): Delete la_printchar initializer.
6577 (auto_language::printchar): New member function.
6578 * language.h (language_data): Delete la_printchar field.
6579 (language_defn::printchar): Declare new member function.
6580 (LA_PRINT_CHAR): Update call to printchar.
6581 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
6582 (m2_language::printchar): New member function.
6583 * objc-lang.c (objc_language_data): Delete la_printchar
6584 initializer.
6585 * opencl-lang.c (opencl_language_data): Likewise.
6586 * p-lang.c (pascal_language_data): Delete la_printchar
6587 initializer.
6588 (pascal_language::printchar): New member function.
6589 * rust-lang.c (rust_printchar): Rename to
6590 rust_language::printchar.
6591 (rust_language_data): Delete la_printchar initializer.
6592 (rust_language::printchar): New member function, implementation
6593 from rust_printchar.
6594
6595 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6596
6597 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
6598 (ada_language_data): Delete la_emitchar initializer.
6599 (ada_language::emitchar): New member function, implementation from
6600 emit_char.
6601 * c-lang.c (c_language_data): Delete la_emitchar initializer.
6602 (cplus_language_data): Likewise.
6603 (asm_language_data): Likewise.
6604 (minimal_language_data): Likewise.
6605 * d-lang.c (d_language_data): Likewise.
6606 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
6607 (f_language_data): Delete la_emitchar initializer.
6608 (f_language::emitchar): New member function, implementation from
6609 f_emit_char.
6610 * go-lang.c (go_language_data): Delete la_emitchar initializer.
6611 * language.c (unk_lang_emit_char): Delete.
6612 (language_defn::emitchar): New member function definition.
6613 (unknown_language_data): Delete la_emitchar initializer.
6614 (unknown_language::emitchar): New member function.
6615 (auto_language_data): Delete la_emitchar initializer.
6616 (auto_language::emitchar): New member function.
6617 * language.h (language_data): Delete la_emitchar field.
6618 (language_defn::emitchar): New member field declaration.
6619 (LA_EMIT_CHAR): Update call to emitchar.
6620 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
6621 (m2_language_data): Delete la_emitchar initializer.
6622 (m2_language::emitchar): New member function, implementation from
6623 m2_emit_char.
6624 * objc-lang.c (objc_language_data): Delete la_emitchar
6625 initializer.
6626 * opencl-lang.c (opencl_language_data): Likewise.
6627 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
6628 (pascal_language_data): Delete la_emitchar initializer.
6629 (pascal_language::emitchar): New member function, implementation
6630 from pascal_emit_char.
6631 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
6632 (rust_language_data): Delete la_emitchar initializer.
6633 (rust_language::emitchar): New member function, implementation
6634 from rust_emitchar.
6635
6636 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6637
6638 * ada-lang.c (resolve): Rename to ada_language::post_parser.
6639 (ada_language_data): Delete la_post_parser initializer.
6640 (ada_language::post_parser): New member function.
6641 * c-lang.c (c_language_data): Delete la_post_parser initializer.
6642 (cplus_language_data): Likewise.
6643 (asm_language_data): Likewise.
6644 (minimal_language_data): Likewise.
6645 * d-lang.c (d_language_data): Likewise.
6646 * f-lang.c (f_language_data): Likewise.
6647 * go-lang.c (go_language_data): Likewise.
6648 * language.c (unknown_language_data): Likewise.
6649 (auto_language_data): Likewise.
6650 * language.h (language_data): Delete la_post_parser field.
6651 (language_defn::post_parser): New member function.
6652 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
6653 * objc-lang.c (objc_language_data): Likewise.
6654 * opencl-lang.c (opencl_language_data): Likewise.
6655 * p-lang.c (pascal_language_data): Likewise.
6656 * parse.c (parse_exp_in_context): Update call to post_parser.
6657 (null_post_parser): Delete definition.
6658 * parser-defs.h (null_post_parser): Delete declaration.
6659 * rust-lang.c (rust_language_data): Delete la_post_parser
6660 initializer.
6661
6662 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6663
6664 * ada-lang.c (parse): Rename to ada_language::parser.
6665 (ada_language_data): Delete la_parser initializer.
6666 (ada_language::parser): New member function, implementation from
6667 parse.
6668 * c-lang.c (c_language_data): Delete la_parser initializer.
6669 (cplus_language_data): Likewise.
6670 (asm_language_data): Likewise.
6671 (minimal_language_data): Likewise.
6672 * d-lang.c (d_language_data): Likewise.
6673 (d_language::parser): New member function.
6674 * f-lang.c (f_language_data): Delete la_parser initializer.
6675 (f_language::parser): New member function.
6676 * go-lang.c (go_language_data): Delete la_parser initializer.
6677 (go_language::parser): New member function.
6678 * language.c (unk_lang_parser): Delete.
6679 (language_defn::parser): Define new member function.
6680 (unknown_language_data): Delete la_parser initializer.
6681 (unknown_language::parser): New member function.
6682 (auto_language_data): Delete la_parser initializer.
6683 (auto_language::parser): New member function.
6684 * language.h (language_data): Delete la_parser field.
6685 (language_defn::parser): Declare new member function.
6686 * m2-lang.c (m2_language_data): Delete la_parser initializer.
6687 (m2_language::parser): New member function.
6688 * objc-lang.c (objc_language_data): Delete la_parser initializer.
6689 * opencl-lang.c (opencl_language_data): Likewise.
6690 * p-lang.c (pascal_language_data): Likewise.
6691 (pascal_language::parser): New member function.
6692 * parse.c (parse_exp_in_context): Update call to parser.
6693 * rust-lang.c (rust_language_data): Delete la_parser initializer.
6694 (rust_language::parser): New member function.
6695
6696 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6697
6698 * top.c (print_gdb_configuration): Print --with-python-libdir
6699 configuration value.
6700
6701 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6702
6703 * NEWS: Mention change to the alias command.
6704
6705 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6706
6707 * cli/cli-cmds.c (lookup_cmd_for_default_args)
6708 (alias_command_completer)
6709 (make_alias_options_def_group): New functions.
6710 (alias_opts, alias_option_defs): New struct and array.
6711 (alias_usage_error): Update usage.
6712 (alias_command): Handles optional DEFAULT-ARGS... arguments.
6713 Use option framework.
6714 (_initialize_cli_cmds): Update alias command help.
6715 Update aliases command help.
6716 (show_user):
6717 Add NULL for new default_args lookup_cmd argument.
6718 (valid_command_p): Rename to validate_aliased_command.
6719 Add NULL for new default_args lookup_cmd argument. Verify that the
6720 aliased_command has no default args.
6721 * cli/cli-decode.c (help_cmd): Show aliases definitions.
6722 (lookup_cmd_1, lookup_cmd): New argument default_args.
6723 (add_alias_cmd):
6724 Add NULL for new default_args lookup_cmd argument.
6725 (print_help_for_command): Show default args under the layout
6726 alias some_alias = some_aliased_cmd some_alias_default_arg.
6727 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
6728 xfree default_args in destructor.
6729 * cli/cli-script.c (process_next_line, do_define_command):
6730 Add NULL for new default_args lookup_cmd argument.
6731 * command.h: Declare new default_args argument in lookup_cmd
6732 and lookup_cmd_1.
6733 * completer.c (complete_line_internal_1):
6734 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6735 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
6736 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
6737 Likewise.
6738 * infcmd.c (_initialize_infcmd): Likewise.
6739 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
6740 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
6741 * python/py-param.c (add_setshow_generic): Likewise.
6742 * remote.c (_initialize_remote): Likewise.
6743 * top.c (execute_command): Prepend default_args if command has some.
6744 (set_verbose):
6745 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6746 * tracepoint.c (validate_actionline, encode_actions_1):
6747 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6748
6749 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6750
6751 * jit.c (jit_read_descriptor): Use bool as the return type.
6752 (jit_breakpoint_re_set_internal): Use bool as the return type.
6753 Invert the return value logic; return true if the jit breakpoint
6754 has been successfully initialized.
6755 (jit_inferior_init): Update the call to
6756 jit_breakpoint_re_set_internal.
6757
6758 2020-06-22 Pedro Alves <palves@redhat.com>
6759
6760 PR gdb/25939
6761 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
6762 Use the current inferior instead. Don't return
6763 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
6764 wait again.
6765 * sol-thread.c (sol_thread_target::wait): Don't reference
6766 inferior_ptid.
6767 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
6768 (sol_update_thread_list_callback): Use the current inferior's pid
6769 instead of inferior_ptid.
6770
6771 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6772
6773 * procfs.c: Cleanup many comments.
6774
6775 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
6776 (AFTER_WATCHFLAG): Replace by value.
6777
6778 (MAIN_PROC_NAME_FORMAT): Inline ...
6779 (create_procinfo): ... here.
6780
6781 (procfs_debug_inferior): Remove SYS_exec handling.
6782 (syscall_is_exec): Likewise.
6783 (procfs_set_exec_trap): Likewise.
6784
6785 (syscall_is_lwp_exit): Inline in callers.
6786 (syscall_is_exit): Likewise.
6787 (syscall_is_exec): Likewise.
6788 (syscall_is_lwp_create): Likewise.
6789
6790 (invalidate_cache): Remove #if 0 code.
6791
6792 (make_signal_thread_runnable): Remove.
6793 (procfs_target::resume): Remove #if 0 code.
6794
6795 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6796
6797 PR gdb/25939
6798 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
6799 call ...
6800 (procfs_target::create_inferior): ... here.
6801
6802 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6803
6804 * exec.c (validate_exec_file): Ensure the build-id is up to
6805 date by calling reopen_exec_file (that checks file timestamp
6806 to decide to re-read the file).
6807
6808 2020-06-18 Pedro Alves <palves@redhat.com>
6809
6810 PR gdb/25412
6811 * gdbthread.h (delete_thread, delete_thread_silent)
6812 (find_thread_ptid): Update comments.
6813 * thread.c (current_thread_): New global.
6814 (is_current_thread): Move higher, and reimplement.
6815 (inferior_thread): Reimplement.
6816 (set_thread_exited): Use bool. Add assertions.
6817 (add_thread_silent): Simplify thread-reuse handling by always
6818 calling delete_thread.
6819 (delete_thread): Remove intro comment.
6820 (find_thread_ptid): Skip exited threads.
6821 (switch_to_thread_no_regs): Write to current_thread_.
6822 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
6823 INFERIOR_PTID. Clear current_thread_.
6824
6825 2020-06-18 Pedro Alves <palves@redhat.com>
6826
6827 * aix-thread.c (pd_update): Use switch_to_thread.
6828
6829 2020-06-18 Pedro Alves <palves@redhat.com>
6830
6831 * ravenscar-thread.c (ravenscar_thread_target): Update.
6832 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
6833 (ravenscar_thread_target::add_active_thread): ... this. Don't
6834 set m_base_ptid here. Update to avoid referencing inferior_ptid.
6835 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
6836
6837 2020-06-18 Pedro Alves <palves@redhat.com>
6838
6839 * nat/windows-nat.c (current_windows_thread): Remove.
6840 * nat/windows-nat.h (current_windows_thread): Remove.
6841 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
6842 Adjust.
6843 (display_selectors): Adjust to fetch the current
6844 windows_thread_info based on inferior_ptid.
6845 (fake_create_process): No longer write to current_windows_thread.
6846 (windows_nat_target::get_windows_debug_event):
6847 Don't set inferior_ptid or current_windows_thread.
6848 (windows_nat_target::wait): Adjust to not rely on
6849 current_windows_thread.
6850 (do_initial_windows_stuff): Now a method of windows_nat_target.
6851 Switch to the last_ptid thread.
6852 (windows_nat_target::attach): Adjust.
6853 (windows_nat_target::detach): Use switch_to_no_thread instead of
6854 writing to inferior_ptid directly.
6855 (windows_nat_target::create_inferior): Adjust.
6856
6857 2020-06-18 Pedro Alves <palves@redhat.com>
6858
6859 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
6860
6861 2020-06-18 Pedro Alves <palves@redhat.com>
6862
6863 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
6864 after creating it, instead of writing to inferior_ptid. Don't
6865 write to inferior_ptid.
6866
6867 2020-06-18 Pedro Alves <palves@redhat.com>
6868
6869 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
6870
6871 2020-06-18 Pedro Alves <palves@redhat.com>
6872
6873 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
6874 it, instead of writing to inferior_ptid.
6875
6876 2020-06-18 Pedro Alves <palves@redhat.com>
6877
6878 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
6879 to inferior_ptid.
6880
6881 2020-06-18 Pedro Alves <palves@redhat.com>
6882
6883 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
6884 instead of writing to inferior_ptid directly.
6885
6886 2020-06-18 Pedro Alves <palves@redhat.com>
6887
6888 * corelow.c (core_target::close): Use switch_to_no_thread instead
6889 of writing to inferior_ptid directly.
6890 (add_to_thread_list, core_target_open): Use switch_to_thread
6891 instead of writing to inferior_ptid directly.
6892
6893 2020-06-18 Pedro Alves <palves@redhat.com>
6894
6895 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
6896 inferior_ptid.
6897 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
6898 inferior_ptid.
6899 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
6900 inferior_ptid directly.
6901 (darwin_nat_target::init_thread_list): Switch to thread, instead
6902 of writing to inferior_ptid.
6903 (darwin_nat_target::attach): Don't write to inferior_ptid.
6904 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
6905
6906 2020-06-18 Pedro Alves <palves@redhat.com>
6907
6908 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
6909 thread.
6910 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
6911 Instead use switch_to_thread.
6912 (gnu_nat_target::detach): Use switch_to_no_thread
6913 instead of writing to inferior_ptid directly. Used passed-in
6914 inferior instead of looking up the inferior by pid.
6915
6916 2020-06-18 Pedro Alves <palves@redhat.com>
6917
6918 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
6919 inferior_ptid.
6920
6921 2020-06-18 Pedro Alves <palves@redhat.com>
6922
6923 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
6924 inferior_ptid.
6925 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
6926 thread.
6927 (nto_procfs_target::detach): Avoid referencing
6928 inferior_ptid. Use switch_to_no_thread instead of writing to
6929 inferior_ptid directly.
6930 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
6931 instead of writing to inferior_ptid directly.
6932 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
6933 to thread.
6934
6935 2020-06-18 Pedro Alves <palves@redhat.com>
6936
6937 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
6938 after creating it, instead of writing to inferior_ptid.
6939 (gdbsim_target_open): Use switch_to_no_thread instead of writing
6940 to inferior_ptid directly.
6941 (gdbsim_target::wait): Don't write to inferior_ptid.
6942
6943 2020-06-18 Pedro Alves <palves@redhat.com>
6944
6945 * remote.c (remote_target::remote_notice_new_inferior): Use
6946 switch_to_thread instead of writing to inferior_ptid directly.
6947 (remote_target::add_current_inferior_and_thread): Use
6948 switch_to_no_thread instead of writing to inferior_ptid directly.
6949 (extended_remote_target::attach): Use switch_to_inferior_no_thread
6950 and switch_to_thread instead of using set_current_inferior or
6951 writing to inferior_ptid directly.
6952
6953 2020-06-18 Pedro Alves <palves@redhat.com>
6954
6955 * tracectf.c (ctf_target_open): Switch to added thread instead of
6956 writing to inferior_ptid directly.
6957 (ctf_target::close): Use switch_to_no_thread instead of writing to
6958 inferior_ptid directly.
6959
6960 2020-06-18 Pedro Alves <palves@redhat.com>
6961
6962 * tracefile-tfile.c (tfile_target_open): Don't write to
6963 inferior_ptid directly, instead switch to added thread.
6964 (tfile_target::close): Use switch_to_no_thread instead of writing
6965 to inferior_ptid directly.
6966
6967 2020-06-18 Pedro Alves <palves@redhat.com>
6968
6969 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
6970 (procfs_target::detach): Use switch_to_no_thread
6971 instead of writing to inferior_ptid directly.
6972 (do_attach): Change return type to void. Switch to the added
6973 thread.
6974 (procfs_target::create_inferior): Switch to the added thread.
6975 (procfs_do_thread_registers): Don't write to inferior_ptid.
6976
6977 2020-06-18 Pedro Alves <palves@redhat.com>
6978
6979 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
6980 of writing to inferior_ptid.
6981 (scoped_restore_exited_inferior): Delete.
6982 (handle_vfork_child_exec_or_exit): Simplify using
6983 scoped_restore_current_pspace_and_thread. Use switch_to_thread
6984 instead of writing to inferior_ptid.
6985 (THREAD_STOPPED_BY): Delete.
6986 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
6987 (thread_stopped_by_hw_breakpoint): Delete.
6988 (save_waitstatus): Use
6989 scoped_restore_current_thread+switch_to_thread, and call
6990 target_stopped_by_watchpoint instead of
6991 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
6992 instead of thread_stopped_by_sw_breakpoint, and
6993 target_stopped_by_hw_breakpoint instead of
6994 thread_stopped_by_hw_breakpoint.
6995 (handle_inferior_event)
6996 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
6997 inferior_ptid directly, nor
6998 set_current_inferior/set_current_program_space. Use
6999 switch_to_thread / switch_to_inferior_no_thread instead.
7000
7001 2020-06-18 Pedro Alves <palves@redhat.com>
7002
7003 * target.c (generic_mourn_inferior): Use switch_to_no_thread
7004 instead of writing to inferior_ptid.
7005
7006 2020-06-18 Pedro Alves <palves@redhat.com>
7007
7008 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
7009 added thread.
7010 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
7011 to the added thread.
7012 (inf_ptrace_target::detach_success): Use switch_to_no_thread
7013 instead of writing to inferior_ptid.
7014
7015 2020-06-18 Pedro Alves <palves@redhat.com>
7016
7017 * gdbarch-selftests.c: Include "progspace-and-thread.h".
7018 (register_to_value_test): Mock a program_space too. Heap-allocate
7019 the address space. Don't write to inferior_ptid. Use
7020 switch_to_thread instead.
7021
7022 2020-06-18 Pedro Alves <palves@redhat.com>
7023
7024 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
7025 Delete.
7026 (find_signalled_thread()): New, factored out from
7027 linux_make_corefile_notes and adjusted to handle exited threads.
7028 (linux_make_corefile_notes): Adjust to use the new
7029 find_signalled_thread.
7030
7031 2020-06-18 Pedro Alves <palves@redhat.com>
7032
7033 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
7034 of saving/restoring inferior_ptid.
7035
7036 2020-06-17 Tom Tromey <tom@tromey.com>
7037
7038 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
7039 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
7040 declare.
7041 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
7042
7043 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
7044
7045 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
7046 of partial symtabs.
7047
7048 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
7049
7050 * regformats/reg-arm.dat: Remove.
7051 * regformats/reg-bfin.dat: Remove.
7052 * regformats/reg-cris.dat: Remove.
7053 * regformats/reg-crisv32.dat: Remove.
7054 * regformats/reg-m32r.dat: Remove.
7055 * regformats/reg-tilegx.dat: Remove.
7056 * regformats/reg-tilegx32.dat: Remove.
7057
7058 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
7059
7060 * features/Makefile (WHICH): Remove arm files.
7061 * regformats/arm/arm-with-iwmmxt.dat: Remove.
7062 * regformats/arm/arm-with-neon.dat: Remove.
7063 * regformats/arm/arm-with-vfpv2.dat: Remove.
7064 * regformats/arm/arm-with-vfpv3.dat: Remove.
7065
7066 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
7067
7068 * features/Makefile (XMLTOC): Remove rx.xml.
7069
7070 2020-06-17 Pedro Alves <palves@redhat.com>
7071
7072 * gdbthread.h (thread_control_state) <trap_expected> Update
7073 comments.
7074
7075 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7076
7077 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
7078 ada_language::lookup_symbol_nonlocal.
7079 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
7080 (ada_language::lookup_symbol_nonlocal): New member function,
7081 implementation from ada_lookup_symbol_nonlocal.
7082 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
7083 initializer.
7084 (cplus_language_data): Delete la_lookup_symbol_nonlocal
7085 initializer.
7086 (cplus_language::lookup_symbol_nonlocal): New member function.
7087 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
7088 (minimal_language_data) Likewise.
7089 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
7090 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
7091 initializer.
7092 (d_language::lookup_symbol_nonlocal): New member function.
7093 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
7094 initializer.
7095 (f_language::lookup_symbol_nonlocal): New member function.
7096 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
7097 initializer.
7098 * language.c (unknown_language_data): Likewise.
7099 (auto_language_data): Likewise.
7100 * language.h (language_data): Delete la_lookup_symbol_nonlocal
7101 field.
7102 (language_defn::lookup_symbol_nonlocal): New member function.
7103 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
7104 initializer.
7105 * objc-lang.c (objc_language_data): Likewise.
7106 * opencl-lang.c (opencl_language_data): Likewise.
7107 * p-lang.c (pascal_language_data): Likewise.
7108 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
7109 rust_language::lookup_symbol_nonlocal.
7110 (rust_language_data): Delete la_lookup_symbol_nonlocal
7111 initializer.
7112 (rust_language::lookup_symbol_nonlocal): New member function,
7113 implementation from rust_lookup_symbol_nonlocal.
7114 * symtab.c (lookup_symbol_aux): Update call to
7115 lookup_symbol_nonlocal.
7116 (basic_lookup_symbol_nonlocal): Rename to...
7117 (language_defn::lookup_symbol_nonlocal): ...this, and update
7118 header comment. Remove language_defn parameter, and replace with
7119 uses of `this'.
7120 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
7121
7122 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7123
7124 * ada-lang.c (ada_language_data): Delete la_value_print_inner
7125 initializer.
7126 (ada_language::value_print_inner): New member function.
7127 * c-lang.c (c_language_data): Delete la_value_print_inner
7128 initializer.
7129 (cplus_language_data): Likewise.
7130 (asm_language_data): Likewise.
7131 (minimal_language_data): Likewise.
7132 * d-lang.c (d_language_data): Likewise.
7133 (d_language::value_print_inner): New member function.
7134 * f-lang.c (f_language_data): Delete la_value_print_inner
7135 initializer.
7136 (f_language::value_print_inner): New member function.
7137 * f-lang.h (f_value_print_innner): Rename to...
7138 (f_value_print_inner): ...this (note spelling of 'inner').
7139 * f-valprint.c (f_value_print_innner): Rename to...
7140 (f_value_print_inner): ...this (note spelling of 'inner').
7141 * go-lang.c (go_language_data): Delete la_value_print_inner
7142 initializer.
7143 (go_language::value_print_inner): New member function.
7144 * language.c (language_defn::value_print_inner): Define new member
7145 function.
7146 (unk_lang_value_print_inner): Delete.
7147 (unknown_language_data): Delete la_value_print_inner initializer.
7148 (unknown_language::value_print_inner): New member function.
7149 (auto_language_data): Delete la_value_print_inner initializer.
7150 (auto_language::value_print_inner): New member function.
7151 * language.h (language_data): Delete la_value_print_inner field.
7152 (language_defn::value_print_inner): Delcare new member function.
7153 * m2-lang.c (m2_language_data): Delete la_value_print_inner
7154 initializer.
7155 (m2_language::value_print_inner): New member function.
7156 * objc-lang.c (objc_language_data): Delete la_value_print_inner
7157 initializer.
7158 * opencl-lang.c (opencl_language_data): Likewise.
7159 * p-lang.c (pascal_language_data): Likewise.
7160 (pascal_language::value_print_inner): New member function.
7161 * rust-lang.c (rust_language_data): Delete la_value_print_inner
7162 initializer.
7163 (rust_language::value_print_inner): New member function.
7164 * valprint.c (do_val_print): Update call to value_print_inner.
7165
7166 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7167
7168 * ada-lang.c (ada_language_data): Delete la_value_print
7169 initializer.
7170 (ada_language::value_print): New member function.
7171 * c-lang.c (c_language_data): Delete la_value_print initializer.
7172 (cplus_language_data): Likewise.
7173 (asm_language_data): Likewise.
7174 (minimal_language_data): Likewise.
7175 * d-lang.c (d_language_data): Likewise.
7176 * f-lang.c (f_language_data): Likewise.
7177 * go-lang.c (go_language_data): Likewise.
7178 * language.c (unk_lang_value_print): Delete.
7179 (language_defn::value_print): Define new member function.
7180 (unknown_language_data): Delete la_value_print initializer.
7181 (unknown_language::value_print): New member function.
7182 (auto_language_data): Delete la_value_print initializer.
7183 (auto_language::value_print): New member function.
7184 * language.h (language_data): Delete la_value_print field.
7185 (language_defn::value_print): Declare new member function.
7186 (LA_VALUE_PRINT): Update call to value_print.
7187 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
7188 * objc-lang.c (objc_language_data): Likewise.
7189 * opencl-lang.c (opencl_language_data): Likewise.
7190 * p-lang.c (pascal_language_data): Likewise.
7191 (pascal_language::value_print): New member function.
7192 * rust-lang.c (rust_language_data): Delete la_value_print
7193 initializer.
7194
7195 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7196
7197 * ada-lang.c (ada_watch_location_expression): Rename to
7198 ada_language::watch_location_expression.
7199 (ada_language_data): Delete la_watch_location_expression
7200 initializer.
7201 (ada_language::watch_location_expression): New member function,
7202 implementation from ada_watch_location_expression.
7203 * breakpoint.c (watch_command_1): Update call to
7204 watch_location_expression.
7205 * c-lang.c (c_watch_location_expression): Rename to
7206 language_defn::watch_location_expression.
7207 (c_language_data): Delete la_watch_location_expression
7208 initializer.
7209 (cplus_language_data): Likewise.
7210 (asm_language_data): Likewise.
7211 (minimal_language_data): Likewise.
7212 * c-lang.h (c_watch_location_expression): Delete declaration.
7213 * d-lang.c (d_language_data): Delete la_watch_location_expression
7214 initializer.
7215 * f-lang.c (f_language_data): Likewise.
7216 * go-lang.c (go_language_data): Likewise.
7217 * language.c (language_defn::watch_location_expression): Member
7218 function implementation from c_watch_location_expression.
7219 (unknown_language_data): Delete la_watch_location_expression
7220 initializer.
7221 (auto_language_data): Likewise.
7222 * language.h (language_data): Delete la_watch_location_expression
7223 field.
7224 (language_defn::watch_location_expression): Declare new member
7225 function.
7226 * m2-lang.c (m2_language_data): Delete
7227 la_watch_location_expression initializer.
7228 * objc-lang.c (objc_language_data): Likewise.
7229 * opencl-lang.c (opencl_language_data): Likewise.
7230 * p-lang.c (pascal_language_data): Likewise.
7231 * rust-lang.c (rust_watch_location_expression): Rename to
7232 rust_language::watch_location_expression.
7233 (rust_language_data): Delete la_watch_location_expression
7234 initializer.
7235 (rust_language::watch_location_expression): New member function,
7236 implementation from rust_watch_location_expression.
7237
7238 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7239
7240 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
7241 ada_language::collect_symbol_completion_matches.
7242 (ada_language_data): Delete la_collect_symbol_completion_matches
7243 initializer.
7244 (ada_language::collect_symbol_completion_matches): New member
7245 function, implementation from
7246 ada_collect_symbol_completion_matches.
7247 * c-lang.c (c_language_data): Delete
7248 la_collect_symbol_completion_matches initializer.
7249 (cplus_language_data): Likewise.
7250 (asm_language_data): Likewise.
7251 (minimal_language_data): Likewise.
7252 * d-lang.c (d_language_data): Likewise.
7253 * f-lang.c (f_collect_symbol_completion_matches): Rename to
7254 f_language::collect_symbol_completion_matches.
7255 (f_language_data): Delete la_collect_symbol_completion_matches
7256 initializer.
7257 (f_language::collect_symbol_completion_matches) New member
7258 function, implementation from f_collect_symbol_completion_matches.
7259 * go-lang.c (go_language_data): Delete
7260 la_collect_symbol_completion_matches initializer.
7261 * language.c (unknown_language_data): Likewise.
7262 (auto_language_data): Likewise.
7263 * language.h (language_data): Delete
7264 la_collect_symbol_completion_matches field.
7265 (language_defn::collect_symbol_completion_matches): New member
7266 function.
7267 * m2-lang.c (m2_language_data): Delete
7268 la_collect_symbol_completion_matches initializer.
7269 * objc-lang.c (objc_language_data): Likewise.
7270 * opencl-lang.c (opencl_language_data): Likewise.
7271 * p-lang.c (pascal_language_data): Likewise.
7272 * rust-lang.c (rust_language_data): Likewise.
7273 * symtab.c (default_collect_symbol_completion_matches): Delete.
7274 (collect_symbol_completion_matches): Update call to
7275 collect_symbol_completion_matches.
7276 (collect_symbol_completion_matches_type): Likewise.
7277 * symtab.h (default_collect_symbol_completion_matches): Delete
7278 declaration.
7279
7280 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7281
7282 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
7283 (ada_language_data): Delete la_word_break_characters initializer.
7284 (ada_language::word_break_characters): New member function.
7285 * c-lang.c (c_language_data): Delete la_word_break_characters
7286 initializer.
7287 (cplus_language_data): Likewise.
7288 (asm_language_data): Likewise.
7289 (minimal_language_data): Likewise.
7290 * completer.c: Update global comment.
7291 (advance_to_expression_complete_word_point): Update call to
7292 word_break_characters.
7293 (complete_files_symbols): Likewise.
7294 (complete_line_internal_1): Likewise.
7295 (default_completer_handle_brkchars): Likewise.
7296 (skip_quoted_chars): Likewise.
7297 * d-lang.c (d_language_data): Delete la_word_break_characters
7298 initializer.
7299 * f-lang.c (f_word_break_characters): Delete.
7300 (f_language_data): Delete la_word_break_characters initializer.
7301 (f_language::word_break_characters): New member function.
7302 * go-lang.c (go_language_data): Delete la_word_break_characters
7303 initializer.
7304 * language.c (unknown_language_data): Likewise.
7305 (auto_language_data): Likewise.
7306 * language.h (default_word_break_characters): Move declaration to
7307 earlier in the file.
7308 (language_data): Delete la_word_break_characters field.
7309 (language_defn::word_break_characters): New member function.
7310 * m2-lang.c (m2_language_data): Delete la_word_break_characters
7311 initializer.
7312 * objc-lang.c (objc_language_data): Likewise.
7313 * opencl-lang.c (opencl_language_data): Likewise.
7314 * p-lang.c (pascal_language_data): Likewise.
7315 * rust-lang.c (rust_language_data): Likewise.
7316
7317 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7318
7319 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
7320 (ada_language_data): Delete la_get_symbol_name_matcher
7321 initializer.
7322 (language_defn::get_symbol_name_matcher_inner): New member
7323 function.
7324 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
7325 initializer.
7326 (cplus_language_data): Likewise.
7327 (cplus_language::get_symbol_name_matcher_inner): New member
7328 function.
7329 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
7330 (minimal_language_data): Likewise.
7331 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
7332 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
7333 initializer.
7334 * dictionary.c (iter_match_first_hashed): Update call to
7335 get_symbol_name_matcher.
7336 (iter_match_next_hashed): Likewise.
7337 (iter_match_next_linear): Likewise.
7338 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
7339 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
7340 initializer.
7341 (f_language::get_symbol_name_matcher_inner): New member function.
7342 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
7343 initializer.
7344 * language.c (default_symbol_name_matcher): Update header comment,
7345 make static.
7346 (language_defn::get_symbol_name_matcher): New definition.
7347 (language_defn::get_symbol_name_matcher_inner): Likewise.
7348 (get_symbol_name_matcher): Delete.
7349 (unknown_language_data): Delete la_get_symbol_name_matcher
7350 initializer.
7351 (auto_language_data): Likewise.
7352 * language.h (language_data): Delete la_get_symbol_name_matcher
7353 field.
7354 (language_defn::get_symbol_name_matcher): New member function.
7355 (language_defn::get_symbol_name_matcher_inner): Likewise.
7356 (default_symbol_name_matcher): Delete declaration.
7357 * linespec.c (find_methods): Update call to
7358 get_symbol_name_matcher.
7359 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
7360 initializer.
7361 * minsyms.c (lookup_minimal_symbol): Update call to
7362 get_symbol_name_matcher.
7363 (iterate_over_minimal_symbols): Likewise.
7364 * objc-lang.c (objc_language_data): Delete
7365 la_get_symbol_name_matcher initializer.
7366 * opencl-lang.c (opencl_language_data): Likewise.
7367 * p-lang.c (pascal_language_data): Likewise.
7368 * psymtab.c (psymbol_name_matches): Update call to
7369 get_symbol_name_matcher.
7370 * rust-lang.c (rust_language_data): Delete
7371 la_get_symbol_name_matcher initializer.
7372 * symtab.c (symbol_matches_search_name): Update call to
7373 get_symbol_name_matcher.
7374 (compare_symbol_name): Likewise.
7375
7376 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7377
7378 * ada-lang.c (ada_language_data): Delete la_compute_program
7379 initializer.
7380 * c-lang.c (c_language_data): Likewise.
7381 (c_language::compute_program): New member function.
7382 (cplus_language_data): Delete la_compute_program initializer.
7383 (cplus_language::compute_program): New member function.
7384 (asm_language_data): Delete la_compute_program initializer.
7385 (minimal_language_data): Likewise.
7386 * c-lang.h (c_compute_program): Update comment.
7387 (cplus_compute_program): Likewise.
7388 * compile/compile-c-support.c (c_compute_program): Likewise.
7389 (cplus_compute_program): Likewise.
7390 * compile/compile.c (compile_to_object): Update call to
7391 la_compute_program.
7392 * d-lang.c (d_language_data): Delete la_compute_program
7393 initializer.
7394 * f-lang.c (f_language_data): Likewise.
7395 * go-lang.c (go_language_data): Likewise.
7396 * language.c (unknown_language_data): Likewise.
7397 (auto_language_data): Likewise.
7398 * language.h (language_data): Delete la_compute_program field.
7399 (language_defn::compute_program): New member function.
7400 * m2-lang.c (m2_language_data): Delete la_compute_program
7401 initializer.
7402 * objc-lang.c (objc_language_data): Likewise.
7403 * opencl-lang.c (opencl_language_data): Likewise.
7404 * p-lang.c (pascal_language_data): Likewise.
7405 * rust-lang.c (rust_language_data): Likewise.
7406
7407 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7408
7409 * ada-lang.c (ada_language_data) Delete
7410 la_class_name_from_physname initializer.
7411 * c-lang.c (c_language_data): Likewise.
7412 (cplus_language_data): Likewise.
7413 (cplus_language::class_name_from_physname): New member function.
7414 (asm_language_data): Delete la_class_name_from_physname
7415 initializer.
7416 (minimal_language_data): Likewise.
7417 * d-lang.c (d_language_data): Likewise.
7418 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
7419 method on language_defn class.
7420 (guess_full_die_structure_name): Likewise.
7421 * f-lang.c (f_language_data): Delete la_class_name_from_physname
7422 initializer.
7423 * go-lang.c (go_language_data): Likewise.
7424 * language.c (language_class_name_from_physname): Delete.
7425 (unk_lang_class_name): Delete.
7426 (unknown_language_data): Delete la_class_name_from_physname
7427 initializer.
7428 (auto_language_data): Likewise.
7429 * language.h (language_data): Delete la_class_name_from_physname
7430 field.
7431 (language_defn::class_name_from_physname): New function.
7432 (language_class_name_from_physname): Delete declaration.
7433 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
7434 initializer.
7435 * objc-lang.c (objc_language_data): Likewise.
7436 * opencl-lang.c (opencl_language_data): Likewise.
7437 * p-lang.c (pascal_language_data): Likewise.
7438 * rust-lang.c (rust_language_data): Likewise.
7439
7440 2020-06-16 Tom Tromey <tom@tromey.com>
7441
7442 * tui/tui-data.h (STATUS_NAME): New macro.
7443 * tui/tui-layout.c (tui_remove_some_windows)
7444 (initialize_known_windows, tui_register_window)
7445 (tui_layout_split::remove_windows, initialize_layouts)
7446 (tui_new_layout_command): Don't use hard-coded window names.
7447
7448 2020-06-16 Tom Tromey <tom@tromey.com>
7449
7450 PR tui/25348:
7451 * tui/tui.c (tui_ensure_readline_initialized): Rename from
7452 tui_initialize_readline. Only run once. Call rl_initialize.
7453 * tui/tui.h (tui_ensure_readline_initialized): Rename from
7454 tui_initialize_readline.
7455 * tui/tui-io.c (tui_setup_io): Call
7456 tui_ensure_readline_initialized.
7457 * tui/tui-interp.c (tui_interp::init): Update.
7458
7459 2020-06-16 Tom Tromey <tom@tromey.com>
7460
7461 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
7462 Also preserve the status window.
7463
7464 2020-06-16 Tom Tromey <tom@tromey.com>
7465
7466 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
7467 where m_window==nullptr.
7468
7469 2020-06-15 Tom Tromey <tromey@adacore.com>
7470
7471 * windows-nat.c (windows_nat::handle_output_debug_string):
7472 Update.
7473 (windows_nat::handle_ms_vc_exception): Update.
7474 * target.h (target_read_string): Change API.
7475 * target.c (target_read_string): Change API.
7476 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
7477 Update.
7478 * solib-frv.c (frv_current_sos): Update.
7479 * solib-dsbt.c (dsbt_current_sos): Update.
7480 * solib-darwin.c (darwin_current_sos): Update.
7481 * linux-thread-db.c (inferior_has_bug): Update.
7482 * expprint.c (print_subexp_standard): Update.
7483 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
7484 (ada_exception_message_1): Update.
7485
7486 2020-06-15 Tom Tromey <tromey@adacore.com>
7487
7488 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
7489
7490 2020-06-15 Tom Tromey <tromey@adacore.com>
7491
7492 * valprint.c (read_string): Update comment.
7493 * target.c (MIN): Remove.
7494 (target_read_string): Rewrite.
7495
7496 2020-06-15 Tom Tromey <tromey@adacore.com>
7497
7498 * corefile.c (read_memory_string): Remove.
7499 * ada-valprint.c (ada_value_print_ptr): Update.
7500 * ada-lang.h (ada_tag_name): Change return type.
7501 * ada-lang.c (type_from_tag): Update.
7502 (ada_tag_name_from_tsd): Change return type. Use
7503 target_read_string.
7504 (ada_tag_name): Likewise.
7505 * gdbcore.h (read_memory_string): Don't declare.
7506
7507 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
7508
7509 * symtab.c (rbreak_command): Ignore Windows drive colon.
7510
7511 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
7512
7513 * NEWS: Mention removed GDBserver host support.
7514
7515 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
7516
7517 * features/riscv/rebuild-csr-xml.sh: Updated.
7518
7519 2020-06-11 Tom Tromey <tom@tromey.com>
7520
7521 PR gdb/18318:
7522 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
7523
7524 2020-06-09 Jonny Grant <jg@jguk.org>
7525 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
7526
7527 * main.c (captured_main_1): Don't print new line after help.
7528 (print_gdb_help): add mailing list and IRC channel information
7529 to --help. Add new lines between items in the footer. Remove
7530 quotes around bug url.
7531
7532 2020-06-11 Keith Seitz <keiths@redhat.com>
7533
7534 PR gdb/21356
7535 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
7536 Resolve typedefs for type length calculations.
7537
7538 2020-06-10 Tom de Vries <tdevries@suse.de>
7539
7540 PR ada/24713
7541 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
7542 (write_psymbols): Enable .gdb_index for ada.
7543 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
7544 ada.
7545
7546 2020-06-10 Tom de Vries <tdevries@suse.de>
7547
7548 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
7549 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
7550 namei" instead of "const char *name" argument.
7551 (dw2_map_matching_symbols): Use "offset_type namei" variant of
7552 dw2_symtab_iter_init.
7553
7554 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
7555
7556 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
7557 to use type::field and field::type instead.
7558
7559 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
7560
7561 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
7562 to use field::type instead.
7563
7564 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
7565
7566 * gdbtypes.h (struct field) <type, set_type>: New methods.
7567 Rename `type` field to...
7568 <m_type>: ... this. Change references throughout to use type or
7569 set_type methods.
7570 (FIELD_TYPE): Use field::type. Change call sites that modify
7571 the field's type to use field::set_type instead.
7572
7573 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
7574
7575 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
7576 to use type::index_type instead.
7577
7578 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
7579
7580 * gdbtypes.h (struct type) <index_type, set_index_type>: New
7581 methods.
7582 (TYPE_INDEX_TYPE): Use type::index_type.
7583 * gdbtypes.c (create_array_type_with_stride): Likewise.
7584
7585 2020-06-07 Tom Tromey <tom@tromey.com>
7586
7587 * valprint.c (generic_val_print_float): Remove "embedded_offset"
7588 parameter.
7589 (generic_value_print): Update.
7590
7591 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
7592
7593 Revert commit 982a38f60b0.
7594 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
7595
7596 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
7597
7598 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
7599 avoid use after free.
7600
7601 2020-06-05 Tom de Vries <tdevries@suse.de>
7602
7603 * NEWS: Fix typos.
7604
7605 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
7606
7607 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
7608 the per_bfd object.
7609 (dwarf2_read_debug_names): Likewise.
7610 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
7611 object when re-using a per_bfd object with an index.
7612
7613 2020-06-03 Tom de Vries <tdevries@suse.de>
7614
7615 PR symtab/26046
7616 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
7617 children for C++.
7618 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
7619 DW_TAG_subprogram.
7620
7621 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7622
7623 * ada-lang.c (ada_language_data): Delete skip_trampoline
7624 initializer.
7625 * c-lang.c (c_language_data): Likewise.
7626 (cplus_language_data): Likewise.
7627 (cplus_language::skip_trampoline): New member function.
7628 (asm_language_data): Delete skip_trampoline initializer.
7629 (minimal_language_data): Likewise.
7630 * d-lang.c (d_language_data): Likewise.
7631 * f-lang.c (f_language_data): Likewise.
7632 * go-lang.c (go_language_data): Likewise.
7633 * language.c (unk_lang_trampoline): Delete function.
7634 (skip_language_trampoline): Update.
7635 (unknown_language_data): Delete skip_trampoline initializer.
7636 (auto_language_data): Likewise.
7637 * language.h (language_data): Delete skip_trampoline field.
7638 (language_defn::skip_trampoline): New function.
7639 * m2-lang.c (m2_language_data): Delete skip_trampoline
7640 initializer.
7641 * objc-lang.c (objc_skip_trampoline): Delete function, move
7642 implementation to objc_language::skip_trampoline.
7643 (objc_language_data): Delete skip_trampoline initializer.
7644 (objc_language::skip_trampoline): New member function with
7645 implementation from objc_skip_trampoline.
7646 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
7647 initializer.
7648 * p-lang.c (pascal_language_data): Likewise.
7649 * rust-lang.c (rust_language_data): Likewise.
7650
7651 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7652
7653 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
7654 (ada_language::demangle): New member function.
7655 * c-lang.c (c_language_data): Delete la_demangle initializer.
7656 (cplus_language_data): Delete la_demangle initializer.
7657 (cplus_language::demangle): New member function.
7658 (asm_language_data): Delete la_demangle initializer.
7659 (minimal_language_data): Delete la_demangle initializer.
7660 * d-lang.c (d_language_data): Delete la_demangle initializer.
7661 (d_language::demangle): New member function.
7662 * f-lang.c (f_language_data): Delete la_demangle initializer.
7663 (f_language::demangle): New member function.
7664 * go-lang.c (go_language_data): Delete la_demangle initializer.
7665 (go_language::demangle): New member function.
7666 * language.c (language_demangle): Update.
7667 (unk_lang_demangle): Delete.
7668 (unknown_language_data): Delete la_demangle initializer.
7669 (unknown_language::demangle): New member function.
7670 (auto_language_data): Delete la_demangle initializer.
7671 (auto_language::demangle): New member function.
7672 * language.h (language_data): Delete la_demangle field.
7673 (language_defn::demangle): New function.
7674 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
7675 * objc-lang.c (objc_language_data): Delete la_demangle
7676 initializer.
7677 (objc_language::demangle): New member function.
7678 * opencl-lang.c (opencl_language_data): Delete la_demangle
7679 initializer.
7680 * p-lang.c (pascal_language_data): Likewise.
7681 * rust-lang.c (rust_language_data): Likewise.
7682 (rust_language::demangle): New member function.
7683
7684 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7685
7686 * ada-lang.c (ada_language_data): Delete la_print_type
7687 initializer.
7688 (ada_language::print_type): New member function.
7689 * c-lang.c (c_language_data): Delete la_print_type initializer.
7690 (c_language::print_type): New member function.
7691 (cplus_language_data): Delete la_print_type initializer.
7692 (cplus_language::print_type): New member function.
7693 (asm_language_data): Delete la_print_type initializer.
7694 (asm_language::print_type): New member function.
7695 (minimal_language_data): Delete la_print_type initializer.
7696 (minimal_language::print_type): New member function.
7697 * d-lang.c (d_language_data): Delete la_print_type initializer.
7698 (d_language::print_type): New member function.
7699 * f-lang.c (f_language_data): Delete la_print_type initializer.
7700 (f_language::print_type): New member function.
7701 * go-lang.c (go_language_data): Delete la_print_type initializer.
7702 (go_language::print_type): New member function.
7703 * language.c (unk_lang_print_type): Delete.
7704 (unknown_language_data): Delete la_print_type initializer.
7705 (unknown_language::print_type): New member function.
7706 (auto_language_data): Delete la_print_type initializer.
7707 (auto_language::print_type): New member function.
7708 * language.h (language_data): Delete la_print_type field.
7709 (language_defn::print_type): New function.
7710 (LA_PRINT_TYPE): Update.
7711 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
7712 (m2_language::print_type): New member function.
7713 * objc-lang.c (objc_language_data): Delete la_print_type
7714 initializer.
7715 (objc_language::print_type): New member function.
7716 * opencl-lang.c (opencl_print_type): Delete, implementation moved
7717 to opencl_language::print_type.
7718 (opencl_language_data): Delete la_print_type initializer.
7719 (opencl_language::print_type): New member function, implementation
7720 from opencl_print_type.
7721 * p-lang.c (pascal_language_data): Delete la_print_type
7722 initializer.
7723 (pascal_language::print_type): New member function.
7724 * rust-lang.c (rust_print_type): Delete, implementation moved to
7725 rust_language::print_type.
7726 (rust_language_data): Delete la_print_type initializer.
7727 (rust_language::print_type): New member function, implementation
7728 from rust_print_type.
7729
7730 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7731
7732 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
7733 implementation moves to...
7734 (ada_language::sniff_from_mangled_name): ...here. Update return
7735 type.
7736 (ada_language_data): Delete la_sniff_from_mangled_name
7737 initializer.
7738 * c-lang.c (c_language_data): Likewise.
7739 (cplus_language_data): Likewise.
7740 (cplus_language::sniff_from_mangled_name): New member function,
7741 implementation taken from gdb_sniff_from_mangled_name.
7742 (asm_language_data): Delete la_sniff_from_mangled_name
7743 initializer.
7744 (minimal_language_data): Likewise.
7745 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
7746 implementation moves to cplus_language::sniff_from_mangled_name.
7747 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
7748 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
7749 moves to...
7750 (d_language::sniff_from_mangled_name): ...here.
7751 (d_language_data): Delete la_sniff_from_mangled_name initializer.
7752 * f-lang.c (f_language_data): Likewise.
7753 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
7754 moves to...
7755 (go_language::sniff_from_mangled_name): ...here.
7756 (go_language_data): Delete la_sniff_from_mangled_name initializer.
7757 * language.c (language_sniff_from_mangled_name): Delete.
7758 (unknown_language_data): Delete la_sniff_from_mangled_name
7759 initializer.
7760 (auto_language_data): Likewise.
7761 * language.h (language_data): Delete la_sniff_from_mangled_name
7762 field.
7763 (language_defn::sniff_from_mangled_name): New function.
7764 (language_sniff_from_mangled_name): Delete declaration.
7765 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
7766 field.
7767 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
7768 implementation moves to...
7769 (objc_language::sniff_from_mangled_name): ...here.
7770 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
7771 * opencl-lang.c (opencl_language_data): Likewise.
7772 * p-lang.c (pascal_language_data): Likewise.
7773 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
7774 implementation moves to...
7775 (rust_language::sniff_from_mangled_name): ...here.
7776 (rust_language_data): Delete la_sniff_from_mangled_name
7777 initializer.
7778 * symtab.c (symbol_find_demangled_name): Call
7779 sniff_from_mangled_name member function.
7780
7781 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7782
7783 * ada-lang.c (ada_language_data): Delete la_search_name_hash
7784 initializer.
7785 * c-lang.c (c_language_data): Likewise.
7786 (cplus_language_data): Likewise.
7787 (cplus_language::search_name_hash): New member function.
7788 (asm_language_data): Delete la_search_name_hash initializer.
7789 (minimal_language_data): Likewise.
7790 * d-lang.c (d_language_data): Likewise.
7791 * dictionary.c (default_search_name_hash): Rename to...
7792 (language_defn::search_name_hash): ...this.
7793 * f-lang.c (f_language_data): Likewise.
7794 (f_language::search_name_hash): New member function.
7795 * go-lang.c (go_language_data): Delete la_search_name_hash
7796 initializer.
7797 * language.c (unknown_language_data): Likewise.
7798 (auto_language_data): Likewise.
7799 * language.h (struct language_data): Delete la_search_name_hash
7800 field.
7801 (language_defn::search_name_hash): Declare new member function.
7802 (default_search_name_hash): Delete declaration.
7803 * m2-lang.c (m2_language_data): Delete la_search_name_hash
7804 initializer.
7805 * objc-lang.c (objc_language_data): Likewise.
7806 * opencl-lang.c (opencl_language_data): Likewise.
7807 * p-lang.c (pascal_language_data): Likewise.
7808 * rust-lang.c (rust_language_data): Likewise.
7809 * symtab.c (search_name_hash): Update call.
7810
7811 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7812
7813 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
7814 initializer.
7815 * c-lang.c (class compile_instance): Declare.
7816 (c_language_data): Delete la_get_compile_instance initializer.
7817 (c_language::get_compile_instance): New member function.
7818 (cplus_language_data): Delete la_get_compile_instance initializer.
7819 (cplus_language::get_compile_instance): New member function.
7820 (asm_language_data): Delete la_get_compile_instance initializer.
7821 (minimal_language_data): Likewise.
7822 * c-lang.h (c_get_compile_context): Update comment.
7823 (cplus_get_compile_context): Update comment.
7824 * compile/compile.c (compile_to_object): Update calls, don't rely
7825 on function pointer being NULL.
7826 * d-lang.c (d_language_data): Delete la_get_compile_instance
7827 initializer.
7828 * f-lang.c (f_language_data): Likewise.
7829 * go-lang.c (go_language_data): Likewise.
7830 * language.c (unknown_language_data): Likewise.
7831 (auto_language_data): Likewise.
7832 * language.h (language_data): Delete la_get_compile_instance field.
7833 (language_defn::get_compile_instance): New member function.
7834 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
7835 initializer.
7836 * objc-lang.c (objc_language_data): Likewise.
7837 * opencl-lang.c (opencl_language_data): Likewise.
7838 * p-lang.c (pascal_language_data): Likewise.
7839 * rust-lang.c (rust_language_data): Likewise.
7840
7841 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7842
7843 * ada-lang.c (ada_add_all_symbols): Update comment.
7844 (ada_iterate_over_symbols): Delete, move implementation to...
7845 (ada_language::iterate_over_symbols): ...here, a new member
7846 function, rewrite to use range based for loop.
7847 (ada_language_data): Delete la_iterate_over_symbols initializer.
7848 * c-lang.c (c_language_data): Likewise.
7849 (cplus_language_data): Likewise.
7850 (asm_language_data): Likewise.
7851 (minimal_language_data): Likewise.
7852 * d-lang.c (d_language_data): Likewise.
7853 * f-lang.c (f_language_data): Likewise.
7854 * go-lang.c (go_language_data): Likewise.
7855 * language.c (unknown_language_data): Likewise.
7856 (auto_language_data): Likewise.
7857 * language.h (language_data): Delete la_iterate_over_symbols field.
7858 (language_defn::iterate_over_symbols): New member function.
7859 (LA_ITERATE_OVER_SYMBOLS): Update.
7860 * linespec.c (iterate_over_all_matching_symtabs): Update.
7861 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
7862 initializer.
7863 * objc-lang.c (objc_language_data): Likewise.
7864 * opencl-lang.c (opencl_language_data): Likewise.
7865 * p-lang.c (pascal_language_data): Likewise.
7866 * rust-lang.c (rust_language_data): Likewise.
7867
7868 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7869
7870 * ada-lang.c (ada_language_data): Delete
7871 la_lookup_transparent_type initializer.
7872 * c-lang.c (c_language_data): Likewise.
7873 (cplus_language_data): Likewise.
7874 (cplus_language::lookup_transparent_type): New member function.
7875 (asm_language_data): Delete la_lookup_transparent_type
7876 initializer.
7877 (minimal_language_data): Likewise.
7878 * d-lang.c (d_language_data): Likewise.
7879 * f-lang.c (f_language_data): Likewise.
7880 * go-lang.c (go_language_data): Likewise.
7881 * language.c (unknown_language_data): Likewise.
7882 (auto_language_data): Likewise.
7883 * language.h (struct language_data): Delete
7884 la_lookup_transparent_type field.
7885 (language_defn::lookup_transparent_type): New member function.
7886 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
7887 initializer.
7888 * objc-lang.c (objc_language_data): Likewise.
7889 * opencl-lang.c (opencl_language_data): Likewise.
7890 * p-lang.c (pascal_language_data): Likewise.
7891 * rust-lang.c (rust_language_data): Likewise.
7892 * symtab.c (symbol_matches_domain): Update call.
7893
7894 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7895
7896 * ada-lang.c (ada_language_arch_info): Delete function, move
7897 implementation to...
7898 (ada_language::language_arch_info): ...here, a new member
7899 function.
7900 (ada_language_data): Delete la_language_arch_info.
7901 * c-lang.c (c_language_data): Likewise.
7902 (c_language::language_arch_info): New member function.
7903 (cplus_language_arch_info): Delete function, move
7904 implementation to...
7905 (cplus_language::language_arch_info): ...here, a new member
7906 function.
7907 (cplus_language_data): Delete la_language_arch_info.
7908 (asm_language_data): Likewise.
7909 (asm_language::language_arch_info): New member function.
7910 (minimal_language_data): Delete la_language_arch_info.
7911 (minimal_language::language_arch_info): New member function.
7912 * d-lang.c (d_language_arch_info): Delete function, move
7913 implementation to...
7914 (d_language::language_arch_info): ...here, a new member
7915 function.
7916 (d_language_data): Delete la_language_arch_info.
7917 * f-lang.c (f_language_arch_info): Delete function, move
7918 implementation to...
7919 (f_language::language_arch_info): ...here, a new member
7920 function.
7921 (f_language_data): Delete la_language_arch_info.
7922 * go-lang.c (go_language_arch_info): Delete function, move
7923 implementation to...
7924 (go_language::language_arch_info): ...here, a new member
7925 function.
7926 (go_language_data): Delete la_language_arch_info.
7927 * language.c (unknown_language_data): Likewise.
7928 (unknown_language::language_arch_info): New member function.
7929 (auto_language_data): Delete la_language_arch_info.
7930 (auto_language::language_arch_info): New member function.
7931 (language_gdbarch_post_init): Update call to
7932 la_language_arch_info.
7933 * language.h (language_data): Delete la_language_arch_info
7934 function pointer.
7935 (language_defn::language_arch_info): New function.
7936 * m2-lang.c (m2_language_arch_info): Delete function, move
7937 implementation to...
7938 (m2_language::language_arch_info): ...here, a new member
7939 function.
7940 (m2_language_data): Delete la_language_arch_info.
7941 * objc-lang.c (objc_language_arch_info): Delete function, move
7942 implementation to...
7943 (objc_language::language_arch_info): ...here, a new member
7944 function.
7945 (objc_language_data): Delete la_language_arch_info.
7946 * opencl-lang.c (opencl_language_arch_info): Delete function, move
7947 implementation to...
7948 (opencl_language::language_arch_info): ...here, a new member
7949 function.
7950 (opencl_language_data): Delete la_language_arch_info.
7951 * p-lang.c (pascal_language_arch_info): Delete function, move
7952 implementation to...
7953 (pascal_language::language_arch_info): ...here, a new member
7954 function.
7955 (pascal_language_data): Delete la_language_arch_info.
7956 * rust-lang.c (rust_language_arch_info): Delete function, move
7957 implementation to...
7958 (rust_language::language_arch_info): ...here, a new member
7959 function.
7960 (rust_language_data): Delete la_language_arch_info.
7961
7962 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7963
7964 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
7965 initializer.
7966 * c-lang.c (c_language_data): Likewise.
7967 (cplus_language_data): Likewise.
7968 (cplus_language::pass_by_reference_info): New method.
7969 (asm_language_data): Delete la_pass_by_reference initializer.
7970 (minimal_language_data): Likewise.
7971 * cp-abi.c (cp_pass_by_reference): Remove use of
7972 default_pass_by_reference.
7973 * d-lang.c (d_language_data): Likewise.
7974 * f-lang.c (f_language_data): Likewise.
7975 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
7976 default_pass_by_reference.
7977 * go-lang.c (go_language_data): Likewise.
7978 * language.c (language_pass_by_reference): Update.
7979 (default_pass_by_reference): Delete.
7980 (unknown_language_data): Delete la_pass_by_reference
7981 initializer.
7982 (auto_language_data): Likewise.
7983 * language.h (struct language_data): Delete la_pass_by_reference
7984 field.
7985 (language_defn::pass_by_reference_info): New member function.
7986 (default_pass_by_reference): Delete declaration.
7987 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
7988 initializer.
7989 * objc-lang.c (objc_language_data): Likewise.
7990 * opencl-lang.c (opencl_language_data): Likewise.
7991 * p-lang.c (pascal_language_data): Likewise.
7992 * rust-lang.c (rust_language_data): Likewise.
7993
7994 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7995
7996 * ada-lang.c (ada_read_var_value): Delete function, move
7997 implementation to...
7998 (ada_language::read_var_value): ...here.
7999 (ada_language_data): Delete la_read_var_value initializer.
8000 * c-lang.c (c_language_data): Likewise.
8001 (cplus_language_data): Likewise.
8002 (minimal_language_data): Likewise.
8003 * d-lang.c (d_language_data): Likewise.
8004 * f-lang.c (f_language_data): Likewise.
8005 * findvar.c (default_read_var_value): Rename to...
8006 (language_defn::read_var_value): ...this.
8007 * findvar.c (read_var_value): Update header comment, and change to
8008 call member function instead of function pointer.
8009 * go-lang.c (go_language_data): Likewise.
8010 * language.c (unknown_language_data): Delete la_read_var_value
8011 initializer.
8012 (auto_language_data): Likewise.
8013 * language.h (struct language_data): Delete la_read_var_value
8014 field.
8015 (language_defn::read_var_value): New member function.
8016 (default_read_var_value): Delete declaration.
8017 * m2-lang.c (m2_language_data): Delete la_read_var_value
8018 initializer.
8019 * objc-lang.c (objc_language_data): Likewise.
8020 * opencl-lang.c (opencl_language_data): Likewise.
8021 * p-lang.c (pascal_language_data): Likewise.
8022 * rust-lang.c (rust_language_data): Likewise.
8023 * value.h (default_read_var_value): Delete declaration.
8024
8025 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8026
8027 * ada-lang.c (ada_print_array_index): Delete function, move
8028 implementation to...
8029 (ada_language::print_array_index): ...here.
8030 (ada_language_data): Delete la_print_array_index initializer.
8031 * c-lang.c (c_language_data): Likewise.
8032 (cplus_language_data): Likewise.
8033 (minimal_language_data): Likewise.
8034 * d-lang.c (d_language_data): Likewise.
8035 * f-lang.c (f_language_data): Likewise.
8036 * go-lang.c (go_language_data): Likewise.
8037 * language.c (default_print_array_index): Delete function, move
8038 implementation to...
8039 (language_defn::print_array_index): ...here.
8040 (unknown_language_data): Delete la_print_array_index initializer.
8041 (auto_language_data): Likewise.
8042 * language.h (struct language_data): Delete la_print_array_index
8043 field.
8044 (language_defn::print_array_index): New member function.
8045 (LA_PRINT_ARRAY_INDEX): Update.
8046 (default_print_array_index): Delete declaration.
8047 * m2-lang.c (m2_language_data): Delete la_print_array_index
8048 initializer.
8049 * objc-lang.c (objc_language_data): Likewise.
8050 * opencl-lang.c (opencl_language_data): Likewise.
8051 * p-lang.c (pascal_language_data): Likewise.
8052 * rust-lang.c (rust_language_data): Likewise.
8053
8054 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8055
8056 * gdb/ada-lang.c (ada_language_defn): Convert to...
8057 (ada_language_data): ...this.
8058 (class ada_language): New class.
8059 (ada_language_defn): New static global.
8060 * gdb/c-lang.c (c_language_defn): Convert to...
8061 (c_language_data): ...this.
8062 (class c_language): New class.
8063 (c_language_defn): New static global.
8064 (cplus_language_defn): Convert to...
8065 (cplus_language_data): ...this.
8066 (class cplus_language): New class.
8067 (cplus_language_defn): New static global.
8068 (asm_language_defn): Convert to...
8069 (asm_language_data): ...this.
8070 (class asm_language): New class.
8071 (asm_language_defn): New static global.
8072 (minimal_language_defn): Convert to...
8073 (minimal_language_data): ...this.
8074 (class minimal_language): New class.
8075 (minimal_language_defn): New static global.
8076 * gdb/d-lang.c (d_language_defn): Convert to...
8077 (d_language_data): ...this.
8078 (class d_language): New class.
8079 (d_language_defn): New static global.
8080 * gdb/f-lang.c (f_language_defn): Convert to...
8081 (f_language_data): ...this.
8082 (class f_language): New class.
8083 (f_language_defn): New static global.
8084 * gdb/go-lang.c (go_language_defn): Convert to...
8085 (go_language_data): ...this.
8086 (class go_language): New class.
8087 (go_language_defn): New static global.
8088 * gdb/language.c (unknown_language_defn): Remove declaration.
8089 (current_language): Initialize to nullptr, real initialization is
8090 moved to _initialize_language.
8091 (languages): Delete global.
8092 (language_defn::languages): Define.
8093 (set_language_command): Use language_defn::languages.
8094 (set_language): Likewise.
8095 (range_error): Likewise.
8096 (language_enum): Likewise.
8097 (language_def): Likewise.
8098 (add_set_language_command): Use language_def::languages for the
8099 language list, and language_def to lookup language pointers.
8100 (skip_language_trampoline): Use language_defn::languages.
8101 (unknown_language_defn): Convert to...
8102 (unknown_language_data): ...this.
8103 (class unknown_language): New class.
8104 (unknown_language_defn): New static global.
8105 (auto_language_defn): Convert to...
8106 (auto_language_data): ...this.
8107 (class auto_language): New class.
8108 (auto_language_defn): New static global.
8109 (language_gdbarch_post_init): Use language_defn::languages.
8110 (_initialize_language): Initialize current_language.
8111 * gdb/language.h (struct language_defn): Rename to...
8112 (struct language_data): ...this.
8113 (struct language_defn): New.
8114 (auto_language_defn): Delete.
8115 (unknown_language_defn): Delete.
8116 (minimal_language_defn): Delete.
8117 (ada_language_defn): Delete.
8118 (asm_language_defn): Delete.
8119 (c_language_defn): Delete.
8120 (cplus_language_defn): Delete.
8121 (d_language_defn): Delete.
8122 (f_language_defn): Delete.
8123 (go_language_defn): Delete.
8124 (m2_language_defn): Delete.
8125 (objc_language_defn): Delete.
8126 (opencl_language_defn): Delete.
8127 (pascal_language_defn): Delete.
8128 (rust_language_defn): Delete.
8129 * gdb/m2-lang.c (m2_language_defn): Convert to...
8130 (m2_language_data): ...this.
8131 (class m2_language): New class.
8132 (m2_language_defn): New static global.
8133 * gdb/objc-lang.c (objc_language_defn): Convert to...
8134 (objc_language_data): ...this.
8135 (class objc_language): New class.
8136 (objc_language_defn): New static global.
8137 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
8138 (opencl_language_data): ...this.
8139 (class opencl_language): New class.
8140 (opencl_language_defn): New static global.
8141 * gdb/p-lang.c (pascal_language_defn): Convert to...
8142 (pascal_language_data): ...this.
8143 (class pascal_language): New class.
8144 (pascal_language_defn): New static global.
8145 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
8146 language pointer, update comment format.
8147 * gdb/rust-lang.c (rust_language_defn): Convert to...
8148 (rust_language_data): ...this.
8149 (class rust_language): New class.
8150 (rust_language_defn): New static global.
8151
8152 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
8153
8154 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
8155 member variable.
8156 <m_stmt_at_address>: New member variable.
8157 (lnp_state_machine::record_line): Don't record some lines, update
8158 tracking of is_stmt at the same address.
8159 (lnp_state_machine::lnp_state_machine): Initialise new member
8160 variables.
8161
8162 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
8163
8164 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
8165 "-include gnu-nat-mig.h".
8166 * gnu-nat-mig.h: New file.
8167 * gnu-nat.c: Include "gnu-nat-mig.h".
8168 (exc_server, msg_reply_server, notify_server,
8169 process_reply_server): Remove declarations.
8170
8171 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8172
8173 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
8174 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
8175 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
8176 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
8177 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
8178 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
8179 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
8180 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
8181 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
8182 to gnu_nat_target class.
8183 * gnu-nat.c: Likewise.
8184 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
8185 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
8186 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
8187 object.
8188 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
8189 instead of `gnu_target'.
8190
8191 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8192
8193 * i386-gnu-tdep.c: Include "gdbcore.h"
8194 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
8195 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
8196 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
8197 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
8198 i386_gnu_sigcontext_addr): New functions
8199 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
8200 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
8201 tdep.
8202
8203 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8204
8205 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
8206 before fork_inferior call. Avoid calling it if target_is_pushed returns
8207 true.
8208
8209 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8210
8211 * gnu-nat.h (gnu_target): New variable declaration.
8212 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
8213 gnu_target.
8214 * gnu-nat.c (gnu_target): New variable.
8215 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
8216 add_thread_silent, and add_thread calls.
8217 (gnu_nat_target::create_inferior): Pass gnu_target to
8218 add_thread_silent, thread_change_ptid call.
8219 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
8220 call.
8221
8222 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8223
8224 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
8225 (gnu_nat_target::find_memory_regions): Remove unused
8226 `old_address' variable.
8227
8228 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8229
8230 * gnu-nat.c: Include "gdbarch.h".
8231
8232 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8233
8234 * reply_mig_hack.awk (Error return): Cast function through
8235 void *, to bypass compiler function call check.
8236
8237 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8238
8239 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
8240 $(srcdir)/reply_mig_hack.awk.
8241
8242 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8243
8244 * gnu-nat.h (gnu_debug_flag): Set type to bool.
8245
8246 2020-05-30 Jonny Grant <jg@jguk.org>
8247
8248 * configure.ac (ACX_BUGURL): change bug URL to https.
8249
8250 2020-05-30 Pedro Alves <palves@redhat.com>
8251
8252 * cp-support.c (replace_typedefs_template): New.
8253 (replace_typedefs_qualified_name): Handle
8254 DEMANGLE_COMPONENT_TEMPLATE.
8255
8256 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
8257
8258 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
8259 dwarf2/index-cache.h, dwarf2/index-write.c,
8260 dwarf2/index-write.h, dwarf2/line-header.c,
8261 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
8262 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
8263 variables and fields from `dwarf2_per_objfile` to just
8264 `per_objfile` throughout.
8265
8266 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
8267
8268 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8269 <push_dwarf_reg_entry_value>: Add comment.
8270
8271 2020-05-28 Kevin Buettner <kevinb@redhat.com>
8272 Keith Seitz <keiths@redhat.com>
8273
8274 * python/python.c (do_start_initialization): Call PyEval_SaveThread
8275 instead of PyEval_ReleaseLock.
8276 (class gdbpy_gil): Move to earlier in file.
8277 (finalize_python): Set gdb_python_initialized.
8278 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
8279 when not initialized.
8280
8281 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
8282
8283 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8284 <push_dwarf_reg_entry_value>: Remove assert. Override
8285 per_objfile with caller_per_objfile.
8286
8287 2020-05-28 Tom de Vries <tdevries@suse.de>
8288
8289 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
8290 PR gold/15646 workaround to symbol kind "type".
8291
8292 2020-05-27 Tom Tromey <tromey@adacore.com>
8293
8294 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
8295
8296 2020-05-27 Tom Tromey <tromey@adacore.com>
8297
8298 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
8299 Use htab_find_with_hash.
8300 <add_abbrev>: Remove "abbrev_number" parameter.
8301 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
8302 "abbrev_number" parameter. Use htab_find_slot_with_hash.
8303 (hash_abbrev): Add comment.
8304 (abbrev_table::lookup_abbrev): Move to header file.
8305 (abbrev_table::read): Update.
8306
8307 2020-05-27 Tom Tromey <tromey@adacore.com>
8308
8309 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
8310 method.
8311 <canonical_name>: New member.
8312 <raw_name>: Rename from "name".
8313 (partial_die_info): Initialize canonical_name.
8314 (scan_partial_symbols): Check raw_name.
8315 (partial_die_parent_scope, partial_die_full_name)
8316 (add_partial_symbol, add_partial_subprogram)
8317 (add_partial_enumeration, load_partial_dies): Use "name" method.
8318 (partial_die_info::name): New method.
8319 (partial_die_info::read, guess_partial_die_structure_name)
8320 (partial_die_info::fixup): Update.
8321
8322 2020-05-27 Tom Tromey <tromey@adacore.com>
8323
8324 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
8325 <get_ref_die_offset>: Inline.
8326 <get_ref_die_offset_complaint>: New method.
8327 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
8328 (attribute::get_ref_die_offset_complaint): Rename from
8329 get_ref_die_offset. Just issue complaint.
8330
8331 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
8332
8333 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
8334
8335 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
8336
8337 * exec.c (exec_file_attach): Use errno value of first openp failure.
8338
8339 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
8340
8341 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
8342 Don't close thread handle.
8343
8344 2020-05-27 Tom Tromey <tom@tromey.com>
8345 Simon Marchi <simon.marchi@efficios.com>
8346
8347 * objfiles.h (struct objfile) <partial_symtabs>: Now a
8348 shared_ptr.
8349 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
8350 member.
8351 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
8352 dwarf2_per_bfd_objfile_data_key>: New globals.
8353 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
8354 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
8355 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
8356 shared.
8357 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
8358 short-circuit when sharing.
8359 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
8360 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
8361
8362 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8363
8364 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
8365 to...
8366 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
8367 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
8368
8369 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8370
8371 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
8372 build_name_components, find_name_components_bounds>:
8373 Add per_objfile parameter.
8374 (struct mapped_index) <symbol_name_at>: Likewise.
8375 (struct mapped_debug_names): Remove constructor.
8376 <dwarf2_per_objfile>: Remove field.
8377 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
8378 (mapped_index_base::find_name_components_bounds,
8379 mapped_index_base::build_name_components,
8380 dw2_expand_symtabs_matching_symbol): Likewise.
8381 (class mock_mapped_index) <symbol_name_at>: Likewise.
8382 (check_match): Likewise.
8383 (check_find_bounds_finds): Likewise.
8384 (test_mapped_index_find_name_component_bounds): Update.
8385 (CHECK_MATCH): Update.
8386 (dw2_expand_symtabs_matching): Update.
8387 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
8388 per_objfile parameter.
8389 <find_vec_in_debug_names>: Likewise.
8390 <m_per_objfile>: New field.
8391 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
8392 parameter.
8393 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
8394 (dw2_debug_names_iterator::next): Update.
8395 (dw2_debug_names_lookup_symbol): Update.
8396 (dw2_debug_names_expand_symtabs_for_function): Update.
8397 (dw2_debug_names_map_matching_symbols): Update.
8398 (dw2_debug_names_expand_symtabs_matching): Update.
8399 (dwarf2_read_debug_names): Update.
8400
8401 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8402
8403 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
8404 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
8405 move to dwarf2_per_objfile.
8406 <read_in_chain>: Remove.
8407 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
8408 remove_all_cus, age_comp_units>: New methods.
8409 <m_dwarf2_cus>: New member.
8410 (struct dwarf2_per_cu_data) <cu>: Remove.
8411 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
8412 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
8413 moved to methods of dwarf2_per_objfile.
8414 (dwarf2_clear_marks): Remove.
8415 (dwarf2_queue_item::~dwarf2_queue_item): Update.
8416 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
8417 (dwarf2_per_bfd::free_cached_comp_units): Remove.
8418 (dwarf2_per_objfile::remove_all_cus): New.
8419 (class free_cached_comp_units) <~free_cached_comp_units>:
8420 Update.
8421 (load_cu): Update.
8422 (dw2_do_instantiate_symtab): Adjust.
8423 (fill_in_sig_entry_from_dwo_entry): Adjust.
8424 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8425 (cutu_reader::cutu_reader): Likewise.
8426 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
8427 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
8428 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
8429 and dwarf2_per_objfile::age_comp_units.
8430 (load_partial_comp_unit): Update.
8431 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
8432 (process_queue): Likewise.
8433 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
8434 backlink.
8435 (dwarf2_read_addr_index): Likewise.
8436 (follow_die_offset): Likewise.
8437 (dwarf2_fetch_die_loc_sect_off): Likewise.
8438 (dwarf2_fetch_constant_bytes): Likewise.
8439 (dwarf2_fetch_die_type_sect_off): Likewise.
8440 (follow_die_sig_1): Likewise.
8441 (load_full_type_unit): Likewise.
8442 (read_signatured_type): Likewise.
8443 (dwarf2_cu::dwarf2_cu): Don't set cu field.
8444 (dwarf2_cu::~dwarf2_cu): Remove.
8445 (dwarf2_per_objfile::get_cu): New.
8446 (dwarf2_per_objfile::set_cu): New.
8447 (age_cached_comp_units): Rename to...
8448 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
8449 to std::unordered_map.
8450 (free_one_cached_comp_unit): Rename to...
8451 (dwarf2_per_objfile::remove_cu): ... this. Adjust
8452 to std::unordered_map.
8453 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
8454 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
8455 a dwarf2_per_objfile in data.
8456 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
8457 (dwarf2_clear_marks): Remove.
8458
8459 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8460
8461 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
8462 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
8463 (init_tu_and_read_dwo_dies): Likewise.
8464 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
8465 (cutu_reader::cutu_reader): Likewise.
8466 (load_partial_comp_unit): Likewise.
8467 (process_psymtab_comp_unit): Update.
8468 (build_type_psymtabs_1): Update.
8469 (process_skeletonless_type_unit): Update.
8470 (load_full_comp_unit): Update.
8471 (find_partial_die): Update.
8472 (dwarf2_read_addr_index): Update.
8473 (read_signatured_type): Update.
8474
8475 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8476
8477 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
8478 m_header_read_in>: New fields.
8479 <get_header>: New method.
8480 * dwarf2/read.c (per_cu_header_read_in): Remove.
8481 (dwarf2_per_cu_data::get_header): New.
8482 (dwarf2_per_cu_data::addr_size): Update.
8483 (dwarf2_per_cu_data::offset_size): Update.
8484 (dwarf2_per_cu_data::ref_addr_size): Update.
8485
8486 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8487
8488 * dwarf2/read.c (load_cu): Return dwarf2_cu.
8489 (dw2_do_instantiate_symtab): Update.
8490 (queue_and_load_all_dwo_tus): Change parameter from
8491 dwarf2_per_cu_data to dwarf2_cu.
8492 (dwarf2_fetch_die_loc_sect_off): Update.
8493 (dwarf2_fetch_constant_bytes): Update.
8494 (dwarf2_fetch_die_type_sect_off): Update.
8495
8496 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8497
8498 * dwarf2/read.c (process_full_comp_unit,
8499 process_full_type_unit): Remove per_cu, per_objfile paramters.
8500 Add dwarf2_cu parameter.
8501 (process_queue): Update.
8502
8503 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8504
8505 * dwarf2/read.c (create_cu_from_index_list): Replace
8506 dwarf2_per_objfile parameter with dwarf2_per_bfd.
8507 (create_cus_from_index_list): Likewise.
8508 (create_cus_from_index): Likewise.
8509 (create_signatured_type_table_from_index): Likewise.
8510 (create_cus_from_debug_names_list): Likewise.
8511 (create_cus_from_debug_names): Likewise.
8512 (dwarf2_read_gdb_index): Update.
8513 (dwarf2_read_debug_names): Update.
8514
8515 2020-05-27 Tom Tromey <tom@tromey.com>
8516 Simon Marchi <simon.marchi@efficios.com>
8517
8518 * dwarf2/read.h (struct dwarf2_per_objfile)
8519 <get_type_for_signatured_type, set_type_for_signatured_type>:
8520 New methods.
8521 <m_type_map>: New member.
8522 (struct signatured_type) <type>: Remove.
8523 * dwarf2/read.c
8524 (dwarf2_per_objfile::get_type_for_signatured_type,
8525 dwarf2_per_objfile::set_type_for_signatured_type): New.
8526 (get_signatured_type): Use new methods.
8527
8528 2020-05-27 Tom Tromey <tom@tromey.com>
8529 Simon Marchi <simon.marchi@efficios.com>
8530
8531 * dwarf2/read.h (struct type_unit_group_unshareable): New.
8532 (struct dwarf2_per_objfile) <type_units>: New member.
8533 <get_type_unit_group_unshareable>: New method.
8534 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
8535 num_symtabs, symtabs>: Remove; move to
8536 type_unit_group_unshareable.
8537 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
8538 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
8539 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
8540
8541 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8542
8543 * dwarf2/read.h (struct dwarf2_per_cu_data):
8544 <dwarf2_per_objfile>: Remove.
8545 * dwarf2/read.c (create_cu_from_index_list): Don't assign
8546 dwarf2_per_objfile.
8547 (create_signatured_type_table_from_index): Likewise.
8548 (create_signatured_type_table_from_debug_names): Likewise.
8549 (create_debug_type_hash_table): Likewise.
8550 (fill_in_sig_entry_from_dwo_entry): Likewise.
8551 (create_type_unit_group): Likewise.
8552 (read_comp_units_from_section): Likewise.
8553 (create_cus_hash_table): Likewise.
8554
8555 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8556
8557 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
8558 dwarf2_per_cu_data::dwarf2_per_objfile.
8559 (compute_compunit_symtab_includes): Likewise.
8560 (dwarf2_cu::start_symtab): Likewise.
8561
8562 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8563
8564 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
8565 parameter.
8566 * dwarf2/read.c (get_die_type_at_offset): Likewise.
8567 (read_namespace_alias): Update.
8568 (lookup_die_type): Update.
8569 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
8570 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
8571 Update.
8572 (disassemble_dwarf_expression): Update.
8573
8574 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8575
8576 * dwarf2/read.h (struct dwarf2_queue_item): Add
8577 dwarf2_per_objfile parameter, assign new parameter.
8578 <per_objfile>: New field.
8579 * dwarf2/read.c (free_one_cached_comp_unit): Add
8580 dwarf2_per_objfile parameter.
8581 (queue_comp_unit): Likewise.
8582 (dw2_do_instantiate_symtab): Update.
8583 (process_psymtab_comp_unit): Update.
8584 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
8585 (process_imported_unit_die): Update.
8586 (queue_and_load_dwo_tu): Update.
8587 (follow_die_offset): Update.
8588 (follow_die_sig_1): Update.
8589
8590 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8591
8592 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
8593 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
8594 (read_call_site_scope): Assign per_objfile.
8595 (dwarf2_per_cu_data::objfile): Remove.
8596 * gdbtypes.h (struct call_site) <per_objfile>: New member.
8597 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
8598 dwarf2_per_objfile parameter.
8599 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
8600 dwarf2_per_objfile parameter.
8601 (dwarf_expr_reg_to_entry_parameter): Add output
8602 dwarf2_per_objfile parameter.
8603 (locexpr_get_frame_base): Update.
8604 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
8605 <push_dwarf_reg_entry_value>: Update.
8606 <call_site_to_target_addr>: Update.
8607 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
8608 parameter.
8609 (value_of_dwarf_reg_entry): Update.
8610 (rw_pieced_value): Update.
8611 (indirect_synthetic_pointer): Update.
8612 (dwarf2_evaluate_property): Update.
8613 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
8614 parameter.
8615 (locexpr_read_variable): Update.
8616 (locexpr_get_symbol_read_needs): Update.
8617 (loclist_read_variable): Update.
8618
8619 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8620
8621 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8622 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8623 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
8624 parameter.
8625 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8626 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8627 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
8628 parameter.
8629 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
8630 sect_variable_value): Add dwarf2_per_objfile parameter.
8631 (class dwarf_evaluate_loc_desc) <dwarf_call,
8632 dwarf_variable_value>: Update.
8633 (fetch_const_value_from_synthetic_pointer): Add
8634 dwarf2_per_objfile parameter.
8635 (fetch_const_value_from_synthetic_pointer): Update.
8636 (coerced_pieced_ref): Update.
8637 (class symbol_needs_eval_context) <dwarf_call,
8638 dwarf_variable_value>: Update.
8639 (dwarf2_compile_expr_to_ax): Update.
8640
8641 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8642
8643 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
8644 parameter.
8645 (dwarf2_evaluate_loc_desc_full): Update.
8646
8647 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8648
8649 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
8650 parameter.
8651 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
8652 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
8653 dwarf2_per_objfile parameter.
8654 (decode_debug_loc_dwo_addresses): Likewise.
8655 (dwarf2_find_location_expression): Update.
8656 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
8657 (locexpr_describe_location_piece): Add dwarf2_per_objfile
8658 parameter.
8659 (disassemble_dwarf_expression): Add dwarf2_per_objfile
8660 parameter.
8661 (locexpr_describe_location_1): Likewise.
8662 (locexpr_describe_location): Update.
8663
8664 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8665
8666 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
8667 Remove.
8668 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
8669 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
8670 (dwarf2_compile_property_to_c): Update.
8671 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
8672 use text offset from objfile.
8673 (locexpr_tracepoint_var_ref): Update.
8674 (locexpr_generate_c_location): Update.
8675 (loclist_describe_location): Update.
8676 (loclist_tracepoint_var_ref): Update.
8677 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
8678 dwarf2_per_objfile parameter.
8679 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
8680 use text offset from objfile.
8681 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
8682
8683 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8684
8685 * dwarf2/expr.h (struct dwarf_expr_context)
8686 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
8687 <offset>: Remove.
8688 <per_objfile>: New member.
8689 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
8690 dwarf2_per_objfile parameter. Don't set offset, set
8691 per_objfile.
8692 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
8693 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
8694 a dwarf2_per_objfile object instead of an offset.
8695 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
8696 constructor.
8697 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
8698 to dwarf2_expr_executor constructor. Don't set offset.
8699 (dwarf2_fetch_cfa_info): Update.
8700 (struct dwarf2_frame_cache) <text_offset>: Remove.
8701 <per_objfile>: New field.
8702 (dwarf2_frame_cache): Update.
8703 (dwarf2_frame_prev_register): Update.
8704 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8705 <dwarf_evaluate_loc_desc>: Add constructor.
8706 (dwarf2_evaluate_loc_desc_full): Update.
8707 (dwarf2_locexpr_baton_eval): Update.
8708 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
8709 Add constructor.
8710 (dwarf2_loc_desc_get_symbol_read_needs): Update.
8711
8712 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8713
8714 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
8715 addr_sized_int_type>: Move to dwarf2_cu.
8716 <int_type>: Move to dwarf2_per_objfile.
8717 (struct dwarf2_per_objfile) <int_type>: Move here.
8718 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
8719 addr_sized_int_type>: Move here.
8720 (read_func_scope): Update.
8721 (read_array_type): Update.
8722 (read_tag_string_type): Update.
8723 (attr_to_dynamic_prop): Update.
8724 (dwarf2_per_cu_data::int_type): Rename to...
8725 (dwarf2_per_objfile::int_type): ... this.
8726 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
8727 (dwarf2_cu::addr_sized_int_type): ... this.
8728 (read_subrange_type): Update.
8729 (dwarf2_per_cu_data::addr_type): Rename to...
8730 (dwarf2_cu::addr_type): ... this.
8731 (set_die_type): Update.
8732
8733 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8734
8735 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
8736 data through per_cu->cu.
8737
8738 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8739
8740 * dwarf2/read.c (lookup_dwo_comp_unit): Change
8741 dwarf2_per_cu_data parameter fo dwarf2_cu.
8742 (lookup_dwo_type_unit): Likewise.
8743 (read_cutu_die_from_dwo): Likewise.
8744 (lookup_dwo_unit): Likewise.
8745 (open_and_init_dwo_file): Likewise.
8746 (lookup_dwo_cutu): Likewise.
8747 (lookup_dwo_comp_unit): Likewise.
8748 (lookup_dwo_type_unit): Likewise.
8749 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8750 (cutu_reader::cutu_reader): Update.
8751
8752 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8753
8754 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
8755 parameter.
8756 (process_full_type_unit): Likewise.
8757 (process_queue): Update.
8758
8759 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8760
8761 * dwarf2/read.c (recursively_compute_inclusions): Add
8762 dwarf2_per_objfile parameter.
8763 (compute_compunit_symtab_includes): Likewise.
8764 (process_cu_includes): Update.
8765
8766 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8767
8768 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
8769 parameter.
8770 (create_type_unit_group): Update.
8771 (process_psymtab_comp_unit_reader): Update.
8772 (build_type_psymtabs_reader): Update.
8773
8774 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8775
8776 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
8777 object through m_this_cu->cu.
8778
8779 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8780
8781 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
8782 the info parameter.
8783 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
8784
8785 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8786
8787 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
8788 per_objfile parameter.
8789 (load_full_type_unit): Add per_objfile parameter.
8790 (read_signatured_type): Likewise.
8791 (load_full_comp_unit): Likewise.
8792 (load_cu): Likewise.
8793 (dw2_do_instantiate_symtab): Likewise.
8794 (dw2_get_file_names): Likewise.
8795 (dw2_map_symtabs_matching_filename): Update.
8796 (dw_expand_symtabs_matching_file_matcher): Update.
8797 (dw2_map_symbol_filenames): Update.
8798 (process_psymtab_comp_unit): Add per_objfile parameter.
8799 (build_type_psymtabs_1): Update.
8800 (process_skeletonless_type_unit): Update.
8801 (dwarf2_build_psymtabs_hard): Update.
8802 (load_partial_comp_unit): Add per_objfile parameter.
8803 (scan_partial_symbols): Update.
8804 (load_full_comp_unit): Add per_objfile parameter.
8805 (process_imported_unit_die): Update.
8806 (create_cus_hash_table): Update.
8807 (find_partial_die): Update.
8808 (dwarf2_read_addr_index): Update.
8809 (follow_die_offset): Update.
8810 (dwarf2_fetch_die_loc_sect_off): Update.
8811 (dwarf2_fetch_constant_bytes): Update.
8812 (dwarf2_fetch_die_type_sect_off): Update.
8813 (follow_die_sig_1): Update.
8814 (load_full_type_unit): Add per_objfile parameter.
8815 (read_signatured_type): Likewise.
8816
8817 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8818
8819 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
8820 of objfile_name.
8821
8822 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8823
8824 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
8825 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
8826 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
8827 field.
8828 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
8829 (create_cus_from_index): Update.
8830 (dwarf2_read_gdb_index): Update.
8831 (create_cus_from_debug_names): Update.
8832 (dwarf2_read_debug_names): Update.
8833 (get_abbrev_section_for_cu): Update.
8834 (create_all_comp_units): Update.
8835 (read_attribute_value): Update.
8836 (get_debug_line_section): Update.
8837 * dwarf2/index-cache.c (index_cache::store): Update.
8838 * dwarf2/index-write.c (save_gdb_index_command): Update.
8839 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
8840
8841 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8842
8843 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
8844 member.
8845 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
8846 dwarf2_per_cu_data::per_bfd.
8847 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
8848 (create_type_unit_group): Likewise.
8849 (queue_comp_unit): Remove reference to
8850 per_cu->dwarf2_per_objfile.
8851 (maybe_queue_comp_unit): Likewise.
8852 (fill_in_sig_entry_from_dwo_entry): Assign new field.
8853 (create_cus_hash_table): Assign new field.
8854
8855 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8856
8857 * dwarf2/read.c: Replace
8858 dwarf2_cu->per_cu->dwarf2_per_objfile references with
8859 dwarf2_cu->per_objfile throughout.
8860
8861 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8862
8863 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
8864 parameter, don't use per_cu->dwarf2_per_objfile.
8865 (dw2_instantiate_symtab): Likewise.
8866 (dw2_find_last_source_symtab): Update.
8867 (dw2_map_expand_apply): Update.
8868 (dw2_lookup_symbol): Update.
8869 (dw2_expand_symtabs_for_function): Update.
8870 (dw2_expand_all_symtabs): Update.
8871 (dw2_expand_symtabs_with_fullname): Update.
8872 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
8873 don't use per_cu->dwarf2_per_objfile.
8874 (dw2_expand_marked_cus): Update.
8875 (dw2_find_pc_sect_compunit_symtab): Update.
8876 (dw2_debug_names_lookup_symbol): Update.
8877 (dw2_debug_names_expand_symtabs_for_function): Update.
8878 (dw2_debug_names_map_matching_symbols): Update.
8879 (dwarf2_psymtab::expand_psymtab): Update.
8880
8881 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8882
8883 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
8884 <per_objfile>: New member.
8885 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
8886 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
8887 call to dwarf2_cu.
8888 (cutu_reader::cutu_reader): Update.
8889 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
8890
8891 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8892
8893 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
8894 struct dwarf2_per_objfile.
8895 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
8896 dwarf2_per_bfd.
8897 * dwarf2/read.c (set_die_type): Update.
8898 (get_die_type_at_offset): Update.
8899
8900 2020-05-27 Tom Tromey <tom@tromey.com>
8901 Simon Marchi <simon.marchi@efficios.com>
8902
8903 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
8904 method.
8905 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
8906 get_symtab, set_symtab>: New methods.
8907 <m_symtabs>: New field.
8908 (struct dwarf2_psymtab): Derive from partial_symtab.
8909 <readin_p, get_compunit_symtab>: Declare methods.
8910 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
8911 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
8912 New methods.
8913 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
8914 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
8915 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
8916 (dw2_symtab_iter_next, dw2_print_stats)
8917 (dw2_expand_symtabs_with_fullname)
8918 (dw2_expand_symtabs_matching_one)
8919 (dw_expand_symtabs_matching_file_matcher)
8920 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
8921 (dw2_debug_names_iterator::next)
8922 (dw2_debug_names_map_matching_symbols)
8923 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
8924 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
8925 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
8926 New methods.
8927 (get_compunit_symtab, process_full_comp_unit)
8928 (process_full_type_unit): Update.
8929 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
8930
8931 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8932
8933 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
8934 then introduce a new dwarf2_per_objfile type.
8935 <read_line_string>: Move to the new dwarf2_per_objfile type.
8936 <objfile>: Likewise.
8937 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
8938 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
8939 dwarf2_per_objfile->per_bfd.
8940 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
8941 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
8942 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
8943 (dwarf2_per_bfd::free_cached_comp_units): ... this.
8944 (dwarf2_has_info): Allocate dwarf2_per_bfd.
8945 (dwarf2_per_objfile::locate_sections): Rename to...
8946 (dwarf2_per_bfd::locate_sections): ... this.
8947 (dwarf2_per_objfile::get_cutu): Rename to...
8948 (dwarf2_per_bfd::get_cutu): ... this.
8949 (dwarf2_per_objfile::get_cu): Rename to...
8950 (dwarf2_per_bfd::get_cu): ... this.
8951 (dwarf2_per_objfile::get_tu): Rename to...
8952 (dwarf2_per_bfd::get_tu): ... this.
8953 (dwarf2_per_objfile::allocate_per_cu): Rename to...
8954 (dwarf2_per_bfd::allocate_per_cu): ... this.
8955 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
8956 (dwarf2_per_bfd::allocate_signatured_type): ... this.
8957 (get_gdb_index_contents_ftype): Change parameter from
8958 dwarf2_per_objfile to dwarf2_per_bfd.
8959 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
8960 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
8961
8962 2020-05-27 Tom Tromey <tom@tromey.com>
8963 Simon Marchi <simon.marchi@efficios.com>
8964
8965 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
8966 (allocate_piece_closure): Set "per_objfile" member.
8967 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
8968 (locexpr_describe_location, loclist_describe_location): Use new
8969 member.
8970 * dwarf2/read.c (read_call_site_scope)
8971 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
8972 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
8973 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
8974 handle_data_member_location): Set per_objfile member.
8975 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
8976 member.
8977 (struct dwarf2_loclist_baton) <per_objfile>: New member.
8978
8979 2020-05-27 Tom Tromey <tom@tromey.com>
8980
8981 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
8982 allocate_signatured_type>: Declare new methods.
8983 <m_num_psymtabs>: New member.
8984 (struct dwarf2_per_cu_data) <index>: New member.
8985 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
8986 (dwarf2_per_objfile::allocate_signatured_type): New methods.
8987 (create_cu_from_index_list): Use allocate_per_cu.
8988 (create_signatured_type_table_from_index)
8989 (create_signatured_type_table_from_debug_names)
8990 (create_debug_type_hash_table, add_type_unit)
8991 (read_comp_units_from_section): Use allocate_signatured_type.
8992
8993 2020-05-27 Tom Tromey <tom@tromey.com>
8994
8995 * psymtab.c (partial_map_expand_apply)
8996 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
8997 (psym_lookup_global_symbol_language)
8998 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
8999 (psym_print_stats, psym_expand_symtabs_for_function)
9000 (psym_map_symbol_filenames, psym_map_matching_symbols)
9001 (psym_expand_symtabs_matching)
9002 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9003 (maintenance_check_psymtabs): Update.
9004 * psympriv.h (struct partial_symtab) <readin_p,
9005 get_compunit_symtab>: Add objfile parameter.
9006 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
9007 Likewise.
9008 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
9009 get_compunit_symtab>: Likewise.
9010 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
9011
9012 2020-05-27 Tom Tromey <tom@tromey.com>
9013
9014 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
9015 member.
9016 * dwarf2/read.c (delete_file_name_entry): Fix comment.
9017 (create_cu_from_index_list)
9018 (create_signatured_type_table_from_index)
9019 (create_signatured_type_table_from_debug_names)
9020 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
9021 (dwarf2_create_include_psymtab)
9022 (create_debug_type_hash_table, add_type_unit)
9023 (create_type_unit_group, read_comp_units_from_section)
9024 (dwarf2_compute_name, create_cus_hash_table)
9025 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9026 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
9027 obstack.
9028 (dw2_get_real_path): Likewise. Change argument to
9029 dwarf2_per_objfile.
9030
9031 2020-05-27 Luis Machado <luis.machado@linaro.org>
9032
9033 PR tdep/26000
9034 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
9035 for ldrd (immediate).
9036
9037 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9038
9039 * command.h: Add comment giving the name of class_tui.
9040 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
9041 create the fake command for the help for class_tui.
9042
9043 2020-05-26 Tom Tromey <tromey@adacore.com>
9044
9045 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
9046 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
9047 (val_atr): New function.
9048 (value_val_atr): Use it.
9049 * ada-valprint.c (print_optional_low_bound): Change low bound
9050 handling for enums.
9051 (val_print_packed_array_elements): Don't call discrete_position.
9052 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
9053 discrete_position for enum types.
9054 * language.c (default_print_array_index): Change type.
9055 * language.h (struct language_defn) <la_print_array_index>: Add
9056 index_type parameter, change type of index_value.
9057 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
9058 (default_print_array_index): Update.
9059 * valprint.c (maybe_print_array_index): Don't call
9060 value_from_longest. Update.
9061 (value_print_array_elements): Don't call discrete_position.
9062
9063 2020-05-26 Tom Tromey <tromey@adacore.com>
9064
9065 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
9066 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
9067
9068 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
9069
9070 PR gdb/13519
9071 * avr-tdep.c (avr_integer_to_address): Return data or code
9072 address accordingly to the second 'type' argument of the
9073 function.
9074
9075 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
9076
9077 * infcmd.c, inferior.h: (construct_inferior_arguments):
9078 Moved function from here to gdbsupport/common-inferior.{h,cc}
9079
9080 2020-05-23 Tom Tromey <tom@tromey.com>
9081
9082 Revert commit eca1f90c:
9083 * NEWS: Remove entry for completion styling.
9084 * completer.c (_rl_completion_prefix_display_length): Move
9085 declaration later.
9086 (gdb_fnprint): Revert.
9087 (gdb_display_match_list_1): Likewise.
9088 * cli/cli-style.c (completion_prefix_style)
9089 (completion_difference_style, completion_suffix_style): Remove.
9090 (_initialize_cli_style): Revert.
9091 * cli/cli-style.h (completion_prefix_style)
9092 (completion_difference_style, completion_suffix_style): Don't
9093 declare.
9094
9095 2020-05-24 Pedro Alves <palves@redhat.com>
9096
9097 * symtab.c (completion_list_add_name): Return boolean indication
9098 of whether the symbol matched.
9099 (completion_list_add_symbol): Don't try to remove C++ aliases if
9100 the symbol didn't match in the first place.
9101 * symtab.h (completion_list_add_name): Return bool.
9102
9103 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
9104
9105 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
9106 type::field.
9107
9108 2020-05-23 Joel Brobecker <brobecker@adacore.com>
9109
9110 GDB 9.2 released.
9111
9112 2020-05-23 Tom Tromey <tom@tromey.com>
9113
9114 * NEWS: Add entry for completion styling.
9115 * completer.c (_rl_completion_prefix_display_length): Move
9116 declaration earlier.
9117 (gdb_fnprint): Use completion_style.
9118 (gdb_display_match_list_1): Likewise.
9119 * cli/cli-style.c (completion_prefix_style)
9120 (completion_difference_style, completion_suffix_style): New
9121 globals.
9122 (_initialize_cli_style): Register new globals.
9123 * cli/cli-style.h (completion_prefix_style)
9124 (completion_difference_style, completion_suffix_style): Declare.
9125
9126 2020-05-23 Pedro Alves <palves@redhat.com>
9127
9128 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
9129 (parse_escape): Use ISDIGIT instead of isdigit.
9130 (puts_debug): Use gdb_isprint instead of isprint.
9131 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
9132 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
9133 ISSPACE instead of isspace.
9134 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
9135 instead of isspace.
9136 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
9137 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
9138 instead of isxdigit and ISDIGIT instead of isdigit.
9139
9140 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9141
9142 * gdbtypes.h (struct type) <field>: New method.
9143 (TYPE_FIELDS): Remove, replace all uses with either type::fields
9144 or type::field.
9145
9146 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9147
9148 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
9149 (TYPE_FIELDS): Use type::fields. Change all call sites that
9150 modify the propery to use type::set_fields instead.
9151
9152 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9153
9154 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
9155 type::num_fields instead.
9156
9157 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9158
9159 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
9160 methods.
9161 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
9162 that modify the number of fields to use type::set_num_fields
9163 instead.
9164
9165 2020-05-22 Tom Tromey <tromey@adacore.com>
9166
9167 * compile/compile-object-load.h (munmap_list_free): Don't
9168 declare.
9169
9170 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
9171
9172 * annotate.c (annotate_source_line): Update return type, add call
9173 to update current symtab and line.
9174 * annotate.h (annotate_source_line): Update return type, and
9175 extend header comment.
9176 * source.c (info_line_command): Check annotation_level before
9177 calling annotate_source_line.
9178 * stack.c (print_frame_info): If calling annotate_source_line
9179 returns true, then don't print any other source line information.
9180
9181 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
9182
9183 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
9184
9185 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
9186
9187 * coffread.c (patch_type): Remove NULL check before xfree.
9188 * corefile.c (set_gnutarget): Likewise.
9189 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
9190 * exec.c (build_section_table): Likewise.
9191 * remote.c (remote_target::pass_signals): Likewise.
9192 * utils.c (n_spaces): Likewise.
9193 * cli/cli-script.c (document_command): Likewise.
9194 * i386-windows-tdep.c (core_process_module_section): Likewise.
9195 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
9196
9197 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
9198
9199 * symfile.c (reread_symbols): Clear objfile's section_offsets
9200 vector and section indices, re-compute them by calling
9201 sym_offsets.
9202
9203 2020-05-20 Tom Tromey <tromey@adacore.com>
9204
9205 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
9206 (desc_one_bound, desc_index_type): Compute field name.
9207
9208 2020-05-20 Tom de Vries <tdevries@suse.de>
9209
9210 PR symtab/25833
9211 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
9212
9213 2020-05-20 Alan Modra <amodra@gmail.com>
9214
9215 PR 25993
9216 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
9217 bfd_set_filename.
9218 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
9219 passed to bfd_set_filename.
9220 * symfile-mem.c (add_vsyscall_page): Likewise for string
9221 passed to symbol_file_add_from_memory.
9222 (symbol_file_add_from_memory): Make name param a const char* and
9223 don't strdup.
9224
9225 2020-05-20 Alan Modra <amodra@gmail.com>
9226
9227 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
9228 rather than accessing bfd->filename directly.
9229 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
9230 and use bfd_section_name.
9231 * dwarf2/frame.c (decode_frame_entry): Likewise.
9232 * exec.c (exec_set_section_address): Likewise.
9233 * solib-aix.c (solib_aix_bfd_open): Likewise.
9234 * stap-probe.c (get_stap_base_address): Likewise.
9235 * symfile.c (reread_symbols): Likewise.
9236
9237 2020-05-19 Tom Tromey <tromey@adacore.com>
9238
9239 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
9240
9241 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
9242
9243 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
9244
9245 2020-05-19 Pedro Alves <palves@redhat.com>
9246
9247 * NEWS (set exec-file-mismatch): Adjust entry.
9248 * exec.c: Include "build-id.h".
9249 (validate_exec_file): Try to match build IDs instead of filenames.
9250 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
9251 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
9252 and pass down 'warn_if_slow'.
9253 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
9254 gdb_bfd_open_closure to pass it down.
9255 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
9256
9257 2020-05-19 Pedro Alves <palves@redhat.com>
9258
9259 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
9260 * target.c (target_fileio_open_1): Rename to target_fileio_open
9261 and make extern. Use bool.
9262 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
9263 (target_fileio_read_alloc_1): Adjust.
9264 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
9265 (target_fileio_open_warn_if_slow): Delete declaration.
9266
9267 2020-05-19 Pedro Alves <palves@redhat.com>
9268
9269 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
9270 Adjust all callers.
9271
9272 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
9273
9274 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
9275 whether disp is negative.
9276
9277 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
9278
9279 * symfile.h (struct symfile_segment_data)
9280 <~symfile_segment_data>: Remove.
9281 <segment_info>: Change to std::vector.
9282 * symfile.c (default_symfile_segments): Update.
9283 * elfread.c (elf_symfile_segments): Update.
9284
9285 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
9286
9287 * symfile.h (struct symfile_segment_data) <struct segment>: New.
9288 <segments>: New.
9289 <segment_bases, segment_sizes>: Remove.
9290 * symfile.c (default_symfile_segments): Update.
9291 * elfread.c (elf_symfile_segments): Update.
9292 * remote.c (remote_target::get_offsets): Update.
9293 * solib-target.c (solib_target_relocate_section_addresses):
9294 Update.
9295
9296 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
9297
9298 * symfile.h (struct symfile_segment_data): Initialize fields.
9299 <~symfile_segment_data>: Add.
9300 (symfile_segment_data_up): New.
9301 (struct sym_fns) <sym_segments>: Return a
9302 symfile_segment_data_up.
9303 (default_symfile_segments): Return a symfile_segment_data_up.
9304 (free_symfile_segment_data): Remove.
9305 (get_symfile_segment_data): Return a symfile_segment_data_up.
9306 * symfile.c (default_symfile_segments): Likewise.
9307 (get_symfile_segment_data): Likewise.
9308 (free_symfile_segment_data): Remove.
9309 (symfile_find_segment_sections): Update.
9310 * elfread.c (elf_symfile_segments): Return a
9311 symfile_segment_data_up.
9312 * remote.c (remote_target::get_offsets): Update.
9313 * solib-target.c (solib_target_relocate_section_addresses):
9314 Update.
9315 * symfile-debug.c (debug_sym_segments): Return a
9316 symfile_segment_data_up.
9317
9318 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9319
9320 PR build/25981
9321 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
9322 Hardcode register numbers.
9323
9324 PR build/25981
9325 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
9326 procfs_find_LDT_entry): Remove.
9327 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
9328 procfs_find_LDT_entry): Remove.
9329 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
9330 Remove.
9331
9332 2020-05-17 Pedro Alves <palves@redhat.com>
9333 Andrew Burgess <andrew.burgess@embecosm.com>
9334 Keno Fischer <keno@juliacomputing.com>
9335
9336 PR gdb/25741
9337 * breakpoint.c (build_target_condition_list): Update comments.
9338 (build_target_command_list): Update comments and skip matching
9339 locations.
9340 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
9341 a separate function. Simplify "set breakpoint auto-hw off"
9342 handling.
9343 (insert_breakpoints): Update comment.
9344 (tracepoint_locations_match): New parameter. For breakpoints,
9345 compare location types too, if the caller wants to.
9346 (handle_automatic_hardware_breakpoints): New functions.
9347 (bp_location_is_less_than): Also sort by location type and
9348 hardware breakpoint length.
9349 (update_global_location_list): Handle "set breakpoint auto-hw on"
9350 here.
9351 (update_breakpoint_locations): Ask breakpoint_locations_match to
9352 ignore location types.
9353
9354 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
9355
9356 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
9357 type::name instead.
9358
9359 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
9360
9361 * gdbtypes.h (struct type) <name, set_name>: New methods.
9362 (TYPE_CODE): Use type::name. Change all call sites used to set
9363 the name to use type::set_name instead.
9364
9365 2020-05-16 Tom Tromey <tom@tromey.com>
9366
9367 * top.c (quit_force): Update.
9368 * infrun.c (handle_no_resumed): Update.
9369 * top.h (all_uis): New function.
9370 (ALL_UIS): Remove.
9371
9372 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
9373
9374 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
9375
9376 2020-05-16 Pedro Alves <palves@redhat.com>
9377
9378 * ia64-linux-nat.c
9379 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
9380 Declare method.
9381 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
9382
9383 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
9384
9385 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
9386 (sparc64_adi_info): Likewise.
9387
9388 2020-05-15 Tom Tromey <tom@tromey.com>
9389
9390 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
9391 block_objfile.
9392 (lookup_objfile_from_block): Remove.
9393 (lookup_symbol_in_block, lookup_symbol_in_static_block)
9394 (lookup_global_symbol): Use block_objfile.
9395 * symtab.h (lookup_objfile_from_block): Don't declare.
9396 * printcmd.c (clear_dangling_display_expressions): Use
9397 block_objfile.
9398 * parse.c (operator_check_standard): Use block_objfile.
9399
9400 2020-05-15 Tom Tromey <tom@tromey.com>
9401
9402 * language.c (language_alloc_type_symbol): Set
9403 SYMBOL_SECTION.
9404 * symtab.c (initialize_objfile_symbol): Remove.
9405 (allocate_symbol): Remove.
9406 (allocate_template_symbol): Remove.
9407 * dwarf2/read.c (fixup_go_packaging): Use "new".
9408 (new_symbol): Use "new".
9409 (read_variable): Don't call initialize_objfile_symbol. Use
9410 "new".
9411 (read_func_scope): Use "new".
9412 * xcoffread.c (process_xcoff_symbol): Don't call
9413 initialize_objfile_symbol.
9414 (SYMBOL_DUP): Remove.
9415 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
9416 "new".
9417 * symtab.h (allocate_symbol, initialize_objfile_symbol)
9418 (allocate_template_symbol): Don't declare.
9419 (struct symbol): Add copy constructor. Change defaults.
9420 * jit.c (finalize_symtab): Use "new".
9421 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
9422 Use "new".
9423 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
9424 (common_block_end): Use "new".
9425 * mdebugread.c (parse_symbol): Use "new".
9426 (new_symbol): Likewise.
9427
9428 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9429
9430 * NEWS: Mention changes to help and apropos.
9431
9432 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9433
9434 * command.h (enum command_class): Improve comments, document
9435 that class_alias is for user-defined aliases, give the class
9436 name for each class, remove unused class_xdb.
9437 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
9438 * breakpoint.c (_initialize_breakpoint): Replace class_alias
9439 by a precise class.
9440 * infcmd.c (_initialize_infcmd): Likewise.
9441 * reverse.c (_initialize_reverse): Likewise.
9442 * stack.c (_initialize_stack): Likewise.
9443 * symfile.c (_initialize_symfile): Likewise.
9444 * tracepoint.c (_initialize_tracepoint): Likewise.
9445
9446 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9447
9448 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
9449 when their aliased command is traversed.
9450 (help_cmd): Add fput_command_names_styled call to
9451 output command name and aliases when command has an alias.
9452
9453 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9454
9455 * cli/cli-decode.h (help_cmd_list): Remove declaration.
9456 * cli/cli-decode.c (help_cmd_list): Declare as static,
9457 remove prefix argument, use bool for recurse arg, rework to show the aliases of
9458 a command together with the command.
9459 (fput_command_name_styled, fput_command_names_styled): New functions.
9460 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
9461 fput_command_name_styled.
9462 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
9463 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
9464
9465 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9466
9467 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
9468 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
9469 * command.h (cmd_show_list): Likewise.
9470 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
9471 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
9472
9473 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9474
9475 * unittests/command-def-selftests.c (traverse_command_structure):
9476 Verify all commands of a list have the same prefix command and
9477 that only the top cmdlist commands have a null prefix.
9478
9479 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9480
9481 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
9482 as prefix, not one of its aliases.
9483 (set_cmd_prefix): Remove.
9484 (do_add_cmd): Centralize the setting of the prefix of a command, when
9485 command is defined after its full chain of prefix commands.
9486 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
9487 (add_setshow_cmd_full): Likewise.
9488 (update_prefix_field_of_prefixed_commands): New function.
9489 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
9490 update_prefix_field_of_prefixed_commands.
9491 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
9492 addresses of remote_set_cmdlist and remote_show_cmdlist given
9493 as argument, not the address of an argument.
9494 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
9495 * gdb/remote.c (_initialize_remote): Likewise.
9496
9497 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9498
9499 * cli/cli-cmds.c (alias_command): Check for an existing alias
9500 using lookup_cmd_composition, as valid_command_p is too strict
9501 and forbids aliases that are the prefix of an existing alias
9502 or command.
9503 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
9504 command is properly recognised as a valid command.
9505
9506 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9507
9508 * unittests/help-doc-selftests.c: Rename to
9509 unittests/command-def-selftests.c
9510 * unittests/command-def-selftests.c (help_doc_tests): Update some
9511 comments.
9512 (command_structure_tests, traverse_command_structure): New namespace
9513 and function.
9514 (command_structure_invariants_tests): New function.
9515 (_initialize_command_def_selftests) Renamed from
9516 _initialize_help_doc_selftests, register command_structure_invariants
9517 selftest.
9518
9519 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9520
9521 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
9522 an alias of 'show'.
9523
9524 2020-05-15 Joel Brobecker <brobecker@adacore.com>
9525
9526 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
9527 ada_is_fixed_point_type. Update all callers.
9528 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
9529 all callers.
9530 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
9531 Update all callers.
9532 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
9533 print_fixed_point_type. Update all callers.
9534 * ada-valprint.c (ada_value_print_num): Replace call to
9535 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
9536
9537 2020-05-14 Kevin Buettner <kevinb@redhat.com>
9538
9539 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
9540 processors.
9541 (cpu_supports_bts): Add CV_AMD case.
9542
9543 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
9544 Simon Marchi <simon.marchi@efficios.com>
9545
9546 * infrun.c (stop_all_threads): Collect multiple wait events at
9547 each pass.
9548
9549 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
9550
9551 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
9552 type::code instead.
9553
9554 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
9555
9556 * gdbtypes.h (struct type) <code, set_code>: New methods.
9557 (TYPE_CODE): Use type::code. Change all call sites used to set
9558 the code to use type::set_code instead.
9559
9560 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9561 Tom de Vries <tdevries@suse.de>
9562 Pedro Alves <palves@redhat.com>
9563
9564 PR threads/25478
9565 * infrun.c (stop_all_threads): Do NOT ignore
9566 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
9567 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
9568 received.
9569 (handle_no_resumed): Remove code handling a live inferior with no
9570 threads.
9571 * remote.c (has_single_non_exited_thread): New.
9572 (remote_target::update_thread_list): Do not delete a thread if is
9573 the last thread of the process.
9574 * thread.c (thread_select): Call delete_exited_threads instead of
9575 prune_threads.
9576
9577 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9578
9579 * infrun.c (stop_all_threads): Enable/disable thread events of all
9580 targets. Move a debug message denoting the end of the function
9581 into the SCOPED_EXIT block.
9582
9583 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9584
9585 * process-stratum-target.h: Include <set>.
9586 (all_non_exited_process_targets, switch_to_target_no_thread): New
9587 function declarations.
9588 * process-stratum-target.c (all_non_exited_process_targets)
9589 (switch_to_target_no_thread): New function implementations.
9590
9591 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9592
9593 * infrun.c (handle_inferior_event): Extract out a piece of code
9594 into...
9595 (mark_non_executing_threads): ...this new function.
9596
9597 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9598
9599 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
9600 use.
9601
9602 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9603
9604 * regcache.c (regcache_read_pc_protected): New function
9605 implementation that returns 0 if the PC cannot read via
9606 'regcache_read_pc'.
9607 * infrun.c (proceed): Call 'regcache_read_pc_protected'
9608 instead of 'regcache_read_pc'.
9609 (keep_going_pass_signal): Ditto.
9610
9611 2020-05-13 Tom Tromey <tromey@adacore.com>
9612
9613 * ada-lang.c (align_value): Remove.
9614 (ada_template_to_fixed_record_type_1): Use align_up.
9615
9616 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9617
9618 * async-event.c: Update the copyright year.
9619 * async-event.h: Update the copyright year.
9620
9621 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
9622
9623 * objfiles.h (is_addr_in_objfile,
9624 shared_objfile_contains_address_p): Return bool.
9625 * objfile.c (is_addr_in_objfile,
9626 shared_objfile_contains_address_p): Return bool.
9627
9628 2020-05-11 Tom Tromey <tromey@adacore.com>
9629
9630 * cli/cli-cmds.c (info_command): Restore.
9631 (_initialize_cli_cmds): Use add_prefix_command for "info".
9632 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
9633
9634 2020-05-11 Tom Tromey <tromey@adacore.com>
9635
9636 * ada-lang.c (ada_value_primitive_field): Now public.
9637 * ada-lang.h (ada_value_primitive_field): Declare.
9638 * ada-valprint.c (print_field_values): Use
9639 ada_value_primitive_field for wrapper fields.
9640
9641 2020-05-11 Tom de Vries <tdevries@suse.de>
9642
9643 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
9644 MODULE_DOMAIN.
9645
9646 2020-05-11 Tom de Vries <tdevries@suse.de>
9647
9648 PR symtab/25941
9649 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
9650 with length 0, if not gdb-produced.
9651 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
9652
9653 2020-05-09 Tom de Vries <tdevries@suse.de>
9654
9655 PR gdb/25955
9656 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
9657 calculation.
9658
9659 2020-05-09 Tom Tromey <tom@tromey.com>
9660
9661 * top.c (server_command): Now bool.
9662 * top.h (server_command): Now bool.
9663
9664 2020-05-08 Tom Tromey <tromey@adacore.com>
9665
9666 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
9667 already being processed.
9668
9669 2020-05-08 Tom Tromey <tom@tromey.com>
9670
9671 * printcmd.c (struct display) <next>: Remove.
9672 <display>: New constructor.
9673 <exp_string>: Now a std::string.
9674 <enabled_p>: Now a bool.
9675 (display_number): Move definition earlier.
9676 (displays): Rename from display_chain. Now a std::vector.
9677 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
9678 (display_command): Update.
9679 (do_one_display, disable_display)
9680 (enable_disable_display_command, do_enable_disable_display):
9681 Update.
9682 (free_display): Remove.
9683 (clear_displays): Rewrite.
9684 (delete_display): Update.
9685 (map_display_numbers): Use function_view. Remove "data"
9686 parameter. Update.
9687 (do_delete_display): Remove.
9688 (undisplay_command): Update.
9689 (do_one_display, do_displays, disable_display)
9690 (info_display_command): Update.
9691 (do_enable_disable_display): Remove.
9692 (enable_disable_display_command)
9693 (clear_dangling_display_expressions): Update.
9694
9695 2020-05-08 Tom Tromey <tom@tromey.com>
9696
9697 * symtab.c (set_symbol_cache_size)
9698 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
9699 (maintenance_print_symbol_cache_statistics): Update.
9700 * symmisc.c (print_symbol_bcache_statistics)
9701 (print_objfile_statistics, maintenance_print_objfiles)
9702 (maintenance_info_symtabs, maintenance_check_symtabs)
9703 (maintenance_expand_symtabs, maintenance_info_line_tables):
9704 Update.
9705 * symfile-debug.c (set_debug_symfile): Update.
9706 * source.c (forget_cached_source_info): Update.
9707 * python/python.c (gdbpy_progspaces): Update.
9708 * psymtab.c (maintenance_info_psymtabs): Update.
9709 * probe.c (parse_probes): Update.
9710 * linespec.c (iterate_over_all_matching_symtabs)
9711 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
9712 * guile/scm-progspace.c (gdbscm_progspaces): Update.
9713 * exec.c (exec_target::close): Update.
9714 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
9715 * breakpoint.c (print_one_breakpoint_location)
9716 (create_longjmp_master_breakpoint)
9717 (create_std_terminate_master_breakpoint): Update.
9718 * progspace.c (program_spaces): Now a std::vector.
9719 (maybe_new_address_space): Update.
9720 (add_program_space): Remove.
9721 (program_space::program_space): Update.
9722 (remove_program_space): Update.
9723 (number_of_program_spaces): Remove.
9724 (print_program_space, update_address_spaces): Update.
9725 * progspace.h (program_spaces): Change type.
9726 (ALL_PSPACES): Remove.
9727 (number_of_program_spaces): Don't declare.
9728 (struct program_space) <next>: Remove.
9729
9730 2020-05-08 Tom Tromey <tom@tromey.com>
9731
9732 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
9733 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
9734 (enable_break): Update.
9735 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
9736 (frv_fdpic_find_canonical_descriptor): Update.
9737 (frv_fetch_objfile_link_map): Update.
9738 * progspace.c (program_space::free_all_objfiles): Update.
9739 (program_space::solibs): New method.
9740 * progspace.h (struct program_space) <solibs>: New method.
9741 * solist.h (master_so_list): Don't declare.
9742 (ALL_SO_LIBS): Remove.
9743 * solib.h (so_list_head): Remove.
9744 (update_solib_list): Update comment.
9745 * solib.c (master_so_list): Remove.
9746 (solib_used, update_solib_list, solib_add)
9747 (info_sharedlibrary_command, clear_solib)
9748 (reload_shared_libraries_1, remove_user_added_objfile): Update.
9749
9750 2020-05-08 Tom Tromey <tom@tromey.com>
9751
9752 * extension.c (extension_languages): Now a std::array.
9753 (ALL_EXTENSION_LANGUAGES): Remove.
9754 (get_ext_lang_defn, get_ext_lang_of_file)
9755 (eval_ext_lang_from_control_command): Update.
9756 (finish_ext_lang_initialization)
9757 (auto_load_ext_lang_scripts_for_objfile)
9758 (ext_lang_type_printers::ext_lang_type_printers)
9759 (apply_ext_lang_type_printers)
9760 (ext_lang_type_printers::~ext_lang_type_printers)
9761 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
9762 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
9763 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
9764 (get_matching_xmethod_workers, ext_lang_colorize)
9765 (ext_lang_before_prompt): Update.
9766 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
9767
9768 2020-05-08 Tom Tromey <tom@tromey.com>
9769
9770 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
9771 overload.
9772 <swap_string, m_string>: Remove.
9773 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
9774 Update.
9775 * stabsread.c (define_symbol, read_type): Update.
9776 * linespec.c (find_linespec_symbols): Update.
9777 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
9778 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
9779 * dbxread.c (read_dbx_symtab): Update.
9780 * cp-support.h (cp_canonicalize_string_full)
9781 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
9782 Return unique_xmalloc_ptr.
9783 * cp-support.c (inspect_type): Update.
9784 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
9785 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
9786 Likewise.
9787 * c-typeprint.c (print_name_maybe_canonical): Update.
9788 * break-catch-throw.c (check_status_exception_catchpoint):
9789 Update.
9790
9791 2020-05-08 Tom de Vries <tdevries@suse.de>
9792
9793 * infrun.c (follow_fork): Copy current_line and current_symtab to
9794 child thread.
9795
9796 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
9797
9798 * async-event.c (struct async_signal_handler, struct
9799 async_event_handler): Reformat, remove typedef.
9800
9801 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
9802
9803 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
9804 access thistype->main_type->dyn_prop_list directly.
9805
9806 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
9807
9808 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
9809 (remove_dyn_prop): Remove. Update all users to use
9810 type::remove_dyn_prop.
9811 * gdbtypes.c (remove_dyn_prop): Rename to...
9812 (type::remove_dyn_prop): ... this.
9813
9814 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
9815
9816 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
9817 (add_dyn_prop): Remove. Update all users to use
9818 type::add_dyn_prop.
9819 * gdbtypes.c (add_dyn_prop): Rename to...
9820 (type::add_dyn_prop): ... this.
9821
9822 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
9823
9824 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
9825 (get_dyn_prop): Remove. Update all users to use
9826 type::dyn_prop.
9827 * gdbtypes.c (get_dyn_prop): Rename to...
9828 (type::dyn_prop): ... this.
9829
9830 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
9831
9832 * gdbtypes.h (struct main_type) <flag_static>: Remove.
9833
9834 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
9835
9836 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
9837 instruction, skip it if it's there.
9838
9839 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
9840
9841 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
9842
9843 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
9844
9845 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
9846 * gdbtypes.c (recursive_dump_type): Remove use of
9847 TYPE_INCOMPLETE.
9848
9849 2020-05-03 Tom Tromey <tom@tromey.com>
9850
9851 * breakpoint.c (catch_command, tcatch_command): Remove.
9852 (_initialize_breakpoint): Use add_basic_prefix_cmd,
9853 add_show_prefix_cmd.
9854 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
9855 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
9856 Remove.
9857 (add_internal_problem_command): Use add_basic_prefix_cmd,
9858 add_show_prefix_cmd.
9859 * mips-tdep.c (set_mipsfpu_command): Remove.
9860 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
9861 * dwarf2/index-cache.c (set_index_cache_command): Remove.
9862 (_initialize_index_cache): Use add_basic_prefix_cmd.
9863 * memattr.c (dummy_cmd): Remove.
9864 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
9865 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
9866 (_initialize_tui_win): Use add_basic_prefix_cmd,
9867 add_show_prefix_cmd.
9868 * cli/cli-logging.c (set_logging_command): Remove.
9869 (_initialize_cli_logging): Use add_basic_prefix_cmd,
9870 add_show_prefix_cmd.
9871 (show_logging_command): Remove.
9872 * target.c (target_command): Remove.
9873 (add_target): Use add_basic_prefix_cmd.
9874
9875 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
9876
9877 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
9878
9879 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9880
9881 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
9882 info_command.
9883
9884 2020-04-30 Kamil Rytarowski <n54@gmx.com>
9885
9886 * nbsd-nat.c (nbsd_enable_proc_events)
9887 (nbsd_nat_target::post_startup_inferior): Add.
9888 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
9889 (nbsd_nat_target::update_thread_list): Rewrite.
9890 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
9891 "PTRACE_LWP_CREATE".
9892 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
9893
9894 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9895
9896 * stack.c (_initialize_stack): Remove duplicated creation
9897 of "frame" command and "f" alias.
9898
9899 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
9900
9901 PR gdb/18706
9902 * gdbtypes.c (check_typedef): Calculate size of array of
9903 stubbed type.
9904
9905 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
9906
9907 PR gdb/15559
9908 * i386-tdep.c (i386_push_dummy_call): Call
9909 i386_thiscall_push_dummy_call.
9910 (i386_thiscall_push_dummy_call): New function.
9911 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
9912 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
9913 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
9914
9915 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9916
9917 * gdbarch.sh (do_read): Add shellcheck disable directive for
9918 warning SC2162.
9919
9920 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9921
9922 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
9923 "referenced but not assigned" warning.
9924
9925 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9926
9927 * gdbarch.sh: Remove code that sets fallbackdefault.
9928
9929 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9930
9931 * gdbarch.sh: Use shell operators && and || instead of
9932 -a and -o.
9933
9934 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9935
9936 * gdbarch.sh: Use $(...) instead of `...`.
9937
9938 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9939
9940 * gdbarch.sh: Use double quotes around variables.
9941
9942 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9943
9944 * gdbarch.sh: Use %s with printf, instead of variables in the
9945 format string.
9946
9947 2020-04-29 Tom Tromey <tromey@adacore.com>
9948
9949 PR ada/25875:
9950 * dwarf2/read.c (update_enumeration_type_from_children): Compute
9951 type fields here.
9952 (read_enumeration_type): Call
9953 update_enumeration_type_from_children later. Update comments.
9954 (process_enumeration_scope): Don't create type fields.
9955
9956 2020-04-29 Kamil Rytarowski <n54@gmx.com>
9957
9958 * nbsd-tdep.c: Include "xml-syscall.h".
9959 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
9960
9961 2020-04-29 Kamil Rytarowski <n54@gmx.com>
9962
9963 * nbsd-nat.c: Include "sys/wait.h".
9964 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
9965 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
9966 (nbsd_nat_target::remove_exec_catchpoint)
9967 (nbsd_nat_target::set_syscall_catchpoint): Add.
9968 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
9969 (nbsd_nat_target::insert_exec_catchpoint)
9970 (nbsd_nat_target::remove_exec_catchpoint)
9971 (nbsd_nat_target::set_syscall_catchpoint): Add.
9972 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
9973 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
9974 `nbsd_get_syscall_number'.
9975
9976 2020-04-29 Tom Tromey <tom@tromey.com>
9977
9978 * stack.c (print_block_frame_labels): Remove.
9979
9980 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
9981
9982 PR gdb/17320
9983 * ada-valprint.c (val_print_packed_array_elements): Move array
9984 end bracket to new line.
9985 (ada_val_print_string): Remove extra spaces before first array
9986 element.
9987 * c-valprint.c (c_value_print_array): Likewise.
9988 * m2-valprint.c (m2_print_array_contents): Likewise.
9989 (m2_value_print_inner): Likewise.
9990 * p-valprint.c (pascal_value_print_inner): Likewise.
9991 * valprint.c (generic_val_print_array): Likewise.
9992 (value_print_array_elements): Move first array element and array
9993 end bracket to new line.
9994
9995 2020-04-29 Tom de Vries <tdevries@suse.de>
9996
9997 PR symtab/25889
9998 * linespec.c (find_method): Fix ix calculation.
9999
10000 2020-04-28 Kamil Rytarowski <n54@gmx.com>
10001
10002 * syscalls/update-netbsd.sh: New file.
10003 * syscalls/netbsd.xml: Regenerate.
10004 * data-directory/Makefile.in: Register `netbsd.xml' in
10005 `SYSCALLS_FILES'.
10006
10007 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
10008
10009 * syscalls/update-freebsd.sh: Add double quotes.
10010
10011 2020-04-28 Tom Tromey <tom@tromey.com>
10012
10013 * NEWS: Update.
10014 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
10015 (cmdpy_init): Allow class_tui.
10016
10017 2020-04-28 Mark Williams <mark@myosotissp.com>
10018
10019 PR gdb/24480
10020 * dwarf2read.c: Add missing assingments to list_in_scope when
10021 start_symtab was already called.
10022
10023 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
10024
10025 PR gdb/25881
10026 * dwarf2/read.c (offset_map_type): Use
10027 gdb:hash_enum<sect_offset> as hash function.
10028
10029 2020-04-28 Tom de Vries <tdevries@suse.de>
10030
10031 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
10032 with DW_AT_signature.
10033
10034 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
10035
10036 * configure.ac: Remove check for fs_base/gs_base in
10037 user_regs_struct.
10038 * configure: Re-generate.
10039 * config.in: Re-generate.
10040 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
10041 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
10042 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
10043
10044 2020-04-27 Luis Machado <luis.machado@linaro.org>
10045
10046 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
10047 problematic inline frame unwinding situation.
10048 * frame.c (frame_id_computed_p): New function.
10049 * frame.h (frame_id_computed_p): New prototype.
10050
10051 2020-04-26 Tom Tromey <tom@tromey.com>
10052
10053 * command.h (enum command_class) <class_pseudo>: Remove.
10054
10055 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10056
10057 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
10058 and whitespace.
10059
10060 2020-04-25 Kamil Rytarowski <n54@gmx.com>
10061
10062 * inf-ptrace.c (inf_ptrace_target::wait): Remove
10063 `PT_GET_PROCESS_STATE' block.
10064
10065 2020-04-24 Tom Tromey <tom@tromey.com>
10066
10067 * symtab.h (symbol_get_demangled_name): Don't declare.
10068 * symtab.c (symbol_get_demangled_name): Remove.
10069 (general_symbol_info::natural_name)
10070 (general_symbol_info::demangled_name): Update.
10071
10072 2020-04-24 Tom Tromey <tom@tromey.com>
10073
10074 PR rust/25025:
10075 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
10076
10077 2020-04-24 Tom Tromey <tom@tromey.com>
10078
10079 PR symtab/12707:
10080 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
10081 exists.
10082 (new_symbol): Likewise.
10083 * compile/compile-object-load.c (get_out_value_type): Use
10084 symbol_matches_search_name.
10085
10086 2020-04-24 Tom Tromey <tom@tromey.com>
10087
10088 * dwarf2/read.c (add_partial_symbol): Do not call
10089 compute_and_set_names.
10090
10091 2020-04-24 Tom Tromey <tom@tromey.com>
10092
10093 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
10094 overload.
10095
10096 2020-04-24 Tom Tromey <tom@tromey.com>
10097
10098 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
10099 (add_psymbol_to_list): New overload. Make old overload call new
10100 one.
10101 * psympriv.h (add_psymbol_to_list): New overload.
10102
10103 2020-04-24 Tom Tromey <tom@tromey.com>
10104
10105 * dwarf2/read.c (partial_die_info::read) <case
10106 DW_AT_linkage_name>: Use value_as_string.
10107 (dwarf2_string_attr): Use value_as_string.
10108 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
10109 method.
10110 * dwarf2/attribute.c (attribute::value_as_string): New method.
10111
10112 2020-04-24 Tom Tromey <tom@tromey.com>
10113
10114 * symtab.c (general_symbol_info::natural_name)
10115 (general_symbol_info::demangled_name): Check for language_rust.
10116
10117 2020-04-24 Tom Tromey <tom@tromey.com>
10118
10119 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
10120 (dwarf2_physname): ... from here.
10121 (partial_die_info::read): Add Rust "{" hack.
10122
10123 2020-04-24 Tom Tromey <tom@tromey.com>
10124
10125 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
10126 method.
10127 (symbol_set_demangled_name): Don't declare.
10128 * symtab.c (general_symbol_info::set_demangled_name): Rename from
10129 symbol_set_demangled_name.
10130 (general_symbol_info::set_language)
10131 (general_symbol_info::compute_and_set_names): Update.
10132 * minsyms.c (minimal_symbol_reader::install): Update.
10133 * dwarf2/read.c (new_symbol): Update.
10134
10135 2020-04-24 Tom Tromey <tromey@adacore.com>
10136
10137 PR python/23662:
10138 * python/py-type.c (convert_field): Handle
10139 FIELD_LOC_KIND_DWARF_BLOCK.
10140 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
10141 (typy_get_dynamic): Nw function.
10142 (type_object_getset): Add "dynamic".
10143 * NEWS: Add entry.
10144
10145 2020-04-24 Tom Tromey <tromey@adacore.com>
10146
10147 * ada-typeprint.c (print_choices, print_variant_part)
10148 (print_record_field_types_dynamic): New functions.
10149 (print_record_field_types): Use print_record_field_types_dynamic.
10150
10151 2020-04-24 Tom Tromey <tromey@adacore.com>
10152
10153 * dwarf2/read.c (handle_data_member_location): New overload.
10154 (dwarf2_add_field): Use it.
10155 (decode_locdesc): Add "computed" parameter. Update comment.
10156 * gdbtypes.c (is_dynamic_type_internal): Also look for
10157 FIELD_LOC_KIND_DWARF_BLOCK.
10158 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
10159 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
10160 virtual base classes.
10161 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
10162 FIELD_LOC_KIND_DWARF_BLOCK.
10163
10164 2020-04-24 Tom Tromey <tromey@adacore.com>
10165
10166 * dwarf2/read.c (read_structure_type): Handle dynamic length.
10167 * gdbtypes.c (is_dynamic_type_internal): Check
10168 TYPE_HAS_DYNAMIC_LENGTH.
10169 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
10170 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
10171 New macros.
10172 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
10173 constant.
10174
10175 2020-04-24 Tom Tromey <tromey@adacore.com>
10176
10177 * dwarf2/read.c (struct variant_field): Rewrite.
10178 (struct variant_part_builder): New.
10179 (struct nextfield): Remove "variant" field. Add "offset".
10180 (struct field_info): Add "current_variant_part" and
10181 "variant_parts".
10182 (alloc_discriminant_info): Remove.
10183 (alloc_rust_variant): New function.
10184 (quirk_rust_enum): Update.
10185 (dwarf2_add_field): Set "offset" member. Don't handle
10186 DW_TAG_variant_part.
10187 (offset_map_type): New typedef.
10188 (convert_variant_range, create_one_variant)
10189 (create_one_variant_part, create_variant_parts)
10190 (add_variant_property): New functions.
10191 (dwarf2_attach_fields_to_type): Call add_variant_property.
10192 (read_structure_type): Don't handle DW_TAG_variant_part.
10193 (handle_variant_part, handle_variant): New functions.
10194 (handle_struct_member_die): Use them.
10195 (process_structure_scope): Don't handle variant parts.
10196 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
10197 (struct discriminant_info): Remove.
10198 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
10199 (struct main_type) <flag_discriminated_union>: Remove.
10200 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
10201 (rust_enum_variant): Return int. Remove "contents". Rewrite.
10202 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
10203 Update.
10204 * valops.c (value_union_variant): Remove.
10205 * value.h (value_union_variant): Don't declare.
10206
10207 2020-04-24 Tom Tromey <tromey@adacore.com>
10208
10209 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
10210 (ada_value_primitive_packed_val): Update.
10211 * ada-valprint.c (ada_value_print_1): Update.
10212 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
10213 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
10214 just an address. Use evaluate_for_locexpr_baton.
10215 (dwarf2_evaluate_property): Update.
10216 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
10217 array_view.
10218 * findvar.c (default_read_var_value): Update.
10219 * gdbtypes.c (compute_variant_fields_inner)
10220 (resolve_dynamic_type_internal): Update.
10221 (resolve_dynamic_type): Change type of valaddr parameter.
10222 * gdbtypes.h (resolve_dynamic_type): Update.
10223 * valarith.c (value_subscripted_rvalue): Update.
10224 * value.c (value_from_contents_and_address): Update.
10225
10226 2020-04-24 Tom Tromey <tromey@adacore.com>
10227
10228 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
10229 "push_initial_value" parameter.
10230 (dwarf2_evaluate_property): Likewise.
10231 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
10232
10233 2020-04-24 Tom Tromey <tromey@adacore.com>
10234
10235 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
10236 (variant::matches, compute_variant_fields_recurse)
10237 (compute_variant_fields_inner, compute_variant_fields): New
10238 functions.
10239 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
10240 Use resolved_type after type is made.
10241 (operator==): Add new cases.
10242 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
10243 (struct discriminant_range, struct variant, struct variant_part):
10244 New.
10245 (union dynamic_prop_data) <variant_parts, original_type>: New
10246 members.
10247 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
10248 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
10249 constants.
10250 * value.c (unpack_bits_as_long): Now public.
10251 * value.h (unpack_bits_as_long): Declare.
10252
10253 2020-04-24 Tom Tromey <tromey@adacore.com>
10254
10255 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
10256 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
10257
10258 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
10259
10260 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
10261
10262 2020-04-24 Kamil Rytarowski <n54@gmx.com>
10263
10264 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
10265 (remove_fork_catchpoint, post_startup_inferior)
10266 (post_attach): Move...
10267 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
10268 (remove_fork_catchpoint, post_startup_inferior)
10269 (post_attach): ...here.
10270 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
10271 (remove_fork_catchpoint, post_startup_inferior)
10272 (post_attach): Move...
10273 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
10274 (remove_fork_catchpoint, post_startup_inferior)
10275 (post_attach): ...here.
10276
10277 2020-04-24 Tom Tromey <tromey@adacore.com>
10278
10279 * nat/windows-nat.h (struct windows_thread_info)
10280 <pc_adjusted>: New member.
10281 * windows-nat.c (windows_fetch_one_register): Check
10282 pc_adjusted.
10283 (windows_nat_target::get_windows_debug_event)
10284 (windows_nat_target::wait): Set pc_adjusted.
10285
10286 2020-04-24 Tom de Vries <tdevries@suse.de>
10287
10288 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
10289 Run gdb-add-index inside temp dir.
10290
10291 2020-04-23 Tom Tromey <tromey@adacore.com>
10292
10293 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
10294 in loop.
10295
10296 2020-04-23 Luis Machado <luis.machado@linaro.org>
10297
10298 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10299 get_frame_register instead of gdbarch_unwind_pc.
10300
10301 2020-04-23 Tom de Vries <tdevries@suse.de>
10302
10303 * symtab.c (lookup_global_symbol): Prefer def over decl.
10304
10305 2020-04-23 Tom de Vries <tdevries@suse.de>
10306
10307 PR symtab/25807
10308 * block.c (best_symbol, better_symbol): Promote to external.
10309 * block.h (best_symbol, better_symbol): Declare.
10310 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
10311 decl.
10312
10313 2020-04-23 Tom Tromey <tromey@adacore.com>
10314
10315 PR ada/25837:
10316 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
10317 "const char *", not a "const std::string &".
10318 <name_and_matcher::operator==>: Update.
10319 * unittests/lookup_name_info-selftests.c: Change type of
10320 "result".
10321
10322 2020-04-23 Tom Tromey <tom@tromey.com>
10323
10324 * inferior.h (iterate_over_inferiors): Don't declare.
10325 * inferior.c (iterate_over_inferiors): Remove.
10326 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
10327 Remove.
10328 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
10329 use iterate_over_inferiors.
10330 (darwin_resume_inferior_it)
10331 (struct resume_inferior_threads_param)
10332 (darwin_resume_inferior_threads_it): Remove.
10333 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
10334
10335 2020-04-23 Tom de Vries <tdevries@suse.de>
10336
10337 * blockframe.c (find_pc_partial_function): Use
10338 find_pc_sect_compunit_symtab rather than
10339 objfile->sf->qf->find_pc_sect_compunit_symtab.
10340
10341 2020-04-22 Tom de Vries <tdevries@suse.de>
10342
10343 PR symtab/25764
10344 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
10345 in psymtabs.
10346
10347 2020-04-22 Tom de Vries <tdevries@suse.de>
10348
10349 PR symtab/25801
10350 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
10351 symtabs.
10352
10353 2020-04-22 Tom de Vries <tdevries@suse.de>
10354
10355 PR symtab/25700
10356 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
10357 CU if already created.
10358
10359 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10360
10361 * infrun.c (displaced_step_fixup): Switch to the event_thread
10362 before calling displaced_step_restore, not after.
10363
10364 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10365
10366 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
10367 its inferior is not recorded by us.
10368 (record_btrace_target_open): Replace call to
10369 all_non_exited_threads () with call to current_inferior
10370 ()->non_exited_threads ().
10371 (record_btrace_target::stop_recording): Likewise.
10372 (record_btrace_target::close): Likewise.
10373 (record_btrace_target::wait): Likewise.
10374 (record_btrace_target::record_stop_replaying): Likewise.
10375
10376 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10377
10378 * btrace.c (btrace_enable): Throw an error on double enables and
10379 when enabling recording fails.
10380 (btrace_disable): Throw an error if the thread is not recorded.
10381
10382 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10383
10384 * record-btrace.c (record_btrace_target::fetch_registers): Forward
10385 request if we do not have a thread_info.
10386
10387 2020-04-21 Tom de Vries <tdevries@suse.de>
10388
10389 PR gdb/25471
10390 * thread.c
10391 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
10392 exception in get_frame_id.
10393
10394 2020-04-20 Tom Tromey <tromey@adacore.com>
10395
10396 * python/python.c (struct gdbpy_event): Mark move constructor as
10397 noexcept.
10398 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
10399 constructor as noexcept.
10400 * completer.h (struct completion_result): Mark move constructor as
10401 noexcept.
10402 * completer.c (completion_result::completion_result): Use
10403 initialization style. Don't call reset_match_list.
10404
10405 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
10406
10407 * MAINTAINERS (Write After Approval): Add myself.
10408
10409 2020-04-18 Tom Tromey <tom@tromey.com>
10410
10411 * windows-tdep.c (init_w32_command_list)
10412 (w32_prefix_command_valid): Restore.
10413 (_initialize_windows_tdep): Call init_w32_command_list.
10414
10415 2020-04-18 Tom Tromey <tom@tromey.com>
10416
10417 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
10418 * value.c (value_fn_field): Update.
10419 * valops.c (find_function_in_inferior)
10420 (value_allocate_space_in_inferior): Update.
10421 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10422 Update.
10423 * tui/tui-source.c (tui_source_window::set_contents): Update.
10424 * symtab.c (lookup_global_or_static_symbol)
10425 (find_function_start_sal_1, skip_prologue_sal)
10426 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
10427 * symmisc.c (dump_msymbols, dump_symtab_1)
10428 (maintenance_print_one_line_table): Update.
10429 * symfile.c (init_entry_point_info, section_is_mapped)
10430 (list_overlays_command, simple_read_overlay_table)
10431 (simple_overlay_update_1): Update.
10432 * stap-probe.c (handle_stap_probe): Update.
10433 * stabsread.c (dbx_init_float_type, define_symbol)
10434 (read_one_struct_field, read_enum_type, read_range_type): Update.
10435 * source.c (info_line_command): Update.
10436 * python/python.c (gdbpy_source_objfile_script)
10437 (gdbpy_execute_objfile_script): Update.
10438 * python/py-type.c (save_objfile_types): Update.
10439 * python/py-objfile.c (py_free_objfile): Update.
10440 * python/py-inferior.c (python_new_objfile): Update.
10441 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
10442 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
10443 (maintenance_check_psymtabs): Update.
10444 * printcmd.c (info_address_command): Update.
10445 * objfiles.h (struct objfile) <arch>: New method, from
10446 get_objfile_arch.
10447 (get_objfile_arch): Don't declare.
10448 * objfiles.c (get_objfile_arch): Remove.
10449 (filter_overlapping_sections): Update.
10450 * minsyms.c (msymbol_is_function): Update.
10451 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
10452 (output_nondebug_symbol): Update.
10453 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
10454 (mdebug_expand_psymtab): Update.
10455 * machoread.c (macho_add_oso_symfile): Update.
10456 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
10457 Update.
10458 * linux-fork.c (checkpoint_command): Update.
10459 * linespec.c (convert_linespec_to_sals): Update.
10460 * jit.c (finalize_symtab): Update.
10461 * infrun.c (insert_exception_resume_from_probe): Update.
10462 * ia64-tdep.c (ia64_find_unwind_table): Update.
10463 * hppa-tdep.c (internalize_unwinds): Update.
10464 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
10465 Update.
10466 * gcore.c (call_target_sbrk): Update.
10467 * elfread.c (record_minimal_symbol, elf_symtab_read)
10468 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
10469 (elf_gnu_ifunc_resolve_by_got): Update.
10470 * dwarf2/read.c (create_addrmap_from_index)
10471 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10472 (read_debug_names_from_section)
10473 (process_psymtab_comp_unit_reader, add_partial_symbol)
10474 (add_partial_subprogram, process_full_comp_unit)
10475 (read_file_scope, read_func_scope, read_lexical_block_scope)
10476 (read_call_site_scope, dwarf2_ranges_read)
10477 (dwarf2_record_block_ranges, dwarf2_add_field)
10478 (mark_common_block_symbol_computed, read_tag_pointer_type)
10479 (read_tag_string_type, dwarf2_init_float_type)
10480 (dwarf2_init_complex_target_type, read_base_type)
10481 (partial_die_info::read, partial_die_info::read)
10482 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
10483 (dwarf2_fetch_die_loc_sect_off): Update.
10484 * dwarf2/loc.c (dwarf2_find_location_expression)
10485 (class dwarf_evaluate_loc_desc, rw_pieced_value)
10486 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
10487 (dwarf2_loc_desc_get_symbol_read_needs)
10488 (locexpr_describe_location_piece, locexpr_describe_location_1)
10489 (loclist_describe_location): Update.
10490 * dwarf2/index-write.c (write_debug_names): Update.
10491 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
10492 * dtrace-probe.c (dtrace_process_dof): Update.
10493 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
10494 (process_one_symbol): Update.
10495 * ctfread.c (ctf_init_float_type, read_base_type): Update.
10496 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
10497 (coff_read_enum_type): Update.
10498 * cli/cli-cmds.c (edit_command, list_command): Update.
10499 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
10500 * breakpoint.c (create_overlay_event_breakpoint)
10501 (create_longjmp_master_breakpoint)
10502 (create_std_terminate_master_breakpoint)
10503 (create_exception_master_breakpoint, get_sal_arch): Update.
10504 * block.c (block_gdbarch): Update.
10505 * annotate.c (annotate_source_line): Update.
10506
10507 2020-04-17 Tom Tromey <tromey@adacore.com>
10508
10509 * auto-load.c (show_auto_load_cmd): Remove.
10510 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
10511 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
10512 (maintenance_print_arc_command): Remove.
10513 * tui/tui-win.c (tui_command): Remove.
10514 (tui_get_cmd_list): Use add_basic_prefix_cmd.
10515 * tui/tui-layout.c (tui_layout_command): Remove.
10516 (_initialize_tui_layout): Use add_basic_prefix_cmd.
10517 * python/python.c (user_set_python, user_show_python): Remove.
10518 (_initialize_python): Use add_basic_prefix_cmd,
10519 add_show_prefix_cmd.
10520 * guile/guile.c (set_guile_command, show_guile_command): Remove.
10521 (install_gdb_commands): Use add_basic_prefix_cmd,
10522 add_show_prefix_cmd.
10523 (info_guile_command): Remove.
10524 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
10525 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
10526 add_show_prefix_cmd.
10527 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
10528 Remove do_set and do_show parameters.
10529 * cli/cli-style.c (set_style, show_style): Remove.
10530 (_initialize_cli_style): Use add_basic_prefix_cmd,
10531 add_show_prefix_cmd.
10532 (cli_style_option::add_setshow_commands): Remove do_set and
10533 do_show parameters.
10534 (cli_style_option::add_setshow_commands): Use
10535 add_basic_prefix_cmd, add_show_prefix_cmd.
10536 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
10537 (set_style_name): Remove.
10538 * cli/cli-dump.c (dump_command, append_command): Remove.
10539 (srec_dump_command, ihex_dump_command, verilog_dump_command)
10540 (tekhex_dump_command, binary_dump_command)
10541 (binary_append_command): Remove.
10542 (_initialize_cli_dump): Use add_basic_prefix_cmd.
10543 * windows-tdep.c (w32_prefix_command_valid): Remove global.
10544 (init_w32_command_list): Remove; move into ...
10545 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
10546 * valprint.c (set_print, show_print, set_print_raw)
10547 (show_print_raw): Remove.
10548 (_initialize_valprint): Use add_basic_prefix_cmd,
10549 add_show_prefix_cmd.
10550 * typeprint.c (set_print_type, show_print_type): Remove.
10551 (_initialize_typeprint): Use add_basic_prefix_cmd,
10552 add_show_prefix_cmd.
10553 * record.c (set_record_command, show_record_command): Remove.
10554 (_initialize_record): Use add_basic_prefix_cmd,
10555 add_show_prefix_cmd.
10556 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
10557 add_show_prefix_cmd.
10558 (info_command, show_command, set_debug, show_debug): Remove.
10559 * top.h (set_history, show_history): Don't declare.
10560 * top.c (set_history, show_history): Remove.
10561 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
10562 (unset_tdesc_cmd): Remove.
10563 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
10564 add_show_prefix_cmd.
10565 * symtab.c (info_module_command): Remove.
10566 (_initialize_symtab): Use add_basic_prefix_cmd.
10567 * symfile.c (overlay_command): Remove.
10568 (_initialize_symfile): Use add_basic_prefix_cmd.
10569 * sparc64-tdep.c (info_adi_command): Remove.
10570 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
10571 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
10572 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
10573 add_show_prefix_cmd.
10574 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
10575 (_initialize_serial): Use add_basic_prefix_cmd,
10576 add_show_prefix_cmd.
10577 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
10578 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
10579 add_show_prefix_cmd.
10580 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
10581 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
10582 add_show_prefix_cmd.
10583 * riscv-tdep.c (show_riscv_command, set_riscv_command)
10584 (show_debug_riscv_command, set_debug_riscv_command): Remove.
10585 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
10586 add_show_prefix_cmd.
10587 * remote.c (remote_command, set_remote_cmd): Remove.
10588 (_initialize_remote): Use add_basic_prefix_cmd.
10589 * record-full.c (set_record_full_command)
10590 (show_record_full_command): Remove.
10591 (_initialize_record_full): Use add_basic_prefix_cmd,
10592 add_show_prefix_cmd.
10593 * record-btrace.c (cmd_set_record_btrace)
10594 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
10595 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
10596 (cmd_show_record_btrace_pt): Remove.
10597 (_initialize_record_btrace): Use add_basic_prefix_cmd,
10598 add_show_prefix_cmd.
10599 * ravenscar-thread.c (set_ravenscar_command)
10600 (show_ravenscar_command): Remove.
10601 (_initialize_ravenscar): Use add_basic_prefix_cmd,
10602 add_show_prefix_cmd.
10603 * mips-tdep.c (show_mips_command, set_mips_command)
10604 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
10605 add_show_prefix_cmd.
10606 * maint.c (maintenance_command, maintenance_info_command)
10607 (maintenance_check_command, maintenance_print_command)
10608 (maintenance_set_cmd, maintenance_show_cmd): Remove.
10609 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
10610 add_show_prefix_cmd.
10611 (show_per_command_cmd): Remove.
10612 * maint-test-settings.c (maintenance_set_test_settings_cmd):
10613 Remove.
10614 (maintenance_show_test_settings_cmd): Remove.
10615 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
10616 add_show_prefix_cmd.
10617 * maint-test-options.c (maintenance_test_options_command):
10618 Remove.
10619 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
10620 * macrocmd.c (macro_command): Remove
10621 (_initialize_macrocmd): Use add_basic_prefix_cmd.
10622 * language.c (set_check, show_check): Remove.
10623 (_initialize_language): Use add_basic_prefix_cmd,
10624 add_show_prefix_cmd.
10625 * infcmd.c (unset_command): Remove.
10626 (_initialize_infcmd): Use add_basic_prefix_cmd.
10627 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
10628 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
10629 add_show_prefix_cmd.
10630 * go32-nat.c (go32_info_dos_command): Remove.
10631 (_initialize_go32_nat): Use add_basic_prefix_cmd.
10632 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
10633 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
10634 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
10635 (_initialize_frame): Use add_basic_prefix_cmd,
10636 add_show_prefix_cmd.
10637 * dcache.c (set_dcache_command, show_dcache_command): Remove.
10638 (_initialize_dcache): Use add_basic_prefix_cmd,
10639 add_show_prefix_cmd.
10640 * cp-support.c (maint_cplus_command): Remove.
10641 (_initialize_cp_support): Use add_basic_prefix_cmd.
10642 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
10643 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
10644 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
10645 add_basic_prefix_cmd, add_show_prefix_cmd.
10646 * breakpoint.c (save_command): Remove.
10647 (_initialize_breakpoint): Use add_basic_prefix_cmd.
10648 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
10649 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
10650 add_show_prefix_cmd.
10651 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
10652 (set_ada_command, show_ada_command): Remove.
10653 (_initialize_ada_language): Use add_basic_prefix_cmd,
10654 add_show_prefix_cmd.
10655 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
10656
10657 2020-04-16 Kamil Rytarowski <n54@gmx.com>
10658
10659 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
10660 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
10661
10662 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
10663
10664 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
10665 warning messages.
10666
10667 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
10668
10669 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
10670 import table is not at beginning of .idata section.
10671
10672 2020-04-16 Pedro Alves <palves@redhat.com>
10673
10674 * inferior.c (delete_inferior): Use delete operator directly
10675 instead of delete_program_space.
10676 * progspace.c (add_program_space): New, factored out from
10677 program_space::program_space.
10678 (remove_program_space): New, factored out from
10679 delete_program_space.
10680 (program_space::program_space): Remove intro comment. Rewrite.
10681 (program_space::~program_space): Remove intro comment. Call
10682 remove_program_space.
10683 (delete_program_space): Delete.
10684 * progspace.h (program_space::program_space): Make explicit. Move
10685 intro comment here, adjusted.
10686 (program_space::~program_space): Move intro comment here,
10687 adjusted.
10688 (delete_program_space): Remove.
10689
10690 2020-04-16 Tom Tromey <tromey@adacore.com>
10691
10692 * windows-nat.c (windows_nat::handle_access_violation): New
10693 function.
10694 * nat/windows-nat.h (handle_access_violation): Declare.
10695 * nat/windows-nat.c (handle_exception): Move Cygwin code to
10696 windows-nat.c. Call handle_access_violation.
10697
10698 2020-04-16 Tom de Vries <tdevries@suse.de>
10699
10700 PR symtab/25791
10701 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
10702 CUs without psymtab.
10703
10704 2020-04-16 Kevin Buettner <kevinb@redhat.com>
10705
10706 * python/python.c (do_start_initialization): Don't call
10707 PyEval_InitThreads for Python 3.9 and beyond.
10708
10709 2020-04-15 Kamil Rytarowski <n54@gmx.com>
10710
10711 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
10712 thread functions.
10713 (obsd_nat_target::wait): Likewise.
10714
10715 2020-04-15 Tom Tromey <tromey@adacore.com>
10716
10717 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
10718 (DEBUG_EXCEPT): Use debug_printf.
10719
10720 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
10721
10722 * completer.c (class completion_tracker::completion_hash_entry)
10723 <hash_name>: New member function.
10724 (completion_tracker::discard_completions): New callback to hash a
10725 completion_hash_entry, pass this to htab_create_alloc.
10726
10727 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
10728
10729 * windows-nat.c (windows_make_so): Warn rather than stopping with
10730 an error if realpath() fails.
10731
10732 2020-04-14 Kamil Rytarowski <n54@gmx.com>
10733
10734 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
10735 (nbsd_nat_target::info_proc): Add do_status.
10736
10737 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
10738 Tom de Vries <tdevries@suse.de>
10739
10740 PR symtab/25718
10741 * psympriv.h (struct partial_symtab::read_symtab)
10742 (struct partial_symtab::expand_psymtab)
10743 (struct partial_symtab::read_dependencies): Update comments.
10744 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
10745 read_symtab for includer.
10746 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
10747 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
10748 (struct dwarf2_include_psymtab::m_readin): Remove.
10749 (struct dwarf2_include_psymtab::includer): New member function.
10750 (dwarf2_psymtab::expand_psymtab): Assert !readin.
10751
10752 2020-04-14 Tom de Vries <tdevries@suse.de>
10753
10754 PR symtab/25720
10755 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
10756 with NULL symbol_matcher and lookup_name.
10757 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
10758 and lookup_name.
10759 * dwarf2/read.c (dw2_expand_symtabs_matching)
10760 (dw2_debug_names_expand_symtabs_matching): Same.
10761 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
10762 Make lookup_name a pointer. Update comment.
10763 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
10764 lookup_name being a pointer.
10765 * symfile.c (expand_symtabs_matching): Same.
10766 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
10767 * linespec.c (iterate_over_all_matching_symtabs): Same.
10768
10769 2020-04-13 Tom Tromey <tom@tromey.com>
10770
10771 * run-on-main-thread.c: Update include.
10772 * unittests/main-thread-selftests.c: Update include.
10773 * tui/tui-win.c: Update include.
10774 * tui/tui-io.c: Update include.
10775 * tui/tui-interp.c: Update include.
10776 * tui/tui-hooks.c: Update include.
10777 * top.h: Update include.
10778 * top.c: Update include.
10779 * ser-base.c: Update include.
10780 * remote.c: Update include.
10781 * remote-notif.c: Update include.
10782 * remote-fileio.c: Update include.
10783 * record-full.c: Update include.
10784 * record-btrace.c: Update include.
10785 * python/python.c: Update include.
10786 * posix-hdep.c: Update include.
10787 * mingw-hdep.c: Update include.
10788 * mi/mi-main.c: Update include.
10789 * mi/mi-interp.c: Update include.
10790 * main.c: Update include.
10791 * linux-nat.c: Update include.
10792 * interps.c: Update include.
10793 * infrun.c: Update include.
10794 * inf-loop.c: Update include.
10795 * event-top.c: Update include.
10796 * event-loop.c: Move to ../gdbsupport/.
10797 * event-loop.h: Move to ../gdbsupport/.
10798 * async-event.h: Update include.
10799 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
10800
10801 2020-04-13 Tom Tromey <tom@tromey.com>
10802
10803 * tui/tui-win.c: Include async-event.h.
10804 * remote.c: Include async-event.h.
10805 * remote-notif.c: Include async-event.h.
10806 * record-full.c: Include async-event.h.
10807 * record-btrace.c: Include async-event.h.
10808 * infrun.c: Include async-event.h.
10809 * event-top.c: Include async-event.h.
10810 * event-loop.h: Move some declarations to async-event.h.
10811 * event-loop.c: Don't include ser-event.h or top.h. Move some
10812 code to async-event.c.
10813 * async-event.h: New file.
10814 * async-event.c: New file.
10815 * Makefile.in (COMMON_SFILES): Add async-event.c.
10816 (HFILES_NO_SRCDIR): Add async-event.h.
10817
10818 2020-04-13 Tom Tromey <tom@tromey.com>
10819
10820 * utils.c (flush_streams): New function.
10821 * event-loop.c (gdb_wait_for_event): Call flush_streams.
10822
10823 2020-04-13 Tom Tromey <tom@tromey.com>
10824
10825 * event-loop.c (handle_file_event): Use warning, not
10826 printf_unfiltered.
10827
10828 2020-04-13 Tom Tromey <tom@tromey.com>
10829
10830 * event-loop.c: Include <chrono>.
10831
10832 2020-04-13 Tom Tromey <tom@tromey.com>
10833
10834 * gdb_select.h: Move to ../gdbsupport/.
10835 * event-loop.c: Update include path.
10836 * top.c: Update include path.
10837 * ser-base.c: Update include path.
10838 * ui-file.c: Update include path.
10839 * ser-tcp.c: Update include path.
10840 * guile/scm-ports.c: Update include path.
10841 * posix-hdep.c: Update include path.
10842 * ser-unix.c: Update include path.
10843 * gdb_usleep.c: Update include path.
10844 * mingw-hdep.c: Update include path.
10845 * inflow.c: Update include path.
10846 * infrun.c: Update include path.
10847 * event-top.c: Update include path.
10848
10849 2020-04-13 Tom Tromey <tom@tromey.com>
10850
10851 * configure: Rebuild.
10852 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
10853
10854 2020-04-13 Tom Tromey <tom@tromey.com>
10855
10856 * event-loop.h (start_event_loop): Don't declare.
10857 * event-loop.c (start_event_loop): Move...
10858 * main.c (start_event_loop): ...here. Now static.
10859
10860 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
10861
10862 * MAINTAINERS: Update my email address.
10863
10864 2020-04-12 Kamil Rytarowski <n54@gmx.com>
10865
10866 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
10867 IP_ALL.
10868
10869 2020-04-12 Kamil Rytarowski <n54@gmx.com>
10870
10871 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
10872 (nbsd_nat_target::info_proc): Add do_cmdline.
10873
10874 2020-04-12 Kamil Rytarowski <n54@gmx.com>
10875
10876 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
10877 (nbsd_nat_target::info_proc): Add do_cwd.
10878
10879 2020-04-12 Kamil Rytarowski <n54@gmx.com>
10880
10881 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
10882
10883 2020-04-11 Kamil Rytarowski <n54@gmx.com>
10884
10885 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
10886 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
10887 (nbsd_nat_target::info_proc): New functions.
10888 * nbsd-nat.c (kinfo_get_vmmap): New function.
10889 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
10890 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
10891 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
10892 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
10893 functions.
10894 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
10895 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
10896 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
10897 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
10898 (KINFO_VME_FLAG_GROWS_DOWN): New.
10899
10900 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
10901
10902 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
10903 bit shift.
10904
10905 2020-04-10 Tom Tromey <tromey@adacore.com>
10906
10907 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
10908
10909 2020-04-10 Tom Tromey <tromey@adacore.com>
10910
10911 * symtab.c (get_symbol_address, get_msymbol_address): Skip
10912 separate debug files.
10913
10914 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
10915
10916 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
10917 Move to...
10918 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
10919 ... here.
10920 * windows-nat.c (windows_nat_target::get_windows_debug_event):
10921 Check for STATUS_WX86_BREAKPOINT.
10922 (windows_nat_target::wait): Same.
10923
10924 2020-04-10 Tom de Vries <tdevries@suse.de>
10925
10926 PR cli/25808
10927 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
10928
10929 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10930
10931 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
10932 (Write After Approval): Remove Tom de Vries.
10933
10934 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
10935
10936 revert partially:
10937 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10938
10939 * buildsym.c (record_line): Fix undefined behavior and preserve
10940 lines at eof.
10941
10942 2020-04-09 Kamil Rytarowski <n54@gmx.com>
10943
10944 * auxv.h (svr4_auxv_parse): New.
10945 * auxv.c (default_auxv_parse): Split into default_auxv_parse
10946 and generic_auxv_parse.
10947 (svr4_auxv_parse): Add.
10948 * obsd-tdep.c: Include "auxv.h".
10949 (obsd_auxv_parse): Remove.
10950 (obsd_init_abi): Remove comment.
10951 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
10952 from `obsd_auxv_parse' to `svr4_auxv_parse'.
10953 * nbsd-tdep.c: Include "auxv.h".
10954 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
10955
10956 2020-04-08 Tom Tromey <tromey@adacore.com>
10957
10958 * nat/windows-nat.h (last_wait_event): Don't declare.
10959 (wait_for_debug_event): Update comment.
10960 * nat/windows-nat.c (last_wait_event): Now static.
10961
10962 2020-04-08 Tom Tromey <tromey@adacore.com>
10963
10964 * windows-nat.c (wait_for_debug_event): Move to
10965 nat/windows-nat.c.
10966 * nat/windows-nat.h (wait_for_debug_event): Declare.
10967 * nat/windows-nat.c (wait_for_debug_event): Move from
10968 windows-nat.c. No longer static.
10969
10970 2020-04-08 Tom Tromey <tromey@adacore.com>
10971
10972 * windows-nat.c (get_windows_debug_event): Use
10973 fetch_pending_stop.
10974 * nat/windows-nat.h (fetch_pending_stop): Declare.
10975 * nat/windows-nat.c (fetch_pending_stop): New function.
10976
10977 2020-04-08 Tom Tromey <tromey@adacore.com>
10978
10979 * windows-nat.c (windows_continue): Use matching_pending_stop and
10980 continue_last_debug_event.
10981 * nat/windows-nat.h (matching_pending_stop)
10982 (continue_last_debug_event): Declare.
10983 * nat/windows-nat.c (DEBUG_EVENTS): New define.
10984 (matching_pending_stop, continue_last_debug_event): New
10985 functions.
10986
10987 2020-04-08 Tom Tromey <tromey@adacore.com>
10988
10989 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
10990 (handle_exception_result): Move to nat/windows-nat.h.
10991 (DEBUG_EXCEPTION_SIMPLE): Remove.
10992 (windows_nat::handle_ms_vc_exception): New function.
10993 (handle_exception): Move to nat/windows-nat.c.
10994 (get_windows_debug_event): Update.
10995 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
10996 nat/windows-nat.c.
10997 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
10998 (handle_exception_result): Move from windows-nat.c.
10999 (handle_exception): Declare.
11000 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
11001 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
11002 windows-nat.c.
11003
11004 2020-04-08 Tom Tromey <tromey@adacore.com>
11005
11006 * windows-nat.c (exception_count, event_count): Remove.
11007 (handle_exception, get_windows_debug_event)
11008 (do_initial_windows_stuff): Update.
11009
11010 2020-04-08 Tom Tromey <tromey@adacore.com>
11011
11012 * windows-nat.c (windows_nat::handle_load_dll)
11013 (windows_nat::handle_unload_dll): Rename. No longer static.
11014 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
11015 Declare.
11016
11017 2020-04-08 Tom Tromey <tromey@adacore.com>
11018
11019 * complaints.h (stop_whining): Declare at top-level.
11020 (complaint): Don't declare stop_whining.
11021
11022 2020-04-08 Tom Tromey <tromey@adacore.com>
11023
11024 * windows-nat.c (windows_nat::handle_output_debug_string):
11025 Rename. No longer static.
11026 * nat/windows-nat.h (handle_output_debug_string): Declare.
11027
11028 2020-04-08 Tom Tromey <tromey@adacore.com>
11029
11030 * windows-nat.c (current_process_handle, current_process_id)
11031 (main_thread_id, last_sig, current_event, last_wait_event)
11032 (current_windows_thread, desired_stop_thread_id, pending_stops)
11033 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
11034 (display_selectors, fake_create_process)
11035 (get_windows_debug_event): Update.
11036 * nat/windows-nat.h (current_process_handle, current_process_id)
11037 (main_thread_id, last_sig, current_event, last_wait_event)
11038 (current_windows_thread, desired_stop_thread_id, pending_stops)
11039 (struct pending_stop, siginfo_er): Move from windows-nat.c.
11040 * nat/windows-nat.c (current_process_handle, current_process_id)
11041 (main_thread_id, last_sig, current_event, last_wait_event)
11042 (current_windows_thread, desired_stop_thread_id, pending_stops)
11043 (siginfo_er): New globals. Move from windows-nat.c.
11044
11045 2020-04-08 Tom Tromey <tromey@adacore.com>
11046
11047 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
11048 (handle_load_dll): Update.
11049 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
11050
11051 2020-04-08 Tom Tromey <tromey@adacore.com>
11052
11053 * windows-nat.c (enum thread_disposition_type): Move to
11054 nat/windows-nat.h.
11055 (windows_nat::thread_rec): Rename from thread_rec. No longer
11056 static.
11057 (windows_add_thread, windows_nat_target::fetch_registers)
11058 (windows_nat_target::store_registers, handle_exception)
11059 (windows_nat_target::resume, get_windows_debug_event)
11060 (windows_nat_target::get_tib_address)
11061 (windows_nat_target::thread_name)
11062 (windows_nat_target::thread_alive): Update.
11063 * nat/windows-nat.h (enum thread_disposition_type): Move from
11064 windows-nat.c.
11065 (thread_rec): Declare.
11066
11067 2020-04-08 Tom Tromey <tromey@adacore.com>
11068
11069 * windows-nat.c: Add "using namespace".
11070 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
11071 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
11072
11073 2020-04-08 Tom Tromey <tromey@adacore.com>
11074
11075 * nat/windows-nat.h (struct windows_thread_info): Declare
11076 destructor.
11077 * nat/windows-nat.c (~windows_thread_info): New.
11078
11079 2020-04-08 Tom Tromey <tromey@adacore.com>
11080
11081 PR gdb/22992
11082 * windows-nat.c (current_event): Update comment.
11083 (last_wait_event, desired_stop_thread_id): New globals.
11084 (struct pending_stop): New.
11085 (pending_stops): New global.
11086 (windows_nat_target) <stopped_by_sw_breakpoint>
11087 <supports_stopped_by_sw_breakpoint>: New methods.
11088 (windows_fetch_one_register): Add assertions. Adjust PC.
11089 (windows_continue): Handle pending stops. Suspend other threads
11090 when stepping. Use last_wait_event
11091 (wait_for_debug_event): New function.
11092 (get_windows_debug_event): Use wait_for_debug_event. Handle
11093 pending stops. Queue spurious stops.
11094 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
11095 (windows_nat_target::kill): Use wait_for_debug_event.
11096 * nat/windows-nat.h (struct windows_thread_info)
11097 <stopped_at_software_breakpoint>: New field.
11098 * nat/windows-nat.c (windows_thread_info::resume): Clear
11099 stopped_at_software_breakpoint.
11100
11101 2020-04-08 Tom Tromey <tromey@adacore.com>
11102
11103 * windows-nat.c (enum thread_disposition_type): New.
11104 (thread_rec): Replace "get_context" parameter with "disposition";
11105 change type.
11106 (windows_add_thread, windows_nat_target::fetch_registers)
11107 (windows_nat_target::store_registers, handle_exception)
11108 (windows_nat_target::resume, get_windows_debug_event)
11109 (windows_nat_target::get_tib_address)
11110 (windows_nat_target::thread_name)
11111 (windows_nat_target::thread_alive): Update.
11112
11113 2020-04-08 Tom Tromey <tromey@adacore.com>
11114
11115 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
11116 (windows_continue): Use windows_continue::resume.
11117 * nat/windows-nat.h (struct windows_thread_info) <suspend,
11118 resume>: Declare new methods.
11119 * nat/windows-nat.c: New file.
11120 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
11121
11122 2020-04-08 Tom Tromey <tromey@adacore.com>
11123
11124 * windows-nat.c (windows_add_thread, windows_delete_thread)
11125 (windows_nat_target::fetch_registers)
11126 (windows_nat_target::store_registers, fake_create_process)
11127 (windows_nat_target::resume, windows_nat_target::resume)
11128 (get_windows_debug_event, windows_nat_target::wait)
11129 (windows_nat_target::pid_to_str)
11130 (windows_nat_target::get_tib_address)
11131 (windows_nat_target::get_ada_task_ptid)
11132 (windows_nat_target::thread_name)
11133 (windows_nat_target::thread_alive): Use lwp, not tid.
11134
11135 2020-04-08 Tom Tromey <tromey@adacore.com>
11136
11137 * windows-nat.c (handle_exception)
11138 (windows_nat_target::thread_name): Update.
11139 * nat/windows-nat.h (windows_thread_info): Remove destructor.
11140 <name>: Now unique_xmalloc_ptr.
11141
11142 2020-04-08 Tom Tromey <tromey@adacore.com>
11143
11144 * windows-nat.c (thread_rec)
11145 (windows_nat_target::fetch_registers): Update.
11146 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
11147 Update comment.
11148 <debug_registers_changed, reload_context>: Now bool.
11149
11150 2020-04-08 Tom Tromey <tromey@adacore.com>
11151
11152 * windows-nat.c (windows_add_thread): Use new.
11153 (windows_init_thread_list, windows_delete_thread): Use delete.
11154 (get_windows_debug_event): Update.
11155 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
11156 destructor, and initializers.
11157
11158 2020-04-08 Tom Tromey <tromey@adacore.com>
11159
11160 * windows-nat.c (struct windows_thread_info): Remove.
11161 * nat/windows-nat.h: New file.
11162
11163 2020-04-08 Tom Tromey <tromey@adacore.com>
11164
11165 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
11166 (thread_rec, windows_add_thread, windows_delete_thread)
11167 (windows_continue): Update.
11168
11169 2020-04-08 Tom Tromey <tromey@adacore.com>
11170
11171 * windows-nat.c (struct windows_thread_info): Remove typedef.
11172 (thread_head): Remove.
11173 (thread_list): New global.
11174 (thread_rec, windows_add_thread, windows_init_thread_list)
11175 (windows_delete_thread, windows_continue): Update.
11176
11177 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11178
11179 * windows-tdep.h (windows_init_abi): Add comment.
11180 (cygwin_init_abi): New declaration.
11181 * windows-tdep.c: Split signal enumeration in two, one for
11182 Windows and one for Cygwin.
11183 (windows_gdb_signal_to_target): Only deal with signal of the
11184 Windows OS ABI.
11185 (cygwin_gdb_signal_to_target): New function.
11186 (windows_init_abi): Rename to windows_init_abi_common, don't set
11187 gdb_signal_to_target gdbarch method. Add new new function with
11188 this name.
11189 (cygwin_init_abi): New function.
11190 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
11191 comment. Don't call windows_init_abi.
11192 (amd64_windows_init_abi): Add comment, call windows_init_abi.
11193 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
11194 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
11195 i386_windows_init_abi_common, don't call windows_init_abi. Add
11196 a new function of this name.
11197 (i386_cygwin_init_abi): New function.
11198 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
11199 OS ABI Cygwin.
11200
11201 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11202
11203 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
11204 parameter.c.
11205 (dwarf2_read_gdb_index): Update.
11206
11207 2020-04-07 Kamil Rytarowski <n54@gmx.com>
11208
11209 * nbsd-tdep.c: Include "objfiles.h".
11210 (nbsd_skip_solib_resolver): New.
11211 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
11212
11213 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11214
11215 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
11216 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
11217 with DW_LLE_base_addressx are being emitted in DWARFv5.
11218 Add the newly added kind DW_LOC_OFFSET_PAIR also.
11219 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
11220 unsigned integer.
11221
11222 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11223
11224 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
11225 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
11226 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
11227 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
11228 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
11229 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
11230 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
11231
11232
11233 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11234
11235 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
11236 (read_loclist_index): New function definition.
11237 (lookup_loclist_base): New function definition.
11238 (read_loclist_header): New function definition.
11239 (dwarf2_cu): Add loclist_base and loclist_header field.
11240 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
11241 (read_full_die_1): Read the value of DW_AT_loclists_base.
11242 (read_attribute_reprocess): Handle DW_FORM_loclistx.
11243 (read_attribute_value): Handle DW_FORM_loclistx.
11244 (skip_one_die): Handle DW_FORM_loclistx.
11245 (loclist_header): New structure declaration.
11246 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
11247
11248 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11249
11250 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
11251 constructor. Remove `addr` parameter from other constructor and
11252 add `per_cu` parameter.
11253 * dwarf2/read.c (create_partial_symtab): Update.
11254
11255 2020-04-07 Tom de Vries <tdevries@suse.de>
11256
11257 PR symtab/25796
11258 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
11259 (partial_die_info::fixup): Inherit has_const_value.
11260
11261 2020-04-07 Tom de Vries <tdevries@suse.de>
11262
11263 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
11264 symbols without address.
11265
11266 2020-04-06 Kamil Rytarowski <n54@gmx.com>
11267
11268 * nbsd-nat.h (struct thread_info): Add forward declaration.
11269 (nbsd_nat_target::thread_alive): Add.
11270 (nbsd_nat_target::thread_name): Likewise.
11271 (nbsd_nat_target::update_thread_list): Likewise.
11272 (update_thread_list::post_attach): Likewise.
11273 (post_attach::pid_to_str): Likewise.
11274 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
11275 (nbsd_thread_lister): Add.
11276 (nbsd_nat_target::thread_alive): Likewise.
11277 (nbsd_nat_target::thread_name): Likewise.
11278 (nbsd_add_threads): Likewise.
11279 (update_thread_list::post_attach): Likewise.
11280 (nbsd_nat_target::update_thread_list): Likewise.
11281 (post_attach::pid_to_str): Likewise.
11282
11283 2020-04-06 Tom Tromey <tromey@adacore.com>
11284
11285 * ada-valprint.c (print_variant_part): Extract the variant field.
11286 (print_field_values): Use the field as the outer value when
11287 recursing.
11288
11289 2020-04-06 Tom Tromey <tromey@adacore.com>
11290
11291 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
11292 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
11293 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
11294 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
11295 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
11296
11297 2020-04-06 Tom Tromey <tromey@adacore.com>
11298
11299 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
11300 TYPE_CODE_ERROR.
11301
11302 2020-04-06 Kamil Rytarowski <n54@gmx.com>
11303
11304 * nbsd-tdep.c: Include "gdbarch.h".
11305 Define enum with NetBSD signal numbers.
11306 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
11307 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
11308 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
11309 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
11310 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
11311 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
11312 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
11313 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11314 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
11315 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
11316 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
11317 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
11318
11319 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
11320
11321 PR gdb/25325
11322 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
11323
11324 2020-04-03 Tom Tromey <tromey@adacore.com>
11325
11326 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
11327 Read constant block.
11328
11329 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11330
11331 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
11332 (gdb_bfd_get_full_section_contents): New declaration.
11333 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
11334 * windows-tdep.c (is_linked_with_cygwin_dll): Use
11335 gdb_bfd_get_full_section_contents.
11336
11337 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11338
11339 * exec.c (build_section_table): Replace internal_error with
11340 gdb_assert.
11341 (section_table_xfer_memory_partial): Likewise.
11342 * mdebugread.c (parse_partial_symbols): Likewise.
11343 * psymtab.c (lookup_partial_symbol): Likewise.
11344 * utils.c (wrap_here): Likewise.
11345
11346 2020-04-02 Tom Tromey <tromey@adacore.com>
11347
11348 * f-lang.c (build_fortran_types): Use arch_type to initialize
11349 builtin_complex_s32 in the TYPE_CODE_ERROR case.
11350
11351 2020-04-02 Tom Tromey <tromey@adacore.com>
11352
11353 * dwarf2/read.c (partial_die_info::read): Do not create a vector
11354 of attributes.
11355
11356 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
11357 Bernd Edlinger <bernd.edlinger@hotmail.de>
11358 Tom Tromey <tromey@adacore.com>
11359
11360 * buildsym.c (buildsym_compunit::record_line): Remove
11361 deduplication code.
11362
11363 2020-04-02 Tom de Vries <tdevries@suse.de>
11364
11365 PR ada/24671
11366 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
11367
11368 2020-04-02 Tom de Vries <tdevries@suse.de>
11369
11370 * dwarf2/read.c (dwarf2_gdb_index_functions,
11371 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
11372 NULL.
11373 * psymtab.c (psym_lookup_global_symbol_language): New function.
11374 (psym_functions): Init psym_lookup_global_symbol_language with
11375 psym_lookup_global_symbol_language.
11376 * symfile-debug.c (debug_sym_quick_functions): Init
11377 lookup_global_symbol_language with NULL.
11378 * symfile.c (set_initial_language): Remove fixme comment.
11379 * symfile.h (struct quick_symbol_functions): Add
11380 lookup_global_symbol_language.
11381 * symtab.c (find_quick_global_symbol_language): New function.
11382 (find_main_name): Use find_quick_global_symbol_language.
11383
11384 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
11385
11386 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
11387
11388 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11389
11390 * buildsym.c (record_line): Fix undefined behavior and preserve
11391 lines at eof.
11392
11393 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11394
11395 * buildsym.c (record_line): Fix the resizing condition.
11396
11397 2020-04-01 Tom Tromey <tom@tromey.com>
11398
11399 * value.h (value_literal_complex): Add comment.
11400 * valops.c (value_literal_complex): Refer to value.h.
11401
11402 2020-04-01 Tom Tromey <tom@tromey.com>
11403
11404 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
11405 (scalar_type): New rule, from typebase.
11406 (typebase): Use scalar_type. Recognize complex types.
11407 (field_name): Handle FLOAT_KEYWORD.
11408 (ident_tokens): Add _Complex and __complex__.
11409
11410 2020-04-01 Tom Tromey <tom@tromey.com>
11411
11412 PR exp/25299:
11413 * valarith.c (promotion_type, complex_binop): New functions.
11414 (scalar_binop): Handle complex numbers. Use promotion_type.
11415 (value_pos, value_neg, value_complement): Handle complex numbers.
11416
11417 2020-04-01 Tom Tromey <tom@tromey.com>
11418
11419 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
11420 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
11421 (parse_number): Handle complex numbers.
11422
11423 2020-04-01 Tom Tromey <tom@tromey.com>
11424
11425 * c-valprint.c (c_decorations): Change complex suffix to "i".
11426
11427 2020-04-01 Tom Tromey <tom@tromey.com>
11428
11429 * valprint.c (generic_value_print_complex): Use accessors.
11430 * value.h (value_real_part, value_imaginary_part): Declare.
11431 * valops.c (value_real_part, value_imaginary_part): New
11432 functions.
11433 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
11434
11435 2020-04-01 Tom Tromey <tom@tromey.com>
11436
11437 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
11438 (read_range_type): Update.
11439 * mdebugread.c (basic_type): Update.
11440 * go-lang.c (build_go_types): Use init_complex_type.
11441 * gdbtypes.h (struct main_type) <complex_type>: New member.
11442 (init_complex_type): Update.
11443 (arch_complex_type): Don't declare.
11444 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
11445 Make name if none given. Use alloc_type_copy. Look for cached
11446 complex type.
11447 (arch_complex_type): Remove.
11448 (gdbtypes_post_init): Use init_complex_type.
11449 * f-lang.c (build_fortran_types): Use init_complex_type.
11450 * dwarf2/read.c (read_base_type): Update.
11451 * d-lang.c (build_d_types): Use init_complex_type.
11452 * ctfread.c (read_base_type): Update.
11453
11454 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11455
11456 * infrun.c (stop_all_threads): Update assertion, plus when
11457 stopping threads, take into account that we might be trying
11458 to stop an all-stop target.
11459 (stop_waiting): Call 'stop_all_threads' if there exists a
11460 non-stop target.
11461
11462 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11463
11464 * target.h (exists_non_stop_target): New function declaration.
11465 * target.c (exists_non_stop_target): New function.
11466
11467 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
11468
11469 PR gdb/24789
11470 * eval.c (is_integral_or_integral_reference): New function.
11471 (evaluate_subexp_standard): Allow integer references in
11472 pointer arithmetic.
11473
11474 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11475
11476 * remote.c (remote_target::remote_parse_stop_reply): Remove the
11477 check for no ptid in the stop reply when the target is non-stop.
11478
11479 2020-04-01 Tom Tromey <tromey@adacore.com>
11480
11481 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
11482 "name" parameter to rvalue reference. Initialize m_name_holder.
11483 <lookup_name_info>: New overloads.
11484 <name>: Return gdb::string_view.
11485 <c_str>: New method.
11486 <make_ignore_params>: Update.
11487 <search_name_hash>: Update.
11488 <language_lookup_name>: Return const char *.
11489 <m_name>: Change type.
11490 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
11491 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
11492 (lookup_name_info::match_any): Update.
11493 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
11494 Update.
11495 * minsyms.c (linkage_name_str): Update.
11496 * language.c (default_symbol_name_matcher): Update.
11497 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
11498 Update.
11499 * ada-lang.c (ada_fold_name): Change parameter to string_view.
11500 (ada_lookup_name_info::ada_lookup_name_info): Update.
11501 (literal_symbol_name_matcher): Update.
11502
11503 2020-04-01 Tom Tromey <tromey@adacore.com>
11504
11505 * psymtab.c (psymtab_search_name): Remove function.
11506 (psym_lookup_symbol): Create search name and lookup name here.
11507 (lookup_partial_symbol): Remove "name" parameter; add
11508 lookup_name.
11509 (psym_expand_symtabs_for_function): Update.
11510
11511 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
11512
11513 PR tui/25597:
11514 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
11515
11516 2020-03-31 Tom Tromey <tromey@adacore.com>
11517
11518 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
11519 memcpy.
11520
11521 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
11522
11523 * features/riscv/32bit-csr.xml: Regenerated.
11524 * features/riscv/64bit-csr.xml: Regenerated.
11525
11526 2020-03-30 Tom Tromey <tromey@adacore.com>
11527
11528 * ada-valprint.c (print_variant_part): Update.
11529 * ada-lang.h (ada_which_variant_applies): Update.
11530 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
11531 outer_valaddr parameters; replace with "outer" value parameter.
11532 (to_fixed_variant_branch_type): Update.
11533
11534 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11535
11536 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
11537 <list>. Remove inclusion of observable.h.
11538 (PPC_DEBUG_CURRENT_VERSION): Move up define.
11539 (struct arch_lwp_info): New struct.
11540 (class ppc_linux_dreg_interface): New class.
11541 (struct ppc_linux_process_info): New struct.
11542 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
11543 <low_new_clone, low_forget_process, low_prepare_to_resume>
11544 <copy_thread_dreg_state, mark_thread_stale>
11545 <mark_debug_registers_changed, register_hw_breakpoint>
11546 <clear_hw_breakpoint, register_wp, clear_wp>
11547 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
11548 <num_memory_accesses, get_trigger_type>
11549 <create_watchpoint_request, hwdebug_point_cmp>
11550 <init_arch_lwp_info, get_arch_lwp_info>
11551 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
11552 methods.
11553 <struct ptid_hash>: New inner struct.
11554 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
11555 members.
11556 (saved_dabr_value, hwdebug_info, max_slots_number)
11557 (struct hw_break_tuple, struct thread_points, ppc_threads)
11558 (have_ptrace_hwdebug_interface)
11559 (hwdebug_find_thread_points_by_tid)
11560 (hwdebug_insert_point, hwdebug_remove_point): Remove.
11561 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
11562 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
11563 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
11564 use m_dreg_interface.
11565 (hwdebug_point_cmp): Change to...
11566 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
11567 reference arguments instead of pointers.
11568 (ppc_linux_nat_target::ranged_break_num_registers): Use
11569 m_dreg_interface.
11570 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
11571 m_dreg_interface. Call register_hw_breakpoint.
11572 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
11573 m_dreg_interface. Call clear_hw_breakpoint.
11574 (get_trigger_type): Change to...
11575 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
11576 comment.
11577 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
11578 use m_dreg_interface. Call register_hw_breakpoint.
11579 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
11580 use m_dreg_interface. Call clear_hw_breakpoint.
11581 (can_use_watchpoint_cond_accel): Change to...
11582 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
11583 method. Update comment, use m_dreg_interface and
11584 m_process_info.
11585 (calculate_dvc): Change to...
11586 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
11587 m_dreg_interface.
11588 (num_memory_accesses): Change to...
11589 (ppc_linux_nat_target::num_memory_accesses): ...this method.
11590 (check_condition): Change to...
11591 (ppc_linux_nat_target::check_condition): ...this method.
11592 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
11593 comment, use m_dreg_interface.
11594 (create_watchpoint_request): Change to...
11595 (ppc_linux_nat_target::create_watchpoint_request): ...this
11596 method. Use m_dreg_interface.
11597 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
11598 m_dreg_interface. Call register_hw_breakpoint or register_wp.
11599 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
11600 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
11601 (ppc_linux_nat_target::low_forget_process)
11602 (ppc_linux_nat_target::low_new_fork)
11603 (ppc_linux_nat_target::low_new_clone)
11604 (ppc_linux_nat_target::low_delete_thread)
11605 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
11606 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
11607 only call mark_thread_stale.
11608 (ppc_linux_thread_exit): Remove.
11609 (ppc_linux_nat_target::stopped_data_address): Change to...
11610 (ppc_linux_nat_target::low_stopped_data_address): This. Add
11611 comment, use m_dreg_interface and m_thread_hw_breakpoints.
11612 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
11613 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
11614 comment. Call low_stopped_data_address.
11615 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
11616 m_dreg_interface.
11617 (ppc_linux_nat_target::masked_watch_num_registers): Use
11618 m_dreg_interface.
11619 (ppc_linux_nat_target::copy_thread_dreg_state)
11620 (ppc_linux_nat_target::mark_thread_stale)
11621 (ppc_linux_nat_target::mark_debug_registers_changed)
11622 (ppc_linux_nat_target::register_hw_breakpoint)
11623 (ppc_linux_nat_target::clear_hw_breakpoint)
11624 (ppc_linux_nat_target::register_wp)
11625 (ppc_linux_nat_target::clear_wp)
11626 (ppc_linux_nat_target::init_arch_lwp_info)
11627 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
11628 (_initialize_ppc_linux_nat): Remove observer callback.
11629
11630 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11631
11632 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
11633 (ppc_linux_nat_target::auxv_parse)
11634 (ppc_linux_nat_target::read_description)
11635 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
11636 Move up.
11637
11638 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11639
11640 * linux-nat.h (low_new_clone): New method.
11641 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
11642
11643 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
11644
11645 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
11646 (dbx_expand_psymtab): ... this.
11647 (start_psymtab): Update.
11648 * mdebugread.c (psymtab_to_symtab_1): Rename to...
11649 (mdebug_expand_psymtab): ... this.
11650 (parse_partial_symbols): Update.
11651 (new_psymtab): Update.
11652 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
11653 (xcoff_expand_psymtab): ... this.
11654 (xcoff_start_psymtab): Update.
11655
11656 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
11657
11658 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
11659 <expand_dependencies>: ... this.
11660 * psymtab.c (partial_symtab::read_dependencies): Rename to...
11661 (partial_symtab::expand_dependencies): ... this.
11662 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
11663 Update.
11664 (dwarf2_psymtab::expand_psymtab): Update.
11665 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
11666 * mdebugread.c (psymtab_to_symtab_1): Update.
11667 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
11668
11669 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
11670
11671 * psympriv.h (discard_psymtab): Remove.
11672 * dbxread.c (dbx_end_psymtab): Update.
11673 * xcoffread.c (xcoff_end_psymtab): Update.
11674
11675 2020-03-28 Tom Tromey <tom@tromey.com>
11676
11677 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
11678 comment.
11679
11680 2020-03-28 Tom Tromey <tom@tromey.com>
11681
11682 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
11683
11684 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
11685
11686 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
11687
11688 2020-03-26 John Baldwin <jhb@FreeBSD.org>
11689
11690 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
11691
11692 2020-03-26 Tom Tromey <tom@tromey.com>
11693
11694 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
11695 (mark_common_block_symbol_computed, read_tag_string_type)
11696 (attr_to_dynamic_prop, read_subrange_type): Update.
11697 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
11698 to be methods on struct attribute.
11699 (skip_one_die, process_imported_unit_die, read_namespace_alias)
11700 (read_call_site_scope, partial_die_info::read)
11701 (partial_die_info::read, lookup_die_type, follow_die_ref):
11702 Update.
11703 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
11704 from dwarf2_get_ref_die_offset.
11705 (attribute::constant_value): New method, from
11706 dwarf2_get_attr_constant_value.
11707 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
11708 Declare method.
11709 <constant_value>: New method.
11710
11711 2020-03-26 Tom Tromey <tom@tromey.com>
11712
11713 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
11714 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
11715 (dwarf_type_encoding_name): Move to stringify.c.
11716 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
11717 * dwarf2/stringify.c: New file.
11718 * dwarf2/stringify.h: New file.
11719
11720 2020-03-26 Tom Tromey <tom@tromey.com>
11721
11722 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
11723 Rewrite.
11724
11725 2020-03-26 Tom Tromey <tom@tromey.com>
11726
11727 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
11728 methods.
11729 * dwarf2/read.c (lookup_addr_base): Move to die.h.
11730 (lookup_ranges_base): Likewise.
11731 (read_cutu_die_from_dwo, read_full_die_1): Update.
11732
11733 2020-03-26 Tom Tromey <tom@tromey.com>
11734
11735 * dwarf2/read.c (read_import_statement, read_file_scope)
11736 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
11737 (read_lexical_block_scope, read_call_site_scope)
11738 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
11739 (handle_struct_member_die, process_structure_scope)
11740 (update_enumeration_type_from_children)
11741 (process_enumeration_scope, read_array_type, read_common_block)
11742 (read_namespace, read_module, read_subroutine_type): Update.
11743 (sibling_die): Remove.
11744
11745 2020-03-26 Tom Tromey <tom@tromey.com>
11746
11747 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
11748 (build_type_psymtabs_reader, read_structure_type)
11749 (read_enumeration_type, read_full_die_1): Update.
11750 (dwarf2_attr_no_follow): Move to die.h.
11751 * dwarf2/die.h (struct die_info) <attr>: New method.
11752
11753 2020-03-26 Tom Tromey <tom@tromey.com>
11754
11755 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
11756 <base_address>: Now an optional.
11757 (dwarf2_find_base_address, dwarf2_rnglists_process)
11758 (dwarf2_ranges_process, fill_in_loclist_baton)
11759 (dwarf2_symbol_mark_computed): Update.
11760
11761 2020-03-26 Tom Tromey <tom@tromey.com>
11762
11763 * dwarf2/read.c (struct die_info): Move to die.h.
11764 * dwarf2/die.h: New file.
11765
11766 2020-03-26 Tom Tromey <tom@tromey.com>
11767
11768 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
11769 * dwarf2/read.c
11770 (dwarf2_statement_list_fits_in_line_number_section_complaint):
11771 Move to line-header.c.
11772 (read_checked_initial_length_and_offset, read_formatted_entries):
11773 Likewise.
11774 (dwarf_decode_line_header): Split into two.
11775 * dwarf2/line-header.c
11776 (dwarf2_statement_list_fits_in_line_number_section_complaint):
11777 Move from read.c.
11778 (read_checked_initial_length_and_offset, read_formatted_entries):
11779 Likewise.
11780 (dwarf_decode_line_header): New function, split from read.c.
11781
11782 2020-03-26 Tom Tromey <tom@tromey.com>
11783
11784 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
11785 Declare method.
11786 * dwarf2/read.c (read_attribute_value): Update.
11787 (dwarf2_per_objfile::read_line_string): Rename from
11788 read_indirect_line_string.
11789 (read_formatted_entries): Update.
11790
11791 2020-03-26 Tom Tromey <tom@tromey.com>
11792
11793 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
11794 variable.
11795
11796 2020-03-26 Tom Tromey <tom@tromey.com>
11797
11798 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
11799 const.
11800 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
11801 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
11802 parameter const.
11803
11804 2020-03-26 Tom Tromey <tom@tromey.com>
11805
11806 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
11807 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
11808 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
11809 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
11810
11811 2020-03-26 Tom Tromey <tom@tromey.com>
11812
11813 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
11814 file_names_size, file_full_name, file_file_name>: Use const.
11815 <file_name_at, file_names>: Add const overload.
11816 * dwarf2/line-header.c (line_header::file_file_name)
11817 (line_header::file_full_name): Update.
11818
11819 2020-03-26 Tom Tromey <tom@tromey.com>
11820
11821 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
11822 (macro_start_file, consume_improper_spaces)
11823 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
11824 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
11825 (dwarf_decode_macros): Move to macro.c.
11826 * dwarf2/macro.c: New file.
11827 * dwarf2/macro.h: New file.
11828 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
11829
11830 2020-03-26 Tom Tromey <tom@tromey.com>
11831
11832 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
11833 method.
11834 * dwarf2/section.c: New method. From
11835 read_indirect_string_at_offset_from.
11836 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
11837 (read_indirect_string_at_offset_from): Move to section.c.
11838 (read_indirect_string_at_offset): Rewrite.
11839 (read_indirect_line_string_at_offset): Remove.
11840 (read_indirect_string, read_indirect_line_string)
11841 (dwarf_decode_macro_bytes): Update.
11842
11843 2020-03-26 Tom Tromey <tom@tromey.com>
11844
11845 * dwarf2/section.h (struct dwarf2_section_info)
11846 <overload_complaint>: Declare.
11847 (dwarf2_section_buffer_overflow_complaint): Don't declare.
11848 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
11849 Rename from dwarf2_section_buffer_overflow_complaint.
11850 * dwarf2/read.c (skip_one_die, partial_die_info::read)
11851 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
11852
11853 2020-03-26 Tom Tromey <tom@tromey.com>
11854
11855 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
11856 Declare.
11857 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
11858 Move from read.c.
11859 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
11860 to section.c.
11861
11862 2020-03-26 Tom Tromey <tom@tromey.com>
11863
11864 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
11865
11866 2020-03-26 Tom Tromey <tom@tromey.com>
11867
11868 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
11869 "builder".
11870 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
11871 parameter.
11872 (dwarf_decode_macros): Update.
11873
11874 2020-03-26 Tom Tromey <tom@tromey.com>
11875
11876 * dwarf2/read.c (read_attribute_value): Update.
11877 (read_indirect_string_from_dwz): Move to dwz.c; change into
11878 method.
11879 (dwarf_decode_macro_bytes): Update.
11880 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
11881 * dwarf2/dwz.c: New file.
11882 * Makefile.in (COMMON_SFILES): Add dwz.c.
11883
11884 2020-03-26 Tom Tromey <tom@tromey.com>
11885
11886 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
11887 * dwarf2/read.c: Add include.
11888 * dwarf2/index-write.c: Add include.
11889 * dwarf2/index-cache.c: Add include.
11890 * dwarf2/dwz.h: New file.
11891
11892 2020-03-25 Tom Tromey <tom@tromey.com>
11893
11894 * compile/compile-object-load.c (get_out_value_type): Mention
11895 correct symbol name in error message.
11896
11897 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
11898
11899 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
11900
11901 2020-03-25 Tom de Vries <tdevries@suse.de>
11902
11903 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
11904 * symmisc.c (dump_symtab_1): Print user and includes fields.
11905 (maintenance_info_symtabs): Same.
11906
11907 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
11908
11909 PR gdb/25534
11910 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
11911 (riscv_regcache_cooked_write): New function.
11912 (riscv_push_dummy_call): Use new function.
11913 (riscv_return_value): Likewise.
11914
11915 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
11916
11917 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
11918 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
11919 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
11920 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
11921 * infrun.c (follow_fork): Likewise.
11922 (follow_fork_inferior): Likewise.
11923 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
11924 * linux-nat.h (class linux_nat_target): Likewise.
11925 * remote.c (class remote_target) <follow_fork>: Likewise.
11926 (remote_target::follow_fork): Likewise.
11927 * target-delegates.c: Re-generate.
11928 * target.c (default_follow_fork): Likewise.
11929 (target_follow_fork): Likewise.
11930 * target.h (struct target_ops) <follow_fork>: Likewise.
11931 (target_follow_fork): Likewise.
11932
11933 2020-03-24 Tom de Vries <tdevries@suse.de>
11934
11935 * psymtab.c (maintenance_info_psymtabs): Print user field.
11936
11937 2020-03-20 Tom Tromey <tromey@adacore.com>
11938
11939 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
11940 const.
11941 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
11942 const.
11943
11944 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
11945
11946 * ptrace.m4: Don't check for ptrace declaration.
11947 * config.in: Re-generate.
11948 * configure: Re-generate.
11949 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
11950 not defined.
11951
11952 2020-03-20 Kamil Rytarowski <n54@gmx.com>
11953
11954 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
11955 `PTRACE_TYPE_RET'.
11956 * i386-bsd-nat.c (gdb_ptrace): Likewise.
11957 * sparc-nat.c (gdb_ptrace): Likewise.
11958 * x86-bsd-nat.c (gdb_ptrace): Likewise.
11959
11960 2020-03-20 Tom Tromey <tromey@adacore.com>
11961
11962 * c-exp.y (lex_one_token): Fix assert.
11963
11964 2020-03-20 Tom Tromey <tromey@adacore.com>
11965
11966 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
11967 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
11968 strncpy call.
11969
11970 2020-03-20 Tom Tromey <tromey@adacore.com>
11971
11972 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
11973
11974 2020-03-20 Tom Tromey <tromey@adacore.com>
11975
11976 * ada-valprint.c (print_variant_part): Remove parameters; switch
11977 to value-based API.
11978 (print_field_values): Likewise.
11979 (ada_val_print_struct_union): Likewise.
11980 (ada_value_print_1): Update.
11981
11982 2020-03-20 Kamil Rytarowski <n54@gmx.com>
11983
11984 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
11985 nbsd_nat_target instead of inf_ptrace_target.
11986 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11987 nbsd_nat_target.
11988
11989 2020-03-20 Kamil Rytarowski <n54@gmx.com>
11990
11991 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
11992 it to the ptrace call.
11993 * (store_registers): Likewise.
11994
11995 2020-03-20 Kamil Rytarowski <n54@gmx.com>
11996
11997 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
11998 it to the ptrace call.
11999 * (store_registers): Likewise.
12000
12001 2020-03-19 Luis Machado <luis.machado@linaro.org>
12002
12003 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
12004 valid, fetch vg value from ptrace.
12005
12006 2020-03-19 Kamil Rytarowski <n54@gmx.com>
12007 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
12008 * inf-ptrace.c: Likewise.
12009 * (gdb_ptrace): Add.
12010 * (inf_ptrace_target::resume): Update.
12011 * (inf_ptrace_target::xfer_partial): Likewise.
12012 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
12013 * (inf_ptrace_peek_poke): Update.
12014
12015 2020-03-19 Kamil Rytarowski <n54@gmx.com>
12016
12017 * x86-bsd-nat.c (gdb_ptrace): New.
12018 * (x86bsd_dr_set): Add new argument `ptid'.
12019 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
12020 x86bsd_dr_set_addr): Update.
12021
12022 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12023
12024 * remote.c (remote_target::process_stop_reply): Handle events for
12025 all threads differently.
12026
12027 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12028
12029 * completer.c (completion_tracker::remove_completion): Define new
12030 function.
12031 * completer.h (completion_tracker::remove_completion): Declare new
12032 function.
12033 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
12034 when adding a C++ function symbol.
12035
12036 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12037
12038 * completer.c (completion_tracker::completion_hash_entry): Define
12039 new class.
12040 (advance_to_filename_complete_word_point): Call
12041 recompute_lowest_common_denominator.
12042 (completion_tracker::completion_tracker): Call discard_completions
12043 to setup the hash table.
12044 (completion_tracker::discard_completions): Allow for being called
12045 from the constructor, pass new equal function, and element deleter
12046 when constructing the hash table. Initialise new class member
12047 variables.
12048 (completion_tracker::maybe_add_completion): Remove use of
12049 m_entries_vec, and store more information into m_entries_hash.
12050 (completion_tracker::recompute_lcd_visitor): New function, most
12051 content taken from...
12052 (completion_tracker::recompute_lowest_common_denominator):
12053 ...here, this now just visits each item in the hash calling the
12054 above visitor.
12055 (completion_tracker::build_completion_result): Remove use of
12056 m_entries_vec, call recompute_lowest_common_denominator.
12057 * completer.h (completion_tracker::have_completions): Remove use
12058 of m_entries_vec.
12059 (completion_tracker::completion_hash_entry): Declare new class.
12060 (completion_tracker::recompute_lowest_common_denominator): Change
12061 function signature.
12062 (completion_tracker::recompute_lcd_visitor): Declare new function.
12063 (completion_tracker::m_entries_vec): Delete.
12064 (completion_tracker::m_entries_hash): Initialize to NULL.
12065 (completion_tracker::m_lowest_common_denominator_valid): New
12066 member variable.
12067 (completion_tracker::m_lowest_common_denominator_max_length): New
12068 member variable.
12069
12070 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12071
12072 * regformats/regdef.h: Put reg in gdb namespace.
12073
12074 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12075
12076 * i386-bsd-nat.c (gdb_ptrace): New.
12077 * (i386bsd_fetch_inferior_registers,
12078 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12079 * (i386bsd_fetch_inferior_registers,
12080 i386bsd_store_inferior_registers) Use gdb_ptrace.
12081
12082 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12083
12084 * amd64-bsd-nat.c (gdb_ptrace): New.
12085 * (amd64bsd_fetch_inferior_registers,
12086 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12087 * (amd64bsd_fetch_inferior_registers,
12088 amd64bsd_store_inferior_registers) Use gdb_ptrace.
12089
12090 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12091
12092 * user-regs.c (user_reg::read): Rename to...
12093 (user_reg::xread): ...this.
12094 * (append_user_reg): Rename argument `read' to `xread'.
12095 * (user_reg_add_builtin): Likewise.
12096 * (user_reg_add): Likewise.
12097 * (value_of_user_reg): Likewise.
12098
12099 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12100
12101 * sparc-nat.c (gdb_ptrace): New.
12102 * sparc-nat.c (sparc_fetch_inferior_registers)
12103 (sparc_store_inferior_registers) Remove obsolete comment.
12104 * sparc-nat.c (sparc_fetch_inferior_registers)
12105 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
12106 * sparc-nat.c (sparc_fetch_inferior_registers)
12107 (sparc_store_inferior_registers) Use gdb_ptrace.
12108
12109 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12110
12111 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
12112 it to the ptrace call.
12113 * sh-nbsd-nat.c (store_registers): Likewise.
12114
12115 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12116
12117 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
12118 nbsd_nat_target instead of inf_ptrace_target.
12119 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12120 nbsd_nat_target.
12121
12122 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12123
12124 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
12125
12126 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12127
12128 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
12129 <sys/sysctl.h>.
12130 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
12131
12132 2020-03-17 Tom de Vries <tdevries@suse.de>
12133
12134 PR gdb/23710
12135 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
12136 fields.
12137 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
12138 fields.
12139 (process_imported_unit_die): Skip import of c++ CUs.
12140
12141 2020-03-16 Tom Tromey <tom@tromey.com>
12142
12143 * p-valprint.c (pascal_object_print_value): Initialize
12144 base_value.
12145
12146 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
12147 Shahab Vahedi <shahab@synopsys.com>
12148
12149 * Makefile.in: Add arch/arc.o
12150 * configure.tgt: Likewise.
12151 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
12152 (_initialize_arc_tdep): Don't initialize old target descriptions.
12153 (arc_read_description): New function to cache target descriptions.
12154 * arc-tdep.h (arc_read_description): Add proto type.
12155 * arch/arc.c: New file.
12156 * arch/arc.h: Likewise.
12157 * features/Makefile: Replace old target descriptions with new.
12158 * features/arc-arcompact.c: Remove.
12159 * features/arc-arcompact.xml: Likewise.
12160 * features/arc-v2.c: Likewise
12161 * features/arc-v2.xml: Likewise
12162 * features/arc/aux-arcompact.xml: New file.
12163 * features/arc/aux-v2.xml: Likewise.
12164 * features/arc/core-arcompact.xml: Likewise.
12165 * features/arc/core-v2.xml: Likewise.
12166 * features/arc/aux-arcompact.c: Generate.
12167 * features/arc/aux-v2.c: Likewise.
12168 * features/arc/core-arcompact.c: Likewise.
12169 * features/arc/core-v2.c: Likewise.
12170 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
12171
12172 2020-03-16 Tom Tromey <tromey@adacore.com>
12173
12174 PR gdb/25663:
12175 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
12176 putting value into bcache.
12177
12178 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12179
12180 PR gdb/21500
12181 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
12182 to...
12183 (amd64_windows_init_abi_common): ... this. Don't set size of
12184 long type.
12185 (amd64_windows_init_abi): New function.
12186 (amd64_cygwin_init_abi): New function.
12187 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
12188 the Cygwin OS ABI.
12189 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
12190 comment.
12191
12192 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12193
12194 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
12195 * windows-tdep.c (CYGWIN_DLL_NAME): New.
12196 (pe_import_directory_entry): New struct type.
12197 (is_linked_with_cygwin_dll): New function.
12198 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
12199 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
12200 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
12201
12202 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12203
12204 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
12205 i386_cygwin_core_osabi_sniffer.
12206
12207 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12208
12209 * i386-cygwin-tdep.c: Rename to...
12210 * i386-windows-tdep.c: ... this.
12211 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
12212 i386-windows-tdep.c.
12213 * configure.tgt: Likewise.
12214
12215 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12216
12217 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
12218 * osabi.c (gdb_osabi_names): Add "Windows".
12219 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
12220 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
12221 (i386_cygwin_core_osabi_sniffer): New function, extracted from
12222 i386_cygwin_osabi_sniffer.
12223 (_initialize_i386_cygwin_tdep): Register OS ABI
12224 GDB_OSABI_WINDOWS for i386.
12225 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
12226 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
12227 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
12228 for x86-64.
12229 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
12230 when the target matches '*-*-mingw*'.
12231
12232 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12233
12234 * defs.h (enum gdb_osabi): Move to...
12235 * osabi.h (enum gdb_osabi): ... here.
12236 * gdbarch.sh: Include osabi.h in gdbarch.h.
12237 * gdbarch.h: Re-generate.
12238
12239 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12240
12241 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
12242 function.
12243 (_initialize_amd64_windows_tdep): Register osabi sniffer.
12244
12245 2020-03-14 Tom Tromey <tom@tromey.com>
12246
12247 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
12248 for C++.
12249 (c_type_print_modifier): Likewise. Add "language" parameter.
12250 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
12251 (c_type_print_base_1): Update.
12252 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
12253 constants.
12254 * type-stack.c (type_stack::insert): Handle tp_atomic and
12255 tp_restrict.
12256 (type_stack::follow_type_instance_flags): Likewise.
12257 (type_stack::follow_types): Likewise. Merge type-following code.
12258 * c-exp.y (RESTRICT, ATOMIC): New tokens.
12259 (space_identifier, cv_with_space_id)
12260 (const_or_volatile_or_space_identifier_noopt)
12261 (const_or_volatile_or_space_identifier): Remove.
12262 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
12263 rules.
12264 (ptr_operator, typebase): Update.
12265 (enum token_flag) <FLAG_C>: New constant.
12266 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
12267 "_Atomic".
12268 (lex_one_token): Handle FLAG_C.
12269
12270 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12271
12272 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
12273 it to the ptrace call.
12274 * m68k-bsd-nat.c (store_registers): Likewise.
12275
12276 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12277
12278 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
12279 gdb_byte *.
12280 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
12281 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
12282 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
12283
12284 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12285
12286 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
12287 nbsd_nat_target instead of inf_ptrace_target.
12288 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12289 nbsd_nat_target.
12290
12291 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12292
12293 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
12294 register_t.
12295
12296 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12297
12298 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
12299 it to the ptrace call.
12300 * alpha-bsd-nat.c (store_registers): Likewise.
12301
12302 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12303
12304 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
12305 includes.
12306 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
12307 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
12308 fill_fpregset): Likewise.
12309
12310 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12311
12312 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
12313 nbsd_nat_target instead of inf_ptrace_target.
12314 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12315 nbsd_nat_target.
12316
12317 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12318
12319 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
12320 register_t.
12321
12322 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12323
12324 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
12325 it to the ptrace call.
12326 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
12327 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
12328 * arm-nbsd-nat.c (store_register): Likewise.
12329 * arm-nbsd-nat.c (store_regs): Likewise.
12330 * arm-nbsd-nat.c (store_fp_register): Likewise.
12331 * arm-nbsd-nat.c (store_fp_regs): Likewise.
12332
12333 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12334
12335 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
12336 nbsd_nat_target instead of inf_ptrace_target.
12337 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12338 nbsd_nat_target.
12339
12340 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12341
12342 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
12343 it to the ptrace call.
12344 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
12345
12346 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12347
12348 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
12349 it to the ptrace call.
12350 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
12351
12352 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12353
12354 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
12355 gdb_byte *.
12356 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
12357
12358 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12359
12360 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
12361 instead of inf_ptrace_target.
12362 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12363 nbsd_nat_target.
12364
12365 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12366
12367 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12368 register_t.
12369
12370 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12371
12372 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12373 register_t.
12374
12375 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12376
12377 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
12378 register_t.
12379
12380 2020-03-13 Tom Tromey <tom@tromey.com>
12381
12382 * value.h (val_print): Don't declare.
12383 * valprint.h (val_print_array_elements)
12384 (val_print_scalar_formatted, generic_val_print): Don't declare.
12385 * valprint.c (generic_val_print_array): Take a struct value.
12386 (generic_val_print_ptr, generic_val_print_memberptr)
12387 (generic_val_print_bool, generic_val_print_int)
12388 (generic_val_print_char, generic_val_print_complex)
12389 (generic_val_print): Remove.
12390 (generic_value_print): Update.
12391 (do_val_print): Remove unused parameters. Don't call
12392 la_val_print.
12393 (val_print): Remove.
12394 (common_val_print): Update. Don't call value_check_printable.
12395 (val_print_scalar_formatted, val_print_array_elements): Remove.
12396 * rust-lang.c (rust_val_print): Remove.
12397 (rust_language_defn): Update.
12398 * p-valprint.c (pascal_val_print): Remove.
12399 (pascal_value_print_inner): Update.
12400 (pascal_object_print_val_fields, pascal_object_print_val):
12401 Remove.
12402 (pascal_object_print_static_field): Update.
12403 * p-lang.h (pascal_val_print): Don't declare.
12404 * p-lang.c (pascal_language_defn): Update.
12405 * opencl-lang.c (opencl_language_defn): Update.
12406 * objc-lang.c (objc_language_defn): Update.
12407 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
12408 * m2-lang.h (m2_val_print): Don't declare.
12409 * m2-lang.c (m2_language_defn): Update.
12410 * language.h (struct language_defn) <la_val_print>: Remove.
12411 * language.c (unk_lang_value_print_inner): Rename. Change
12412 argument types.
12413 (unknown_language_defn, auto_language_defn): Update.
12414 * go-valprint.c (go_val_print): Remove.
12415 * go-lang.h (go_val_print): Don't declare.
12416 * go-lang.c (go_language_defn): Update.
12417 * f-valprint.c (f_val_print): Remove.
12418 * f-lang.h (f_value_print): Don't declare.
12419 * f-lang.c (f_language_defn): Update.
12420 * d-valprint.c (d_val_print): Remove.
12421 * d-lang.h (d_value_print): Don't declare.
12422 * d-lang.c (d_language_defn): Update.
12423 * cp-valprint.c (cp_print_value_fields)
12424 (cp_print_value_fields_rtti, cp_print_value): Remove.
12425 (cp_print_static_field): Update.
12426 * c-valprint.c (c_val_print_array, c_val_print_ptr)
12427 (c_val_print_struct, c_val_print_union, c_val_print_int)
12428 (c_val_print_memberptr, c_val_print): Remove.
12429 * c-lang.h (c_val_print_array, cp_print_value_fields)
12430 (cp_print_value_fields_rtti): Don't declare.
12431 * c-lang.c (c_language_defn, cplus_language_defn)
12432 (asm_language_defn, minimal_language_defn): Update.
12433 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
12434 (ada_val_print_enum): Take a struct value.
12435 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
12436 (ada_val_print): Remove.
12437 (ada_value_print_1): Update.
12438 (printable_val_type): Remove.
12439 * ada-lang.h (ada_val_print): Don't declare.
12440 * ada-lang.c (ada_language_defn): Update.
12441
12442 2020-03-13 Tom Tromey <tom@tromey.com>
12443
12444 * valprint.c (do_val_print): Update.
12445 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
12446 a struct value.
12447 (value_to_value_object_no_release): Declare.
12448 * python/py-value.c (value_to_value_object_no_release): New
12449 function.
12450 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
12451 struct value.
12452 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
12453 function.
12454 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
12455 a struct value.
12456 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
12457 Declare.
12458 (gdbscm_apply_val_pretty_printer): Take a struct value.
12459 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
12460 value.
12461 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
12462 value.
12463 * extension-priv.h (struct extension_language_ops)
12464 <apply_val_pretty_printer>: Take a struct value.
12465 * cp-valprint.c (cp_print_value): Create a struct value.
12466 (cp_print_value): Update.
12467
12468 2020-03-13 Tom Tromey <tom@tromey.com>
12469
12470 * ada-valprint.c (print_field_values): Call common_val_print.
12471
12472 2020-03-13 Tom Tromey <tom@tromey.com>
12473
12474 * ada-valprint.c (val_print_packed_array_elements): Remove
12475 bitoffset and val parameters. Call common_val_print.
12476 (ada_val_print_string): Remove offset, address, and original_value
12477 parameters.
12478 (ada_val_print_array): Update.
12479 (ada_value_print_array): New function.
12480 (ada_value_print_1): Call it.
12481
12482 2020-03-13 Tom Tromey <tom@tromey.com>
12483
12484 * ada-valprint.c (ada_value_print): Use common_val_print.
12485
12486 2020-03-13 Tom Tromey <tom@tromey.com>
12487
12488 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
12489
12490 2020-03-13 Tom Tromey <tom@tromey.com>
12491
12492 * ada-valprint.c (ada_value_print_num): New function.
12493 (ada_value_print_1): Use it.
12494
12495 2020-03-13 Tom Tromey <tom@tromey.com>
12496
12497 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
12498
12499 2020-03-13 Tom Tromey <tom@tromey.com>
12500
12501 * ada-valprint.c (ada_value_print_ptr): New function.
12502 (ada_value_print_1): Use it.
12503
12504 2020-03-13 Tom Tromey <tom@tromey.com>
12505
12506 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
12507 call common_val_print.
12508 (ada_val_print_1): Update.
12509 (ada_value_print_1): New function.
12510 (ada_value_print_inner): Rewrite.
12511
12512 2020-03-13 Tom Tromey <tom@tromey.com>
12513
12514 * cp-valprint.c (cp_print_value_fields): Update.
12515 (cp_print_value): New function.
12516
12517 2020-03-13 Tom Tromey <tom@tromey.com>
12518
12519 * m2-valprint.c (m2_value_print_inner): Use
12520 cp_print_value_fields.
12521 * cp-valprint.c (cp_print_value_fields): New function.
12522 * c-valprint.c (c_value_print_struct): New function.
12523 (c_value_print_inner): Use c_value_print_struct.
12524 * c-lang.h (cp_print_value_fields): Declare.
12525
12526 2020-03-13 Tom Tromey <tom@tromey.com>
12527
12528 * c-valprint.c (c_value_print_array): New function.
12529 (c_value_print_inner): Use it.
12530
12531 2020-03-13 Tom Tromey <tom@tromey.com>
12532
12533 * c-valprint.c (c_value_print_memberptr): New function.
12534 (c_value_print_inner): Use it.
12535
12536 2020-03-13 Tom Tromey <tom@tromey.com>
12537
12538 * c-valprint.c (c_value_print_int): New function.
12539 (c_value_print_inner): Use it.
12540
12541 2020-03-13 Tom Tromey <tom@tromey.com>
12542
12543 * c-valprint.c (c_value_print_ptr): New function.
12544 (c_value_print_inner): Use it.
12545
12546 2020-03-13 Tom Tromey <tom@tromey.com>
12547
12548 * c-valprint.c (c_value_print_inner): Rewrite.
12549
12550 2020-03-13 Tom Tromey <tom@tromey.com>
12551
12552 * valprint.c (generic_value_print_complex): New function.
12553 (generic_value_print): Use it.
12554
12555 2020-03-13 Tom Tromey <tom@tromey.com>
12556
12557 * valprint.c (generic_val_print_float): Don't call
12558 val_print_scalar_formatted.
12559 (generic_val_print, generic_value_print): Update.
12560
12561 2020-03-13 Tom Tromey <tom@tromey.com>
12562
12563 * valprint.c (generic_value_print_char): New function
12564 (generic_value_print): Use it.
12565
12566 2020-03-13 Tom Tromey <tom@tromey.com>
12567
12568 * valprint.c (generic_value_print_int): New function.
12569 (generic_value_print): Use it.
12570
12571 2020-03-13 Tom Tromey <tom@tromey.com>
12572
12573 * valprint.c (generic_value_print_bool): New function.
12574 (generic_value_print): Use it.
12575
12576 2020-03-13 Tom Tromey <tom@tromey.com>
12577
12578 * valprint.c (generic_val_print_func): Simplify.
12579 (generic_val_print, generic_value_print): Update.
12580
12581 2020-03-13 Tom Tromey <tom@tromey.com>
12582
12583 * valprint.c (generic_val_print_flags): Remove.
12584 (generic_val_print, generic_value_print): Update.
12585 (val_print_type_code_flags): Add original_value parameter.
12586
12587 2020-03-13 Tom Tromey <tom@tromey.com>
12588
12589 * valprint.c (generic_val_print): Update.
12590 (generic_value_print): Update.
12591 * valprint.c (generic_val_print_enum): Don't call
12592 val_print_scalar_formatted.
12593
12594 2020-03-13 Tom Tromey <tom@tromey.com>
12595
12596 * valprint.c (generic_value_print): Call generic_value_print_ptr.
12597 * valprint.c (generic_value_print_ptr): New function.
12598
12599 2020-03-13 Tom Tromey <tom@tromey.com>
12600
12601 * valprint.c (generic_value_print): Rewrite.
12602
12603 2020-03-13 Tom Tromey <tom@tromey.com>
12604
12605 * p-valprint.c (pascal_object_print_value_fields)
12606 (pascal_object_print_value): New functions.
12607
12608 2020-03-13 Tom Tromey <tom@tromey.com>
12609
12610 * p-valprint.c (pascal_value_print_inner): Rewrite.
12611
12612 2020-03-13 Tom Tromey <tom@tromey.com>
12613
12614 * f-valprint.c (f_value_print_innner): Rewrite.
12615
12616 2020-03-13 Tom Tromey <tom@tromey.com>
12617
12618 * m2-valprint.c (m2_print_unbounded_array): New overload.
12619 (m2_print_unbounded_array): Update.
12620 (m2_print_array_contents): Take a struct value.
12621 (m2_value_print_inner): Rewrite.
12622
12623 2020-03-13 Tom Tromey <tom@tromey.com>
12624
12625 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
12626 (d_value_print_inner): New function.
12627 * d-lang.h (d_value_print_inner): Declare.
12628 * d-lang.c (d_language_defn): Use d_value_print_inner.
12629
12630 2020-03-13 Tom Tromey <tom@tromey.com>
12631
12632 * go-valprint.c (go_value_print_inner): New function.
12633 * go-lang.h (go_value_print_inner): Declare.
12634 * go-lang.c (go_language_defn): Use go_value_print_inner.
12635
12636 2020-03-13 Tom Tromey <tom@tromey.com>
12637
12638 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
12639 API.
12640 (rust_val_print): Rewrite.
12641 (rust_value_print_inner): New function, from rust_val_print.
12642 (rust_language_defn): Use rust_value_print_inner.
12643
12644 2020-03-13 Tom Tromey <tom@tromey.com>
12645
12646 * ada-valprint.c (ada_value_print_inner): New function.
12647 * ada-lang.h (ada_value_print_inner): Declare.
12648 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
12649
12650 2020-03-13 Tom Tromey <tom@tromey.com>
12651
12652 * f-valprint.c (f_value_print_innner): New function.
12653 * f-lang.h (f_value_print_innner): Declare.
12654 * f-lang.c (f_language_defn): Use f_value_print_innner.
12655
12656 2020-03-13 Tom Tromey <tom@tromey.com>
12657
12658 * p-valprint.c (pascal_value_print_inner): New function.
12659 * p-lang.h (pascal_value_print_inner): Declare.
12660 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
12661
12662 2020-03-13 Tom Tromey <tom@tromey.com>
12663
12664 * m2-valprint.c (m2_value_print_inner): New function.
12665 * m2-lang.h (m2_value_print_inner): Declare.
12666 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
12667
12668 2020-03-13 Tom Tromey <tom@tromey.com>
12669
12670 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
12671 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
12672 * c-valprint.c (c_value_print_inner): New function.
12673 * c-lang.h (c_value_print_inner): Declare.
12674 * c-lang.c (c_language_defn, cplus_language_defn)
12675 (asm_language_defn, minimal_language_defn): Use
12676 c_value_print_inner.
12677
12678 2020-03-13 Tom Tromey <tom@tromey.com>
12679
12680 * p-valprint.c (pascal_object_print_value_fields): Now static.
12681 * p-lang.h (pascal_object_print_value_fields): Don't declare.
12682
12683 2020-03-13 Tom Tromey <tom@tromey.com>
12684
12685 * c-valprint.c (c_val_print_array): Simplify.
12686
12687 2020-03-13 Tom Tromey <tom@tromey.com>
12688
12689 * valprint.c (value_print_array_elements): New function.
12690 * valprint.h (value_print_array_elements): Declare.
12691
12692 2020-03-13 Tom Tromey <tom@tromey.com>
12693
12694 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
12695 * mips-tdep.c (mips_print_register): Use
12696 value_print_scalar_formatted.
12697
12698 2020-03-13 Tom Tromey <tom@tromey.com>
12699
12700 * valprint.h (value_print_scalar_formatted): Declare.
12701 * valprint.c (value_print_scalar_formatted): New function.
12702
12703 2020-03-13 Tom Tromey <tom@tromey.com>
12704
12705 * valprint.h (generic_value_print): Declare.
12706 * valprint.c (generic_value_print): New function.
12707
12708 2020-03-13 Tom Tromey <tom@tromey.com>
12709
12710 * valprint.c (do_val_print): Call la_value_print_inner, if
12711 available.
12712 * rust-lang.c (rust_language_defn): Update.
12713 * p-lang.c (pascal_language_defn): Update.
12714 * opencl-lang.c (opencl_language_defn): Update.
12715 * objc-lang.c (objc_language_defn): Update.
12716 * m2-lang.c (m2_language_defn): Update.
12717 * language.h (struct language_defn) <la_value_print_inner>: New
12718 member.
12719 * language.c (unknown_language_defn, auto_language_defn): Update.
12720 * go-lang.c (go_language_defn): Update.
12721 * f-lang.c (f_language_defn): Update.
12722 * d-lang.c (d_language_defn): Update.
12723 * c-lang.c (c_language_defn, cplus_language_defn)
12724 (asm_language_defn, minimal_language_defn): Update.
12725 * ada-lang.c (ada_language_defn): Update.
12726
12727 2020-03-13 Tom Tromey <tom@tromey.com>
12728
12729 * c-valprint.c (c_value_print): Use common_val_print.
12730
12731 2020-03-13 Tom Tromey <tom@tromey.com>
12732
12733 * cp-valprint.c (cp_print_static_field): Use common_val_print.
12734
12735 2020-03-13 Tom Tromey <tom@tromey.com>
12736
12737 * f-valprint.c (f77_print_array_1, f_val_print): Use
12738 common_val_print.
12739
12740 2020-03-13 Tom Tromey <tom@tromey.com>
12741
12742 * riscv-tdep.c (riscv_print_one_register_info): Use
12743 common_val_print.
12744
12745 2020-03-13 Tom Tromey <tom@tromey.com>
12746
12747 * mi/mi-main.c (output_register): Use common_val_print.
12748
12749 2020-03-13 Tom Tromey <tom@tromey.com>
12750
12751 * infcmd.c (default_print_one_register_info): Use
12752 common_val_print.
12753
12754 2020-03-13 Tom Tromey <tom@tromey.com>
12755
12756 * valprint.h (common_val_print_checked): Declare.
12757 * valprint.c (common_val_print_checked): New function.
12758 * stack.c (print_frame_arg): Use common_val_print_checked.
12759
12760 2020-03-13 Tom Tromey <tom@tromey.com>
12761
12762 * valprint.c (do_val_print): New function, from val_print.
12763 (val_print): Use do_val_print.
12764 (common_val_print): Use do_val_print.
12765
12766 2020-03-13 Tom Tromey <tom@tromey.com>
12767
12768 * valprint.c (value_print): Use scoped_value_mark.
12769
12770 2020-03-13 Tom de Vries <tdevries@suse.de>
12771
12772 PR symtab/25646
12773 * psymtab.c (partial_symtab::partial_symtab): Don't set
12774 globals_offset and statics_offset. Push element onto
12775 current_global_psymbols and current_static_psymbols stacks.
12776 (concat): New function.
12777 (end_psymtab_common): Set globals_offset and statics_offset. Pop
12778 element from current_global_psymbols and current_static_psymbols
12779 stacks. Concat popped elements to global_psymbols and
12780 static_symbols.
12781 (add_psymbol_to_list): Use current_global_psymbols and
12782 current_static_psymbols stacks.
12783 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
12784 current_static_psymbols fields.
12785
12786 2020-03-12 Christian Biesinger <cbiesinger@google.com>
12787
12788 * corelow.c (sniff_core_bfd): Remove.
12789 (class core_target) <m_core_vec>: Remove.
12790 (core_target::core_target): Update.
12791 (core_file_fns): Remove.
12792 (deprecated_add_core_fns): Remove.
12793 (default_core_sniffer): Remove.
12794 (sniff_core_bfd): Remove.
12795 (default_check_format): Remove.
12796 (gdb_check_format): Remove.
12797 (core_target_open): Update.
12798 (core_target::get_core_register_section): Update.
12799 (get_core_registers_cb): Update.
12800 (core_target::fetch_registers): Update.
12801 * gdbcore.h (struct core_fns): Remove.
12802 (deprecated_add_core_fns): Remove.
12803 (default_core_sniffer): Remove.
12804 (default_check_format): Remove.
12805
12806 2020-03-12 Tom Tromey <tom@tromey.com>
12807
12808 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
12809 CORE_ADDR.
12810 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
12811
12812 2020-03-12 Tom Tromey <tom@tromey.com>
12813
12814 * remote.c (remote_target::download_tracepoint)
12815 (remote_target::enable_tracepoint)
12816 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
12817 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
12818 sprintf_vma.
12819
12820 2020-03-12 Tom Tromey <tom@tromey.com>
12821
12822 * symfile-mem.c: Update CORE_ADDR size assert.
12823
12824 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
12825
12826 * selftest.m4: Move to gdbsupport/.
12827 * acinclude.m4: Update path to selftest.m4.
12828
12829 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
12830
12831 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
12832 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
12833 gdbarch-selfselftests.c and selftest-arch.c.
12834 (SUBDIR_UNITTESTS_OBS): Rename to...
12835 (SELFTESTS_OBS): ... this.
12836 (COMMON_SFILES): Remove disasm-selftests.c and
12837 gdbarch-selftests.c.
12838 * configure.ac: Don't add selftest-arch.{c,o} to
12839 CONFIG_{SRCS,OBS}.
12840 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
12841 preprocessor conditions.
12842
12843 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
12844
12845 * configure.ac: Don't source bfd/development.sh.
12846 * selftest.m4: Modify comment.
12847 * configure: Re-generate.
12848
12849 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
12850
12851 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
12852 not "true" or "false".
12853 * configure: Re-generate.
12854
12855 2020-03-12 Christian Biesinger <cbiesinger@google.com>
12856
12857 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
12858 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
12859 renamed to arm_nbsd_supply_gregset.
12860 (fetch_register): Update to call arm_nbsd_supply_gregset.
12861 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
12862 (arm_netbsd_nat_target::fetch_registers): Update.
12863 (fetch_elfcore_registers): Removed.
12864 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
12865 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
12866 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
12867 not require NetBSD system headers.
12868 (arm_nbsd_regset): New struct.
12869 (arm_nbsd_iterate_over_regset_sections): New function.
12870 (arm_netbsd_init_abi_common): Updated to call
12871 set_gdbarch_iterate_over_regset_sections.
12872 * arm-nbsd-tdep.h: New file.
12873
12874 2020-03-11 Kevin Buettner <kevinb@redhat.com>
12875
12876 * symtab.c (find_pc_sect_line): Add check which prevents infinite
12877 recursion.
12878
12879 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
12880
12881 * configure: Re-generate.
12882
12883 2020-03-11 Tom Tromey <tromey@adacore.com>
12884
12885 * ada-typeprint.c (print_choices): Fix comment.
12886
12887 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
12888
12889 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
12890 previous item in the list, when the list has no items.
12891
12892 2020-03-11 Tom de Vries <tdevries@suse.de>
12893
12894 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
12895 PROP_LOCLIST handling code.
12896
12897 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
12898
12899 * buildsym-legacy.c (record_line): Pass extra parameter to
12900 record_line.
12901 * buildsym.c (buildsym_compunit::record_line): Take an extra
12902 parameter, reduce duplication in the line table, and record the
12903 is_stmt flag in the line table.
12904 * buildsym.h (buildsym_compunit::record_line): Add extra
12905 parameter.
12906 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
12907 non-statement lines.
12908 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
12909 this to the symtab builder.
12910 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
12911 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
12912 through to dwarf_record_line_1.
12913 * infrun.c (process_event_stop_test): When stepping, don't stop at
12914 a non-statement instruction, and only refresh the step info when
12915 we land in the middle of a line's range. Also add an extra
12916 comment.
12917 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
12918 field.
12919 * record-btrace.c (btrace_find_line_range): Only record lines
12920 marked as is-statement.
12921 * stack.c (frame_show_address): Show the frame address if we are
12922 in a non-statement sal.
12923 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
12924 (maintenance_print_one_line_table): Print a header for the is_stmt
12925 column, and include is_stmt information in the output.
12926 * symtab.c (find_pc_sect_line): Find lines marked as statements in
12927 preference to non-statements.
12928 (find_pcs_for_symtab_line): Prefer is-statement entries.
12929 (find_line_common): Likewise.
12930 * symtab.h (struct linetable_entry): Add is_stmt field.
12931 (struct symtab_and_line): Likewise.
12932 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
12933 arranging the line table.
12934
12935 2020-03-07 Tom de Vries <tdevries@suse.de>
12936
12937 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
12938 DIE.
12939
12940 2020-03-07 Tom Tromey <tom@tromey.com>
12941
12942 * valops.c (value_literal_complex): Remove obsolete comment.
12943 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
12944 comment.
12945
12946 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
12947
12948 * infrun.h: Forward-declare thread_info.
12949 (set_step_info): Add thread_info parameter, add doc.
12950 * infrun.c (set_step_info): Add thread_info parameter, move doc
12951 to header.
12952 * infrun.c (process_event_stop_test): Pass thread to
12953 set_step_info call.
12954 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
12955 set_step_info.
12956 (prepare_one_step): Add thread_info parameter, pass it to
12957 set_step_frame and prepare_one_step (recursive) call.
12958 (step_1): Pass thread to prepare_one_step call.
12959 (step_command_fsm::should_stop): Pass thread to
12960 prepare_one_step.
12961 (until_next_fsm): Pass thread to set_step_frame call.
12962 (finish_command): Pass thread to set_step_info call.
12963
12964 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
12965
12966 * windows-tdep.c (windows_solib_create_inferior_hook):
12967 Check if inferior is running.
12968
12969 2020-03-06 Tom de Vries <tdevries@suse.de>
12970
12971 * NEWS: Fix "the the".
12972 * ctfread.c: Same.
12973
12974 2020-03-06 Tom de Vries <tdevries@suse.de>
12975
12976 * psymtab.c (psymtab_to_symtab): Don't print "done.".
12977
12978 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12979
12980 * .dir-locals.el: Add a comment referencing the other copies of
12981 this file.
12982
12983 2020-03-05 John Baldwin <jhb@FreeBSD.org>
12984
12985 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
12986 psargs.
12987
12988 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12989
12990 * .gitattributes: New file.
12991
12992 2020-03-04 Tom Tromey <tom@tromey.com>
12993
12994 * symmisc.c (print_symbol_bcache_statistics)
12995 (print_objfile_statistics): Update.
12996 * symfile.c (allocate_symtab): Use intern.
12997 * psymtab.c (partial_symtab::partial_symtab): Use intern.
12998 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
12999 macro_cache>: Remove.
13000 <string_cache>: New member.
13001 (struct objfile) <intern>: New methods.
13002 * elfread.c (elf_symtab_read): Use intern.
13003 * dwarf2/read.c (fixup_go_packaging): Intern package name.
13004 (dwarf2_compute_name, dwarf2_physname)
13005 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
13006 names.
13007 (guess_partial_die_structure_name): Update.
13008 (partial_die_info::fixup): Intern name.
13009 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
13010 name.
13011 (dwarf2_name): Intern name. Update.
13012 * buildsym.c (buildsym_compunit::get_macro_table): Use
13013 string_cache.
13014
13015 2020-03-04 Tom Tromey <tom@tromey.com>
13016
13017 * jit.c (bfd_open_from_target_memory): Make "target" const.
13018 * corefile.c (gnutarget): Now const.
13019 * gdbcore.h (gnutarget): Now const.
13020
13021 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
13022
13023 * NEWS: Mention support for WOW64 processes.
13024 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
13025 (amd64_windows_segment_register_p): Remove static.
13026 (_initialize_amd64_windows_nat): Update.
13027 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
13028 * i386-windows-nat.c (context_offset): Update.
13029 (i386_mappings): Rename and remove static.
13030 (i386_windows_segment_register_p): Remove static.
13031 (_initialize_i386_windows_nat): Update.
13032 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
13033 (STATUS_WX86_SINGLE_STEP): New macro.
13034 (EnumProcessModulesEx): New macro.
13035 (Wow64SuspendThread): New macro.
13036 (Wow64GetThreadContext): New macro.
13037 (Wow64SetThreadContext): New macro.
13038 (Wow64GetThreadSelectorEntry): New macro.
13039 (windows_set_context_register_offsets): Add static.
13040 (windows_set_segment_register_p): Likewise.
13041 (windows_add_thread): Adapt for WOW64 processes.
13042 (windows_fetch_one_register): Likewise.
13043 (windows_nat_target::fetch_registers): Likewise.
13044 (windows_store_one_register): Likewise.
13045 (display_selector): Likewise.
13046 (display_selectors): Likewise.
13047 (handle_exception): Likewise.
13048 (windows_continue): Likewise.
13049 (windows_nat_target::resume): Likewise.
13050 (windows_add_all_dlls): Likewise.
13051 (do_initial_windows_stuff): Likewise.
13052 (windows_nat_target::attach): Likewise.
13053 (windows_get_exec_module_filename): Likewise.
13054 (windows_nat_target::create_inferior): Likewise.
13055 (windows_xfer_siginfo): Likewise.
13056 (_initialize_loadable): Initialize Wow64SuspendThread,
13057 Wow64GetThreadContext, Wow64SetThreadContext,
13058 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
13059 * windows-nat.h (windows_set_context_register_offsets):
13060 Remove declaration.
13061 (windows_set_segment_register_p): Likewise.
13062 (i386_windows_segment_register_p): Add declaration.
13063 (amd64_windows_segment_register_p): Likewise.
13064
13065 2020-03-04 Luis Machado <luis.machado@linaro.org>
13066
13067 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
13068 in "info registers" for AArch64/ARM.
13069
13070 The change caused "info registers" to not print GPR's.
13071
13072 gdb/ChangeLog:
13073
13074 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
13075
13076 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13077 when reg->group is empty and reggroup is not.
13078
13079 2020-03-03 Tom Tromey <tromey@adacore.com>
13080
13081 * dwarf2/frame.c (struct dwarf2_frame_cache)
13082 <checked_tailcall_bottom, entry_cfa_sp_offset,
13083 entry_cfa_sp_offset_p>: Remove members.
13084 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
13085 (dwarf2_frame_prev_register): Don't call
13086 dwarf2_tailcall_sniffer_first.
13087 (dwarf2_append_unwinders): Don't append tailcall unwinder.
13088 * frame-unwind.c (add_unwinder): New fuction.
13089 (frame_unwind_init): Use it. Add tailcall unwinder.
13090
13091 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
13092 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13093
13094 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
13095 value should be printed as true.
13096
13097 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
13098
13099 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
13100 (windows_init_abi): Set and use windows_so_ops.
13101
13102 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
13103
13104 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
13105 when verifying if dealing with a convenience variable.
13106
13107 2020-03-03 Luis Machado <luis.machado@linaro.org>
13108
13109 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
13110
13111 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
13112
13113 * infrun.c (gdbarch_supports_displaced_stepping): New.
13114 (use_displaced_stepping): Break up conditions in smaller pieces.
13115 Use gdbarch_supports_displaced_stepping.
13116 (displaced_step_prepare_throw): Use
13117 gdbarch_supports_displaced_stepping.
13118
13119 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13120
13121 * NEWS: Mention new behaviour of the history filename.
13122 * top.c (write_history_p): Add comment.
13123 (show_write_history_p): Add header comment, give a different
13124 message when history writing is on, but the history filename is
13125 empty.
13126 (history_filename): Add comment.
13127 (history_filename_empty): New function.
13128 (show_history_filename): Add header comment, give a different
13129 message when the filename is empty.
13130 (init_history): Compare history_filename against nullptr, and only
13131 read history if the filename is not empty.
13132 (set_history_filename): Add header comment, and only make
13133 non-empty filenames absolute.
13134 (init_main): Make the filename argument to 'set history filename'
13135 optional.
13136
13137 2020-03-02 Christian Biesinger <cbiesinger@google.com>
13138
13139 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
13140 (arm_supply_vfpregset): ...this, and update to use VFP registers.
13141 (fetch_fp_register): Update.
13142 (fetch_fp_regs): Update.
13143 (store_fp_register): Update.
13144 (store_fp_regs): Update.
13145 (arm_netbsd_nat_target::read_description): New function.
13146 (fetch_elfcore_registers): Update.
13147
13148 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13149
13150 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
13151 general_thread if the stop reply is missing a thread-id.
13152 (remote_target::process_stop_reply): Use the first non-exited
13153 thread if the target didn't pass a thread-id.
13154 * infrun.c (do_target_wait): Move call to
13155 switch_to_inferior_no_thread to ....
13156 (do_target_wait_1): ... here.
13157
13158 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
13159
13160 * debuginfod-support.c: Include defs.h first.
13161
13162 2020-02-28 Tom de Vries <tdevries@suse.de>
13163
13164 * symfile.c (set_initial_language): Use default language for lookup.
13165
13166 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
13167
13168 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
13169 reader variable, pass `this` to read_cutu_die_from_dwo.
13170
13171 2020-02-27 Aaron Merey <amerey@redhat.com>
13172
13173 * source.c (open_source_file): Check for nullptr when computing
13174 srcpath.
13175
13176 2020-02-27 Tom Tromey <tromey@adacore.com>
13177
13178 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
13179 member.
13180 (dwarf2_add_field): Don't update nfields.
13181 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
13182
13183 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13184
13185 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
13186 abs.
13187
13188 2020-02-26 Tom Tromey <tom@tromey.com>
13189
13190 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
13191 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
13192 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
13193 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
13194 per_cu_data.
13195
13196 2020-02-26 Tom Tromey <tom@tromey.com>
13197
13198 * dwarf2/index-write.c (psym_index_map): Change type.
13199 (add_address_entry_worker, write_one_signatured_type)
13200 (recursively_count_psymbols, recursively_write_psymbols)
13201 (class debug_names, psyms_seen_size, write_gdbindex)
13202 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
13203
13204 2020-02-26 Aaron Merey <amerey@redhat.com>
13205
13206 * Makefile.in: Handle optional debuginfod support.
13207 * NEWS: Update.
13208 * README: Add --with-debuginfod summary.
13209 * config.in: Regenerate.
13210 * configure: Regenerate.
13211 * configure.ac: Handle optional debuginfod support.
13212 * debuginfod-support.c: debuginfod helper functions.
13213 * debuginfod-support.h: Ditto.
13214 * doc/gdb.texinfo: Add --with-debuginfod to configure options
13215 summary.
13216 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
13217 when a dwz file cannot be found.
13218 * elfread.c (elf_symfile_read): Query debuginfod servers when a
13219 debuginfo file cannot be found.
13220 * source.c (open_source_file): Query debuginfod servers when a
13221 source file cannot be found.
13222 * top.c (print_gdb_configuration): Include
13223 --{with,without}-debuginfod in the output.
13224
13225 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
13226
13227 * thread.c (thr_try_catch_cmd): Print thread name.
13228
13229 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
13230
13231 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
13232 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13233 dwarf2_fetch_die_type_sect_off): Move to...
13234 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
13235 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13236 dwarf2_fetch_die_type_sect_off): ... here.
13237 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
13238 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13239 dwarf2_fetch_die_type_sect_off): Move doc to header file.
13240
13241 2020-02-26 Tom de Vries <tdevries@suse.de>
13242
13243 PR gdb/25603
13244 * symfile.c (set_initial_language): Exit-early if
13245 language_mode == language_mode_manual.
13246
13247 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13248
13249 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
13250 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
13251 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
13252
13253 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
13254
13255 * gdbtypes.c (create_array_type_with_stride): Handle negative
13256 array strides.
13257 * valarith.c (value_subscripted_rvalue): Likewise.
13258
13259 2020-02-25 Luis Machado <luis.machado@linaro.org>
13260
13261 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
13262
13263 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13264
13265 * loc.h (dwarf2_get_die_type): Move to...
13266 * read.h (dwarf2_get_die_type): ... here.
13267 * read.c (dwarf2_get_die_type): Move doc to header.
13268
13269 2020-02-25 Joel Brobecker <brobecker@adacore.com>
13270
13271 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
13272 'gnulib/Makefile.in' to the list.
13273
13274 2020-02-24 Tom Tromey <tom@tromey.com>
13275
13276 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
13277 Remove.
13278 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
13279 XOBNEWVEC.
13280
13281 2020-02-24 Tom Tromey <tom@tromey.com>
13282
13283 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
13284 New method.
13285 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
13286 (dw2_do_instantiate_symtab, dw2_get_file_names)
13287 (build_type_psymtab_dependencies, load_full_type_unit): Update.
13288
13289 2020-02-24 Tom Tromey <tom@tromey.com>
13290
13291 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
13292 make_scoped_restore.
13293 (dwarf2_psymtab::read_symtab): Don't clear
13294 reading_partial_symbols.
13295
13296 2020-02-24 Tom de Vries <tdevries@suse.de>
13297
13298 PR gdb/25592
13299 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
13300
13301 2020-02-24 Tom de Vries <tdevries@suse.de>
13302
13303 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
13304 commands layout next/prev/regs.
13305
13306 2020-02-22 Tom Tromey <tom@tromey.com>
13307
13308 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
13309 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
13310
13311 2020-02-22 Tom Tromey <tom@tromey.com>
13312
13313 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
13314
13315 2020-02-22 Tom Tromey <tom@tromey.com>
13316
13317 * tui/tui-win.c (_initialize_tui_win): Add usage text.
13318 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
13319 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
13320 * tui/tui.c (_initialize_tui): Add usage text.
13321
13322 2020-02-22 Tom Tromey <tom@tromey.com>
13323
13324 * tui/tui-win.c (tui_set_focus_command)
13325 (tui_set_win_height_command): Use error_no_arg.
13326 (_initialize_tui_win): Update help text.
13327 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
13328
13329 2020-02-22 Tom Tromey <tom@tromey.com>
13330
13331 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
13332 * tui/tui-disasm.h (struct tui_disasm_window)
13333 <display_start_addr>: Declare.
13334 * tui/tui-source.h (struct tui_source_window)
13335 <display_start_addr>: Declare.
13336 * tui/tui-winsource.h (struct tui_source_window_base)
13337 <show_source_line, display_start_addr>: New methods.
13338 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
13339 Rename and move to protected section.
13340 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
13341 (tui_source_window_base::do_erase_source_content): Update.
13342 (tui_source_window_base::show_source_line): Now a method.
13343 (tui_source_window_base::show_source_content)
13344 (tui_source_window_base::tui_source_window_base)
13345 (tui_source_window_base::rerender)
13346 (tui_source_window_base::refill)
13347 (tui_source_window_base::do_scroll_horizontal)
13348 (tui_source_window_base::set_is_exec_point_at)
13349 (tui_source_window_base::update_breakpoint_info)
13350 (tui_source_window_base::update_exec_info): Update.
13351 * tui/tui-source.c (tui_source_window::set_contents)
13352 (tui_source_window::showing_source_p)
13353 (tui_source_window::do_scroll_vertical)
13354 (tui_source_window::location_matches_p)
13355 (tui_source_window::line_is_displayed): Update.
13356 (tui_source_window::display_start_addr): New method.
13357 * tui/tui-disasm.c (tui_disasm_window::set_contents)
13358 (tui_disasm_window::do_scroll_vertical)
13359 (tui_disasm_window::location_matches_p): Update.
13360 (tui_disasm_window::display_start_addr): New method.
13361
13362 2020-02-22 Tom Tromey <tom@tromey.com>
13363
13364 * NEWS: Add entry for gdb.register_window_type.
13365 * tui/tui-layout.h (window_factory): New typedef.
13366 (tui_register_window): Declare.
13367 * tui/tui-layout.c (saved_tui_windows): New global.
13368 (tui_apply_current_layout): Use it.
13369 (tui_register_window): New function.
13370 * python/python.c (do_start_initialization): Call
13371 gdbpy_initialize_tui.
13372 (python_GdbMethods): Add "register_window_type" function.
13373 * python/python-internal.h (gdbpy_register_tui_window)
13374 (gdbpy_initialize_tui): Declare.
13375 * python/py-tui.c: New file.
13376 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
13377
13378 2020-02-22 Tom Tromey <tom@tromey.com>
13379
13380 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
13381
13382 2020-02-22 Tom Tromey <tom@tromey.com>
13383
13384 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
13385 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
13386 * tui/tui-data.c (tui_set_win_with_focus): Remove.
13387 (tui_set_win_focus_to): Move from tui-win.c.
13388
13389 2020-02-22 Tom Tromey <tom@tromey.com>
13390
13391 * tui/tui-layout.c (make_standard_window, get_locator_window): New
13392 functions.
13393 (known_window_types): New global.
13394 (tui_get_window_by_name): Reimplement.
13395 (initialize_known_windows): New function.
13396 (validate_window_name): Rewrite.
13397 (_initialize_tui_layout): Call initialize_known_windows.
13398
13399 2020-02-22 Tom Tromey <tom@tromey.com>
13400
13401 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
13402 Remove constants.
13403 * tui/tui-winsource.h (struct tui_source_window_base)
13404 <tui_source_window_base>: Remove parameter.
13405 * tui/tui-winsource.c
13406 (tui_source_window_base::tui_source_window_base): Remove
13407 parameter.
13408 (tui_source_window_base::refill): Update.
13409 * tui/tui-stack.h (struct tui_locator_window)
13410 <tui_locator_window>: Update.
13411 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
13412 Default the constructor.
13413 * tui/tui-regs.h (struct tui_data_item_window)
13414 <tui_data_item_window>: Default the constructor.
13415 (struct tui_data_window) <tui_data_window>: Likewise.
13416 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
13417 Default the constructor.
13418 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
13419 Default the constructor.
13420 <type>: Remove.
13421 (struct tui_win_info) <tui_win_info>: Default the constructor.
13422 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
13423 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
13424 Default the constructor.
13425
13426 2020-02-22 Tom Tromey <tom@tromey.com>
13427
13428 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
13429 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
13430 * tui/tui-win.c (tui_resize_all): Don't call
13431 tui_delete_invisible_windows.
13432 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
13433 done.
13434 (tui_set_layout): Update.
13435 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
13436 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
13437 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
13438
13439 2020-02-22 Tom Tromey <tom@tromey.com>
13440
13441 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
13442 correctly.
13443
13444 2020-02-22 Tom Tromey <tom@tromey.com>
13445
13446 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
13447
13448 2020-02-22 Tom Tromey <tom@tromey.com>
13449
13450 * tui/tui-winsource.h (struct tui_source_window_iterator)
13451 <inner_iterator>: New etytypedef.
13452 <tui_source_window_iterator>: Take "end" parameter.
13453 <tui_source_window_iterator>: Take iterator.
13454 <operator*, advance>: Update.
13455 <m_iter>: Change type.
13456 <m_end>: New field.
13457 (struct tui_source_windows) <begin, end>: Update.
13458 * tui/tui-layout.c (tui_windows): New global.
13459 (tui_apply_current_layout): Clear tui_windows.
13460 (tui_layout_window::apply): Update tui_windows.
13461 * tui/tui-data.h (tui_windows): Declare.
13462 (all_tui_windows): Now inline function.
13463 (class tui_window_iterator, struct all_tui_windows): Remove.
13464
13465 2020-02-22 Tom Tromey <tom@tromey.com>
13466
13467 PR tui/17850:
13468 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
13469 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
13470 "height" argument.
13471 (class tui_layout_window) <get_sizes>: Likewise.
13472 (class tui_layout_split) <tui_layout_split>: Add "vertical"
13473 argument.
13474 <get_sizes>: Add "height" argument.
13475 <m_vertical>: New field.
13476 * tui/tui-layout.c (tui_layout_split::clone): Update.
13477 (tui_layout_split::get_sizes): Add "height" argument.
13478 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
13479 (tui_new_layout_command): Parse "-horizontal".
13480 (_initialize_tui_layout): Update help string.
13481 (tui_layout_split::specification): Add "-horizontal" when needed.
13482 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
13483 argument.
13484 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
13485 New methods.
13486
13487 2020-02-22 Tom Tromey <tom@tromey.com>
13488
13489 * tui/tui-layout.h (enum tui_adjust_result): New.
13490 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
13491 (class tui_layout_window) <adjust_size>: Return
13492 tui_adjust_result. Rewrite.
13493 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
13494 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
13495
13496 2020-02-22 Tom Tromey <tom@tromey.com>
13497
13498 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
13499 parameter and return types.
13500 (class tui_layout_base) <specification>: Add "depth".
13501 (class tui_layout_window) <specification>: Add "depth".
13502 (class tui_layout_split) <specification>: Add "depth".
13503 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
13504 and return types.
13505 (tui_new_layout_command): Parse sub-layouts.
13506 (_initialize_tui_layout): Update help string.
13507 (tui_layout_window::specification): Add "depth".
13508 (add_layout_command): Update.
13509
13510 2020-02-22 Tom Tromey <tom@tromey.com>
13511
13512 * NEWS: Add "tui new-layout" item.
13513 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
13514 Add new-layout command to help text.
13515 (validate_window_name): New function.
13516 (tui_new_layout_command): New function.
13517 (_initialize_tui_layout): Register "new-layout".
13518 (tui_layout_window::specification): New method.
13519 (tui_layout_window::specification): New method.
13520 * tui/tui-layout.h (class tui_layout_base) <specification>: New
13521 method.
13522 (class tui_layout_window) <specification>: New method.
13523 (class tui_layout_split) <specification>: New method.
13524
13525 2020-02-22 Tom Tromey <tom@tromey.com>
13526
13527 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
13528 * tui/tui-win.c (window_name_completer): Update comment.
13529 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
13530 Declare method.
13531 (class tui_layout_window) <replace_window>: Likewise.
13532 (class tui_layout_split) <replace_window>: Likewise.
13533 (tui_set_layout): Don't declare.
13534 (tui_set_initial_layout): Declare function.
13535 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
13536 (asm_regs_layout): New globals.
13537 (tui_current_layout, show_layout): Remove.
13538 (tui_set_layout, tui_add_win_to_layout): Rewrite.
13539 (find_layout, tui_apply_layout): New function.
13540 (layout_completer): Remove.
13541 (tui_next_layout): Reimplement.
13542 (tui_next_layout_command): New function.
13543 (tui_set_initial_layout, tui_prev_layout_command): New functions.
13544 (tui_regs_layout): Reimplement.
13545 (tui_regs_layout_command): New function.
13546 (extract_display_start_addr): Rewrite.
13547 (next_layout, prev_layout): Remove.
13548 (tui_layout_window::replace_window): New method.
13549 (tui_layout_split::replace_window): New method.
13550 (destroy_layout): New function.
13551 (layout_list): New global.
13552 (add_layout_command): New function.
13553 (initialize_layouts): Update.
13554 (tui_layout_command): New function.
13555 (_initialize_tui_layout): Install "layout" commands.
13556 * tui/tui-data.h (enum tui_layout_type): Remove.
13557 (tui_current_layout): Don't declare.
13558
13559 2020-02-22 Tom Tromey <tom@tromey.com>
13560
13561 * tui/tui-regs.c (tui_reg_layout): Remove.
13562 (tui_reg_command): Use tui_regs_layout.
13563 * tui/tui-layout.h (tui_reg_command): Declare.
13564 * tui/tui-layout.c (tui_reg_command): New function.
13565
13566 2020-02-22 Tom Tromey <tom@tromey.com>
13567
13568 * tui/tui.c (tui_rl_delete_other_windows): Call
13569 tui_remove_some_windows.
13570 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
13571 Declare method.
13572 (class tui_layout_window) <remove_windows>: New method.
13573 (class tui_layout_split) <remove_windows>: Declare.
13574 (tui_remove_some_windows): Declare.
13575 * tui/tui-layout.c (tui_remove_some_windows): New function.
13576 (tui_layout_split::remove_windows): New method.
13577
13578 2020-02-22 Tom Tromey <tom@tromey.com>
13579
13580 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
13581 * tui/tui-layout.h (tui_next_layout): Declare.
13582 * tui/tui-layout.c (tui_next_layout): New function.
13583
13584 2020-02-22 Tom Tromey <tom@tromey.com>
13585
13586 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
13587 correct coordinates.
13588
13589 2020-02-22 Tom Tromey <tom@tromey.com>
13590
13591 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
13592 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
13593 DATA_WIN case.
13594
13595 2020-02-22 Tom Tromey <tom@tromey.com>
13596
13597 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
13598 TUI_DISASM_WIN, not tui_win_list.
13599
13600 2020-02-22 Tom Tromey <tom@tromey.com>
13601
13602 * valprint.c (generic_val_print_enum_1)
13603 (val_print_type_code_flags): Style member names.
13604 * rust-lang.c (val_print_struct, rust_print_enum)
13605 (rust_print_struct_def, rust_internal_print_type): Style member
13606 names.
13607 * p-valprint.c (pascal_object_print_value_fields): Style member
13608 names. Only call fprintf_symbol_filtered for static members.
13609 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
13610 * f-valprint.c (f_val_print): Style member names.
13611 * f-typeprint.c (f_type_print_base): Style member names.
13612 * cp-valprint.c (cp_print_value_fields): Style member names. Only
13613 call fprintf_symbol_filtered for static members.
13614 (cp_print_class_member): Style member names.
13615 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
13616 member names.
13617 * ada-valprint.c (ada_print_scalar): Style enum names.
13618 (ada_val_print_enum): Likewise.
13619 * ada-typeprint.c (print_enum_type): Style enum names.
13620
13621 2020-02-21 Tom Tromey <tom@tromey.com>
13622
13623 * psympriv.h (struct partial_symtab): Update comment.
13624
13625 2020-02-21 Tom Tromey <tromey@adacore.com>
13626
13627 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
13628 type is CORE_ADDR.
13629
13630 2020-02-21 Tom de Vries <tdevries@suse.de>
13631
13632 PR gdb/25534
13633 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
13634 if dependencies[i]->user != NULL.
13635
13636 2020-02-21 Ali Tamur <tamur@google.com>
13637
13638 * dwarf2/read.c (dwarf2_name): Add null check.
13639
13640 2020-02-20 Tom Tromey <tom@tromey.com>
13641
13642 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
13643 ">=", in binary search.
13644 (dwarf2_find_containing_comp_unit): New overload.
13645 (run_test): New self-test.
13646 (_initialize_dwarf2_read): Register new test.
13647
13648 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
13649
13650 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
13651 * riscv-tdep.h: Likewise.
13652 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
13653 rv32-only CSR.
13654 * features/riscv/64bit-csr.xml: Regenerated.
13655
13656 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
13657 Tom Tromey <tom@tromey.com>
13658
13659 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
13660 of 'fputc_unfiltered'.
13661 (putchar_unfiltered): Call 'fputc_unfiltered'.
13662 (fputc_unfiltered): Call 'fputs_unfiltered'.
13663
13664 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
13665
13666 * config.in: Regenerate.
13667 * configure: Regenerate.
13668 * configure.ac: Add --with-python-libdir option.
13669 * main.c: Use WITH_PYTHON_LIBDIR.
13670
13671 2020-02-19 Tom Tromey <tom@tromey.com>
13672
13673 * symtab.c (general_symbol_info::compute_and_set_names): Use
13674 obstack_strndup. Simplify call to symbol_set_demangled_name.
13675
13676 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
13677
13678 * dwarf2/read.c (allocate_signatured_type_table,
13679 allocate_dwo_unit_table, allocate_type_unit_groups_table,
13680 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
13681 Remove objfile parameter, update all callers.
13682
13683 2020-02-19 Doug Evans <dje@google.com>
13684
13685 PR rust/25535
13686 * rust-lang.c (rust_print_enum): Apply embedded_offset to
13687 rust_enum_variant calculation.
13688
13689 2020-02-19 Tom Tromey <tromey@adacore.com>
13690
13691 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
13692
13693 2020-02-19 Tom Tromey <tromey@adacore.com>
13694
13695 * ada-lang.c (cache_symbol): Use obstack_strdup.
13696
13697 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
13698
13699 * configure: Regenerate.
13700
13701 2020-02-19 Tom Tromey <tromey@adacore.com>
13702
13703 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
13704 NULL check.
13705
13706 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
13707
13708 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
13709
13710 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
13711
13712 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
13713 if GDBSERVER is not defined.
13714 (riscv_tdesc_cache): Likewise, also store const target_desc.
13715 (STATIC_IN_GDB): Define.
13716 (riscv_create_target_description): Update declaration with
13717 STATIC_IN_GDB.
13718 (riscv_lookup_target_description): New function, only define if
13719 GDBSERVER is not defined.
13720 * arch/riscv.h (riscv_create_target_description): Declare only
13721 when GDBSERVER is defined.
13722 (riscv_lookup_target_description): New declaration when GDBSERVER
13723 is not defined.
13724 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
13725 (riscv_linux_read_features): ...this, and return
13726 riscv_gdbarch_features instead of target_desc.
13727 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
13728 (riscv_linux_read_description): Rename to...
13729 (riscv_linux_read_features): ...this.
13730 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
13731 Update to use riscv_gdbarch_features and
13732 riscv_lookup_target_description.
13733 * riscv-tdep.c (riscv_find_default_target_description): Use
13734 riscv_lookup_target_description instead of
13735 riscv_create_target_description.
13736
13737 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
13738
13739 * valprint.c (generic_val_print_enum_1): When printing a flag
13740 enum with value 0 and there is no enumerator with value 0, print
13741 just "0" instead of "(unknown: 0x0)".
13742
13743 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
13744
13745 * valprint.c (generic_val_print_enum_1): Print unknown part of
13746 flag enum in hex.
13747
13748 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
13749
13750 * dwarf2/read.c (update_enumeration_type_from_children): Allow
13751 flag enums to contain duplicate enumerators.
13752 * valprint.c (generic_val_print_enum_1): Update comment.
13753
13754 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
13755
13756 * dwarf2/read.c: Include "count-one-bits.h".
13757 (update_enumeration_type_from_children): If an enumerator has
13758 multiple bits set, don't treat the enumeration as a "flag enum".
13759 * valprint.c (generic_val_print_enum_1): Assert that enumerators
13760 of flag enums have 0 or 1 bit set.
13761
13762 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
13763
13764 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
13765 conversion.
13766 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13767 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
13768 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13769 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
13770 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13771
13772 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
13773
13774 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
13775
13776 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
13777
13778 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
13779 displaced_step_closure_up.
13780 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
13781 (struct displaced_step_closure_up):
13782 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13783 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
13784 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
13785 Likewise.
13786 * gdbarch.sh (displaced_step_copy_insn): Likewise.
13787 * gdbarch.c, gdbarch.h: Re-generate.
13788 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
13789 displaced_step_closure_up.
13790 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13791 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
13792 * infrun.h (displaced_step_closure_up): New type alias.
13793 (struct displaced_step_inferior_state) <step_closure>: Change
13794 type to displaced_step_closure_up.
13795 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
13796 displaced_step_closure_up.
13797 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13798
13799 2020-02-14 Tom Tromey <tom@tromey.com>
13800
13801 * minidebug.c (gnu_debug_key): New global.
13802 (find_separate_debug_file_in_section): Use it.
13803
13804 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
13805
13806 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
13807 std::unique_ptr.
13808 * gdbarch.c: Re-generate.
13809 * gdbarch.h: Re-generate.
13810 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
13811 change.
13812 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
13813 type to std::unique_ptr.
13814 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
13815 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13816 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
13817 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
13818 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
13819 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13820 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
13821 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
13822 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13823
13824 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
13825
13826 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
13827 std::unique_ptr.
13828 (displaced_step_clear): Rename to...
13829 (displaced_step_reset): ... this. Just call displaced->reset ().
13830 (displaced_step_clear_cleanup): Rename to...
13831 (displaced_step_reset_cleanup): ... this.
13832 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
13833 (displaced_step_fixup): Likewise.
13834 (resume_1): Likewise.
13835 (handle_inferior_event): Restore child's memory before calling
13836 displaced_step_fixup on the parent.
13837 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
13838 to std::unique_ptr.
13839 <step_closure>: Change type to std::unique_ptr.
13840
13841 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
13842
13843 * arm-tdep.c: Include count-one-bits.h.
13844 (cleanup_block_store_pc): Use count_one_bits.
13845 (cleanup_block_load_pc): Use count_one_bits.
13846 (arm_copy_block_xfer): Use count_one_bits.
13847 (thumb2_copy_block_xfer): Use count_one_bits.
13848 (thumb_copy_pop_pc_16bit): Use count_one_bits.
13849 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
13850 (thumb_get_next_pcs_raw): Use count_one_bits.
13851 (arm_get_next_pcs_raw): Use count_one_bits_l.
13852 * arch/arm.c (bitcount): Remove.
13853 * arch/arm.h (bitcount): Remove.
13854
13855 2020-02-14 Tom Tromey <tromey@adacore.com>
13856
13857 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
13858 Update.
13859 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
13860 * dwarf2/loc.c (call_site_find_chain_1): Return
13861 unique_xmalloc_ptr.
13862 (call_site_find_chain): Likewise.
13863
13864 2020-02-14 Richard Biener <rguenther@suse.de>
13865
13866 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
13867 on expression with division operators.
13868
13869 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13870
13871 * MAINTAINERS (Write After Approval): Adding myself.
13872
13873 2020-02-12 Tom Tromey <tom@tromey.com>
13874
13875 * event-loop.c (event_data, gdb_event, event_handler_func):
13876 Remove.
13877
13878 2020-02-12 Tom Tromey <tom@tromey.com>
13879
13880 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
13881 (dwarf2_frame_objfile_data): Add comment.
13882 (find_comp_unit, set_comp_unit): New functions.
13883 (dwarf2_frame_find_fde): Use find_comp_unit.
13884 (dwarf2_build_frame_info): Use set_comp_unit.
13885
13886 2020-02-12 Tom Tromey <tom@tromey.com>
13887
13888 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
13889 (comp_unit): Don't initialize objfile.
13890 (execute_cfa_program): Add text_offset parameter.
13891 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
13892 (dwarf2_frame_cache): Update.
13893 (dwarf2_build_frame_info): Don't set "objfile" member.
13894
13895 2020-02-12 Tom Tromey <tom@tromey.com>
13896
13897 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
13898 (decode_frame_entry): Likewise.
13899 (dwarf2_build_frame_info): Update.
13900
13901 2020-02-12 Tom Tromey <tom@tromey.com>
13902
13903 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
13904 (decode_frame_entry_1): Use the comp_unit obstack.
13905
13906 2020-02-12 Tom Tromey <tom@tromey.com>
13907
13908 * dwarf2/frame.c (struct comp_unit): Add initializers and
13909 constructor.
13910 (dwarf2_frame_objfile_data): Store a comp_unit.
13911 (dwarf2_frame_find_fde): Update.
13912 (dwarf2_build_frame_info): Use "new".
13913
13914 2020-02-12 Tom Tromey <tom@tromey.com>
13915
13916 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
13917 (dwarf2_fde_table): Typedef for std::vector.
13918 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
13919 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
13920 (decode_frame_entry): Update.
13921 (dwarf2_build_frame_info): Use "new".
13922
13923 2020-02-12 Christian Biesinger <cbiesinger@google.com>
13924
13925 * arm-tdep.c (arm_gdbarch_init): Update.
13926 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
13927 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
13928 have_neon, is_m>: Change to bool.
13929
13930 2020-02-12 Christian Biesinger <cbiesinger@google.com>
13931
13932 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
13933
13934 2020-02-12 Tom Tromey <tom@tromey.com>
13935
13936 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
13937
13938 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
13939
13940 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
13941 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
13942
13943 2020-02-11 Tom Tromey <tom@tromey.com>
13944
13945 * psymtab.h: Update comment.
13946
13947 2020-02-11 Tom Tromey <tom@tromey.com>
13948
13949 * gdb_obstack.h (struct auto_obstack): Use
13950 DISABLE_COPY_AND_ASSIGN.
13951
13952 2020-02-11 Tom Tromey <tom@tromey.com>
13953
13954 * dwarf2/frame.h (struct objfile): Don't forward declare.
13955
13956 2020-02-11 Christian Biesinger <cbiesinger@google.com>
13957
13958 * cris-tdep.c (cris_supply_gregset): Change signature to match
13959 what struct regset expects.
13960 (cris_regset): New struct.
13961 (fetch_core_registers): Remove.
13962 (cris_iterate_over_regset_sections): New function.
13963 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
13964 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
13965
13966 2020-02-11 Christian Biesinger <cbiesinger@google.com>
13967
13968 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
13969 registers.
13970
13971 2020-02-11 Christian Biesinger <cbiesinger@google.com>
13972
13973 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
13974
13975 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
13976
13977 * configure: Re-generate.
13978
13979 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
13980
13981 * configure: Re-generate.
13982
13983 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
13984
13985 * acinclude: Update warning.m4 path.
13986 * warning.m4: Move to gdbsupport.
13987
13988 2020-02-11 Tom Tromey <tromey@adacore.com>
13989
13990 * remote.c (remote_console_output): Update.
13991 * printcmd.c (printf_command): Update.
13992 * event-loop.c (gdb_wait_for_event): Update.
13993 * linux-nat.c (sigchld_handler): Update.
13994 * remote-sim.c (gdb_os_write_stdout): Update.
13995 (gdb_os_flush_stdout): Update.
13996 (gdb_os_flush_stderr): Update.
13997 (gdb_os_write_stderr): Update.
13998 * exceptions.c (print_exception): Update.
13999 * remote-fileio.c (remote_fileio_func_read): Update.
14000 (remote_fileio_func_write): Update.
14001 * tui/tui.c (tui_enable): Update.
14002 * tui/tui-interp.c (tui_interp::init): Update.
14003 * utils.c (init_page_info): Update.
14004 (putchar_unfiltered, fputc_unfiltered): Update.
14005 (gdb_flush): Update.
14006 (emit_style_escape): Update.
14007 (flush_wrap_buffer, fputs_maybe_filtered): Update.
14008 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
14009 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
14010 (stderr_file::write): Update.
14011 (stderr_file::puts): Update.
14012 * ui-file.h (ui_file_isatty, ui_file_write)
14013 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
14014 (ui_file_puts): Don't declare.
14015
14016 2020-02-10 Tom de Vries <tdevries@suse.de>
14017
14018 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
14019 sentinel to char *.
14020
14021 2020-02-09 Tom de Vries <tdevries@suse.de>
14022
14023 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
14024 filename if it matches "<artificial>".
14025
14026 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
14027
14028 * windows-tdep.c (struct enum_value_name): New struct.
14029 (create_enum): New function.
14030 (windows_get_siginfo_type): Create and use enum types.
14031
14032 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
14033
14034 * NEWS: Mention $_siginfo support for Windows.
14035 * windows-nat.c (handle_exception): Set siginfo_er.
14036 (windows_nat_target::mourn_inferior): Reset siginfo_er.
14037 (windows_xfer_siginfo): New function.
14038 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
14039 * windows-tdep.c (struct windows_gdbarch_data): New struct.
14040 (init_windows_gdbarch_data): New function.
14041 (get_windows_gdbarch_data): New function.
14042 (windows_get_siginfo_type): New function.
14043 (windows_init_abi): Register windows_get_siginfo_type.
14044 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
14045
14046 2020-02-08 Tom Tromey <tom@tromey.com>
14047
14048 * dwarf2/read.c (class cutu_reader) <cutu_reader,
14049 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
14050 <keep>: Declare method.
14051 <m_keep>: Remove member.
14052 <~cutu_reader>: Remove.
14053 (cutu_reader::init_tu_and_read_dwo_dies): Update.
14054 (cutu_reader::cutu_reader): Update.
14055 (cutu_reader::keep): Rename from ~cutu_reader.
14056 (process_psymtab_comp_unit, build_type_psymtabs_1)
14057 (process_skeletonless_type_unit, load_partial_comp_unit)
14058 (load_full_comp_unit, dwarf2_read_addr_index)
14059 (read_signatured_type): Update.
14060
14061 2020-02-08 Tom Tromey <tom@tromey.com>
14062
14063 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
14064 "want_partial_unit" parameter.
14065 (process_psymtab_comp_unit): Change want_partial_unit to bool.
14066 Inline check for DW_TAG_partial_unit.
14067 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
14068
14069 2020-02-08 Tom Tromey <tom@tromey.com>
14070
14071 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
14072 read.c.
14073 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
14074 read.c.
14075
14076 2020-02-08 Tom Tromey <tom@tromey.com>
14077
14078 * dwarf2/read.c (read_address): Move to comp-unit.c.
14079 (dwarf2_rnglists_process, dwarf2_ranges_process)
14080 (read_attribute_value, dwarf_decode_lines_1)
14081 (var_decode_location, decode_locdesc): Update.
14082 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
14083 read.c. Remove "cu" parameter.
14084 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
14085 method.
14086
14087 2020-02-08 Tom Tromey <tom@tromey.com>
14088
14089 * dwarf2/read.c (read_attribute_value, read_indirect_string)
14090 (read_indirect_line_string): Update.
14091 * dwarf2/comp-unit.c (read_offset): Remove.
14092 (read_comp_unit_head): Update.
14093 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
14094 method.
14095 (read_offset): Don't declare.
14096
14097 2020-02-08 Tom Tromey <tom@tromey.com>
14098
14099 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
14100 * dwarf2/read.c (struct comp_unit_head): Move to
14101 dwarf2/comp-unit.h.
14102 (enum class rcuh_kind): Move to comp-unit.h.
14103 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
14104 (read_comp_unit_head, error_check_comp_unit_head)
14105 (read_and_check_comp_unit_head): Move to comp-unit.c.
14106 (read_offset, dwarf_unit_type_name): Likewise.
14107 (create_debug_type_hash_table, read_cutu_die_from_dwo)
14108 (cutu_reader::cutu_reader, read_call_site_scope)
14109 (find_partial_die, follow_die_offset): Update.
14110 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
14111
14112 2020-02-08 Tom Tromey <tom@tromey.com>
14113
14114 * dwarf2/read.c (read_offset_1): Move to leb.c.
14115 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
14116 (dwarf_decode_macro_bytes): Update.
14117 * dwarf2/leb.c (read_offset): Rename; move from read.c.
14118 * dwarf2/leb.h (read_offset): Declare.
14119
14120 2020-02-08 Tom Tromey <tom@tromey.com>
14121
14122 * dwarf2/read.c (dwarf2_section_size): Remove.
14123 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
14124 Update.
14125 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
14126
14127 2020-02-08 Tom Tromey <tom@tromey.com>
14128
14129 * dwarf2/read.c (read_initial_length): Move to leb.c.
14130 * dwarf2/leb.h (read_initial_length): Declare.
14131 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
14132 handle_nonstd parameter.
14133 * dwarf2/frame.c (read_initial_length): Remove.
14134 (decode_frame_entry_1): Update.
14135
14136 2020-02-08 Tom Tromey <tom@tromey.com>
14137
14138 * dwarf2/loc.c (dwarf2_find_location_expression)
14139 (dwarf_evaluate_loc_desc::get_tls_address)
14140 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
14141 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
14142 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
14143 (dwarf2_compile_property_to_c)
14144 (dwarf2_loc_desc_get_symbol_read_needs)
14145 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
14146 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
14147 (loclist_describe_location, loclist_tracepoint_var_ref)
14148 (loclist_generate_c_location): Update.
14149 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
14150 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
14151 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
14152 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
14153 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
14154 (dwarf2_per_cu_data::addr_size)
14155 (dwarf2_per_cu_data::ref_addr_size)
14156 (dwarf2_per_cu_data::text_offset)
14157 (dwarf2_per_cu_data::addr_type): Now methods.
14158 (per_cu_header_read_in): Make per_cu "const".
14159 (dwarf2_version): Remove.
14160 (dwarf2_per_cu_data::int_type): Now a method.
14161 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
14162 (set_die_type, read_array_type, read_subrange_index_type)
14163 (read_tag_string_type, read_subrange_type): Update.
14164 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
14165 offset_size, ref_addr_size, text_offset, addr_type, version,
14166 objfile, int_type, addr_sized_int_type>: Declare methods.
14167
14168 2020-02-08 Tom Tromey <tom@tromey.com>
14169
14170 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
14171 Move earlier.
14172
14173 2020-02-08 Tom Tromey <tom@tromey.com>
14174
14175 * dwarf2/read.h (dwarf_line_debug): Declare.
14176 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
14177 * dwarf2/read.c: Move line_header code to new files.
14178 (dwarf_line_debug): No longer static.
14179 * dwarf2/line-header.c: New file.
14180 * dwarf2/line-header.h: New file.
14181
14182 2020-02-08 Tom Tromey <tom@tromey.com>
14183
14184 * dwarf2/read.c (struct line_header) <file_full_name,
14185 file_file_name>: Return unique_xmalloc_ptr.
14186 (line_header::file_file_name): Update.
14187 (line_header::file_full_name): Update.
14188 (dw2_get_file_names_reader): Update.
14189 (macro_start_file): Update.
14190
14191 2020-02-08 Tom Tromey <tom@tromey.com>
14192
14193 * dwarf2/read.c (struct line_header) <file_full_name,
14194 file_file_name>: Declare methods.
14195 (dw2_get_file_names_reader): Update.
14196 (file_file_name): Now a method.
14197 (file_full_name): Likewise.
14198 (macro_start_file): Update.
14199
14200 2020-02-08 Tom Tromey <tom@tromey.com>
14201
14202 * dwarf2/read.c (dwarf_always_disassemble)
14203 (show_dwarf_always_disassemble): Move to loc.c.
14204 (_initialize_dwarf2_read): Move "always-disassemble" registration
14205 to loc.c.
14206 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
14207 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
14208 static.
14209 (show_dwarf_always_disassemble): Move from read.c.
14210 (_initialize_dwarf2loc): Move always-disassemble from read.c.
14211
14212 2020-02-08 Tom Tromey <tom@tromey.com>
14213
14214 * dwarf2/read.c (~dwarf2_per_objfile): Update.
14215 (create_quick_file_names_table): Return htab_up.
14216 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
14217 Update.
14218 * dwarf2/read.h (struct dwarf2_per_objfile)
14219 <quick_file_names_table>: Now htab_up.
14220
14221 2020-02-08 Tom Tromey <tom@tromey.com>
14222
14223 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
14224
14225 2020-02-08 Tom Tromey <tom@tromey.com>
14226
14227 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
14228 Rewrite.
14229 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
14230 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
14231 (abbrev_table::abbrev_table): No longer inline.
14232 (ABBREV_HASH_SIZE): Remove.
14233 (abbrev_table::m_abbrevs): Now an htab_up.
14234
14235 2020-02-08 Tom Tromey <tom@tromey.com>
14236
14237 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
14238 (cutu_reader): Update.
14239 (build_type_psymtabs_1): Update.
14240 * dwarf2/abbrev.c (abbrev_table::read): Rename.
14241 (abbrev_table::alloc_abbrev): Update.
14242 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
14243 (abbrev_table::read): New static method, renamed from
14244 abbrev_table_read_table.
14245 (abbrev_table::alloc_abbrev)
14246 (abbrev_table::add_abbrev): Now private.
14247 (abbrev_table::abbrev_table): Now private.
14248 (abbrev_table::m_abbrev_obstack): Now private. Rename.
14249
14250 2020-02-08 Tom Tromey <tom@tromey.com>
14251
14252 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
14253 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
14254 htab_up.
14255
14256 2020-02-08 Tom Tromey <tom@tromey.com>
14257
14258 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
14259 htab_up.
14260 (lookup_dwo_unit_in_dwp): Update.
14261 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
14262 on obstack.
14263
14264 2020-02-08 Tom Tromey <tom@tromey.com>
14265
14266 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
14267 obstack.
14268
14269 2020-02-08 Tom Tromey <tom@tromey.com>
14270
14271 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
14272 line_header_hash.
14273 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
14274 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
14275 Change type to htab_up.
14276
14277 2020-02-08 Tom Tromey <tom@tromey.com>
14278
14279 * dwarf2/read.c (allocate_type_unit_groups_table): Return
14280 htab_up. Don't allocate on obstack.
14281 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
14282 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
14283 Change type to htab_up.
14284
14285 2020-02-08 Tom Tromey <tom@tromey.com>
14286
14287 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
14288 Change type to htab_up.
14289 * dwarf2/read.c (create_signatured_type_table_from_index)
14290 (create_signatured_type_table_from_debug_names)
14291 (create_all_type_units, add_type_unit)
14292 (lookup_dwo_signatured_type, lookup_signatured_type)
14293 (process_skeletonless_type_unit): Update.
14294 (create_debug_type_hash_table, create_debug_types_hash_table):
14295 Change type of types_htab.
14296 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
14297 htab_up. Don't allocate on obstack.
14298 (create_cus_hash_table): Change type of cus_htab parameter.
14299 (struct dwo_file) <cus, tus>: Now htab_up.
14300 (lookup_dwo_signatured_type, lookup_dwo_cutu)
14301 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
14302 (queue_and_load_all_dwo_tus): Update.
14303 * dwarf2/index-write.c (write_gdbindex): Update.
14304 (write_debug_names): Update.
14305
14306 2020-02-08 Tom Tromey <tom@tromey.com>
14307
14308 * dwarf2/read.h (struct dwarf2_queue_item): Move from
14309 dwarf2/read.c. Remove "next" member. Add constructor ntad
14310 destructor.
14311 (struct dwarf2_per_objfile) <queue>: New member.
14312 * dwarf2/read.c (struct dwarf2_queue_item): Move to
14313 dwarf2/read.h.
14314 (dwarf2_queue, dwarf2_queue_tail): Remove.
14315 (class dwarf2_queue_guard): Add parameter to constructor. Use
14316 DISABLE_COPY_AND_ASSIGN.
14317 <m_per_objfile>: New member.
14318 <~dwarf2_queue_guard>: Rewrite.
14319 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
14320 Update.
14321 (~dwarf2_queue_item): New.
14322
14323 2020-02-08 Tom Tromey <tom@tromey.com>
14324
14325 * dwarf2/read.c (struct die_info) <has_children>: New member.
14326 (dw2_get_file_names_reader): Remove has_children.
14327 (dw2_get_file_names): Update.
14328 (read_cutu_die_from_dwo): Remove has_children.
14329 (cutu_reader::init_tu_and_read_dwo_dies)
14330 (cutu_reader::cutu_reader): Update.
14331 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
14332 Remove has_children.
14333 (build_type_psymtabs_1, process_skeletonless_type_unit)
14334 (load_partial_comp_unit, load_full_comp_unit): Update.
14335 (create_dwo_cu_reader): Remove has_children.
14336 (create_cus_hash_table, read_die_and_children): Update.
14337 (read_full_die_1,read_full_die): Remove has_children.
14338 (read_signatured_type): Update.
14339 (class cutu_reader) <has_children>: Remove.
14340
14341 2020-02-08 Tom Tromey <tom@tromey.com>
14342
14343 * dwarf2/expr.c: Rename from dwarf2expr.c.
14344 * dwarf2/expr.h: Rename from dwarf2expr.h.
14345 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
14346 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
14347 * dwarf2/frame.c: Rename from dwarf2-frame.c.
14348 * dwarf2/frame.h: Rename from dwarf2-frame.h.
14349 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
14350 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
14351 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
14352 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
14353 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
14354 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
14355 * dwarf2/loc.c: Rename from dwarf2loc.c.
14356 * dwarf2/loc.h: Rename from dwarf2loc.h.
14357 * dwarf2/read.c: Rename from dwarf2read.c.
14358 * dwarf2/read.h: Rename from dwarf2read.h.
14359 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
14360 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
14361 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
14362 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
14363 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
14364 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
14365 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
14366 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
14367 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
14368 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
14369 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
14370 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
14371 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
14372 Update.
14373 * Makefile.in (COMMON_SFILES): Update.
14374 (HFILES_NO_SRCDIR): Update.
14375
14376 2020-02-08 Tom Tromey <tom@tromey.com>
14377
14378 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
14379 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
14380
14381 2020-02-08 Tom Tromey <tom@tromey.com>
14382
14383 * dwarf2read.h (struct die_info): Don't declare.
14384
14385 2020-02-08 Tom Tromey <tom@tromey.com>
14386
14387 * dwarf2read.h (die_info_ptr): Remove typedef.
14388
14389 2020-02-08 Tom Tromey <tom@tromey.com>
14390
14391 * dwarf2read.c (read_call_site_scope)
14392 (handle_data_member_location, dwarf2_add_member_fn)
14393 (mark_common_block_symbol_computed, read_common_block)
14394 (attr_to_dynamic_prop, partial_die_info::read)
14395 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
14396 (dwarf2_symbol_mark_computed, set_die_type): Update.
14397 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
14398 method.
14399 (attr_form_is_block): Don't declare.
14400 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
14401
14402 2020-02-08 Tom Tromey <tom@tromey.com>
14403
14404 * dwarf2read.c (dwarf2_find_base_address, )
14405 (read_call_site_scope, rust_containing_type)
14406 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
14407 (handle_data_member_location, dwarf2_add_member_fn)
14408 (get_alignment, read_structure_type, process_structure_scope)
14409 (mark_common_block_symbol_computed, read_common_block)
14410 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
14411 (partial_die_info::read, read_attribute_value, new_symbol)
14412 (lookup_die_type, dwarf2_get_ref_die_offset)
14413 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
14414 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
14415 (dwarf2_symbol_mark_computed): Update.
14416 * dwarf2/attribute.h (struct attribute) <value_as_address,
14417 form_is_section_offset, form_is_constant, form_is_ref>: Declare
14418 methods.
14419 (value_as_address, attr_form_is_section_offset)
14420 (attr_form_is_constant, attr_form_is_ref): Don't declare.
14421 * dwarf2/attribute.c (attribute::value_as_address)
14422 (attribute::form_is_section_offset, attribute::form_is_constant)
14423 (attribute::form_is_ref): Now methods.
14424
14425 2020-02-08 Tom Tromey <tom@tromey.com>
14426
14427 * dwarf2read.c (struct attribute, DW_STRING)
14428 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
14429 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
14430 (attr_form_is_block, attr_form_is_section_offset)
14431 (attr_form_is_constant, attr_form_is_ref): Move.
14432 * dwarf2/attribute.h: New file.
14433 * dwarf2/attribute.c: New file, from dwarf2read.c.
14434 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
14435
14436 2020-02-08 Tom Tromey <tom@tromey.com>
14437
14438 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
14439 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
14440 Move.
14441 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
14442 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
14443 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
14444 abbrev.c.
14445 * dwarf2/abbrev.h: New file.
14446 * dwarf2/abbrev.c: New file, from dwarf2read.c.
14447 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
14448
14449 2020-02-08 Tom Tromey <tom@tromey.com>
14450
14451 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
14452 (dwarf2_section_size, dwarf2_get_section_info)
14453 (create_signatured_type_table_from_debug_names)
14454 (create_addrmap_from_aranges, read_debug_names_from_section)
14455 (get_gdb_index_contents_from_section, read_comp_unit_head)
14456 (error_check_comp_unit_head, read_abbrev_offset)
14457 (create_debug_type_hash_table, init_cu_die_reader)
14458 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
14459 (read_comp_units_from_section, create_cus_hash_table)
14460 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
14461 (create_dwp_v2_section, dwarf2_rnglists_process)
14462 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
14463 (abbrev_table_read_table, read_indirect_string_at_offset_from)
14464 (read_indirect_string_from_dwz, read_addr_index_1)
14465 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
14466 (dwarf_decode_macro_bytes, dwarf_decode_macros)
14467 (fill_in_loclist_baton): Update.
14468 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
14469 get_containing_section, get_bfd_owner, get_bfd_section,
14470 get_file_name, get_id, get_flags, empty, read>: Declare methods.
14471 (dwarf2_read_section, get_section_name, get_section_file_name)
14472 (get_containing_section, get_section_bfd_owner)
14473 (get_section_bfd_section, get_section_name, get_section_file_name)
14474 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
14475 declare.
14476 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
14477 (dwarf2_section_info::get_bfd_owner)
14478 (dwarf2_section_info::get_bfd_section)
14479 (dwarf2_section_info::get_name)
14480 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
14481 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
14482 (dwarf2_section_info::read): Now methods.
14483 * dwarf-index-write.c (class debug_names): Update.
14484
14485 2020-02-08 Tom Tromey <tom@tromey.com>
14486
14487 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
14488 Move to dwarf2/section.h.
14489 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
14490 (get_section_bfd_section, get_section_name)
14491 (get_section_file_name, get_section_id, get_section_flags)
14492 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
14493 dwarf2/section.c.
14494 * dwarf2/section.h: New file.
14495 * dwarf2/section.c: New file, from dwarf2read.c.
14496 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
14497
14498 2020-02-08 Tom Tromey <tom@tromey.com>
14499
14500 * dwarf2read.h (read_unsigned_leb128): Don't declare.
14501 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
14502 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
14503 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
14504 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
14505 * dwarf2/leb.h: New file, from dwarf2read.c.
14506 * dwarf2/leb.c: New file, from dwarf2read.c.
14507 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
14508 Remove.
14509 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
14510 (COMMON_SFILES): Add dwarf2/leb.c.
14511
14512 2020-02-08 Joel Brobecker <brobecker@adacore.com>
14513
14514 GDB 9.1 released.
14515
14516 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
14517
14518 PR gdb/25190:
14519 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
14520 * gdb/remote.c (remote_console_output): Update.
14521 * gdb/ui-file.c (fputs_unfiltered): Rename to...
14522 (ui_file_puts): ...this.
14523 * gdb/ui-file.h (ui_file_puts): Add declaration.
14524 * gdb/utils.c (emit_style_escape): Update.
14525 (flush_wrap_buffer): Update.
14526 (fputs_maybe_filtered): Update.
14527 (fputs_unfiltered): Add function.
14528
14529 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
14530
14531 * gdb/event-loop.c (gdb_wait_for_event): Update.
14532 * gdb/printcmd.c (printf_command): Update.
14533 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
14534 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
14535 (gdb_os_flush_stderr): Update.
14536 * gdb/remote.c (remote_console_output): Update.
14537 * gdb/ui-file.c (gdb_flush): Rename to...
14538 (ui_file_flush): ...this.
14539 (stderr_file::write): Update.
14540 (stderr_file::puts): Update.
14541 * gdb/ui-file.h (gdb_flush): Rename to...
14542 (ui_file_flush): ...this.
14543 * gdb/utils.c (gdb_flush): Add function.
14544 * gdb/utils.h (gdb_flush): Add declaration.
14545
14546 2020-02-07 Tom Tromey <tromey@adacore.com>
14547
14548 PR breakpoints/24915:
14549 * source.c (find_and_open_source): Do not check basenames_may_differ.
14550
14551 2020-02-07 Tom Tromey <tom@tromey.com>
14552
14553 * README: Update gdbserver documentation.
14554 * gdbserver: Move to top level.
14555 * configure.tgt (build_gdbserver): Remove.
14556 * configure.ac: Remove --enable-gdbserver.
14557 * configure: Rebuild.
14558 * Makefile.in (distclean): Don't mention gdbserver.
14559
14560 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
14561
14562 * source-cache.c (source_cache::ensure): Surround
14563 get_plain_source_lines with a try/catch.
14564 (source_cache::get_line_charpos): Get rid of try/catch
14565 and only check for the return value of "ensure".
14566 * tui/tui-source.c (tui_source_window::set_contents):
14567 Simplify "nlines" calculation.
14568
14569 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
14570
14571 * MAINTAINERS (Write After Approval): Add myself.
14572
14573 2020-02-05 Christian Biesinger <cbiesinger@google.com>
14574
14575 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
14576 function call.
14577
14578 2020-02-05 Christian Biesinger <cbiesinger@google.com>
14579
14580 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
14581
14582 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
14583
14584 * nat/riscv-linux-tdesc.h: New file.
14585 * nat/riscv-linux-tdesc.c: New file, taking code from...
14586 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
14587 ... here.
14588 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
14589 NATDEPFILES.
14590
14591 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
14592
14593 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
14594 we don't set the fake simulator ptid to the null_ptid.
14595
14596 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
14597
14598 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
14599 * gdbthread.h (class thread_info) <resumed>: Likewise.
14600 * infrun.c (resume_1): Likewise.
14601 (proceed): Likewise.
14602 (infrun_thread_stop_requested): Likewise.
14603 (stop_all_threads): Likewise.
14604 (handle_inferior_event): Likewise.
14605 (restart_threads): Likewise.
14606 (finish_step_over): Likewise.
14607 (keep_going_stepped_thread): Likewise.
14608 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
14609 (linux_handle_extended_wait): Likewise.
14610 * record-btrace.c (get_thread_current_frame_id): Likewise.
14611 * record-full.c (record_full_wait_1): Likewise.
14612 * remote.c (remote_target::process_initial_stop_replies): Likewise.
14613 * target.c (target_resume): Likewise.
14614 * thread.c (set_running_thread): Likewise.
14615
14616 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14617
14618 * f-valprint.c (f77_print_array_1): Changed datatype of index
14619 variable to LONGEST from int to enable it to contain bound
14620 values correctly.
14621
14622 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
14623
14624 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
14625 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
14626 offsets according to FLEN determined.
14627 (riscv_linux_nat_target::read_description): Determine FLEN
14628 dynamically.
14629 (riscv_linux_nat_target::fetch_registers): Size regset buffer
14630 according to FLEN determined.
14631 (riscv_linux_nat_target::store_registers): Likewise.
14632
14633 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
14634
14635 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
14636 when reg->group is empty and reggroup is not.
14637
14638 2020-01-31 Tom Tromey <tromey@adacore.com>
14639
14640 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
14641 Call beneath target's mourn_inferior after unpushing.
14642
14643 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
14644
14645 PR tui/9765
14646 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
14647 have enough lines to fill the screen, still return the lowest
14648 address we found.
14649
14650 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
14651
14652 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
14653 '-', '<', and '>' commands.
14654
14655 2020-01-29 Pedro Alves <palves@redhat.com>
14656 Sergio Durigan Junior <sergiodj@redhat.com>
14657
14658 * infcmd.c (construct_inferior_arguments): Assert that
14659 'argc' is greater than 0.
14660
14661 2020-01-29 Luis Machado <luis.machado@linaro.org>
14662
14663 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
14664 (BRK_INSN_MASK): Define to 0xd4200000.
14665 (aarch64_program_breakpoint_here_p): New function.
14666 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
14667 * arch-utils.c (default_program_breakpoint_here_p): Moved from
14668 breakpoint.c.
14669 * arch-utils.h (default_program_breakpoint_here_p): Moved from
14670 breakpoint.h
14671 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
14672 call gdbarch_program_breakpoint_here_p.
14673 (program_breakpoint_here): Moved to arch-utils.c, renamed to
14674 default_program_breakpoint_here_p, changed return type to bool and
14675 simplified.
14676 * breakpoint.h (program_breakpoint_here): Moved prototype to
14677 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
14678 return type to bool.
14679 * gdbarch.c: Regenerate.
14680 * gdbarch.h: Regenerate.
14681 * gdbarch.sh (program_breakpoint_here_p): New method.
14682 * infrun.c (handle_signal_stop): Call
14683 gdbarch_program_breakpoint_here_p.
14684
14685 2020-01-26 Tom Tromey <tom@tromey.com>
14686
14687 * ctfread.c (struct ctf_fp_info): Reindent.
14688 (_initialize_ctfread): Remove.
14689
14690 2020-01-26 Tom Tromey <tom@tromey.com>
14691
14692 * psymtab.c (partial_map_expand_apply)
14693 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
14694 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
14695 (psym_print_stats, psym_expand_symtabs_for_function)
14696 (psym_map_symbol_filenames, psym_map_matching_symbols)
14697 (psym_expand_symtabs_matching)
14698 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
14699 (maintenance_check_psymtabs): Use new methods.
14700 * psympriv.h (struct partial_symtab) <readin_p,
14701 get_compunit_symtab>: New methods.
14702 <readin, compunit_symtab>: Remove members.
14703 (struct standard_psymtab): New.
14704 (struct legacy_psymtab): Derive from standard_psymtab.
14705 * dwarf2read.h (struct dwarf2_psymtab): Derive from
14706 standard_psymtab.
14707 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
14708
14709 2020-01-26 Tom Tromey <tom@tromey.com>
14710
14711 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
14712 read_dependencies. Add assert.
14713 * psymtab.c (partial_symtab::read_dependencies): New method.
14714 * psympriv.h (struct partial_symtab) <read_dependencies>: New
14715 method.
14716 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
14717 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
14718 read_dependencies.
14719 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
14720 Add assert.
14721
14722 2020-01-26 Tom Tromey <tom@tromey.com>
14723
14724 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
14725 Call expand_psymtab.
14726 (xcoff_read_symtab): Call expand_psymtab.
14727 (xcoff_start_psymtab, xcoff_end_psymtab): Set
14728 legacy_expand_psymtab.
14729 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
14730 method.
14731 (struct legacy_psymtab) <expand_psymtab>: Implement.
14732 <legacy_expand_psymtab>: New member.
14733 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
14734 (parse_partial_symbols): Set legacy_expand_psymtab.
14735 (psymtab_to_symtab_1): Change argument order. Call
14736 expand_psymtab.
14737 (new_psymtab): Set legacy_expand_psymtab.
14738 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
14739 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
14740 expand_psymtab.
14741 (dwarf2_psymtab::expand_psymtab): Rename from
14742 psymtab_to_symtab_1. Call expand_psymtab.
14743 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
14744 (dbx_end_psymtab): Likewise.
14745 (dbx_psymtab_to_symtab_1): Change argument order. Call
14746 expand_psymtab.
14747 (dbx_read_symtab): Call expand_psymtab.
14748 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
14749 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
14750 (ctf_psymtab::read_symtab): Call expand_psymtab.
14751
14752 2020-01-26 Tom Tromey <tom@tromey.com>
14753
14754 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
14755 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
14756 messages.
14757 * mdebugread.c (mdebug_read_symtab): Remove prints.
14758 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
14759 assert.
14760 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
14761
14762 2020-01-26 Tom Tromey <tom@tromey.com>
14763
14764 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
14765 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
14766 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
14767 legacy_symtab.
14768 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
14769 * psymtab.c (psymtab_to_symtab): Call method.
14770 (dump_psymtab): Update.
14771 * psympriv.h (struct partial_symtab): Add virtual destructor.
14772 <read_symtab>: New method.
14773 (struct legacy_symtab): New.
14774 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
14775 (struct pst_map) <pst>: Now a legacy_psymtab.
14776 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
14777 (new_psymtab): Use legacy_psymtab.
14778 * dwarf2read.h (struct dwarf2_psymtab): New.
14779 (struct dwarf2_per_cu_data) <psymtab>: Use it.
14780 * dwarf2read.c (dwarf2_create_include_psymtab)
14781 (dwarf2_build_include_psymtabs, create_type_unit_group)
14782 (create_partial_symtab, process_psymtab_comp_unit_reader)
14783 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
14784 (set_partial_user): Use dwarf2_psymtab.
14785 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
14786 (psymtab_to_symtab_1, process_full_comp_unit)
14787 (process_full_type_unit, dwarf2_ranges_read)
14788 (dwarf2_get_pc_bounds, psymtab_include_file_name)
14789 (dwarf_decode_lines): Use dwarf2_psymtab.
14790 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
14791 (add_address_entry_worker, write_one_signatured_type)
14792 (recursively_count_psymbols, recursively_write_psymbols)
14793 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
14794 (write_debug_names): Likewise.
14795 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
14796 <pst>: Now a legacy_psymtab.
14797 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
14798 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
14799 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
14800 * ctfread.c (struct ctf_psymtab): New.
14801 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
14802 ctf_psymtab.
14803 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
14804 (create_partial_symtab): Return a ctf_psymtab.
14805 (scan_partial_symbols): Update.
14806
14807 2020-01-26 Tom Tromey <tom@tromey.com>
14808
14809 * xcoffread.c (xcoff_start_psymtab): Use new.
14810 * psymtab.c (partial_symtab::partial_symtab): New constructor,
14811 renamed from start_psymtab_common.
14812 * psympriv.h (struct partial_symtab): Add new constructor.
14813 (start_psymtab_common): Don't declare.
14814 * mdebugread.c (parse_partial_symbols): Use new.
14815 * dwarf2read.c (create_partial_symtab): Use new.
14816 * dbxread.c (start_psymtab): Use new.
14817 * ctfread.c (create_partial_symtab): Use new.
14818
14819 2020-01-26 Tom Tromey <tom@tromey.com>
14820
14821 * xcoffread.c (xcoff_end_psymtab): Use new.
14822 * psymtab.c (start_psymtab_common): Use new.
14823 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
14824 Update.
14825 * psympriv.h (struct partial_symtab): Add parameters to
14826 constructor. Don't inline.
14827 (allocate_psymtab): Don't declare.
14828 * mdebugread.c (new_psymtab): Use new.
14829 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
14830 * dbxread.c (dbx_end_psymtab): Use new.
14831
14832 2020-01-26 Tom Tromey <tom@tromey.com>
14833
14834 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
14835 allocate_psymtab. Update documentation.
14836 * psymtab.c (psymtab_storage::install_psymtab): Rename from
14837 allocate_psymtab. Do not use new.
14838 (allocate_psymtab): Use new. Update.
14839
14840 2020-01-26 Tom Tromey <tom@tromey.com>
14841
14842 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
14843 * psymtab.c (psym_print_stats): Update.
14844 * psympriv.h (struct partial_symtab) <readin,
14845 psymtabs_addrmap_supported, anonymous>: Now bool.
14846 * mdebugread.c (psymtab_to_symtab_1): Update.
14847 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
14848 (build_type_psymtabs_reader, psymtab_to_symtab_1)
14849 (process_full_comp_unit, process_full_type_unit): Update.
14850 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
14851 * ctfread.c (psymtab_to_symtab): Update.
14852
14853 2020-01-26 Tom Tromey <tom@tromey.com>
14854
14855 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
14856 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
14857 * psymtab.c (psymtab_storage): Delete psymtabs.
14858 (psymtab_storage::allocate_psymtab): Use new.
14859 (psymtab_storage::discard_psymtab): Use delete.
14860 * psympriv.h (struct partial_symtab): Add constructor and
14861 initializers.
14862
14863 2020-01-26 Tom Tromey <tom@tromey.com>
14864
14865 * machoread.c: Do not include psympriv.h.
14866
14867 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14868
14869 * NEWS: Mention the new option and the set/show commands.
14870
14871 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14872
14873 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
14874 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
14875 (validate_exec_file): New variables, enums, functions.
14876 (exec_file_locate_attach, print_section_info): Style the filenames.
14877 (_initialize_exec): Install show_exec_file_mismatch_command and
14878 set_exec_file_mismatch_command.
14879 * gdbcore.h (validate_exec_file): Declare.
14880 * infcmd.c (attach_command): Call validate_exec_file.
14881 * remote.c ( remote_target::remote_add_inferior): Likewise.
14882
14883 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14884
14885 * frame.c (find_frame_sal): Move call to get_next_frame into more
14886 inner scope.
14887 * inline-frame.c (inilne_state) <inline_state>: Update argument
14888 types.
14889 (inilne_state) <skipped_symbol>: Rename to...
14890 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
14891 (skip_inline_frames): Build vector of skipped symbols and use this
14892 to reate the inline_state.
14893 (inline_skipped_symbol): Add a comment and some assertions, fetch
14894 skipped symbol from the list.
14895
14896 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14897
14898 * buildsym.c (lte_is_less_than): Delete.
14899 (buildsym_compunit::end_symtab_with_blockvector): Create local
14900 lambda function to sort line table entries, and use
14901 std::stable_sort instead of std::sort.
14902 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
14903 markers when looking for a previous line.
14904
14905 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14906
14907 * dwarf2read.c (lnp_state_machine::record_line): Include
14908 end_sequence parameter in debug print out. Record the line if we
14909 are at an end_sequence marker even if it's not the start of a
14910 statement.
14911 * symmisc.c (maintenance_print_one_line_table): Print end of
14912 sequence markers with 'END' not '0'.
14913
14914 2020-01-24 Pedro Alves <palves@redhat.com>
14915
14916 PR gdb/25410
14917 * thread.c (scoped_restore_current_thread::restore): Use
14918 switch_to_inferior_no_thread.
14919 * exec.c: Include "progspace-and-thread.h".
14920 (add_target_sections, remove_target_sections):
14921 scoped_restore_current_pspace_and_thread instead of
14922 scoped_restore_current_thread.
14923 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
14924 and aspace to the inferior before calling clone_program_space.
14925 Remove stale comment.
14926
14927 2020-01-24 Christian Biesinger <cbiesinger@google.com>
14928
14929 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
14930 (arm_netbsd_nat_target::fetch_registers): ...this.
14931 (arm_nbsd_nat_target::store_registers): Rename to...
14932 (arm_netbsd_nat_target::store_registers): ...this.
14933
14934 2020-01-24 Christian Biesinger <cbiesinger@google.com>
14935
14936 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
14937 register_t.
14938
14939 2020-01-24 Christian Biesinger <cbiesinger@google.com>
14940
14941 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
14942 Update comment.
14943 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
14944 Likewise.
14945 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
14946 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
14947 the correct replacement (iterate_over_regset_sections).
14948 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
14949 Update comment.
14950
14951 2020-01-24 Graham Markall <graham.markall@embecosm.com>
14952
14953 PR gdb/23718
14954 * gdb/python/python.c (execute_gdb_command): Call
14955 async_enable_stdin in catch block.
14956
14957 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14958
14959 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
14960 SWITCH_THRU_ALL_UIS.
14961
14962 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14963
14964 PR tui/9765
14965 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
14966 comment, add extra parameter, and update to store previous symbol
14967 when appropriate.
14968 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
14969 add extra parameter.
14970 * tui/tui-disasm.c (tui_disassemble): Update header comment,
14971 remove unneeded parameter, add try/catch around gdb_print_insn,
14972 rewrite to add items to asm_lines vector.
14973 (tui_find_backward_disassembly_start_address): New function.
14974 (tui_find_disassembly_address): Updated throughout.
14975 (tui_disasm_window::set_contents): Update for changes to
14976 tui_disassemble.
14977 (tui_disasm_window::do_scroll_vertical): No need to adjust the
14978 number of lines to scroll.
14979
14980 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
14981
14982 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
14983 (SECT_OFF_DATA): Likewise.
14984 (SECT_OFF_RODATA): Likewise.
14985 (SECT_OFF_TEXT): Likewise.
14986 (SECT_OFF_BSS): Likewise.
14987 (struct objfile) <text_section_offset, data_section_offset>: New
14988 methods.
14989 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
14990 objfile::text_section_offset.
14991 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
14992 * coffread.c (coff_symtab_read): Likewise.
14993 (enter_linenos): Likewise.
14994 (process_coff_symbol): Likewise.
14995 * ctfread.c (get_objfile_text_range): Likewise.
14996 * dtrace-probe.c (dtrace_probe::get_relocated_address):
14997 Use objfile::data_section_offset.
14998 * dwarf2-frame.c (execute_cfa_program): Use
14999 objfile::text_section_offset.
15000 (dwarf2_frame_find_fde): Likewise.
15001 * dwarf2read.c (create_addrmap_from_index): Likewise.
15002 (create_addrmap_from_aranges): Likewise.
15003 (dw2_find_pc_sect_compunit_symtab): Likewise.
15004 (process_psymtab_comp_unit_reader): Likewise.
15005 (add_partial_symbol): Likewise.
15006 (add_partial_subprogram): Likewise.
15007 (process_full_comp_unit): Likewise.
15008 (read_file_scope): Likewise.
15009 (read_func_scope): Likewise.
15010 (read_lexical_block_scope): Likewise.
15011 (read_call_site_scope): Likewise.
15012 (dwarf2_rnglists_process): Likewise.
15013 (dwarf2_ranges_process): Likewise.
15014 (dwarf2_ranges_read): Likewise.
15015 (dwarf_decode_lines_1): Likewise.
15016 (new_symbol): Likewise.
15017 (dwarf2_fetch_die_loc_sect_off): Likewise.
15018 (dwarf2_per_cu_text_offset): Likewise.
15019 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
15020 * hppa-tdep.c (read_unwind_info): Likewise.
15021 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
15022 * psympriv.h (struct partial_symtab): Likewise.
15023 * psymtab.c (find_pc_sect_psymtab): Likewise.
15024 * solib-svr4.c (enable_break): Likewise.
15025 * stap-probe.c (relocate_address): Use
15026 objfile::data_section_offset.
15027 * xcoffread.c (enter_line_range): Use
15028 objfile::text_section_offset.
15029 (read_xcoff_symtab): Likewise.
15030
15031 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
15032
15033 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
15034 declaration to narrower scopes.
15035
15036 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
15037
15038 * darwin-nat.h (struct darwin_exception_msg, enum
15039 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
15040 Move up.
15041 (class darwin_nat_target) <wait_1, check_new_threads,
15042 decode_exception_message, decode_message, stop_inferior,
15043 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
15044 * darwin-nat.c (darwin_check_new_threads): Rename to...
15045 (darwin_nat_target::check_new_threads): ... this.
15046 (darwin_suspend_inferior_it): Remove.
15047 (darwin_decode_exception_message): Rename to...
15048 (darwin_nat_target::decode_exception_message): ... this.
15049 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
15050 (darwin_decode_message): Rename to...
15051 (darwin_nat_target::decode_message): ... this.
15052 (cancel_breakpoint): Rename to...
15053 (darwin_nat_target::cancel_breakpoint): ... this.
15054 (darwin_wait): Rename to...
15055 (darwin_nat_target::wait_1): ... this. Use range-based for loop
15056 instead of iterate_over_inferiors.
15057 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
15058 (darwin_stop_inferior): Rename to...
15059 (darwin_nat_target::stop_inferior): ... this.
15060 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
15061 (darwin_init_thread_list): Rename to...
15062 (darwin_nat_target::init_thread_list): ... this.
15063 (darwin_ptrace_him): Rename to...
15064 (darwin_nat_target::ptrace_him): ... this.
15065 (darwin_nat_target::create_inferior): Pass lambda function to
15066 fork_inferior.
15067 (darwin_nat_target::detach): Call stop_inferior instead of
15068 darwin_stop_inferior.
15069 * fork-inferior.h (fork_inferior): Change init_trace_fun
15070 parameter to gdb::function_view.
15071 * fork-inferior.c (fork_inferior): Likewise.
15072
15073 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
15074
15075 * i386-cygwin-tdep.c (core_process_module_section): Update.
15076 * windows-nat.c (struct lm_info_windows): Add text_offset.
15077 (windows_xfer_shared_libraries): Update.
15078 * windows-tdep.c (windows_xfer_shared_library):
15079 Add text_offset_cached argument.
15080 * windows-tdep.h (windows_xfer_shared_library): Update.
15081
15082 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
15083
15084 * gdbarch.sh: Add declaration for _initialize_gdbarch.
15085
15086 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
15087
15088 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
15089 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
15090 replace with range-based for.
15091 (gdbsim_interrupt_inferior): Remove.
15092 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
15093 with a range-based for. Inline code from
15094 gdbsim_interrupt_inferior.
15095
15096 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
15097
15098 * infrun.c (proceed): Fix indentation.
15099
15100 2020-01-21 Tom Tromey <tromey@adacore.com>
15101
15102 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
15103 * python/python.c (python_extension_ops): Update.
15104 (gdbpy_colorize): New function.
15105 * python/lib/gdb/__init__.py (colorize): New function.
15106 * extension.h (ext_lang_colorize): Declare.
15107 * extension.c (ext_lang_colorize): New function.
15108 * extension-priv.h (struct extension_language_ops) <colorize>: New
15109 member.
15110 * cli/cli-style.c (_initialize_cli_style): Update help text.
15111
15112 2020-01-21 Luis Machado <luis.machado@linaro.org>
15113
15114 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
15115 <cond>: Change type to bool.
15116 (aarch64_displaced_step_b_cond): Update cond to use bool type.
15117 (aarch64_displaced_step_cb): Likewise.
15118 (aarch64_displaced_step_tb): Likewise.
15119
15120 2020-01-21 Luis Machado <luis.machado@linaro.org>
15121
15122 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
15123 output.
15124
15125 2020-01-21 Luis Machado <luis.machado@linaro.org>
15126
15127 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
15128 <pc_adjust>: Adjust the documentation.
15129 (aarch64_displaced_step_fixup): Check if PC really moved before
15130 adjusting it.
15131
15132 2020-01-19 Tom Tromey <tom@tromey.com>
15133
15134 * disasm.c (~gdb_disassembler): New destructor.
15135 (gdb_buffered_insn_length): Call disassemble_free_target.
15136 * disasm.h (class gdb_disassembler): Declare destructor. Use
15137 DISABLE_COPY_AND_ASSIGN.
15138
15139 2020-01-19 Tom Tromey <tom@tromey.com>
15140
15141 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
15142 (die_reader_func_ftype): Remove.
15143 (cutu_reader): New class.
15144 (dw2_get_file_names_reader): Remove "data" parameter.
15145 (dw2_get_file_names): Use cutu_reader.
15146 (create_debug_type_hash_table): Update.
15147 (read_cutu_die_from_dwo): Update comment.
15148 (lookup_dwo_unit): Add dwo_name parameter.
15149 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
15150 die_reader_func_ftype and data parameters.
15151 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
15152 Remove die_reader_func_ftype and data parameters.
15153 (~cutu_reader): New; from init_cutu_and_read_dies.
15154 (cutu_reader::cutu_reader): Rename from
15155 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
15156 and data parameters.
15157 (init_cutu_and_read_dies_simple): Remove.
15158 (struct process_psymtab_comp_unit_data): Remove.
15159 (process_psymtab_comp_unit_reader): Remove data parameter; add
15160 want_partial_unit and pretend_language parameters.
15161 (process_psymtab_comp_unit): Use cutu_reader.
15162 (build_type_psymtabs_reader): Remove data parameter.
15163 (build_type_psymtabs_1): Use cutu_reader.
15164 (process_skeletonless_type_unit): Likewise.
15165 (load_partial_comp_unit_reader): Remove.
15166 (load_partial_comp_unit): Use cutu_reader.
15167 (load_full_comp_unit_reader): Remove.
15168 (load_full_comp_unit): Use cutu_reader.
15169 (struct create_dwo_cu_data): Remove.
15170 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
15171 dwo_unit parameters.
15172 (create_cus_hash_table): Use cutu_reader.
15173 (struct dwarf2_read_addr_index_data): Remove.
15174 (dwarf2_read_addr_index_reader): Remove.
15175 (dwarf2_read_addr_index): Use cutu_reader.
15176 (read_signatured_type_reader): Remove.
15177 (read_signatured_type): Use cutu_reader.
15178
15179 2020-01-19 Tom Tromey <tom@tromey.com>
15180
15181 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
15182 * tui/tui-wingeneral.h (class tui_suppress_output): New.
15183 (tui_wrefresh): Declare.
15184 * tui/tui-wingeneral.c (suppress_output): New global.
15185 (tui_suppress_output, ~tui_suppress_output): New constructor and
15186 destructor.
15187 (tui_wrefresh): New function.
15188 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
15189 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
15190 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
15191 method.
15192 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
15193 tui_wrefresh.
15194 (tui_data_window::no_refresh): New method.
15195 (tui_data_item_window::refresh_window): Call tui_wrefresh.
15196 (tui_reg_command): Use tui_suppress_output
15197 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
15198 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
15199 method.
15200 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
15201
15202 2020-01-19 Tom Tromey <tom@tromey.com>
15203
15204 * tui/tui-winsource.c (tui_update_source_windows_with_line):
15205 Handle case where symtab is null.
15206
15207 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
15208
15209 * linux-fork.c (one_fork_p): Simplify.
15210
15211 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15212
15213 * top.c (struct qt_args): Remove.
15214 (kill_or_detach): Change return type to void, replace `void *`
15215 parameter with a proper one.
15216 (print_inferior_quit_action): Likewise.
15217 (quit_confirm): Use range-based for loop to iterate over inferiors.
15218 (quit_force): Likewise.
15219
15220 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15221
15222 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
15223 `void *` parameter with proper parameters.
15224 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
15225 (print_one_inferior): Change return type to void, replace `void *`
15226 parameter with proper parameters.
15227 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
15228 inferiors.
15229 (get_other_inferior): Remove.
15230 (mi_cmd_remove_inferior): Use range-based loop to iterate over
15231 inferiors.
15232
15233 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15234
15235 * mi/mi-interp.c (report_initial_inferior): Remove.
15236 (mi_interp::init): Use range-based for to iterate over inferiors.
15237
15238 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15239
15240 * python/py-inferior.c (build_inferior_list): Remove.
15241 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
15242
15243 2020-01-16 Christian Biesinger <cbiesinger@google.com>
15244
15245 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
15246 (btrace_stitch_trace): Likewise.
15247 * charset.c (intermediate_encoding): Likewise (vaild).
15248 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
15249 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
15250 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
15251
15252 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
15253
15254 * windows-tdep.c (windows_get_tlb_type):
15255 Add rtl_user_process_parameters type.
15256
15257 2020-01-16 Pedro Alves <palves@redhat.com>
15258 Norbert Lange <nolange79@gmail.com>
15259
15260 PR build/24805
15261 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
15262 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
15263 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
15264 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
15265 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
15266 (ps_plog): Redeclare exported functions with default visibility.
15267
15268 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
15269
15270 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
15271 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
15272
15273 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
15274
15275 * infcmd.c (post_create_inferior): Use get_thread_regcache
15276 instead of get_current_regcache.
15277
15278 2020-01-14 Tom Tromey <tom@tromey.com>
15279
15280 PR symtab/12535:
15281 * python/python.c (gdbpy_decode_line): Treat empty string the same
15282 as no argument.
15283
15284 2020-01-14 Tom Tromey <tom@tromey.com>
15285
15286 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
15287
15288 2020-01-14 Tom Tromey <tom@tromey.com>
15289
15290 * nat/linux-btrace.c: Don't include <config.h>.
15291 * nat/linux-ptrace.c: Don't include <config.h>.
15292 * nat/x86-linux-dregs.c: Don't include <config.h>.
15293
15294 2020-01-14 Tom Tromey <tom@tromey.com>
15295
15296 * configure: Rebuild.
15297 * configure.ac: Move many checks to ../gdbsupport/common.m4.
15298
15299 2020-01-14 Tom Tromey <tom@tromey.com>
15300
15301 * nat/x86-linux-dregs.c: Include configh.h.
15302 * nat/linux-ptrace.c: Include configh.h.
15303 * nat/linux-btrace.c: Include configh.h.
15304 * defs.h: Include config.h, bfd.h.
15305 * configure.ac: Don't source common.host.
15306 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
15307 * configure: Rebuild.
15308 * acinclude.m4: Update path.
15309 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
15310 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
15311 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
15312 (CLIBS): Add LIBSUPPORT.
15313 (CDEPS): Likewise.
15314 (COMMON_SFILES): Remove gdbsupport files.
15315 (HFILES_NO_SRCDIR): Likewise.
15316 (stamp-version): Update path to create-version.sh.
15317 (ALLDEPFILES): Remove gdbsupport files.
15318
15319 2020-01-14 Tom Tromey <tom@tromey.com>
15320
15321 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
15322 USE_WIN32API when needed.
15323 * configure.ac (USE_WIN32API): Don't define.
15324 (WIN32LIBS): Use WIN32APILIBS.
15325 * configure: Rebuild.
15326
15327 2020-01-14 Tom Tromey <tom@tromey.com>
15328
15329 * configure: Rebuild.
15330 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
15331
15332 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
15333
15334 * skip.c (skip_function_command): Make skip w/o arguments use the
15335 name of the inlined function if pc is inside any inlined function.
15336
15337 2020-01-14 Luis Machado <luis.machado@linaro.org>
15338
15339 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
15340 * infrun.c (resume_1): Likewise.
15341 (handle_inferior_event): Remove stale comment.
15342 * linux-nat.c (linux_nat_target::resume): Update comments.
15343 (save_stop_reason): Likewise.
15344 (linux_nat_filter_event): Likewise.
15345 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
15346
15347 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15348
15349 * elfread.c (record_minimal_symbol): Set section index to 0 for
15350 non-allocatable sections.
15351
15352
15353 2020-01-13 Ali Tamur <tamur@google.com>
15354
15355 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
15356 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
15357 to gdb::optional. Update comments.
15358 (dwo_file): Update comments.
15359 (read_attribute): Update API to take an additional out parameter,
15360 need_reprocess. This is used to mark attributes that need other
15361 attributes (e.g. str_offsets_base) for correct computation which may not
15362 have been read yet.
15363 (read_attribute_reprocess): New function declaration.
15364 (read_addr_index): Likewise.
15365 (read_dwo_str_index): Likewise.
15366 (read_stub_str_index): Likewise.
15367 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
15368 (lookup_addr_base): New function definition.
15369 (lookup_ranges_base): Likewise.
15370 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
15371 lookup_ranges_base.
15372 (init_cutu_and_read_dies): Update comments.
15373 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
15374 unit. This is used to inherit parent's str_offsets_base and addr_base.
15375 Update comments.
15376 (init_cutu_and_read_dies_simple): Reflect API changes.
15377 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
15378 (create_cus_hash_table): Change API to take parent compile unit.
15379 Reflect API changes.
15380 (open_and_init_dwo_file): Reflect API changes.
15381 (dwarf2_get_pc_bounds): Update comments.
15382 (dwarf2_record_block_ranges): Likewise.
15383 (read_full_die_1): Change implementation to reprocess attributes that
15384 need str_offsets_base and addr_base.
15385 (partial_die_info::read): Likewise.
15386 (read_attribute_reprocess): New function definition.
15387 (read_attribute_value): Change API to take an additional out parameter,
15388 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
15389 when a non-dwo compile unit has index based attributes.
15390 (read_attribute): Reflect API changes.
15391 (read_addr_index_1): Reflect API changes. Update comments.
15392 (dwarf2_read_addr_index_data): Reflect API changes.
15393 (dwarf2_read_addr_index): Likewise.
15394 (read_str_index): Change API and implementation. This becomes a helper
15395 to be used by the new string index related methods. Update error
15396 message and comments.
15397 (read_dwo_str_index): New function definition.
15398 (read_stub_str_index): Likewise.
15399 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
15400 * symfile.h (dwarf2_debug_sections): Likewise.
15401 * xcoffread.c (dwarf2_debug_sections): Likewise.
15402
15403 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
15404
15405 * gdbcore.h (struct core_fns) <core_read_registers>: Change
15406 core_reg_sect type to gdb_byte *.
15407 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
15408 * cris-tdep.c (fetch_core_registers): Likewise.
15409 * corelow.c (core_target::get_core_register_section): Change
15410 type of `contents` to gdb::byte_vector.
15411
15412 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15413
15414 * tui/tui-wingeneral.c (box_win): Position the title in the center
15415 of the border.
15416
15417 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15418
15419 * corelow.c (core_target::get_core_register_section): Use
15420 std::vector instead of alloca.
15421
15422 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
15423
15424 * warning.m4: Add -Wmissing-declarations to build_warnings.
15425 * configure: Re-generate.
15426
15427 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
15428
15429 * python/python.c (init__gdb_module): Add declaration.
15430
15431 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
15432
15433 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
15434 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
15435 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
15436 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
15437 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
15438 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
15439 * ada-exp.y (_initialize_ada_exp): Add declaration.
15440 * ada-lang.c (_initialize_ada_language): Add declaration.
15441 * ada-tasks.c (_initialize_tasks): Add declaration.
15442 * agent.c (_initialize_agent): Add declaration.
15443 * aix-thread.c (_initialize_aix_thread): Add declaration.
15444 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
15445 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
15446 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
15447 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
15448 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
15449 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
15450 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
15451 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
15452 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
15453 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
15454 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
15455 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
15456 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
15457 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
15458 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
15459 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
15460 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
15461 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
15462 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
15463 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
15464 * annotate.c (_initialize_annotate): Add declaration.
15465 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
15466 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
15467 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
15468 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
15469 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
15470 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
15471 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
15472 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
15473 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
15474 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
15475 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
15476 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
15477 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
15478 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
15479 * auto-load.c (_initialize_auto_load): Add declaration.
15480 * auxv.c (_initialize_auxv): Add declaration.
15481 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
15482 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
15483 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
15484 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
15485 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
15486 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
15487 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
15488 * breakpoint.c (_initialize_breakpoint): Add declaration.
15489 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
15490 * btrace.c (_initialize_btrace): Add declaration.
15491 * charset.c (_initialize_charset): Add declaration.
15492 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
15493 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
15494 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
15495 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
15496 * cli/cli-script.c (_initialize_cli_script): Add declaration.
15497 * cli/cli-style.c (_initialize_cli_style): Add declaration.
15498 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
15499 * coffread.c (_initialize_coffread): Add declaration.
15500 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
15501 * compile/compile.c (_initialize_compile): Add declaration.
15502 * complaints.c (_initialize_complaints): Add declaration.
15503 * completer.c (_initialize_completer): Add declaration.
15504 * copying.c (_initialize_copying): Add declaration.
15505 * corefile.c (_initialize_core): Add declaration.
15506 * corelow.c (_initialize_corelow): Add declaration.
15507 * cp-abi.c (_initialize_cp_abi): Add declaration.
15508 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
15509 * cp-support.c (_initialize_cp_support): Add declaration.
15510 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
15511 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
15512 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
15513 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
15514 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
15515 * ctfread.c (_initialize_ctfread): Add declaration.
15516 * d-lang.c (_initialize_d_language): Add declaration.
15517 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
15518 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
15519 * dbxread.c (_initialize_dbxread): Add declaration.
15520 * dcache.c (_initialize_dcache): Add declaration.
15521 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
15522 * disasm.c (_initialize_disasm): Add declaration.
15523 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
15524 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
15525 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
15526 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
15527 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
15528 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
15529 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
15530 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
15531 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
15532 * elfread.c (_initialize_elfread): Add declaration.
15533 * exec.c (_initialize_exec): Add declaration.
15534 * extension.c (_initialize_extension): Add declaration.
15535 * f-lang.c (_initialize_f_language): Add declaration.
15536 * f-valprint.c (_initialize_f_valprint): Add declaration.
15537 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
15538 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
15539 * filesystem.c (_initialize_filesystem): Add declaration.
15540 * findcmd.c (_initialize_mem_search): Add declaration.
15541 * findvar.c (_initialize_findvar): Add declaration.
15542 * fork-child.c (_initialize_fork_child): Add declaration.
15543 * frame-base.c (_initialize_frame_base): Add declaration.
15544 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
15545 * frame.c (_initialize_frame): Add declaration.
15546 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
15547 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
15548 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
15549 * gcore.c (_initialize_gcore): Add declaration.
15550 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
15551 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
15552 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
15553 * gdbarch.c (_initialize_gdbarch): Add declaration.
15554 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
15555 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
15556 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
15557 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
15558 * go-lang.c (_initialize_go_language): Add declaration.
15559 * go32-nat.c (_initialize_go32_nat): Add declaration.
15560 * guile/guile.c (_initialize_guile): Add declaration.
15561 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
15562 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
15563 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
15564 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
15565 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
15566 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
15567 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
15568 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
15569 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
15570 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
15571 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
15572 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
15573 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
15574 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
15575 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
15576 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
15577 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
15578 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
15579 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
15580 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
15581 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
15582 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
15583 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
15584 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
15585 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
15586 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
15587 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
15588 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
15589 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
15590 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
15591 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
15592 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
15593 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
15594 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
15595 * infcall.c (_initialize_infcall): Add declaration.
15596 * infcmd.c (_initialize_infcmd): Add declaration.
15597 * inflow.c (_initialize_inflow): Add declaration.
15598 * infrun.c (_initialize_infrun): Add declaration.
15599 * interps.c (_initialize_interpreter): Add declaration.
15600 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
15601 * jit.c (_initialize_jit): Add declaration.
15602 * language.c (_initialize_language): Add declaration.
15603 * linux-fork.c (_initialize_linux_fork): Add declaration.
15604 * linux-nat.c (_initialize_linux_nat): Add declaration.
15605 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
15606 * linux-thread-db.c (_initialize_thread_db): Add declaration.
15607 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
15608 * m2-lang.c (_initialize_m2_language): Add declaration.
15609 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
15610 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
15611 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
15612 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
15613 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
15614 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
15615 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
15616 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
15617 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
15618 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
15619 * machoread.c (_initialize_machoread): Add declaration.
15620 * macrocmd.c (_initialize_macrocmd): Add declaration.
15621 * macroscope.c (_initialize_macroscope): Add declaration.
15622 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
15623 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
15624 * maint.c (_initialize_maint_cmds): Add declaration.
15625 * mdebugread.c (_initialize_mdebugread): Add declaration.
15626 * memattr.c (_initialize_mem): Add declaration.
15627 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
15628 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
15629 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
15630 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
15631 * mi/mi-main.c (_initialize_mi_main): Add declaration.
15632 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
15633 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
15634 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
15635 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
15636 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
15637 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
15638 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
15639 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
15640 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
15641 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
15642 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
15643 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
15644 * mipsread.c (_initialize_mipsread): Add declaration.
15645 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
15646 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
15647 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
15648 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
15649 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
15650 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
15651 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
15652 * nto-procfs.c (_initialize_procfs): Add declaration.
15653 * objc-lang.c (_initialize_objc_language): Add declaration.
15654 * observable.c (_initialize_observer): Add declaration.
15655 * opencl-lang.c (_initialize_opencl_language): Add declaration.
15656 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
15657 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
15658 * osabi.c (_initialize_gdb_osabi): Add declaration.
15659 * osdata.c (_initialize_osdata): Add declaration.
15660 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
15661 * parse.c (_initialize_parse): Add declaration.
15662 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
15663 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
15664 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
15665 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
15666 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
15667 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
15668 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
15669 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
15670 * printcmd.c (_initialize_printcmd): Add declaration.
15671 * probe.c (_initialize_probe): Add declaration.
15672 * proc-api.c (_initialize_proc_api): Add declaration.
15673 * proc-events.c (_initialize_proc_events): Add declaration.
15674 * proc-service.c (_initialize_proc_service): Add declaration.
15675 * procfs.c (_initialize_procfs): Add declaration.
15676 * producer.c (_initialize_producer): Add declaration.
15677 * psymtab.c (_initialize_psymtab): Add declaration.
15678 * python/python.c (_initialize_python): Add declaration.
15679 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
15680 * record-btrace.c (_initialize_record_btrace): Add declaration.
15681 * record-full.c (_initialize_record_full): Add declaration.
15682 * record.c (_initialize_record): Add declaration.
15683 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
15684 * regcache.c (_initialize_regcache): Add declaration.
15685 * reggroups.c (_initialize_reggroup): Add declaration.
15686 * remote-notif.c (_initialize_notif): Add declaration.
15687 * remote-sim.c (_initialize_remote_sim): Add declaration.
15688 * remote.c (_initialize_remote): Add declaration.
15689 * reverse.c (_initialize_reverse): Add declaration.
15690 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
15691 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
15692 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
15693 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
15694 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
15695 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
15696 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
15697 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
15698 Add declaration.
15699 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
15700 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
15701 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
15702 * rust-exp.y (_initialize_rust_exp): Add declaration.
15703 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
15704 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
15705 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
15706 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
15707 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
15708 * score-tdep.c (_initialize_score_tdep): Add declaration.
15709 * ser-go32.c (_initialize_ser_dos): Add declaration.
15710 * ser-mingw.c (_initialize_ser_windows): Add declaration.
15711 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
15712 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
15713 * ser-uds.c (_initialize_ser_socket): Add declaration.
15714 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
15715 * serial.c (_initialize_serial): Add declaration.
15716 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
15717 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
15718 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
15719 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
15720 * skip.c (_initialize_step_skip): Add declaration.
15721 * sol-thread.c (_initialize_sol_thread): Add declaration.
15722 * solib-aix.c (_initialize_solib_aix): Add declaration.
15723 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
15724 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
15725 * solib-frv.c (_initialize_frv_solib): Add declaration.
15726 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
15727 * solib-target.c (_initialize_solib_target): Add declaration.
15728 * solib.c (_initialize_solib): Add declaration.
15729 * source-cache.c (_initialize_source_cache): Add declaration.
15730 * source.c (_initialize_source): Add declaration.
15731 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
15732 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
15733 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
15734 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
15735 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
15736 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
15737 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
15738 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
15739 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
15740 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
15741 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
15742 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
15743 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
15744 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
15745 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
15746 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
15747 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
15748 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
15749 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
15750 * stabsread.c (_initialize_stabsread): Add declaration.
15751 * stack.c (_initialize_stack): Add declaration.
15752 * stap-probe.c (_initialize_stap_probe): Add declaration.
15753 * std-regs.c (_initialize_frame_reg): Add declaration.
15754 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
15755 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
15756 * symfile.c (_initialize_symfile): Add declaration.
15757 * symmisc.c (_initialize_symmisc): Add declaration.
15758 * symtab.c (_initialize_symtab): Add declaration.
15759 * target.c (_initialize_target): Add declaration.
15760 * target-connection.c (_initialize_target_connection): Add
15761 declaration.
15762 * target-dcache.c (_initialize_target_dcache): Add declaration.
15763 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
15764 * thread.c (_initialize_thread): Add declaration.
15765 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
15766 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
15767 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
15768 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
15769 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
15770 * tracectf.c (_initialize_ctf): Add declaration.
15771 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
15772 * tracefile.c (_initialize_tracefile): Add declaration.
15773 * tracepoint.c (_initialize_tracepoint): Add declaration.
15774 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
15775 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
15776 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
15777 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
15778 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
15779 * tui/tui-win.c (_initialize_tui_win): Add declaration.
15780 * tui/tui.c (_initialize_tui): Add declaration.
15781 * typeprint.c (_initialize_typeprint): Add declaration.
15782 * ui-style.c (_initialize_ui_style): Add declaration.
15783 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
15784 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
15785 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
15786 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
15787 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
15788 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
15789 * unittests/filtered_iterator-selftests.c
15790 (_initialize_filtered_iterator_selftests): Add declaration.
15791 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
15792 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
15793 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
15794 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
15795 * unittests/main-thread-selftests.c
15796 (_initialize_main_thread_selftests): Add declaration.
15797 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
15798 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
15799 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
15800 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
15801 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
15802 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
15803 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
15804 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
15805 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
15806 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
15807 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
15808 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
15809 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
15810 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
15811 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
15812 declaration.
15813 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
15814 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
15815 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
15816 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
15817 * user-regs.c (_initialize_user_regs): Add declaration.
15818 * utils.c (_initialize_utils): Add declaration.
15819 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
15820 * valops.c (_initialize_valops): Add declaration.
15821 * valprint.c (_initialize_valprint): Add declaration.
15822 * value.c (_initialize_values): Add declaration.
15823 * varobj.c (_initialize_varobj): Add declaration.
15824 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
15825 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
15826 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
15827 * windows-nat.c (_initialize_windows_nat): Add declaration.
15828 (_initialize_check_for_gdb_ini): Add declaration.
15829 (_initialize_loadable): Add declaration.
15830 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
15831 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
15832 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
15833 * xcoffread.c (_initialize_xcoffread): Add declaration.
15834 * xml-support.c (_initialize_xml_support): Add declaration.
15835 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
15836 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
15837 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
15838 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
15839
15840 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15841
15842 * regformats/regdat.sh: Generate declaration for init function.
15843
15844 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15845
15846 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
15847 up.
15848 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
15849 close_one_inferior>: New methods.
15850 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
15851 pass down target to find_inferior_pid.
15852 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
15853 Pass down target to find_inferior_ptid.
15854 (gdbsim_target::create_inferior): Pass down target to
15855 add_thread_silent.
15856 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
15857 target down to find_inferior_ptid and switch_to_thread.
15858 (gdbsim_target::close): Update to call close_one_inferior.
15859 (struct resume_data): Remove.
15860 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
15861 directly, rather than through a void pointer.
15862 (gdbsim_target::resume): Update to call resume_one_inferior.
15863
15864 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
15865
15866 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
15867
15868 2020-01-12 Pedro Alves <palves@redhat.com>
15869
15870 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
15871 directly for the current inferior instead of
15872 discard_all_inferiors.
15873 (discard_all_inferiors): Delete.
15874
15875 2020-01-11 Tom Tromey <tom@tromey.com>
15876
15877 * tui/tui-wingeneral.c (box_win): Check cli_styling.
15878 * tui/tui-winsource.c (tui_source_window_base::refill): Use
15879 deprecated_safe_get_selected_frame.
15880
15881 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
15882
15883 * inferior.c (print_inferior): Switch inferior before printing it.
15884
15885 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
15886 Pedro Alves <palves@redhat.com>
15887
15888 * progspace-and-thread.c (switch_to_program_space_and_thread):
15889 Assert there's an inferior for PSPACE. Use
15890 switch_to_inferior_no_thread to switch the inferior too.
15891 * progspace.c (program_space::~program_space): Call
15892 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
15893 (program_space::free_all_objfiles): Don't call clear_symtab_users
15894 here.
15895 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
15896
15897 2020-01-10 Pedro Alves <palves@redhat.com>
15898
15899 * NEWS: Mention multi-target debugging, "info connections", and
15900 "add-inferior -no-connection".
15901
15902 2020-01-10 Pedro Alves <palves@redhat.com>
15903
15904 * infrun.c: Include "target-connection.h".
15905 (check_multi_target_resumption): New.
15906 (proceed): Call it.
15907 * target-connection.c (make_target_connection_string): Make
15908 extern.
15909 * target-connection.h (make_target_connection_string): Declare.
15910
15911 2020-01-10 Pedro Alves <palves@redhat.com>
15912
15913 * Makefile.in (COMMON_SFILES): Add target-connection.c.
15914 * inferior.c (uiout_field_connection): New function.
15915 (print_inferior): Add new "connection-id" column.
15916 (add_inferior_command): Show connection number/string of added
15917 inferior.
15918 * process-stratum-target.h
15919 (process_stratum_target::connection_string): New virtual method.
15920 (process_stratum_target::connection_number): New field.
15921 * remote.c (remote_target::connection_string): New override.
15922 * target-connection.c: New file.
15923 * target-connection.h: New file.
15924 * target.c (decref_target): Remove process_stratum targets from
15925 the connection list.
15926 (target_stack::push): Add process_stratum targets to the
15927 connection list.
15928
15929 2020-01-10 Pedro Alves <palves@redhat.com>
15930
15931 Revert:
15932 2016-04-12 Pedro Alves <palves@redhat.com>
15933 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
15934 Remove references to name.
15935 * serial.h (struct serial) <name>: Delete.
15936
15937 2020-01-10 Pedro Alves <palves@redhat.com>
15938
15939 * gdbarch-selftests.c (register_to_value_test): Remove "target
15940 already pushed" check.
15941
15942 2020-01-10 Pedro Alves <palves@redhat.com>
15943 John Baldwin <jhb@FreeBSD.org>
15944
15945 * aarch64-linux-nat.c
15946 (aarch64_linux_nat_target::thread_architecture): Adjust.
15947 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
15948 (task_command_1): Likewise.
15949 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
15950 (aix_thread_target::wait, aix_thread_target::fetch_registers)
15951 (aix_thread_target::store_registers)
15952 (aix_thread_target::thread_alive): Adjust.
15953 * amd64-fbsd-tdep.c: Include "inferior.h".
15954 (amd64fbsd_get_thread_local_address): Pass down target.
15955 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
15956 thread's gdbarch instead of target_gdbarch.
15957 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
15958 get_last_target_status.
15959 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
15960 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
15961 inferiors.
15962 (update_inserted_breakpoint_locations): Skip if inferiors with no
15963 execution.
15964 (update_global_location_list): When handling moribund locations,
15965 find representative inferior for location's pspace, and use thread
15966 count of its process_stratum target.
15967 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
15968 * bsd-uthread.c (bsd_uthread_target::wait): Use
15969 as_process_stratum_target and adjust thread_change_ptid and
15970 add_thread calls.
15971 (bsd_uthread_target::update_thread_list): Use
15972 as_process_stratum_target and adjust find_thread_ptid,
15973 thread_change_ptid and add_thread calls.
15974 * btrace.c (maint_btrace_packet_history_cmd): Adjust
15975 find_thread_ptid call.
15976 * corelow.c (add_to_thread_list): Adjust add_thread call.
15977 (core_target_open): Adjust add_thread_silent and thread_count
15978 calls.
15979 (core_target::pid_to_str): Adjust find_inferior_ptid call.
15980 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
15981 * event-top.c (async_disconnect): Pop targets from all inferiors.
15982 * exec.c (add_target_sections): Push exec target on all inferiors
15983 sharing the program space.
15984 (remove_target_sections): Remove the exec target from all
15985 inferiors sharing the program space.
15986 (exec_on_vfork): New.
15987 * exec.h (exec_on_vfork): Declare.
15988 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
15989 Pass it down.
15990 (fbsd_nat_target::update_thread_list): Adjust.
15991 (fbsd_nat_target::resume): Adjust.
15992 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
15993 down.
15994 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
15995 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
15996 get_thread_arch_regcache call.
15997 * fork-child.c (gdb_startup_inferior): Pass target down to
15998 startup_inferior and set_executing.
15999 * gdbthread.h (struct process_stratum_target): Forward declare.
16000 (add_thread, add_thread_silent, add_thread_with_info)
16001 (in_thread_list): Add process_stratum_target parameter.
16002 (find_thread_ptid(inferior*, ptid_t)): New overload.
16003 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
16004 parameter.
16005 (all_threads()): Delete overload.
16006 (all_threads, all_non_exited_threads): Add process_stratum_target
16007 parameter.
16008 (all_threads_safe): Use brace initialization.
16009 (thread_count): Add process_stratum_target parameter.
16010 (set_resumed, set_running, set_stop_requested, set_executing)
16011 (threads_are_executing, finish_thread_state): Add
16012 process_stratum_target parameter.
16013 (switch_to_thread): Use is_current_thread.
16014 * i386-fbsd-tdep.c: Include "inferior.h".
16015 (i386fbsd_get_thread_local_address): Pass down target.
16016 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
16017 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
16018 have_inferiors check.
16019 * inf-ptrace.c (inf_ptrace_target::create_inferior)
16020 (inf_ptrace_target::attach): Adjust.
16021 * infcall.c (run_inferior_call): Adjust.
16022 * infcmd.c (run_command_1): Pass target to
16023 scoped_finish_thread_state.
16024 (proceed_thread_callback): Skip inferiors with no execution.
16025 (continue_command): Rename 'all_threads' local to avoid hiding
16026 'all_threads' function. Adjust get_last_target_status call.
16027 (prepare_one_step): Adjust set_running call.
16028 (signal_command): Use user_visible_resume_target. Compare thread
16029 pointers instead of inferior_ptid.
16030 (info_program_command): Adjust to pass down target.
16031 (attach_command): Mark target's 'thread_executing' flag.
16032 (stop_current_target_threads_ns): New, factored out from ...
16033 (interrupt_target_1): ... this. Switch inferior before making
16034 target calls.
16035 * inferior-iter.h
16036 (struct all_inferiors_iterator, struct all_inferiors_range)
16037 (struct all_inferiors_safe_range)
16038 (struct all_non_exited_inferiors_range): Filter on
16039 process_stratum_target too. Remove explicit.
16040 * inferior.c (inferior::inferior): Push dummy target on target
16041 stack.
16042 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
16043 Add process_stratum_target parameter, and pass it down.
16044 (have_live_inferiors): Adjust.
16045 (switch_to_inferior_and_push_target): New.
16046 (add_inferior_command, clone_inferior_command): Handle
16047 "-no-connection" parameter. Use
16048 switch_to_inferior_and_push_target.
16049 (_initialize_inferior): Mention "-no-connection" option in
16050 the help of "add-inferior" and "clone-inferior" commands.
16051 * inferior.h: Include "process-stratum-target.h".
16052 (interrupt_target_1): Use bool.
16053 (struct inferior) <push_target, unpush_target, target_is_pushed,
16054 find_target_beneath, top_target, process_target, target_at,
16055 m_stack>: New.
16056 (discard_all_inferiors): Delete.
16057 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
16058 (all_inferiors, all_non_exited_inferiors): Add
16059 process_stratum_target parameter.
16060 * infrun.c: Include "gdb_select.h" and <unordered_map>.
16061 (target_last_proc_target): New global.
16062 (follow_fork_inferior): Push target on new inferior. Pass target
16063 to add_thread_silent. Call exec_on_vfork. Handle target's
16064 reference count.
16065 (follow_fork): Adjust get_last_target_status call. Also consider
16066 target.
16067 (follow_exec): Push target on new inferior.
16068 (struct execution_control_state) <target>: New field.
16069 (user_visible_resume_target): New.
16070 (do_target_resume): Call target_async.
16071 (resume_1): Set target's threads_executing flag. Consider resume
16072 target.
16073 (commit_resume_all_targets): New.
16074 (proceed): Also consider resume target. Skip threads of inferiors
16075 with no execution. Commit resumtion in all targets.
16076 (start_remote): Pass current inferior to wait_for_inferior.
16077 (infrun_thread_stop_requested): Consider target as well. Pass
16078 thread_info pointer to clear_inline_frame_state instead of ptid.
16079 (infrun_thread_thread_exit): Consider target as well.
16080 (random_pending_event_thread): New inferior parameter. Use it.
16081 (do_target_wait): Rename to ...
16082 (do_target_wait_1): ... this. Add inferior parameter, and pass it
16083 down.
16084 (threads_are_resumed_pending_p, do_target_wait): New.
16085 (prepare_for_detach): Adjust calls.
16086 (wait_for_inferior): New inferior parameter. Handle it. Use
16087 do_target_wait_1 instead of do_target_wait.
16088 (fetch_inferior_event): Adjust. Switch to representative
16089 inferior. Pass target down.
16090 (set_last_target_status): Add process_stratum_target parameter.
16091 Save target in global.
16092 (get_last_target_status): Add process_stratum_target parameter and
16093 handle it.
16094 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
16095 (context_switch): Check inferior_ptid == null_ptid before calling
16096 inferior_thread().
16097 (get_inferior_stop_soon): Pass down target.
16098 (wait_one): Rename to ...
16099 (poll_one_curr_target): ... this.
16100 (struct wait_one_event): New.
16101 (wait_one): New.
16102 (stop_all_threads): Adjust.
16103 (handle_no_resumed, handle_inferior_event): Adjust to consider the
16104 event's target.
16105 (switch_back_to_stepped_thread): Also consider target.
16106 (print_stop_event): Update.
16107 (normal_stop): Update. Also consider the resume target.
16108 * infrun.h (wait_for_inferior): Remove declaration.
16109 (user_visible_resume_target): New declaration.
16110 (get_last_target_status, set_last_target_status): New
16111 process_stratum_target parameter.
16112 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16113 process_stratum_target parameter, and use it.
16114 (clear_inline_frame_state (thread_info*)): New.
16115 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16116 process_stratum_target parameter.
16117 (clear_inline_frame_state (thread_info*)): Declare.
16118 * linux-fork.c (delete_checkpoint_command): Pass target down to
16119 find_thread_ptid.
16120 (checkpoint_command): Adjust.
16121 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
16122 instead of just tweaking inferior_ptid.
16123 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
16124 (exit_lwp): Pass target down to find_thread_ptid.
16125 (attach_proc_task_lwp_callback): Pass target down to
16126 add_thread/set_running/set_executing.
16127 (linux_nat_target::attach): Pass target down to
16128 thread_change_ptid.
16129 (get_detach_signal): Pass target down to find_thread_ptid.
16130 Consider last target status's target.
16131 (linux_resume_one_lwp_throw, resume_lwp)
16132 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
16133 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
16134 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
16135 (linux_nat_target::async_wait_fd): New.
16136 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
16137 target down.
16138 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
16139 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
16140 * linux-thread-db.c (struct thread_db_info::process_target): New
16141 field.
16142 (add_thread_db_info): Save target.
16143 (get_thread_db_info): New process_stratum_target parameter. Also
16144 match target.
16145 (delete_thread_db_info): New process_stratum_target parameter.
16146 Also match target.
16147 (thread_from_lwp): Adjust to pass down target.
16148 (thread_db_notice_clone): Pass down target.
16149 (check_thread_db_callback): Pass down target.
16150 (try_thread_db_load_1): Always push the thread_db target.
16151 (try_thread_db_load, record_thread): Pass target down.
16152 (thread_db_target::detach): Pass target down. Always unpush the
16153 thread_db target.
16154 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
16155 target down. Always unpush the thread_db target.
16156 (find_new_threads_callback, thread_db_find_new_threads_2)
16157 (thread_db_target::update_thread_list): Pass target down.
16158 (thread_db_target::pid_to_str): Pass current inferior down.
16159 (thread_db_target::get_thread_local_address): Pass target down.
16160 (thread_db_target::resume, maintenance_check_libthread_db): Pass
16161 target down.
16162 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
16163 * procfs.c (procfs_target::procfs_init_inferior): Declare.
16164 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
16165 (procfs_init_inferior): Rename to ...
16166 (procfs_target::procfs_init_inferior): ... this and adjust.
16167 (procfs_target::create_inferior, procfs_notice_thread)
16168 (procfs_do_thread_registers): Adjust.
16169 * ppc-fbsd-tdep.c: Include "inferior.h".
16170 (ppcfbsd_get_thread_local_address): Pass down target.
16171 * proc-service.c (ps_xfer_memory): Switch current inferior and
16172 program space as well.
16173 (get_ps_regcache): Pass target down.
16174 * process-stratum-target.c
16175 (process_stratum_target::thread_address_space)
16176 (process_stratum_target::thread_architecture): Pass target down.
16177 * process-stratum-target.h
16178 (process_stratum_target::threads_executing): New field.
16179 (as_process_stratum_target): New.
16180 * ravenscar-thread.c
16181 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
16182 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
16183 down.
16184 * record-btrace.c (record_btrace_target::info_record): Adjust.
16185 (record_btrace_target::record_method)
16186 (record_btrace_target::record_is_replaying)
16187 (record_btrace_target::fetch_registers)
16188 (get_thread_current_frame_id, record_btrace_target::resume)
16189 (record_btrace_target::wait, record_btrace_target::stop): Pass
16190 target down.
16191 * record-full.c (record_full_wait_1): Switch to event thread.
16192 Pass target down.
16193 * regcache.c (regcache::regcache)
16194 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
16195 process_stratum_target parameter and handle it.
16196 (current_thread_target): New global.
16197 (get_thread_regcache): Add process_stratum_target parameter and
16198 handle it. Switch inferior before calling target method.
16199 (get_thread_regcache): Pass target down.
16200 (get_thread_regcache_for_ptid): Pass target down.
16201 (registers_changed_ptid): Add process_stratum_target parameter and
16202 handle it.
16203 (registers_changed_thread, registers_changed): Pass target down.
16204 (test_get_thread_arch_aspace_regcache): New.
16205 (current_regcache_test): Define a couple local test_target_ops
16206 instances and use them for testing.
16207 (readwrite_regcache): Pass process_stratum_target parameter.
16208 (cooked_read_test, cooked_write_test): Pass mock_target down.
16209 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
16210 (get_thread_arch_aspace_regcache): Add process_stratum_target
16211 parameter.
16212 (regcache::target): New method.
16213 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
16214 (regcache::registers_changed_ptid): Add process_stratum_target
16215 parameter.
16216 (regcache::m_target): New field.
16217 (registers_changed_ptid): Add process_stratum_target parameter.
16218 * remote.c (remote_state::supports_vCont_probed): New field.
16219 (remote_target::async_wait_fd): New method.
16220 (remote_unpush_and_throw): Add remote_target parameter.
16221 (get_current_remote_target): Adjust.
16222 (remote_target::remote_add_inferior): Push target.
16223 (remote_target::remote_add_thread)
16224 (remote_target::remote_notice_new_inferior)
16225 (get_remote_thread_info): Pass target down.
16226 (remote_target::update_thread_list): Skip threads of inferiors
16227 bound to other targets. (remote_target::close): Don't discard
16228 inferiors. (remote_target::add_current_inferior_and_thread)
16229 (remote_target::process_initial_stop_replies)
16230 (remote_target::start_remote)
16231 (remote_target::remote_serial_quit_handler): Pass down target.
16232 (remote_target::remote_unpush_target): New remote_target
16233 parameter. Unpush the target from all inferiors.
16234 (remote_target::remote_unpush_and_throw): New remote_target
16235 parameter. Pass it down.
16236 (remote_target::open_1): Check whether the current inferior has
16237 execution instead of checking whether any inferior is live. Pass
16238 target down.
16239 (remote_target::remote_detach_1): Pass down target. Use
16240 remote_unpush_target.
16241 (extended_remote_target::attach): Pass down target.
16242 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
16243 (remote_target::append_resumption): Pass down target.
16244 (remote_target::append_pending_thread_resumptions)
16245 (remote_target::remote_resume_with_hc, remote_target::resume)
16246 (remote_target::commit_resume): Pass down target.
16247 (remote_target::remote_stop_ns): Check supports_vCont_probed.
16248 (remote_target::interrupt_query)
16249 (remote_target::remove_new_fork_children)
16250 (remote_target::check_pending_events_prevent_wildcard_vcont)
16251 (remote_target::remote_parse_stop_reply)
16252 (remote_target::process_stop_reply): Pass down target.
16253 (first_remote_resumed_thread): New remote_target parameter. Pass
16254 it down.
16255 (remote_target::wait_as): Pass down target.
16256 (unpush_and_perror): New remote_target parameter. Pass it down.
16257 (remote_target::readchar, remote_target::remote_serial_write)
16258 (remote_target::getpkt_or_notif_sane_1)
16259 (remote_target::kill_new_fork_children, remote_target::kill): Pass
16260 down target.
16261 (remote_target::mourn_inferior): Pass down target. Use
16262 remote_unpush_target.
16263 (remote_target::core_of_thread)
16264 (remote_target::remote_btrace_maybe_reopen): Pass down target.
16265 (remote_target::pid_to_exec_file)
16266 (remote_target::thread_handle_to_thread_info): Pass down target.
16267 (remote_target::async_wait_fd): New.
16268 * riscv-fbsd-tdep.c: Include "inferior.h".
16269 (riscv_fbsd_get_thread_local_address): Pass down target.
16270 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
16271 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
16272 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
16273 Adjust.
16274 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
16275 * solib-svr4.c (enable_break): Pass down target.
16276 * spu-multiarch.c (parse_spufs_run): Pass down target.
16277 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
16278 * target-delegates.c: Regenerate.
16279 * target.c (g_target_stack): Delete.
16280 (current_top_target): Return the current inferior's top target.
16281 (target_has_execution_1): Refer to the passed-in inferior's top
16282 target.
16283 (target_supports_terminal_ours): Check whether the initial
16284 inferior was already created.
16285 (decref_target): New.
16286 (target_stack::push): Incref/decref the target.
16287 (push_target, push_target, unpush_target): Adjust.
16288 (target_stack::unpush): Defref target.
16289 (target_is_pushed): Return bool. Adjust to refer to the current
16290 inferior's target stack.
16291 (dispose_inferior): Delete, and inline parts ...
16292 (target_preopen): ... here. Only dispose of the current inferior.
16293 (target_detach): Hold strong target reference while detaching.
16294 Pass target down.
16295 (target_thread_name): Add assertion.
16296 (target_resume): Pass down target.
16297 (target_ops::beneath, find_target_at): Adjust to refer to the
16298 current inferior's target stack.
16299 (get_dummy_target): New.
16300 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
16301 has a thread running.
16302 (initialize_targets): Rename to ...
16303 (_initialize_target): ... this.
16304 * target.h: Include "gdbsupport/refcounted-object.h".
16305 (struct target_ops): Inherit refcounted_object.
16306 (target_ops::shortname, target_ops::longname): Make const.
16307 (target_ops::async_wait_fd): New method.
16308 (decref_target): Declare.
16309 (struct target_ops_ref_policy): New.
16310 (target_ops_ref): New typedef.
16311 (get_dummy_target): Declare function.
16312 (target_is_pushed): Return bool.
16313 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
16314 (all_matching_threads_iterator::all_matching_threads_iterator):
16315 Handle filter target.
16316 * thread-iter.h (struct all_matching_threads_iterator, struct
16317 all_matching_threads_range, class all_non_exited_threads_range):
16318 Filter by target too. Remove explicit.
16319 * thread.c (threads_executing): Delete.
16320 (inferior_thread): Pass down current inferior.
16321 (clear_thread_inferior_resources): Pass down thread pointer
16322 instead of ptid_t.
16323 (add_thread_silent, add_thread_with_info, add_thread): Add
16324 process_stratum_target parameter. Use it for thread and inferior
16325 searches.
16326 (is_current_thread): New.
16327 (thread_info::deletable): Use it.
16328 (find_thread_ptid, thread_count, in_thread_list)
16329 (thread_change_ptid, set_resumed, set_running): New
16330 process_stratum_target parameter. Pass it down.
16331 (set_executing): New process_stratum_target parameter. Pass it
16332 down. Adjust reference to 'threads_executing'.
16333 (threads_are_executing): New process_stratum_target parameter.
16334 Adjust reference to 'threads_executing'.
16335 (set_stop_requested, finish_thread_state): New
16336 process_stratum_target parameter. Pass it down.
16337 (switch_to_thread): Also match inferior.
16338 (switch_to_thread): New process_stratum_target parameter. Pass it
16339 down.
16340 (update_threads_executing): Reimplement.
16341 * top.c (quit_force): Pop targets from all inferior.
16342 (gdb_init): Don't call initialize_targets.
16343 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
16344 Declare.
16345 (windows_add_thread, windows_delete_thread): Adjust.
16346 (get_windows_debug_event): Rename to ...
16347 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
16348 * tracefile-tfile.c (tfile_target_open): Pass down target.
16349 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
16350 Forward declare.
16351 (switch_to_thread): Add process_stratum_target parameter.
16352 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
16353 parameter. Use it.
16354 (mi_on_resume): Pass target down.
16355 * nat/fork-inferior.c (startup_inferior): Add
16356 process_stratum_target parameter. Pass it down.
16357 * nat/fork-inferior.h (startup_inferior): Add
16358 process_stratum_target parameter.
16359 * python/py-threadevent.c (py_get_event_thread): Pass target down.
16360
16361 2020-01-10 Pedro Alves <palves@redhat.com>
16362
16363 * remote.c (remote_target::start_remote): Don't set inferior_ptid
16364 directly. Instead find the first thread in the thread list and
16365 use switch_to_thread.
16366
16367 2020-01-10 Pedro Alves <palves@redhat.com>
16368
16369 * remote.c (remote_target::remote_add_inferior): Don't bind a
16370 process to the current inferior if the current inferior is already
16371 bound to a process.
16372
16373 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16374 Pedro Alves <palves@redhat.com>
16375
16376 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
16377 If no process is specified, return null_ptid instead of
16378 inferior_ptid.
16379 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
16380 TARGET_WAITKIND_SIGNALLED with no pid.
16381
16382 2020-01-10 Pedro Alves <palves@redhat.com>
16383
16384 * remote.c (first_remote_resumed_thread): New.
16385 (remote_target::wait_as): Use it as default event_ptid instead of
16386 inferior_ptid.
16387
16388 2020-01-10 Pedro Alves <palves@redhat.com>
16389
16390 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
16391
16392 2020-01-10 Pedro Alves <palves@redhat.com>
16393
16394 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
16395 not -1.
16396
16397 2020-01-10 Pedro Alves <palves@redhat.com>
16398
16399 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
16400 ptid to get_last_target_status.
16401 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
16402 ptid to get_last_target_status.
16403 * infcmd.c (continue_command): Don't pass a target_waitstatus to
16404 get_last_target_status.
16405 (info_program_command): Don't pass a target_waitstatus to
16406 get_last_target_status.
16407 * infrun.c (init_wait_for_inferior): Use
16408 nullify_last_target_wait_ptid.
16409 (get_last_target_status): Handle nullptr arguments.
16410 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
16411 (print_stop_event): Don't pass a ptid to get_last_target_status.
16412 (normal_stop): Don't pass a ptid to get_last_target_status.
16413 * infrun.h (get_last_target_status, set_last_target_status): Move
16414 comments here and update.
16415 (nullify_last_target_wait_ptid): Declare.
16416 * linux-fork.c (fork_load_infrun_state): Remove local extern
16417 declaration of nullify_last_target_wait_ptid.
16418 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
16419 to get_last_target_status.
16420
16421 2020-01-10 Pedro Alves <palves@redhat.com>
16422
16423 * gdbthread.h (scoped_restore_current_thread)
16424 <dont_restore, restore, m_dont_restore>: Declare.
16425 * thread.c (thread_alive): Add assertion. Return bool.
16426 (switch_to_thread_if_alive): New.
16427 (prune_threads): Switch inferior/thread.
16428 (print_thread_info_1): Switch thread before calling target methods.
16429 (scoped_restore_current_thread::restore): New, factored out from
16430 ...
16431 (scoped_restore_current_thread::~scoped_restore_current_thread):
16432 ... this.
16433 (scoped_restore_current_thread::scoped_restore_current_thread):
16434 Add assertion.
16435 (thread_apply_all_command, thread_select): Use
16436 switch_to_thread_if_alive.
16437 * infrun.c (proceed, restart_threads, handle_signal_stop)
16438 (switch_back_to_stepped_thread): Switch current thread before
16439 calling target methods.
16440
16441 2020-01-10 Pedro Alves <palves@redhat.com>
16442
16443 * inferior.c (switch_to_inferior_no_thread): New function,
16444 factored out from ...
16445 (inferior_command): ... here.
16446 * inferior.h (switch_to_inferior_no_thread): Declare.
16447 * mi/mi-main.c (run_one_inferior): Use
16448 switch_to_inferior_no_thread.
16449
16450 2020-01-10 Pedro Alves <palves@redhat.com>
16451
16452 * infcmd.c (kill_command): Remove dead code.
16453
16454 2020-01-10 Pedro Alves <palves@redhat.com>
16455
16456 * remote.c (remote_target::mourn_inferior): No longer check
16457 whether the target is running.
16458
16459 2020-01-10 Pedro Alves <palves@redhat.com>
16460
16461 * corelow.c (core_target::has_execution): Change parameter type to
16462 inferior pointer.
16463 * inferior.c (number_of_live_inferiors): Use
16464 inferior::has_execution instead of target_has_execution_1.
16465 * inferior.h (inferior::has_execution): New.
16466 * linux-thread-db.c (thread_db_target::update_thread_list): Use
16467 inferior::has_execution instead of target_has_execution_1.
16468 * process-stratum-target.c
16469 (process_stratum_target::has_execution): Change parameter type to
16470 inferior pointer. Check the inferior's PID instead of
16471 inferior_ptid.
16472 * process-stratum-target.h
16473 (process_stratum_target::has_execution): Change parameter type to
16474 inferior pointer.
16475 * record-full.c (record_full_core_target::has_execution): Change
16476 parameter type to inferior pointer.
16477 * target.c (target_has_execution_1): Change parameter type to
16478 inferior pointer.
16479 (target_has_execution_current): Adjust.
16480 * target.h (target_ops::has_execution): Change parameter type to
16481 inferior pointer.
16482 (target_has_execution_1): Change parameter type to inferior
16483 pointer. Change return type to bool.
16484 * tracefile.h (tracefile_target::has_execution): Change parameter
16485 type to inferior pointer.
16486
16487 2020-01-10 Pedro Alves <palves@redhat.com>
16488
16489 * exceptions.c (print_flush): Remove current_top_target() check.
16490
16491 2020-01-10 Pedro Alves <palves@redhat.com>
16492
16493 * remote.c (show_remote_exec_file): Show the current inferior's
16494 exec-file instead of the command variable's value.
16495
16496 2020-01-10 Pedro Alves <palves@redhat.com>
16497
16498 * record-full.c (record_full_resume_ptid): New global.
16499 (record_full_target::resume): Set it.
16500 (record_full_wait_1): Use record_full_resume_ptid instead of
16501 inferior_ptid.
16502
16503 2020-01-10 Pedro Alves <palves@redhat.com>
16504
16505 * gdbthread.h (scoped_restore_current_thread)
16506 <dont_restore, restore, m_dont_restore>: Declare.
16507 * thread.c (thread_alive): Add assertion. Return bool.
16508 (switch_to_thread_if_alive): New.
16509 (prune_threads): Switch inferior/thread.
16510 (print_thread_info_1): Switch thread before calling target methods.
16511 (scoped_restore_current_thread::restore): New, factored out from
16512 ...
16513 (scoped_restore_current_thread::~scoped_restore_current_thread):
16514 ... this.
16515 (scoped_restore_current_thread::scoped_restore_current_thread):
16516 Add assertion.
16517 (thread_apply_all_command, thread_select): Use
16518 switch_to_thread_if_alive.
16519
16520 2020-01-10 George Barrett <bob@bob131.so>
16521
16522 * stap-probe.c (stap_modify_semaphore): Don't check for null
16523 semaphores.
16524 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
16525 for null semaphores.
16526
16527 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16528
16529 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
16530 all source windows, and maintain horizontal scroll status while
16531 doing so.
16532
16533 2020-01-09 Tom Tromey <tom@tromey.com>
16534
16535 PR tui/18932:
16536 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
16537 update_source_window, not print_source_lines.
16538
16539 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16540
16541 * tui/tui.c (tui_enable): Register tui hooks after calling
16542 tui_display_main.
16543
16544 2020-01-09 Christian Biesinger <cbiesinger@google.com>
16545
16546 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
16547
16548 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
16549
16550 * thread.c (print_thread_info_1): Fix indentation.
16551
16552 2020-01-09 Christian Biesinger <cbiesinger@google.com>
16553
16554 * symtab.c (general_symbol_info::compute_and_set_names): Move the
16555 unique_xmalloc_ptr outside the if to always free the demangled name.
16556
16557 2020-01-08 Tom Tromey <tromey@adacore.com>
16558
16559 * xcoffread.c (enter_line_range, read_xcoff_symtab)
16560 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
16561 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
16562 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
16563 Remove.
16564 (section_offsets): New typedef.
16565 * symtab.c (fixup_section, get_msymbol_address): Update.
16566 * symmisc.c (dump_msymbols): Update.
16567 * symfile.h (relative_addr_info_to_section_offsets)
16568 (symfile_map_offsets_to_segments): Update.
16569 * symfile.c (build_section_addr_info_from_objfile)
16570 (init_objfile_sect_indices): Update.
16571 (struct place_section_arg): Change type of "offsets".
16572 (place_section): Update.
16573 (relative_addr_info_to_section_offsets): Change type of
16574 "section_offsets". Remove "num_sections" parameter.
16575 (default_symfile_offsets, syms_from_objfile_1)
16576 (set_objfile_default_section_offset): Update.
16577 (reread_symbols): No need to preserve section offsets by hand.
16578 (symfile_map_offsets_to_segments): Change type of "offsets".
16579 * stap-probe.c (relocate_address): Update.
16580 * stabsread.h (process_one_symbol): Update.
16581 * solib-target.c (struct lm_info_target) <offsets>: Change type.
16582 (solib_target_relocate_section_addresses): Update.
16583 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
16584 Update.
16585 * solib-frv.c (frv_relocate_main_executable): Update.
16586 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
16587 * solib-aix.c (solib_aix_get_section_offsets): Change return
16588 type.
16589 (solib_aix_solib_create_inferior_hook): Update.
16590 * remote.c (remote_target::get_offsets): Update.
16591 * psymtab.c (find_pc_sect_psymtab): Update.
16592 * psympriv.h (struct partial_symbol) <address, text_low,
16593 text_high>: Update.
16594 * objfiles.h (obj_section_offset): Update.
16595 (struct objfile) <section_offsets>: Change type.
16596 <num_sections>: Remove.
16597 (objfile_relocate): Update.
16598 * objfiles.c (entry_point_address_query): Update
16599 (relocate_one_symbol): Change type of "section_offsets".
16600 (objfile_relocate1, objfile_relocate1): Change type of
16601 "new_offsets".
16602 (objfile_rebase1): Update.
16603 * mipsread.c (mipscoff_symfile_read): Update.
16604 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
16605 parameter.
16606 * mdebugread.c (parse_symbol): Change type of "section_offsets".
16607 (parse_external, psymtab_to_symtab_1): Update.
16608 * machoread.c (macho_symfile_offsets): Update.
16609 * ia64-tdep.c (ia64_find_unwind_table): Update.
16610 * hppa-tdep.c (read_unwind_info): Update.
16611 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
16612 * dwarf2read.c (create_addrmap_from_index)
16613 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
16614 (process_psymtab_comp_unit_reader, add_partial_symbol)
16615 (add_partial_subprogram, process_full_comp_unit)
16616 (read_file_scope, read_func_scope, read_lexical_block_scope)
16617 (read_call_site_scope, dwarf2_rnglists_process)
16618 (dwarf2_ranges_process, dwarf2_ranges_read)
16619 (dwarf_decode_lines_1, var_decode_location, new_symbol)
16620 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
16621 Update.
16622 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
16623 Update.
16624 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
16625 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
16626 (process_one_symbol): Change type of "section_offsets".
16627 * ctfread.c (get_objfile_text_range): Update.
16628 * coffread.c (coff_symtab_read, enter_linenos)
16629 (process_coff_symbol): Update.
16630 * coff-pe-read.c (add_pe_forwarded_sym): Update.
16631 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
16632
16633 2020-01-08 Tom Tromey <tromey@adacore.com>
16634
16635 * dwarf2read.c (parse_macro_definition): Use std::string.
16636 (parse_macro_definition): Likewise.
16637
16638 2020-01-08 Tom Tromey <tromey@adacore.com>
16639
16640 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
16641 (ATTR_ALLOC_CHUNK): Remove.
16642
16643 2020-01-08 Tom Tromey <tromey@adacore.com>
16644
16645 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
16646
16647 2020-01-08 Tom Tromey <tromey@adacore.com>
16648
16649 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
16650 (dwarf2_compute_name, open_dwo_file): Likewise.
16651 (process_enumeration_scope): Use std::vector.
16652 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
16653 (partial_die_info::fixup, dwarf2_start_subfile)
16654 (guess_full_die_structure_name, dwarf2_name): Likewise.
16655 (determine_prefix): Update.
16656 (guess_full_die_structure_name): Make return type const.
16657 (partial_die_full_name): Return unique_xmalloc_ptr.
16658 (DW_FIELD_ALLOC_CHUNK): Remove.
16659
16660 2020-01-07 Tom Tromey <tromey@adacore.com>
16661
16662 PR build/24937:
16663 * stap-probe.c (class stap_static_probe_ops): Add constructor.
16664
16665 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
16666
16667 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
16668
16669 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
16670
16671 * stack.c (print_frame_info): Move disassemble_next_line code
16672 inside source_print block.
16673
16674 2020-01-06 Eli Zaretskii <eliz@gnu.org>
16675
16676 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
16677 gdb/signals.h, as we are now using native signal symbols.
16678
16679 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
16680
16681 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
16682 overflow by an early check of content vs threshold.
16683 * tui/tui-source.c (tui_source_window::line_is_displayed):
16684 Likewise.
16685
16686 2020-01-06 Eli Zaretskii <eliz@gnu.org>
16687
16688 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
16689
16690 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
16691
16692 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
16693 export table if no section contains it's RVA.
16694
16695 2020-01-06 Eli Zaretskii <eliz@gnu.org>
16696
16697 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
16698
16699 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
16700
16701 * source.c (print_source_lines_base): Set last_line_listed.
16702
16703 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
16704
16705 * tui/tui-disasm.c: Remove trailing spaces.
16706
16707 2020-01-06 Eli Zaretskii <eliz@gnu.org>
16708 Pedro Alves <palves@redhat.com>
16709
16710 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
16711 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
16712 (windows_gdb_signal_to_target): New function, uses the above
16713 enumeration to convert GDB internal signal codes to equivalent
16714 Windows codes.
16715 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
16716 * windows-nat.c: Include "gdb_wait.h".
16717 (get_windows_debug_event): Extract the fatal exception from the
16718 exit status and convert to the equivalent Posix signal number.
16719 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
16720 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
16721 * gdbsupport/gdb_wait.c: New file, implements
16722 windows_status_to_termsig.
16723 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
16724 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
16725
16726 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
16727
16728 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
16729 show_layout.
16730
16731 2020-01-05 Luis Machado <luis.machado@linaro.org>
16732
16733 * aarch64-linux-nat.c
16734 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
16735 and bfd_mach_aarch64.
16736
16737 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16738
16739 * ui-file.c (stdio_file::can_emit_style_escape)
16740 (tee_file::can_emit_style_escape): Ensure style is used also on
16741 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
16742 to gdb_stdout.
16743 * main.c (set_gdb_data_directory): Use file style to output the
16744 warning that the given pathname is not a directory.
16745 * top.c (show_history_filename, gdb_safe_append_history)
16746 (show_gdb_datadir): Use file style.
16747
16748 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
16749
16750 * solib-target.c (struct lm_info_target):
16751 Change offsets to be a unique_xmalloc_ptr.
16752 (solib_target_relocate_section_addresses): Update.
16753
16754 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
16755
16756 * windows-nat.c (windows_clear_solib): Free so_list linked list.
16757
16758 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
16759
16760 * MAINTAINERS (Write After Approval): Add myself.
16761
16762 2020-01-02 Luis Machado <luis.machado@linaro.org>
16763
16764 * proc-service.c (get_ps_regcache): Remove reference to obsolete
16765 Cell BE architecture.
16766 * target.h (struct target_ops) <thread_architecture>: Likewise.
16767
16768 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
16769
16770 * Makefile.in: Use INSTALL_PROGRAM_ENV.
16771
16772 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
16773
16774 * MAINTAINERS (Write After Approval): Add myself.
16775
16776 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16777
16778 * gdbarch.sh: Update copyright year range of generated files.
16779
16780 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16781
16782 Update copyright year range in all GDB files.
16783
16784 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16785
16786 * copyright.py: Convert to Python 3.
16787
16788 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16789
16790 * copyright.py: Adapt after move of gnulib directory from gdb
16791 directory to toplevel directory.
16792
16793 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16794
16795 * copyright.py (main): Exit if run from the wrong directory.
16796
16797 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16798
16799 * top.c (print_gdb_version): Change copyright year to 2020.
16800
16801 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16802
16803 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
16804
16805 For older changes see ChangeLog-2019.
16806 \f
16807 Local Variables:
16808 mode: change-log
16809 left-margin: 8
16810 fill-column: 74
16811 version-control: never
16812 coding: utf-8
16813 End:
This page took 0.345533 seconds and 5 git commands to generate.